configure revision 1f27ce9a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-vmware 11.0.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='xf86-video-vmware' 747PACKAGE_TARNAME='xf86-video-vmware' 748PACKAGE_VERSION='11.0.2' 749PACKAGE_STRING='xf86-video-vmware 11.0.2' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='am__EXEEXT_FALSE 790am__EXEEXT_TRUE 791LTLIBOBJS 792LIBOBJS 793DRIVER_NAME 794moduledir 795XSERVER_LIBPCIACCESS_FALSE 796XSERVER_LIBPCIACCESS_TRUE 797PCIACCESS_LIBS 798PCIACCESS_CFLAGS 799DRM_LIBS 800DRM_CFLAGS 801XORG_LIBS 802XORG_CFLAGS 803OTOOL64 804OTOOL 805LIPO 806NMEDIT 807DSYMUTIL 808lt_ECHO 809RANLIB 810AR 811OBJDUMP 812LN_S 813NM 814ac_ct_DUMPBIN 815DUMPBIN 816LD 817FGREP 818LIBTOOL 819AM_BACKSLASH 820AM_DEFAULT_VERBOSITY 821MAN_SUBSTS 822XORG_MAN_PAGE 823ADMIN_MAN_DIR 824DRIVER_MAN_DIR 825MISC_MAN_DIR 826FILE_MAN_DIR 827LIB_MAN_DIR 828APP_MAN_DIR 829ADMIN_MAN_SUFFIX 830DRIVER_MAN_SUFFIX 831MISC_MAN_SUFFIX 832FILE_MAN_SUFFIX 833LIB_MAN_SUFFIX 834APP_MAN_SUFFIX 835SED 836host_os 837host_vendor 838host_cpu 839host 840build_os 841build_vendor 842build_cpu 843build 844INSTALL_CMD 845PKG_CONFIG 846CHANGELOG_CMD 847CWARNFLAGS 848EGREP 849GREP 850CPP 851am__fastdepCC_FALSE 852am__fastdepCC_TRUE 853CCDEPMODE 854AMDEPBACKSLASH 855AMDEP_FALSE 856AMDEP_TRUE 857am__quote 858am__include 859DEPDIR 860OBJEXT 861EXEEXT 862ac_ct_CC 863CPPFLAGS 864LDFLAGS 865CFLAGS 866CC 867MAINT 868MAINTAINER_MODE_FALSE 869MAINTAINER_MODE_TRUE 870am__untar 871am__tar 872AMTAR 873am__leading_dot 874SET_MAKE 875AWK 876mkdir_p 877MKDIR_P 878INSTALL_STRIP_PROGRAM 879STRIP 880install_sh 881MAKEINFO 882AUTOHEADER 883AUTOMAKE 884AUTOCONF 885ACLOCAL 886VERSION 887PACKAGE 888CYGPATH_W 889am__isrc 890INSTALL_DATA 891INSTALL_SCRIPT 892INSTALL_PROGRAM 893target_alias 894host_alias 895build_alias 896LIBS 897ECHO_T 898ECHO_N 899ECHO_C 900DEFS 901mandir 902localedir 903libdir 904psdir 905pdfdir 906dvidir 907htmldir 908infodir 909docdir 910oldincludedir 911includedir 912localstatedir 913sharedstatedir 914sysconfdir 915datadir 916datarootdir 917libexecdir 918sbindir 919bindir 920program_transform_name 921prefix 922exec_prefix 923PACKAGE_BUGREPORT 924PACKAGE_STRING 925PACKAGE_VERSION 926PACKAGE_TARNAME 927PACKAGE_NAME 928PATH_SEPARATOR 929SHELL' 930ac_subst_files='' 931ac_user_opts=' 932enable_option_checking 933enable_maintainer_mode 934enable_dependency_tracking 935enable_strict_compilation 936enable_silent_rules 937enable_static 938enable_shared 939with_pic 940enable_fast_install 941with_gnu_ld 942enable_libtool_lock 943with_xorg_module_dir 944' 945 ac_precious_vars='build_alias 946host_alias 947target_alias 948CC 949CFLAGS 950LDFLAGS 951LIBS 952CPPFLAGS 953CPP 954PKG_CONFIG 955XORG_CFLAGS 956XORG_LIBS 957DRM_CFLAGS 958DRM_LIBS 959PCIACCESS_CFLAGS 960PCIACCESS_LIBS' 961 962 963# Initialize some variables set by options. 964ac_init_help= 965ac_init_version=false 966ac_unrecognized_opts= 967ac_unrecognized_sep= 968# The variables have the same names as the options, with 969# dashes changed to underlines. 970cache_file=/dev/null 971exec_prefix=NONE 972no_create= 973no_recursion= 974prefix=NONE 975program_prefix=NONE 976program_suffix=NONE 977program_transform_name=s,x,x, 978silent= 979site= 980srcdir= 981verbose= 982x_includes=NONE 983x_libraries=NONE 984 985# Installation directory options. 986# These are left unexpanded so users can "make install exec_prefix=/foo" 987# and all the variables that are supposed to be based on exec_prefix 988# by default will actually change. 989# Use braces instead of parens because sh, perl, etc. also accept them. 990# (The list follows the same order as the GNU Coding Standards.) 991bindir='${exec_prefix}/bin' 992sbindir='${exec_prefix}/sbin' 993libexecdir='${exec_prefix}/libexec' 994datarootdir='${prefix}/share' 995datadir='${datarootdir}' 996sysconfdir='${prefix}/etc' 997sharedstatedir='${prefix}/com' 998localstatedir='${prefix}/var' 999includedir='${prefix}/include' 1000oldincludedir='/usr/include' 1001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1002infodir='${datarootdir}/info' 1003htmldir='${docdir}' 1004dvidir='${docdir}' 1005pdfdir='${docdir}' 1006psdir='${docdir}' 1007libdir='${exec_prefix}/lib' 1008localedir='${datarootdir}/locale' 1009mandir='${datarootdir}/man' 1010 1011ac_prev= 1012ac_dashdash= 1013for ac_option 1014do 1015 # If the previous option needs an argument, assign it. 1016 if test -n "$ac_prev"; then 1017 eval $ac_prev=\$ac_option 1018 ac_prev= 1019 continue 1020 fi 1021 1022 case $ac_option in 1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1024 *) ac_optarg=yes ;; 1025 esac 1026 1027 # Accept the important Cygnus configure options, so we can diagnose typos. 1028 1029 case $ac_dashdash$ac_option in 1030 --) 1031 ac_dashdash=yes ;; 1032 1033 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1034 ac_prev=bindir ;; 1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1036 bindir=$ac_optarg ;; 1037 1038 -build | --build | --buil | --bui | --bu) 1039 ac_prev=build_alias ;; 1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1041 build_alias=$ac_optarg ;; 1042 1043 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1045 ac_prev=cache_file ;; 1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1048 cache_file=$ac_optarg ;; 1049 1050 --config-cache | -C) 1051 cache_file=config.cache ;; 1052 1053 -datadir | --datadir | --datadi | --datad) 1054 ac_prev=datadir ;; 1055 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1056 datadir=$ac_optarg ;; 1057 1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1059 | --dataroo | --dataro | --datar) 1060 ac_prev=datarootdir ;; 1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1063 datarootdir=$ac_optarg ;; 1064 1065 -disable-* | --disable-*) 1066 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1067 # Reject names that are not valid shell variable names. 1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1070 { (exit 1); exit 1; }; } 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075"enable_$ac_useropt" 1076"*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=no ;; 1081 1082 -docdir | --docdir | --docdi | --doc | --do) 1083 ac_prev=docdir ;; 1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1085 docdir=$ac_optarg ;; 1086 1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1088 ac_prev=dvidir ;; 1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1090 dvidir=$ac_optarg ;; 1091 1092 -enable-* | --enable-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1097 { (exit 1); exit 1; }; } 1098 ac_useropt_orig=$ac_useropt 1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1100 case $ac_user_opts in 1101 *" 1102"enable_$ac_useropt" 1103"*) ;; 1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1105 ac_unrecognized_sep=', ';; 1106 esac 1107 eval enable_$ac_useropt=\$ac_optarg ;; 1108 1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1111 | --exec | --exe | --ex) 1112 ac_prev=exec_prefix ;; 1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1115 | --exec=* | --exe=* | --ex=*) 1116 exec_prefix=$ac_optarg ;; 1117 1118 -gas | --gas | --ga | --g) 1119 # Obsolete; use --with-gas. 1120 with_gas=yes ;; 1121 1122 -help | --help | --hel | --he | -h) 1123 ac_init_help=long ;; 1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1125 ac_init_help=recursive ;; 1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1127 ac_init_help=short ;; 1128 1129 -host | --host | --hos | --ho) 1130 ac_prev=host_alias ;; 1131 -host=* | --host=* | --hos=* | --ho=*) 1132 host_alias=$ac_optarg ;; 1133 1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1135 ac_prev=htmldir ;; 1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1137 | --ht=*) 1138 htmldir=$ac_optarg ;; 1139 1140 -includedir | --includedir | --includedi | --included | --include \ 1141 | --includ | --inclu | --incl | --inc) 1142 ac_prev=includedir ;; 1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1144 | --includ=* | --inclu=* | --incl=* | --inc=*) 1145 includedir=$ac_optarg ;; 1146 1147 -infodir | --infodir | --infodi | --infod | --info | --inf) 1148 ac_prev=infodir ;; 1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1150 infodir=$ac_optarg ;; 1151 1152 -libdir | --libdir | --libdi | --libd) 1153 ac_prev=libdir ;; 1154 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1155 libdir=$ac_optarg ;; 1156 1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1158 | --libexe | --libex | --libe) 1159 ac_prev=libexecdir ;; 1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1161 | --libexe=* | --libex=* | --libe=*) 1162 libexecdir=$ac_optarg ;; 1163 1164 -localedir | --localedir | --localedi | --localed | --locale) 1165 ac_prev=localedir ;; 1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1167 localedir=$ac_optarg ;; 1168 1169 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1170 | --localstate | --localstat | --localsta | --localst | --locals) 1171 ac_prev=localstatedir ;; 1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1174 localstatedir=$ac_optarg ;; 1175 1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1177 ac_prev=mandir ;; 1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1179 mandir=$ac_optarg ;; 1180 1181 -nfp | --nfp | --nf) 1182 # Obsolete; use --without-fp. 1183 with_fp=no ;; 1184 1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1186 | --no-cr | --no-c | -n) 1187 no_create=yes ;; 1188 1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1191 no_recursion=yes ;; 1192 1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1195 | --oldin | --oldi | --old | --ol | --o) 1196 ac_prev=oldincludedir ;; 1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1200 oldincludedir=$ac_optarg ;; 1201 1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1203 ac_prev=prefix ;; 1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1205 prefix=$ac_optarg ;; 1206 1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1208 | --program-pre | --program-pr | --program-p) 1209 ac_prev=program_prefix ;; 1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1212 program_prefix=$ac_optarg ;; 1213 1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1215 | --program-suf | --program-su | --program-s) 1216 ac_prev=program_suffix ;; 1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1219 program_suffix=$ac_optarg ;; 1220 1221 -program-transform-name | --program-transform-name \ 1222 | --program-transform-nam | --program-transform-na \ 1223 | --program-transform-n | --program-transform- \ 1224 | --program-transform | --program-transfor \ 1225 | --program-transfo | --program-transf \ 1226 | --program-trans | --program-tran \ 1227 | --progr-tra | --program-tr | --program-t) 1228 ac_prev=program_transform_name ;; 1229 -program-transform-name=* | --program-transform-name=* \ 1230 | --program-transform-nam=* | --program-transform-na=* \ 1231 | --program-transform-n=* | --program-transform-=* \ 1232 | --program-transform=* | --program-transfor=* \ 1233 | --program-transfo=* | --program-transf=* \ 1234 | --program-trans=* | --program-tran=* \ 1235 | --progr-tra=* | --program-tr=* | --program-t=*) 1236 program_transform_name=$ac_optarg ;; 1237 1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1239 ac_prev=pdfdir ;; 1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1241 pdfdir=$ac_optarg ;; 1242 1243 -psdir | --psdir | --psdi | --psd | --ps) 1244 ac_prev=psdir ;; 1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1246 psdir=$ac_optarg ;; 1247 1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1249 | -silent | --silent | --silen | --sile | --sil) 1250 silent=yes ;; 1251 1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1253 ac_prev=sbindir ;; 1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1255 | --sbi=* | --sb=*) 1256 sbindir=$ac_optarg ;; 1257 1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1260 | --sharedst | --shareds | --shared | --share | --shar \ 1261 | --sha | --sh) 1262 ac_prev=sharedstatedir ;; 1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1266 | --sha=* | --sh=*) 1267 sharedstatedir=$ac_optarg ;; 1268 1269 -site | --site | --sit) 1270 ac_prev=site ;; 1271 -site=* | --site=* | --sit=*) 1272 site=$ac_optarg ;; 1273 1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1275 ac_prev=srcdir ;; 1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1277 srcdir=$ac_optarg ;; 1278 1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1280 | --syscon | --sysco | --sysc | --sys | --sy) 1281 ac_prev=sysconfdir ;; 1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1284 sysconfdir=$ac_optarg ;; 1285 1286 -target | --target | --targe | --targ | --tar | --ta | --t) 1287 ac_prev=target_alias ;; 1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1289 target_alias=$ac_optarg ;; 1290 1291 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1292 verbose=yes ;; 1293 1294 -version | --version | --versio | --versi | --vers | -V) 1295 ac_init_version=: ;; 1296 1297 -with-* | --with-*) 1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1299 # Reject names that are not valid shell variable names. 1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1301 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1302 { (exit 1); exit 1; }; } 1303 ac_useropt_orig=$ac_useropt 1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1305 case $ac_user_opts in 1306 *" 1307"with_$ac_useropt" 1308"*) ;; 1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1310 ac_unrecognized_sep=', ';; 1311 esac 1312 eval with_$ac_useropt=\$ac_optarg ;; 1313 1314 -without-* | --without-*) 1315 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1316 # Reject names that are not valid shell variable names. 1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1318 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1319 { (exit 1); exit 1; }; } 1320 ac_useropt_orig=$ac_useropt 1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1322 case $ac_user_opts in 1323 *" 1324"with_$ac_useropt" 1325"*) ;; 1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1327 ac_unrecognized_sep=', ';; 1328 esac 1329 eval with_$ac_useropt=no ;; 1330 1331 --x) 1332 # Obsolete; use --with-x. 1333 with_x=yes ;; 1334 1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1336 | --x-incl | --x-inc | --x-in | --x-i) 1337 ac_prev=x_includes ;; 1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1340 x_includes=$ac_optarg ;; 1341 1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1344 ac_prev=x_libraries ;; 1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1347 x_libraries=$ac_optarg ;; 1348 1349 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1350Try \`$0 --help' for more information." >&2 1351 { (exit 1); exit 1; }; } 1352 ;; 1353 1354 *=*) 1355 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1356 # Reject names that are not valid shell variable names. 1357 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1358 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1359 { (exit 1); exit 1; }; } 1360 eval $ac_envvar=\$ac_optarg 1361 export $ac_envvar ;; 1362 1363 *) 1364 # FIXME: should be removed in autoconf 3.0. 1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1369 ;; 1370 1371 esac 1372done 1373 1374if test -n "$ac_prev"; then 1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1376 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1377 { (exit 1); exit 1; }; } 1378fi 1379 1380if test -n "$ac_unrecognized_opts"; then 1381 case $enable_option_checking in 1382 no) ;; 1383 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1384 { (exit 1); exit 1; }; } ;; 1385 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1386 esac 1387fi 1388 1389# Check all directory arguments for consistency. 1390for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1391 datadir sysconfdir sharedstatedir localstatedir includedir \ 1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1393 libdir localedir mandir 1394do 1395 eval ac_val=\$$ac_var 1396 # Remove trailing slashes. 1397 case $ac_val in 1398 */ ) 1399 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1400 eval $ac_var=\$ac_val;; 1401 esac 1402 # Be sure to have absolute directory names. 1403 case $ac_val in 1404 [\\/$]* | ?:[\\/]* ) continue;; 1405 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1406 esac 1407 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1408 { (exit 1); exit 1; }; } 1409done 1410 1411# There might be people who depend on the old broken behavior: `$host' 1412# used to hold the argument of --host etc. 1413# FIXME: To remove some day. 1414build=$build_alias 1415host=$host_alias 1416target=$target_alias 1417 1418# FIXME: To remove some day. 1419if test "x$host_alias" != x; then 1420 if test "x$build_alias" = x; then 1421 cross_compiling=maybe 1422 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1423 If a cross compiler is detected then cross compile mode will be used." >&2 1424 elif test "x$build_alias" != "x$host_alias"; then 1425 cross_compiling=yes 1426 fi 1427fi 1428 1429ac_tool_prefix= 1430test -n "$host_alias" && ac_tool_prefix=$host_alias- 1431 1432test "$silent" = yes && exec 6>/dev/null 1433 1434 1435ac_pwd=`pwd` && test -n "$ac_pwd" && 1436ac_ls_di=`ls -di .` && 1437ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1438 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1439 { (exit 1); exit 1; }; } 1440test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1441 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1442 { (exit 1); exit 1; }; } 1443 1444 1445# Find the source files, if location was not specified. 1446if test -z "$srcdir"; then 1447 ac_srcdir_defaulted=yes 1448 # Try the directory containing this script, then the parent directory. 1449 ac_confdir=`$as_dirname -- "$as_myself" || 1450$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1451 X"$as_myself" : 'X\(//\)[^/]' \| \ 1452 X"$as_myself" : 'X\(//\)$' \| \ 1453 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1454$as_echo X"$as_myself" | 1455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)[^/].*/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\/\)$/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\).*/{ 1468 s//\1/ 1469 q 1470 } 1471 s/.*/./; q'` 1472 srcdir=$ac_confdir 1473 if test ! -r "$srcdir/$ac_unique_file"; then 1474 srcdir=.. 1475 fi 1476else 1477 ac_srcdir_defaulted=no 1478fi 1479if test ! -r "$srcdir/$ac_unique_file"; then 1480 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1481 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1482 { (exit 1); exit 1; }; } 1483fi 1484ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1485ac_abs_confdir=`( 1486 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1487 { (exit 1); exit 1; }; } 1488 pwd)` 1489# When building in place, set srcdir=. 1490if test "$ac_abs_confdir" = "$ac_pwd"; then 1491 srcdir=. 1492fi 1493# Remove unnecessary trailing slashes from srcdir. 1494# Double slashes in file names in object file debugging info 1495# mess up M-x gdb in Emacs. 1496case $srcdir in 1497*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1498esac 1499for ac_var in $ac_precious_vars; do 1500 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1501 eval ac_env_${ac_var}_value=\$${ac_var} 1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1503 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1504done 1505 1506# 1507# Report the --help message. 1508# 1509if test "$ac_init_help" = "long"; then 1510 # Omit some internal or obsolete options to make the list less imposing. 1511 # This message is too long to be a string in the A/UX 3.1 sh. 1512 cat <<_ACEOF 1513\`configure' configures xf86-video-vmware 11.0.2 to adapt to many kinds of systems. 1514 1515Usage: $0 [OPTION]... [VAR=VALUE]... 1516 1517To assign environment variables (e.g., CC, CFLAGS...), specify them as 1518VAR=VALUE. See below for descriptions of some of the useful variables. 1519 1520Defaults for the options are specified in brackets. 1521 1522Configuration: 1523 -h, --help display this help and exit 1524 --help=short display options specific to this package 1525 --help=recursive display the short help of all the included packages 1526 -V, --version display version information and exit 1527 -q, --quiet, --silent do not print \`checking...' messages 1528 --cache-file=FILE cache test results in FILE [disabled] 1529 -C, --config-cache alias for \`--cache-file=config.cache' 1530 -n, --no-create do not create output files 1531 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1532 1533Installation directories: 1534 --prefix=PREFIX install architecture-independent files in PREFIX 1535 [$ac_default_prefix] 1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1537 [PREFIX] 1538 1539By default, \`make install' will install all the files in 1540\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1541an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1542for instance \`--prefix=\$HOME'. 1543 1544For better control, use the options below. 1545 1546Fine tuning of the installation directories: 1547 --bindir=DIR user executables [EPREFIX/bin] 1548 --sbindir=DIR system admin executables [EPREFIX/sbin] 1549 --libexecdir=DIR program executables [EPREFIX/libexec] 1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1553 --libdir=DIR object code libraries [EPREFIX/lib] 1554 --includedir=DIR C header files [PREFIX/include] 1555 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1558 --infodir=DIR info documentation [DATAROOTDIR/info] 1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1560 --mandir=DIR man documentation [DATAROOTDIR/man] 1561 --docdir=DIR documentation root 1562 [DATAROOTDIR/doc/xf86-video-vmware] 1563 --htmldir=DIR html documentation [DOCDIR] 1564 --dvidir=DIR dvi documentation [DOCDIR] 1565 --pdfdir=DIR pdf documentation [DOCDIR] 1566 --psdir=DIR ps documentation [DOCDIR] 1567_ACEOF 1568 1569 cat <<\_ACEOF 1570 1571Program names: 1572 --program-prefix=PREFIX prepend PREFIX to installed program names 1573 --program-suffix=SUFFIX append SUFFIX to installed program names 1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1575 1576System types: 1577 --build=BUILD configure for building on BUILD [guessed] 1578 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1579_ACEOF 1580fi 1581 1582if test -n "$ac_init_help"; then 1583 case $ac_init_help in 1584 short | recursive ) echo "Configuration of xf86-video-vmware 11.0.2:";; 1585 esac 1586 cat <<\_ACEOF 1587 1588Optional Features: 1589 --disable-option-checking ignore unrecognized --enable/--with options 1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1592 --enable-maintainer-mode enable make rules and dependencies not useful 1593 (and sometimes confusing) to the casual installer 1594 --disable-dependency-tracking speeds up one-time build 1595 --enable-dependency-tracking do not reject slow dependency extractors 1596 --enable-strict-compilation 1597 Enable all warnings from compiler and make them 1598 errors (default: disabled) 1599 --enable-silent-rules less verbose build output (undo: `make V=1') 1600 --disable-silent-rules verbose build output (undo: `make V=0') 1601 --enable-static[=PKGS] build static libraries [default=no] 1602 --enable-shared[=PKGS] build shared libraries [default=yes] 1603 --enable-fast-install[=PKGS] 1604 optimize for fast installation [default=yes] 1605 --disable-libtool-lock avoid locking (might break parallel builds) 1606 1607Optional Packages: 1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1610 --with-pic try to use only PIC/non-PIC objects [default=use 1611 both] 1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1613 --with-xorg-module-dir=DIR 1614 Default xorg module directory 1615 [default=$libdir/xorg/modules] 1616 1617Some influential environment variables: 1618 CC C compiler command 1619 CFLAGS C compiler flags 1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1621 nonstandard directory <lib dir> 1622 LIBS libraries to pass to the linker, e.g. -l<library> 1623 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1624 you have headers in a nonstandard directory <include dir> 1625 CPP C preprocessor 1626 PKG_CONFIG path to pkg-config utility 1627 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1628 XORG_LIBS linker flags for XORG, overriding pkg-config 1629 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config 1630 DRM_LIBS linker flags for DRM, overriding pkg-config 1631 PCIACCESS_CFLAGS 1632 C compiler flags for PCIACCESS, overriding pkg-config 1633 PCIACCESS_LIBS 1634 linker flags for PCIACCESS, overriding pkg-config 1635 1636Use these variables to override the choices made by `configure' or to help 1637it to find libraries and programs with nonstandard names/locations. 1638 1639Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1640_ACEOF 1641ac_status=$? 1642fi 1643 1644if test "$ac_init_help" = "recursive"; then 1645 # If there are subdirs, report their specific --help. 1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1647 test -d "$ac_dir" || 1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1649 continue 1650 ac_builddir=. 1651 1652case "$ac_dir" in 1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1654*) 1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1656 # A ".." for each directory in $ac_dir_suffix. 1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1658 case $ac_top_builddir_sub in 1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1661 esac ;; 1662esac 1663ac_abs_top_builddir=$ac_pwd 1664ac_abs_builddir=$ac_pwd$ac_dir_suffix 1665# for backward compatibility: 1666ac_top_builddir=$ac_top_build_prefix 1667 1668case $srcdir in 1669 .) # We are building in place. 1670 ac_srcdir=. 1671 ac_top_srcdir=$ac_top_builddir_sub 1672 ac_abs_top_srcdir=$ac_pwd ;; 1673 [\\/]* | ?:[\\/]* ) # Absolute name. 1674 ac_srcdir=$srcdir$ac_dir_suffix; 1675 ac_top_srcdir=$srcdir 1676 ac_abs_top_srcdir=$srcdir ;; 1677 *) # Relative name. 1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1679 ac_top_srcdir=$ac_top_build_prefix$srcdir 1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1681esac 1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1683 1684 cd "$ac_dir" || { ac_status=$?; continue; } 1685 # Check for guested configure. 1686 if test -f "$ac_srcdir/configure.gnu"; then 1687 echo && 1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1689 elif test -f "$ac_srcdir/configure"; then 1690 echo && 1691 $SHELL "$ac_srcdir/configure" --help=recursive 1692 else 1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1694 fi || ac_status=$? 1695 cd "$ac_pwd" || { ac_status=$?; break; } 1696 done 1697fi 1698 1699test -n "$ac_init_help" && exit $ac_status 1700if $ac_init_version; then 1701 cat <<\_ACEOF 1702xf86-video-vmware configure 11.0.2 1703generated by GNU Autoconf 2.63 1704 1705Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17062002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1707This configure script is free software; the Free Software Foundation 1708gives unlimited permission to copy, distribute and modify it. 1709_ACEOF 1710 exit 1711fi 1712cat >config.log <<_ACEOF 1713This file contains any messages produced by compilers while 1714running configure, to aid debugging if configure makes a mistake. 1715 1716It was created by xf86-video-vmware $as_me 11.0.2, which was 1717generated by GNU Autoconf 2.63. Invocation command line was 1718 1719 $ $0 $@ 1720 1721_ACEOF 1722exec 5>>config.log 1723{ 1724cat <<_ASUNAME 1725## --------- ## 1726## Platform. ## 1727## --------- ## 1728 1729hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1730uname -m = `(uname -m) 2>/dev/null || echo unknown` 1731uname -r = `(uname -r) 2>/dev/null || echo unknown` 1732uname -s = `(uname -s) 2>/dev/null || echo unknown` 1733uname -v = `(uname -v) 2>/dev/null || echo unknown` 1734 1735/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1736/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1737 1738/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1739/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1740/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1741/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1742/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1743/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1744/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1745 1746_ASUNAME 1747 1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1749for as_dir in $PATH 1750do 1751 IFS=$as_save_IFS 1752 test -z "$as_dir" && as_dir=. 1753 $as_echo "PATH: $as_dir" 1754done 1755IFS=$as_save_IFS 1756 1757} >&5 1758 1759cat >&5 <<_ACEOF 1760 1761 1762## ----------- ## 1763## Core tests. ## 1764## ----------- ## 1765 1766_ACEOF 1767 1768 1769# Keep a trace of the command line. 1770# Strip out --no-create and --no-recursion so they do not pile up. 1771# Strip out --silent because we don't want to record it for future runs. 1772# Also quote any args containing shell meta-characters. 1773# Make two passes to allow for proper duplicate-argument suppression. 1774ac_configure_args= 1775ac_configure_args0= 1776ac_configure_args1= 1777ac_must_keep_next=false 1778for ac_pass in 1 2 1779do 1780 for ac_arg 1781 do 1782 case $ac_arg in 1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1785 | -silent | --silent | --silen | --sile | --sil) 1786 continue ;; 1787 *\'*) 1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1789 esac 1790 case $ac_pass in 1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1792 2) 1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1794 if test $ac_must_keep_next = true; then 1795 ac_must_keep_next=false # Got value, back to normal. 1796 else 1797 case $ac_arg in 1798 *=* | --config-cache | -C | -disable-* | --disable-* \ 1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1801 | -with-* | --with-* | -without-* | --without-* | --x) 1802 case "$ac_configure_args0 " in 1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1804 esac 1805 ;; 1806 -* ) ac_must_keep_next=true ;; 1807 esac 1808 fi 1809 ac_configure_args="$ac_configure_args '$ac_arg'" 1810 ;; 1811 esac 1812 done 1813done 1814$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1815$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1816 1817# When interrupted or exit'd, cleanup temporary files, and complete 1818# config.log. We remove comments because anyway the quotes in there 1819# would cause problems or look ugly. 1820# WARNING: Use '\'' to represent an apostrophe within the trap. 1821# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1822trap 'exit_status=$? 1823 # Save into config.log some information that might help in debugging. 1824 { 1825 echo 1826 1827 cat <<\_ASBOX 1828## ---------------- ## 1829## Cache variables. ## 1830## ---------------- ## 1831_ASBOX 1832 echo 1833 # The following way of writing the cache mishandles newlines in values, 1834( 1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1836 eval ac_val=\$$ac_var 1837 case $ac_val in #( 1838 *${as_nl}*) 1839 case $ac_var in #( 1840 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1842 esac 1843 case $ac_var in #( 1844 _ | IFS | as_nl) ;; #( 1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1846 *) $as_unset $ac_var ;; 1847 esac ;; 1848 esac 1849 done 1850 (set) 2>&1 | 1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1852 *${as_nl}ac_space=\ *) 1853 sed -n \ 1854 "s/'\''/'\''\\\\'\'''\''/g; 1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1856 ;; #( 1857 *) 1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1859 ;; 1860 esac | 1861 sort 1862) 1863 echo 1864 1865 cat <<\_ASBOX 1866## ----------------- ## 1867## Output variables. ## 1868## ----------------- ## 1869_ASBOX 1870 echo 1871 for ac_var in $ac_subst_vars 1872 do 1873 eval ac_val=\$$ac_var 1874 case $ac_val in 1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1876 esac 1877 $as_echo "$ac_var='\''$ac_val'\''" 1878 done | sort 1879 echo 1880 1881 if test -n "$ac_subst_files"; then 1882 cat <<\_ASBOX 1883## ------------------- ## 1884## File substitutions. ## 1885## ------------------- ## 1886_ASBOX 1887 echo 1888 for ac_var in $ac_subst_files 1889 do 1890 eval ac_val=\$$ac_var 1891 case $ac_val in 1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1893 esac 1894 $as_echo "$ac_var='\''$ac_val'\''" 1895 done | sort 1896 echo 1897 fi 1898 1899 if test -s confdefs.h; then 1900 cat <<\_ASBOX 1901## ----------- ## 1902## confdefs.h. ## 1903## ----------- ## 1904_ASBOX 1905 echo 1906 cat confdefs.h 1907 echo 1908 fi 1909 test "$ac_signal" != 0 && 1910 $as_echo "$as_me: caught signal $ac_signal" 1911 $as_echo "$as_me: exit $exit_status" 1912 } >&5 1913 rm -f core *.core core.conftest.* && 1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1915 exit $exit_status 1916' 0 1917for ac_signal in 1 2 13 15; do 1918 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1919done 1920ac_signal=0 1921 1922# confdefs.h avoids OS command line length limits that DEFS can exceed. 1923rm -f -r conftest* confdefs.h 1924 1925# Predefined preprocessor variables. 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_NAME "$PACKAGE_NAME" 1929_ACEOF 1930 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1934_ACEOF 1935 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_VERSION "$PACKAGE_VERSION" 1939_ACEOF 1940 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_STRING "$PACKAGE_STRING" 1944_ACEOF 1945 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1949_ACEOF 1950 1951 1952# Let the site file select an alternate cache file if it wants to. 1953# Prefer an explicitly selected file to automatically selected ones. 1954ac_site_file1=NONE 1955ac_site_file2=NONE 1956if test -n "$CONFIG_SITE"; then 1957 ac_site_file1=$CONFIG_SITE 1958elif test "x$prefix" != xNONE; then 1959 ac_site_file1=$prefix/share/config.site 1960 ac_site_file2=$prefix/etc/config.site 1961else 1962 ac_site_file1=$ac_default_prefix/share/config.site 1963 ac_site_file2=$ac_default_prefix/etc/config.site 1964fi 1965for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1966do 1967 test "x$ac_site_file" = xNONE && continue 1968 if test -r "$ac_site_file"; then 1969 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1970$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1971 sed 's/^/| /' "$ac_site_file" >&5 1972 . "$ac_site_file" 1973 fi 1974done 1975 1976if test -r "$cache_file"; then 1977 # Some versions of bash will fail to source /dev/null (special 1978 # files actually), so we avoid doing that. 1979 if test -f "$cache_file"; then 1980 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1981$as_echo "$as_me: loading cache $cache_file" >&6;} 1982 case $cache_file in 1983 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1984 *) . "./$cache_file";; 1985 esac 1986 fi 1987else 1988 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1989$as_echo "$as_me: creating cache $cache_file" >&6;} 1990 >$cache_file 1991fi 1992 1993# Check that the precious variables saved in the cache have kept the same 1994# value. 1995ac_cache_corrupted=false 1996for ac_var in $ac_precious_vars; do 1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1998 eval ac_new_set=\$ac_env_${ac_var}_set 1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2000 eval ac_new_val=\$ac_env_${ac_var}_value 2001 case $ac_old_set,$ac_new_set in 2002 set,) 2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2004$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2005 ac_cache_corrupted=: ;; 2006 ,set) 2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2008$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2009 ac_cache_corrupted=: ;; 2010 ,);; 2011 *) 2012 if test "x$ac_old_val" != "x$ac_new_val"; then 2013 # differences in whitespace do not lead to failure. 2014 ac_old_val_w=`echo x $ac_old_val` 2015 ac_new_val_w=`echo x $ac_new_val` 2016 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2018$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2019 ac_cache_corrupted=: 2020 else 2021 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2022$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2023 eval $ac_var=\$ac_old_val 2024 fi 2025 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2026$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2027 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2028$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2029 fi;; 2030 esac 2031 # Pass precious variables to config.status. 2032 if test "$ac_new_set" = set; then 2033 case $ac_new_val in 2034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2035 *) ac_arg=$ac_var=$ac_new_val ;; 2036 esac 2037 case " $ac_configure_args " in 2038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2039 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2040 esac 2041 fi 2042done 2043if $ac_cache_corrupted; then 2044 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2046 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2047$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2048 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2049$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2050 { (exit 1); exit 1; }; } 2051fi 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077ac_ext=c 2078ac_cpp='$CPP $CPPFLAGS' 2079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2081ac_compiler_gnu=$ac_cv_c_compiler_gnu 2082 2083 2084 2085ac_config_headers="$ac_config_headers config.h" 2086 2087ac_aux_dir= 2088for ac_dir in . "$srcdir"/.; do 2089 if test -f "$ac_dir/install-sh"; then 2090 ac_aux_dir=$ac_dir 2091 ac_install_sh="$ac_aux_dir/install-sh -c" 2092 break 2093 elif test -f "$ac_dir/install.sh"; then 2094 ac_aux_dir=$ac_dir 2095 ac_install_sh="$ac_aux_dir/install.sh -c" 2096 break 2097 elif test -f "$ac_dir/shtool"; then 2098 ac_aux_dir=$ac_dir 2099 ac_install_sh="$ac_aux_dir/shtool install -c" 2100 break 2101 fi 2102done 2103if test -z "$ac_aux_dir"; then 2104 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2105$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2106 { (exit 1); exit 1; }; } 2107fi 2108 2109# These three variables are undocumented and unsupported, 2110# and are intended to be withdrawn in a future Autoconf release. 2111# They can cause serious problems if a builder's source tree is in a directory 2112# whose full name contains unusual characters. 2113ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2114ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2115ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2116 2117 2118 2119# Initialize Automake 2120am__api_version='1.11' 2121 2122# Find a good install program. We prefer a C program (faster), 2123# so one script is as good as another. But avoid the broken or 2124# incompatible versions: 2125# SysV /etc/install, /usr/sbin/install 2126# SunOS /usr/etc/install 2127# IRIX /sbin/install 2128# AIX /bin/install 2129# AmigaOS /C/install, which installs bootblocks on floppy discs 2130# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2131# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2132# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2133# OS/2's system install, which has a completely different semantic 2134# ./install, which can be erroneously created by make from ./install.sh. 2135# Reject install programs that cannot install multiple files. 2136{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2137$as_echo_n "checking for a BSD-compatible install... " >&6; } 2138if test -z "$INSTALL"; then 2139if test "${ac_cv_path_install+set}" = set; then 2140 $as_echo_n "(cached) " >&6 2141else 2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2143for as_dir in $PATH 2144do 2145 IFS=$as_save_IFS 2146 test -z "$as_dir" && as_dir=. 2147 # Account for people who put trailing slashes in PATH elements. 2148case $as_dir/ in 2149 ./ | .// | /cC/* | \ 2150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2152 /usr/ucb/* ) ;; 2153 *) 2154 # OSF1 and SCO ODT 3.0 have their own names for install. 2155 # Don't use installbsd from OSF since it installs stuff as root 2156 # by default. 2157 for ac_prog in ginstall scoinst install; do 2158 for ac_exec_ext in '' $ac_executable_extensions; do 2159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2160 if test $ac_prog = install && 2161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2162 # AIX install. It has an incompatible calling convention. 2163 : 2164 elif test $ac_prog = install && 2165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2166 # program-specific install script used by HP pwplus--don't use. 2167 : 2168 else 2169 rm -rf conftest.one conftest.two conftest.dir 2170 echo one > conftest.one 2171 echo two > conftest.two 2172 mkdir conftest.dir 2173 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2174 test -s conftest.one && test -s conftest.two && 2175 test -s conftest.dir/conftest.one && 2176 test -s conftest.dir/conftest.two 2177 then 2178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2179 break 3 2180 fi 2181 fi 2182 fi 2183 done 2184 done 2185 ;; 2186esac 2187 2188done 2189IFS=$as_save_IFS 2190 2191rm -rf conftest.one conftest.two conftest.dir 2192 2193fi 2194 if test "${ac_cv_path_install+set}" = set; then 2195 INSTALL=$ac_cv_path_install 2196 else 2197 # As a last resort, use the slow shell script. Don't cache a 2198 # value for INSTALL within a source directory, because that will 2199 # break other packages using the cache if that directory is 2200 # removed, or if the value is a relative name. 2201 INSTALL=$ac_install_sh 2202 fi 2203fi 2204{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2205$as_echo "$INSTALL" >&6; } 2206 2207# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2208# It thinks the first close brace ends the variable substitution. 2209test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2210 2211test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2212 2213test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2214 2215{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2216$as_echo_n "checking whether build environment is sane... " >&6; } 2217# Just in case 2218sleep 1 2219echo timestamp > conftest.file 2220# Reject unsafe characters in $srcdir or the absolute working directory 2221# name. Accept space and tab only in the latter. 2222am_lf=' 2223' 2224case `pwd` in 2225 *[\\\"\#\$\&\'\`$am_lf]*) 2226 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2227$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2228 { (exit 1); exit 1; }; };; 2229esac 2230case $srcdir in 2231 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2232 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2233$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2234 { (exit 1); exit 1; }; };; 2235esac 2236 2237# Do `set' in a subshell so we don't clobber the current shell's 2238# arguments. Must try -L first in case configure is actually a 2239# symlink; some systems play weird games with the mod time of symlinks 2240# (eg FreeBSD returns the mod time of the symlink's containing 2241# directory). 2242if ( 2243 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2244 if test "$*" = "X"; then 2245 # -L didn't work. 2246 set X `ls -t "$srcdir/configure" conftest.file` 2247 fi 2248 rm -f conftest.file 2249 if test "$*" != "X $srcdir/configure conftest.file" \ 2250 && test "$*" != "X conftest.file $srcdir/configure"; then 2251 2252 # If neither matched, then we have a broken ls. This can happen 2253 # if, for instance, CONFIG_SHELL is bash and it inherits a 2254 # broken ls alias from the environment. This has actually 2255 # happened. Such a system could not be considered "sane". 2256 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2257alias in your environment" >&5 2258$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2259alias in your environment" >&2;} 2260 { (exit 1); exit 1; }; } 2261 fi 2262 2263 test "$2" = conftest.file 2264 ) 2265then 2266 # Ok. 2267 : 2268else 2269 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2270Check your system clock" >&5 2271$as_echo "$as_me: error: newly created file is older than distributed files! 2272Check your system clock" >&2;} 2273 { (exit 1); exit 1; }; } 2274fi 2275{ $as_echo "$as_me:$LINENO: result: yes" >&5 2276$as_echo "yes" >&6; } 2277test "$program_prefix" != NONE && 2278 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2279# Use a double $ so make ignores it. 2280test "$program_suffix" != NONE && 2281 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2282# Double any \ or $. 2283# By default was `s,x,x', remove it if useless. 2284ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2285program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2286 2287# expand $ac_aux_dir to an absolute path 2288am_aux_dir=`cd $ac_aux_dir && pwd` 2289 2290if test x"${MISSING+set}" != xset; then 2291 case $am_aux_dir in 2292 *\ * | *\ *) 2293 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2294 *) 2295 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2296 esac 2297fi 2298# Use eval to expand $SHELL 2299if eval "$MISSING --run true"; then 2300 am_missing_run="$MISSING --run " 2301else 2302 am_missing_run= 2303 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2304$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2305fi 2306 2307if test x"${install_sh}" != xset; then 2308 case $am_aux_dir in 2309 *\ * | *\ *) 2310 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2311 *) 2312 install_sh="\${SHELL} $am_aux_dir/install-sh" 2313 esac 2314fi 2315 2316# Installed binaries are usually stripped using `strip' when the user 2317# run `make install-strip'. However `strip' might not be the right 2318# tool to use in cross-compilation environments, therefore Automake 2319# will honor the `STRIP' environment variable to overrule this program. 2320if test "$cross_compiling" != no; then 2321 if test -n "$ac_tool_prefix"; then 2322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2323set dummy ${ac_tool_prefix}strip; ac_word=$2 2324{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2325$as_echo_n "checking for $ac_word... " >&6; } 2326if test "${ac_cv_prog_STRIP+set}" = set; then 2327 $as_echo_n "(cached) " >&6 2328else 2329 if test -n "$STRIP"; then 2330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2331else 2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2333for as_dir in $PATH 2334do 2335 IFS=$as_save_IFS 2336 test -z "$as_dir" && as_dir=. 2337 for ac_exec_ext in '' $ac_executable_extensions; do 2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2341 break 2 2342 fi 2343done 2344done 2345IFS=$as_save_IFS 2346 2347fi 2348fi 2349STRIP=$ac_cv_prog_STRIP 2350if test -n "$STRIP"; then 2351 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2352$as_echo "$STRIP" >&6; } 2353else 2354 { $as_echo "$as_me:$LINENO: result: no" >&5 2355$as_echo "no" >&6; } 2356fi 2357 2358 2359fi 2360if test -z "$ac_cv_prog_STRIP"; then 2361 ac_ct_STRIP=$STRIP 2362 # Extract the first word of "strip", so it can be a program name with args. 2363set dummy strip; ac_word=$2 2364{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2365$as_echo_n "checking for $ac_word... " >&6; } 2366if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2367 $as_echo_n "(cached) " >&6 2368else 2369 if test -n "$ac_ct_STRIP"; then 2370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2371else 2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2373for as_dir in $PATH 2374do 2375 IFS=$as_save_IFS 2376 test -z "$as_dir" && as_dir=. 2377 for ac_exec_ext in '' $ac_executable_extensions; do 2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2379 ac_cv_prog_ac_ct_STRIP="strip" 2380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2381 break 2 2382 fi 2383done 2384done 2385IFS=$as_save_IFS 2386 2387fi 2388fi 2389ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2390if test -n "$ac_ct_STRIP"; then 2391 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2392$as_echo "$ac_ct_STRIP" >&6; } 2393else 2394 { $as_echo "$as_me:$LINENO: result: no" >&5 2395$as_echo "no" >&6; } 2396fi 2397 2398 if test "x$ac_ct_STRIP" = x; then 2399 STRIP=":" 2400 else 2401 case $cross_compiling:$ac_tool_warned in 2402yes:) 2403{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2405ac_tool_warned=yes ;; 2406esac 2407 STRIP=$ac_ct_STRIP 2408 fi 2409else 2410 STRIP="$ac_cv_prog_STRIP" 2411fi 2412 2413fi 2414INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2415 2416{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2417$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2418if test -z "$MKDIR_P"; then 2419 if test "${ac_cv_path_mkdir+set}" = set; then 2420 $as_echo_n "(cached) " >&6 2421else 2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2423for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2424do 2425 IFS=$as_save_IFS 2426 test -z "$as_dir" && as_dir=. 2427 for ac_prog in mkdir gmkdir; do 2428 for ac_exec_ext in '' $ac_executable_extensions; do 2429 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2430 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2431 'mkdir (GNU coreutils) '* | \ 2432 'mkdir (coreutils) '* | \ 2433 'mkdir (fileutils) '4.1*) 2434 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2435 break 3;; 2436 esac 2437 done 2438 done 2439done 2440IFS=$as_save_IFS 2441 2442fi 2443 2444 if test "${ac_cv_path_mkdir+set}" = set; then 2445 MKDIR_P="$ac_cv_path_mkdir -p" 2446 else 2447 # As a last resort, use the slow shell script. Don't cache a 2448 # value for MKDIR_P within a source directory, because that will 2449 # break other packages using the cache if that directory is 2450 # removed, or if the value is a relative name. 2451 test -d ./--version && rmdir ./--version 2452 MKDIR_P="$ac_install_sh -d" 2453 fi 2454fi 2455{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2456$as_echo "$MKDIR_P" >&6; } 2457 2458mkdir_p="$MKDIR_P" 2459case $mkdir_p in 2460 [\\/$]* | ?:[\\/]*) ;; 2461 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2462esac 2463 2464for ac_prog in gawk mawk nawk awk 2465do 2466 # Extract the first word of "$ac_prog", so it can be a program name with args. 2467set dummy $ac_prog; ac_word=$2 2468{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2469$as_echo_n "checking for $ac_word... " >&6; } 2470if test "${ac_cv_prog_AWK+set}" = set; then 2471 $as_echo_n "(cached) " >&6 2472else 2473 if test -n "$AWK"; then 2474 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2475else 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477for as_dir in $PATH 2478do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 for ac_exec_ext in '' $ac_executable_extensions; do 2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2483 ac_cv_prog_AWK="$ac_prog" 2484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2485 break 2 2486 fi 2487done 2488done 2489IFS=$as_save_IFS 2490 2491fi 2492fi 2493AWK=$ac_cv_prog_AWK 2494if test -n "$AWK"; then 2495 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2496$as_echo "$AWK" >&6; } 2497else 2498 { $as_echo "$as_me:$LINENO: result: no" >&5 2499$as_echo "no" >&6; } 2500fi 2501 2502 2503 test -n "$AWK" && break 2504done 2505 2506{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2507$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2508set x ${MAKE-make} 2509ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2510if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2511 $as_echo_n "(cached) " >&6 2512else 2513 cat >conftest.make <<\_ACEOF 2514SHELL = /bin/sh 2515all: 2516 @echo '@@@%%%=$(MAKE)=@@@%%%' 2517_ACEOF 2518# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2519case `${MAKE-make} -f conftest.make 2>/dev/null` in 2520 *@@@%%%=?*=@@@%%%*) 2521 eval ac_cv_prog_make_${ac_make}_set=yes;; 2522 *) 2523 eval ac_cv_prog_make_${ac_make}_set=no;; 2524esac 2525rm -f conftest.make 2526fi 2527if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2528 { $as_echo "$as_me:$LINENO: result: yes" >&5 2529$as_echo "yes" >&6; } 2530 SET_MAKE= 2531else 2532 { $as_echo "$as_me:$LINENO: result: no" >&5 2533$as_echo "no" >&6; } 2534 SET_MAKE="MAKE=${MAKE-make}" 2535fi 2536 2537rm -rf .tst 2>/dev/null 2538mkdir .tst 2>/dev/null 2539if test -d .tst; then 2540 am__leading_dot=. 2541else 2542 am__leading_dot=_ 2543fi 2544rmdir .tst 2>/dev/null 2545 2546if test "`cd $srcdir && pwd`" != "`pwd`"; then 2547 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2548 # is not polluted with repeated "-I." 2549 am__isrc=' -I$(srcdir)' 2550 # test to see if srcdir already configured 2551 if test -f $srcdir/config.status; then 2552 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2553$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2554 { (exit 1); exit 1; }; } 2555 fi 2556fi 2557 2558# test whether we have cygpath 2559if test -z "$CYGPATH_W"; then 2560 if (cygpath --version) >/dev/null 2>/dev/null; then 2561 CYGPATH_W='cygpath -w' 2562 else 2563 CYGPATH_W=echo 2564 fi 2565fi 2566 2567 2568# Define the identity of the package. 2569 PACKAGE='xf86-video-vmware' 2570 VERSION='11.0.2' 2571 2572 2573cat >>confdefs.h <<_ACEOF 2574#define PACKAGE "$PACKAGE" 2575_ACEOF 2576 2577 2578cat >>confdefs.h <<_ACEOF 2579#define VERSION "$VERSION" 2580_ACEOF 2581 2582# Some tools Automake needs. 2583 2584ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2585 2586 2587AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2588 2589 2590AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2591 2592 2593AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2594 2595 2596MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2597 2598# We need awk for the "check" target. The system "awk" is bad on 2599# some platforms. 2600# Always define AMTAR for backward compatibility. 2601 2602AMTAR=${AMTAR-"${am_missing_run}tar"} 2603 2604am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2605 2606 2607 2608 2609 2610 2611{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2612$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2613 # Check whether --enable-maintainer-mode was given. 2614if test "${enable_maintainer_mode+set}" = set; then 2615 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2616else 2617 USE_MAINTAINER_MODE=no 2618fi 2619 2620 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2621$as_echo "$USE_MAINTAINER_MODE" >&6; } 2622 if test $USE_MAINTAINER_MODE = yes; then 2623 MAINTAINER_MODE_TRUE= 2624 MAINTAINER_MODE_FALSE='#' 2625else 2626 MAINTAINER_MODE_TRUE='#' 2627 MAINTAINER_MODE_FALSE= 2628fi 2629 2630 MAINT=$MAINTAINER_MODE_TRUE 2631 2632 2633 2634# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646DEPDIR="${am__leading_dot}deps" 2647 2648ac_config_commands="$ac_config_commands depfiles" 2649 2650 2651am_make=${MAKE-make} 2652cat > confinc << 'END' 2653am__doit: 2654 @echo this is the am__doit target 2655.PHONY: am__doit 2656END 2657# If we don't find an include directive, just comment out the code. 2658{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2659$as_echo_n "checking for style of include used by $am_make... " >&6; } 2660am__include="#" 2661am__quote= 2662_am_result=none 2663# First try GNU make style include. 2664echo "include confinc" > confmf 2665# Ignore all kinds of additional output from `make'. 2666case `$am_make -s -f confmf 2> /dev/null` in #( 2667*the\ am__doit\ target*) 2668 am__include=include 2669 am__quote= 2670 _am_result=GNU 2671 ;; 2672esac 2673# Now try BSD make style include. 2674if test "$am__include" = "#"; then 2675 echo '.include "confinc"' > confmf 2676 case `$am_make -s -f confmf 2> /dev/null` in #( 2677 *the\ am__doit\ target*) 2678 am__include=.include 2679 am__quote="\"" 2680 _am_result=BSD 2681 ;; 2682 esac 2683fi 2684 2685 2686{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2687$as_echo "$_am_result" >&6; } 2688rm -f confinc confmf 2689 2690# Check whether --enable-dependency-tracking was given. 2691if test "${enable_dependency_tracking+set}" = set; then 2692 enableval=$enable_dependency_tracking; 2693fi 2694 2695if test "x$enable_dependency_tracking" != xno; then 2696 am_depcomp="$ac_aux_dir/depcomp" 2697 AMDEPBACKSLASH='\' 2698fi 2699 if test "x$enable_dependency_tracking" != xno; then 2700 AMDEP_TRUE= 2701 AMDEP_FALSE='#' 2702else 2703 AMDEP_TRUE='#' 2704 AMDEP_FALSE= 2705fi 2706 2707 2708ac_ext=c 2709ac_cpp='$CPP $CPPFLAGS' 2710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2712ac_compiler_gnu=$ac_cv_c_compiler_gnu 2713if test -n "$ac_tool_prefix"; then 2714 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2715set dummy ${ac_tool_prefix}gcc; ac_word=$2 2716{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2717$as_echo_n "checking for $ac_word... " >&6; } 2718if test "${ac_cv_prog_CC+set}" = set; then 2719 $as_echo_n "(cached) " >&6 2720else 2721 if test -n "$CC"; then 2722 ac_cv_prog_CC="$CC" # Let the user override the test. 2723else 2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2725for as_dir in $PATH 2726do 2727 IFS=$as_save_IFS 2728 test -z "$as_dir" && as_dir=. 2729 for ac_exec_ext in '' $ac_executable_extensions; do 2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2731 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2733 break 2 2734 fi 2735done 2736done 2737IFS=$as_save_IFS 2738 2739fi 2740fi 2741CC=$ac_cv_prog_CC 2742if test -n "$CC"; then 2743 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2744$as_echo "$CC" >&6; } 2745else 2746 { $as_echo "$as_me:$LINENO: result: no" >&5 2747$as_echo "no" >&6; } 2748fi 2749 2750 2751fi 2752if test -z "$ac_cv_prog_CC"; then 2753 ac_ct_CC=$CC 2754 # Extract the first word of "gcc", so it can be a program name with args. 2755set dummy gcc; ac_word=$2 2756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2757$as_echo_n "checking for $ac_word... " >&6; } 2758if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2759 $as_echo_n "(cached) " >&6 2760else 2761 if test -n "$ac_ct_CC"; then 2762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2763else 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2771 ac_cv_prog_ac_ct_CC="gcc" 2772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776done 2777IFS=$as_save_IFS 2778 2779fi 2780fi 2781ac_ct_CC=$ac_cv_prog_ac_ct_CC 2782if test -n "$ac_ct_CC"; then 2783 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2784$as_echo "$ac_ct_CC" >&6; } 2785else 2786 { $as_echo "$as_me:$LINENO: result: no" >&5 2787$as_echo "no" >&6; } 2788fi 2789 2790 if test "x$ac_ct_CC" = x; then 2791 CC="" 2792 else 2793 case $cross_compiling:$ac_tool_warned in 2794yes:) 2795{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2797ac_tool_warned=yes ;; 2798esac 2799 CC=$ac_ct_CC 2800 fi 2801else 2802 CC="$ac_cv_prog_CC" 2803fi 2804 2805if test -z "$CC"; then 2806 if test -n "$ac_tool_prefix"; then 2807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2808set dummy ${ac_tool_prefix}cc; ac_word=$2 2809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2810$as_echo_n "checking for $ac_word... " >&6; } 2811if test "${ac_cv_prog_CC+set}" = set; then 2812 $as_echo_n "(cached) " >&6 2813else 2814 if test -n "$CC"; then 2815 ac_cv_prog_CC="$CC" # Let the user override the test. 2816else 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2824 ac_cv_prog_CC="${ac_tool_prefix}cc" 2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828done 2829done 2830IFS=$as_save_IFS 2831 2832fi 2833fi 2834CC=$ac_cv_prog_CC 2835if test -n "$CC"; then 2836 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2837$as_echo "$CC" >&6; } 2838else 2839 { $as_echo "$as_me:$LINENO: result: no" >&5 2840$as_echo "no" >&6; } 2841fi 2842 2843 2844 fi 2845fi 2846if test -z "$CC"; then 2847 # Extract the first word of "cc", so it can be a program name with args. 2848set dummy cc; ac_word=$2 2849{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2850$as_echo_n "checking for $ac_word... " >&6; } 2851if test "${ac_cv_prog_CC+set}" = set; then 2852 $as_echo_n "(cached) " >&6 2853else 2854 if test -n "$CC"; then 2855 ac_cv_prog_CC="$CC" # Let the user override the test. 2856else 2857 ac_prog_rejected=no 2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2859for as_dir in $PATH 2860do 2861 IFS=$as_save_IFS 2862 test -z "$as_dir" && as_dir=. 2863 for ac_exec_ext in '' $ac_executable_extensions; do 2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2866 ac_prog_rejected=yes 2867 continue 2868 fi 2869 ac_cv_prog_CC="cc" 2870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874done 2875IFS=$as_save_IFS 2876 2877if test $ac_prog_rejected = yes; then 2878 # We found a bogon in the path, so make sure we never use it. 2879 set dummy $ac_cv_prog_CC 2880 shift 2881 if test $# != 0; then 2882 # We chose a different compiler from the bogus one. 2883 # However, it has the same basename, so the bogon will be chosen 2884 # first if we set CC to just the basename; use the full file name. 2885 shift 2886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2887 fi 2888fi 2889fi 2890fi 2891CC=$ac_cv_prog_CC 2892if test -n "$CC"; then 2893 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2894$as_echo "$CC" >&6; } 2895else 2896 { $as_echo "$as_me:$LINENO: result: no" >&5 2897$as_echo "no" >&6; } 2898fi 2899 2900 2901fi 2902if test -z "$CC"; then 2903 if test -n "$ac_tool_prefix"; then 2904 for ac_prog in cl.exe 2905 do 2906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2907set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2909$as_echo_n "checking for $ac_word... " >&6; } 2910if test "${ac_cv_prog_CC+set}" = set; then 2911 $as_echo_n "(cached) " >&6 2912else 2913 if test -n "$CC"; then 2914 ac_cv_prog_CC="$CC" # Let the user override the test. 2915else 2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2917for as_dir in $PATH 2918do 2919 IFS=$as_save_IFS 2920 test -z "$as_dir" && as_dir=. 2921 for ac_exec_ext in '' $ac_executable_extensions; do 2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2925 break 2 2926 fi 2927done 2928done 2929IFS=$as_save_IFS 2930 2931fi 2932fi 2933CC=$ac_cv_prog_CC 2934if test -n "$CC"; then 2935 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2936$as_echo "$CC" >&6; } 2937else 2938 { $as_echo "$as_me:$LINENO: result: no" >&5 2939$as_echo "no" >&6; } 2940fi 2941 2942 2943 test -n "$CC" && break 2944 done 2945fi 2946if test -z "$CC"; then 2947 ac_ct_CC=$CC 2948 for ac_prog in cl.exe 2949do 2950 # Extract the first word of "$ac_prog", so it can be a program name with args. 2951set dummy $ac_prog; ac_word=$2 2952{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2953$as_echo_n "checking for $ac_word... " >&6; } 2954if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2955 $as_echo_n "(cached) " >&6 2956else 2957 if test -n "$ac_ct_CC"; then 2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2967 ac_cv_prog_ac_ct_CC="$ac_prog" 2968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977ac_ct_CC=$ac_cv_prog_ac_ct_CC 2978if test -n "$ac_ct_CC"; then 2979 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2980$as_echo "$ac_ct_CC" >&6; } 2981else 2982 { $as_echo "$as_me:$LINENO: result: no" >&5 2983$as_echo "no" >&6; } 2984fi 2985 2986 2987 test -n "$ac_ct_CC" && break 2988done 2989 2990 if test "x$ac_ct_CC" = x; then 2991 CC="" 2992 else 2993 case $cross_compiling:$ac_tool_warned in 2994yes:) 2995{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2997ac_tool_warned=yes ;; 2998esac 2999 CC=$ac_ct_CC 3000 fi 3001fi 3002 3003fi 3004 3005 3006test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3008{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3009See \`config.log' for more details." >&5 3010$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3011See \`config.log' for more details." >&2;} 3012 { (exit 1); exit 1; }; }; } 3013 3014# Provide some information about the compiler. 3015$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3016set X $ac_compile 3017ac_compiler=$2 3018{ (ac_try="$ac_compiler --version >&5" 3019case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022esac 3023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3024$as_echo "$ac_try_echo") >&5 3025 (eval "$ac_compiler --version >&5") 2>&5 3026 ac_status=$? 3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3028 (exit $ac_status); } 3029{ (ac_try="$ac_compiler -v >&5" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3035$as_echo "$ac_try_echo") >&5 3036 (eval "$ac_compiler -v >&5") 2>&5 3037 ac_status=$? 3038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); } 3040{ (ac_try="$ac_compiler -V >&5" 3041case "(($ac_try" in 3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3043 *) ac_try_echo=$ac_try;; 3044esac 3045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3046$as_echo "$ac_try_echo") >&5 3047 (eval "$ac_compiler -V >&5") 2>&5 3048 ac_status=$? 3049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); } 3051 3052cat >conftest.$ac_ext <<_ACEOF 3053/* confdefs.h. */ 3054_ACEOF 3055cat confdefs.h >>conftest.$ac_ext 3056cat >>conftest.$ac_ext <<_ACEOF 3057/* end confdefs.h. */ 3058 3059int 3060main () 3061{ 3062 3063 ; 3064 return 0; 3065} 3066_ACEOF 3067ac_clean_files_save=$ac_clean_files 3068ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3069# Try to create an executable without -o first, disregard a.out. 3070# It will help us diagnose broken compilers, and finding out an intuition 3071# of exeext. 3072{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3073$as_echo_n "checking for C compiler default output file name... " >&6; } 3074ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3075 3076# The possible output files: 3077ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3078 3079ac_rmfiles= 3080for ac_file in $ac_files 3081do 3082 case $ac_file in 3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3084 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3085 esac 3086done 3087rm -f $ac_rmfiles 3088 3089if { (ac_try="$ac_link_default" 3090case "(($ac_try" in 3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3092 *) ac_try_echo=$ac_try;; 3093esac 3094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3095$as_echo "$ac_try_echo") >&5 3096 (eval "$ac_link_default") 2>&5 3097 ac_status=$? 3098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); }; then 3100 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3101# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3102# in a Makefile. We should not override ac_cv_exeext if it was cached, 3103# so that the user can short-circuit this test for compilers unknown to 3104# Autoconf. 3105for ac_file in $ac_files '' 3106do 3107 test -f "$ac_file" || continue 3108 case $ac_file in 3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3110 ;; 3111 [ab].out ) 3112 # We found the default executable, but exeext='' is most 3113 # certainly right. 3114 break;; 3115 *.* ) 3116 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3117 then :; else 3118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3119 fi 3120 # We set ac_cv_exeext here because the later test for it is not 3121 # safe: cross compilers may not add the suffix if given an `-o' 3122 # argument, so we may need to know it at that point already. 3123 # Even if this section looks crufty: it has the advantage of 3124 # actually working. 3125 break;; 3126 * ) 3127 break;; 3128 esac 3129done 3130test "$ac_cv_exeext" = no && ac_cv_exeext= 3131 3132else 3133 ac_file='' 3134fi 3135 3136{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3137$as_echo "$ac_file" >&6; } 3138if test -z "$ac_file"; then 3139 $as_echo "$as_me: failed program was:" >&5 3140sed 's/^/| /' conftest.$ac_ext >&5 3141 3142{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3144{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3145See \`config.log' for more details." >&5 3146$as_echo "$as_me: error: C compiler cannot create executables 3147See \`config.log' for more details." >&2;} 3148 { (exit 77); exit 77; }; }; } 3149fi 3150 3151ac_exeext=$ac_cv_exeext 3152 3153# Check that the compiler produces executables we can run. If not, either 3154# the compiler is broken, or we cross compile. 3155{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3156$as_echo_n "checking whether the C compiler works... " >&6; } 3157# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3158# If not cross compiling, check that we can run a simple program. 3159if test "$cross_compiling" != yes; then 3160 if { ac_try='./$ac_file' 3161 { (case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3166$as_echo "$ac_try_echo") >&5 3167 (eval "$ac_try") 2>&5 3168 ac_status=$? 3169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170 (exit $ac_status); }; }; then 3171 cross_compiling=no 3172 else 3173 if test "$cross_compiling" = maybe; then 3174 cross_compiling=yes 3175 else 3176 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3178{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3179If you meant to cross compile, use \`--host'. 3180See \`config.log' for more details." >&5 3181$as_echo "$as_me: error: cannot run C compiled programs. 3182If you meant to cross compile, use \`--host'. 3183See \`config.log' for more details." >&2;} 3184 { (exit 1); exit 1; }; }; } 3185 fi 3186 fi 3187fi 3188{ $as_echo "$as_me:$LINENO: result: yes" >&5 3189$as_echo "yes" >&6; } 3190 3191rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3192ac_clean_files=$ac_clean_files_save 3193# Check that the compiler produces executables we can run. If not, either 3194# the compiler is broken, or we cross compile. 3195{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3196$as_echo_n "checking whether we are cross compiling... " >&6; } 3197{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3198$as_echo "$cross_compiling" >&6; } 3199 3200{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3201$as_echo_n "checking for suffix of executables... " >&6; } 3202if { (ac_try="$ac_link" 3203case "(($ac_try" in 3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3205 *) ac_try_echo=$ac_try;; 3206esac 3207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3208$as_echo "$ac_try_echo") >&5 3209 (eval "$ac_link") 2>&5 3210 ac_status=$? 3211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3212 (exit $ac_status); }; then 3213 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3214# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3215# work properly (i.e., refer to `conftest.exe'), while it won't with 3216# `rm'. 3217for ac_file in conftest.exe conftest conftest.*; do 3218 test -f "$ac_file" || continue 3219 case $ac_file in 3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3222 break;; 3223 * ) break;; 3224 esac 3225done 3226else 3227 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3229{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3230See \`config.log' for more details." >&5 3231$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3232See \`config.log' for more details." >&2;} 3233 { (exit 1); exit 1; }; }; } 3234fi 3235 3236rm -f conftest$ac_cv_exeext 3237{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3238$as_echo "$ac_cv_exeext" >&6; } 3239 3240rm -f conftest.$ac_ext 3241EXEEXT=$ac_cv_exeext 3242ac_exeext=$EXEEXT 3243{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3244$as_echo_n "checking for suffix of object files... " >&6; } 3245if test "${ac_cv_objext+set}" = set; then 3246 $as_echo_n "(cached) " >&6 3247else 3248 cat >conftest.$ac_ext <<_ACEOF 3249/* confdefs.h. */ 3250_ACEOF 3251cat confdefs.h >>conftest.$ac_ext 3252cat >>conftest.$ac_ext <<_ACEOF 3253/* end confdefs.h. */ 3254 3255int 3256main () 3257{ 3258 3259 ; 3260 return 0; 3261} 3262_ACEOF 3263rm -f conftest.o conftest.obj 3264if { (ac_try="$ac_compile" 3265case "(($ac_try" in 3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3267 *) ac_try_echo=$ac_try;; 3268esac 3269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3270$as_echo "$ac_try_echo") >&5 3271 (eval "$ac_compile") 2>&5 3272 ac_status=$? 3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274 (exit $ac_status); }; then 3275 for ac_file in conftest.o conftest.obj conftest.*; do 3276 test -f "$ac_file" || continue; 3277 case $ac_file in 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3279 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3280 break;; 3281 esac 3282done 3283else 3284 $as_echo "$as_me: failed program was:" >&5 3285sed 's/^/| /' conftest.$ac_ext >&5 3286 3287{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3289{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3290See \`config.log' for more details." >&5 3291$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3292See \`config.log' for more details." >&2;} 3293 { (exit 1); exit 1; }; }; } 3294fi 3295 3296rm -f conftest.$ac_cv_objext conftest.$ac_ext 3297fi 3298{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3299$as_echo "$ac_cv_objext" >&6; } 3300OBJEXT=$ac_cv_objext 3301ac_objext=$OBJEXT 3302{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3303$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3304if test "${ac_cv_c_compiler_gnu+set}" = set; then 3305 $as_echo_n "(cached) " >&6 3306else 3307 cat >conftest.$ac_ext <<_ACEOF 3308/* confdefs.h. */ 3309_ACEOF 3310cat confdefs.h >>conftest.$ac_ext 3311cat >>conftest.$ac_ext <<_ACEOF 3312/* end confdefs.h. */ 3313 3314int 3315main () 3316{ 3317#ifndef __GNUC__ 3318 choke me 3319#endif 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325rm -f conftest.$ac_objext 3326if { (ac_try="$ac_compile" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3332$as_echo "$ac_try_echo") >&5 3333 (eval "$ac_compile") 2>conftest.er1 3334 ac_status=$? 3335 grep -v '^ *+' conftest.er1 >conftest.err 3336 rm -f conftest.er1 3337 cat conftest.err >&5 3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } && { 3340 test -z "$ac_c_werror_flag" || 3341 test ! -s conftest.err 3342 } && test -s conftest.$ac_objext; then 3343 ac_compiler_gnu=yes 3344else 3345 $as_echo "$as_me: failed program was:" >&5 3346sed 's/^/| /' conftest.$ac_ext >&5 3347 3348 ac_compiler_gnu=no 3349fi 3350 3351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3352ac_cv_c_compiler_gnu=$ac_compiler_gnu 3353 3354fi 3355{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3356$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3357if test $ac_compiler_gnu = yes; then 3358 GCC=yes 3359else 3360 GCC= 3361fi 3362ac_test_CFLAGS=${CFLAGS+set} 3363ac_save_CFLAGS=$CFLAGS 3364{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3365$as_echo_n "checking whether $CC accepts -g... " >&6; } 3366if test "${ac_cv_prog_cc_g+set}" = set; then 3367 $as_echo_n "(cached) " >&6 3368else 3369 ac_save_c_werror_flag=$ac_c_werror_flag 3370 ac_c_werror_flag=yes 3371 ac_cv_prog_cc_g=no 3372 CFLAGS="-g" 3373 cat >conftest.$ac_ext <<_ACEOF 3374/* confdefs.h. */ 3375_ACEOF 3376cat confdefs.h >>conftest.$ac_ext 3377cat >>conftest.$ac_ext <<_ACEOF 3378/* end confdefs.h. */ 3379 3380int 3381main () 3382{ 3383 3384 ; 3385 return 0; 3386} 3387_ACEOF 3388rm -f conftest.$ac_objext 3389if { (ac_try="$ac_compile" 3390case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393esac 3394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3395$as_echo "$ac_try_echo") >&5 3396 (eval "$ac_compile") 2>conftest.er1 3397 ac_status=$? 3398 grep -v '^ *+' conftest.er1 >conftest.err 3399 rm -f conftest.er1 3400 cat conftest.err >&5 3401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3402 (exit $ac_status); } && { 3403 test -z "$ac_c_werror_flag" || 3404 test ! -s conftest.err 3405 } && test -s conftest.$ac_objext; then 3406 ac_cv_prog_cc_g=yes 3407else 3408 $as_echo "$as_me: failed program was:" >&5 3409sed 's/^/| /' conftest.$ac_ext >&5 3410 3411 CFLAGS="" 3412 cat >conftest.$ac_ext <<_ACEOF 3413/* confdefs.h. */ 3414_ACEOF 3415cat confdefs.h >>conftest.$ac_ext 3416cat >>conftest.$ac_ext <<_ACEOF 3417/* end confdefs.h. */ 3418 3419int 3420main () 3421{ 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427rm -f conftest.$ac_objext 3428if { (ac_try="$ac_compile" 3429case "(($ac_try" in 3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3431 *) ac_try_echo=$ac_try;; 3432esac 3433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3434$as_echo "$ac_try_echo") >&5 3435 (eval "$ac_compile") 2>conftest.er1 3436 ac_status=$? 3437 grep -v '^ *+' conftest.er1 >conftest.err 3438 rm -f conftest.er1 3439 cat conftest.err >&5 3440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); } && { 3442 test -z "$ac_c_werror_flag" || 3443 test ! -s conftest.err 3444 } && test -s conftest.$ac_objext; then 3445 : 3446else 3447 $as_echo "$as_me: failed program was:" >&5 3448sed 's/^/| /' conftest.$ac_ext >&5 3449 3450 ac_c_werror_flag=$ac_save_c_werror_flag 3451 CFLAGS="-g" 3452 cat >conftest.$ac_ext <<_ACEOF 3453/* confdefs.h. */ 3454_ACEOF 3455cat confdefs.h >>conftest.$ac_ext 3456cat >>conftest.$ac_ext <<_ACEOF 3457/* end confdefs.h. */ 3458 3459int 3460main () 3461{ 3462 3463 ; 3464 return 0; 3465} 3466_ACEOF 3467rm -f conftest.$ac_objext 3468if { (ac_try="$ac_compile" 3469case "(($ac_try" in 3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3471 *) ac_try_echo=$ac_try;; 3472esac 3473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3474$as_echo "$ac_try_echo") >&5 3475 (eval "$ac_compile") 2>conftest.er1 3476 ac_status=$? 3477 grep -v '^ *+' conftest.er1 >conftest.err 3478 rm -f conftest.er1 3479 cat conftest.err >&5 3480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3481 (exit $ac_status); } && { 3482 test -z "$ac_c_werror_flag" || 3483 test ! -s conftest.err 3484 } && test -s conftest.$ac_objext; then 3485 ac_cv_prog_cc_g=yes 3486else 3487 $as_echo "$as_me: failed program was:" >&5 3488sed 's/^/| /' conftest.$ac_ext >&5 3489 3490 3491fi 3492 3493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3494fi 3495 3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3497fi 3498 3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3500 ac_c_werror_flag=$ac_save_c_werror_flag 3501fi 3502{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3503$as_echo "$ac_cv_prog_cc_g" >&6; } 3504if test "$ac_test_CFLAGS" = set; then 3505 CFLAGS=$ac_save_CFLAGS 3506elif test $ac_cv_prog_cc_g = yes; then 3507 if test "$GCC" = yes; then 3508 CFLAGS="-g -O2" 3509 else 3510 CFLAGS="-g" 3511 fi 3512else 3513 if test "$GCC" = yes; then 3514 CFLAGS="-O2" 3515 else 3516 CFLAGS= 3517 fi 3518fi 3519{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3520$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3521if test "${ac_cv_prog_cc_c89+set}" = set; then 3522 $as_echo_n "(cached) " >&6 3523else 3524 ac_cv_prog_cc_c89=no 3525ac_save_CC=$CC 3526cat >conftest.$ac_ext <<_ACEOF 3527/* confdefs.h. */ 3528_ACEOF 3529cat confdefs.h >>conftest.$ac_ext 3530cat >>conftest.$ac_ext <<_ACEOF 3531/* end confdefs.h. */ 3532#include <stdarg.h> 3533#include <stdio.h> 3534#include <sys/types.h> 3535#include <sys/stat.h> 3536/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3537struct buf { int x; }; 3538FILE * (*rcsopen) (struct buf *, struct stat *, int); 3539static char *e (p, i) 3540 char **p; 3541 int i; 3542{ 3543 return p[i]; 3544} 3545static char *f (char * (*g) (char **, int), char **p, ...) 3546{ 3547 char *s; 3548 va_list v; 3549 va_start (v,p); 3550 s = g (p, va_arg (v,int)); 3551 va_end (v); 3552 return s; 3553} 3554 3555/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3556 function prototypes and stuff, but not '\xHH' hex character constants. 3557 These don't provoke an error unfortunately, instead are silently treated 3558 as 'x'. The following induces an error, until -std is added to get 3559 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3560 array size at least. It's necessary to write '\x00'==0 to get something 3561 that's true only with -std. */ 3562int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3563 3564/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3565 inside strings and character constants. */ 3566#define FOO(x) 'x' 3567int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3568 3569int test (int i, double x); 3570struct s1 {int (*f) (int a);}; 3571struct s2 {int (*f) (double a);}; 3572int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3573int argc; 3574char **argv; 3575int 3576main () 3577{ 3578return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3579 ; 3580 return 0; 3581} 3582_ACEOF 3583for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3584 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3585do 3586 CC="$ac_save_CC $ac_arg" 3587 rm -f conftest.$ac_objext 3588if { (ac_try="$ac_compile" 3589case "(($ac_try" in 3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3591 *) ac_try_echo=$ac_try;; 3592esac 3593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3594$as_echo "$ac_try_echo") >&5 3595 (eval "$ac_compile") 2>conftest.er1 3596 ac_status=$? 3597 grep -v '^ *+' conftest.er1 >conftest.err 3598 rm -f conftest.er1 3599 cat conftest.err >&5 3600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3601 (exit $ac_status); } && { 3602 test -z "$ac_c_werror_flag" || 3603 test ! -s conftest.err 3604 } && test -s conftest.$ac_objext; then 3605 ac_cv_prog_cc_c89=$ac_arg 3606else 3607 $as_echo "$as_me: failed program was:" >&5 3608sed 's/^/| /' conftest.$ac_ext >&5 3609 3610 3611fi 3612 3613rm -f core conftest.err conftest.$ac_objext 3614 test "x$ac_cv_prog_cc_c89" != "xno" && break 3615done 3616rm -f conftest.$ac_ext 3617CC=$ac_save_CC 3618 3619fi 3620# AC_CACHE_VAL 3621case "x$ac_cv_prog_cc_c89" in 3622 x) 3623 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3624$as_echo "none needed" >&6; } ;; 3625 xno) 3626 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3627$as_echo "unsupported" >&6; } ;; 3628 *) 3629 CC="$CC $ac_cv_prog_cc_c89" 3630 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3631$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3632esac 3633 3634 3635ac_ext=c 3636ac_cpp='$CPP $CPPFLAGS' 3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3639ac_compiler_gnu=$ac_cv_c_compiler_gnu 3640 3641depcc="$CC" am_compiler_list= 3642 3643{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3644$as_echo_n "checking dependency style of $depcc... " >&6; } 3645if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3646 $as_echo_n "(cached) " >&6 3647else 3648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3649 # We make a subdir and do the tests there. Otherwise we can end up 3650 # making bogus files that we don't know about and never remove. For 3651 # instance it was reported that on HP-UX the gcc test will end up 3652 # making a dummy file named `D' -- because `-MD' means `put the output 3653 # in D'. 3654 mkdir conftest.dir 3655 # Copy depcomp to subdir because otherwise we won't find it if we're 3656 # using a relative directory. 3657 cp "$am_depcomp" conftest.dir 3658 cd conftest.dir 3659 # We will build objects and dependencies in a subdirectory because 3660 # it helps to detect inapplicable dependency modes. For instance 3661 # both Tru64's cc and ICC support -MD to output dependencies as a 3662 # side effect of compilation, but ICC will put the dependencies in 3663 # the current directory while Tru64 will put them in the object 3664 # directory. 3665 mkdir sub 3666 3667 am_cv_CC_dependencies_compiler_type=none 3668 if test "$am_compiler_list" = ""; then 3669 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3670 fi 3671 am__universal=false 3672 case " $depcc " in #( 3673 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3674 esac 3675 3676 for depmode in $am_compiler_list; do 3677 # Setup a source with many dependencies, because some compilers 3678 # like to wrap large dependency lists on column 80 (with \), and 3679 # we should not choose a depcomp mode which is confused by this. 3680 # 3681 # We need to recreate these files for each test, as the compiler may 3682 # overwrite some of them when testing with obscure command lines. 3683 # This happens at least with the AIX C compiler. 3684 : > sub/conftest.c 3685 for i in 1 2 3 4 5 6; do 3686 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3687 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3688 # Solaris 8's {/usr,}/bin/sh. 3689 touch sub/conftst$i.h 3690 done 3691 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3692 3693 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3694 # mode. It turns out that the SunPro C++ compiler does not properly 3695 # handle `-M -o', and we need to detect this. Also, some Intel 3696 # versions had trouble with output in subdirs 3697 am__obj=sub/conftest.${OBJEXT-o} 3698 am__minus_obj="-o $am__obj" 3699 case $depmode in 3700 gcc) 3701 # This depmode causes a compiler race in universal mode. 3702 test "$am__universal" = false || continue 3703 ;; 3704 nosideeffect) 3705 # after this tag, mechanisms are not by side-effect, so they'll 3706 # only be used when explicitly requested 3707 if test "x$enable_dependency_tracking" = xyes; then 3708 continue 3709 else 3710 break 3711 fi 3712 ;; 3713 msvisualcpp | msvcmsys) 3714 # This compiler won't grok `-c -o', but also, the minuso test has 3715 # not run yet. These depmodes are late enough in the game, and 3716 # so weak that their functioning should not be impacted. 3717 am__obj=conftest.${OBJEXT-o} 3718 am__minus_obj= 3719 ;; 3720 none) break ;; 3721 esac 3722 if depmode=$depmode \ 3723 source=sub/conftest.c object=$am__obj \ 3724 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3725 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3726 >/dev/null 2>conftest.err && 3727 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3728 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3729 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3730 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3731 # icc doesn't choke on unknown options, it will just issue warnings 3732 # or remarks (even with -Werror). So we grep stderr for any message 3733 # that says an option was ignored or not supported. 3734 # When given -MP, icc 7.0 and 7.1 complain thusly: 3735 # icc: Command line warning: ignoring option '-M'; no argument required 3736 # The diagnosis changed in icc 8.0: 3737 # icc: Command line remark: option '-MP' not supported 3738 if (grep 'ignoring option' conftest.err || 3739 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3740 am_cv_CC_dependencies_compiler_type=$depmode 3741 break 3742 fi 3743 fi 3744 done 3745 3746 cd .. 3747 rm -rf conftest.dir 3748else 3749 am_cv_CC_dependencies_compiler_type=none 3750fi 3751 3752fi 3753{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3754$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3755CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3756 3757 if 3758 test "x$enable_dependency_tracking" != xno \ 3759 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3760 am__fastdepCC_TRUE= 3761 am__fastdepCC_FALSE='#' 3762else 3763 am__fastdepCC_TRUE='#' 3764 am__fastdepCC_FALSE= 3765fi 3766 3767 3768 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 3769$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3770if test "${ac_cv_prog_cc_c99+set}" = set; then 3771 $as_echo_n "(cached) " >&6 3772else 3773 ac_cv_prog_cc_c99=no 3774ac_save_CC=$CC 3775cat >conftest.$ac_ext <<_ACEOF 3776/* confdefs.h. */ 3777_ACEOF 3778cat confdefs.h >>conftest.$ac_ext 3779cat >>conftest.$ac_ext <<_ACEOF 3780/* end confdefs.h. */ 3781#include <stdarg.h> 3782#include <stdbool.h> 3783#include <stdlib.h> 3784#include <wchar.h> 3785#include <stdio.h> 3786 3787// Check varargs macros. These examples are taken from C99 6.10.3.5. 3788#define debug(...) fprintf (stderr, __VA_ARGS__) 3789#define showlist(...) puts (#__VA_ARGS__) 3790#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3791static void 3792test_varargs_macros (void) 3793{ 3794 int x = 1234; 3795 int y = 5678; 3796 debug ("Flag"); 3797 debug ("X = %d\n", x); 3798 showlist (The first, second, and third items.); 3799 report (x>y, "x is %d but y is %d", x, y); 3800} 3801 3802// Check long long types. 3803#define BIG64 18446744073709551615ull 3804#define BIG32 4294967295ul 3805#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3806#if !BIG_OK 3807 your preprocessor is broken; 3808#endif 3809#if BIG_OK 3810#else 3811 your preprocessor is broken; 3812#endif 3813static long long int bignum = -9223372036854775807LL; 3814static unsigned long long int ubignum = BIG64; 3815 3816struct incomplete_array 3817{ 3818 int datasize; 3819 double data[]; 3820}; 3821 3822struct named_init { 3823 int number; 3824 const wchar_t *name; 3825 double average; 3826}; 3827 3828typedef const char *ccp; 3829 3830static inline int 3831test_restrict (ccp restrict text) 3832{ 3833 // See if C++-style comments work. 3834 // Iterate through items via the restricted pointer. 3835 // Also check for declarations in for loops. 3836 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3837 continue; 3838 return 0; 3839} 3840 3841// Check varargs and va_copy. 3842static void 3843test_varargs (const char *format, ...) 3844{ 3845 va_list args; 3846 va_start (args, format); 3847 va_list args_copy; 3848 va_copy (args_copy, args); 3849 3850 const char *str; 3851 int number; 3852 float fnumber; 3853 3854 while (*format) 3855 { 3856 switch (*format++) 3857 { 3858 case 's': // string 3859 str = va_arg (args_copy, const char *); 3860 break; 3861 case 'd': // int 3862 number = va_arg (args_copy, int); 3863 break; 3864 case 'f': // float 3865 fnumber = va_arg (args_copy, double); 3866 break; 3867 default: 3868 break; 3869 } 3870 } 3871 va_end (args_copy); 3872 va_end (args); 3873} 3874 3875int 3876main () 3877{ 3878 3879 // Check bool. 3880 _Bool success = false; 3881 3882 // Check restrict. 3883 if (test_restrict ("String literal") == 0) 3884 success = true; 3885 char *restrict newvar = "Another string"; 3886 3887 // Check varargs. 3888 test_varargs ("s, d' f .", "string", 65, 34.234); 3889 test_varargs_macros (); 3890 3891 // Check flexible array members. 3892 struct incomplete_array *ia = 3893 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3894 ia->datasize = 10; 3895 for (int i = 0; i < ia->datasize; ++i) 3896 ia->data[i] = i * 1.234; 3897 3898 // Check named initializers. 3899 struct named_init ni = { 3900 .number = 34, 3901 .name = L"Test wide string", 3902 .average = 543.34343, 3903 }; 3904 3905 ni.number = 58; 3906 3907 int dynamic_array[ni.number]; 3908 dynamic_array[ni.number - 1] = 543; 3909 3910 // work around unused variable warnings 3911 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3912 || dynamic_array[ni.number - 1] != 543); 3913 3914 ; 3915 return 0; 3916} 3917_ACEOF 3918for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3919do 3920 CC="$ac_save_CC $ac_arg" 3921 rm -f conftest.$ac_objext 3922if { (ac_try="$ac_compile" 3923case "(($ac_try" in 3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3925 *) ac_try_echo=$ac_try;; 3926esac 3927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3928$as_echo "$ac_try_echo") >&5 3929 (eval "$ac_compile") 2>conftest.er1 3930 ac_status=$? 3931 grep -v '^ *+' conftest.er1 >conftest.err 3932 rm -f conftest.er1 3933 cat conftest.err >&5 3934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3935 (exit $ac_status); } && { 3936 test -z "$ac_c_werror_flag" || 3937 test ! -s conftest.err 3938 } && test -s conftest.$ac_objext; then 3939 ac_cv_prog_cc_c99=$ac_arg 3940else 3941 $as_echo "$as_me: failed program was:" >&5 3942sed 's/^/| /' conftest.$ac_ext >&5 3943 3944 3945fi 3946 3947rm -f core conftest.err conftest.$ac_objext 3948 test "x$ac_cv_prog_cc_c99" != "xno" && break 3949done 3950rm -f conftest.$ac_ext 3951CC=$ac_save_CC 3952 3953fi 3954# AC_CACHE_VAL 3955case "x$ac_cv_prog_cc_c99" in 3956 x) 3957 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3958$as_echo "none needed" >&6; } ;; 3959 xno) 3960 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3961$as_echo "unsupported" >&6; } ;; 3962 *) 3963 CC="$CC $ac_cv_prog_cc_c99" 3964 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 3965$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3966esac 3967 3968 3969 3970 3971ac_ext=c 3972ac_cpp='$CPP $CPPFLAGS' 3973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3975ac_compiler_gnu=$ac_cv_c_compiler_gnu 3976{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3977$as_echo_n "checking how to run the C preprocessor... " >&6; } 3978# On Suns, sometimes $CPP names a directory. 3979if test -n "$CPP" && test -d "$CPP"; then 3980 CPP= 3981fi 3982if test -z "$CPP"; then 3983 if test "${ac_cv_prog_CPP+set}" = set; then 3984 $as_echo_n "(cached) " >&6 3985else 3986 # Double quotes because CPP needs to be expanded 3987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3988 do 3989 ac_preproc_ok=false 3990for ac_c_preproc_warn_flag in '' yes 3991do 3992 # Use a header file that comes with gcc, so configuring glibc 3993 # with a fresh cross-compiler works. 3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3995 # <limits.h> exists even on freestanding compilers. 3996 # On the NeXT, cc -E runs the code through the compiler's parser, 3997 # not just through cpp. "Syntax error" is here to catch this case. 3998 cat >conftest.$ac_ext <<_ACEOF 3999/* confdefs.h. */ 4000_ACEOF 4001cat confdefs.h >>conftest.$ac_ext 4002cat >>conftest.$ac_ext <<_ACEOF 4003/* end confdefs.h. */ 4004#ifdef __STDC__ 4005# include <limits.h> 4006#else 4007# include <assert.h> 4008#endif 4009 Syntax error 4010_ACEOF 4011if { (ac_try="$ac_cpp conftest.$ac_ext" 4012case "(($ac_try" in 4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4014 *) ac_try_echo=$ac_try;; 4015esac 4016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4017$as_echo "$ac_try_echo") >&5 4018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4019 ac_status=$? 4020 grep -v '^ *+' conftest.er1 >conftest.err 4021 rm -f conftest.er1 4022 cat conftest.err >&5 4023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4024 (exit $ac_status); } >/dev/null && { 4025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4026 test ! -s conftest.err 4027 }; then 4028 : 4029else 4030 $as_echo "$as_me: failed program was:" >&5 4031sed 's/^/| /' conftest.$ac_ext >&5 4032 4033 # Broken: fails on valid input. 4034continue 4035fi 4036 4037rm -f conftest.err conftest.$ac_ext 4038 4039 # OK, works on sane cases. Now check whether nonexistent headers 4040 # can be detected and how. 4041 cat >conftest.$ac_ext <<_ACEOF 4042/* confdefs.h. */ 4043_ACEOF 4044cat confdefs.h >>conftest.$ac_ext 4045cat >>conftest.$ac_ext <<_ACEOF 4046/* end confdefs.h. */ 4047#include <ac_nonexistent.h> 4048_ACEOF 4049if { (ac_try="$ac_cpp conftest.$ac_ext" 4050case "(($ac_try" in 4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4052 *) ac_try_echo=$ac_try;; 4053esac 4054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4055$as_echo "$ac_try_echo") >&5 4056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4057 ac_status=$? 4058 grep -v '^ *+' conftest.er1 >conftest.err 4059 rm -f conftest.er1 4060 cat conftest.err >&5 4061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4062 (exit $ac_status); } >/dev/null && { 4063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4064 test ! -s conftest.err 4065 }; then 4066 # Broken: success on invalid input. 4067continue 4068else 4069 $as_echo "$as_me: failed program was:" >&5 4070sed 's/^/| /' conftest.$ac_ext >&5 4071 4072 # Passes both tests. 4073ac_preproc_ok=: 4074break 4075fi 4076 4077rm -f conftest.err conftest.$ac_ext 4078 4079done 4080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4081rm -f conftest.err conftest.$ac_ext 4082if $ac_preproc_ok; then 4083 break 4084fi 4085 4086 done 4087 ac_cv_prog_CPP=$CPP 4088 4089fi 4090 CPP=$ac_cv_prog_CPP 4091else 4092 ac_cv_prog_CPP=$CPP 4093fi 4094{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4095$as_echo "$CPP" >&6; } 4096ac_preproc_ok=false 4097for ac_c_preproc_warn_flag in '' yes 4098do 4099 # Use a header file that comes with gcc, so configuring glibc 4100 # with a fresh cross-compiler works. 4101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4102 # <limits.h> exists even on freestanding compilers. 4103 # On the NeXT, cc -E runs the code through the compiler's parser, 4104 # not just through cpp. "Syntax error" is here to catch this case. 4105 cat >conftest.$ac_ext <<_ACEOF 4106/* confdefs.h. */ 4107_ACEOF 4108cat confdefs.h >>conftest.$ac_ext 4109cat >>conftest.$ac_ext <<_ACEOF 4110/* end confdefs.h. */ 4111#ifdef __STDC__ 4112# include <limits.h> 4113#else 4114# include <assert.h> 4115#endif 4116 Syntax error 4117_ACEOF 4118if { (ac_try="$ac_cpp conftest.$ac_ext" 4119case "(($ac_try" in 4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4121 *) ac_try_echo=$ac_try;; 4122esac 4123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4124$as_echo "$ac_try_echo") >&5 4125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4126 ac_status=$? 4127 grep -v '^ *+' conftest.er1 >conftest.err 4128 rm -f conftest.er1 4129 cat conftest.err >&5 4130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4131 (exit $ac_status); } >/dev/null && { 4132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4133 test ! -s conftest.err 4134 }; then 4135 : 4136else 4137 $as_echo "$as_me: failed program was:" >&5 4138sed 's/^/| /' conftest.$ac_ext >&5 4139 4140 # Broken: fails on valid input. 4141continue 4142fi 4143 4144rm -f conftest.err conftest.$ac_ext 4145 4146 # OK, works on sane cases. Now check whether nonexistent headers 4147 # can be detected and how. 4148 cat >conftest.$ac_ext <<_ACEOF 4149/* confdefs.h. */ 4150_ACEOF 4151cat confdefs.h >>conftest.$ac_ext 4152cat >>conftest.$ac_ext <<_ACEOF 4153/* end confdefs.h. */ 4154#include <ac_nonexistent.h> 4155_ACEOF 4156if { (ac_try="$ac_cpp conftest.$ac_ext" 4157case "(($ac_try" in 4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4159 *) ac_try_echo=$ac_try;; 4160esac 4161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4162$as_echo "$ac_try_echo") >&5 4163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4164 ac_status=$? 4165 grep -v '^ *+' conftest.er1 >conftest.err 4166 rm -f conftest.er1 4167 cat conftest.err >&5 4168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4169 (exit $ac_status); } >/dev/null && { 4170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4171 test ! -s conftest.err 4172 }; then 4173 # Broken: success on invalid input. 4174continue 4175else 4176 $as_echo "$as_me: failed program was:" >&5 4177sed 's/^/| /' conftest.$ac_ext >&5 4178 4179 # Passes both tests. 4180ac_preproc_ok=: 4181break 4182fi 4183 4184rm -f conftest.err conftest.$ac_ext 4185 4186done 4187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4188rm -f conftest.err conftest.$ac_ext 4189if $ac_preproc_ok; then 4190 : 4191else 4192 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4194{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4195See \`config.log' for more details." >&5 4196$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4197See \`config.log' for more details." >&2;} 4198 { (exit 1); exit 1; }; }; } 4199fi 4200 4201ac_ext=c 4202ac_cpp='$CPP $CPPFLAGS' 4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4205ac_compiler_gnu=$ac_cv_c_compiler_gnu 4206 4207 4208{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4209$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4210if test "${ac_cv_path_GREP+set}" = set; then 4211 $as_echo_n "(cached) " >&6 4212else 4213 if test -z "$GREP"; then 4214 ac_path_GREP_found=false 4215 # Loop through the user's path and test for each of PROGNAME-LIST 4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4218do 4219 IFS=$as_save_IFS 4220 test -z "$as_dir" && as_dir=. 4221 for ac_prog in grep ggrep; do 4222 for ac_exec_ext in '' $ac_executable_extensions; do 4223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4225# Check for GNU ac_path_GREP and select it if it is found. 4226 # Check for GNU $ac_path_GREP 4227case `"$ac_path_GREP" --version 2>&1` in 4228*GNU*) 4229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4230*) 4231 ac_count=0 4232 $as_echo_n 0123456789 >"conftest.in" 4233 while : 4234 do 4235 cat "conftest.in" "conftest.in" >"conftest.tmp" 4236 mv "conftest.tmp" "conftest.in" 4237 cp "conftest.in" "conftest.nl" 4238 $as_echo 'GREP' >> "conftest.nl" 4239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4241 ac_count=`expr $ac_count + 1` 4242 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4243 # Best one so far, save it but keep looking for a better one 4244 ac_cv_path_GREP="$ac_path_GREP" 4245 ac_path_GREP_max=$ac_count 4246 fi 4247 # 10*(2^10) chars as input seems more than enough 4248 test $ac_count -gt 10 && break 4249 done 4250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4251esac 4252 4253 $ac_path_GREP_found && break 3 4254 done 4255 done 4256done 4257IFS=$as_save_IFS 4258 if test -z "$ac_cv_path_GREP"; then 4259 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4260$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4261 { (exit 1); exit 1; }; } 4262 fi 4263else 4264 ac_cv_path_GREP=$GREP 4265fi 4266 4267fi 4268{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4269$as_echo "$ac_cv_path_GREP" >&6; } 4270 GREP="$ac_cv_path_GREP" 4271 4272 4273{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4274$as_echo_n "checking for egrep... " >&6; } 4275if test "${ac_cv_path_EGREP+set}" = set; then 4276 $as_echo_n "(cached) " >&6 4277else 4278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4279 then ac_cv_path_EGREP="$GREP -E" 4280 else 4281 if test -z "$EGREP"; then 4282 ac_path_EGREP_found=false 4283 # Loop through the user's path and test for each of PROGNAME-LIST 4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4285for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4286do 4287 IFS=$as_save_IFS 4288 test -z "$as_dir" && as_dir=. 4289 for ac_prog in egrep; do 4290 for ac_exec_ext in '' $ac_executable_extensions; do 4291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4292 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4293# Check for GNU ac_path_EGREP and select it if it is found. 4294 # Check for GNU $ac_path_EGREP 4295case `"$ac_path_EGREP" --version 2>&1` in 4296*GNU*) 4297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4298*) 4299 ac_count=0 4300 $as_echo_n 0123456789 >"conftest.in" 4301 while : 4302 do 4303 cat "conftest.in" "conftest.in" >"conftest.tmp" 4304 mv "conftest.tmp" "conftest.in" 4305 cp "conftest.in" "conftest.nl" 4306 $as_echo 'EGREP' >> "conftest.nl" 4307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4309 ac_count=`expr $ac_count + 1` 4310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4311 # Best one so far, save it but keep looking for a better one 4312 ac_cv_path_EGREP="$ac_path_EGREP" 4313 ac_path_EGREP_max=$ac_count 4314 fi 4315 # 10*(2^10) chars as input seems more than enough 4316 test $ac_count -gt 10 && break 4317 done 4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4319esac 4320 4321 $ac_path_EGREP_found && break 3 4322 done 4323 done 4324done 4325IFS=$as_save_IFS 4326 if test -z "$ac_cv_path_EGREP"; then 4327 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4328$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4329 { (exit 1); exit 1; }; } 4330 fi 4331else 4332 ac_cv_path_EGREP=$EGREP 4333fi 4334 4335 fi 4336fi 4337{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4338$as_echo "$ac_cv_path_EGREP" >&6; } 4339 EGREP="$ac_cv_path_EGREP" 4340 4341 4342{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4343$as_echo_n "checking for ANSI C header files... " >&6; } 4344if test "${ac_cv_header_stdc+set}" = set; then 4345 $as_echo_n "(cached) " >&6 4346else 4347 cat >conftest.$ac_ext <<_ACEOF 4348/* confdefs.h. */ 4349_ACEOF 4350cat confdefs.h >>conftest.$ac_ext 4351cat >>conftest.$ac_ext <<_ACEOF 4352/* end confdefs.h. */ 4353#include <stdlib.h> 4354#include <stdarg.h> 4355#include <string.h> 4356#include <float.h> 4357 4358int 4359main () 4360{ 4361 4362 ; 4363 return 0; 4364} 4365_ACEOF 4366rm -f conftest.$ac_objext 4367if { (ac_try="$ac_compile" 4368case "(($ac_try" in 4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4370 *) ac_try_echo=$ac_try;; 4371esac 4372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4373$as_echo "$ac_try_echo") >&5 4374 (eval "$ac_compile") 2>conftest.er1 4375 ac_status=$? 4376 grep -v '^ *+' conftest.er1 >conftest.err 4377 rm -f conftest.er1 4378 cat conftest.err >&5 4379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4380 (exit $ac_status); } && { 4381 test -z "$ac_c_werror_flag" || 4382 test ! -s conftest.err 4383 } && test -s conftest.$ac_objext; then 4384 ac_cv_header_stdc=yes 4385else 4386 $as_echo "$as_me: failed program was:" >&5 4387sed 's/^/| /' conftest.$ac_ext >&5 4388 4389 ac_cv_header_stdc=no 4390fi 4391 4392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4393 4394if test $ac_cv_header_stdc = yes; then 4395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4396 cat >conftest.$ac_ext <<_ACEOF 4397/* confdefs.h. */ 4398_ACEOF 4399cat confdefs.h >>conftest.$ac_ext 4400cat >>conftest.$ac_ext <<_ACEOF 4401/* end confdefs.h. */ 4402#include <string.h> 4403 4404_ACEOF 4405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4406 $EGREP "memchr" >/dev/null 2>&1; then 4407 : 4408else 4409 ac_cv_header_stdc=no 4410fi 4411rm -f conftest* 4412 4413fi 4414 4415if test $ac_cv_header_stdc = yes; then 4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4417 cat >conftest.$ac_ext <<_ACEOF 4418/* confdefs.h. */ 4419_ACEOF 4420cat confdefs.h >>conftest.$ac_ext 4421cat >>conftest.$ac_ext <<_ACEOF 4422/* end confdefs.h. */ 4423#include <stdlib.h> 4424 4425_ACEOF 4426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4427 $EGREP "free" >/dev/null 2>&1; then 4428 : 4429else 4430 ac_cv_header_stdc=no 4431fi 4432rm -f conftest* 4433 4434fi 4435 4436if test $ac_cv_header_stdc = yes; then 4437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4438 if test "$cross_compiling" = yes; then 4439 : 4440else 4441 cat >conftest.$ac_ext <<_ACEOF 4442/* confdefs.h. */ 4443_ACEOF 4444cat confdefs.h >>conftest.$ac_ext 4445cat >>conftest.$ac_ext <<_ACEOF 4446/* end confdefs.h. */ 4447#include <ctype.h> 4448#include <stdlib.h> 4449#if ((' ' & 0x0FF) == 0x020) 4450# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4451# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4452#else 4453# define ISLOWER(c) \ 4454 (('a' <= (c) && (c) <= 'i') \ 4455 || ('j' <= (c) && (c) <= 'r') \ 4456 || ('s' <= (c) && (c) <= 'z')) 4457# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4458#endif 4459 4460#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4461int 4462main () 4463{ 4464 int i; 4465 for (i = 0; i < 256; i++) 4466 if (XOR (islower (i), ISLOWER (i)) 4467 || toupper (i) != TOUPPER (i)) 4468 return 2; 4469 return 0; 4470} 4471_ACEOF 4472rm -f conftest$ac_exeext 4473if { (ac_try="$ac_link" 4474case "(($ac_try" in 4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4476 *) ac_try_echo=$ac_try;; 4477esac 4478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4479$as_echo "$ac_try_echo") >&5 4480 (eval "$ac_link") 2>&5 4481 ac_status=$? 4482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4484 { (case "(($ac_try" in 4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4486 *) ac_try_echo=$ac_try;; 4487esac 4488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4489$as_echo "$ac_try_echo") >&5 4490 (eval "$ac_try") 2>&5 4491 ac_status=$? 4492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; }; then 4494 : 4495else 4496 $as_echo "$as_me: program exited with status $ac_status" >&5 4497$as_echo "$as_me: failed program was:" >&5 4498sed 's/^/| /' conftest.$ac_ext >&5 4499 4500( exit $ac_status ) 4501ac_cv_header_stdc=no 4502fi 4503rm -rf conftest.dSYM 4504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4505fi 4506 4507 4508fi 4509fi 4510{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4511$as_echo "$ac_cv_header_stdc" >&6; } 4512if test $ac_cv_header_stdc = yes; then 4513 4514cat >>confdefs.h <<\_ACEOF 4515#define STDC_HEADERS 1 4516_ACEOF 4517 4518fi 4519 4520# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4531 inttypes.h stdint.h unistd.h 4532do 4533as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4534{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4535$as_echo_n "checking for $ac_header... " >&6; } 4536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4537 $as_echo_n "(cached) " >&6 4538else 4539 cat >conftest.$ac_ext <<_ACEOF 4540/* confdefs.h. */ 4541_ACEOF 4542cat confdefs.h >>conftest.$ac_ext 4543cat >>conftest.$ac_ext <<_ACEOF 4544/* end confdefs.h. */ 4545$ac_includes_default 4546 4547#include <$ac_header> 4548_ACEOF 4549rm -f conftest.$ac_objext 4550if { (ac_try="$ac_compile" 4551case "(($ac_try" in 4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4553 *) ac_try_echo=$ac_try;; 4554esac 4555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4556$as_echo "$ac_try_echo") >&5 4557 (eval "$ac_compile") 2>conftest.er1 4558 ac_status=$? 4559 grep -v '^ *+' conftest.er1 >conftest.err 4560 rm -f conftest.er1 4561 cat conftest.err >&5 4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); } && { 4564 test -z "$ac_c_werror_flag" || 4565 test ! -s conftest.err 4566 } && test -s conftest.$ac_objext; then 4567 eval "$as_ac_Header=yes" 4568else 4569 $as_echo "$as_me: failed program was:" >&5 4570sed 's/^/| /' conftest.$ac_ext >&5 4571 4572 eval "$as_ac_Header=no" 4573fi 4574 4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4576fi 4577ac_res=`eval 'as_val=${'$as_ac_Header'} 4578 $as_echo "$as_val"'` 4579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4580$as_echo "$ac_res" >&6; } 4581as_val=`eval 'as_val=${'$as_ac_Header'} 4582 $as_echo "$as_val"'` 4583 if test "x$as_val" = x""yes; then 4584 cat >>confdefs.h <<_ACEOF 4585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4586_ACEOF 4587 4588fi 4589 4590done 4591 4592 4593 4594 4595if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4596 if test -n "$ac_tool_prefix"; then 4597 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4598set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4599{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4600$as_echo_n "checking for $ac_word... " >&6; } 4601if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4602 $as_echo_n "(cached) " >&6 4603else 4604 case $PKG_CONFIG in 4605 [\\/]* | ?:[\\/]*) 4606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4607 ;; 4608 *) 4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610for as_dir in $PATH 4611do 4612 IFS=$as_save_IFS 4613 test -z "$as_dir" && as_dir=. 4614 for ac_exec_ext in '' $ac_executable_extensions; do 4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4618 break 2 4619 fi 4620done 4621done 4622IFS=$as_save_IFS 4623 4624 ;; 4625esac 4626fi 4627PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4628if test -n "$PKG_CONFIG"; then 4629 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4630$as_echo "$PKG_CONFIG" >&6; } 4631else 4632 { $as_echo "$as_me:$LINENO: result: no" >&5 4633$as_echo "no" >&6; } 4634fi 4635 4636 4637fi 4638if test -z "$ac_cv_path_PKG_CONFIG"; then 4639 ac_pt_PKG_CONFIG=$PKG_CONFIG 4640 # Extract the first word of "pkg-config", so it can be a program name with args. 4641set dummy pkg-config; ac_word=$2 4642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4643$as_echo_n "checking for $ac_word... " >&6; } 4644if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4645 $as_echo_n "(cached) " >&6 4646else 4647 case $ac_pt_PKG_CONFIG in 4648 [\\/]* | ?:[\\/]*) 4649 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4650 ;; 4651 *) 4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4653for as_dir in $PATH 4654do 4655 IFS=$as_save_IFS 4656 test -z "$as_dir" && as_dir=. 4657 for ac_exec_ext in '' $ac_executable_extensions; do 4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4659 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4661 break 2 4662 fi 4663done 4664done 4665IFS=$as_save_IFS 4666 4667 ;; 4668esac 4669fi 4670ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4671if test -n "$ac_pt_PKG_CONFIG"; then 4672 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4673$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4674else 4675 { $as_echo "$as_me:$LINENO: result: no" >&5 4676$as_echo "no" >&6; } 4677fi 4678 4679 if test "x$ac_pt_PKG_CONFIG" = x; then 4680 PKG_CONFIG="" 4681 else 4682 case $cross_compiling:$ac_tool_warned in 4683yes:) 4684{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4686ac_tool_warned=yes ;; 4687esac 4688 PKG_CONFIG=$ac_pt_PKG_CONFIG 4689 fi 4690else 4691 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4692fi 4693 4694fi 4695if test -n "$PKG_CONFIG"; then 4696 _pkg_min_version=0.9.0 4697 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4698$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4699 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4700 { $as_echo "$as_me:$LINENO: result: yes" >&5 4701$as_echo "yes" >&6; } 4702 else 4703 { $as_echo "$as_me:$LINENO: result: no" >&5 4704$as_echo "no" >&6; } 4705 PKG_CONFIG="" 4706 fi 4707 4708fi 4709# Make sure we can run config.sub. 4710$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4711 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4712$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4713 { (exit 1); exit 1; }; } 4714 4715{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4716$as_echo_n "checking build system type... " >&6; } 4717if test "${ac_cv_build+set}" = set; then 4718 $as_echo_n "(cached) " >&6 4719else 4720 ac_build_alias=$build_alias 4721test "x$ac_build_alias" = x && 4722 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4723test "x$ac_build_alias" = x && 4724 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4725$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4726 { (exit 1); exit 1; }; } 4727ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4728 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4729$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4730 { (exit 1); exit 1; }; } 4731 4732fi 4733{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4734$as_echo "$ac_cv_build" >&6; } 4735case $ac_cv_build in 4736*-*-*) ;; 4737*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4738$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4739 { (exit 1); exit 1; }; };; 4740esac 4741build=$ac_cv_build 4742ac_save_IFS=$IFS; IFS='-' 4743set x $ac_cv_build 4744shift 4745build_cpu=$1 4746build_vendor=$2 4747shift; shift 4748# Remember, the first character of IFS is used to create $*, 4749# except with old shells: 4750build_os=$* 4751IFS=$ac_save_IFS 4752case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4753 4754 4755{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4756$as_echo_n "checking host system type... " >&6; } 4757if test "${ac_cv_host+set}" = set; then 4758 $as_echo_n "(cached) " >&6 4759else 4760 if test "x$host_alias" = x; then 4761 ac_cv_host=$ac_cv_build 4762else 4763 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4764 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4765$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4766 { (exit 1); exit 1; }; } 4767fi 4768 4769fi 4770{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4771$as_echo "$ac_cv_host" >&6; } 4772case $ac_cv_host in 4773*-*-*) ;; 4774*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4775$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4776 { (exit 1); exit 1; }; };; 4777esac 4778host=$ac_cv_host 4779ac_save_IFS=$IFS; IFS='-' 4780set x $ac_cv_host 4781shift 4782host_cpu=$1 4783host_vendor=$2 4784shift; shift 4785# Remember, the first character of IFS is used to create $*, 4786# except with old shells: 4787host_os=$* 4788IFS=$ac_save_IFS 4789case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4790 4791 4792{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4793$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4794if test "${ac_cv_path_SED+set}" = set; then 4795 $as_echo_n "(cached) " >&6 4796else 4797 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4798 for ac_i in 1 2 3 4 5 6 7; do 4799 ac_script="$ac_script$as_nl$ac_script" 4800 done 4801 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4802 $as_unset ac_script || ac_script= 4803 if test -z "$SED"; then 4804 ac_path_SED_found=false 4805 # Loop through the user's path and test for each of PROGNAME-LIST 4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4807for as_dir in $PATH 4808do 4809 IFS=$as_save_IFS 4810 test -z "$as_dir" && as_dir=. 4811 for ac_prog in sed gsed; do 4812 for ac_exec_ext in '' $ac_executable_extensions; do 4813 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4814 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4815# Check for GNU ac_path_SED and select it if it is found. 4816 # Check for GNU $ac_path_SED 4817case `"$ac_path_SED" --version 2>&1` in 4818*GNU*) 4819 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4820*) 4821 ac_count=0 4822 $as_echo_n 0123456789 >"conftest.in" 4823 while : 4824 do 4825 cat "conftest.in" "conftest.in" >"conftest.tmp" 4826 mv "conftest.tmp" "conftest.in" 4827 cp "conftest.in" "conftest.nl" 4828 $as_echo '' >> "conftest.nl" 4829 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4831 ac_count=`expr $ac_count + 1` 4832 if test $ac_count -gt ${ac_path_SED_max-0}; then 4833 # Best one so far, save it but keep looking for a better one 4834 ac_cv_path_SED="$ac_path_SED" 4835 ac_path_SED_max=$ac_count 4836 fi 4837 # 10*(2^10) chars as input seems more than enough 4838 test $ac_count -gt 10 && break 4839 done 4840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4841esac 4842 4843 $ac_path_SED_found && break 3 4844 done 4845 done 4846done 4847IFS=$as_save_IFS 4848 if test -z "$ac_cv_path_SED"; then 4849 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4850$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4851 { (exit 1); exit 1; }; } 4852 fi 4853else 4854 ac_cv_path_SED=$SED 4855fi 4856 4857fi 4858{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4859$as_echo "$ac_cv_path_SED" >&6; } 4860 SED="$ac_cv_path_SED" 4861 rm -f conftest.sed 4862 4863 4864 4865 4866 4867if test "x$GCC" = xyes ; then 4868 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4869-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4870-Wbad-function-cast -Wformat=2" 4871 case `$CC -dumpversion` in 4872 3.4.* | 4.*) 4873 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4874 ;; 4875 esac 4876else 4877 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4878$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4879if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4880 $as_echo_n "(cached) " >&6 4881else 4882 cat >conftest.$ac_ext <<_ACEOF 4883/* confdefs.h. */ 4884_ACEOF 4885cat confdefs.h >>conftest.$ac_ext 4886cat >>conftest.$ac_ext <<_ACEOF 4887/* end confdefs.h. */ 4888$ac_includes_default 4889int 4890main () 4891{ 4892#ifndef __SUNPRO_C 4893 (void) __SUNPRO_C; 4894#endif 4895 4896 ; 4897 return 0; 4898} 4899_ACEOF 4900rm -f conftest.$ac_objext 4901if { (ac_try="$ac_compile" 4902case "(($ac_try" in 4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4904 *) ac_try_echo=$ac_try;; 4905esac 4906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4907$as_echo "$ac_try_echo") >&5 4908 (eval "$ac_compile") 2>conftest.er1 4909 ac_status=$? 4910 grep -v '^ *+' conftest.er1 >conftest.err 4911 rm -f conftest.er1 4912 cat conftest.err >&5 4913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4914 (exit $ac_status); } && { 4915 test -z "$ac_c_werror_flag" || 4916 test ! -s conftest.err 4917 } && test -s conftest.$ac_objext; then 4918 ac_cv_have_decl___SUNPRO_C=yes 4919else 4920 $as_echo "$as_me: failed program was:" >&5 4921sed 's/^/| /' conftest.$ac_ext >&5 4922 4923 ac_cv_have_decl___SUNPRO_C=no 4924fi 4925 4926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4927fi 4928{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4929$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4930if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4931 SUNCC="yes" 4932else 4933 SUNCC="no" 4934fi 4935 4936 if test "x$SUNCC" = "xyes"; then 4937 CWARNFLAGS="-v" 4938 fi 4939fi 4940 4941 4942 4943# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4944 4945 4946 4947# Check whether --enable-strict-compilation was given. 4948if test "${enable_strict_compilation+set}" = set; then 4949 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4950else 4951 STRICT_COMPILE=no 4952fi 4953 4954if test "x$STRICT_COMPILE" = "xyes"; then 4955 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4956$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4957if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4958 $as_echo_n "(cached) " >&6 4959else 4960 cat >conftest.$ac_ext <<_ACEOF 4961/* confdefs.h. */ 4962_ACEOF 4963cat confdefs.h >>conftest.$ac_ext 4964cat >>conftest.$ac_ext <<_ACEOF 4965/* end confdefs.h. */ 4966$ac_includes_default 4967int 4968main () 4969{ 4970#ifndef __SUNPRO_C 4971 (void) __SUNPRO_C; 4972#endif 4973 4974 ; 4975 return 0; 4976} 4977_ACEOF 4978rm -f conftest.$ac_objext 4979if { (ac_try="$ac_compile" 4980case "(($ac_try" in 4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4982 *) ac_try_echo=$ac_try;; 4983esac 4984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4985$as_echo "$ac_try_echo") >&5 4986 (eval "$ac_compile") 2>conftest.er1 4987 ac_status=$? 4988 grep -v '^ *+' conftest.er1 >conftest.err 4989 rm -f conftest.er1 4990 cat conftest.err >&5 4991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4992 (exit $ac_status); } && { 4993 test -z "$ac_c_werror_flag" || 4994 test ! -s conftest.err 4995 } && test -s conftest.$ac_objext; then 4996 ac_cv_have_decl___SUNPRO_C=yes 4997else 4998 $as_echo "$as_me: failed program was:" >&5 4999sed 's/^/| /' conftest.$ac_ext >&5 5000 5001 ac_cv_have_decl___SUNPRO_C=no 5002fi 5003 5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5005fi 5006{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 5007$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 5008if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 5009 SUNCC="yes" 5010else 5011 SUNCC="no" 5012fi 5013 5014 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 5015$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 5016if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 5017 $as_echo_n "(cached) " >&6 5018else 5019 cat >conftest.$ac_ext <<_ACEOF 5020/* confdefs.h. */ 5021_ACEOF 5022cat confdefs.h >>conftest.$ac_ext 5023cat >>conftest.$ac_ext <<_ACEOF 5024/* end confdefs.h. */ 5025$ac_includes_default 5026int 5027main () 5028{ 5029#ifndef __INTEL_COMPILER 5030 (void) __INTEL_COMPILER; 5031#endif 5032 5033 ; 5034 return 0; 5035} 5036_ACEOF 5037rm -f conftest.$ac_objext 5038if { (ac_try="$ac_compile" 5039case "(($ac_try" in 5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5041 *) ac_try_echo=$ac_try;; 5042esac 5043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5044$as_echo "$ac_try_echo") >&5 5045 (eval "$ac_compile") 2>conftest.er1 5046 ac_status=$? 5047 grep -v '^ *+' conftest.er1 >conftest.err 5048 rm -f conftest.er1 5049 cat conftest.err >&5 5050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5051 (exit $ac_status); } && { 5052 test -z "$ac_c_werror_flag" || 5053 test ! -s conftest.err 5054 } && test -s conftest.$ac_objext; then 5055 ac_cv_have_decl___INTEL_COMPILER=yes 5056else 5057 $as_echo "$as_me: failed program was:" >&5 5058sed 's/^/| /' conftest.$ac_ext >&5 5059 5060 ac_cv_have_decl___INTEL_COMPILER=no 5061fi 5062 5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5064fi 5065{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 5066$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 5067if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 5068 INTELCC="yes" 5069else 5070 INTELCC="no" 5071fi 5072 5073 if test "x$GCC" = xyes ; then 5074 STRICT_CFLAGS="-pedantic -Werror" 5075 elif test "x$SUNCC" = "xyes"; then 5076 STRICT_CFLAGS="-errwarn" 5077 elif test "x$INTELCC" = "xyes"; then 5078 STRICT_CFLAGS="-Werror" 5079 fi 5080fi 5081CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 5082 5083 5084 5085 5086cat >>confdefs.h <<_ACEOF 5087#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 5088_ACEOF 5089 5090 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 5091 if test "x$PVM" = "x"; then 5092 PVM="0" 5093 fi 5094 5095cat >>confdefs.h <<_ACEOF 5096#define PACKAGE_VERSION_MINOR $PVM 5097_ACEOF 5098 5099 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 5100 if test "x$PVP" = "x"; then 5101 PVP="0" 5102 fi 5103 5104cat >>confdefs.h <<_ACEOF 5105#define PACKAGE_VERSION_PATCHLEVEL $PVP 5106_ACEOF 5107 5108 5109 5110CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 5111mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 5112|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 5113echo 'git directory not found: installing possibly empty changelog.' >&2)" 5114 5115 5116 5117 5118macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 5119INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 5120mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 5121|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 5122echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 5123 5124 5125 5126 5127 5128 5129if test x$APP_MAN_SUFFIX = x ; then 5130 APP_MAN_SUFFIX=1 5131fi 5132if test x$APP_MAN_DIR = x ; then 5133 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 5134fi 5135 5136if test x$LIB_MAN_SUFFIX = x ; then 5137 LIB_MAN_SUFFIX=3 5138fi 5139if test x$LIB_MAN_DIR = x ; then 5140 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 5141fi 5142 5143if test x$FILE_MAN_SUFFIX = x ; then 5144 case $host_os in 5145 solaris*) FILE_MAN_SUFFIX=4 ;; 5146 *) FILE_MAN_SUFFIX=5 ;; 5147 esac 5148fi 5149if test x$FILE_MAN_DIR = x ; then 5150 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 5151fi 5152 5153if test x$MISC_MAN_SUFFIX = x ; then 5154 case $host_os in 5155 solaris*) MISC_MAN_SUFFIX=5 ;; 5156 *) MISC_MAN_SUFFIX=7 ;; 5157 esac 5158fi 5159if test x$MISC_MAN_DIR = x ; then 5160 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 5161fi 5162 5163if test x$DRIVER_MAN_SUFFIX = x ; then 5164 case $host_os in 5165 solaris*) DRIVER_MAN_SUFFIX=7 ;; 5166 *) DRIVER_MAN_SUFFIX=4 ;; 5167 esac 5168fi 5169if test x$DRIVER_MAN_DIR = x ; then 5170 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 5171fi 5172 5173if test x$ADMIN_MAN_SUFFIX = x ; then 5174 case $host_os in 5175 solaris*) ADMIN_MAN_SUFFIX=1m ;; 5176 *) ADMIN_MAN_SUFFIX=8 ;; 5177 esac 5178fi 5179if test x$ADMIN_MAN_DIR = x ; then 5180 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 5181fi 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197XORG_MAN_PAGE="X Version 11" 5198 5199MAN_SUBSTS="\ 5200 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5201 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5202 -e 's|__xservername__|Xorg|g' \ 5203 -e 's|__xconfigfile__|xorg.conf|g' \ 5204 -e 's|__projectroot__|\$(prefix)|g' \ 5205 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 5206 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 5207 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 5208 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 5209 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 5210 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 5211 5212 5213 5214# Check whether --enable-silent-rules was given. 5215if test "${enable_silent_rules+set}" = set; then 5216 enableval=$enable_silent_rules; 5217fi 5218 5219case $enable_silent_rules in 5220yes) AM_DEFAULT_VERBOSITY=0;; 5221no) AM_DEFAULT_VERBOSITY=1;; 5222*) AM_DEFAULT_VERBOSITY=0;; 5223esac 5224AM_BACKSLASH='\' 5225 5226 5227 5228# Initialize libtool 5229# Check whether --enable-static was given. 5230if test "${enable_static+set}" = set; then 5231 enableval=$enable_static; p=${PACKAGE-default} 5232 case $enableval in 5233 yes) enable_static=yes ;; 5234 no) enable_static=no ;; 5235 *) 5236 enable_static=no 5237 # Look at the argument we got. We use all the common list separators. 5238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5239 for pkg in $enableval; do 5240 IFS="$lt_save_ifs" 5241 if test "X$pkg" = "X$p"; then 5242 enable_static=yes 5243 fi 5244 done 5245 IFS="$lt_save_ifs" 5246 ;; 5247 esac 5248else 5249 enable_static=no 5250fi 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260case `pwd` in 5261 *\ * | *\ *) 5262 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5263$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5264esac 5265 5266 5267 5268macro_version='2.2.6b' 5269macro_revision='1.3017' 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283ltmain="$ac_aux_dir/ltmain.sh" 5284 5285{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5286$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5287if test "${ac_cv_path_SED+set}" = set; then 5288 $as_echo_n "(cached) " >&6 5289else 5290 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5291 for ac_i in 1 2 3 4 5 6 7; do 5292 ac_script="$ac_script$as_nl$ac_script" 5293 done 5294 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5295 $as_unset ac_script || ac_script= 5296 if test -z "$SED"; then 5297 ac_path_SED_found=false 5298 # Loop through the user's path and test for each of PROGNAME-LIST 5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5300for as_dir in $PATH 5301do 5302 IFS=$as_save_IFS 5303 test -z "$as_dir" && as_dir=. 5304 for ac_prog in sed gsed; do 5305 for ac_exec_ext in '' $ac_executable_extensions; do 5306 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5307 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5308# Check for GNU ac_path_SED and select it if it is found. 5309 # Check for GNU $ac_path_SED 5310case `"$ac_path_SED" --version 2>&1` in 5311*GNU*) 5312 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5313*) 5314 ac_count=0 5315 $as_echo_n 0123456789 >"conftest.in" 5316 while : 5317 do 5318 cat "conftest.in" "conftest.in" >"conftest.tmp" 5319 mv "conftest.tmp" "conftest.in" 5320 cp "conftest.in" "conftest.nl" 5321 $as_echo '' >> "conftest.nl" 5322 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5324 ac_count=`expr $ac_count + 1` 5325 if test $ac_count -gt ${ac_path_SED_max-0}; then 5326 # Best one so far, save it but keep looking for a better one 5327 ac_cv_path_SED="$ac_path_SED" 5328 ac_path_SED_max=$ac_count 5329 fi 5330 # 10*(2^10) chars as input seems more than enough 5331 test $ac_count -gt 10 && break 5332 done 5333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5334esac 5335 5336 $ac_path_SED_found && break 3 5337 done 5338 done 5339done 5340IFS=$as_save_IFS 5341 if test -z "$ac_cv_path_SED"; then 5342 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 5343$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 5344 { (exit 1); exit 1; }; } 5345 fi 5346else 5347 ac_cv_path_SED=$SED 5348fi 5349 5350fi 5351{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5352$as_echo "$ac_cv_path_SED" >&6; } 5353 SED="$ac_cv_path_SED" 5354 rm -f conftest.sed 5355 5356test -z "$SED" && SED=sed 5357Xsed="$SED -e 1s/^X//" 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 5370$as_echo_n "checking for fgrep... " >&6; } 5371if test "${ac_cv_path_FGREP+set}" = set; then 5372 $as_echo_n "(cached) " >&6 5373else 5374 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5375 then ac_cv_path_FGREP="$GREP -F" 5376 else 5377 if test -z "$FGREP"; then 5378 ac_path_FGREP_found=false 5379 # Loop through the user's path and test for each of PROGNAME-LIST 5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5382do 5383 IFS=$as_save_IFS 5384 test -z "$as_dir" && as_dir=. 5385 for ac_prog in fgrep; do 5386 for ac_exec_ext in '' $ac_executable_extensions; do 5387 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5388 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5389# Check for GNU ac_path_FGREP and select it if it is found. 5390 # Check for GNU $ac_path_FGREP 5391case `"$ac_path_FGREP" --version 2>&1` in 5392*GNU*) 5393 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5394*) 5395 ac_count=0 5396 $as_echo_n 0123456789 >"conftest.in" 5397 while : 5398 do 5399 cat "conftest.in" "conftest.in" >"conftest.tmp" 5400 mv "conftest.tmp" "conftest.in" 5401 cp "conftest.in" "conftest.nl" 5402 $as_echo 'FGREP' >> "conftest.nl" 5403 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5405 ac_count=`expr $ac_count + 1` 5406 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5407 # Best one so far, save it but keep looking for a better one 5408 ac_cv_path_FGREP="$ac_path_FGREP" 5409 ac_path_FGREP_max=$ac_count 5410 fi 5411 # 10*(2^10) chars as input seems more than enough 5412 test $ac_count -gt 10 && break 5413 done 5414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5415esac 5416 5417 $ac_path_FGREP_found && break 3 5418 done 5419 done 5420done 5421IFS=$as_save_IFS 5422 if test -z "$ac_cv_path_FGREP"; then 5423 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5424$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5425 { (exit 1); exit 1; }; } 5426 fi 5427else 5428 ac_cv_path_FGREP=$FGREP 5429fi 5430 5431 fi 5432fi 5433{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5434$as_echo "$ac_cv_path_FGREP" >&6; } 5435 FGREP="$ac_cv_path_FGREP" 5436 5437 5438test -z "$GREP" && GREP=grep 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458# Check whether --with-gnu-ld was given. 5459if test "${with_gnu_ld+set}" = set; then 5460 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5461else 5462 with_gnu_ld=no 5463fi 5464 5465ac_prog=ld 5466if test "$GCC" = yes; then 5467 # Check if gcc -print-prog-name=ld gives a path. 5468 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5469$as_echo_n "checking for ld used by $CC... " >&6; } 5470 case $host in 5471 *-*-mingw*) 5472 # gcc leaves a trailing carriage return which upsets mingw 5473 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5474 *) 5475 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5476 esac 5477 case $ac_prog in 5478 # Accept absolute paths. 5479 [\\/]* | ?:[\\/]*) 5480 re_direlt='/[^/][^/]*/\.\./' 5481 # Canonicalize the pathname of ld 5482 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5483 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5484 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5485 done 5486 test -z "$LD" && LD="$ac_prog" 5487 ;; 5488 "") 5489 # If it fails, then pretend we aren't using GCC. 5490 ac_prog=ld 5491 ;; 5492 *) 5493 # If it is relative, then search for the first ld in PATH. 5494 with_gnu_ld=unknown 5495 ;; 5496 esac 5497elif test "$with_gnu_ld" = yes; then 5498 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 5499$as_echo_n "checking for GNU ld... " >&6; } 5500else 5501 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5502$as_echo_n "checking for non-GNU ld... " >&6; } 5503fi 5504if test "${lt_cv_path_LD+set}" = set; then 5505 $as_echo_n "(cached) " >&6 5506else 5507 if test -z "$LD"; then 5508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5509 for ac_dir in $PATH; do 5510 IFS="$lt_save_ifs" 5511 test -z "$ac_dir" && ac_dir=. 5512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5513 lt_cv_path_LD="$ac_dir/$ac_prog" 5514 # Check to see if the program is GNU ld. I'd rather use --version, 5515 # but apparently some variants of GNU ld only accept -v. 5516 # Break only if it was the GNU/non-GNU ld that we prefer. 5517 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5518 *GNU* | *'with BFD'*) 5519 test "$with_gnu_ld" != no && break 5520 ;; 5521 *) 5522 test "$with_gnu_ld" != yes && break 5523 ;; 5524 esac 5525 fi 5526 done 5527 IFS="$lt_save_ifs" 5528else 5529 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5530fi 5531fi 5532 5533LD="$lt_cv_path_LD" 5534if test -n "$LD"; then 5535 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5536$as_echo "$LD" >&6; } 5537else 5538 { $as_echo "$as_me:$LINENO: result: no" >&5 5539$as_echo "no" >&6; } 5540fi 5541test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5542$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5543 { (exit 1); exit 1; }; } 5544{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5545$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5546if test "${lt_cv_prog_gnu_ld+set}" = set; then 5547 $as_echo_n "(cached) " >&6 5548else 5549 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5550case `$LD -v 2>&1 </dev/null` in 5551*GNU* | *'with BFD'*) 5552 lt_cv_prog_gnu_ld=yes 5553 ;; 5554*) 5555 lt_cv_prog_gnu_ld=no 5556 ;; 5557esac 5558fi 5559{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5560$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5561with_gnu_ld=$lt_cv_prog_gnu_ld 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5572$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5573if test "${lt_cv_path_NM+set}" = set; then 5574 $as_echo_n "(cached) " >&6 5575else 5576 if test -n "$NM"; then 5577 # Let the user override the test. 5578 lt_cv_path_NM="$NM" 5579else 5580 lt_nm_to_check="${ac_tool_prefix}nm" 5581 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5582 lt_nm_to_check="$lt_nm_to_check nm" 5583 fi 5584 for lt_tmp_nm in $lt_nm_to_check; do 5585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5586 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5587 IFS="$lt_save_ifs" 5588 test -z "$ac_dir" && ac_dir=. 5589 tmp_nm="$ac_dir/$lt_tmp_nm" 5590 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5591 # Check to see if the nm accepts a BSD-compat flag. 5592 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5593 # nm: unknown option "B" ignored 5594 # Tru64's nm complains that /dev/null is an invalid object file 5595 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5596 */dev/null* | *'Invalid file or object type'*) 5597 lt_cv_path_NM="$tmp_nm -B" 5598 break 5599 ;; 5600 *) 5601 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5602 */dev/null*) 5603 lt_cv_path_NM="$tmp_nm -p" 5604 break 5605 ;; 5606 *) 5607 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5608 continue # so that we can try to find one that supports BSD flags 5609 ;; 5610 esac 5611 ;; 5612 esac 5613 fi 5614 done 5615 IFS="$lt_save_ifs" 5616 done 5617 : ${lt_cv_path_NM=no} 5618fi 5619fi 5620{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5621$as_echo "$lt_cv_path_NM" >&6; } 5622if test "$lt_cv_path_NM" != "no"; then 5623 NM="$lt_cv_path_NM" 5624else 5625 # Didn't find any BSD compatible name lister, look for dumpbin. 5626 if test -n "$ac_tool_prefix"; then 5627 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5628 do 5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5630set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5631{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5632$as_echo_n "checking for $ac_word... " >&6; } 5633if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5634 $as_echo_n "(cached) " >&6 5635else 5636 if test -n "$DUMPBIN"; then 5637 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5638else 5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5640for as_dir in $PATH 5641do 5642 IFS=$as_save_IFS 5643 test -z "$as_dir" && as_dir=. 5644 for ac_exec_ext in '' $ac_executable_extensions; do 5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5646 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5648 break 2 5649 fi 5650done 5651done 5652IFS=$as_save_IFS 5653 5654fi 5655fi 5656DUMPBIN=$ac_cv_prog_DUMPBIN 5657if test -n "$DUMPBIN"; then 5658 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5659$as_echo "$DUMPBIN" >&6; } 5660else 5661 { $as_echo "$as_me:$LINENO: result: no" >&5 5662$as_echo "no" >&6; } 5663fi 5664 5665 5666 test -n "$DUMPBIN" && break 5667 done 5668fi 5669if test -z "$DUMPBIN"; then 5670 ac_ct_DUMPBIN=$DUMPBIN 5671 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5672do 5673 # Extract the first word of "$ac_prog", so it can be a program name with args. 5674set dummy $ac_prog; ac_word=$2 5675{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5676$as_echo_n "checking for $ac_word... " >&6; } 5677if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5678 $as_echo_n "(cached) " >&6 5679else 5680 if test -n "$ac_ct_DUMPBIN"; then 5681 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5682else 5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5684for as_dir in $PATH 5685do 5686 IFS=$as_save_IFS 5687 test -z "$as_dir" && as_dir=. 5688 for ac_exec_ext in '' $ac_executable_extensions; do 5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5690 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5692 break 2 5693 fi 5694done 5695done 5696IFS=$as_save_IFS 5697 5698fi 5699fi 5700ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5701if test -n "$ac_ct_DUMPBIN"; then 5702 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5703$as_echo "$ac_ct_DUMPBIN" >&6; } 5704else 5705 { $as_echo "$as_me:$LINENO: result: no" >&5 5706$as_echo "no" >&6; } 5707fi 5708 5709 5710 test -n "$ac_ct_DUMPBIN" && break 5711done 5712 5713 if test "x$ac_ct_DUMPBIN" = x; then 5714 DUMPBIN=":" 5715 else 5716 case $cross_compiling:$ac_tool_warned in 5717yes:) 5718{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5720ac_tool_warned=yes ;; 5721esac 5722 DUMPBIN=$ac_ct_DUMPBIN 5723 fi 5724fi 5725 5726 5727 if test "$DUMPBIN" != ":"; then 5728 NM="$DUMPBIN" 5729 fi 5730fi 5731test -z "$NM" && NM=nm 5732 5733 5734 5735 5736 5737 5738{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5739$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5740if test "${lt_cv_nm_interface+set}" = set; then 5741 $as_echo_n "(cached) " >&6 5742else 5743 lt_cv_nm_interface="BSD nm" 5744 echo "int some_variable = 0;" > conftest.$ac_ext 5745 (eval echo "\"\$as_me:5745: $ac_compile\"" >&5) 5746 (eval "$ac_compile" 2>conftest.err) 5747 cat conftest.err >&5 5748 (eval echo "\"\$as_me:5748: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5749 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5750 cat conftest.err >&5 5751 (eval echo "\"\$as_me:5751: output\"" >&5) 5752 cat conftest.out >&5 5753 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5754 lt_cv_nm_interface="MS dumpbin" 5755 fi 5756 rm -f conftest* 5757fi 5758{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5759$as_echo "$lt_cv_nm_interface" >&6; } 5760 5761{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5762$as_echo_n "checking whether ln -s works... " >&6; } 5763LN_S=$as_ln_s 5764if test "$LN_S" = "ln -s"; then 5765 { $as_echo "$as_me:$LINENO: result: yes" >&5 5766$as_echo "yes" >&6; } 5767else 5768 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5769$as_echo "no, using $LN_S" >&6; } 5770fi 5771 5772# find the maximum length of command line arguments 5773{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5774$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5775if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5776 $as_echo_n "(cached) " >&6 5777else 5778 i=0 5779 teststring="ABCD" 5780 5781 case $build_os in 5782 msdosdjgpp*) 5783 # On DJGPP, this test can blow up pretty badly due to problems in libc 5784 # (any single argument exceeding 2000 bytes causes a buffer overrun 5785 # during glob expansion). Even if it were fixed, the result of this 5786 # check would be larger than it should be. 5787 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5788 ;; 5789 5790 gnu*) 5791 # Under GNU Hurd, this test is not required because there is 5792 # no limit to the length of command line arguments. 5793 # Libtool will interpret -1 as no limit whatsoever 5794 lt_cv_sys_max_cmd_len=-1; 5795 ;; 5796 5797 cygwin* | mingw* | cegcc*) 5798 # On Win9x/ME, this test blows up -- it succeeds, but takes 5799 # about 5 minutes as the teststring grows exponentially. 5800 # Worse, since 9x/ME are not pre-emptively multitasking, 5801 # you end up with a "frozen" computer, even though with patience 5802 # the test eventually succeeds (with a max line length of 256k). 5803 # Instead, let's just punt: use the minimum linelength reported by 5804 # all of the supported platforms: 8192 (on NT/2K/XP). 5805 lt_cv_sys_max_cmd_len=8192; 5806 ;; 5807 5808 amigaos*) 5809 # On AmigaOS with pdksh, this test takes hours, literally. 5810 # So we just punt and use a minimum line length of 8192. 5811 lt_cv_sys_max_cmd_len=8192; 5812 ;; 5813 5814 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5815 # This has been around since 386BSD, at least. Likely further. 5816 if test -x /sbin/sysctl; then 5817 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5818 elif test -x /usr/sbin/sysctl; then 5819 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5820 else 5821 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5822 fi 5823 # And add a safety zone 5824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5826 ;; 5827 5828 interix*) 5829 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5830 lt_cv_sys_max_cmd_len=196608 5831 ;; 5832 5833 osf*) 5834 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5835 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5836 # nice to cause kernel panics so lets avoid the loop below. 5837 # First set a reasonable default. 5838 lt_cv_sys_max_cmd_len=16384 5839 # 5840 if test -x /sbin/sysconfig; then 5841 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5842 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5843 esac 5844 fi 5845 ;; 5846 sco3.2v5*) 5847 lt_cv_sys_max_cmd_len=102400 5848 ;; 5849 sysv5* | sco5v6* | sysv4.2uw2*) 5850 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5851 if test -n "$kargmax"; then 5852 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5853 else 5854 lt_cv_sys_max_cmd_len=32768 5855 fi 5856 ;; 5857 *) 5858 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5859 if test -n "$lt_cv_sys_max_cmd_len"; then 5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5862 else 5863 # Make teststring a little bigger before we do anything with it. 5864 # a 1K string should be a reasonable start. 5865 for i in 1 2 3 4 5 6 7 8 ; do 5866 teststring=$teststring$teststring 5867 done 5868 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5869 # If test is not a shell built-in, we'll probably end up computing a 5870 # maximum length that is only half of the actual maximum length, but 5871 # we can't tell. 5872 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5873 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5874 test $i != 17 # 1/2 MB should be enough 5875 do 5876 i=`expr $i + 1` 5877 teststring=$teststring$teststring 5878 done 5879 # Only check the string length outside the loop. 5880 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5881 teststring= 5882 # Add a significant safety factor because C++ compilers can tack on 5883 # massive amounts of additional arguments before passing them to the 5884 # linker. It appears as though 1/2 is a usable value. 5885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5886 fi 5887 ;; 5888 esac 5889 5890fi 5891 5892if test -n $lt_cv_sys_max_cmd_len ; then 5893 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5894$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5895else 5896 { $as_echo "$as_me:$LINENO: result: none" >&5 5897$as_echo "none" >&6; } 5898fi 5899max_cmd_len=$lt_cv_sys_max_cmd_len 5900 5901 5902 5903 5904 5905 5906: ${CP="cp -f"} 5907: ${MV="mv -f"} 5908: ${RM="rm -f"} 5909 5910{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5911$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5912# Try some XSI features 5913xsi_shell=no 5914( _lt_dummy="a/b/c" 5915 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5916 = c,a/b,, \ 5917 && eval 'test $(( 1 + 1 )) -eq 2 \ 5918 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5919 && xsi_shell=yes 5920{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5921$as_echo "$xsi_shell" >&6; } 5922 5923 5924{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5925$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5926lt_shell_append=no 5927( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5928 >/dev/null 2>&1 \ 5929 && lt_shell_append=yes 5930{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5931$as_echo "$lt_shell_append" >&6; } 5932 5933 5934if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5935 lt_unset=unset 5936else 5937 lt_unset=false 5938fi 5939 5940 5941 5942 5943 5944# test EBCDIC or ASCII 5945case `echo X|tr X '\101'` in 5946 A) # ASCII based system 5947 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5948 lt_SP2NL='tr \040 \012' 5949 lt_NL2SP='tr \015\012 \040\040' 5950 ;; 5951 *) # EBCDIC based system 5952 lt_SP2NL='tr \100 \n' 5953 lt_NL2SP='tr \r\n \100\100' 5954 ;; 5955esac 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5966$as_echo_n "checking for $LD option to reload object files... " >&6; } 5967if test "${lt_cv_ld_reload_flag+set}" = set; then 5968 $as_echo_n "(cached) " >&6 5969else 5970 lt_cv_ld_reload_flag='-r' 5971fi 5972{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5973$as_echo "$lt_cv_ld_reload_flag" >&6; } 5974reload_flag=$lt_cv_ld_reload_flag 5975case $reload_flag in 5976"" | " "*) ;; 5977*) reload_flag=" $reload_flag" ;; 5978esac 5979reload_cmds='$LD$reload_flag -o $output$reload_objs' 5980case $host_os in 5981 darwin*) 5982 if test "$GCC" = yes; then 5983 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5984 else 5985 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5986 fi 5987 ;; 5988esac 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998if test -n "$ac_tool_prefix"; then 5999 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6000set dummy ${ac_tool_prefix}objdump; ac_word=$2 6001{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6002$as_echo_n "checking for $ac_word... " >&6; } 6003if test "${ac_cv_prog_OBJDUMP+set}" = set; then 6004 $as_echo_n "(cached) " >&6 6005else 6006 if test -n "$OBJDUMP"; then 6007 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6008else 6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6010for as_dir in $PATH 6011do 6012 IFS=$as_save_IFS 6013 test -z "$as_dir" && as_dir=. 6014 for ac_exec_ext in '' $ac_executable_extensions; do 6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6016 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6018 break 2 6019 fi 6020done 6021done 6022IFS=$as_save_IFS 6023 6024fi 6025fi 6026OBJDUMP=$ac_cv_prog_OBJDUMP 6027if test -n "$OBJDUMP"; then 6028 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 6029$as_echo "$OBJDUMP" >&6; } 6030else 6031 { $as_echo "$as_me:$LINENO: result: no" >&5 6032$as_echo "no" >&6; } 6033fi 6034 6035 6036fi 6037if test -z "$ac_cv_prog_OBJDUMP"; then 6038 ac_ct_OBJDUMP=$OBJDUMP 6039 # Extract the first word of "objdump", so it can be a program name with args. 6040set dummy objdump; ac_word=$2 6041{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6042$as_echo_n "checking for $ac_word... " >&6; } 6043if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 6044 $as_echo_n "(cached) " >&6 6045else 6046 if test -n "$ac_ct_OBJDUMP"; then 6047 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6048else 6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6050for as_dir in $PATH 6051do 6052 IFS=$as_save_IFS 6053 test -z "$as_dir" && as_dir=. 6054 for ac_exec_ext in '' $ac_executable_extensions; do 6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6056 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6058 break 2 6059 fi 6060done 6061done 6062IFS=$as_save_IFS 6063 6064fi 6065fi 6066ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6067if test -n "$ac_ct_OBJDUMP"; then 6068 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 6069$as_echo "$ac_ct_OBJDUMP" >&6; } 6070else 6071 { $as_echo "$as_me:$LINENO: result: no" >&5 6072$as_echo "no" >&6; } 6073fi 6074 6075 if test "x$ac_ct_OBJDUMP" = x; then 6076 OBJDUMP="false" 6077 else 6078 case $cross_compiling:$ac_tool_warned in 6079yes:) 6080{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6082ac_tool_warned=yes ;; 6083esac 6084 OBJDUMP=$ac_ct_OBJDUMP 6085 fi 6086else 6087 OBJDUMP="$ac_cv_prog_OBJDUMP" 6088fi 6089 6090test -z "$OBJDUMP" && OBJDUMP=objdump 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6101$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6102if test "${lt_cv_deplibs_check_method+set}" = set; then 6103 $as_echo_n "(cached) " >&6 6104else 6105 lt_cv_file_magic_cmd='$MAGIC_CMD' 6106lt_cv_file_magic_test_file= 6107lt_cv_deplibs_check_method='unknown' 6108# Need to set the preceding variable on all platforms that support 6109# interlibrary dependencies. 6110# 'none' -- dependencies not supported. 6111# `unknown' -- same as none, but documents that we really don't know. 6112# 'pass_all' -- all dependencies passed with no checks. 6113# 'test_compile' -- check by making test program. 6114# 'file_magic [[regex]]' -- check by looking for files in library path 6115# which responds to the $file_magic_cmd with a given extended regex. 6116# If you have `file' or equivalent on your system and you're not sure 6117# whether `pass_all' will *always* work, you probably want this one. 6118 6119case $host_os in 6120aix[4-9]*) 6121 lt_cv_deplibs_check_method=pass_all 6122 ;; 6123 6124beos*) 6125 lt_cv_deplibs_check_method=pass_all 6126 ;; 6127 6128bsdi[45]*) 6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6130 lt_cv_file_magic_cmd='/usr/bin/file -L' 6131 lt_cv_file_magic_test_file=/shlib/libc.so 6132 ;; 6133 6134cygwin*) 6135 # func_win32_libid is a shell function defined in ltmain.sh 6136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6137 lt_cv_file_magic_cmd='func_win32_libid' 6138 ;; 6139 6140mingw* | pw32*) 6141 # Base MSYS/MinGW do not provide the 'file' command needed by 6142 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6143 # unless we find 'file', for example because we are cross-compiling. 6144 if ( file / ) >/dev/null 2>&1; then 6145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6146 lt_cv_file_magic_cmd='func_win32_libid' 6147 else 6148 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6149 lt_cv_file_magic_cmd='$OBJDUMP -f' 6150 fi 6151 ;; 6152 6153cegcc) 6154 # use the weaker test based on 'objdump'. See mingw*. 6155 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6156 lt_cv_file_magic_cmd='$OBJDUMP -f' 6157 ;; 6158 6159darwin* | rhapsody*) 6160 lt_cv_deplibs_check_method=pass_all 6161 ;; 6162 6163freebsd* | dragonfly*) 6164 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6165 case $host_cpu in 6166 i*86 ) 6167 # Not sure whether the presence of OpenBSD here was a mistake. 6168 # Let's accept both of them until this is cleared up. 6169 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6170 lt_cv_file_magic_cmd=/usr/bin/file 6171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6172 ;; 6173 esac 6174 else 6175 lt_cv_deplibs_check_method=pass_all 6176 fi 6177 ;; 6178 6179gnu*) 6180 lt_cv_deplibs_check_method=pass_all 6181 ;; 6182 6183hpux10.20* | hpux11*) 6184 lt_cv_file_magic_cmd=/usr/bin/file 6185 case $host_cpu in 6186 ia64*) 6187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6188 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6189 ;; 6190 hppa*64*) 6191 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]' 6192 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6193 ;; 6194 *) 6195 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6196 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6197 ;; 6198 esac 6199 ;; 6200 6201interix[3-9]*) 6202 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6204 ;; 6205 6206irix5* | irix6* | nonstopux*) 6207 case $LD in 6208 *-32|*"-32 ") libmagic=32-bit;; 6209 *-n32|*"-n32 ") libmagic=N32;; 6210 *-64|*"-64 ") libmagic=64-bit;; 6211 *) libmagic=never-match;; 6212 esac 6213 lt_cv_deplibs_check_method=pass_all 6214 ;; 6215 6216# This must be Linux ELF. 6217linux* | k*bsd*-gnu) 6218 lt_cv_deplibs_check_method=pass_all 6219 ;; 6220 6221netbsd*) 6222 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6224 else 6225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6226 fi 6227 ;; 6228 6229newos6*) 6230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6231 lt_cv_file_magic_cmd=/usr/bin/file 6232 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6233 ;; 6234 6235*nto* | *qnx*) 6236 lt_cv_deplibs_check_method=pass_all 6237 ;; 6238 6239openbsd*) 6240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6242 else 6243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6244 fi 6245 ;; 6246 6247osf3* | osf4* | osf5*) 6248 lt_cv_deplibs_check_method=pass_all 6249 ;; 6250 6251rdos*) 6252 lt_cv_deplibs_check_method=pass_all 6253 ;; 6254 6255solaris*) 6256 lt_cv_deplibs_check_method=pass_all 6257 ;; 6258 6259sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6260 lt_cv_deplibs_check_method=pass_all 6261 ;; 6262 6263sysv4 | sysv4.3*) 6264 case $host_vendor in 6265 motorola) 6266 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]' 6267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6268 ;; 6269 ncr) 6270 lt_cv_deplibs_check_method=pass_all 6271 ;; 6272 sequent) 6273 lt_cv_file_magic_cmd='/bin/file' 6274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6275 ;; 6276 sni) 6277 lt_cv_file_magic_cmd='/bin/file' 6278 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6279 lt_cv_file_magic_test_file=/lib/libc.so 6280 ;; 6281 siemens) 6282 lt_cv_deplibs_check_method=pass_all 6283 ;; 6284 pc) 6285 lt_cv_deplibs_check_method=pass_all 6286 ;; 6287 esac 6288 ;; 6289 6290tpf*) 6291 lt_cv_deplibs_check_method=pass_all 6292 ;; 6293esac 6294 6295fi 6296{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6297$as_echo "$lt_cv_deplibs_check_method" >&6; } 6298file_magic_cmd=$lt_cv_file_magic_cmd 6299deplibs_check_method=$lt_cv_deplibs_check_method 6300test -z "$deplibs_check_method" && deplibs_check_method=unknown 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313if test -n "$ac_tool_prefix"; then 6314 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6315set dummy ${ac_tool_prefix}ar; ac_word=$2 6316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6317$as_echo_n "checking for $ac_word... " >&6; } 6318if test "${ac_cv_prog_AR+set}" = set; then 6319 $as_echo_n "(cached) " >&6 6320else 6321 if test -n "$AR"; then 6322 ac_cv_prog_AR="$AR" # Let the user override the test. 6323else 6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6325for as_dir in $PATH 6326do 6327 IFS=$as_save_IFS 6328 test -z "$as_dir" && as_dir=. 6329 for ac_exec_ext in '' $ac_executable_extensions; do 6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6331 ac_cv_prog_AR="${ac_tool_prefix}ar" 6332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6333 break 2 6334 fi 6335done 6336done 6337IFS=$as_save_IFS 6338 6339fi 6340fi 6341AR=$ac_cv_prog_AR 6342if test -n "$AR"; then 6343 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6344$as_echo "$AR" >&6; } 6345else 6346 { $as_echo "$as_me:$LINENO: result: no" >&5 6347$as_echo "no" >&6; } 6348fi 6349 6350 6351fi 6352if test -z "$ac_cv_prog_AR"; then 6353 ac_ct_AR=$AR 6354 # Extract the first word of "ar", so it can be a program name with args. 6355set dummy ar; ac_word=$2 6356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6357$as_echo_n "checking for $ac_word... " >&6; } 6358if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6359 $as_echo_n "(cached) " >&6 6360else 6361 if test -n "$ac_ct_AR"; then 6362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6363else 6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6365for as_dir in $PATH 6366do 6367 IFS=$as_save_IFS 6368 test -z "$as_dir" && as_dir=. 6369 for ac_exec_ext in '' $ac_executable_extensions; do 6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6371 ac_cv_prog_ac_ct_AR="ar" 6372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6373 break 2 6374 fi 6375done 6376done 6377IFS=$as_save_IFS 6378 6379fi 6380fi 6381ac_ct_AR=$ac_cv_prog_ac_ct_AR 6382if test -n "$ac_ct_AR"; then 6383 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6384$as_echo "$ac_ct_AR" >&6; } 6385else 6386 { $as_echo "$as_me:$LINENO: result: no" >&5 6387$as_echo "no" >&6; } 6388fi 6389 6390 if test "x$ac_ct_AR" = x; then 6391 AR="false" 6392 else 6393 case $cross_compiling:$ac_tool_warned in 6394yes:) 6395{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6397ac_tool_warned=yes ;; 6398esac 6399 AR=$ac_ct_AR 6400 fi 6401else 6402 AR="$ac_cv_prog_AR" 6403fi 6404 6405test -z "$AR" && AR=ar 6406test -z "$AR_FLAGS" && AR_FLAGS=cru 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418if test -n "$ac_tool_prefix"; then 6419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6420set dummy ${ac_tool_prefix}strip; ac_word=$2 6421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6422$as_echo_n "checking for $ac_word... " >&6; } 6423if test "${ac_cv_prog_STRIP+set}" = set; then 6424 $as_echo_n "(cached) " >&6 6425else 6426 if test -n "$STRIP"; then 6427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6428else 6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6436 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440done 6441done 6442IFS=$as_save_IFS 6443 6444fi 6445fi 6446STRIP=$ac_cv_prog_STRIP 6447if test -n "$STRIP"; then 6448 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6449$as_echo "$STRIP" >&6; } 6450else 6451 { $as_echo "$as_me:$LINENO: result: no" >&5 6452$as_echo "no" >&6; } 6453fi 6454 6455 6456fi 6457if test -z "$ac_cv_prog_STRIP"; then 6458 ac_ct_STRIP=$STRIP 6459 # Extract the first word of "strip", so it can be a program name with args. 6460set dummy strip; ac_word=$2 6461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6462$as_echo_n "checking for $ac_word... " >&6; } 6463if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6464 $as_echo_n "(cached) " >&6 6465else 6466 if test -n "$ac_ct_STRIP"; then 6467 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6468else 6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470for as_dir in $PATH 6471do 6472 IFS=$as_save_IFS 6473 test -z "$as_dir" && as_dir=. 6474 for ac_exec_ext in '' $ac_executable_extensions; do 6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6476 ac_cv_prog_ac_ct_STRIP="strip" 6477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6478 break 2 6479 fi 6480done 6481done 6482IFS=$as_save_IFS 6483 6484fi 6485fi 6486ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6487if test -n "$ac_ct_STRIP"; then 6488 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6489$as_echo "$ac_ct_STRIP" >&6; } 6490else 6491 { $as_echo "$as_me:$LINENO: result: no" >&5 6492$as_echo "no" >&6; } 6493fi 6494 6495 if test "x$ac_ct_STRIP" = x; then 6496 STRIP=":" 6497 else 6498 case $cross_compiling:$ac_tool_warned in 6499yes:) 6500{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6502ac_tool_warned=yes ;; 6503esac 6504 STRIP=$ac_ct_STRIP 6505 fi 6506else 6507 STRIP="$ac_cv_prog_STRIP" 6508fi 6509 6510test -z "$STRIP" && STRIP=: 6511 6512 6513 6514 6515 6516 6517if test -n "$ac_tool_prefix"; then 6518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6519set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6520{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6521$as_echo_n "checking for $ac_word... " >&6; } 6522if test "${ac_cv_prog_RANLIB+set}" = set; then 6523 $as_echo_n "(cached) " >&6 6524else 6525 if test -n "$RANLIB"; then 6526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6527else 6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6529for as_dir in $PATH 6530do 6531 IFS=$as_save_IFS 6532 test -z "$as_dir" && as_dir=. 6533 for ac_exec_ext in '' $ac_executable_extensions; do 6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6537 break 2 6538 fi 6539done 6540done 6541IFS=$as_save_IFS 6542 6543fi 6544fi 6545RANLIB=$ac_cv_prog_RANLIB 6546if test -n "$RANLIB"; then 6547 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6548$as_echo "$RANLIB" >&6; } 6549else 6550 { $as_echo "$as_me:$LINENO: result: no" >&5 6551$as_echo "no" >&6; } 6552fi 6553 6554 6555fi 6556if test -z "$ac_cv_prog_RANLIB"; then 6557 ac_ct_RANLIB=$RANLIB 6558 # Extract the first word of "ranlib", so it can be a program name with args. 6559set dummy ranlib; ac_word=$2 6560{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6561$as_echo_n "checking for $ac_word... " >&6; } 6562if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6563 $as_echo_n "(cached) " >&6 6564else 6565 if test -n "$ac_ct_RANLIB"; then 6566 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6567else 6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569for as_dir in $PATH 6570do 6571 IFS=$as_save_IFS 6572 test -z "$as_dir" && as_dir=. 6573 for ac_exec_ext in '' $ac_executable_extensions; do 6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6575 ac_cv_prog_ac_ct_RANLIB="ranlib" 6576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6577 break 2 6578 fi 6579done 6580done 6581IFS=$as_save_IFS 6582 6583fi 6584fi 6585ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6586if test -n "$ac_ct_RANLIB"; then 6587 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6588$as_echo "$ac_ct_RANLIB" >&6; } 6589else 6590 { $as_echo "$as_me:$LINENO: result: no" >&5 6591$as_echo "no" >&6; } 6592fi 6593 6594 if test "x$ac_ct_RANLIB" = x; then 6595 RANLIB=":" 6596 else 6597 case $cross_compiling:$ac_tool_warned in 6598yes:) 6599{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6601ac_tool_warned=yes ;; 6602esac 6603 RANLIB=$ac_ct_RANLIB 6604 fi 6605else 6606 RANLIB="$ac_cv_prog_RANLIB" 6607fi 6608 6609test -z "$RANLIB" && RANLIB=: 6610 6611 6612 6613 6614 6615 6616# Determine commands to create old-style static archives. 6617old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6618old_postinstall_cmds='chmod 644 $oldlib' 6619old_postuninstall_cmds= 6620 6621if test -n "$RANLIB"; then 6622 case $host_os in 6623 openbsd*) 6624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6625 ;; 6626 *) 6627 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6628 ;; 6629 esac 6630 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6631fi 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666# If no C compiler was specified, use CC. 6667LTCC=${LTCC-"$CC"} 6668 6669# If no C compiler flags were specified, use CFLAGS. 6670LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6671 6672# Allow CC to be a program name with arguments. 6673compiler=$CC 6674 6675 6676# Check for command to grab the raw symbol name followed by C symbol from nm. 6677{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6678$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6679if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6680 $as_echo_n "(cached) " >&6 6681else 6682 6683# These are sane defaults that work on at least a few old systems. 6684# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6685 6686# Character class describing NM global symbol codes. 6687symcode='[BCDEGRST]' 6688 6689# Regexp to match symbols that can be accessed directly from C. 6690sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6691 6692# Define system-specific variables. 6693case $host_os in 6694aix*) 6695 symcode='[BCDT]' 6696 ;; 6697cygwin* | mingw* | pw32* | cegcc*) 6698 symcode='[ABCDGISTW]' 6699 ;; 6700hpux*) 6701 if test "$host_cpu" = ia64; then 6702 symcode='[ABCDEGRST]' 6703 fi 6704 ;; 6705irix* | nonstopux*) 6706 symcode='[BCDEGRST]' 6707 ;; 6708osf*) 6709 symcode='[BCDEGQRST]' 6710 ;; 6711solaris*) 6712 symcode='[BDRT]' 6713 ;; 6714sco3.2v5*) 6715 symcode='[DT]' 6716 ;; 6717sysv4.2uw2*) 6718 symcode='[DT]' 6719 ;; 6720sysv5* | sco5v6* | unixware* | OpenUNIX*) 6721 symcode='[ABDT]' 6722 ;; 6723sysv4) 6724 symcode='[DFNSTU]' 6725 ;; 6726esac 6727 6728# If we're using GNU nm, then use its standard symbol codes. 6729case `$NM -V 2>&1` in 6730*GNU* | *'with BFD'*) 6731 symcode='[ABCDGIRSTW]' ;; 6732esac 6733 6734# Transform an extracted symbol line into a proper C declaration. 6735# Some systems (esp. on ia64) link data and code symbols differently, 6736# so use this general approach. 6737lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6738 6739# Transform an extracted symbol line into symbol name and symbol address 6740lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6741lt_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'" 6742 6743# Handle CRLF in mingw tool chain 6744opt_cr= 6745case $build_os in 6746mingw*) 6747 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6748 ;; 6749esac 6750 6751# Try without a prefix underscore, then with it. 6752for ac_symprfx in "" "_"; do 6753 6754 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6755 symxfrm="\\1 $ac_symprfx\\2 \\2" 6756 6757 # Write the raw and C identifiers. 6758 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6759 # Fake it for dumpbin and say T for any non-static function 6760 # and D for any global variable. 6761 # Also find C++ and __fastcall symbols from MSVC++, 6762 # which start with @ or ?. 6763 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6764" {last_section=section; section=\$ 3};"\ 6765" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6766" \$ 0!~/External *\|/{next};"\ 6767" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6768" {if(hide[section]) next};"\ 6769" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6770" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6771" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6772" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6773" ' prfx=^$ac_symprfx" 6774 else 6775 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6776 fi 6777 6778 # Check to see that the pipe works correctly. 6779 pipe_works=no 6780 6781 rm -f conftest* 6782 cat > conftest.$ac_ext <<_LT_EOF 6783#ifdef __cplusplus 6784extern "C" { 6785#endif 6786char nm_test_var; 6787void nm_test_func(void); 6788void nm_test_func(void){} 6789#ifdef __cplusplus 6790} 6791#endif 6792int main(){nm_test_var='a';nm_test_func();return(0);} 6793_LT_EOF 6794 6795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6796 (eval $ac_compile) 2>&5 6797 ac_status=$? 6798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6799 (exit $ac_status); }; then 6800 # Now try to grab the symbols. 6801 nlist=conftest.nm 6802 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6803 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6804 ac_status=$? 6805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6806 (exit $ac_status); } && test -s "$nlist"; then 6807 # Try sorting and uniquifying the output. 6808 if sort "$nlist" | uniq > "$nlist"T; then 6809 mv -f "$nlist"T "$nlist" 6810 else 6811 rm -f "$nlist"T 6812 fi 6813 6814 # Make sure that we snagged all the symbols we need. 6815 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6816 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6817 cat <<_LT_EOF > conftest.$ac_ext 6818#ifdef __cplusplus 6819extern "C" { 6820#endif 6821 6822_LT_EOF 6823 # Now generate the symbol file. 6824 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6825 6826 cat <<_LT_EOF >> conftest.$ac_ext 6827 6828/* The mapping between symbol names and symbols. */ 6829const struct { 6830 const char *name; 6831 void *address; 6832} 6833lt__PROGRAM__LTX_preloaded_symbols[] = 6834{ 6835 { "@PROGRAM@", (void *) 0 }, 6836_LT_EOF 6837 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6838 cat <<\_LT_EOF >> conftest.$ac_ext 6839 {0, (void *) 0} 6840}; 6841 6842/* This works around a problem in FreeBSD linker */ 6843#ifdef FREEBSD_WORKAROUND 6844static const void *lt_preloaded_setup() { 6845 return lt__PROGRAM__LTX_preloaded_symbols; 6846} 6847#endif 6848 6849#ifdef __cplusplus 6850} 6851#endif 6852_LT_EOF 6853 # Now try linking the two files. 6854 mv conftest.$ac_objext conftstm.$ac_objext 6855 lt_save_LIBS="$LIBS" 6856 lt_save_CFLAGS="$CFLAGS" 6857 LIBS="conftstm.$ac_objext" 6858 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6860 (eval $ac_link) 2>&5 6861 ac_status=$? 6862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6863 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6864 pipe_works=yes 6865 fi 6866 LIBS="$lt_save_LIBS" 6867 CFLAGS="$lt_save_CFLAGS" 6868 else 6869 echo "cannot find nm_test_func in $nlist" >&5 6870 fi 6871 else 6872 echo "cannot find nm_test_var in $nlist" >&5 6873 fi 6874 else 6875 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6876 fi 6877 else 6878 echo "$progname: failed program was:" >&5 6879 cat conftest.$ac_ext >&5 6880 fi 6881 rm -rf conftest* conftst* 6882 6883 # Do not use the global_symbol_pipe unless it works. 6884 if test "$pipe_works" = yes; then 6885 break 6886 else 6887 lt_cv_sys_global_symbol_pipe= 6888 fi 6889done 6890 6891fi 6892 6893if test -z "$lt_cv_sys_global_symbol_pipe"; then 6894 lt_cv_sys_global_symbol_to_cdecl= 6895fi 6896if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6897 { $as_echo "$as_me:$LINENO: result: failed" >&5 6898$as_echo "failed" >&6; } 6899else 6900 { $as_echo "$as_me:$LINENO: result: ok" >&5 6901$as_echo "ok" >&6; } 6902fi 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925# Check whether --enable-libtool-lock was given. 6926if test "${enable_libtool_lock+set}" = set; then 6927 enableval=$enable_libtool_lock; 6928fi 6929 6930test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6931 6932# Some flags need to be propagated to the compiler or linker for good 6933# libtool support. 6934case $host in 6935ia64-*-hpux*) 6936 # Find out which ABI we are using. 6937 echo 'int i;' > conftest.$ac_ext 6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6939 (eval $ac_compile) 2>&5 6940 ac_status=$? 6941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6942 (exit $ac_status); }; then 6943 case `/usr/bin/file conftest.$ac_objext` in 6944 *ELF-32*) 6945 HPUX_IA64_MODE="32" 6946 ;; 6947 *ELF-64*) 6948 HPUX_IA64_MODE="64" 6949 ;; 6950 esac 6951 fi 6952 rm -rf conftest* 6953 ;; 6954*-*-irix6*) 6955 # Find out which ABI we are using. 6956 echo '#line 6956 "configure"' > conftest.$ac_ext 6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6958 (eval $ac_compile) 2>&5 6959 ac_status=$? 6960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6961 (exit $ac_status); }; then 6962 if test "$lt_cv_prog_gnu_ld" = yes; then 6963 case `/usr/bin/file conftest.$ac_objext` in 6964 *32-bit*) 6965 LD="${LD-ld} -melf32bsmip" 6966 ;; 6967 *N32*) 6968 LD="${LD-ld} -melf32bmipn32" 6969 ;; 6970 *64-bit*) 6971 LD="${LD-ld} -melf64bmip" 6972 ;; 6973 esac 6974 else 6975 case `/usr/bin/file conftest.$ac_objext` in 6976 *32-bit*) 6977 LD="${LD-ld} -32" 6978 ;; 6979 *N32*) 6980 LD="${LD-ld} -n32" 6981 ;; 6982 *64-bit*) 6983 LD="${LD-ld} -64" 6984 ;; 6985 esac 6986 fi 6987 fi 6988 rm -rf conftest* 6989 ;; 6990 6991x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6992s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6993 # Find out which ABI we are using. 6994 echo 'int i;' > conftest.$ac_ext 6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6996 (eval $ac_compile) 2>&5 6997 ac_status=$? 6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6999 (exit $ac_status); }; then 7000 case `/usr/bin/file conftest.o` in 7001 *32-bit*) 7002 case $host in 7003 x86_64-*kfreebsd*-gnu) 7004 LD="${LD-ld} -m elf_i386_fbsd" 7005 ;; 7006 x86_64-*linux*) 7007 LD="${LD-ld} -m elf_i386" 7008 ;; 7009 ppc64-*linux*|powerpc64-*linux*) 7010 LD="${LD-ld} -m elf32ppclinux" 7011 ;; 7012 s390x-*linux*) 7013 LD="${LD-ld} -m elf_s390" 7014 ;; 7015 sparc64-*linux*) 7016 LD="${LD-ld} -m elf32_sparc" 7017 ;; 7018 esac 7019 ;; 7020 *64-bit*) 7021 case $host in 7022 x86_64-*kfreebsd*-gnu) 7023 LD="${LD-ld} -m elf_x86_64_fbsd" 7024 ;; 7025 x86_64-*linux*) 7026 LD="${LD-ld} -m elf_x86_64" 7027 ;; 7028 ppc*-*linux*|powerpc*-*linux*) 7029 LD="${LD-ld} -m elf64ppc" 7030 ;; 7031 s390*-*linux*|s390*-*tpf*) 7032 LD="${LD-ld} -m elf64_s390" 7033 ;; 7034 sparc*-*linux*) 7035 LD="${LD-ld} -m elf64_sparc" 7036 ;; 7037 esac 7038 ;; 7039 esac 7040 fi 7041 rm -rf conftest* 7042 ;; 7043 7044*-*-sco3.2v5*) 7045 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7046 SAVE_CFLAGS="$CFLAGS" 7047 CFLAGS="$CFLAGS -belf" 7048 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7049$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7050if test "${lt_cv_cc_needs_belf+set}" = set; then 7051 $as_echo_n "(cached) " >&6 7052else 7053 ac_ext=c 7054ac_cpp='$CPP $CPPFLAGS' 7055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7057ac_compiler_gnu=$ac_cv_c_compiler_gnu 7058 7059 cat >conftest.$ac_ext <<_ACEOF 7060/* confdefs.h. */ 7061_ACEOF 7062cat confdefs.h >>conftest.$ac_ext 7063cat >>conftest.$ac_ext <<_ACEOF 7064/* end confdefs.h. */ 7065 7066int 7067main () 7068{ 7069 7070 ; 7071 return 0; 7072} 7073_ACEOF 7074rm -f conftest.$ac_objext conftest$ac_exeext 7075if { (ac_try="$ac_link" 7076case "(($ac_try" in 7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7078 *) ac_try_echo=$ac_try;; 7079esac 7080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7081$as_echo "$ac_try_echo") >&5 7082 (eval "$ac_link") 2>conftest.er1 7083 ac_status=$? 7084 grep -v '^ *+' conftest.er1 >conftest.err 7085 rm -f conftest.er1 7086 cat conftest.err >&5 7087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7088 (exit $ac_status); } && { 7089 test -z "$ac_c_werror_flag" || 7090 test ! -s conftest.err 7091 } && test -s conftest$ac_exeext && { 7092 test "$cross_compiling" = yes || 7093 $as_test_x conftest$ac_exeext 7094 }; then 7095 lt_cv_cc_needs_belf=yes 7096else 7097 $as_echo "$as_me: failed program was:" >&5 7098sed 's/^/| /' conftest.$ac_ext >&5 7099 7100 lt_cv_cc_needs_belf=no 7101fi 7102 7103rm -rf conftest.dSYM 7104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7105 conftest$ac_exeext conftest.$ac_ext 7106 ac_ext=c 7107ac_cpp='$CPP $CPPFLAGS' 7108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7110ac_compiler_gnu=$ac_cv_c_compiler_gnu 7111 7112fi 7113{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7114$as_echo "$lt_cv_cc_needs_belf" >&6; } 7115 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7117 CFLAGS="$SAVE_CFLAGS" 7118 fi 7119 ;; 7120sparc*-*solaris*) 7121 # Find out which ABI we are using. 7122 echo 'int i;' > conftest.$ac_ext 7123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7124 (eval $ac_compile) 2>&5 7125 ac_status=$? 7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7127 (exit $ac_status); }; then 7128 case `/usr/bin/file conftest.o` in 7129 *64-bit*) 7130 case $lt_cv_prog_gnu_ld in 7131 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7132 *) 7133 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7134 LD="${LD-ld} -64" 7135 fi 7136 ;; 7137 esac 7138 ;; 7139 esac 7140 fi 7141 rm -rf conftest* 7142 ;; 7143esac 7144 7145need_locks="$enable_libtool_lock" 7146 7147 7148 case $host_os in 7149 rhapsody* | darwin*) 7150 if test -n "$ac_tool_prefix"; then 7151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7152set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7153{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7154$as_echo_n "checking for $ac_word... " >&6; } 7155if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7156 $as_echo_n "(cached) " >&6 7157else 7158 if test -n "$DSYMUTIL"; then 7159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7160else 7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7162for as_dir in $PATH 7163do 7164 IFS=$as_save_IFS 7165 test -z "$as_dir" && as_dir=. 7166 for ac_exec_ext in '' $ac_executable_extensions; do 7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7170 break 2 7171 fi 7172done 7173done 7174IFS=$as_save_IFS 7175 7176fi 7177fi 7178DSYMUTIL=$ac_cv_prog_DSYMUTIL 7179if test -n "$DSYMUTIL"; then 7180 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7181$as_echo "$DSYMUTIL" >&6; } 7182else 7183 { $as_echo "$as_me:$LINENO: result: no" >&5 7184$as_echo "no" >&6; } 7185fi 7186 7187 7188fi 7189if test -z "$ac_cv_prog_DSYMUTIL"; then 7190 ac_ct_DSYMUTIL=$DSYMUTIL 7191 # Extract the first word of "dsymutil", so it can be a program name with args. 7192set dummy dsymutil; ac_word=$2 7193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7194$as_echo_n "checking for $ac_word... " >&6; } 7195if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7196 $as_echo_n "(cached) " >&6 7197else 7198 if test -n "$ac_ct_DSYMUTIL"; then 7199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7200else 7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7202for as_dir in $PATH 7203do 7204 IFS=$as_save_IFS 7205 test -z "$as_dir" && as_dir=. 7206 for ac_exec_ext in '' $ac_executable_extensions; do 7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7210 break 2 7211 fi 7212done 7213done 7214IFS=$as_save_IFS 7215 7216fi 7217fi 7218ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7219if test -n "$ac_ct_DSYMUTIL"; then 7220 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7221$as_echo "$ac_ct_DSYMUTIL" >&6; } 7222else 7223 { $as_echo "$as_me:$LINENO: result: no" >&5 7224$as_echo "no" >&6; } 7225fi 7226 7227 if test "x$ac_ct_DSYMUTIL" = x; then 7228 DSYMUTIL=":" 7229 else 7230 case $cross_compiling:$ac_tool_warned in 7231yes:) 7232{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7234ac_tool_warned=yes ;; 7235esac 7236 DSYMUTIL=$ac_ct_DSYMUTIL 7237 fi 7238else 7239 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7240fi 7241 7242 if test -n "$ac_tool_prefix"; then 7243 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7244set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7245{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7246$as_echo_n "checking for $ac_word... " >&6; } 7247if test "${ac_cv_prog_NMEDIT+set}" = set; then 7248 $as_echo_n "(cached) " >&6 7249else 7250 if test -n "$NMEDIT"; then 7251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7252else 7253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7254for as_dir in $PATH 7255do 7256 IFS=$as_save_IFS 7257 test -z "$as_dir" && as_dir=. 7258 for ac_exec_ext in '' $ac_executable_extensions; do 7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7260 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7262 break 2 7263 fi 7264done 7265done 7266IFS=$as_save_IFS 7267 7268fi 7269fi 7270NMEDIT=$ac_cv_prog_NMEDIT 7271if test -n "$NMEDIT"; then 7272 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7273$as_echo "$NMEDIT" >&6; } 7274else 7275 { $as_echo "$as_me:$LINENO: result: no" >&5 7276$as_echo "no" >&6; } 7277fi 7278 7279 7280fi 7281if test -z "$ac_cv_prog_NMEDIT"; then 7282 ac_ct_NMEDIT=$NMEDIT 7283 # Extract the first word of "nmedit", so it can be a program name with args. 7284set dummy nmedit; ac_word=$2 7285{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7286$as_echo_n "checking for $ac_word... " >&6; } 7287if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7288 $as_echo_n "(cached) " >&6 7289else 7290 if test -n "$ac_ct_NMEDIT"; then 7291 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7292else 7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7294for as_dir in $PATH 7295do 7296 IFS=$as_save_IFS 7297 test -z "$as_dir" && as_dir=. 7298 for ac_exec_ext in '' $ac_executable_extensions; do 7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7300 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7302 break 2 7303 fi 7304done 7305done 7306IFS=$as_save_IFS 7307 7308fi 7309fi 7310ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7311if test -n "$ac_ct_NMEDIT"; then 7312 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7313$as_echo "$ac_ct_NMEDIT" >&6; } 7314else 7315 { $as_echo "$as_me:$LINENO: result: no" >&5 7316$as_echo "no" >&6; } 7317fi 7318 7319 if test "x$ac_ct_NMEDIT" = x; then 7320 NMEDIT=":" 7321 else 7322 case $cross_compiling:$ac_tool_warned in 7323yes:) 7324{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7326ac_tool_warned=yes ;; 7327esac 7328 NMEDIT=$ac_ct_NMEDIT 7329 fi 7330else 7331 NMEDIT="$ac_cv_prog_NMEDIT" 7332fi 7333 7334 if test -n "$ac_tool_prefix"; then 7335 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7336set dummy ${ac_tool_prefix}lipo; ac_word=$2 7337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7338$as_echo_n "checking for $ac_word... " >&6; } 7339if test "${ac_cv_prog_LIPO+set}" = set; then 7340 $as_echo_n "(cached) " >&6 7341else 7342 if test -n "$LIPO"; then 7343 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7344else 7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7346for as_dir in $PATH 7347do 7348 IFS=$as_save_IFS 7349 test -z "$as_dir" && as_dir=. 7350 for ac_exec_ext in '' $ac_executable_extensions; do 7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7352 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7354 break 2 7355 fi 7356done 7357done 7358IFS=$as_save_IFS 7359 7360fi 7361fi 7362LIPO=$ac_cv_prog_LIPO 7363if test -n "$LIPO"; then 7364 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 7365$as_echo "$LIPO" >&6; } 7366else 7367 { $as_echo "$as_me:$LINENO: result: no" >&5 7368$as_echo "no" >&6; } 7369fi 7370 7371 7372fi 7373if test -z "$ac_cv_prog_LIPO"; then 7374 ac_ct_LIPO=$LIPO 7375 # Extract the first word of "lipo", so it can be a program name with args. 7376set dummy lipo; ac_word=$2 7377{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7378$as_echo_n "checking for $ac_word... " >&6; } 7379if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7380 $as_echo_n "(cached) " >&6 7381else 7382 if test -n "$ac_ct_LIPO"; then 7383 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7384else 7385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7386for as_dir in $PATH 7387do 7388 IFS=$as_save_IFS 7389 test -z "$as_dir" && as_dir=. 7390 for ac_exec_ext in '' $ac_executable_extensions; do 7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7392 ac_cv_prog_ac_ct_LIPO="lipo" 7393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7394 break 2 7395 fi 7396done 7397done 7398IFS=$as_save_IFS 7399 7400fi 7401fi 7402ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7403if test -n "$ac_ct_LIPO"; then 7404 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7405$as_echo "$ac_ct_LIPO" >&6; } 7406else 7407 { $as_echo "$as_me:$LINENO: result: no" >&5 7408$as_echo "no" >&6; } 7409fi 7410 7411 if test "x$ac_ct_LIPO" = x; then 7412 LIPO=":" 7413 else 7414 case $cross_compiling:$ac_tool_warned in 7415yes:) 7416{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7418ac_tool_warned=yes ;; 7419esac 7420 LIPO=$ac_ct_LIPO 7421 fi 7422else 7423 LIPO="$ac_cv_prog_LIPO" 7424fi 7425 7426 if test -n "$ac_tool_prefix"; then 7427 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7428set dummy ${ac_tool_prefix}otool; ac_word=$2 7429{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7430$as_echo_n "checking for $ac_word... " >&6; } 7431if test "${ac_cv_prog_OTOOL+set}" = set; then 7432 $as_echo_n "(cached) " >&6 7433else 7434 if test -n "$OTOOL"; then 7435 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7436else 7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7438for as_dir in $PATH 7439do 7440 IFS=$as_save_IFS 7441 test -z "$as_dir" && as_dir=. 7442 for ac_exec_ext in '' $ac_executable_extensions; do 7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7444 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7446 break 2 7447 fi 7448done 7449done 7450IFS=$as_save_IFS 7451 7452fi 7453fi 7454OTOOL=$ac_cv_prog_OTOOL 7455if test -n "$OTOOL"; then 7456 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 7457$as_echo "$OTOOL" >&6; } 7458else 7459 { $as_echo "$as_me:$LINENO: result: no" >&5 7460$as_echo "no" >&6; } 7461fi 7462 7463 7464fi 7465if test -z "$ac_cv_prog_OTOOL"; then 7466 ac_ct_OTOOL=$OTOOL 7467 # Extract the first word of "otool", so it can be a program name with args. 7468set dummy otool; ac_word=$2 7469{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7470$as_echo_n "checking for $ac_word... " >&6; } 7471if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7472 $as_echo_n "(cached) " >&6 7473else 7474 if test -n "$ac_ct_OTOOL"; then 7475 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7476else 7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7478for as_dir in $PATH 7479do 7480 IFS=$as_save_IFS 7481 test -z "$as_dir" && as_dir=. 7482 for ac_exec_ext in '' $ac_executable_extensions; do 7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7484 ac_cv_prog_ac_ct_OTOOL="otool" 7485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7486 break 2 7487 fi 7488done 7489done 7490IFS=$as_save_IFS 7491 7492fi 7493fi 7494ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7495if test -n "$ac_ct_OTOOL"; then 7496 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7497$as_echo "$ac_ct_OTOOL" >&6; } 7498else 7499 { $as_echo "$as_me:$LINENO: result: no" >&5 7500$as_echo "no" >&6; } 7501fi 7502 7503 if test "x$ac_ct_OTOOL" = x; then 7504 OTOOL=":" 7505 else 7506 case $cross_compiling:$ac_tool_warned in 7507yes:) 7508{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7510ac_tool_warned=yes ;; 7511esac 7512 OTOOL=$ac_ct_OTOOL 7513 fi 7514else 7515 OTOOL="$ac_cv_prog_OTOOL" 7516fi 7517 7518 if test -n "$ac_tool_prefix"; then 7519 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7520set dummy ${ac_tool_prefix}otool64; ac_word=$2 7521{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7522$as_echo_n "checking for $ac_word... " >&6; } 7523if test "${ac_cv_prog_OTOOL64+set}" = set; then 7524 $as_echo_n "(cached) " >&6 7525else 7526 if test -n "$OTOOL64"; then 7527 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7528else 7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7530for as_dir in $PATH 7531do 7532 IFS=$as_save_IFS 7533 test -z "$as_dir" && as_dir=. 7534 for ac_exec_ext in '' $ac_executable_extensions; do 7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7536 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7538 break 2 7539 fi 7540done 7541done 7542IFS=$as_save_IFS 7543 7544fi 7545fi 7546OTOOL64=$ac_cv_prog_OTOOL64 7547if test -n "$OTOOL64"; then 7548 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 7549$as_echo "$OTOOL64" >&6; } 7550else 7551 { $as_echo "$as_me:$LINENO: result: no" >&5 7552$as_echo "no" >&6; } 7553fi 7554 7555 7556fi 7557if test -z "$ac_cv_prog_OTOOL64"; then 7558 ac_ct_OTOOL64=$OTOOL64 7559 # Extract the first word of "otool64", so it can be a program name with args. 7560set dummy otool64; ac_word=$2 7561{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7562$as_echo_n "checking for $ac_word... " >&6; } 7563if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7564 $as_echo_n "(cached) " >&6 7565else 7566 if test -n "$ac_ct_OTOOL64"; then 7567 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7568else 7569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7570for as_dir in $PATH 7571do 7572 IFS=$as_save_IFS 7573 test -z "$as_dir" && as_dir=. 7574 for ac_exec_ext in '' $ac_executable_extensions; do 7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7576 ac_cv_prog_ac_ct_OTOOL64="otool64" 7577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7578 break 2 7579 fi 7580done 7581done 7582IFS=$as_save_IFS 7583 7584fi 7585fi 7586ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7587if test -n "$ac_ct_OTOOL64"; then 7588 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7589$as_echo "$ac_ct_OTOOL64" >&6; } 7590else 7591 { $as_echo "$as_me:$LINENO: result: no" >&5 7592$as_echo "no" >&6; } 7593fi 7594 7595 if test "x$ac_ct_OTOOL64" = x; then 7596 OTOOL64=":" 7597 else 7598 case $cross_compiling:$ac_tool_warned in 7599yes:) 7600{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7602ac_tool_warned=yes ;; 7603esac 7604 OTOOL64=$ac_ct_OTOOL64 7605 fi 7606else 7607 OTOOL64="$ac_cv_prog_OTOOL64" 7608fi 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7637$as_echo_n "checking for -single_module linker flag... " >&6; } 7638if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7639 $as_echo_n "(cached) " >&6 7640else 7641 lt_cv_apple_cc_single_mod=no 7642 if test -z "${LT_MULTI_MODULE}"; then 7643 # By default we will add the -single_module flag. You can override 7644 # by either setting the environment variable LT_MULTI_MODULE 7645 # non-empty at configure time, or by adding -multi_module to the 7646 # link flags. 7647 rm -rf libconftest.dylib* 7648 echo "int foo(void){return 1;}" > conftest.c 7649 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7650-dynamiclib -Wl,-single_module conftest.c" >&5 7651 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7652 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7653 _lt_result=$? 7654 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7655 lt_cv_apple_cc_single_mod=yes 7656 else 7657 cat conftest.err >&5 7658 fi 7659 rm -rf libconftest.dylib* 7660 rm -f conftest.* 7661 fi 7662fi 7663{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7664$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7665 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7666$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7667if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7668 $as_echo_n "(cached) " >&6 7669else 7670 lt_cv_ld_exported_symbols_list=no 7671 save_LDFLAGS=$LDFLAGS 7672 echo "_main" > conftest.sym 7673 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7674 cat >conftest.$ac_ext <<_ACEOF 7675/* confdefs.h. */ 7676_ACEOF 7677cat confdefs.h >>conftest.$ac_ext 7678cat >>conftest.$ac_ext <<_ACEOF 7679/* end confdefs.h. */ 7680 7681int 7682main () 7683{ 7684 7685 ; 7686 return 0; 7687} 7688_ACEOF 7689rm -f conftest.$ac_objext conftest$ac_exeext 7690if { (ac_try="$ac_link" 7691case "(($ac_try" in 7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7693 *) ac_try_echo=$ac_try;; 7694esac 7695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7696$as_echo "$ac_try_echo") >&5 7697 (eval "$ac_link") 2>conftest.er1 7698 ac_status=$? 7699 grep -v '^ *+' conftest.er1 >conftest.err 7700 rm -f conftest.er1 7701 cat conftest.err >&5 7702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7703 (exit $ac_status); } && { 7704 test -z "$ac_c_werror_flag" || 7705 test ! -s conftest.err 7706 } && test -s conftest$ac_exeext && { 7707 test "$cross_compiling" = yes || 7708 $as_test_x conftest$ac_exeext 7709 }; then 7710 lt_cv_ld_exported_symbols_list=yes 7711else 7712 $as_echo "$as_me: failed program was:" >&5 7713sed 's/^/| /' conftest.$ac_ext >&5 7714 7715 lt_cv_ld_exported_symbols_list=no 7716fi 7717 7718rm -rf conftest.dSYM 7719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7720 conftest$ac_exeext conftest.$ac_ext 7721 LDFLAGS="$save_LDFLAGS" 7722 7723fi 7724{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7725$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7726 case $host_os in 7727 rhapsody* | darwin1.[012]) 7728 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7729 darwin1.*) 7730 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7731 darwin*) # darwin 5.x on 7732 # if running on 10.5 or later, the deployment target defaults 7733 # to the OS version, if on x86, and 10.4, the deployment 7734 # target defaults to 10.4. Don't you love it? 7735 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7736 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7737 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7738 10.[012]*) 7739 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7740 10.*) 7741 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7742 esac 7743 ;; 7744 esac 7745 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7746 _lt_dar_single_mod='$single_module' 7747 fi 7748 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7749 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7750 else 7751 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7752 fi 7753 if test "$DSYMUTIL" != ":"; then 7754 _lt_dsymutil='~$DSYMUTIL $lib || :' 7755 else 7756 _lt_dsymutil= 7757 fi 7758 ;; 7759 esac 7760 7761 7762for ac_header in dlfcn.h 7763do 7764as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7765{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7766$as_echo_n "checking for $ac_header... " >&6; } 7767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7768 $as_echo_n "(cached) " >&6 7769else 7770 cat >conftest.$ac_ext <<_ACEOF 7771/* confdefs.h. */ 7772_ACEOF 7773cat confdefs.h >>conftest.$ac_ext 7774cat >>conftest.$ac_ext <<_ACEOF 7775/* end confdefs.h. */ 7776$ac_includes_default 7777 7778#include <$ac_header> 7779_ACEOF 7780rm -f conftest.$ac_objext 7781if { (ac_try="$ac_compile" 7782case "(($ac_try" in 7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7784 *) ac_try_echo=$ac_try;; 7785esac 7786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7787$as_echo "$ac_try_echo") >&5 7788 (eval "$ac_compile") 2>conftest.er1 7789 ac_status=$? 7790 grep -v '^ *+' conftest.er1 >conftest.err 7791 rm -f conftest.er1 7792 cat conftest.err >&5 7793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7794 (exit $ac_status); } && { 7795 test -z "$ac_c_werror_flag" || 7796 test ! -s conftest.err 7797 } && test -s conftest.$ac_objext; then 7798 eval "$as_ac_Header=yes" 7799else 7800 $as_echo "$as_me: failed program was:" >&5 7801sed 's/^/| /' conftest.$ac_ext >&5 7802 7803 eval "$as_ac_Header=no" 7804fi 7805 7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7807fi 7808ac_res=`eval 'as_val=${'$as_ac_Header'} 7809 $as_echo "$as_val"'` 7810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7811$as_echo "$ac_res" >&6; } 7812as_val=`eval 'as_val=${'$as_ac_Header'} 7813 $as_echo "$as_val"'` 7814 if test "x$as_val" = x""yes; then 7815 cat >>confdefs.h <<_ACEOF 7816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7817_ACEOF 7818 7819fi 7820 7821done 7822 7823 7824 7825# Set options 7826 7827 7828 7829 enable_dlopen=no 7830 7831 7832 enable_win32_dll=no 7833 7834 7835 # Check whether --enable-shared was given. 7836if test "${enable_shared+set}" = set; then 7837 enableval=$enable_shared; p=${PACKAGE-default} 7838 case $enableval in 7839 yes) enable_shared=yes ;; 7840 no) enable_shared=no ;; 7841 *) 7842 enable_shared=no 7843 # Look at the argument we got. We use all the common list separators. 7844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7845 for pkg in $enableval; do 7846 IFS="$lt_save_ifs" 7847 if test "X$pkg" = "X$p"; then 7848 enable_shared=yes 7849 fi 7850 done 7851 IFS="$lt_save_ifs" 7852 ;; 7853 esac 7854else 7855 enable_shared=yes 7856fi 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868# Check whether --with-pic was given. 7869if test "${with_pic+set}" = set; then 7870 withval=$with_pic; pic_mode="$withval" 7871else 7872 pic_mode=default 7873fi 7874 7875 7876test -z "$pic_mode" && pic_mode=default 7877 7878 7879 7880 7881 7882 7883 7884 # Check whether --enable-fast-install was given. 7885if test "${enable_fast_install+set}" = set; then 7886 enableval=$enable_fast_install; p=${PACKAGE-default} 7887 case $enableval in 7888 yes) enable_fast_install=yes ;; 7889 no) enable_fast_install=no ;; 7890 *) 7891 enable_fast_install=no 7892 # Look at the argument we got. We use all the common list separators. 7893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7894 for pkg in $enableval; do 7895 IFS="$lt_save_ifs" 7896 if test "X$pkg" = "X$p"; then 7897 enable_fast_install=yes 7898 fi 7899 done 7900 IFS="$lt_save_ifs" 7901 ;; 7902 esac 7903else 7904 enable_fast_install=yes 7905fi 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917# This can be used to rebuild libtool when needed 7918LIBTOOL_DEPS="$ltmain" 7919 7920# Always use our own libtool. 7921LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947test -z "$LN_S" && LN_S="ln -s" 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962if test -n "${ZSH_VERSION+set}" ; then 7963 setopt NO_GLOB_SUBST 7964fi 7965 7966{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7967$as_echo_n "checking for objdir... " >&6; } 7968if test "${lt_cv_objdir+set}" = set; then 7969 $as_echo_n "(cached) " >&6 7970else 7971 rm -f .libs 2>/dev/null 7972mkdir .libs 2>/dev/null 7973if test -d .libs; then 7974 lt_cv_objdir=.libs 7975else 7976 # MS-DOS does not allow filenames that begin with a dot. 7977 lt_cv_objdir=_libs 7978fi 7979rmdir .libs 2>/dev/null 7980fi 7981{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7982$as_echo "$lt_cv_objdir" >&6; } 7983objdir=$lt_cv_objdir 7984 7985 7986 7987 7988 7989cat >>confdefs.h <<_ACEOF 7990#define LT_OBJDIR "$lt_cv_objdir/" 7991_ACEOF 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009case $host_os in 8010aix3*) 8011 # AIX sometimes has problems with the GCC collect2 program. For some 8012 # reason, if we set the COLLECT_NAMES environment variable, the problems 8013 # vanish in a puff of smoke. 8014 if test "X${COLLECT_NAMES+set}" != Xset; then 8015 COLLECT_NAMES= 8016 export COLLECT_NAMES 8017 fi 8018 ;; 8019esac 8020 8021# Sed substitution that helps us do robust quoting. It backslashifies 8022# metacharacters that are still active within double-quoted strings. 8023sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8024 8025# Same as above, but do not quote variable references. 8026double_quote_subst='s/\(["`\\]\)/\\\1/g' 8027 8028# Sed substitution to delay expansion of an escaped shell variable in a 8029# double_quote_subst'ed string. 8030delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8031 8032# Sed substitution to delay expansion of an escaped single quote. 8033delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8034 8035# Sed substitution to avoid accidental globbing in evaled expressions 8036no_glob_subst='s/\*/\\\*/g' 8037 8038# Global variables: 8039ofile=libtool 8040can_build_shared=yes 8041 8042# All known linkers require a `.a' archive for static linking (except MSVC, 8043# which needs '.lib'). 8044libext=a 8045 8046with_gnu_ld="$lt_cv_prog_gnu_ld" 8047 8048old_CC="$CC" 8049old_CFLAGS="$CFLAGS" 8050 8051# Set sane defaults for various variables 8052test -z "$CC" && CC=cc 8053test -z "$LTCC" && LTCC=$CC 8054test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8055test -z "$LD" && LD=ld 8056test -z "$ac_objext" && ac_objext=o 8057 8058for cc_temp in $compiler""; do 8059 case $cc_temp in 8060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8062 \-*) ;; 8063 *) break;; 8064 esac 8065done 8066cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8067 8068 8069# Only perform the check for file, if the check method requires it 8070test -z "$MAGIC_CMD" && MAGIC_CMD=file 8071case $deplibs_check_method in 8072file_magic*) 8073 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8074 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8075$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8076if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8077 $as_echo_n "(cached) " >&6 8078else 8079 case $MAGIC_CMD in 8080[\\/*] | ?:[\\/]*) 8081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8082 ;; 8083*) 8084 lt_save_MAGIC_CMD="$MAGIC_CMD" 8085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8087 for ac_dir in $ac_dummy; do 8088 IFS="$lt_save_ifs" 8089 test -z "$ac_dir" && ac_dir=. 8090 if test -f $ac_dir/${ac_tool_prefix}file; then 8091 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8092 if test -n "$file_magic_test_file"; then 8093 case $deplibs_check_method in 8094 "file_magic "*) 8095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8098 $EGREP "$file_magic_regex" > /dev/null; then 8099 : 8100 else 8101 cat <<_LT_EOF 1>&2 8102 8103*** Warning: the command libtool uses to detect shared libraries, 8104*** $file_magic_cmd, produces output that libtool cannot recognize. 8105*** The result is that libtool may fail to recognize shared libraries 8106*** as such. This will affect the creation of libtool libraries that 8107*** depend on shared libraries, but programs linked with such libtool 8108*** libraries will work regardless of this problem. Nevertheless, you 8109*** may want to report the problem to your system manager and/or to 8110*** bug-libtool@gnu.org 8111 8112_LT_EOF 8113 fi ;; 8114 esac 8115 fi 8116 break 8117 fi 8118 done 8119 IFS="$lt_save_ifs" 8120 MAGIC_CMD="$lt_save_MAGIC_CMD" 8121 ;; 8122esac 8123fi 8124 8125MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8126if test -n "$MAGIC_CMD"; then 8127 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8128$as_echo "$MAGIC_CMD" >&6; } 8129else 8130 { $as_echo "$as_me:$LINENO: result: no" >&5 8131$as_echo "no" >&6; } 8132fi 8133 8134 8135 8136 8137 8138if test -z "$lt_cv_path_MAGIC_CMD"; then 8139 if test -n "$ac_tool_prefix"; then 8140 { $as_echo "$as_me:$LINENO: checking for file" >&5 8141$as_echo_n "checking for file... " >&6; } 8142if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8143 $as_echo_n "(cached) " >&6 8144else 8145 case $MAGIC_CMD in 8146[\\/*] | ?:[\\/]*) 8147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8148 ;; 8149*) 8150 lt_save_MAGIC_CMD="$MAGIC_CMD" 8151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8153 for ac_dir in $ac_dummy; do 8154 IFS="$lt_save_ifs" 8155 test -z "$ac_dir" && ac_dir=. 8156 if test -f $ac_dir/file; then 8157 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8158 if test -n "$file_magic_test_file"; then 8159 case $deplibs_check_method in 8160 "file_magic "*) 8161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8164 $EGREP "$file_magic_regex" > /dev/null; then 8165 : 8166 else 8167 cat <<_LT_EOF 1>&2 8168 8169*** Warning: the command libtool uses to detect shared libraries, 8170*** $file_magic_cmd, produces output that libtool cannot recognize. 8171*** The result is that libtool may fail to recognize shared libraries 8172*** as such. This will affect the creation of libtool libraries that 8173*** depend on shared libraries, but programs linked with such libtool 8174*** libraries will work regardless of this problem. Nevertheless, you 8175*** may want to report the problem to your system manager and/or to 8176*** bug-libtool@gnu.org 8177 8178_LT_EOF 8179 fi ;; 8180 esac 8181 fi 8182 break 8183 fi 8184 done 8185 IFS="$lt_save_ifs" 8186 MAGIC_CMD="$lt_save_MAGIC_CMD" 8187 ;; 8188esac 8189fi 8190 8191MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8192if test -n "$MAGIC_CMD"; then 8193 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8194$as_echo "$MAGIC_CMD" >&6; } 8195else 8196 { $as_echo "$as_me:$LINENO: result: no" >&5 8197$as_echo "no" >&6; } 8198fi 8199 8200 8201 else 8202 MAGIC_CMD=: 8203 fi 8204fi 8205 8206 fi 8207 ;; 8208esac 8209 8210# Use C for the default configuration in the libtool script 8211 8212lt_save_CC="$CC" 8213ac_ext=c 8214ac_cpp='$CPP $CPPFLAGS' 8215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8217ac_compiler_gnu=$ac_cv_c_compiler_gnu 8218 8219 8220# Source file extension for C test sources. 8221ac_ext=c 8222 8223# Object file extension for compiled C test sources. 8224objext=o 8225objext=$objext 8226 8227# Code to be used in simple compile tests 8228lt_simple_compile_test_code="int some_variable = 0;" 8229 8230# Code to be used in simple link tests 8231lt_simple_link_test_code='int main(){return(0);}' 8232 8233 8234 8235 8236 8237 8238 8239# If no C compiler was specified, use CC. 8240LTCC=${LTCC-"$CC"} 8241 8242# If no C compiler flags were specified, use CFLAGS. 8243LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8244 8245# Allow CC to be a program name with arguments. 8246compiler=$CC 8247 8248# Save the default compiler, since it gets overwritten when the other 8249# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8250compiler_DEFAULT=$CC 8251 8252# save warnings/boilerplate of simple test code 8253ac_outfile=conftest.$ac_objext 8254echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8255eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8256_lt_compiler_boilerplate=`cat conftest.err` 8257$RM conftest* 8258 8259ac_outfile=conftest.$ac_objext 8260echo "$lt_simple_link_test_code" >conftest.$ac_ext 8261eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8262_lt_linker_boilerplate=`cat conftest.err` 8263$RM -r conftest* 8264 8265 8266if test -n "$compiler"; then 8267 8268lt_prog_compiler_no_builtin_flag= 8269 8270if test "$GCC" = yes; then 8271 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8272 8273 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8274$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8275if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8276 $as_echo_n "(cached) " >&6 8277else 8278 lt_cv_prog_compiler_rtti_exceptions=no 8279 ac_outfile=conftest.$ac_objext 8280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8281 lt_compiler_flag="-fno-rtti -fno-exceptions" 8282 # Insert the option either (1) after the last *FLAGS variable, or 8283 # (2) before a word containing "conftest.", or (3) at the end. 8284 # Note that $ac_compile itself does not contain backslashes and begins 8285 # with a dollar sign (not a hyphen), so the echo should work correctly. 8286 # The option is referenced via a variable to avoid confusing sed. 8287 lt_compile=`echo "$ac_compile" | $SED \ 8288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8290 -e 's:$: $lt_compiler_flag:'` 8291 (eval echo "\"\$as_me:8291: $lt_compile\"" >&5) 8292 (eval "$lt_compile" 2>conftest.err) 8293 ac_status=$? 8294 cat conftest.err >&5 8295 echo "$as_me:8295: \$? = $ac_status" >&5 8296 if (exit $ac_status) && test -s "$ac_outfile"; then 8297 # The compiler can only warn and ignore the option if not recognized 8298 # So say no if there are warnings other than the usual output. 8299 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8302 lt_cv_prog_compiler_rtti_exceptions=yes 8303 fi 8304 fi 8305 $RM conftest* 8306 8307fi 8308{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8309$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8310 8311if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8312 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8313else 8314 : 8315fi 8316 8317fi 8318 8319 8320 8321 8322 8323 8324 lt_prog_compiler_wl= 8325lt_prog_compiler_pic= 8326lt_prog_compiler_static= 8327 8328{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8329$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8330 8331 if test "$GCC" = yes; then 8332 lt_prog_compiler_wl='-Wl,' 8333 lt_prog_compiler_static='-static' 8334 8335 case $host_os in 8336 aix*) 8337 # All AIX code is PIC. 8338 if test "$host_cpu" = ia64; then 8339 # AIX 5 now supports IA64 processor 8340 lt_prog_compiler_static='-Bstatic' 8341 fi 8342 ;; 8343 8344 amigaos*) 8345 case $host_cpu in 8346 powerpc) 8347 # see comment about AmigaOS4 .so support 8348 lt_prog_compiler_pic='-fPIC' 8349 ;; 8350 m68k) 8351 # FIXME: we need at least 68020 code to build shared libraries, but 8352 # adding the `-m68020' flag to GCC prevents building anything better, 8353 # like `-m68040'. 8354 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8355 ;; 8356 esac 8357 ;; 8358 8359 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8360 # PIC is the default for these OSes. 8361 ;; 8362 8363 mingw* | cygwin* | pw32* | os2* | cegcc*) 8364 # This hack is so that the source file can tell whether it is being 8365 # built for inclusion in a dll (and should export symbols for example). 8366 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8367 # (--disable-auto-import) libraries 8368 lt_prog_compiler_pic='-DDLL_EXPORT' 8369 ;; 8370 8371 darwin* | rhapsody*) 8372 # PIC is the default on this platform 8373 # Common symbols not allowed in MH_DYLIB files 8374 lt_prog_compiler_pic='-fno-common' 8375 ;; 8376 8377 hpux*) 8378 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8379 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8380 # sets the default TLS model and affects inlining. 8381 case $host_cpu in 8382 hppa*64*) 8383 # +Z the default 8384 ;; 8385 *) 8386 lt_prog_compiler_pic='-fPIC' 8387 ;; 8388 esac 8389 ;; 8390 8391 interix[3-9]*) 8392 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8393 # Instead, we relocate shared libraries at runtime. 8394 ;; 8395 8396 msdosdjgpp*) 8397 # Just because we use GCC doesn't mean we suddenly get shared libraries 8398 # on systems that don't support them. 8399 lt_prog_compiler_can_build_shared=no 8400 enable_shared=no 8401 ;; 8402 8403 *nto* | *qnx*) 8404 # QNX uses GNU C++, but need to define -shared option too, otherwise 8405 # it will coredump. 8406 lt_prog_compiler_pic='-fPIC -shared' 8407 ;; 8408 8409 sysv4*MP*) 8410 if test -d /usr/nec; then 8411 lt_prog_compiler_pic=-Kconform_pic 8412 fi 8413 ;; 8414 8415 *) 8416 lt_prog_compiler_pic='-fPIC' 8417 ;; 8418 esac 8419 else 8420 # PORTME Check for flag to pass linker flags through the system compiler. 8421 case $host_os in 8422 aix*) 8423 lt_prog_compiler_wl='-Wl,' 8424 if test "$host_cpu" = ia64; then 8425 # AIX 5 now supports IA64 processor 8426 lt_prog_compiler_static='-Bstatic' 8427 else 8428 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8429 fi 8430 ;; 8431 8432 mingw* | cygwin* | pw32* | os2* | cegcc*) 8433 # This hack is so that the source file can tell whether it is being 8434 # built for inclusion in a dll (and should export symbols for example). 8435 lt_prog_compiler_pic='-DDLL_EXPORT' 8436 ;; 8437 8438 hpux9* | hpux10* | hpux11*) 8439 lt_prog_compiler_wl='-Wl,' 8440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8441 # not for PA HP-UX. 8442 case $host_cpu in 8443 hppa*64*|ia64*) 8444 # +Z the default 8445 ;; 8446 *) 8447 lt_prog_compiler_pic='+Z' 8448 ;; 8449 esac 8450 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8451 lt_prog_compiler_static='${wl}-a ${wl}archive' 8452 ;; 8453 8454 irix5* | irix6* | nonstopux*) 8455 lt_prog_compiler_wl='-Wl,' 8456 # PIC (with -KPIC) is the default. 8457 lt_prog_compiler_static='-non_shared' 8458 ;; 8459 8460 linux* | k*bsd*-gnu) 8461 case $cc_basename in 8462 # old Intel for x86_64 which still supported -KPIC. 8463 ecc*) 8464 lt_prog_compiler_wl='-Wl,' 8465 lt_prog_compiler_pic='-KPIC' 8466 lt_prog_compiler_static='-static' 8467 ;; 8468 # icc used to be incompatible with GCC. 8469 # ICC 10 doesn't accept -KPIC any more. 8470 icc* | ifort*) 8471 lt_prog_compiler_wl='-Wl,' 8472 lt_prog_compiler_pic='-fPIC' 8473 lt_prog_compiler_static='-static' 8474 ;; 8475 # Lahey Fortran 8.1. 8476 lf95*) 8477 lt_prog_compiler_wl='-Wl,' 8478 lt_prog_compiler_pic='--shared' 8479 lt_prog_compiler_static='--static' 8480 ;; 8481 pgcc* | pgf77* | pgf90* | pgf95*) 8482 # Portland Group compilers (*not* the Pentium gcc compiler, 8483 # which looks to be a dead project) 8484 lt_prog_compiler_wl='-Wl,' 8485 lt_prog_compiler_pic='-fpic' 8486 lt_prog_compiler_static='-Bstatic' 8487 ;; 8488 ccc*) 8489 lt_prog_compiler_wl='-Wl,' 8490 # All Alpha code is PIC. 8491 lt_prog_compiler_static='-non_shared' 8492 ;; 8493 xl*) 8494 # IBM XL C 8.0/Fortran 10.1 on PPC 8495 lt_prog_compiler_wl='-Wl,' 8496 lt_prog_compiler_pic='-qpic' 8497 lt_prog_compiler_static='-qstaticlink' 8498 ;; 8499 *) 8500 case `$CC -V 2>&1 | sed 5q` in 8501 *Sun\ C*) 8502 # Sun C 5.9 8503 lt_prog_compiler_pic='-KPIC' 8504 lt_prog_compiler_static='-Bstatic' 8505 lt_prog_compiler_wl='-Wl,' 8506 ;; 8507 *Sun\ F*) 8508 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8509 lt_prog_compiler_pic='-KPIC' 8510 lt_prog_compiler_static='-Bstatic' 8511 lt_prog_compiler_wl='' 8512 ;; 8513 esac 8514 ;; 8515 esac 8516 ;; 8517 8518 newsos6) 8519 lt_prog_compiler_pic='-KPIC' 8520 lt_prog_compiler_static='-Bstatic' 8521 ;; 8522 8523 *nto* | *qnx*) 8524 # QNX uses GNU C++, but need to define -shared option too, otherwise 8525 # it will coredump. 8526 lt_prog_compiler_pic='-fPIC -shared' 8527 ;; 8528 8529 osf3* | osf4* | osf5*) 8530 lt_prog_compiler_wl='-Wl,' 8531 # All OSF/1 code is PIC. 8532 lt_prog_compiler_static='-non_shared' 8533 ;; 8534 8535 rdos*) 8536 lt_prog_compiler_static='-non_shared' 8537 ;; 8538 8539 solaris*) 8540 lt_prog_compiler_pic='-KPIC' 8541 lt_prog_compiler_static='-Bstatic' 8542 case $cc_basename in 8543 f77* | f90* | f95*) 8544 lt_prog_compiler_wl='-Qoption ld ';; 8545 *) 8546 lt_prog_compiler_wl='-Wl,';; 8547 esac 8548 ;; 8549 8550 sunos4*) 8551 lt_prog_compiler_wl='-Qoption ld ' 8552 lt_prog_compiler_pic='-PIC' 8553 lt_prog_compiler_static='-Bstatic' 8554 ;; 8555 8556 sysv4 | sysv4.2uw2* | sysv4.3*) 8557 lt_prog_compiler_wl='-Wl,' 8558 lt_prog_compiler_pic='-KPIC' 8559 lt_prog_compiler_static='-Bstatic' 8560 ;; 8561 8562 sysv4*MP*) 8563 if test -d /usr/nec ;then 8564 lt_prog_compiler_pic='-Kconform_pic' 8565 lt_prog_compiler_static='-Bstatic' 8566 fi 8567 ;; 8568 8569 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8570 lt_prog_compiler_wl='-Wl,' 8571 lt_prog_compiler_pic='-KPIC' 8572 lt_prog_compiler_static='-Bstatic' 8573 ;; 8574 8575 unicos*) 8576 lt_prog_compiler_wl='-Wl,' 8577 lt_prog_compiler_can_build_shared=no 8578 ;; 8579 8580 uts4*) 8581 lt_prog_compiler_pic='-pic' 8582 lt_prog_compiler_static='-Bstatic' 8583 ;; 8584 8585 *) 8586 lt_prog_compiler_can_build_shared=no 8587 ;; 8588 esac 8589 fi 8590 8591case $host_os in 8592 # For platforms which do not support PIC, -DPIC is meaningless: 8593 *djgpp*) 8594 lt_prog_compiler_pic= 8595 ;; 8596 *) 8597 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8598 ;; 8599esac 8600{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8601$as_echo "$lt_prog_compiler_pic" >&6; } 8602 8603 8604 8605 8606 8607 8608# 8609# Check to make sure the PIC flag actually works. 8610# 8611if test -n "$lt_prog_compiler_pic"; then 8612 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8613$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8614if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8615 $as_echo_n "(cached) " >&6 8616else 8617 lt_cv_prog_compiler_pic_works=no 8618 ac_outfile=conftest.$ac_objext 8619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8620 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8621 # Insert the option either (1) after the last *FLAGS variable, or 8622 # (2) before a word containing "conftest.", or (3) at the end. 8623 # Note that $ac_compile itself does not contain backslashes and begins 8624 # with a dollar sign (not a hyphen), so the echo should work correctly. 8625 # The option is referenced via a variable to avoid confusing sed. 8626 lt_compile=`echo "$ac_compile" | $SED \ 8627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8629 -e 's:$: $lt_compiler_flag:'` 8630 (eval echo "\"\$as_me:8630: $lt_compile\"" >&5) 8631 (eval "$lt_compile" 2>conftest.err) 8632 ac_status=$? 8633 cat conftest.err >&5 8634 echo "$as_me:8634: \$? = $ac_status" >&5 8635 if (exit $ac_status) && test -s "$ac_outfile"; then 8636 # The compiler can only warn and ignore the option if not recognized 8637 # So say no if there are warnings other than the usual output. 8638 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8641 lt_cv_prog_compiler_pic_works=yes 8642 fi 8643 fi 8644 $RM conftest* 8645 8646fi 8647{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8648$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8649 8650if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8651 case $lt_prog_compiler_pic in 8652 "" | " "*) ;; 8653 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8654 esac 8655else 8656 lt_prog_compiler_pic= 8657 lt_prog_compiler_can_build_shared=no 8658fi 8659 8660fi 8661 8662 8663 8664 8665 8666 8667# 8668# Check to make sure the static flag actually works. 8669# 8670wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8671{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8672$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8673if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8674 $as_echo_n "(cached) " >&6 8675else 8676 lt_cv_prog_compiler_static_works=no 8677 save_LDFLAGS="$LDFLAGS" 8678 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8679 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8681 # The linker can only warn and ignore the option if not recognized 8682 # So say no if there are warnings 8683 if test -s conftest.err; then 8684 # Append any errors to the config.log. 8685 cat conftest.err 1>&5 8686 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8688 if diff conftest.exp conftest.er2 >/dev/null; then 8689 lt_cv_prog_compiler_static_works=yes 8690 fi 8691 else 8692 lt_cv_prog_compiler_static_works=yes 8693 fi 8694 fi 8695 $RM -r conftest* 8696 LDFLAGS="$save_LDFLAGS" 8697 8698fi 8699{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8700$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8701 8702if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8703 : 8704else 8705 lt_prog_compiler_static= 8706fi 8707 8708 8709 8710 8711 8712 8713 8714 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8716if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8717 $as_echo_n "(cached) " >&6 8718else 8719 lt_cv_prog_compiler_c_o=no 8720 $RM -r conftest 2>/dev/null 8721 mkdir conftest 8722 cd conftest 8723 mkdir out 8724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8725 8726 lt_compiler_flag="-o out/conftest2.$ac_objext" 8727 # Insert the option either (1) after the last *FLAGS variable, or 8728 # (2) before a word containing "conftest.", or (3) at the end. 8729 # Note that $ac_compile itself does not contain backslashes and begins 8730 # with a dollar sign (not a hyphen), so the echo should work correctly. 8731 lt_compile=`echo "$ac_compile" | $SED \ 8732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8734 -e 's:$: $lt_compiler_flag:'` 8735 (eval echo "\"\$as_me:8735: $lt_compile\"" >&5) 8736 (eval "$lt_compile" 2>out/conftest.err) 8737 ac_status=$? 8738 cat out/conftest.err >&5 8739 echo "$as_me:8739: \$? = $ac_status" >&5 8740 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8741 then 8742 # The compiler can only warn and ignore the option if not recognized 8743 # So say no if there are warnings 8744 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8747 lt_cv_prog_compiler_c_o=yes 8748 fi 8749 fi 8750 chmod u+w . 2>&5 8751 $RM conftest* 8752 # SGI C++ compiler will create directory out/ii_files/ for 8753 # template instantiation 8754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8755 $RM out/* && rmdir out 8756 cd .. 8757 $RM -r conftest 8758 $RM conftest* 8759 8760fi 8761{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8762$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8763 8764 8765 8766 8767 8768 8769 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8770$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8771if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8772 $as_echo_n "(cached) " >&6 8773else 8774 lt_cv_prog_compiler_c_o=no 8775 $RM -r conftest 2>/dev/null 8776 mkdir conftest 8777 cd conftest 8778 mkdir out 8779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8780 8781 lt_compiler_flag="-o out/conftest2.$ac_objext" 8782 # Insert the option either (1) after the last *FLAGS variable, or 8783 # (2) before a word containing "conftest.", or (3) at the end. 8784 # Note that $ac_compile itself does not contain backslashes and begins 8785 # with a dollar sign (not a hyphen), so the echo should work correctly. 8786 lt_compile=`echo "$ac_compile" | $SED \ 8787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8789 -e 's:$: $lt_compiler_flag:'` 8790 (eval echo "\"\$as_me:8790: $lt_compile\"" >&5) 8791 (eval "$lt_compile" 2>out/conftest.err) 8792 ac_status=$? 8793 cat out/conftest.err >&5 8794 echo "$as_me:8794: \$? = $ac_status" >&5 8795 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8796 then 8797 # The compiler can only warn and ignore the option if not recognized 8798 # So say no if there are warnings 8799 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8802 lt_cv_prog_compiler_c_o=yes 8803 fi 8804 fi 8805 chmod u+w . 2>&5 8806 $RM conftest* 8807 # SGI C++ compiler will create directory out/ii_files/ for 8808 # template instantiation 8809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8810 $RM out/* && rmdir out 8811 cd .. 8812 $RM -r conftest 8813 $RM conftest* 8814 8815fi 8816{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8817$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8818 8819 8820 8821 8822hard_links="nottested" 8823if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8824 # do not overwrite the value of need_locks provided by the user 8825 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8826$as_echo_n "checking if we can lock with hard links... " >&6; } 8827 hard_links=yes 8828 $RM conftest* 8829 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8830 touch conftest.a 8831 ln conftest.a conftest.b 2>&5 || hard_links=no 8832 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8833 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8834$as_echo "$hard_links" >&6; } 8835 if test "$hard_links" = no; then 8836 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8837$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8838 need_locks=warn 8839 fi 8840else 8841 need_locks=no 8842fi 8843 8844 8845 8846 8847 8848 8849 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8850$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8851 8852 runpath_var= 8853 allow_undefined_flag= 8854 always_export_symbols=no 8855 archive_cmds= 8856 archive_expsym_cmds= 8857 compiler_needs_object=no 8858 enable_shared_with_static_runtimes=no 8859 export_dynamic_flag_spec= 8860 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8861 hardcode_automatic=no 8862 hardcode_direct=no 8863 hardcode_direct_absolute=no 8864 hardcode_libdir_flag_spec= 8865 hardcode_libdir_flag_spec_ld= 8866 hardcode_libdir_separator= 8867 hardcode_minus_L=no 8868 hardcode_shlibpath_var=unsupported 8869 inherit_rpath=no 8870 link_all_deplibs=unknown 8871 module_cmds= 8872 module_expsym_cmds= 8873 old_archive_from_new_cmds= 8874 old_archive_from_expsyms_cmds= 8875 thread_safe_flag_spec= 8876 whole_archive_flag_spec= 8877 # include_expsyms should be a list of space-separated symbols to be *always* 8878 # included in the symbol list 8879 include_expsyms= 8880 # exclude_expsyms can be an extended regexp of symbols to exclude 8881 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8882 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8883 # as well as any symbol that contains `d'. 8884 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8885 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8886 # platforms (ab)use it in PIC code, but their linkers get confused if 8887 # the symbol is explicitly referenced. Since portable code cannot 8888 # rely on this symbol name, it's probably fine to never include it in 8889 # preloaded symbol tables. 8890 # Exclude shared library initialization/finalization symbols. 8891 extract_expsyms_cmds= 8892 8893 case $host_os in 8894 cygwin* | mingw* | pw32* | cegcc*) 8895 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8896 # When not using gcc, we currently assume that we are using 8897 # Microsoft Visual C++. 8898 if test "$GCC" != yes; then 8899 with_gnu_ld=no 8900 fi 8901 ;; 8902 interix*) 8903 # we just hope/assume this is gcc and not c89 (= MSVC++) 8904 with_gnu_ld=yes 8905 ;; 8906 openbsd*) 8907 with_gnu_ld=no 8908 ;; 8909 esac 8910 8911 ld_shlibs=yes 8912 if test "$with_gnu_ld" = yes; then 8913 # If archive_cmds runs LD, not CC, wlarc should be empty 8914 wlarc='${wl}' 8915 8916 # Set some defaults for GNU ld with shared library support. These 8917 # are reset later if shared libraries are not supported. Putting them 8918 # here allows them to be overridden if necessary. 8919 runpath_var=LD_RUN_PATH 8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8921 export_dynamic_flag_spec='${wl}--export-dynamic' 8922 # ancient GNU ld didn't support --whole-archive et. al. 8923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8925 else 8926 whole_archive_flag_spec= 8927 fi 8928 supports_anon_versioning=no 8929 case `$LD -v 2>&1` in 8930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8933 *\ 2.11.*) ;; # other 2.11 versions 8934 *) supports_anon_versioning=yes ;; 8935 esac 8936 8937 # See if GNU ld supports shared libraries. 8938 case $host_os in 8939 aix[3-9]*) 8940 # On AIX/PPC, the GNU linker is very broken 8941 if test "$host_cpu" != ia64; then 8942 ld_shlibs=no 8943 cat <<_LT_EOF 1>&2 8944 8945*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8946*** to be unable to reliably create shared libraries on AIX. 8947*** Therefore, libtool is disabling shared libraries support. If you 8948*** really care for shared libraries, you may want to modify your PATH 8949*** so that a non-GNU linker is found, and then restart. 8950 8951_LT_EOF 8952 fi 8953 ;; 8954 8955 amigaos*) 8956 case $host_cpu in 8957 powerpc) 8958 # see comment about AmigaOS4 .so support 8959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8960 archive_expsym_cmds='' 8961 ;; 8962 m68k) 8963 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)' 8964 hardcode_libdir_flag_spec='-L$libdir' 8965 hardcode_minus_L=yes 8966 ;; 8967 esac 8968 ;; 8969 8970 beos*) 8971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8972 allow_undefined_flag=unsupported 8973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8974 # support --undefined. This deserves some investigation. FIXME 8975 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8976 else 8977 ld_shlibs=no 8978 fi 8979 ;; 8980 8981 cygwin* | mingw* | pw32* | cegcc*) 8982 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8983 # as there is no search path for DLLs. 8984 hardcode_libdir_flag_spec='-L$libdir' 8985 allow_undefined_flag=unsupported 8986 always_export_symbols=no 8987 enable_shared_with_static_runtimes=yes 8988 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8989 8990 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8992 # If the export-symbols file already is a .def file (1st line 8993 # is EXPORTS), use it as is; otherwise, prepend... 8994 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8995 cp $export_symbols $output_objdir/$soname.def; 8996 else 8997 echo EXPORTS > $output_objdir/$soname.def; 8998 cat $export_symbols >> $output_objdir/$soname.def; 8999 fi~ 9000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9001 else 9002 ld_shlibs=no 9003 fi 9004 ;; 9005 9006 interix[3-9]*) 9007 hardcode_direct=no 9008 hardcode_shlibpath_var=no 9009 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9010 export_dynamic_flag_spec='${wl}-E' 9011 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9012 # Instead, shared libraries are loaded at an image base (0x10000000 by 9013 # default) and relocated if they conflict, which is a slow very memory 9014 # consuming and fragmenting process. To avoid this, we pick a random, 9015 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9016 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9018 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' 9019 ;; 9020 9021 gnu* | linux* | tpf* | k*bsd*-gnu) 9022 tmp_diet=no 9023 if test "$host_os" = linux-dietlibc; then 9024 case $cc_basename in 9025 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9026 esac 9027 fi 9028 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9029 && test "$tmp_diet" = no 9030 then 9031 tmp_addflag= 9032 tmp_sharedflag='-shared' 9033 case $cc_basename,$host_cpu in 9034 pgcc*) # Portland Group C compiler 9035 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' 9036 tmp_addflag=' $pic_flag' 9037 ;; 9038 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9039 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' 9040 tmp_addflag=' $pic_flag -Mnomain' ;; 9041 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9042 tmp_addflag=' -i_dynamic' ;; 9043 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9044 tmp_addflag=' -i_dynamic -nofor_main' ;; 9045 ifc* | ifort*) # Intel Fortran compiler 9046 tmp_addflag=' -nofor_main' ;; 9047 lf95*) # Lahey Fortran 8.1 9048 whole_archive_flag_spec= 9049 tmp_sharedflag='--shared' ;; 9050 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9051 tmp_sharedflag='-qmkshrobj' 9052 tmp_addflag= ;; 9053 esac 9054 case `$CC -V 2>&1 | sed 5q` in 9055 *Sun\ C*) # Sun C 5.9 9056 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' 9057 compiler_needs_object=yes 9058 tmp_sharedflag='-G' ;; 9059 *Sun\ F*) # Sun Fortran 8.3 9060 tmp_sharedflag='-G' ;; 9061 esac 9062 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9063 9064 if test "x$supports_anon_versioning" = xyes; then 9065 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9067 echo "local: *; };" >> $output_objdir/$libname.ver~ 9068 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9069 fi 9070 9071 case $cc_basename in 9072 xlf*) 9073 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9074 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9075 hardcode_libdir_flag_spec= 9076 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9077 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9078 if test "x$supports_anon_versioning" = xyes; then 9079 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9081 echo "local: *; };" >> $output_objdir/$libname.ver~ 9082 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9083 fi 9084 ;; 9085 esac 9086 else 9087 ld_shlibs=no 9088 fi 9089 ;; 9090 9091 netbsd*) 9092 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9093 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9094 wlarc= 9095 else 9096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9098 fi 9099 ;; 9100 9101 solaris*) 9102 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9103 ld_shlibs=no 9104 cat <<_LT_EOF 1>&2 9105 9106*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9107*** create shared libraries on Solaris systems. Therefore, libtool 9108*** is disabling shared libraries support. We urge you to upgrade GNU 9109*** binutils to release 2.9.1 or newer. Another option is to modify 9110*** your PATH or compiler configuration so that the native linker is 9111*** used, and then restart. 9112 9113_LT_EOF 9114 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9117 else 9118 ld_shlibs=no 9119 fi 9120 ;; 9121 9122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9123 case `$LD -v 2>&1` in 9124 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9125 ld_shlibs=no 9126 cat <<_LT_EOF 1>&2 9127 9128*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9129*** reliably create shared libraries on SCO systems. Therefore, libtool 9130*** is disabling shared libraries support. We urge you to upgrade GNU 9131*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9132*** your PATH or compiler configuration so that the native linker is 9133*** used, and then restart. 9134 9135_LT_EOF 9136 ;; 9137 *) 9138 # For security reasons, it is highly recommended that you always 9139 # use absolute paths for naming shared libraries, and exclude the 9140 # DT_RUNPATH tag from executables and libraries. But doing so 9141 # requires that you compile everything twice, which is a pain. 9142 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9146 else 9147 ld_shlibs=no 9148 fi 9149 ;; 9150 esac 9151 ;; 9152 9153 sunos4*) 9154 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9155 wlarc= 9156 hardcode_direct=yes 9157 hardcode_shlibpath_var=no 9158 ;; 9159 9160 *) 9161 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9164 else 9165 ld_shlibs=no 9166 fi 9167 ;; 9168 esac 9169 9170 if test "$ld_shlibs" = no; then 9171 runpath_var= 9172 hardcode_libdir_flag_spec= 9173 export_dynamic_flag_spec= 9174 whole_archive_flag_spec= 9175 fi 9176 else 9177 # PORTME fill in a description of your system's linker (not GNU ld) 9178 case $host_os in 9179 aix3*) 9180 allow_undefined_flag=unsupported 9181 always_export_symbols=yes 9182 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' 9183 # Note: this linker hardcodes the directories in LIBPATH if there 9184 # are no directories specified by -L. 9185 hardcode_minus_L=yes 9186 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9187 # Neither direct hardcoding nor static linking is supported with a 9188 # broken collect2. 9189 hardcode_direct=unsupported 9190 fi 9191 ;; 9192 9193 aix[4-9]*) 9194 if test "$host_cpu" = ia64; then 9195 # On IA64, the linker does run time linking by default, so we don't 9196 # have to do anything special. 9197 aix_use_runtimelinking=no 9198 exp_sym_flag='-Bexport' 9199 no_entry_flag="" 9200 else 9201 # If we're using GNU nm, then we don't want the "-C" option. 9202 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9203 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9204 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' 9205 else 9206 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' 9207 fi 9208 aix_use_runtimelinking=no 9209 9210 # Test if we are trying to use run time linking or normal 9211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9212 # need to do runtime linking. 9213 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9214 for ld_flag in $LDFLAGS; do 9215 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9216 aix_use_runtimelinking=yes 9217 break 9218 fi 9219 done 9220 ;; 9221 esac 9222 9223 exp_sym_flag='-bexport' 9224 no_entry_flag='-bnoentry' 9225 fi 9226 9227 # When large executables or shared objects are built, AIX ld can 9228 # have problems creating the table of contents. If linking a library 9229 # or program results in "error TOC overflow" add -mminimal-toc to 9230 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9231 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9232 9233 archive_cmds='' 9234 hardcode_direct=yes 9235 hardcode_direct_absolute=yes 9236 hardcode_libdir_separator=':' 9237 link_all_deplibs=yes 9238 file_list_spec='${wl}-f,' 9239 9240 if test "$GCC" = yes; then 9241 case $host_os in aix4.[012]|aix4.[012].*) 9242 # We only want to do this on AIX 4.2 and lower, the check 9243 # below for broken collect2 doesn't work under 4.3+ 9244 collect2name=`${CC} -print-prog-name=collect2` 9245 if test -f "$collect2name" && 9246 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9247 then 9248 # We have reworked collect2 9249 : 9250 else 9251 # We have old collect2 9252 hardcode_direct=unsupported 9253 # It fails to find uninstalled libraries when the uninstalled 9254 # path is not listed in the libpath. Setting hardcode_minus_L 9255 # to unsupported forces relinking 9256 hardcode_minus_L=yes 9257 hardcode_libdir_flag_spec='-L$libdir' 9258 hardcode_libdir_separator= 9259 fi 9260 ;; 9261 esac 9262 shared_flag='-shared' 9263 if test "$aix_use_runtimelinking" = yes; then 9264 shared_flag="$shared_flag "'${wl}-G' 9265 fi 9266 else 9267 # not using gcc 9268 if test "$host_cpu" = ia64; then 9269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9270 # chokes on -Wl,-G. The following line is correct: 9271 shared_flag='-G' 9272 else 9273 if test "$aix_use_runtimelinking" = yes; then 9274 shared_flag='${wl}-G' 9275 else 9276 shared_flag='${wl}-bM:SRE' 9277 fi 9278 fi 9279 fi 9280 9281 export_dynamic_flag_spec='${wl}-bexpall' 9282 # It seems that -bexpall does not export symbols beginning with 9283 # underscore (_), so it is better to generate a list of symbols to export. 9284 always_export_symbols=yes 9285 if test "$aix_use_runtimelinking" = yes; then 9286 # Warning - without using the other runtime loading flags (-brtl), 9287 # -berok will link without error, but may produce a broken library. 9288 allow_undefined_flag='-berok' 9289 # Determine the default libpath from the value encoded in an 9290 # empty executable. 9291 cat >conftest.$ac_ext <<_ACEOF 9292/* confdefs.h. */ 9293_ACEOF 9294cat confdefs.h >>conftest.$ac_ext 9295cat >>conftest.$ac_ext <<_ACEOF 9296/* end confdefs.h. */ 9297 9298int 9299main () 9300{ 9301 9302 ; 9303 return 0; 9304} 9305_ACEOF 9306rm -f conftest.$ac_objext conftest$ac_exeext 9307if { (ac_try="$ac_link" 9308case "(($ac_try" in 9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9310 *) ac_try_echo=$ac_try;; 9311esac 9312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9313$as_echo "$ac_try_echo") >&5 9314 (eval "$ac_link") 2>conftest.er1 9315 ac_status=$? 9316 grep -v '^ *+' conftest.er1 >conftest.err 9317 rm -f conftest.er1 9318 cat conftest.err >&5 9319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9320 (exit $ac_status); } && { 9321 test -z "$ac_c_werror_flag" || 9322 test ! -s conftest.err 9323 } && test -s conftest$ac_exeext && { 9324 test "$cross_compiling" = yes || 9325 $as_test_x conftest$ac_exeext 9326 }; then 9327 9328lt_aix_libpath_sed=' 9329 /Import File Strings/,/^$/ { 9330 /^0/ { 9331 s/^0 *\(.*\)$/\1/ 9332 p 9333 } 9334 }' 9335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9336# Check for a 64-bit object if we didn't find anything. 9337if test -z "$aix_libpath"; then 9338 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9339fi 9340else 9341 $as_echo "$as_me: failed program was:" >&5 9342sed 's/^/| /' conftest.$ac_ext >&5 9343 9344 9345fi 9346 9347rm -rf conftest.dSYM 9348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9349 conftest$ac_exeext conftest.$ac_ext 9350if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9351 9352 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9353 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" 9354 else 9355 if test "$host_cpu" = ia64; then 9356 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9357 allow_undefined_flag="-z nodefs" 9358 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" 9359 else 9360 # Determine the default libpath from the value encoded in an 9361 # empty executable. 9362 cat >conftest.$ac_ext <<_ACEOF 9363/* confdefs.h. */ 9364_ACEOF 9365cat confdefs.h >>conftest.$ac_ext 9366cat >>conftest.$ac_ext <<_ACEOF 9367/* end confdefs.h. */ 9368 9369int 9370main () 9371{ 9372 9373 ; 9374 return 0; 9375} 9376_ACEOF 9377rm -f conftest.$ac_objext conftest$ac_exeext 9378if { (ac_try="$ac_link" 9379case "(($ac_try" in 9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9381 *) ac_try_echo=$ac_try;; 9382esac 9383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9384$as_echo "$ac_try_echo") >&5 9385 (eval "$ac_link") 2>conftest.er1 9386 ac_status=$? 9387 grep -v '^ *+' conftest.er1 >conftest.err 9388 rm -f conftest.er1 9389 cat conftest.err >&5 9390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9391 (exit $ac_status); } && { 9392 test -z "$ac_c_werror_flag" || 9393 test ! -s conftest.err 9394 } && test -s conftest$ac_exeext && { 9395 test "$cross_compiling" = yes || 9396 $as_test_x conftest$ac_exeext 9397 }; then 9398 9399lt_aix_libpath_sed=' 9400 /Import File Strings/,/^$/ { 9401 /^0/ { 9402 s/^0 *\(.*\)$/\1/ 9403 p 9404 } 9405 }' 9406aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9407# Check for a 64-bit object if we didn't find anything. 9408if test -z "$aix_libpath"; then 9409 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9410fi 9411else 9412 $as_echo "$as_me: failed program was:" >&5 9413sed 's/^/| /' conftest.$ac_ext >&5 9414 9415 9416fi 9417 9418rm -rf conftest.dSYM 9419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9420 conftest$ac_exeext conftest.$ac_ext 9421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9422 9423 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9424 # Warning - without using the other run time loading flags, 9425 # -berok will link without error, but may produce a broken library. 9426 no_undefined_flag=' ${wl}-bernotok' 9427 allow_undefined_flag=' ${wl}-berok' 9428 # Exported symbols can be pulled into shared objects from archives 9429 whole_archive_flag_spec='$convenience' 9430 archive_cmds_need_lc=yes 9431 # This is similar to how AIX traditionally builds its shared libraries. 9432 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' 9433 fi 9434 fi 9435 ;; 9436 9437 amigaos*) 9438 case $host_cpu in 9439 powerpc) 9440 # see comment about AmigaOS4 .so support 9441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9442 archive_expsym_cmds='' 9443 ;; 9444 m68k) 9445 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)' 9446 hardcode_libdir_flag_spec='-L$libdir' 9447 hardcode_minus_L=yes 9448 ;; 9449 esac 9450 ;; 9451 9452 bsdi[45]*) 9453 export_dynamic_flag_spec=-rdynamic 9454 ;; 9455 9456 cygwin* | mingw* | pw32* | cegcc*) 9457 # When not using gcc, we currently assume that we are using 9458 # Microsoft Visual C++. 9459 # hardcode_libdir_flag_spec is actually meaningless, as there is 9460 # no search path for DLLs. 9461 hardcode_libdir_flag_spec=' ' 9462 allow_undefined_flag=unsupported 9463 # Tell ltmain to make .lib files, not .a files. 9464 libext=lib 9465 # Tell ltmain to make .dll files, not .so files. 9466 shrext_cmds=".dll" 9467 # FIXME: Setting linknames here is a bad hack. 9468 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9469 # The linker will automatically build a .lib file if we build a DLL. 9470 old_archive_from_new_cmds='true' 9471 # FIXME: Should let the user specify the lib program. 9472 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9473 fix_srcfile_path='`cygpath -w "$srcfile"`' 9474 enable_shared_with_static_runtimes=yes 9475 ;; 9476 9477 darwin* | rhapsody*) 9478 9479 9480 archive_cmds_need_lc=no 9481 hardcode_direct=no 9482 hardcode_automatic=yes 9483 hardcode_shlibpath_var=unsupported 9484 whole_archive_flag_spec='' 9485 link_all_deplibs=yes 9486 allow_undefined_flag="$_lt_dar_allow_undefined" 9487 case $cc_basename in 9488 ifort*) _lt_dar_can_shared=yes ;; 9489 *) _lt_dar_can_shared=$GCC ;; 9490 esac 9491 if test "$_lt_dar_can_shared" = "yes"; then 9492 output_verbose_link_cmd=echo 9493 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9494 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9495 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}" 9496 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}" 9497 9498 else 9499 ld_shlibs=no 9500 fi 9501 9502 ;; 9503 9504 dgux*) 9505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9506 hardcode_libdir_flag_spec='-L$libdir' 9507 hardcode_shlibpath_var=no 9508 ;; 9509 9510 freebsd1*) 9511 ld_shlibs=no 9512 ;; 9513 9514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9515 # support. Future versions do this automatically, but an explicit c++rt0.o 9516 # does not break anything, and helps significantly (at the cost of a little 9517 # extra space). 9518 freebsd2.2*) 9519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9520 hardcode_libdir_flag_spec='-R$libdir' 9521 hardcode_direct=yes 9522 hardcode_shlibpath_var=no 9523 ;; 9524 9525 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9526 freebsd2*) 9527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9528 hardcode_direct=yes 9529 hardcode_minus_L=yes 9530 hardcode_shlibpath_var=no 9531 ;; 9532 9533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9534 freebsd* | dragonfly*) 9535 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9536 hardcode_libdir_flag_spec='-R$libdir' 9537 hardcode_direct=yes 9538 hardcode_shlibpath_var=no 9539 ;; 9540 9541 hpux9*) 9542 if test "$GCC" = yes; then 9543 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' 9544 else 9545 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' 9546 fi 9547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9548 hardcode_libdir_separator=: 9549 hardcode_direct=yes 9550 9551 # hardcode_minus_L: Not really in the search PATH, 9552 # but as the default location of the library. 9553 hardcode_minus_L=yes 9554 export_dynamic_flag_spec='${wl}-E' 9555 ;; 9556 9557 hpux10*) 9558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9559 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9560 else 9561 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9562 fi 9563 if test "$with_gnu_ld" = no; then 9564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9565 hardcode_libdir_flag_spec_ld='+b $libdir' 9566 hardcode_libdir_separator=: 9567 hardcode_direct=yes 9568 hardcode_direct_absolute=yes 9569 export_dynamic_flag_spec='${wl}-E' 9570 # hardcode_minus_L: Not really in the search PATH, 9571 # but as the default location of the library. 9572 hardcode_minus_L=yes 9573 fi 9574 ;; 9575 9576 hpux11*) 9577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9578 case $host_cpu in 9579 hppa*64*) 9580 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9581 ;; 9582 ia64*) 9583 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9584 ;; 9585 *) 9586 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9587 ;; 9588 esac 9589 else 9590 case $host_cpu in 9591 hppa*64*) 9592 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9593 ;; 9594 ia64*) 9595 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9596 ;; 9597 *) 9598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9599 ;; 9600 esac 9601 fi 9602 if test "$with_gnu_ld" = no; then 9603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9604 hardcode_libdir_separator=: 9605 9606 case $host_cpu in 9607 hppa*64*|ia64*) 9608 hardcode_direct=no 9609 hardcode_shlibpath_var=no 9610 ;; 9611 *) 9612 hardcode_direct=yes 9613 hardcode_direct_absolute=yes 9614 export_dynamic_flag_spec='${wl}-E' 9615 9616 # hardcode_minus_L: Not really in the search PATH, 9617 # but as the default location of the library. 9618 hardcode_minus_L=yes 9619 ;; 9620 esac 9621 fi 9622 ;; 9623 9624 irix5* | irix6* | nonstopux*) 9625 if test "$GCC" = yes; then 9626 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' 9627 # Try to use the -exported_symbol ld option, if it does not 9628 # work, assume that -exports_file does not work either and 9629 # implicitly export all symbols. 9630 save_LDFLAGS="$LDFLAGS" 9631 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9632 cat >conftest.$ac_ext <<_ACEOF 9633int foo(void) {} 9634_ACEOF 9635rm -f conftest.$ac_objext conftest$ac_exeext 9636if { (ac_try="$ac_link" 9637case "(($ac_try" in 9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9639 *) ac_try_echo=$ac_try;; 9640esac 9641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9642$as_echo "$ac_try_echo") >&5 9643 (eval "$ac_link") 2>conftest.er1 9644 ac_status=$? 9645 grep -v '^ *+' conftest.er1 >conftest.err 9646 rm -f conftest.er1 9647 cat conftest.err >&5 9648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9649 (exit $ac_status); } && { 9650 test -z "$ac_c_werror_flag" || 9651 test ! -s conftest.err 9652 } && test -s conftest$ac_exeext && { 9653 test "$cross_compiling" = yes || 9654 $as_test_x conftest$ac_exeext 9655 }; then 9656 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' 9657 9658else 9659 $as_echo "$as_me: failed program was:" >&5 9660sed 's/^/| /' conftest.$ac_ext >&5 9661 9662 9663fi 9664 9665rm -rf conftest.dSYM 9666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9667 conftest$ac_exeext conftest.$ac_ext 9668 LDFLAGS="$save_LDFLAGS" 9669 else 9670 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' 9671 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' 9672 fi 9673 archive_cmds_need_lc='no' 9674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9675 hardcode_libdir_separator=: 9676 inherit_rpath=yes 9677 link_all_deplibs=yes 9678 ;; 9679 9680 netbsd*) 9681 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9683 else 9684 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9685 fi 9686 hardcode_libdir_flag_spec='-R$libdir' 9687 hardcode_direct=yes 9688 hardcode_shlibpath_var=no 9689 ;; 9690 9691 newsos6) 9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9693 hardcode_direct=yes 9694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9695 hardcode_libdir_separator=: 9696 hardcode_shlibpath_var=no 9697 ;; 9698 9699 *nto* | *qnx*) 9700 ;; 9701 9702 openbsd*) 9703 if test -f /usr/libexec/ld.so; then 9704 hardcode_direct=yes 9705 hardcode_shlibpath_var=no 9706 hardcode_direct_absolute=yes 9707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9709 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9711 export_dynamic_flag_spec='${wl}-E' 9712 else 9713 case $host_os in 9714 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9716 hardcode_libdir_flag_spec='-R$libdir' 9717 ;; 9718 *) 9719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9721 ;; 9722 esac 9723 fi 9724 else 9725 ld_shlibs=no 9726 fi 9727 ;; 9728 9729 os2*) 9730 hardcode_libdir_flag_spec='-L$libdir' 9731 hardcode_minus_L=yes 9732 allow_undefined_flag=unsupported 9733 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' 9734 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9735 ;; 9736 9737 osf3*) 9738 if test "$GCC" = yes; then 9739 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9740 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' 9741 else 9742 allow_undefined_flag=' -expect_unresolved \*' 9743 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' 9744 fi 9745 archive_cmds_need_lc='no' 9746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9747 hardcode_libdir_separator=: 9748 ;; 9749 9750 osf4* | osf5*) # as osf3* with the addition of -msym flag 9751 if test "$GCC" = yes; then 9752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9753 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' 9754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9755 else 9756 allow_undefined_flag=' -expect_unresolved \*' 9757 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' 9758 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~ 9759 $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' 9760 9761 # Both c and cxx compiler support -rpath directly 9762 hardcode_libdir_flag_spec='-rpath $libdir' 9763 fi 9764 archive_cmds_need_lc='no' 9765 hardcode_libdir_separator=: 9766 ;; 9767 9768 solaris*) 9769 no_undefined_flag=' -z defs' 9770 if test "$GCC" = yes; then 9771 wlarc='${wl}' 9772 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9774 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9775 else 9776 case `$CC -V 2>&1` in 9777 *"Compilers 5.0"*) 9778 wlarc='' 9779 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9782 ;; 9783 *) 9784 wlarc='${wl}' 9785 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9787 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9788 ;; 9789 esac 9790 fi 9791 hardcode_libdir_flag_spec='-R$libdir' 9792 hardcode_shlibpath_var=no 9793 case $host_os in 9794 solaris2.[0-5] | solaris2.[0-5].*) ;; 9795 *) 9796 # The compiler driver will combine and reorder linker options, 9797 # but understands `-z linker_flag'. GCC discards it without `$wl', 9798 # but is careful enough not to reorder. 9799 # Supported since Solaris 2.6 (maybe 2.5.1?) 9800 if test "$GCC" = yes; then 9801 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9802 else 9803 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9804 fi 9805 ;; 9806 esac 9807 link_all_deplibs=yes 9808 ;; 9809 9810 sunos4*) 9811 if test "x$host_vendor" = xsequent; then 9812 # Use $CC to link under sequent, because it throws in some extra .o 9813 # files that make .init and .fini sections work. 9814 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9815 else 9816 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9817 fi 9818 hardcode_libdir_flag_spec='-L$libdir' 9819 hardcode_direct=yes 9820 hardcode_minus_L=yes 9821 hardcode_shlibpath_var=no 9822 ;; 9823 9824 sysv4) 9825 case $host_vendor in 9826 sni) 9827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9828 hardcode_direct=yes # is this really true??? 9829 ;; 9830 siemens) 9831 ## LD is ld it makes a PLAMLIB 9832 ## CC just makes a GrossModule. 9833 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9834 reload_cmds='$CC -r -o $output$reload_objs' 9835 hardcode_direct=no 9836 ;; 9837 motorola) 9838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9839 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9840 ;; 9841 esac 9842 runpath_var='LD_RUN_PATH' 9843 hardcode_shlibpath_var=no 9844 ;; 9845 9846 sysv4.3*) 9847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9848 hardcode_shlibpath_var=no 9849 export_dynamic_flag_spec='-Bexport' 9850 ;; 9851 9852 sysv4*MP*) 9853 if test -d /usr/nec; then 9854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9855 hardcode_shlibpath_var=no 9856 runpath_var=LD_RUN_PATH 9857 hardcode_runpath_var=yes 9858 ld_shlibs=yes 9859 fi 9860 ;; 9861 9862 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9863 no_undefined_flag='${wl}-z,text' 9864 archive_cmds_need_lc=no 9865 hardcode_shlibpath_var=no 9866 runpath_var='LD_RUN_PATH' 9867 9868 if test "$GCC" = yes; then 9869 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9870 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9871 else 9872 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9873 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9874 fi 9875 ;; 9876 9877 sysv5* | sco3.2v5* | sco5v6*) 9878 # Note: We can NOT use -z defs as we might desire, because we do not 9879 # link with -lc, and that would cause any symbols used from libc to 9880 # always be unresolved, which means just about no library would 9881 # ever link correctly. If we're not using GNU ld we use -z text 9882 # though, which does catch some bad symbols but isn't as heavy-handed 9883 # as -z defs. 9884 no_undefined_flag='${wl}-z,text' 9885 allow_undefined_flag='${wl}-z,nodefs' 9886 archive_cmds_need_lc=no 9887 hardcode_shlibpath_var=no 9888 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9889 hardcode_libdir_separator=':' 9890 link_all_deplibs=yes 9891 export_dynamic_flag_spec='${wl}-Bexport' 9892 runpath_var='LD_RUN_PATH' 9893 9894 if test "$GCC" = yes; then 9895 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9896 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9897 else 9898 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9899 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9900 fi 9901 ;; 9902 9903 uts4*) 9904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9905 hardcode_libdir_flag_spec='-L$libdir' 9906 hardcode_shlibpath_var=no 9907 ;; 9908 9909 *) 9910 ld_shlibs=no 9911 ;; 9912 esac 9913 9914 if test x$host_vendor = xsni; then 9915 case $host in 9916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9917 export_dynamic_flag_spec='${wl}-Blargedynsym' 9918 ;; 9919 esac 9920 fi 9921 fi 9922 9923{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9924$as_echo "$ld_shlibs" >&6; } 9925test "$ld_shlibs" = no && can_build_shared=no 9926 9927with_gnu_ld=$with_gnu_ld 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943# 9944# Do we need to explicitly link libc? 9945# 9946case "x$archive_cmds_need_lc" in 9947x|xyes) 9948 # Assume -lc should be added 9949 archive_cmds_need_lc=yes 9950 9951 if test "$enable_shared" = yes && test "$GCC" = yes; then 9952 case $archive_cmds in 9953 *'~'*) 9954 # FIXME: we may have to deal with multi-command sequences. 9955 ;; 9956 '$CC '*) 9957 # Test whether the compiler implicitly links with -lc since on some 9958 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9959 # to ld, don't add -lc before -lgcc. 9960 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9961$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9962 $RM conftest* 9963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9964 9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9966 (eval $ac_compile) 2>&5 9967 ac_status=$? 9968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9969 (exit $ac_status); } 2>conftest.err; then 9970 soname=conftest 9971 lib=conftest 9972 libobjs=conftest.$ac_objext 9973 deplibs= 9974 wl=$lt_prog_compiler_wl 9975 pic_flag=$lt_prog_compiler_pic 9976 compiler_flags=-v 9977 linker_flags=-v 9978 verstring= 9979 output_objdir=. 9980 libname=conftest 9981 lt_save_allow_undefined_flag=$allow_undefined_flag 9982 allow_undefined_flag= 9983 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9984 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9985 ac_status=$? 9986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); } 9988 then 9989 archive_cmds_need_lc=no 9990 else 9991 archive_cmds_need_lc=yes 9992 fi 9993 allow_undefined_flag=$lt_save_allow_undefined_flag 9994 else 9995 cat conftest.err 1>&5 9996 fi 9997 $RM conftest* 9998 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9999$as_echo "$archive_cmds_need_lc" >&6; } 10000 ;; 10001 esac 10002 fi 10003 ;; 10004esac 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10163$as_echo_n "checking dynamic linker characteristics... " >&6; } 10164 10165if test "$GCC" = yes; then 10166 case $host_os in 10167 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10168 *) lt_awk_arg="/^libraries:/" ;; 10169 esac 10170 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10171 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10172 # if the path contains ";" then we assume it to be the separator 10173 # otherwise default to the standard path separator (i.e. ":") - it is 10174 # assumed that no part of a normal pathname contains ";" but that should 10175 # okay in the real world where ";" in dirpaths is itself problematic. 10176 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10177 else 10178 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10179 fi 10180 # Ok, now we have the path, separated by spaces, we can step through it 10181 # and add multilib dir if necessary. 10182 lt_tmp_lt_search_path_spec= 10183 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10184 for lt_sys_path in $lt_search_path_spec; do 10185 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10186 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10187 else 10188 test -d "$lt_sys_path" && \ 10189 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10190 fi 10191 done 10192 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10193BEGIN {RS=" "; FS="/|\n";} { 10194 lt_foo=""; 10195 lt_count=0; 10196 for (lt_i = NF; lt_i > 0; lt_i--) { 10197 if ($lt_i != "" && $lt_i != ".") { 10198 if ($lt_i == "..") { 10199 lt_count++; 10200 } else { 10201 if (lt_count == 0) { 10202 lt_foo="/" $lt_i lt_foo; 10203 } else { 10204 lt_count--; 10205 } 10206 } 10207 } 10208 } 10209 if (lt_foo != "") { lt_freq[lt_foo]++; } 10210 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10211}'` 10212 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10213else 10214 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10215fi 10216library_names_spec= 10217libname_spec='lib$name' 10218soname_spec= 10219shrext_cmds=".so" 10220postinstall_cmds= 10221postuninstall_cmds= 10222finish_cmds= 10223finish_eval= 10224shlibpath_var= 10225shlibpath_overrides_runpath=unknown 10226version_type=none 10227dynamic_linker="$host_os ld.so" 10228sys_lib_dlsearch_path_spec="/lib /usr/lib" 10229need_lib_prefix=unknown 10230hardcode_into_libs=no 10231 10232# when you set need_version to no, make sure it does not cause -set_version 10233# flags to be left without arguments 10234need_version=unknown 10235 10236case $host_os in 10237aix3*) 10238 version_type=linux 10239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10240 shlibpath_var=LIBPATH 10241 10242 # AIX 3 has no versioning support, so we append a major version to the name. 10243 soname_spec='${libname}${release}${shared_ext}$major' 10244 ;; 10245 10246aix[4-9]*) 10247 version_type=linux 10248 need_lib_prefix=no 10249 need_version=no 10250 hardcode_into_libs=yes 10251 if test "$host_cpu" = ia64; then 10252 # AIX 5 supports IA64 10253 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10254 shlibpath_var=LD_LIBRARY_PATH 10255 else 10256 # With GCC up to 2.95.x, collect2 would create an import file 10257 # for dependence libraries. The import file would start with 10258 # the line `#! .'. This would cause the generated library to 10259 # depend on `.', always an invalid library. This was fixed in 10260 # development snapshots of GCC prior to 3.0. 10261 case $host_os in 10262 aix4 | aix4.[01] | aix4.[01].*) 10263 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10264 echo ' yes ' 10265 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10266 : 10267 else 10268 can_build_shared=no 10269 fi 10270 ;; 10271 esac 10272 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10273 # soname into executable. Probably we can add versioning support to 10274 # collect2, so additional links can be useful in future. 10275 if test "$aix_use_runtimelinking" = yes; then 10276 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10277 # instead of lib<name>.a to let people know that these are not 10278 # typical AIX shared libraries. 10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10280 else 10281 # We preserve .a as extension for shared libraries through AIX4.2 10282 # and later when we are not doing run time linking. 10283 library_names_spec='${libname}${release}.a $libname.a' 10284 soname_spec='${libname}${release}${shared_ext}$major' 10285 fi 10286 shlibpath_var=LIBPATH 10287 fi 10288 ;; 10289 10290amigaos*) 10291 case $host_cpu in 10292 powerpc) 10293 # Since July 2007 AmigaOS4 officially supports .so libraries. 10294 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10296 ;; 10297 m68k) 10298 library_names_spec='$libname.ixlibrary $libname.a' 10299 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10300 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' 10301 ;; 10302 esac 10303 ;; 10304 10305beos*) 10306 library_names_spec='${libname}${shared_ext}' 10307 dynamic_linker="$host_os ld.so" 10308 shlibpath_var=LIBRARY_PATH 10309 ;; 10310 10311bsdi[45]*) 10312 version_type=linux 10313 need_version=no 10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10315 soname_spec='${libname}${release}${shared_ext}$major' 10316 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10317 shlibpath_var=LD_LIBRARY_PATH 10318 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10319 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10320 # the default ld.so.conf also contains /usr/contrib/lib and 10321 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10322 # libtool to hard-code these into programs 10323 ;; 10324 10325cygwin* | mingw* | pw32* | cegcc*) 10326 version_type=windows 10327 shrext_cmds=".dll" 10328 need_version=no 10329 need_lib_prefix=no 10330 10331 case $GCC,$host_os in 10332 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10333 library_names_spec='$libname.dll.a' 10334 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10335 postinstall_cmds='base_file=`basename \${file}`~ 10336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10337 dldir=$destdir/`dirname \$dlpath`~ 10338 test -d \$dldir || mkdir -p \$dldir~ 10339 $install_prog $dir/$dlname \$dldir/$dlname~ 10340 chmod a+x \$dldir/$dlname~ 10341 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10342 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10343 fi' 10344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10345 dlpath=$dir/\$dldll~ 10346 $RM \$dlpath' 10347 shlibpath_overrides_runpath=yes 10348 10349 case $host_os in 10350 cygwin*) 10351 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10352 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10353 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10354 ;; 10355 mingw* | cegcc*) 10356 # MinGW DLLs use traditional 'lib' prefix 10357 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10358 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10359 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10360 # It is most probably a Windows format PATH printed by 10361 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10362 # path with ; separators, and with drive letters. We can handle the 10363 # drive letters (cygwin fileutils understands them), so leave them, 10364 # especially as we might pass files found there to a mingw objdump, 10365 # which wouldn't understand a cygwinified path. Ahh. 10366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10367 else 10368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10369 fi 10370 ;; 10371 pw32*) 10372 # pw32 DLLs use 'pw' prefix rather than 'lib' 10373 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10374 ;; 10375 esac 10376 ;; 10377 10378 *) 10379 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10380 ;; 10381 esac 10382 dynamic_linker='Win32 ld.exe' 10383 # FIXME: first we should search . and the directory the executable is in 10384 shlibpath_var=PATH 10385 ;; 10386 10387darwin* | rhapsody*) 10388 dynamic_linker="$host_os dyld" 10389 version_type=darwin 10390 need_lib_prefix=no 10391 need_version=no 10392 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10393 soname_spec='${libname}${release}${major}$shared_ext' 10394 shlibpath_overrides_runpath=yes 10395 shlibpath_var=DYLD_LIBRARY_PATH 10396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10397 10398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10400 ;; 10401 10402dgux*) 10403 version_type=linux 10404 need_lib_prefix=no 10405 need_version=no 10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10407 soname_spec='${libname}${release}${shared_ext}$major' 10408 shlibpath_var=LD_LIBRARY_PATH 10409 ;; 10410 10411freebsd1*) 10412 dynamic_linker=no 10413 ;; 10414 10415freebsd* | dragonfly*) 10416 # DragonFly does not have aout. When/if they implement a new 10417 # versioning mechanism, adjust this. 10418 if test -x /usr/bin/objformat; then 10419 objformat=`/usr/bin/objformat` 10420 else 10421 case $host_os in 10422 freebsd[123]*) objformat=aout ;; 10423 *) objformat=elf ;; 10424 esac 10425 fi 10426 version_type=freebsd-$objformat 10427 case $version_type in 10428 freebsd-elf*) 10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10430 need_version=no 10431 need_lib_prefix=no 10432 ;; 10433 freebsd-*) 10434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10435 need_version=yes 10436 ;; 10437 esac 10438 shlibpath_var=LD_LIBRARY_PATH 10439 case $host_os in 10440 freebsd2*) 10441 shlibpath_overrides_runpath=yes 10442 ;; 10443 freebsd3.[01]* | freebsdelf3.[01]*) 10444 shlibpath_overrides_runpath=yes 10445 hardcode_into_libs=yes 10446 ;; 10447 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10448 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10449 shlibpath_overrides_runpath=no 10450 hardcode_into_libs=yes 10451 ;; 10452 *) # from 4.6 on, and DragonFly 10453 shlibpath_overrides_runpath=yes 10454 hardcode_into_libs=yes 10455 ;; 10456 esac 10457 ;; 10458 10459gnu*) 10460 version_type=linux 10461 need_lib_prefix=no 10462 need_version=no 10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10464 soname_spec='${libname}${release}${shared_ext}$major' 10465 shlibpath_var=LD_LIBRARY_PATH 10466 hardcode_into_libs=yes 10467 ;; 10468 10469hpux9* | hpux10* | hpux11*) 10470 # Give a soname corresponding to the major version so that dld.sl refuses to 10471 # link against other versions. 10472 version_type=sunos 10473 need_lib_prefix=no 10474 need_version=no 10475 case $host_cpu in 10476 ia64*) 10477 shrext_cmds='.so' 10478 hardcode_into_libs=yes 10479 dynamic_linker="$host_os dld.so" 10480 shlibpath_var=LD_LIBRARY_PATH 10481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10483 soname_spec='${libname}${release}${shared_ext}$major' 10484 if test "X$HPUX_IA64_MODE" = X32; then 10485 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10486 else 10487 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10488 fi 10489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10490 ;; 10491 hppa*64*) 10492 shrext_cmds='.sl' 10493 hardcode_into_libs=yes 10494 dynamic_linker="$host_os dld.sl" 10495 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10498 soname_spec='${libname}${release}${shared_ext}$major' 10499 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10501 ;; 10502 *) 10503 shrext_cmds='.sl' 10504 dynamic_linker="$host_os dld.sl" 10505 shlibpath_var=SHLIB_PATH 10506 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10508 soname_spec='${libname}${release}${shared_ext}$major' 10509 ;; 10510 esac 10511 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10512 postinstall_cmds='chmod 555 $lib' 10513 ;; 10514 10515interix[3-9]*) 10516 version_type=linux 10517 need_lib_prefix=no 10518 need_version=no 10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10520 soname_spec='${libname}${release}${shared_ext}$major' 10521 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10522 shlibpath_var=LD_LIBRARY_PATH 10523 shlibpath_overrides_runpath=no 10524 hardcode_into_libs=yes 10525 ;; 10526 10527irix5* | irix6* | nonstopux*) 10528 case $host_os in 10529 nonstopux*) version_type=nonstopux ;; 10530 *) 10531 if test "$lt_cv_prog_gnu_ld" = yes; then 10532 version_type=linux 10533 else 10534 version_type=irix 10535 fi ;; 10536 esac 10537 need_lib_prefix=no 10538 need_version=no 10539 soname_spec='${libname}${release}${shared_ext}$major' 10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10541 case $host_os in 10542 irix5* | nonstopux*) 10543 libsuff= shlibsuff= 10544 ;; 10545 *) 10546 case $LD in # libtool.m4 will add one of these switches to LD 10547 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10548 libsuff= shlibsuff= libmagic=32-bit;; 10549 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10550 libsuff=32 shlibsuff=N32 libmagic=N32;; 10551 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10552 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10553 *) libsuff= shlibsuff= libmagic=never-match;; 10554 esac 10555 ;; 10556 esac 10557 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10558 shlibpath_overrides_runpath=no 10559 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10560 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10561 hardcode_into_libs=yes 10562 ;; 10563 10564# No shared lib support for Linux oldld, aout, or coff. 10565linux*oldld* | linux*aout* | linux*coff*) 10566 dynamic_linker=no 10567 ;; 10568 10569# This must be Linux ELF. 10570linux* | k*bsd*-gnu) 10571 version_type=linux 10572 need_lib_prefix=no 10573 need_version=no 10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10575 soname_spec='${libname}${release}${shared_ext}$major' 10576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10577 shlibpath_var=LD_LIBRARY_PATH 10578 shlibpath_overrides_runpath=no 10579 # Some binutils ld are patched to set DT_RUNPATH 10580 save_LDFLAGS=$LDFLAGS 10581 save_libdir=$libdir 10582 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10583 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10584 cat >conftest.$ac_ext <<_ACEOF 10585/* confdefs.h. */ 10586_ACEOF 10587cat confdefs.h >>conftest.$ac_ext 10588cat >>conftest.$ac_ext <<_ACEOF 10589/* end confdefs.h. */ 10590 10591int 10592main () 10593{ 10594 10595 ; 10596 return 0; 10597} 10598_ACEOF 10599rm -f conftest.$ac_objext conftest$ac_exeext 10600if { (ac_try="$ac_link" 10601case "(($ac_try" in 10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10603 *) ac_try_echo=$ac_try;; 10604esac 10605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10606$as_echo "$ac_try_echo") >&5 10607 (eval "$ac_link") 2>conftest.er1 10608 ac_status=$? 10609 grep -v '^ *+' conftest.er1 >conftest.err 10610 rm -f conftest.er1 10611 cat conftest.err >&5 10612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10613 (exit $ac_status); } && { 10614 test -z "$ac_c_werror_flag" || 10615 test ! -s conftest.err 10616 } && test -s conftest$ac_exeext && { 10617 test "$cross_compiling" = yes || 10618 $as_test_x conftest$ac_exeext 10619 }; then 10620 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10621 shlibpath_overrides_runpath=yes 10622fi 10623 10624else 10625 $as_echo "$as_me: failed program was:" >&5 10626sed 's/^/| /' conftest.$ac_ext >&5 10627 10628 10629fi 10630 10631rm -rf conftest.dSYM 10632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10633 conftest$ac_exeext conftest.$ac_ext 10634 LDFLAGS=$save_LDFLAGS 10635 libdir=$save_libdir 10636 10637 # This implies no fast_install, which is unacceptable. 10638 # Some rework will be needed to allow for fast_install 10639 # before this can be enabled. 10640 hardcode_into_libs=yes 10641 10642 # Add ABI-specific directories to the system library path. 10643 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10644 10645 # Append ld.so.conf contents to the search path 10646 if test -f /etc/ld.so.conf; then 10647 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' ' '` 10648 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10649 fi 10650 10651 # We used to test for /lib/ld.so.1 and disable shared libraries on 10652 # powerpc, because MkLinux only supported shared libraries with the 10653 # GNU dynamic linker. Since this was broken with cross compilers, 10654 # most powerpc-linux boxes support dynamic linking these days and 10655 # people can always --disable-shared, the test was removed, and we 10656 # assume the GNU/Linux dynamic linker is in use. 10657 dynamic_linker='GNU/Linux ld.so' 10658 ;; 10659 10660netbsd*) 10661 version_type=sunos 10662 need_lib_prefix=no 10663 need_version=no 10664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10667 dynamic_linker='NetBSD (a.out) ld.so' 10668 else 10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10670 soname_spec='${libname}${release}${shared_ext}$major' 10671 dynamic_linker='NetBSD ld.elf_so' 10672 fi 10673 shlibpath_var=LD_LIBRARY_PATH 10674 shlibpath_overrides_runpath=yes 10675 hardcode_into_libs=yes 10676 ;; 10677 10678newsos6) 10679 version_type=linux 10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10681 shlibpath_var=LD_LIBRARY_PATH 10682 shlibpath_overrides_runpath=yes 10683 ;; 10684 10685*nto* | *qnx*) 10686 version_type=qnx 10687 need_lib_prefix=no 10688 need_version=no 10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10690 soname_spec='${libname}${release}${shared_ext}$major' 10691 shlibpath_var=LD_LIBRARY_PATH 10692 shlibpath_overrides_runpath=no 10693 hardcode_into_libs=yes 10694 dynamic_linker='ldqnx.so' 10695 ;; 10696 10697openbsd*) 10698 version_type=sunos 10699 sys_lib_dlsearch_path_spec="/usr/lib" 10700 need_lib_prefix=no 10701 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10702 case $host_os in 10703 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10704 *) need_version=no ;; 10705 esac 10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10708 shlibpath_var=LD_LIBRARY_PATH 10709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10710 case $host_os in 10711 openbsd2.[89] | openbsd2.[89].*) 10712 shlibpath_overrides_runpath=no 10713 ;; 10714 *) 10715 shlibpath_overrides_runpath=yes 10716 ;; 10717 esac 10718 else 10719 shlibpath_overrides_runpath=yes 10720 fi 10721 ;; 10722 10723os2*) 10724 libname_spec='$name' 10725 shrext_cmds=".dll" 10726 need_lib_prefix=no 10727 library_names_spec='$libname${shared_ext} $libname.a' 10728 dynamic_linker='OS/2 ld.exe' 10729 shlibpath_var=LIBPATH 10730 ;; 10731 10732osf3* | osf4* | osf5*) 10733 version_type=osf 10734 need_lib_prefix=no 10735 need_version=no 10736 soname_spec='${libname}${release}${shared_ext}$major' 10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10738 shlibpath_var=LD_LIBRARY_PATH 10739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10740 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10741 ;; 10742 10743rdos*) 10744 dynamic_linker=no 10745 ;; 10746 10747solaris*) 10748 version_type=linux 10749 need_lib_prefix=no 10750 need_version=no 10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10752 soname_spec='${libname}${release}${shared_ext}$major' 10753 shlibpath_var=LD_LIBRARY_PATH 10754 shlibpath_overrides_runpath=yes 10755 hardcode_into_libs=yes 10756 # ldd complains unless libraries are executable 10757 postinstall_cmds='chmod +x $lib' 10758 ;; 10759 10760sunos4*) 10761 version_type=sunos 10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10764 shlibpath_var=LD_LIBRARY_PATH 10765 shlibpath_overrides_runpath=yes 10766 if test "$with_gnu_ld" = yes; then 10767 need_lib_prefix=no 10768 fi 10769 need_version=yes 10770 ;; 10771 10772sysv4 | sysv4.3*) 10773 version_type=linux 10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10775 soname_spec='${libname}${release}${shared_ext}$major' 10776 shlibpath_var=LD_LIBRARY_PATH 10777 case $host_vendor in 10778 sni) 10779 shlibpath_overrides_runpath=no 10780 need_lib_prefix=no 10781 runpath_var=LD_RUN_PATH 10782 ;; 10783 siemens) 10784 need_lib_prefix=no 10785 ;; 10786 motorola) 10787 need_lib_prefix=no 10788 need_version=no 10789 shlibpath_overrides_runpath=no 10790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10791 ;; 10792 esac 10793 ;; 10794 10795sysv4*MP*) 10796 if test -d /usr/nec ;then 10797 version_type=linux 10798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10799 soname_spec='$libname${shared_ext}.$major' 10800 shlibpath_var=LD_LIBRARY_PATH 10801 fi 10802 ;; 10803 10804sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10805 version_type=freebsd-elf 10806 need_lib_prefix=no 10807 need_version=no 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10809 soname_spec='${libname}${release}${shared_ext}$major' 10810 shlibpath_var=LD_LIBRARY_PATH 10811 shlibpath_overrides_runpath=yes 10812 hardcode_into_libs=yes 10813 if test "$with_gnu_ld" = yes; then 10814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10815 else 10816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10817 case $host_os in 10818 sco3.2v5*) 10819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10820 ;; 10821 esac 10822 fi 10823 sys_lib_dlsearch_path_spec='/usr/lib' 10824 ;; 10825 10826tpf*) 10827 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10828 version_type=linux 10829 need_lib_prefix=no 10830 need_version=no 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10832 shlibpath_var=LD_LIBRARY_PATH 10833 shlibpath_overrides_runpath=no 10834 hardcode_into_libs=yes 10835 ;; 10836 10837uts4*) 10838 version_type=linux 10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10840 soname_spec='${libname}${release}${shared_ext}$major' 10841 shlibpath_var=LD_LIBRARY_PATH 10842 ;; 10843 10844*) 10845 dynamic_linker=no 10846 ;; 10847esac 10848{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10849$as_echo "$dynamic_linker" >&6; } 10850test "$dynamic_linker" = no && can_build_shared=no 10851 10852variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10853if test "$GCC" = yes; then 10854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10855fi 10856 10857if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10858 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10859fi 10860if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10861 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10862fi 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10951$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10952hardcode_action= 10953if test -n "$hardcode_libdir_flag_spec" || 10954 test -n "$runpath_var" || 10955 test "X$hardcode_automatic" = "Xyes" ; then 10956 10957 # We can hardcode non-existent directories. 10958 if test "$hardcode_direct" != no && 10959 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10960 # have to relink, otherwise we might link with an installed library 10961 # when we should be linking with a yet-to-be-installed one 10962 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10963 test "$hardcode_minus_L" != no; then 10964 # Linking always hardcodes the temporary library directory. 10965 hardcode_action=relink 10966 else 10967 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10968 hardcode_action=immediate 10969 fi 10970else 10971 # We cannot hardcode anything, or else we can only hardcode existing 10972 # directories. 10973 hardcode_action=unsupported 10974fi 10975{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10976$as_echo "$hardcode_action" >&6; } 10977 10978if test "$hardcode_action" = relink || 10979 test "$inherit_rpath" = yes; then 10980 # Fast installation is not supported 10981 enable_fast_install=no 10982elif test "$shlibpath_overrides_runpath" = yes || 10983 test "$enable_shared" = no; then 10984 # Fast installation is not necessary 10985 enable_fast_install=needless 10986fi 10987 10988 10989 10990 10991 10992 10993 if test "x$enable_dlopen" != xyes; then 10994 enable_dlopen=unknown 10995 enable_dlopen_self=unknown 10996 enable_dlopen_self_static=unknown 10997else 10998 lt_cv_dlopen=no 10999 lt_cv_dlopen_libs= 11000 11001 case $host_os in 11002 beos*) 11003 lt_cv_dlopen="load_add_on" 11004 lt_cv_dlopen_libs= 11005 lt_cv_dlopen_self=yes 11006 ;; 11007 11008 mingw* | pw32* | cegcc*) 11009 lt_cv_dlopen="LoadLibrary" 11010 lt_cv_dlopen_libs= 11011 ;; 11012 11013 cygwin*) 11014 lt_cv_dlopen="dlopen" 11015 lt_cv_dlopen_libs= 11016 ;; 11017 11018 darwin*) 11019 # if libdl is installed we need to link against it 11020 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11021$as_echo_n "checking for dlopen in -ldl... " >&6; } 11022if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11023 $as_echo_n "(cached) " >&6 11024else 11025 ac_check_lib_save_LIBS=$LIBS 11026LIBS="-ldl $LIBS" 11027cat >conftest.$ac_ext <<_ACEOF 11028/* confdefs.h. */ 11029_ACEOF 11030cat confdefs.h >>conftest.$ac_ext 11031cat >>conftest.$ac_ext <<_ACEOF 11032/* end confdefs.h. */ 11033 11034/* Override any GCC internal prototype to avoid an error. 11035 Use char because int might match the return type of a GCC 11036 builtin and then its argument prototype would still apply. */ 11037#ifdef __cplusplus 11038extern "C" 11039#endif 11040char dlopen (); 11041int 11042main () 11043{ 11044return dlopen (); 11045 ; 11046 return 0; 11047} 11048_ACEOF 11049rm -f conftest.$ac_objext conftest$ac_exeext 11050if { (ac_try="$ac_link" 11051case "(($ac_try" in 11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11053 *) ac_try_echo=$ac_try;; 11054esac 11055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11056$as_echo "$ac_try_echo") >&5 11057 (eval "$ac_link") 2>conftest.er1 11058 ac_status=$? 11059 grep -v '^ *+' conftest.er1 >conftest.err 11060 rm -f conftest.er1 11061 cat conftest.err >&5 11062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11063 (exit $ac_status); } && { 11064 test -z "$ac_c_werror_flag" || 11065 test ! -s conftest.err 11066 } && test -s conftest$ac_exeext && { 11067 test "$cross_compiling" = yes || 11068 $as_test_x conftest$ac_exeext 11069 }; then 11070 ac_cv_lib_dl_dlopen=yes 11071else 11072 $as_echo "$as_me: failed program was:" >&5 11073sed 's/^/| /' conftest.$ac_ext >&5 11074 11075 ac_cv_lib_dl_dlopen=no 11076fi 11077 11078rm -rf conftest.dSYM 11079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11080 conftest$ac_exeext conftest.$ac_ext 11081LIBS=$ac_check_lib_save_LIBS 11082fi 11083{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11084$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11085if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11087else 11088 11089 lt_cv_dlopen="dyld" 11090 lt_cv_dlopen_libs= 11091 lt_cv_dlopen_self=yes 11092 11093fi 11094 11095 ;; 11096 11097 *) 11098 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11099$as_echo_n "checking for shl_load... " >&6; } 11100if test "${ac_cv_func_shl_load+set}" = set; then 11101 $as_echo_n "(cached) " >&6 11102else 11103 cat >conftest.$ac_ext <<_ACEOF 11104/* confdefs.h. */ 11105_ACEOF 11106cat confdefs.h >>conftest.$ac_ext 11107cat >>conftest.$ac_ext <<_ACEOF 11108/* end confdefs.h. */ 11109/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11111#define shl_load innocuous_shl_load 11112 11113/* System header to define __stub macros and hopefully few prototypes, 11114 which can conflict with char shl_load (); below. 11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11116 <limits.h> exists even on freestanding compilers. */ 11117 11118#ifdef __STDC__ 11119# include <limits.h> 11120#else 11121# include <assert.h> 11122#endif 11123 11124#undef shl_load 11125 11126/* Override any GCC internal prototype to avoid an error. 11127 Use char because int might match the return type of a GCC 11128 builtin and then its argument prototype would still apply. */ 11129#ifdef __cplusplus 11130extern "C" 11131#endif 11132char shl_load (); 11133/* The GNU C library defines this for functions which it implements 11134 to always fail with ENOSYS. Some functions are actually named 11135 something starting with __ and the normal name is an alias. */ 11136#if defined __stub_shl_load || defined __stub___shl_load 11137choke me 11138#endif 11139 11140int 11141main () 11142{ 11143return shl_load (); 11144 ; 11145 return 0; 11146} 11147_ACEOF 11148rm -f conftest.$ac_objext conftest$ac_exeext 11149if { (ac_try="$ac_link" 11150case "(($ac_try" in 11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11152 *) ac_try_echo=$ac_try;; 11153esac 11154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11155$as_echo "$ac_try_echo") >&5 11156 (eval "$ac_link") 2>conftest.er1 11157 ac_status=$? 11158 grep -v '^ *+' conftest.er1 >conftest.err 11159 rm -f conftest.er1 11160 cat conftest.err >&5 11161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11162 (exit $ac_status); } && { 11163 test -z "$ac_c_werror_flag" || 11164 test ! -s conftest.err 11165 } && test -s conftest$ac_exeext && { 11166 test "$cross_compiling" = yes || 11167 $as_test_x conftest$ac_exeext 11168 }; then 11169 ac_cv_func_shl_load=yes 11170else 11171 $as_echo "$as_me: failed program was:" >&5 11172sed 's/^/| /' conftest.$ac_ext >&5 11173 11174 ac_cv_func_shl_load=no 11175fi 11176 11177rm -rf conftest.dSYM 11178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11179 conftest$ac_exeext conftest.$ac_ext 11180fi 11181{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11182$as_echo "$ac_cv_func_shl_load" >&6; } 11183if test "x$ac_cv_func_shl_load" = x""yes; then 11184 lt_cv_dlopen="shl_load" 11185else 11186 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11187$as_echo_n "checking for shl_load in -ldld... " >&6; } 11188if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11189 $as_echo_n "(cached) " >&6 11190else 11191 ac_check_lib_save_LIBS=$LIBS 11192LIBS="-ldld $LIBS" 11193cat >conftest.$ac_ext <<_ACEOF 11194/* confdefs.h. */ 11195_ACEOF 11196cat confdefs.h >>conftest.$ac_ext 11197cat >>conftest.$ac_ext <<_ACEOF 11198/* end confdefs.h. */ 11199 11200/* Override any GCC internal prototype to avoid an error. 11201 Use char because int might match the return type of a GCC 11202 builtin and then its argument prototype would still apply. */ 11203#ifdef __cplusplus 11204extern "C" 11205#endif 11206char shl_load (); 11207int 11208main () 11209{ 11210return shl_load (); 11211 ; 11212 return 0; 11213} 11214_ACEOF 11215rm -f conftest.$ac_objext conftest$ac_exeext 11216if { (ac_try="$ac_link" 11217case "(($ac_try" in 11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11219 *) ac_try_echo=$ac_try;; 11220esac 11221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11222$as_echo "$ac_try_echo") >&5 11223 (eval "$ac_link") 2>conftest.er1 11224 ac_status=$? 11225 grep -v '^ *+' conftest.er1 >conftest.err 11226 rm -f conftest.er1 11227 cat conftest.err >&5 11228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11229 (exit $ac_status); } && { 11230 test -z "$ac_c_werror_flag" || 11231 test ! -s conftest.err 11232 } && test -s conftest$ac_exeext && { 11233 test "$cross_compiling" = yes || 11234 $as_test_x conftest$ac_exeext 11235 }; then 11236 ac_cv_lib_dld_shl_load=yes 11237else 11238 $as_echo "$as_me: failed program was:" >&5 11239sed 's/^/| /' conftest.$ac_ext >&5 11240 11241 ac_cv_lib_dld_shl_load=no 11242fi 11243 11244rm -rf conftest.dSYM 11245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11246 conftest$ac_exeext conftest.$ac_ext 11247LIBS=$ac_check_lib_save_LIBS 11248fi 11249{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11250$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11251if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11252 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11253else 11254 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11255$as_echo_n "checking for dlopen... " >&6; } 11256if test "${ac_cv_func_dlopen+set}" = set; then 11257 $as_echo_n "(cached) " >&6 11258else 11259 cat >conftest.$ac_ext <<_ACEOF 11260/* confdefs.h. */ 11261_ACEOF 11262cat confdefs.h >>conftest.$ac_ext 11263cat >>conftest.$ac_ext <<_ACEOF 11264/* end confdefs.h. */ 11265/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11266 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11267#define dlopen innocuous_dlopen 11268 11269/* System header to define __stub macros and hopefully few prototypes, 11270 which can conflict with char dlopen (); below. 11271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11272 <limits.h> exists even on freestanding compilers. */ 11273 11274#ifdef __STDC__ 11275# include <limits.h> 11276#else 11277# include <assert.h> 11278#endif 11279 11280#undef dlopen 11281 11282/* Override any GCC internal prototype to avoid an error. 11283 Use char because int might match the return type of a GCC 11284 builtin and then its argument prototype would still apply. */ 11285#ifdef __cplusplus 11286extern "C" 11287#endif 11288char dlopen (); 11289/* The GNU C library defines this for functions which it implements 11290 to always fail with ENOSYS. Some functions are actually named 11291 something starting with __ and the normal name is an alias. */ 11292#if defined __stub_dlopen || defined __stub___dlopen 11293choke me 11294#endif 11295 11296int 11297main () 11298{ 11299return dlopen (); 11300 ; 11301 return 0; 11302} 11303_ACEOF 11304rm -f conftest.$ac_objext conftest$ac_exeext 11305if { (ac_try="$ac_link" 11306case "(($ac_try" in 11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11308 *) ac_try_echo=$ac_try;; 11309esac 11310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11311$as_echo "$ac_try_echo") >&5 11312 (eval "$ac_link") 2>conftest.er1 11313 ac_status=$? 11314 grep -v '^ *+' conftest.er1 >conftest.err 11315 rm -f conftest.er1 11316 cat conftest.err >&5 11317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11318 (exit $ac_status); } && { 11319 test -z "$ac_c_werror_flag" || 11320 test ! -s conftest.err 11321 } && test -s conftest$ac_exeext && { 11322 test "$cross_compiling" = yes || 11323 $as_test_x conftest$ac_exeext 11324 }; then 11325 ac_cv_func_dlopen=yes 11326else 11327 $as_echo "$as_me: failed program was:" >&5 11328sed 's/^/| /' conftest.$ac_ext >&5 11329 11330 ac_cv_func_dlopen=no 11331fi 11332 11333rm -rf conftest.dSYM 11334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11335 conftest$ac_exeext conftest.$ac_ext 11336fi 11337{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11338$as_echo "$ac_cv_func_dlopen" >&6; } 11339if test "x$ac_cv_func_dlopen" = x""yes; then 11340 lt_cv_dlopen="dlopen" 11341else 11342 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11343$as_echo_n "checking for dlopen in -ldl... " >&6; } 11344if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11345 $as_echo_n "(cached) " >&6 11346else 11347 ac_check_lib_save_LIBS=$LIBS 11348LIBS="-ldl $LIBS" 11349cat >conftest.$ac_ext <<_ACEOF 11350/* confdefs.h. */ 11351_ACEOF 11352cat confdefs.h >>conftest.$ac_ext 11353cat >>conftest.$ac_ext <<_ACEOF 11354/* end confdefs.h. */ 11355 11356/* Override any GCC internal prototype to avoid an error. 11357 Use char because int might match the return type of a GCC 11358 builtin and then its argument prototype would still apply. */ 11359#ifdef __cplusplus 11360extern "C" 11361#endif 11362char dlopen (); 11363int 11364main () 11365{ 11366return dlopen (); 11367 ; 11368 return 0; 11369} 11370_ACEOF 11371rm -f conftest.$ac_objext conftest$ac_exeext 11372if { (ac_try="$ac_link" 11373case "(($ac_try" in 11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11375 *) ac_try_echo=$ac_try;; 11376esac 11377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11378$as_echo "$ac_try_echo") >&5 11379 (eval "$ac_link") 2>conftest.er1 11380 ac_status=$? 11381 grep -v '^ *+' conftest.er1 >conftest.err 11382 rm -f conftest.er1 11383 cat conftest.err >&5 11384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11385 (exit $ac_status); } && { 11386 test -z "$ac_c_werror_flag" || 11387 test ! -s conftest.err 11388 } && test -s conftest$ac_exeext && { 11389 test "$cross_compiling" = yes || 11390 $as_test_x conftest$ac_exeext 11391 }; then 11392 ac_cv_lib_dl_dlopen=yes 11393else 11394 $as_echo "$as_me: failed program was:" >&5 11395sed 's/^/| /' conftest.$ac_ext >&5 11396 11397 ac_cv_lib_dl_dlopen=no 11398fi 11399 11400rm -rf conftest.dSYM 11401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11402 conftest$ac_exeext conftest.$ac_ext 11403LIBS=$ac_check_lib_save_LIBS 11404fi 11405{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11406$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11407if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11409else 11410 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11411$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11412if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11413 $as_echo_n "(cached) " >&6 11414else 11415 ac_check_lib_save_LIBS=$LIBS 11416LIBS="-lsvld $LIBS" 11417cat >conftest.$ac_ext <<_ACEOF 11418/* confdefs.h. */ 11419_ACEOF 11420cat confdefs.h >>conftest.$ac_ext 11421cat >>conftest.$ac_ext <<_ACEOF 11422/* end confdefs.h. */ 11423 11424/* Override any GCC internal prototype to avoid an error. 11425 Use char because int might match the return type of a GCC 11426 builtin and then its argument prototype would still apply. */ 11427#ifdef __cplusplus 11428extern "C" 11429#endif 11430char dlopen (); 11431int 11432main () 11433{ 11434return dlopen (); 11435 ; 11436 return 0; 11437} 11438_ACEOF 11439rm -f conftest.$ac_objext conftest$ac_exeext 11440if { (ac_try="$ac_link" 11441case "(($ac_try" in 11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11443 *) ac_try_echo=$ac_try;; 11444esac 11445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11446$as_echo "$ac_try_echo") >&5 11447 (eval "$ac_link") 2>conftest.er1 11448 ac_status=$? 11449 grep -v '^ *+' conftest.er1 >conftest.err 11450 rm -f conftest.er1 11451 cat conftest.err >&5 11452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11453 (exit $ac_status); } && { 11454 test -z "$ac_c_werror_flag" || 11455 test ! -s conftest.err 11456 } && test -s conftest$ac_exeext && { 11457 test "$cross_compiling" = yes || 11458 $as_test_x conftest$ac_exeext 11459 }; then 11460 ac_cv_lib_svld_dlopen=yes 11461else 11462 $as_echo "$as_me: failed program was:" >&5 11463sed 's/^/| /' conftest.$ac_ext >&5 11464 11465 ac_cv_lib_svld_dlopen=no 11466fi 11467 11468rm -rf conftest.dSYM 11469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11470 conftest$ac_exeext conftest.$ac_ext 11471LIBS=$ac_check_lib_save_LIBS 11472fi 11473{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11474$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11475if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11477else 11478 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11479$as_echo_n "checking for dld_link in -ldld... " >&6; } 11480if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11481 $as_echo_n "(cached) " >&6 11482else 11483 ac_check_lib_save_LIBS=$LIBS 11484LIBS="-ldld $LIBS" 11485cat >conftest.$ac_ext <<_ACEOF 11486/* confdefs.h. */ 11487_ACEOF 11488cat confdefs.h >>conftest.$ac_ext 11489cat >>conftest.$ac_ext <<_ACEOF 11490/* end confdefs.h. */ 11491 11492/* Override any GCC internal prototype to avoid an error. 11493 Use char because int might match the return type of a GCC 11494 builtin and then its argument prototype would still apply. */ 11495#ifdef __cplusplus 11496extern "C" 11497#endif 11498char dld_link (); 11499int 11500main () 11501{ 11502return dld_link (); 11503 ; 11504 return 0; 11505} 11506_ACEOF 11507rm -f conftest.$ac_objext conftest$ac_exeext 11508if { (ac_try="$ac_link" 11509case "(($ac_try" in 11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11511 *) ac_try_echo=$ac_try;; 11512esac 11513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11514$as_echo "$ac_try_echo") >&5 11515 (eval "$ac_link") 2>conftest.er1 11516 ac_status=$? 11517 grep -v '^ *+' conftest.er1 >conftest.err 11518 rm -f conftest.er1 11519 cat conftest.err >&5 11520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11521 (exit $ac_status); } && { 11522 test -z "$ac_c_werror_flag" || 11523 test ! -s conftest.err 11524 } && test -s conftest$ac_exeext && { 11525 test "$cross_compiling" = yes || 11526 $as_test_x conftest$ac_exeext 11527 }; then 11528 ac_cv_lib_dld_dld_link=yes 11529else 11530 $as_echo "$as_me: failed program was:" >&5 11531sed 's/^/| /' conftest.$ac_ext >&5 11532 11533 ac_cv_lib_dld_dld_link=no 11534fi 11535 11536rm -rf conftest.dSYM 11537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11538 conftest$ac_exeext conftest.$ac_ext 11539LIBS=$ac_check_lib_save_LIBS 11540fi 11541{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11542$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11543if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11544 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11545fi 11546 11547 11548fi 11549 11550 11551fi 11552 11553 11554fi 11555 11556 11557fi 11558 11559 11560fi 11561 11562 ;; 11563 esac 11564 11565 if test "x$lt_cv_dlopen" != xno; then 11566 enable_dlopen=yes 11567 else 11568 enable_dlopen=no 11569 fi 11570 11571 case $lt_cv_dlopen in 11572 dlopen) 11573 save_CPPFLAGS="$CPPFLAGS" 11574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11575 11576 save_LDFLAGS="$LDFLAGS" 11577 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11578 11579 save_LIBS="$LIBS" 11580 LIBS="$lt_cv_dlopen_libs $LIBS" 11581 11582 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11583$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11584if test "${lt_cv_dlopen_self+set}" = set; then 11585 $as_echo_n "(cached) " >&6 11586else 11587 if test "$cross_compiling" = yes; then : 11588 lt_cv_dlopen_self=cross 11589else 11590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11591 lt_status=$lt_dlunknown 11592 cat > conftest.$ac_ext <<_LT_EOF 11593#line 11593 "configure" 11594#include "confdefs.h" 11595 11596#if HAVE_DLFCN_H 11597#include <dlfcn.h> 11598#endif 11599 11600#include <stdio.h> 11601 11602#ifdef RTLD_GLOBAL 11603# define LT_DLGLOBAL RTLD_GLOBAL 11604#else 11605# ifdef DL_GLOBAL 11606# define LT_DLGLOBAL DL_GLOBAL 11607# else 11608# define LT_DLGLOBAL 0 11609# endif 11610#endif 11611 11612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11613 find out it does not work in some platform. */ 11614#ifndef LT_DLLAZY_OR_NOW 11615# ifdef RTLD_LAZY 11616# define LT_DLLAZY_OR_NOW RTLD_LAZY 11617# else 11618# ifdef DL_LAZY 11619# define LT_DLLAZY_OR_NOW DL_LAZY 11620# else 11621# ifdef RTLD_NOW 11622# define LT_DLLAZY_OR_NOW RTLD_NOW 11623# else 11624# ifdef DL_NOW 11625# define LT_DLLAZY_OR_NOW DL_NOW 11626# else 11627# define LT_DLLAZY_OR_NOW 0 11628# endif 11629# endif 11630# endif 11631# endif 11632#endif 11633 11634void fnord() { int i=42;} 11635int main () 11636{ 11637 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11638 int status = $lt_dlunknown; 11639 11640 if (self) 11641 { 11642 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11643 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11644 /* dlclose (self); */ 11645 } 11646 else 11647 puts (dlerror ()); 11648 11649 return status; 11650} 11651_LT_EOF 11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11653 (eval $ac_link) 2>&5 11654 ac_status=$? 11655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11657 (./conftest; exit; ) >&5 2>/dev/null 11658 lt_status=$? 11659 case x$lt_status in 11660 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11661 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11662 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11663 esac 11664 else : 11665 # compilation failed 11666 lt_cv_dlopen_self=no 11667 fi 11668fi 11669rm -fr conftest* 11670 11671 11672fi 11673{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11674$as_echo "$lt_cv_dlopen_self" >&6; } 11675 11676 if test "x$lt_cv_dlopen_self" = xyes; then 11677 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11678 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11679$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11680if test "${lt_cv_dlopen_self_static+set}" = set; then 11681 $as_echo_n "(cached) " >&6 11682else 11683 if test "$cross_compiling" = yes; then : 11684 lt_cv_dlopen_self_static=cross 11685else 11686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11687 lt_status=$lt_dlunknown 11688 cat > conftest.$ac_ext <<_LT_EOF 11689#line 11689 "configure" 11690#include "confdefs.h" 11691 11692#if HAVE_DLFCN_H 11693#include <dlfcn.h> 11694#endif 11695 11696#include <stdio.h> 11697 11698#ifdef RTLD_GLOBAL 11699# define LT_DLGLOBAL RTLD_GLOBAL 11700#else 11701# ifdef DL_GLOBAL 11702# define LT_DLGLOBAL DL_GLOBAL 11703# else 11704# define LT_DLGLOBAL 0 11705# endif 11706#endif 11707 11708/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11709 find out it does not work in some platform. */ 11710#ifndef LT_DLLAZY_OR_NOW 11711# ifdef RTLD_LAZY 11712# define LT_DLLAZY_OR_NOW RTLD_LAZY 11713# else 11714# ifdef DL_LAZY 11715# define LT_DLLAZY_OR_NOW DL_LAZY 11716# else 11717# ifdef RTLD_NOW 11718# define LT_DLLAZY_OR_NOW RTLD_NOW 11719# else 11720# ifdef DL_NOW 11721# define LT_DLLAZY_OR_NOW DL_NOW 11722# else 11723# define LT_DLLAZY_OR_NOW 0 11724# endif 11725# endif 11726# endif 11727# endif 11728#endif 11729 11730void fnord() { int i=42;} 11731int main () 11732{ 11733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11734 int status = $lt_dlunknown; 11735 11736 if (self) 11737 { 11738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11739 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11740 /* dlclose (self); */ 11741 } 11742 else 11743 puts (dlerror ()); 11744 11745 return status; 11746} 11747_LT_EOF 11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11749 (eval $ac_link) 2>&5 11750 ac_status=$? 11751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11752 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11753 (./conftest; exit; ) >&5 2>/dev/null 11754 lt_status=$? 11755 case x$lt_status in 11756 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11757 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11758 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11759 esac 11760 else : 11761 # compilation failed 11762 lt_cv_dlopen_self_static=no 11763 fi 11764fi 11765rm -fr conftest* 11766 11767 11768fi 11769{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11770$as_echo "$lt_cv_dlopen_self_static" >&6; } 11771 fi 11772 11773 CPPFLAGS="$save_CPPFLAGS" 11774 LDFLAGS="$save_LDFLAGS" 11775 LIBS="$save_LIBS" 11776 ;; 11777 esac 11778 11779 case $lt_cv_dlopen_self in 11780 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11781 *) enable_dlopen_self=unknown ;; 11782 esac 11783 11784 case $lt_cv_dlopen_self_static in 11785 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11786 *) enable_dlopen_self_static=unknown ;; 11787 esac 11788fi 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806striplib= 11807old_striplib= 11808{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11809$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11810if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11811 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11812 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11813 { $as_echo "$as_me:$LINENO: result: yes" >&5 11814$as_echo "yes" >&6; } 11815else 11816# FIXME - insert some real tests, host_os isn't really good enough 11817 case $host_os in 11818 darwin*) 11819 if test -n "$STRIP" ; then 11820 striplib="$STRIP -x" 11821 old_striplib="$STRIP -S" 11822 { $as_echo "$as_me:$LINENO: result: yes" >&5 11823$as_echo "yes" >&6; } 11824 else 11825 { $as_echo "$as_me:$LINENO: result: no" >&5 11826$as_echo "no" >&6; } 11827 fi 11828 ;; 11829 *) 11830 { $as_echo "$as_me:$LINENO: result: no" >&5 11831$as_echo "no" >&6; } 11832 ;; 11833 esac 11834fi 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 # Report which library types will actually be built 11848 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11849$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11850 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11851$as_echo "$can_build_shared" >&6; } 11852 11853 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11854$as_echo_n "checking whether to build shared libraries... " >&6; } 11855 test "$can_build_shared" = "no" && enable_shared=no 11856 11857 # On AIX, shared libraries and static libraries use the same namespace, and 11858 # are all built from PIC. 11859 case $host_os in 11860 aix3*) 11861 test "$enable_shared" = yes && enable_static=no 11862 if test -n "$RANLIB"; then 11863 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11864 postinstall_cmds='$RANLIB $lib' 11865 fi 11866 ;; 11867 11868 aix[4-9]*) 11869 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11870 test "$enable_shared" = yes && enable_static=no 11871 fi 11872 ;; 11873 esac 11874 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11875$as_echo "$enable_shared" >&6; } 11876 11877 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11878$as_echo_n "checking whether to build static libraries... " >&6; } 11879 # Make sure either enable_shared or enable_static is yes. 11880 test "$enable_shared" = yes || enable_static=yes 11881 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11882$as_echo "$enable_static" >&6; } 11883 11884 11885 11886 11887fi 11888ac_ext=c 11889ac_cpp='$CPP $CPPFLAGS' 11890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11892ac_compiler_gnu=$ac_cv_c_compiler_gnu 11893 11894CC="$lt_save_CC" 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 ac_config_commands="$ac_config_commands libtool" 11909 11910 11911 11912 11913# Only expand once: 11914 11915 11916 11917# Checks for programs. 11918if test "x$CC" != xcc; then 11919 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 11920$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 11921else 11922 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 11923$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 11924fi 11925set dummy $CC; ac_cc=`$as_echo "$2" | 11926 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11927if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 11928 $as_echo_n "(cached) " >&6 11929else 11930 cat >conftest.$ac_ext <<_ACEOF 11931/* confdefs.h. */ 11932_ACEOF 11933cat confdefs.h >>conftest.$ac_ext 11934cat >>conftest.$ac_ext <<_ACEOF 11935/* end confdefs.h. */ 11936 11937int 11938main () 11939{ 11940 11941 ; 11942 return 0; 11943} 11944_ACEOF 11945# Make sure it works both with $CC and with simple cc. 11946# We do the test twice because some compilers refuse to overwrite an 11947# existing .o file with -o, though they will create one. 11948ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11949rm -f conftest2.* 11950if { (case "(($ac_try" in 11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11952 *) ac_try_echo=$ac_try;; 11953esac 11954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11955$as_echo "$ac_try_echo") >&5 11956 (eval "$ac_try") 2>&5 11957 ac_status=$? 11958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11959 (exit $ac_status); } && 11960 test -f conftest2.$ac_objext && { (case "(($ac_try" in 11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11962 *) ac_try_echo=$ac_try;; 11963esac 11964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11965$as_echo "$ac_try_echo") >&5 11966 (eval "$ac_try") 2>&5 11967 ac_status=$? 11968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11969 (exit $ac_status); }; 11970then 11971 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 11972 if test "x$CC" != xcc; then 11973 # Test first that cc exists at all. 11974 if { ac_try='cc -c conftest.$ac_ext >&5' 11975 { (case "(($ac_try" in 11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11977 *) ac_try_echo=$ac_try;; 11978esac 11979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11980$as_echo "$ac_try_echo") >&5 11981 (eval "$ac_try") 2>&5 11982 ac_status=$? 11983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11984 (exit $ac_status); }; }; then 11985 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11986 rm -f conftest2.* 11987 if { (case "(($ac_try" in 11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11989 *) ac_try_echo=$ac_try;; 11990esac 11991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11992$as_echo "$ac_try_echo") >&5 11993 (eval "$ac_try") 2>&5 11994 ac_status=$? 11995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11996 (exit $ac_status); } && 11997 test -f conftest2.$ac_objext && { (case "(($ac_try" in 11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11999 *) ac_try_echo=$ac_try;; 12000esac 12001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12002$as_echo "$ac_try_echo") >&5 12003 (eval "$ac_try") 2>&5 12004 ac_status=$? 12005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12006 (exit $ac_status); }; 12007 then 12008 # cc works too. 12009 : 12010 else 12011 # cc exists but doesn't like -o. 12012 eval ac_cv_prog_cc_${ac_cc}_c_o=no 12013 fi 12014 fi 12015 fi 12016else 12017 eval ac_cv_prog_cc_${ac_cc}_c_o=no 12018fi 12019rm -f core conftest* 12020 12021fi 12022if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 12023 { $as_echo "$as_me:$LINENO: result: yes" >&5 12024$as_echo "yes" >&6; } 12025else 12026 { $as_echo "$as_me:$LINENO: result: no" >&5 12027$as_echo "no" >&6; } 12028 12029cat >>confdefs.h <<\_ACEOF 12030#define NO_MINUS_C_MINUS_O 1 12031_ACEOF 12032 12033fi 12034 12035# FIXME: we rely on the cache variable name because 12036# there is no other way. 12037set dummy $CC 12038am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 12039eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 12040if test "$am_t" != yes; then 12041 # Losing compiler, so override with the script. 12042 # FIXME: It is wrong to rewrite CC. 12043 # But if we don't then we get into trouble of one sort or another. 12044 # A longer-term fix would be to have automake use am__CC in this case, 12045 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12046 CC="$am_aux_dir/compile $CC" 12047fi 12048 12049 12050 12051 12052 12053 12054# Define a configure option for an alternate module directory 12055 12056# Check whether --with-xorg-module-dir was given. 12057if test "${with_xorg_module_dir+set}" = set; then 12058 withval=$with_xorg_module_dir; moduledir="$withval" 12059else 12060 moduledir="$libdir/xorg/modules" 12061fi 12062 12063 12064# Store the list of server defined optional extensions in REQUIRED_MODULES 12065 12066 12067 SAVE_CFLAGS="$CFLAGS" 12068 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12069 cat >conftest.$ac_ext <<_ACEOF 12070/* confdefs.h. */ 12071_ACEOF 12072cat confdefs.h >>conftest.$ac_ext 12073cat >>conftest.$ac_ext <<_ACEOF 12074/* end confdefs.h. */ 12075 12076#include "xorg-server.h" 12077#if !defined RANDR 12078#error RANDR not defined 12079#endif 12080 12081int 12082main () 12083{ 12084 12085 ; 12086 return 0; 12087} 12088_ACEOF 12089rm -f conftest.$ac_objext 12090if { (ac_try="$ac_compile" 12091case "(($ac_try" in 12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12093 *) ac_try_echo=$ac_try;; 12094esac 12095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12096$as_echo "$ac_try_echo") >&5 12097 (eval "$ac_compile") 2>conftest.er1 12098 ac_status=$? 12099 grep -v '^ *+' conftest.er1 >conftest.err 12100 rm -f conftest.er1 12101 cat conftest.err >&5 12102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12103 (exit $ac_status); } && { 12104 test -z "$ac_c_werror_flag" || 12105 test ! -s conftest.err 12106 } && test -s conftest.$ac_objext; then 12107 _EXT_CHECK=yes 12108else 12109 $as_echo "$as_me: failed program was:" >&5 12110sed 's/^/| /' conftest.$ac_ext >&5 12111 12112 _EXT_CHECK=no 12113fi 12114 12115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12116 CFLAGS="$SAVE_CFLAGS" 12117 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 12118$as_echo_n "checking if RANDR is defined... " >&6; } 12119 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12120$as_echo "$_EXT_CHECK" >&6; } 12121 if test "$_EXT_CHECK" != no; then 12122 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12123 fi 12124 12125 12126 12127 SAVE_CFLAGS="$CFLAGS" 12128 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12129 cat >conftest.$ac_ext <<_ACEOF 12130/* confdefs.h. */ 12131_ACEOF 12132cat confdefs.h >>conftest.$ac_ext 12133cat >>conftest.$ac_ext <<_ACEOF 12134/* end confdefs.h. */ 12135 12136#include "xorg-server.h" 12137#if !defined RENDER 12138#error RENDER not defined 12139#endif 12140 12141int 12142main () 12143{ 12144 12145 ; 12146 return 0; 12147} 12148_ACEOF 12149rm -f conftest.$ac_objext 12150if { (ac_try="$ac_compile" 12151case "(($ac_try" in 12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12153 *) ac_try_echo=$ac_try;; 12154esac 12155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12156$as_echo "$ac_try_echo") >&5 12157 (eval "$ac_compile") 2>conftest.er1 12158 ac_status=$? 12159 grep -v '^ *+' conftest.er1 >conftest.err 12160 rm -f conftest.er1 12161 cat conftest.err >&5 12162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12163 (exit $ac_status); } && { 12164 test -z "$ac_c_werror_flag" || 12165 test ! -s conftest.err 12166 } && test -s conftest.$ac_objext; then 12167 _EXT_CHECK=yes 12168else 12169 $as_echo "$as_me: failed program was:" >&5 12170sed 's/^/| /' conftest.$ac_ext >&5 12171 12172 _EXT_CHECK=no 12173fi 12174 12175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12176 CFLAGS="$SAVE_CFLAGS" 12177 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12178$as_echo_n "checking if RENDER is defined... " >&6; } 12179 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12180$as_echo "$_EXT_CHECK" >&6; } 12181 if test "$_EXT_CHECK" != no; then 12182 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12183 fi 12184 12185 12186 12187 SAVE_CFLAGS="$CFLAGS" 12188 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12189 cat >conftest.$ac_ext <<_ACEOF 12190/* confdefs.h. */ 12191_ACEOF 12192cat confdefs.h >>conftest.$ac_ext 12193cat >>conftest.$ac_ext <<_ACEOF 12194/* end confdefs.h. */ 12195 12196#include "xorg-server.h" 12197#if !defined DPMSExtension 12198#error DPMSExtension not defined 12199#endif 12200 12201int 12202main () 12203{ 12204 12205 ; 12206 return 0; 12207} 12208_ACEOF 12209rm -f conftest.$ac_objext 12210if { (ac_try="$ac_compile" 12211case "(($ac_try" in 12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12213 *) ac_try_echo=$ac_try;; 12214esac 12215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12216$as_echo "$ac_try_echo") >&5 12217 (eval "$ac_compile") 2>conftest.er1 12218 ac_status=$? 12219 grep -v '^ *+' conftest.er1 >conftest.err 12220 rm -f conftest.er1 12221 cat conftest.err >&5 12222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12223 (exit $ac_status); } && { 12224 test -z "$ac_c_werror_flag" || 12225 test ! -s conftest.err 12226 } && test -s conftest.$ac_objext; then 12227 _EXT_CHECK=yes 12228else 12229 $as_echo "$as_me: failed program was:" >&5 12230sed 's/^/| /' conftest.$ac_ext >&5 12231 12232 _EXT_CHECK=no 12233fi 12234 12235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12236 CFLAGS="$SAVE_CFLAGS" 12237 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12238$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12239 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12240$as_echo "$_EXT_CHECK" >&6; } 12241 if test "$_EXT_CHECK" != no; then 12242 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12243 fi 12244 12245 12246 12247 SAVE_CFLAGS="$CFLAGS" 12248 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12249 cat >conftest.$ac_ext <<_ACEOF 12250/* confdefs.h. */ 12251_ACEOF 12252cat confdefs.h >>conftest.$ac_ext 12253cat >>conftest.$ac_ext <<_ACEOF 12254/* end confdefs.h. */ 12255 12256#include "xorg-server.h" 12257#if !defined XINERAMA 12258#error XINERAMA not defined 12259#endif 12260 12261int 12262main () 12263{ 12264 12265 ; 12266 return 0; 12267} 12268_ACEOF 12269rm -f conftest.$ac_objext 12270if { (ac_try="$ac_compile" 12271case "(($ac_try" in 12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12273 *) ac_try_echo=$ac_try;; 12274esac 12275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12276$as_echo "$ac_try_echo") >&5 12277 (eval "$ac_compile") 2>conftest.er1 12278 ac_status=$? 12279 grep -v '^ *+' conftest.er1 >conftest.err 12280 rm -f conftest.er1 12281 cat conftest.err >&5 12282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12283 (exit $ac_status); } && { 12284 test -z "$ac_c_werror_flag" || 12285 test ! -s conftest.err 12286 } && test -s conftest.$ac_objext; then 12287 _EXT_CHECK=yes 12288else 12289 $as_echo "$as_me: failed program was:" >&5 12290sed 's/^/| /' conftest.$ac_ext >&5 12291 12292 _EXT_CHECK=no 12293fi 12294 12295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12296 CFLAGS="$SAVE_CFLAGS" 12297 { $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5 12298$as_echo_n "checking if XINERAMA is defined... " >&6; } 12299 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12300$as_echo "$_EXT_CHECK" >&6; } 12301 if test "$_EXT_CHECK" != no; then 12302 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto" 12303 fi 12304 12305 12306 12307 SAVE_CFLAGS="$CFLAGS" 12308 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12309 cat >conftest.$ac_ext <<_ACEOF 12310/* confdefs.h. */ 12311_ACEOF 12312cat confdefs.h >>conftest.$ac_ext 12313cat >>conftest.$ac_ext <<_ACEOF 12314/* end confdefs.h. */ 12315 12316#include "xorg-server.h" 12317#if !defined XV 12318#error XV not defined 12319#endif 12320 12321int 12322main () 12323{ 12324 12325 ; 12326 return 0; 12327} 12328_ACEOF 12329rm -f conftest.$ac_objext 12330if { (ac_try="$ac_compile" 12331case "(($ac_try" in 12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12333 *) ac_try_echo=$ac_try;; 12334esac 12335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12336$as_echo "$ac_try_echo") >&5 12337 (eval "$ac_compile") 2>conftest.er1 12338 ac_status=$? 12339 grep -v '^ *+' conftest.er1 >conftest.err 12340 rm -f conftest.er1 12341 cat conftest.err >&5 12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12343 (exit $ac_status); } && { 12344 test -z "$ac_c_werror_flag" || 12345 test ! -s conftest.err 12346 } && test -s conftest.$ac_objext; then 12347 _EXT_CHECK=yes 12348else 12349 $as_echo "$as_me: failed program was:" >&5 12350sed 's/^/| /' conftest.$ac_ext >&5 12351 12352 _EXT_CHECK=no 12353fi 12354 12355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12356 CFLAGS="$SAVE_CFLAGS" 12357 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 12358$as_echo_n "checking if XV is defined... " >&6; } 12359 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12360$as_echo "$_EXT_CHECK" >&6; } 12361 if test "$_EXT_CHECK" != no; then 12362 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12363 fi 12364 12365 12366# Obtain compiler/linker options for the driver dependencies 12367 12368pkg_failed=no 12369{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12370$as_echo_n "checking for XORG... " >&6; } 12371 12372if test -n "$XORG_CFLAGS"; then 12373 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12374 elif test -n "$PKG_CONFIG"; then 12375 if test -n "$PKG_CONFIG" && \ 12376 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12377 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5 12378 ac_status=$? 12379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12380 (exit $ac_status); }; then 12381 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12382else 12383 pkg_failed=yes 12384fi 12385 else 12386 pkg_failed=untried 12387fi 12388if test -n "$XORG_LIBS"; then 12389 pkg_cv_XORG_LIBS="$XORG_LIBS" 12390 elif test -n "$PKG_CONFIG"; then 12391 if test -n "$PKG_CONFIG" && \ 12392 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12393 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5 12394 ac_status=$? 12395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12396 (exit $ac_status); }; then 12397 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12398else 12399 pkg_failed=yes 12400fi 12401 else 12402 pkg_failed=untried 12403fi 12404 12405 12406 12407if test $pkg_failed = yes; then 12408 12409if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12410 _pkg_short_errors_supported=yes 12411else 12412 _pkg_short_errors_supported=no 12413fi 12414 if test $_pkg_short_errors_supported = yes; then 12415 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12416 else 12417 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12418 fi 12419 # Put the nasty error message in config.log where it belongs 12420 echo "$XORG_PKG_ERRORS" >&5 12421 12422 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met: 12423 12424$XORG_PKG_ERRORS 12425 12426Consider adjusting the PKG_CONFIG_PATH environment variable if you 12427installed software in a non-standard prefix. 12428 12429Alternatively, you may set the environment variables XORG_CFLAGS 12430and XORG_LIBS to avoid the need to call pkg-config. 12431See the pkg-config man page for more details. 12432" >&5 12433$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met: 12434 12435$XORG_PKG_ERRORS 12436 12437Consider adjusting the PKG_CONFIG_PATH environment variable if you 12438installed software in a non-standard prefix. 12439 12440Alternatively, you may set the environment variables XORG_CFLAGS 12441and XORG_LIBS to avoid the need to call pkg-config. 12442See the pkg-config man page for more details. 12443" >&2;} 12444 { (exit 1); exit 1; }; } 12445elif test $pkg_failed = untried; then 12446 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12448{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12449is in your PATH or set the PKG_CONFIG environment variable to the full 12450path to pkg-config. 12451 12452Alternatively, you may set the environment variables XORG_CFLAGS 12453and XORG_LIBS to avoid the need to call pkg-config. 12454See the pkg-config man page for more details. 12455 12456To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12457See \`config.log' for more details." >&5 12458$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12459is in your PATH or set the PKG_CONFIG environment variable to the full 12460path to pkg-config. 12461 12462Alternatively, you may set the environment variables XORG_CFLAGS 12463and XORG_LIBS to avoid the need to call pkg-config. 12464See the pkg-config man page for more details. 12465 12466To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12467See \`config.log' for more details." >&2;} 12468 { (exit 1); exit 1; }; }; } 12469else 12470 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12471 XORG_LIBS=$pkg_cv_XORG_LIBS 12472 { $as_echo "$as_me:$LINENO: result: yes" >&5 12473$as_echo "yes" >&6; } 12474 : 12475fi 12476 12477pkg_failed=no 12478{ $as_echo "$as_me:$LINENO: checking for DRM" >&5 12479$as_echo_n "checking for DRM... " >&6; } 12480 12481if test -n "$DRM_CFLAGS"; then 12482 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS" 12483 elif test -n "$PKG_CONFIG"; then 12484 if test -n "$PKG_CONFIG" && \ 12485 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5 12486 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 12487 ac_status=$? 12488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12489 (exit $ac_status); }; then 12490 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null` 12491else 12492 pkg_failed=yes 12493fi 12494 else 12495 pkg_failed=untried 12496fi 12497if test -n "$DRM_LIBS"; then 12498 pkg_cv_DRM_LIBS="$DRM_LIBS" 12499 elif test -n "$PKG_CONFIG"; then 12500 if test -n "$PKG_CONFIG" && \ 12501 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5 12502 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 12503 ac_status=$? 12504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12505 (exit $ac_status); }; then 12506 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null` 12507else 12508 pkg_failed=yes 12509fi 12510 else 12511 pkg_failed=untried 12512fi 12513 12514 12515 12516if test $pkg_failed = yes; then 12517 12518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12519 _pkg_short_errors_supported=yes 12520else 12521 _pkg_short_errors_supported=no 12522fi 12523 if test $_pkg_short_errors_supported = yes; then 12524 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm" 2>&1` 12525 else 12526 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm" 2>&1` 12527 fi 12528 # Put the nasty error message in config.log where it belongs 12529 echo "$DRM_PKG_ERRORS" >&5 12530 12531 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm) were not met: 12532 12533$DRM_PKG_ERRORS 12534 12535Consider adjusting the PKG_CONFIG_PATH environment variable if you 12536installed software in a non-standard prefix. 12537 12538Alternatively, you may set the environment variables DRM_CFLAGS 12539and DRM_LIBS to avoid the need to call pkg-config. 12540See the pkg-config man page for more details. 12541" >&5 12542$as_echo "$as_me: error: Package requirements (libdrm) were not met: 12543 12544$DRM_PKG_ERRORS 12545 12546Consider adjusting the PKG_CONFIG_PATH environment variable if you 12547installed software in a non-standard prefix. 12548 12549Alternatively, you may set the environment variables DRM_CFLAGS 12550and DRM_LIBS to avoid the need to call pkg-config. 12551See the pkg-config man page for more details. 12552" >&2;} 12553 { (exit 1); exit 1; }; } 12554elif test $pkg_failed = untried; then 12555 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12557{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12558is in your PATH or set the PKG_CONFIG environment variable to the full 12559path to pkg-config. 12560 12561Alternatively, you may set the environment variables DRM_CFLAGS 12562and DRM_LIBS to avoid the need to call pkg-config. 12563See the pkg-config man page for more details. 12564 12565To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12566See \`config.log' for more details." >&5 12567$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12568is in your PATH or set the PKG_CONFIG environment variable to the full 12569path to pkg-config. 12570 12571Alternatively, you may set the environment variables DRM_CFLAGS 12572and DRM_LIBS to avoid the need to call pkg-config. 12573See the pkg-config man page for more details. 12574 12575To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12576See \`config.log' for more details." >&2;} 12577 { (exit 1); exit 1; }; }; } 12578else 12579 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS 12580 DRM_LIBS=$pkg_cv_DRM_LIBS 12581 { $as_echo "$as_me:$LINENO: result: yes" >&5 12582$as_echo "yes" >&6; } 12583 : 12584fi 12585 12586if test -n "$PKG_CONFIG" && \ 12587 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\"") >&5 12588 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5 12589 ac_status=$? 12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12591 (exit $ac_status); }; then 12592 12593cat >>confdefs.h <<\_ACEOF 12594#define HAVE_XORG_SERVER_1_1_0 1 12595_ACEOF 12596 12597fi 12598 12599if test -n "$PKG_CONFIG" && \ 12600 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901\"") >&5 12601 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901") 2>&5 12602 ac_status=$? 12603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12604 (exit $ac_status); }; then 12605 12606cat >>confdefs.h <<\_ACEOF 12607#define HAVE_XORG_SERVER_1_0_99_901 1 12608_ACEOF 12609 12610fi 12611 12612if test -n "$PKG_CONFIG" && \ 12613 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\"") >&5 12614 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5 12615 ac_status=$? 12616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12617 (exit $ac_status); }; then 12618 12619cat >>confdefs.h <<\_ACEOF 12620#define HAVE_XORG_SERVER_1_2_0 1 12621_ACEOF 12622 12623fi 12624 12625if test -n "$PKG_CONFIG" && \ 12626 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0\"") >&5 12627 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0") 2>&5 12628 ac_status=$? 12629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12630 (exit $ac_status); }; then 12631 12632cat >>confdefs.h <<\_ACEOF 12633#define HAVE_XORG_SERVER_1_7_0 1 12634_ACEOF 12635 12636fi 12637 12638# Checks for libraries. 12639 12640save_CFLAGS="$CFLAGS" 12641CFLAGS="$XORG_CFLAGS" 12642{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 12643$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 12644if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 12645 $as_echo_n "(cached) " >&6 12646else 12647 cat >conftest.$ac_ext <<_ACEOF 12648/* confdefs.h. */ 12649_ACEOF 12650cat confdefs.h >>conftest.$ac_ext 12651cat >>conftest.$ac_ext <<_ACEOF 12652/* end confdefs.h. */ 12653#include "xorg-server.h" 12654 12655int 12656main () 12657{ 12658#ifndef XSERVER_LIBPCIACCESS 12659 (void) XSERVER_LIBPCIACCESS; 12660#endif 12661 12662 ; 12663 return 0; 12664} 12665_ACEOF 12666rm -f conftest.$ac_objext 12667if { (ac_try="$ac_compile" 12668case "(($ac_try" in 12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12670 *) ac_try_echo=$ac_try;; 12671esac 12672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12673$as_echo "$ac_try_echo") >&5 12674 (eval "$ac_compile") 2>conftest.er1 12675 ac_status=$? 12676 grep -v '^ *+' conftest.er1 >conftest.err 12677 rm -f conftest.er1 12678 cat conftest.err >&5 12679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12680 (exit $ac_status); } && { 12681 test -z "$ac_c_werror_flag" || 12682 test ! -s conftest.err 12683 } && test -s conftest.$ac_objext; then 12684 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 12685else 12686 $as_echo "$as_me: failed program was:" >&5 12687sed 's/^/| /' conftest.$ac_ext >&5 12688 12689 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 12690fi 12691 12692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12693fi 12694{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 12695$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 12696if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 12697 XSERVER_LIBPCIACCESS=yes 12698else 12699 XSERVER_LIBPCIACCESS=no 12700fi 12701 12702CFLAGS="$save_CFLAGS" 12703 12704if test x$XSERVER_LIBPCIACCESS = xyes; then 12705 12706pkg_failed=no 12707{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 12708$as_echo_n "checking for PCIACCESS... " >&6; } 12709 12710if test -n "$PCIACCESS_CFLAGS"; then 12711 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 12712 elif test -n "$PKG_CONFIG"; then 12713 if test -n "$PKG_CONFIG" && \ 12714 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12715 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12716 ac_status=$? 12717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12718 (exit $ac_status); }; then 12719 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 12720else 12721 pkg_failed=yes 12722fi 12723 else 12724 pkg_failed=untried 12725fi 12726if test -n "$PCIACCESS_LIBS"; then 12727 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 12728 elif test -n "$PKG_CONFIG"; then 12729 if test -n "$PKG_CONFIG" && \ 12730 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12731 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12732 ac_status=$? 12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12734 (exit $ac_status); }; then 12735 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 12736else 12737 pkg_failed=yes 12738fi 12739 else 12740 pkg_failed=untried 12741fi 12742 12743 12744 12745if test $pkg_failed = yes; then 12746 12747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12748 _pkg_short_errors_supported=yes 12749else 12750 _pkg_short_errors_supported=no 12751fi 12752 if test $_pkg_short_errors_supported = yes; then 12753 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 12754 else 12755 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 12756 fi 12757 # Put the nasty error message in config.log where it belongs 12758 echo "$PCIACCESS_PKG_ERRORS" >&5 12759 12760 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 12761 12762$PCIACCESS_PKG_ERRORS 12763 12764Consider adjusting the PKG_CONFIG_PATH environment variable if you 12765installed software in a non-standard prefix. 12766 12767Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12768and PCIACCESS_LIBS to avoid the need to call pkg-config. 12769See the pkg-config man page for more details. 12770" >&5 12771$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 12772 12773$PCIACCESS_PKG_ERRORS 12774 12775Consider adjusting the PKG_CONFIG_PATH environment variable if you 12776installed software in a non-standard prefix. 12777 12778Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12779and PCIACCESS_LIBS to avoid the need to call pkg-config. 12780See the pkg-config man page for more details. 12781" >&2;} 12782 { (exit 1); exit 1; }; } 12783elif test $pkg_failed = untried; then 12784 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12786{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12787is in your PATH or set the PKG_CONFIG environment variable to the full 12788path to pkg-config. 12789 12790Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12791and PCIACCESS_LIBS to avoid the need to call pkg-config. 12792See the pkg-config man page for more details. 12793 12794To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12795See \`config.log' for more details." >&5 12796$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12797is in your PATH or set the PKG_CONFIG environment variable to the full 12798path to pkg-config. 12799 12800Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12801and PCIACCESS_LIBS to avoid the need to call pkg-config. 12802See the pkg-config man page for more details. 12803 12804To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12805See \`config.log' for more details." >&2;} 12806 { (exit 1); exit 1; }; }; } 12807else 12808 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 12809 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 12810 { $as_echo "$as_me:$LINENO: result: yes" >&5 12811$as_echo "yes" >&6; } 12812 : 12813fi 12814fi 12815 12816 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 12817 XSERVER_LIBPCIACCESS_TRUE= 12818 XSERVER_LIBPCIACCESS_FALSE='#' 12819else 12820 XSERVER_LIBPCIACCESS_TRUE='#' 12821 XSERVER_LIBPCIACCESS_FALSE= 12822fi 12823 12824 12825 12826 12827DRIVER_NAME=vmware 12828 12829 12830ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 12831 12832cat >confcache <<\_ACEOF 12833# This file is a shell script that caches the results of configure 12834# tests run on this system so they can be shared between configure 12835# scripts and configure runs, see configure's option --config-cache. 12836# It is not useful on other systems. If it contains results you don't 12837# want to keep, you may remove or edit it. 12838# 12839# config.status only pays attention to the cache file if you give it 12840# the --recheck option to rerun configure. 12841# 12842# `ac_cv_env_foo' variables (set or unset) will be overridden when 12843# loading this file, other *unset* `ac_cv_foo' will be assigned the 12844# following values. 12845 12846_ACEOF 12847 12848# The following way of writing the cache mishandles newlines in values, 12849# but we know of no workaround that is simple, portable, and efficient. 12850# So, we kill variables containing newlines. 12851# Ultrix sh set writes to stderr and can't be redirected directly, 12852# and sets the high bit in the cache file unless we assign to the vars. 12853( 12854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12855 eval ac_val=\$$ac_var 12856 case $ac_val in #( 12857 *${as_nl}*) 12858 case $ac_var in #( 12859 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 12860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12861 esac 12862 case $ac_var in #( 12863 _ | IFS | as_nl) ;; #( 12864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12865 *) $as_unset $ac_var ;; 12866 esac ;; 12867 esac 12868 done 12869 12870 (set) 2>&1 | 12871 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12872 *${as_nl}ac_space=\ *) 12873 # `set' does not quote correctly, so add quotes (double-quote 12874 # substitution turns \\\\ into \\, and sed turns \\ into \). 12875 sed -n \ 12876 "s/'/'\\\\''/g; 12877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12878 ;; #( 12879 *) 12880 # `set' quotes correctly as required by POSIX, so do not add quotes. 12881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12882 ;; 12883 esac | 12884 sort 12885) | 12886 sed ' 12887 /^ac_cv_env_/b end 12888 t clear 12889 :clear 12890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12891 t end 12892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12893 :end' >>confcache 12894if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12895 if test -w "$cache_file"; then 12896 test "x$cache_file" != "x/dev/null" && 12897 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 12898$as_echo "$as_me: updating cache $cache_file" >&6;} 12899 cat confcache >$cache_file 12900 else 12901 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 12902$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12903 fi 12904fi 12905rm -f confcache 12906 12907test "x$prefix" = xNONE && prefix=$ac_default_prefix 12908# Let make expand exec_prefix. 12909test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12910 12911DEFS=-DHAVE_CONFIG_H 12912 12913ac_libobjs= 12914ac_ltlibobjs= 12915for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12916 # 1. Remove the extension, and $U if already installed. 12917 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12918 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12919 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12920 # will be set to the directory where LIBOBJS objects are built. 12921 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12922 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 12923done 12924LIBOBJS=$ac_libobjs 12925 12926LTLIBOBJS=$ac_ltlibobjs 12927 12928 12929 if test -n "$EXEEXT"; then 12930 am__EXEEXT_TRUE= 12931 am__EXEEXT_FALSE='#' 12932else 12933 am__EXEEXT_TRUE='#' 12934 am__EXEEXT_FALSE= 12935fi 12936 12937if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12938 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 12939Usually this means the macro was only invoked conditionally." >&5 12940$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 12941Usually this means the macro was only invoked conditionally." >&2;} 12942 { (exit 1); exit 1; }; } 12943fi 12944if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12945 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 12946Usually this means the macro was only invoked conditionally." >&5 12947$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 12948Usually this means the macro was only invoked conditionally." >&2;} 12949 { (exit 1); exit 1; }; } 12950fi 12951if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12952 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 12953Usually this means the macro was only invoked conditionally." >&5 12954$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 12955Usually this means the macro was only invoked conditionally." >&2;} 12956 { (exit 1); exit 1; }; } 12957fi 12958if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 12959 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 12960Usually this means the macro was only invoked conditionally." >&5 12961$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 12962Usually this means the macro was only invoked conditionally." >&2;} 12963 { (exit 1); exit 1; }; } 12964fi 12965 12966: ${CONFIG_STATUS=./config.status} 12967ac_write_fail=0 12968ac_clean_files_save=$ac_clean_files 12969ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12970{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12971$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12972cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12973#! $SHELL 12974# Generated by $as_me. 12975# Run this file to recreate the current configuration. 12976# Compiler output produced by configure, useful for debugging 12977# configure, is in config.log if it exists. 12978 12979debug=false 12980ac_cs_recheck=false 12981ac_cs_silent=false 12982SHELL=\${CONFIG_SHELL-$SHELL} 12983_ACEOF 12984 12985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12986## --------------------- ## 12987## M4sh Initialization. ## 12988## --------------------- ## 12989 12990# Be more Bourne compatible 12991DUALCASE=1; export DUALCASE # for MKS sh 12992if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12993 emulate sh 12994 NULLCMD=: 12995 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12996 # is contrary to our usage. Disable this feature. 12997 alias -g '${1+"$@"}'='"$@"' 12998 setopt NO_GLOB_SUBST 12999else 13000 case `(set -o) 2>/dev/null` in 13001 *posix*) set -o posix ;; 13002esac 13003 13004fi 13005 13006 13007 13008 13009# PATH needs CR 13010# Avoid depending upon Character Ranges. 13011as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13012as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13013as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13014as_cr_digits='0123456789' 13015as_cr_alnum=$as_cr_Letters$as_cr_digits 13016 13017as_nl=' 13018' 13019export as_nl 13020# Printing a long string crashes Solaris 7 /usr/bin/printf. 13021as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13022as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13023as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13024if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13025 as_echo='printf %s\n' 13026 as_echo_n='printf %s' 13027else 13028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13029 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13030 as_echo_n='/usr/ucb/echo -n' 13031 else 13032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13033 as_echo_n_body='eval 13034 arg=$1; 13035 case $arg in 13036 *"$as_nl"*) 13037 expr "X$arg" : "X\\(.*\\)$as_nl"; 13038 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13039 esac; 13040 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13041 ' 13042 export as_echo_n_body 13043 as_echo_n='sh -c $as_echo_n_body as_echo' 13044 fi 13045 export as_echo_body 13046 as_echo='sh -c $as_echo_body as_echo' 13047fi 13048 13049# The user is always right. 13050if test "${PATH_SEPARATOR+set}" != set; then 13051 PATH_SEPARATOR=: 13052 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13053 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13054 PATH_SEPARATOR=';' 13055 } 13056fi 13057 13058# Support unset when possible. 13059if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13060 as_unset=unset 13061else 13062 as_unset=false 13063fi 13064 13065 13066# IFS 13067# We need space, tab and new line, in precisely that order. Quoting is 13068# there to prevent editors from complaining about space-tab. 13069# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13070# splitting by setting IFS to empty value.) 13071IFS=" "" $as_nl" 13072 13073# Find who we are. Look in the path if we contain no directory separator. 13074case $0 in 13075 *[\\/]* ) as_myself=$0 ;; 13076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13077for as_dir in $PATH 13078do 13079 IFS=$as_save_IFS 13080 test -z "$as_dir" && as_dir=. 13081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13082done 13083IFS=$as_save_IFS 13084 13085 ;; 13086esac 13087# We did not find ourselves, most probably we were run as `sh COMMAND' 13088# in which case we are not to be found in the path. 13089if test "x$as_myself" = x; then 13090 as_myself=$0 13091fi 13092if test ! -f "$as_myself"; then 13093 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13094 { (exit 1); exit 1; } 13095fi 13096 13097# Work around bugs in pre-3.0 UWIN ksh. 13098for as_var in ENV MAIL MAILPATH 13099do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13100done 13101PS1='$ ' 13102PS2='> ' 13103PS4='+ ' 13104 13105# NLS nuisances. 13106LC_ALL=C 13107export LC_ALL 13108LANGUAGE=C 13109export LANGUAGE 13110 13111# Required to use basename. 13112if expr a : '\(a\)' >/dev/null 2>&1 && 13113 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13114 as_expr=expr 13115else 13116 as_expr=false 13117fi 13118 13119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13120 as_basename=basename 13121else 13122 as_basename=false 13123fi 13124 13125 13126# Name of the executable. 13127as_me=`$as_basename -- "$0" || 13128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13129 X"$0" : 'X\(//\)$' \| \ 13130 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13131$as_echo X/"$0" | 13132 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13133 s//\1/ 13134 q 13135 } 13136 /^X\/\(\/\/\)$/{ 13137 s//\1/ 13138 q 13139 } 13140 /^X\/\(\/\).*/{ 13141 s//\1/ 13142 q 13143 } 13144 s/.*/./; q'` 13145 13146# CDPATH. 13147$as_unset CDPATH 13148 13149 13150 13151 as_lineno_1=$LINENO 13152 as_lineno_2=$LINENO 13153 test "x$as_lineno_1" != "x$as_lineno_2" && 13154 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13155 13156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13157 # uniformly replaced by the line number. The first 'sed' inserts a 13158 # line-number line after each line using $LINENO; the second 'sed' 13159 # does the real work. The second script uses 'N' to pair each 13160 # line-number line with the line containing $LINENO, and appends 13161 # trailing '-' during substitution so that $LINENO is not a special 13162 # case at line end. 13163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13164 # scripts with optimization help from Paolo Bonzini. Blame Lee 13165 # E. McMahon (1931-1989) for sed's syntax. :-) 13166 sed -n ' 13167 p 13168 /[$]LINENO/= 13169 ' <$as_myself | 13170 sed ' 13171 s/[$]LINENO.*/&-/ 13172 t lineno 13173 b 13174 :lineno 13175 N 13176 :loop 13177 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13178 t loop 13179 s/-\n.*// 13180 ' >$as_me.lineno && 13181 chmod +x "$as_me.lineno" || 13182 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13183 { (exit 1); exit 1; }; } 13184 13185 # Don't try to exec as it changes $[0], causing all sort of problems 13186 # (the dirname of $[0] is not the place where we might find the 13187 # original and so on. Autoconf is especially sensitive to this). 13188 . "./$as_me.lineno" 13189 # Exit status is that of the last command. 13190 exit 13191} 13192 13193 13194if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13195 as_dirname=dirname 13196else 13197 as_dirname=false 13198fi 13199 13200ECHO_C= ECHO_N= ECHO_T= 13201case `echo -n x` in 13202-n*) 13203 case `echo 'x\c'` in 13204 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13205 *) ECHO_C='\c';; 13206 esac;; 13207*) 13208 ECHO_N='-n';; 13209esac 13210if expr a : '\(a\)' >/dev/null 2>&1 && 13211 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13212 as_expr=expr 13213else 13214 as_expr=false 13215fi 13216 13217rm -f conf$$ conf$$.exe conf$$.file 13218if test -d conf$$.dir; then 13219 rm -f conf$$.dir/conf$$.file 13220else 13221 rm -f conf$$.dir 13222 mkdir conf$$.dir 2>/dev/null 13223fi 13224if (echo >conf$$.file) 2>/dev/null; then 13225 if ln -s conf$$.file conf$$ 2>/dev/null; then 13226 as_ln_s='ln -s' 13227 # ... but there are two gotchas: 13228 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13229 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13230 # In both cases, we have to default to `cp -p'. 13231 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13232 as_ln_s='cp -p' 13233 elif ln conf$$.file conf$$ 2>/dev/null; then 13234 as_ln_s=ln 13235 else 13236 as_ln_s='cp -p' 13237 fi 13238else 13239 as_ln_s='cp -p' 13240fi 13241rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13242rmdir conf$$.dir 2>/dev/null 13243 13244if mkdir -p . 2>/dev/null; then 13245 as_mkdir_p=: 13246else 13247 test -d ./-p && rmdir ./-p 13248 as_mkdir_p=false 13249fi 13250 13251if test -x / >/dev/null 2>&1; then 13252 as_test_x='test -x' 13253else 13254 if ls -dL / >/dev/null 2>&1; then 13255 as_ls_L_option=L 13256 else 13257 as_ls_L_option= 13258 fi 13259 as_test_x=' 13260 eval sh -c '\'' 13261 if test -d "$1"; then 13262 test -d "$1/."; 13263 else 13264 case $1 in 13265 -*)set "./$1";; 13266 esac; 13267 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13268 ???[sx]*):;;*)false;;esac;fi 13269 '\'' sh 13270 ' 13271fi 13272as_executable_p=$as_test_x 13273 13274# Sed expression to map a string onto a valid CPP name. 13275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13276 13277# Sed expression to map a string onto a valid variable name. 13278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13279 13280 13281exec 6>&1 13282 13283# Save the log message, to keep $[0] and so on meaningful, and to 13284# report actual input values of CONFIG_FILES etc. instead of their 13285# values after options handling. 13286ac_log=" 13287This file was extended by xf86-video-vmware $as_me 11.0.2, which was 13288generated by GNU Autoconf 2.63. Invocation command line was 13289 13290 CONFIG_FILES = $CONFIG_FILES 13291 CONFIG_HEADERS = $CONFIG_HEADERS 13292 CONFIG_LINKS = $CONFIG_LINKS 13293 CONFIG_COMMANDS = $CONFIG_COMMANDS 13294 $ $0 $@ 13295 13296on `(hostname || uname -n) 2>/dev/null | sed 1q` 13297" 13298 13299_ACEOF 13300 13301case $ac_config_files in *" 13302"*) set x $ac_config_files; shift; ac_config_files=$*;; 13303esac 13304 13305case $ac_config_headers in *" 13306"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13307esac 13308 13309 13310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13311# Files that config.status was made for. 13312config_files="$ac_config_files" 13313config_headers="$ac_config_headers" 13314config_commands="$ac_config_commands" 13315 13316_ACEOF 13317 13318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13319ac_cs_usage="\ 13320\`$as_me' instantiates files from templates according to the 13321current configuration. 13322 13323Usage: $0 [OPTION]... [FILE]... 13324 13325 -h, --help print this help, then exit 13326 -V, --version print version number and configuration settings, then exit 13327 -q, --quiet, --silent 13328 do not print progress messages 13329 -d, --debug don't remove temporary files 13330 --recheck update $as_me by reconfiguring in the same conditions 13331 --file=FILE[:TEMPLATE] 13332 instantiate the configuration file FILE 13333 --header=FILE[:TEMPLATE] 13334 instantiate the configuration header FILE 13335 13336Configuration files: 13337$config_files 13338 13339Configuration headers: 13340$config_headers 13341 13342Configuration commands: 13343$config_commands 13344 13345Report bugs to <bug-autoconf@gnu.org>." 13346 13347_ACEOF 13348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13349ac_cs_version="\\ 13350xf86-video-vmware config.status 11.0.2 13351configured by $0, generated by GNU Autoconf 2.63, 13352 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13353 13354Copyright (C) 2008 Free Software Foundation, Inc. 13355This config.status script is free software; the Free Software Foundation 13356gives unlimited permission to copy, distribute and modify it." 13357 13358ac_pwd='$ac_pwd' 13359srcdir='$srcdir' 13360INSTALL='$INSTALL' 13361MKDIR_P='$MKDIR_P' 13362AWK='$AWK' 13363test -n "\$AWK" || AWK=awk 13364_ACEOF 13365 13366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13367# The default lists apply if the user does not specify any file. 13368ac_need_defaults=: 13369while test $# != 0 13370do 13371 case $1 in 13372 --*=*) 13373 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13374 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13375 ac_shift=: 13376 ;; 13377 *) 13378 ac_option=$1 13379 ac_optarg=$2 13380 ac_shift=shift 13381 ;; 13382 esac 13383 13384 case $ac_option in 13385 # Handling of the options. 13386 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13387 ac_cs_recheck=: ;; 13388 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13389 $as_echo "$ac_cs_version"; exit ;; 13390 --debug | --debu | --deb | --de | --d | -d ) 13391 debug=: ;; 13392 --file | --fil | --fi | --f ) 13393 $ac_shift 13394 case $ac_optarg in 13395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13396 esac 13397 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13398 ac_need_defaults=false;; 13399 --header | --heade | --head | --hea ) 13400 $ac_shift 13401 case $ac_optarg in 13402 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13403 esac 13404 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13405 ac_need_defaults=false;; 13406 --he | --h) 13407 # Conflict between --help and --header 13408 { $as_echo "$as_me: error: ambiguous option: $1 13409Try \`$0 --help' for more information." >&2 13410 { (exit 1); exit 1; }; };; 13411 --help | --hel | -h ) 13412 $as_echo "$ac_cs_usage"; exit ;; 13413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13414 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13415 ac_cs_silent=: ;; 13416 13417 # This is an error. 13418 -*) { $as_echo "$as_me: error: unrecognized option: $1 13419Try \`$0 --help' for more information." >&2 13420 { (exit 1); exit 1; }; } ;; 13421 13422 *) ac_config_targets="$ac_config_targets $1" 13423 ac_need_defaults=false ;; 13424 13425 esac 13426 shift 13427done 13428 13429ac_configure_extra_args= 13430 13431if $ac_cs_silent; then 13432 exec 6>/dev/null 13433 ac_configure_extra_args="$ac_configure_extra_args --silent" 13434fi 13435 13436_ACEOF 13437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13438if \$ac_cs_recheck; then 13439 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13440 shift 13441 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13442 CONFIG_SHELL='$SHELL' 13443 export CONFIG_SHELL 13444 exec "\$@" 13445fi 13446 13447_ACEOF 13448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13449exec 5>>config.log 13450{ 13451 echo 13452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13453## Running $as_me. ## 13454_ASBOX 13455 $as_echo "$ac_log" 13456} >&5 13457 13458_ACEOF 13459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13460# 13461# INIT-COMMANDS 13462# 13463AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13464 13465 13466# The HP-UX ksh and POSIX shell print the target directory to stdout 13467# if CDPATH is set. 13468(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13469 13470sed_quote_subst='$sed_quote_subst' 13471double_quote_subst='$double_quote_subst' 13472delay_variable_subst='$delay_variable_subst' 13473enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13474macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13475macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13476enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13477pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13478enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13479host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13480host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13481host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13482build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13483build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13484build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13485SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13486Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13487GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13488EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13489FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13490LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13491NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13492LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13493max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13494ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13495exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13496lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13497lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13498lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13499reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13500reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13501OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13502deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13503file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13504AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13505AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13506STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13507RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13508old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13509old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13510old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13511CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13512CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13513compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13514GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13515lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13516lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13517lt_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"`' 13518lt_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"`' 13519objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13520SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13521ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13522MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13523lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13524lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13525lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13526lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13527lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13528need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13529DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13530NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13531LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13532OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13533OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13534libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13535shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13536extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13537archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13538enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13539export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13540whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13541compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13542old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13543old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13544archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13545archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13546module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13547module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13548with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13549allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13550no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13551hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13552hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13553hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13554hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13555hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13556hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13557hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13558hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13559inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13560link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13561fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13562always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13563export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13564exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13565include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13566prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13567file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13568variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13569need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13570need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13571version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13572runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13573shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13574shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13575libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13576library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13577soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13578postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13579postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13580finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13581finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13582hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13583sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13584sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13585hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13586enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13587enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13588enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13589old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13590striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13591 13592LTCC='$LTCC' 13593LTCFLAGS='$LTCFLAGS' 13594compiler='$compiler_DEFAULT' 13595 13596# Quote evaled strings. 13597for var in SED \ 13598GREP \ 13599EGREP \ 13600FGREP \ 13601LD \ 13602NM \ 13603LN_S \ 13604lt_SP2NL \ 13605lt_NL2SP \ 13606reload_flag \ 13607OBJDUMP \ 13608deplibs_check_method \ 13609file_magic_cmd \ 13610AR \ 13611AR_FLAGS \ 13612STRIP \ 13613RANLIB \ 13614CC \ 13615CFLAGS \ 13616compiler \ 13617lt_cv_sys_global_symbol_pipe \ 13618lt_cv_sys_global_symbol_to_cdecl \ 13619lt_cv_sys_global_symbol_to_c_name_address \ 13620lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13621SHELL \ 13622ECHO \ 13623lt_prog_compiler_no_builtin_flag \ 13624lt_prog_compiler_wl \ 13625lt_prog_compiler_pic \ 13626lt_prog_compiler_static \ 13627lt_cv_prog_compiler_c_o \ 13628need_locks \ 13629DSYMUTIL \ 13630NMEDIT \ 13631LIPO \ 13632OTOOL \ 13633OTOOL64 \ 13634shrext_cmds \ 13635export_dynamic_flag_spec \ 13636whole_archive_flag_spec \ 13637compiler_needs_object \ 13638with_gnu_ld \ 13639allow_undefined_flag \ 13640no_undefined_flag \ 13641hardcode_libdir_flag_spec \ 13642hardcode_libdir_flag_spec_ld \ 13643hardcode_libdir_separator \ 13644fix_srcfile_path \ 13645exclude_expsyms \ 13646include_expsyms \ 13647file_list_spec \ 13648variables_saved_for_relink \ 13649libname_spec \ 13650library_names_spec \ 13651soname_spec \ 13652finish_eval \ 13653old_striplib \ 13654striplib; do 13655 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13656 *[\\\\\\\`\\"\\\$]*) 13657 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13658 ;; 13659 *) 13660 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13661 ;; 13662 esac 13663done 13664 13665# Double-quote double-evaled strings. 13666for var in reload_cmds \ 13667old_postinstall_cmds \ 13668old_postuninstall_cmds \ 13669old_archive_cmds \ 13670extract_expsyms_cmds \ 13671old_archive_from_new_cmds \ 13672old_archive_from_expsyms_cmds \ 13673archive_cmds \ 13674archive_expsym_cmds \ 13675module_cmds \ 13676module_expsym_cmds \ 13677export_symbols_cmds \ 13678prelink_cmds \ 13679postinstall_cmds \ 13680postuninstall_cmds \ 13681finish_cmds \ 13682sys_lib_search_path_spec \ 13683sys_lib_dlsearch_path_spec; do 13684 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13685 *[\\\\\\\`\\"\\\$]*) 13686 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13687 ;; 13688 *) 13689 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13690 ;; 13691 esac 13692done 13693 13694# Fix-up fallback echo if it was mangled by the above quoting rules. 13695case \$lt_ECHO in 13696*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13697 ;; 13698esac 13699 13700ac_aux_dir='$ac_aux_dir' 13701xsi_shell='$xsi_shell' 13702lt_shell_append='$lt_shell_append' 13703 13704# See if we are running on zsh, and set the options which allow our 13705# commands through without removal of \ escapes INIT. 13706if test -n "\${ZSH_VERSION+set}" ; then 13707 setopt NO_GLOB_SUBST 13708fi 13709 13710 13711 PACKAGE='$PACKAGE' 13712 VERSION='$VERSION' 13713 TIMESTAMP='$TIMESTAMP' 13714 RM='$RM' 13715 ofile='$ofile' 13716 13717 13718 13719 13720_ACEOF 13721 13722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13723 13724# Handling of arguments. 13725for ac_config_target in $ac_config_targets 13726do 13727 case $ac_config_target in 13728 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13729 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13730 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13731 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13732 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13733 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13734 13735 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13736$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13737 { (exit 1); exit 1; }; };; 13738 esac 13739done 13740 13741 13742# If the user did not use the arguments to specify the items to instantiate, 13743# then the envvar interface is used. Set only those that are not. 13744# We use the long form for the default assignment because of an extremely 13745# bizarre bug on SunOS 4.1.3. 13746if $ac_need_defaults; then 13747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13749 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13750fi 13751 13752# Have a temporary directory for convenience. Make it in the build tree 13753# simply because there is no reason against having it here, and in addition, 13754# creating and moving files from /tmp can sometimes cause problems. 13755# Hook for its removal unless debugging. 13756# Note that there is a small window in which the directory will not be cleaned: 13757# after its creation but before its name has been assigned to `$tmp'. 13758$debug || 13759{ 13760 tmp= 13761 trap 'exit_status=$? 13762 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13763' 0 13764 trap '{ (exit 1); exit 1; }' 1 2 13 15 13765} 13766# Create a (secure) tmp directory for tmp files. 13767 13768{ 13769 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13770 test -n "$tmp" && test -d "$tmp" 13771} || 13772{ 13773 tmp=./conf$$-$RANDOM 13774 (umask 077 && mkdir "$tmp") 13775} || 13776{ 13777 $as_echo "$as_me: cannot create a temporary directory in ." >&2 13778 { (exit 1); exit 1; } 13779} 13780 13781# Set up the scripts for CONFIG_FILES section. 13782# No need to generate them if there are no CONFIG_FILES. 13783# This happens for instance with `./config.status config.h'. 13784if test -n "$CONFIG_FILES"; then 13785 13786 13787ac_cr=' 13788' 13789ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13790if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13791 ac_cs_awk_cr='\\r' 13792else 13793 ac_cs_awk_cr=$ac_cr 13794fi 13795 13796echo 'BEGIN {' >"$tmp/subs1.awk" && 13797_ACEOF 13798 13799 13800{ 13801 echo "cat >conf$$subs.awk <<_ACEOF" && 13802 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13803 echo "_ACEOF" 13804} >conf$$subs.sh || 13805 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13806$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13807 { (exit 1); exit 1; }; } 13808ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13809ac_delim='%!_!# ' 13810for ac_last_try in false false false false false :; do 13811 . ./conf$$subs.sh || 13812 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13813$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13814 { (exit 1); exit 1; }; } 13815 13816 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13817 if test $ac_delim_n = $ac_delim_num; then 13818 break 13819 elif $ac_last_try; then 13820 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13821$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13822 { (exit 1); exit 1; }; } 13823 else 13824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13825 fi 13826done 13827rm -f conf$$subs.sh 13828 13829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13830cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13831_ACEOF 13832sed -n ' 13833h 13834s/^/S["/; s/!.*/"]=/ 13835p 13836g 13837s/^[^!]*!// 13838:repl 13839t repl 13840s/'"$ac_delim"'$// 13841t delim 13842:nl 13843h 13844s/\(.\{148\}\).*/\1/ 13845t more1 13846s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13847p 13848n 13849b repl 13850:more1 13851s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13852p 13853g 13854s/.\{148\}// 13855t nl 13856:delim 13857h 13858s/\(.\{148\}\).*/\1/ 13859t more2 13860s/["\\]/\\&/g; s/^/"/; s/$/"/ 13861p 13862b 13863:more2 13864s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13865p 13866g 13867s/.\{148\}// 13868t delim 13869' <conf$$subs.awk | sed ' 13870/^[^""]/{ 13871 N 13872 s/\n// 13873} 13874' >>$CONFIG_STATUS || ac_write_fail=1 13875rm -f conf$$subs.awk 13876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13877_ACAWK 13878cat >>"\$tmp/subs1.awk" <<_ACAWK && 13879 for (key in S) S_is_set[key] = 1 13880 FS = "" 13881 13882} 13883{ 13884 line = $ 0 13885 nfields = split(line, field, "@") 13886 substed = 0 13887 len = length(field[1]) 13888 for (i = 2; i < nfields; i++) { 13889 key = field[i] 13890 keylen = length(key) 13891 if (S_is_set[key]) { 13892 value = S[key] 13893 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13894 len += length(value) + length(field[++i]) 13895 substed = 1 13896 } else 13897 len += 1 + keylen 13898 } 13899 13900 print line 13901} 13902 13903_ACAWK 13904_ACEOF 13905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13906if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13907 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13908else 13909 cat 13910fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13911 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 13912$as_echo "$as_me: error: could not setup config files machinery" >&2;} 13913 { (exit 1); exit 1; }; } 13914_ACEOF 13915 13916# VPATH may cause trouble with some makes, so we remove $(srcdir), 13917# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13918# trailing colons and then remove the whole line if VPATH becomes empty 13919# (actually we leave an empty line to preserve line numbers). 13920if test "x$srcdir" = x.; then 13921 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13922s/:*\$(srcdir):*/:/ 13923s/:*\${srcdir}:*/:/ 13924s/:*@srcdir@:*/:/ 13925s/^\([^=]*=[ ]*\):*/\1/ 13926s/:*$// 13927s/^[^=]*=[ ]*$// 13928}' 13929fi 13930 13931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13932fi # test -n "$CONFIG_FILES" 13933 13934# Set up the scripts for CONFIG_HEADERS section. 13935# No need to generate them if there are no CONFIG_HEADERS. 13936# This happens for instance with `./config.status Makefile'. 13937if test -n "$CONFIG_HEADERS"; then 13938cat >"$tmp/defines.awk" <<\_ACAWK || 13939BEGIN { 13940_ACEOF 13941 13942# Transform confdefs.h into an awk script `defines.awk', embedded as 13943# here-document in config.status, that substitutes the proper values into 13944# config.h.in to produce config.h. 13945 13946# Create a delimiter string that does not exist in confdefs.h, to ease 13947# handling of long lines. 13948ac_delim='%!_!# ' 13949for ac_last_try in false false :; do 13950 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13951 if test -z "$ac_t"; then 13952 break 13953 elif $ac_last_try; then 13954 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 13955$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 13956 { (exit 1); exit 1; }; } 13957 else 13958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13959 fi 13960done 13961 13962# For the awk script, D is an array of macro values keyed by name, 13963# likewise P contains macro parameters if any. Preserve backslash 13964# newline sequences. 13965 13966ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13967sed -n ' 13968s/.\{148\}/&'"$ac_delim"'/g 13969t rset 13970:rset 13971s/^[ ]*#[ ]*define[ ][ ]*/ / 13972t def 13973d 13974:def 13975s/\\$// 13976t bsnl 13977s/["\\]/\\&/g 13978s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13979D["\1"]=" \3"/p 13980s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13981d 13982:bsnl 13983s/["\\]/\\&/g 13984s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13985D["\1"]=" \3\\\\\\n"\\/p 13986t cont 13987s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13988t cont 13989d 13990:cont 13991n 13992s/.\{148\}/&'"$ac_delim"'/g 13993t clear 13994:clear 13995s/\\$// 13996t bsnlc 13997s/["\\]/\\&/g; s/^/"/; s/$/"/p 13998d 13999:bsnlc 14000s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14001b cont 14002' <confdefs.h | sed ' 14003s/'"$ac_delim"'/"\\\ 14004"/g' >>$CONFIG_STATUS || ac_write_fail=1 14005 14006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14007 for (key in D) D_is_set[key] = 1 14008 FS = "" 14009} 14010/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14011 line = \$ 0 14012 split(line, arg, " ") 14013 if (arg[1] == "#") { 14014 defundef = arg[2] 14015 mac1 = arg[3] 14016 } else { 14017 defundef = substr(arg[1], 2) 14018 mac1 = arg[2] 14019 } 14020 split(mac1, mac2, "(") #) 14021 macro = mac2[1] 14022 prefix = substr(line, 1, index(line, defundef) - 1) 14023 if (D_is_set[macro]) { 14024 # Preserve the white space surrounding the "#". 14025 print prefix "define", macro P[macro] D[macro] 14026 next 14027 } else { 14028 # Replace #undef with comments. This is necessary, for example, 14029 # in the case of _POSIX_SOURCE, which is predefined and required 14030 # on some systems where configure will not decide to define it. 14031 if (defundef == "undef") { 14032 print "/*", prefix defundef, macro, "*/" 14033 next 14034 } 14035 } 14036} 14037{ print } 14038_ACAWK 14039_ACEOF 14040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14041 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14042$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14043 { (exit 1); exit 1; }; } 14044fi # test -n "$CONFIG_HEADERS" 14045 14046 14047eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14048shift 14049for ac_tag 14050do 14051 case $ac_tag in 14052 :[FHLC]) ac_mode=$ac_tag; continue;; 14053 esac 14054 case $ac_mode$ac_tag in 14055 :[FHL]*:*);; 14056 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14057$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14058 { (exit 1); exit 1; }; };; 14059 :[FH]-) ac_tag=-:-;; 14060 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14061 esac 14062 ac_save_IFS=$IFS 14063 IFS=: 14064 set x $ac_tag 14065 IFS=$ac_save_IFS 14066 shift 14067 ac_file=$1 14068 shift 14069 14070 case $ac_mode in 14071 :L) ac_source=$1;; 14072 :[FH]) 14073 ac_file_inputs= 14074 for ac_f 14075 do 14076 case $ac_f in 14077 -) ac_f="$tmp/stdin";; 14078 *) # Look for the file first in the build tree, then in the source tree 14079 # (if the path is not absolute). The absolute path cannot be DOS-style, 14080 # because $ac_f cannot contain `:'. 14081 test -f "$ac_f" || 14082 case $ac_f in 14083 [\\/$]*) false;; 14084 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14085 esac || 14086 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14087$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14088 { (exit 1); exit 1; }; };; 14089 esac 14090 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14091 ac_file_inputs="$ac_file_inputs '$ac_f'" 14092 done 14093 14094 # Let's still pretend it is `configure' which instantiates (i.e., don't 14095 # use $as_me), people would be surprised to read: 14096 # /* config.h. Generated by config.status. */ 14097 configure_input='Generated from '` 14098 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14099 `' by configure.' 14100 if test x"$ac_file" != x-; then 14101 configure_input="$ac_file. $configure_input" 14102 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14103$as_echo "$as_me: creating $ac_file" >&6;} 14104 fi 14105 # Neutralize special characters interpreted by sed in replacement strings. 14106 case $configure_input in #( 14107 *\&* | *\|* | *\\* ) 14108 ac_sed_conf_input=`$as_echo "$configure_input" | 14109 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14110 *) ac_sed_conf_input=$configure_input;; 14111 esac 14112 14113 case $ac_tag in 14114 *:-:* | *:-) cat >"$tmp/stdin" \ 14115 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14116$as_echo "$as_me: error: could not create $ac_file" >&2;} 14117 { (exit 1); exit 1; }; } ;; 14118 esac 14119 ;; 14120 esac 14121 14122 ac_dir=`$as_dirname -- "$ac_file" || 14123$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14124 X"$ac_file" : 'X\(//\)[^/]' \| \ 14125 X"$ac_file" : 'X\(//\)$' \| \ 14126 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14127$as_echo X"$ac_file" | 14128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14129 s//\1/ 14130 q 14131 } 14132 /^X\(\/\/\)[^/].*/{ 14133 s//\1/ 14134 q 14135 } 14136 /^X\(\/\/\)$/{ 14137 s//\1/ 14138 q 14139 } 14140 /^X\(\/\).*/{ 14141 s//\1/ 14142 q 14143 } 14144 s/.*/./; q'` 14145 { as_dir="$ac_dir" 14146 case $as_dir in #( 14147 -*) as_dir=./$as_dir;; 14148 esac 14149 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14150 as_dirs= 14151 while :; do 14152 case $as_dir in #( 14153 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14154 *) as_qdir=$as_dir;; 14155 esac 14156 as_dirs="'$as_qdir' $as_dirs" 14157 as_dir=`$as_dirname -- "$as_dir" || 14158$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14159 X"$as_dir" : 'X\(//\)[^/]' \| \ 14160 X"$as_dir" : 'X\(//\)$' \| \ 14161 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14162$as_echo X"$as_dir" | 14163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14164 s//\1/ 14165 q 14166 } 14167 /^X\(\/\/\)[^/].*/{ 14168 s//\1/ 14169 q 14170 } 14171 /^X\(\/\/\)$/{ 14172 s//\1/ 14173 q 14174 } 14175 /^X\(\/\).*/{ 14176 s//\1/ 14177 q 14178 } 14179 s/.*/./; q'` 14180 test -d "$as_dir" && break 14181 done 14182 test -z "$as_dirs" || eval "mkdir $as_dirs" 14183 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14184$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14185 { (exit 1); exit 1; }; }; } 14186 ac_builddir=. 14187 14188case "$ac_dir" in 14189.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14190*) 14191 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14192 # A ".." for each directory in $ac_dir_suffix. 14193 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14194 case $ac_top_builddir_sub in 14195 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14196 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14197 esac ;; 14198esac 14199ac_abs_top_builddir=$ac_pwd 14200ac_abs_builddir=$ac_pwd$ac_dir_suffix 14201# for backward compatibility: 14202ac_top_builddir=$ac_top_build_prefix 14203 14204case $srcdir in 14205 .) # We are building in place. 14206 ac_srcdir=. 14207 ac_top_srcdir=$ac_top_builddir_sub 14208 ac_abs_top_srcdir=$ac_pwd ;; 14209 [\\/]* | ?:[\\/]* ) # Absolute name. 14210 ac_srcdir=$srcdir$ac_dir_suffix; 14211 ac_top_srcdir=$srcdir 14212 ac_abs_top_srcdir=$srcdir ;; 14213 *) # Relative name. 14214 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14215 ac_top_srcdir=$ac_top_build_prefix$srcdir 14216 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14217esac 14218ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14219 14220 14221 case $ac_mode in 14222 :F) 14223 # 14224 # CONFIG_FILE 14225 # 14226 14227 case $INSTALL in 14228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14229 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14230 esac 14231 ac_MKDIR_P=$MKDIR_P 14232 case $MKDIR_P in 14233 [\\/$]* | ?:[\\/]* ) ;; 14234 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14235 esac 14236_ACEOF 14237 14238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14239# If the template does not know about datarootdir, expand it. 14240# FIXME: This hack should be removed a few years after 2.60. 14241ac_datarootdir_hack=; ac_datarootdir_seen= 14242 14243ac_sed_dataroot=' 14244/datarootdir/ { 14245 p 14246 q 14247} 14248/@datadir@/p 14249/@docdir@/p 14250/@infodir@/p 14251/@localedir@/p 14252/@mandir@/p 14253' 14254case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14255*datarootdir*) ac_datarootdir_seen=yes;; 14256*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14257 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14258$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14259_ACEOF 14260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14261 ac_datarootdir_hack=' 14262 s&@datadir@&$datadir&g 14263 s&@docdir@&$docdir&g 14264 s&@infodir@&$infodir&g 14265 s&@localedir@&$localedir&g 14266 s&@mandir@&$mandir&g 14267 s&\\\${datarootdir}&$datarootdir&g' ;; 14268esac 14269_ACEOF 14270 14271# Neutralize VPATH when `$srcdir' = `.'. 14272# Shell code in configure.ac might set extrasub. 14273# FIXME: do we really want to maintain this feature? 14274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14275ac_sed_extra="$ac_vpsub 14276$extrasub 14277_ACEOF 14278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14279:t 14280/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14281s|@configure_input@|$ac_sed_conf_input|;t t 14282s&@top_builddir@&$ac_top_builddir_sub&;t t 14283s&@top_build_prefix@&$ac_top_build_prefix&;t t 14284s&@srcdir@&$ac_srcdir&;t t 14285s&@abs_srcdir@&$ac_abs_srcdir&;t t 14286s&@top_srcdir@&$ac_top_srcdir&;t t 14287s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14288s&@builddir@&$ac_builddir&;t t 14289s&@abs_builddir@&$ac_abs_builddir&;t t 14290s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14291s&@INSTALL@&$ac_INSTALL&;t t 14292s&@MKDIR_P@&$ac_MKDIR_P&;t t 14293$ac_datarootdir_hack 14294" 14295eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14296 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14297$as_echo "$as_me: error: could not create $ac_file" >&2;} 14298 { (exit 1); exit 1; }; } 14299 14300test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14301 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14302 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14303 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14304which seems to be undefined. Please make sure it is defined." >&5 14305$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14306which seems to be undefined. Please make sure it is defined." >&2;} 14307 14308 rm -f "$tmp/stdin" 14309 case $ac_file in 14310 -) cat "$tmp/out" && rm -f "$tmp/out";; 14311 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14312 esac \ 14313 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14314$as_echo "$as_me: error: could not create $ac_file" >&2;} 14315 { (exit 1); exit 1; }; } 14316 ;; 14317 :H) 14318 # 14319 # CONFIG_HEADER 14320 # 14321 if test x"$ac_file" != x-; then 14322 { 14323 $as_echo "/* $configure_input */" \ 14324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14325 } >"$tmp/config.h" \ 14326 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14327$as_echo "$as_me: error: could not create $ac_file" >&2;} 14328 { (exit 1); exit 1; }; } 14329 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14330 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14331$as_echo "$as_me: $ac_file is unchanged" >&6;} 14332 else 14333 rm -f "$ac_file" 14334 mv "$tmp/config.h" "$ac_file" \ 14335 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14336$as_echo "$as_me: error: could not create $ac_file" >&2;} 14337 { (exit 1); exit 1; }; } 14338 fi 14339 else 14340 $as_echo "/* $configure_input */" \ 14341 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14342 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14343$as_echo "$as_me: error: could not create -" >&2;} 14344 { (exit 1); exit 1; }; } 14345 fi 14346# Compute "$ac_file"'s index in $config_headers. 14347_am_arg="$ac_file" 14348_am_stamp_count=1 14349for _am_header in $config_headers :; do 14350 case $_am_header in 14351 $_am_arg | $_am_arg:* ) 14352 break ;; 14353 * ) 14354 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14355 esac 14356done 14357echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14358$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14359 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14360 X"$_am_arg" : 'X\(//\)$' \| \ 14361 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14362$as_echo X"$_am_arg" | 14363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14364 s//\1/ 14365 q 14366 } 14367 /^X\(\/\/\)[^/].*/{ 14368 s//\1/ 14369 q 14370 } 14371 /^X\(\/\/\)$/{ 14372 s//\1/ 14373 q 14374 } 14375 /^X\(\/\).*/{ 14376 s//\1/ 14377 q 14378 } 14379 s/.*/./; q'`/stamp-h$_am_stamp_count 14380 ;; 14381 14382 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14383$as_echo "$as_me: executing $ac_file commands" >&6;} 14384 ;; 14385 esac 14386 14387 14388 case $ac_file$ac_mode in 14389 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14390 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14391 # are listed without --file. Let's play safe and only enable the eval 14392 # if we detect the quoting. 14393 case $CONFIG_FILES in 14394 *\'*) eval set x "$CONFIG_FILES" ;; 14395 *) set x $CONFIG_FILES ;; 14396 esac 14397 shift 14398 for mf 14399 do 14400 # Strip MF so we end up with the name of the file. 14401 mf=`echo "$mf" | sed -e 's/:.*$//'` 14402 # Check whether this is an Automake generated Makefile or not. 14403 # We used to match only the files named `Makefile.in', but 14404 # some people rename them; so instead we look at the file content. 14405 # Grep'ing the first line is not enough: some people post-process 14406 # each Makefile.in and add a new line on top of each file to say so. 14407 # Grep'ing the whole file is not good either: AIX grep has a line 14408 # limit of 2048, but all sed's we know have understand at least 4000. 14409 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14410 dirpart=`$as_dirname -- "$mf" || 14411$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14412 X"$mf" : 'X\(//\)[^/]' \| \ 14413 X"$mf" : 'X\(//\)$' \| \ 14414 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14415$as_echo X"$mf" | 14416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14417 s//\1/ 14418 q 14419 } 14420 /^X\(\/\/\)[^/].*/{ 14421 s//\1/ 14422 q 14423 } 14424 /^X\(\/\/\)$/{ 14425 s//\1/ 14426 q 14427 } 14428 /^X\(\/\).*/{ 14429 s//\1/ 14430 q 14431 } 14432 s/.*/./; q'` 14433 else 14434 continue 14435 fi 14436 # Extract the definition of DEPDIR, am__include, and am__quote 14437 # from the Makefile without running `make'. 14438 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14439 test -z "$DEPDIR" && continue 14440 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14441 test -z "am__include" && continue 14442 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14443 # When using ansi2knr, U may be empty or an underscore; expand it 14444 U=`sed -n 's/^U = //p' < "$mf"` 14445 # Find all dependency output files, they are included files with 14446 # $(DEPDIR) in their names. We invoke sed twice because it is the 14447 # simplest approach to changing $(DEPDIR) to its actual value in the 14448 # expansion. 14449 for file in `sed -n " 14450 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14451 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14452 # Make sure the directory exists. 14453 test -f "$dirpart/$file" && continue 14454 fdir=`$as_dirname -- "$file" || 14455$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14456 X"$file" : 'X\(//\)[^/]' \| \ 14457 X"$file" : 'X\(//\)$' \| \ 14458 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14459$as_echo X"$file" | 14460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14461 s//\1/ 14462 q 14463 } 14464 /^X\(\/\/\)[^/].*/{ 14465 s//\1/ 14466 q 14467 } 14468 /^X\(\/\/\)$/{ 14469 s//\1/ 14470 q 14471 } 14472 /^X\(\/\).*/{ 14473 s//\1/ 14474 q 14475 } 14476 s/.*/./; q'` 14477 { as_dir=$dirpart/$fdir 14478 case $as_dir in #( 14479 -*) as_dir=./$as_dir;; 14480 esac 14481 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14482 as_dirs= 14483 while :; do 14484 case $as_dir in #( 14485 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14486 *) as_qdir=$as_dir;; 14487 esac 14488 as_dirs="'$as_qdir' $as_dirs" 14489 as_dir=`$as_dirname -- "$as_dir" || 14490$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14491 X"$as_dir" : 'X\(//\)[^/]' \| \ 14492 X"$as_dir" : 'X\(//\)$' \| \ 14493 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14494$as_echo X"$as_dir" | 14495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14496 s//\1/ 14497 q 14498 } 14499 /^X\(\/\/\)[^/].*/{ 14500 s//\1/ 14501 q 14502 } 14503 /^X\(\/\/\)$/{ 14504 s//\1/ 14505 q 14506 } 14507 /^X\(\/\).*/{ 14508 s//\1/ 14509 q 14510 } 14511 s/.*/./; q'` 14512 test -d "$as_dir" && break 14513 done 14514 test -z "$as_dirs" || eval "mkdir $as_dirs" 14515 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14516$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14517 { (exit 1); exit 1; }; }; } 14518 # echo "creating $dirpart/$file" 14519 echo '# dummy' > "$dirpart/$file" 14520 done 14521 done 14522} 14523 ;; 14524 "libtool":C) 14525 14526 # See if we are running on zsh, and set the options which allow our 14527 # commands through without removal of \ escapes. 14528 if test -n "${ZSH_VERSION+set}" ; then 14529 setopt NO_GLOB_SUBST 14530 fi 14531 14532 cfgfile="${ofile}T" 14533 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14534 $RM "$cfgfile" 14535 14536 cat <<_LT_EOF >> "$cfgfile" 14537#! $SHELL 14538 14539# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14540# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14541# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14542# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14543# 14544# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14545# 2006, 2007, 2008 Free Software Foundation, Inc. 14546# Written by Gordon Matzigkeit, 1996 14547# 14548# This file is part of GNU Libtool. 14549# 14550# GNU Libtool is free software; you can redistribute it and/or 14551# modify it under the terms of the GNU General Public License as 14552# published by the Free Software Foundation; either version 2 of 14553# the License, or (at your option) any later version. 14554# 14555# As a special exception to the GNU General Public License, 14556# if you distribute this file as part of a program or library that 14557# is built using GNU Libtool, you may include this file under the 14558# same distribution terms that you use for the rest of that program. 14559# 14560# GNU Libtool is distributed in the hope that it will be useful, 14561# but WITHOUT ANY WARRANTY; without even the implied warranty of 14562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14563# GNU General Public License for more details. 14564# 14565# You should have received a copy of the GNU General Public License 14566# along with GNU Libtool; see the file COPYING. If not, a copy 14567# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14568# obtained by writing to the Free Software Foundation, Inc., 14569# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14570 14571 14572# The names of the tagged configurations supported by this script. 14573available_tags="" 14574 14575# ### BEGIN LIBTOOL CONFIG 14576 14577# Whether or not to build static libraries. 14578build_old_libs=$enable_static 14579 14580# Which release of libtool.m4 was used? 14581macro_version=$macro_version 14582macro_revision=$macro_revision 14583 14584# Whether or not to build shared libraries. 14585build_libtool_libs=$enable_shared 14586 14587# What type of objects to build. 14588pic_mode=$pic_mode 14589 14590# Whether or not to optimize for fast installation. 14591fast_install=$enable_fast_install 14592 14593# The host system. 14594host_alias=$host_alias 14595host=$host 14596host_os=$host_os 14597 14598# The build system. 14599build_alias=$build_alias 14600build=$build 14601build_os=$build_os 14602 14603# A sed program that does not truncate output. 14604SED=$lt_SED 14605 14606# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14607Xsed="\$SED -e 1s/^X//" 14608 14609# A grep program that handles long lines. 14610GREP=$lt_GREP 14611 14612# An ERE matcher. 14613EGREP=$lt_EGREP 14614 14615# A literal string matcher. 14616FGREP=$lt_FGREP 14617 14618# A BSD- or MS-compatible name lister. 14619NM=$lt_NM 14620 14621# Whether we need soft or hard links. 14622LN_S=$lt_LN_S 14623 14624# What is the maximum length of a command? 14625max_cmd_len=$max_cmd_len 14626 14627# Object file suffix (normally "o"). 14628objext=$ac_objext 14629 14630# Executable file suffix (normally ""). 14631exeext=$exeext 14632 14633# whether the shell understands "unset". 14634lt_unset=$lt_unset 14635 14636# turn spaces into newlines. 14637SP2NL=$lt_lt_SP2NL 14638 14639# turn newlines into spaces. 14640NL2SP=$lt_lt_NL2SP 14641 14642# How to create reloadable object files. 14643reload_flag=$lt_reload_flag 14644reload_cmds=$lt_reload_cmds 14645 14646# An object symbol dumper. 14647OBJDUMP=$lt_OBJDUMP 14648 14649# Method to check whether dependent libraries are shared objects. 14650deplibs_check_method=$lt_deplibs_check_method 14651 14652# Command to use when deplibs_check_method == "file_magic". 14653file_magic_cmd=$lt_file_magic_cmd 14654 14655# The archiver. 14656AR=$lt_AR 14657AR_FLAGS=$lt_AR_FLAGS 14658 14659# A symbol stripping program. 14660STRIP=$lt_STRIP 14661 14662# Commands used to install an old-style archive. 14663RANLIB=$lt_RANLIB 14664old_postinstall_cmds=$lt_old_postinstall_cmds 14665old_postuninstall_cmds=$lt_old_postuninstall_cmds 14666 14667# A C compiler. 14668LTCC=$lt_CC 14669 14670# LTCC compiler flags. 14671LTCFLAGS=$lt_CFLAGS 14672 14673# Take the output of nm and produce a listing of raw symbols and C names. 14674global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14675 14676# Transform the output of nm in a proper C declaration. 14677global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14678 14679# Transform the output of nm in a C name address pair. 14680global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14681 14682# Transform the output of nm in a C name address pair when lib prefix is needed. 14683global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14684 14685# The name of the directory that contains temporary libtool files. 14686objdir=$objdir 14687 14688# Shell to use when invoking shell scripts. 14689SHELL=$lt_SHELL 14690 14691# An echo program that does not interpret backslashes. 14692ECHO=$lt_ECHO 14693 14694# Used to examine libraries when file_magic_cmd begins with "file". 14695MAGIC_CMD=$MAGIC_CMD 14696 14697# Must we lock files when doing compilation? 14698need_locks=$lt_need_locks 14699 14700# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14701DSYMUTIL=$lt_DSYMUTIL 14702 14703# Tool to change global to local symbols on Mac OS X. 14704NMEDIT=$lt_NMEDIT 14705 14706# Tool to manipulate fat objects and archives on Mac OS X. 14707LIPO=$lt_LIPO 14708 14709# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14710OTOOL=$lt_OTOOL 14711 14712# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14713OTOOL64=$lt_OTOOL64 14714 14715# Old archive suffix (normally "a"). 14716libext=$libext 14717 14718# Shared library suffix (normally ".so"). 14719shrext_cmds=$lt_shrext_cmds 14720 14721# The commands to extract the exported symbol list from a shared archive. 14722extract_expsyms_cmds=$lt_extract_expsyms_cmds 14723 14724# Variables whose values should be saved in libtool wrapper scripts and 14725# restored at link time. 14726variables_saved_for_relink=$lt_variables_saved_for_relink 14727 14728# Do we need the "lib" prefix for modules? 14729need_lib_prefix=$need_lib_prefix 14730 14731# Do we need a version for libraries? 14732need_version=$need_version 14733 14734# Library versioning type. 14735version_type=$version_type 14736 14737# Shared library runtime path variable. 14738runpath_var=$runpath_var 14739 14740# Shared library path variable. 14741shlibpath_var=$shlibpath_var 14742 14743# Is shlibpath searched before the hard-coded library search path? 14744shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14745 14746# Format of library name prefix. 14747libname_spec=$lt_libname_spec 14748 14749# List of archive names. First name is the real one, the rest are links. 14750# The last name is the one that the linker finds with -lNAME 14751library_names_spec=$lt_library_names_spec 14752 14753# The coded name of the library, if different from the real name. 14754soname_spec=$lt_soname_spec 14755 14756# Command to use after installation of a shared archive. 14757postinstall_cmds=$lt_postinstall_cmds 14758 14759# Command to use after uninstallation of a shared archive. 14760postuninstall_cmds=$lt_postuninstall_cmds 14761 14762# Commands used to finish a libtool library installation in a directory. 14763finish_cmds=$lt_finish_cmds 14764 14765# As "finish_cmds", except a single script fragment to be evaled but 14766# not shown. 14767finish_eval=$lt_finish_eval 14768 14769# Whether we should hardcode library paths into libraries. 14770hardcode_into_libs=$hardcode_into_libs 14771 14772# Compile-time system search path for libraries. 14773sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14774 14775# Run-time system search path for libraries. 14776sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14777 14778# Whether dlopen is supported. 14779dlopen_support=$enable_dlopen 14780 14781# Whether dlopen of programs is supported. 14782dlopen_self=$enable_dlopen_self 14783 14784# Whether dlopen of statically linked programs is supported. 14785dlopen_self_static=$enable_dlopen_self_static 14786 14787# Commands to strip libraries. 14788old_striplib=$lt_old_striplib 14789striplib=$lt_striplib 14790 14791 14792# The linker used to build libraries. 14793LD=$lt_LD 14794 14795# Commands used to build an old-style archive. 14796old_archive_cmds=$lt_old_archive_cmds 14797 14798# A language specific compiler. 14799CC=$lt_compiler 14800 14801# Is the compiler the GNU compiler? 14802with_gcc=$GCC 14803 14804# Compiler flag to turn off builtin functions. 14805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14806 14807# How to pass a linker flag through the compiler. 14808wl=$lt_lt_prog_compiler_wl 14809 14810# Additional compiler flags for building library objects. 14811pic_flag=$lt_lt_prog_compiler_pic 14812 14813# Compiler flag to prevent dynamic linking. 14814link_static_flag=$lt_lt_prog_compiler_static 14815 14816# Does compiler simultaneously support -c and -o options? 14817compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14818 14819# Whether or not to add -lc for building shared libraries. 14820build_libtool_need_lc=$archive_cmds_need_lc 14821 14822# Whether or not to disallow shared libs when runtime libs are static. 14823allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14824 14825# Compiler flag to allow reflexive dlopens. 14826export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14827 14828# Compiler flag to generate shared objects directly from archives. 14829whole_archive_flag_spec=$lt_whole_archive_flag_spec 14830 14831# Whether the compiler copes with passing no objects directly. 14832compiler_needs_object=$lt_compiler_needs_object 14833 14834# Create an old-style archive from a shared archive. 14835old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14836 14837# Create a temporary old-style archive to link instead of a shared archive. 14838old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14839 14840# Commands used to build a shared archive. 14841archive_cmds=$lt_archive_cmds 14842archive_expsym_cmds=$lt_archive_expsym_cmds 14843 14844# Commands used to build a loadable module if different from building 14845# a shared archive. 14846module_cmds=$lt_module_cmds 14847module_expsym_cmds=$lt_module_expsym_cmds 14848 14849# Whether we are building with GNU ld or not. 14850with_gnu_ld=$lt_with_gnu_ld 14851 14852# Flag that allows shared libraries with undefined symbols to be built. 14853allow_undefined_flag=$lt_allow_undefined_flag 14854 14855# Flag that enforces no undefined symbols. 14856no_undefined_flag=$lt_no_undefined_flag 14857 14858# Flag to hardcode \$libdir into a binary during linking. 14859# This must work even if \$libdir does not exist 14860hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14861 14862# If ld is used when linking, flag to hardcode \$libdir into a binary 14863# during linking. This must work even if \$libdir does not exist. 14864hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14865 14866# Whether we need a single "-rpath" flag with a separated argument. 14867hardcode_libdir_separator=$lt_hardcode_libdir_separator 14868 14869# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14870# DIR into the resulting binary. 14871hardcode_direct=$hardcode_direct 14872 14873# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14874# DIR into the resulting binary and the resulting library dependency is 14875# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14876# library is relocated. 14877hardcode_direct_absolute=$hardcode_direct_absolute 14878 14879# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14880# into the resulting binary. 14881hardcode_minus_L=$hardcode_minus_L 14882 14883# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14884# into the resulting binary. 14885hardcode_shlibpath_var=$hardcode_shlibpath_var 14886 14887# Set to "yes" if building a shared library automatically hardcodes DIR 14888# into the library and all subsequent libraries and executables linked 14889# against it. 14890hardcode_automatic=$hardcode_automatic 14891 14892# Set to yes if linker adds runtime paths of dependent libraries 14893# to runtime path list. 14894inherit_rpath=$inherit_rpath 14895 14896# Whether libtool must link a program against all its dependency libraries. 14897link_all_deplibs=$link_all_deplibs 14898 14899# Fix the shell variable \$srcfile for the compiler. 14900fix_srcfile_path=$lt_fix_srcfile_path 14901 14902# Set to "yes" if exported symbols are required. 14903always_export_symbols=$always_export_symbols 14904 14905# The commands to list exported symbols. 14906export_symbols_cmds=$lt_export_symbols_cmds 14907 14908# Symbols that should not be listed in the preloaded symbols. 14909exclude_expsyms=$lt_exclude_expsyms 14910 14911# Symbols that must always be exported. 14912include_expsyms=$lt_include_expsyms 14913 14914# Commands necessary for linking programs (against libraries) with templates. 14915prelink_cmds=$lt_prelink_cmds 14916 14917# Specify filename containing input files. 14918file_list_spec=$lt_file_list_spec 14919 14920# How to hardcode a shared library path into an executable. 14921hardcode_action=$hardcode_action 14922 14923# ### END LIBTOOL CONFIG 14924 14925_LT_EOF 14926 14927 case $host_os in 14928 aix3*) 14929 cat <<\_LT_EOF >> "$cfgfile" 14930# AIX sometimes has problems with the GCC collect2 program. For some 14931# reason, if we set the COLLECT_NAMES environment variable, the problems 14932# vanish in a puff of smoke. 14933if test "X${COLLECT_NAMES+set}" != Xset; then 14934 COLLECT_NAMES= 14935 export COLLECT_NAMES 14936fi 14937_LT_EOF 14938 ;; 14939 esac 14940 14941 14942ltmain="$ac_aux_dir/ltmain.sh" 14943 14944 14945 # We use sed instead of cat because bash on DJGPP gets confused if 14946 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14947 # text mode, it properly converts lines to CR/LF. This bash problem 14948 # is reportedly fixed, but why not run on old versions too? 14949 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14950 || (rm -f "$cfgfile"; exit 1) 14951 14952 case $xsi_shell in 14953 yes) 14954 cat << \_LT_EOF >> "$cfgfile" 14955 14956# func_dirname file append nondir_replacement 14957# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14958# otherwise set result to NONDIR_REPLACEMENT. 14959func_dirname () 14960{ 14961 case ${1} in 14962 */*) func_dirname_result="${1%/*}${2}" ;; 14963 * ) func_dirname_result="${3}" ;; 14964 esac 14965} 14966 14967# func_basename file 14968func_basename () 14969{ 14970 func_basename_result="${1##*/}" 14971} 14972 14973# func_dirname_and_basename file append nondir_replacement 14974# perform func_basename and func_dirname in a single function 14975# call: 14976# dirname: Compute the dirname of FILE. If nonempty, 14977# add APPEND to the result, otherwise set result 14978# to NONDIR_REPLACEMENT. 14979# value returned in "$func_dirname_result" 14980# basename: Compute filename of FILE. 14981# value retuned in "$func_basename_result" 14982# Implementation must be kept synchronized with func_dirname 14983# and func_basename. For efficiency, we do not delegate to 14984# those functions but instead duplicate the functionality here. 14985func_dirname_and_basename () 14986{ 14987 case ${1} in 14988 */*) func_dirname_result="${1%/*}${2}" ;; 14989 * ) func_dirname_result="${3}" ;; 14990 esac 14991 func_basename_result="${1##*/}" 14992} 14993 14994# func_stripname prefix suffix name 14995# strip PREFIX and SUFFIX off of NAME. 14996# PREFIX and SUFFIX must not contain globbing or regex special 14997# characters, hashes, percent signs, but SUFFIX may contain a leading 14998# dot (in which case that matches only a dot). 14999func_stripname () 15000{ 15001 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15002 # positional parameters, so assign one to ordinary parameter first. 15003 func_stripname_result=${3} 15004 func_stripname_result=${func_stripname_result#"${1}"} 15005 func_stripname_result=${func_stripname_result%"${2}"} 15006} 15007 15008# func_opt_split 15009func_opt_split () 15010{ 15011 func_opt_split_opt=${1%%=*} 15012 func_opt_split_arg=${1#*=} 15013} 15014 15015# func_lo2o object 15016func_lo2o () 15017{ 15018 case ${1} in 15019 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15020 *) func_lo2o_result=${1} ;; 15021 esac 15022} 15023 15024# func_xform libobj-or-source 15025func_xform () 15026{ 15027 func_xform_result=${1%.*}.lo 15028} 15029 15030# func_arith arithmetic-term... 15031func_arith () 15032{ 15033 func_arith_result=$(( $* )) 15034} 15035 15036# func_len string 15037# STRING may not start with a hyphen. 15038func_len () 15039{ 15040 func_len_result=${#1} 15041} 15042 15043_LT_EOF 15044 ;; 15045 *) # Bourne compatible functions. 15046 cat << \_LT_EOF >> "$cfgfile" 15047 15048# func_dirname file append nondir_replacement 15049# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15050# otherwise set result to NONDIR_REPLACEMENT. 15051func_dirname () 15052{ 15053 # Extract subdirectory from the argument. 15054 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15055 if test "X$func_dirname_result" = "X${1}"; then 15056 func_dirname_result="${3}" 15057 else 15058 func_dirname_result="$func_dirname_result${2}" 15059 fi 15060} 15061 15062# func_basename file 15063func_basename () 15064{ 15065 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15066} 15067 15068 15069# func_stripname prefix suffix name 15070# strip PREFIX and SUFFIX off of NAME. 15071# PREFIX and SUFFIX must not contain globbing or regex special 15072# characters, hashes, percent signs, but SUFFIX may contain a leading 15073# dot (in which case that matches only a dot). 15074# func_strip_suffix prefix name 15075func_stripname () 15076{ 15077 case ${2} in 15078 .*) func_stripname_result=`$ECHO "X${3}" \ 15079 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15080 *) func_stripname_result=`$ECHO "X${3}" \ 15081 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15082 esac 15083} 15084 15085# sed scripts: 15086my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15087my_sed_long_arg='1s/^-[^=]*=//' 15088 15089# func_opt_split 15090func_opt_split () 15091{ 15092 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15093 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15094} 15095 15096# func_lo2o object 15097func_lo2o () 15098{ 15099 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15100} 15101 15102# func_xform libobj-or-source 15103func_xform () 15104{ 15105 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15106} 15107 15108# func_arith arithmetic-term... 15109func_arith () 15110{ 15111 func_arith_result=`expr "$@"` 15112} 15113 15114# func_len string 15115# STRING may not start with a hyphen. 15116func_len () 15117{ 15118 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15119} 15120 15121_LT_EOF 15122esac 15123 15124case $lt_shell_append in 15125 yes) 15126 cat << \_LT_EOF >> "$cfgfile" 15127 15128# func_append var value 15129# Append VALUE to the end of shell variable VAR. 15130func_append () 15131{ 15132 eval "$1+=\$2" 15133} 15134_LT_EOF 15135 ;; 15136 *) 15137 cat << \_LT_EOF >> "$cfgfile" 15138 15139# func_append var value 15140# Append VALUE to the end of shell variable VAR. 15141func_append () 15142{ 15143 eval "$1=\$$1\$2" 15144} 15145 15146_LT_EOF 15147 ;; 15148 esac 15149 15150 15151 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15152 || (rm -f "$cfgfile"; exit 1) 15153 15154 mv -f "$cfgfile" "$ofile" || 15155 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15156 chmod +x "$ofile" 15157 15158 ;; 15159 15160 esac 15161done # for ac_tag 15162 15163 15164{ (exit 0); exit 0; } 15165_ACEOF 15166chmod +x $CONFIG_STATUS 15167ac_clean_files=$ac_clean_files_save 15168 15169test $ac_write_fail = 0 || 15170 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15171$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15172 { (exit 1); exit 1; }; } 15173 15174 15175# configure is writing to config.log, and then calls config.status. 15176# config.status does its own redirection, appending to config.log. 15177# Unfortunately, on DOS this fails, as config.log is still kept open 15178# by configure, so config.status won't be able to write to it; its 15179# output is simply discarded. So we exec the FD to /dev/null, 15180# effectively closing config.log, so it can be properly (re)opened and 15181# appended to by config.status. When coming back to configure, we 15182# need to make the FD available again. 15183if test "$no_create" != yes; then 15184 ac_cs_success=: 15185 ac_config_status_args= 15186 test "$silent" = yes && 15187 ac_config_status_args="$ac_config_status_args --quiet" 15188 exec 5>/dev/null 15189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15190 exec 5>>config.log 15191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15192 # would make configure fail if this is the last instruction. 15193 $ac_cs_success || { (exit 1); exit 1; } 15194fi 15195if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15196 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15197$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15198fi 15199 15200