configure revision f55e6a01
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-glint 1.2.3. 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-glint' 747PACKAGE_TARNAME='xf86-video-glint' 748PACKAGE_VERSION='1.2.3' 749PACKAGE_STRING='xf86-video-glint 1.2.3' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='LTLIBOBJS 790LIBOBJS 791ADMIN_MAN_DIR 792DRIVER_MAN_DIR 793MISC_MAN_DIR 794FILE_MAN_DIR 795LIB_MAN_DIR 796APP_MAN_DIR 797ADMIN_MAN_SUFFIX 798DRIVER_MAN_SUFFIX 799MISC_MAN_SUFFIX 800FILE_MAN_SUFFIX 801LIB_MAN_SUFFIX 802APP_MAN_SUFFIX 803DRIVER_NAME 804moduledir 805XSERVER_LIBPCIACCESS_FALSE 806XSERVER_LIBPCIACCESS_TRUE 807PCIACCESS_LIBS 808PCIACCESS_CFLAGS 809DRI_LIBS 810DRI_CFLAGS 811DRI_FALSE 812DRI_TRUE 813XORG_LIBS 814XORG_CFLAGS 815PKG_CONFIG 816CPP 817OTOOL64 818OTOOL 819LIPO 820NMEDIT 821DSYMUTIL 822lt_ECHO 823RANLIB 824AR 825OBJDUMP 826LN_S 827NM 828ac_ct_DUMPBIN 829DUMPBIN 830LD 831FGREP 832EGREP 833GREP 834SED 835am__fastdepCC_FALSE 836am__fastdepCC_TRUE 837CCDEPMODE 838AMDEPBACKSLASH 839AMDEP_FALSE 840AMDEP_TRUE 841am__quote 842am__include 843DEPDIR 844OBJEXT 845EXEEXT 846ac_ct_CC 847CPPFLAGS 848LDFLAGS 849CFLAGS 850CC 851host_os 852host_vendor 853host_cpu 854host 855build_os 856build_vendor 857build_cpu 858build 859LIBTOOL 860MAINT 861MAINTAINER_MODE_FALSE 862MAINTAINER_MODE_TRUE 863am__untar 864am__tar 865AMTAR 866am__leading_dot 867SET_MAKE 868AWK 869mkdir_p 870MKDIR_P 871INSTALL_STRIP_PROGRAM 872STRIP 873install_sh 874MAKEINFO 875AUTOHEADER 876AUTOMAKE 877AUTOCONF 878ACLOCAL 879VERSION 880PACKAGE 881CYGPATH_W 882am__isrc 883INSTALL_DATA 884INSTALL_SCRIPT 885INSTALL_PROGRAM 886target_alias 887host_alias 888build_alias 889LIBS 890ECHO_T 891ECHO_N 892ECHO_C 893DEFS 894mandir 895localedir 896libdir 897psdir 898pdfdir 899dvidir 900htmldir 901infodir 902docdir 903oldincludedir 904includedir 905localstatedir 906sharedstatedir 907sysconfdir 908datadir 909datarootdir 910libexecdir 911sbindir 912bindir 913program_transform_name 914prefix 915exec_prefix 916PACKAGE_BUGREPORT 917PACKAGE_STRING 918PACKAGE_VERSION 919PACKAGE_TARNAME 920PACKAGE_NAME 921PATH_SEPARATOR 922SHELL' 923ac_subst_files='' 924ac_user_opts=' 925enable_option_checking 926enable_maintainer_mode 927enable_static 928enable_shared 929with_pic 930enable_fast_install 931enable_dependency_tracking 932with_gnu_ld 933enable_libtool_lock 934with_xorg_module_dir 935enable_dri 936with_release_version 937' 938 ac_precious_vars='build_alias 939host_alias 940target_alias 941CC 942CFLAGS 943LDFLAGS 944LIBS 945CPPFLAGS 946CPP 947PKG_CONFIG 948XORG_CFLAGS 949XORG_LIBS 950DRI_CFLAGS 951DRI_LIBS 952PCIACCESS_CFLAGS 953PCIACCESS_LIBS' 954 955 956# Initialize some variables set by options. 957ac_init_help= 958ac_init_version=false 959ac_unrecognized_opts= 960ac_unrecognized_sep= 961# The variables have the same names as the options, with 962# dashes changed to underlines. 963cache_file=/dev/null 964exec_prefix=NONE 965no_create= 966no_recursion= 967prefix=NONE 968program_prefix=NONE 969program_suffix=NONE 970program_transform_name=s,x,x, 971silent= 972site= 973srcdir= 974verbose= 975x_includes=NONE 976x_libraries=NONE 977 978# Installation directory options. 979# These are left unexpanded so users can "make install exec_prefix=/foo" 980# and all the variables that are supposed to be based on exec_prefix 981# by default will actually change. 982# Use braces instead of parens because sh, perl, etc. also accept them. 983# (The list follows the same order as the GNU Coding Standards.) 984bindir='${exec_prefix}/bin' 985sbindir='${exec_prefix}/sbin' 986libexecdir='${exec_prefix}/libexec' 987datarootdir='${prefix}/share' 988datadir='${datarootdir}' 989sysconfdir='${prefix}/etc' 990sharedstatedir='${prefix}/com' 991localstatedir='${prefix}/var' 992includedir='${prefix}/include' 993oldincludedir='/usr/include' 994docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 995infodir='${datarootdir}/info' 996htmldir='${docdir}' 997dvidir='${docdir}' 998pdfdir='${docdir}' 999psdir='${docdir}' 1000libdir='${exec_prefix}/lib' 1001localedir='${datarootdir}/locale' 1002mandir='${datarootdir}/man' 1003 1004ac_prev= 1005ac_dashdash= 1006for ac_option 1007do 1008 # If the previous option needs an argument, assign it. 1009 if test -n "$ac_prev"; then 1010 eval $ac_prev=\$ac_option 1011 ac_prev= 1012 continue 1013 fi 1014 1015 case $ac_option in 1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1017 *) ac_optarg=yes ;; 1018 esac 1019 1020 # Accept the important Cygnus configure options, so we can diagnose typos. 1021 1022 case $ac_dashdash$ac_option in 1023 --) 1024 ac_dashdash=yes ;; 1025 1026 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1027 ac_prev=bindir ;; 1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1029 bindir=$ac_optarg ;; 1030 1031 -build | --build | --buil | --bui | --bu) 1032 ac_prev=build_alias ;; 1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1034 build_alias=$ac_optarg ;; 1035 1036 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1038 ac_prev=cache_file ;; 1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1041 cache_file=$ac_optarg ;; 1042 1043 --config-cache | -C) 1044 cache_file=config.cache ;; 1045 1046 -datadir | --datadir | --datadi | --datad) 1047 ac_prev=datadir ;; 1048 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1049 datadir=$ac_optarg ;; 1050 1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1052 | --dataroo | --dataro | --datar) 1053 ac_prev=datarootdir ;; 1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1056 datarootdir=$ac_optarg ;; 1057 1058 -disable-* | --disable-*) 1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1060 # Reject names that are not valid shell variable names. 1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1062 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1063 { (exit 1); exit 1; }; } 1064 ac_useropt_orig=$ac_useropt 1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1066 case $ac_user_opts in 1067 *" 1068"enable_$ac_useropt" 1069"*) ;; 1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1071 ac_unrecognized_sep=', ';; 1072 esac 1073 eval enable_$ac_useropt=no ;; 1074 1075 -docdir | --docdir | --docdi | --doc | --do) 1076 ac_prev=docdir ;; 1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1078 docdir=$ac_optarg ;; 1079 1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1081 ac_prev=dvidir ;; 1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1083 dvidir=$ac_optarg ;; 1084 1085 -enable-* | --enable-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1090 { (exit 1); exit 1; }; } 1091 ac_useropt_orig=$ac_useropt 1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1093 case $ac_user_opts in 1094 *" 1095"enable_$ac_useropt" 1096"*) ;; 1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1098 ac_unrecognized_sep=', ';; 1099 esac 1100 eval enable_$ac_useropt=\$ac_optarg ;; 1101 1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1104 | --exec | --exe | --ex) 1105 ac_prev=exec_prefix ;; 1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1108 | --exec=* | --exe=* | --ex=*) 1109 exec_prefix=$ac_optarg ;; 1110 1111 -gas | --gas | --ga | --g) 1112 # Obsolete; use --with-gas. 1113 with_gas=yes ;; 1114 1115 -help | --help | --hel | --he | -h) 1116 ac_init_help=long ;; 1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1118 ac_init_help=recursive ;; 1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1120 ac_init_help=short ;; 1121 1122 -host | --host | --hos | --ho) 1123 ac_prev=host_alias ;; 1124 -host=* | --host=* | --hos=* | --ho=*) 1125 host_alias=$ac_optarg ;; 1126 1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1128 ac_prev=htmldir ;; 1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1130 | --ht=*) 1131 htmldir=$ac_optarg ;; 1132 1133 -includedir | --includedir | --includedi | --included | --include \ 1134 | --includ | --inclu | --incl | --inc) 1135 ac_prev=includedir ;; 1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1137 | --includ=* | --inclu=* | --incl=* | --inc=*) 1138 includedir=$ac_optarg ;; 1139 1140 -infodir | --infodir | --infodi | --infod | --info | --inf) 1141 ac_prev=infodir ;; 1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1143 infodir=$ac_optarg ;; 1144 1145 -libdir | --libdir | --libdi | --libd) 1146 ac_prev=libdir ;; 1147 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1148 libdir=$ac_optarg ;; 1149 1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1151 | --libexe | --libex | --libe) 1152 ac_prev=libexecdir ;; 1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1154 | --libexe=* | --libex=* | --libe=*) 1155 libexecdir=$ac_optarg ;; 1156 1157 -localedir | --localedir | --localedi | --localed | --locale) 1158 ac_prev=localedir ;; 1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1160 localedir=$ac_optarg ;; 1161 1162 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1163 | --localstate | --localstat | --localsta | --localst | --locals) 1164 ac_prev=localstatedir ;; 1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1167 localstatedir=$ac_optarg ;; 1168 1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1170 ac_prev=mandir ;; 1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1172 mandir=$ac_optarg ;; 1173 1174 -nfp | --nfp | --nf) 1175 # Obsolete; use --without-fp. 1176 with_fp=no ;; 1177 1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1179 | --no-cr | --no-c | -n) 1180 no_create=yes ;; 1181 1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1184 no_recursion=yes ;; 1185 1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1188 | --oldin | --oldi | --old | --ol | --o) 1189 ac_prev=oldincludedir ;; 1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1193 oldincludedir=$ac_optarg ;; 1194 1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1196 ac_prev=prefix ;; 1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1198 prefix=$ac_optarg ;; 1199 1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1201 | --program-pre | --program-pr | --program-p) 1202 ac_prev=program_prefix ;; 1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1205 program_prefix=$ac_optarg ;; 1206 1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1208 | --program-suf | --program-su | --program-s) 1209 ac_prev=program_suffix ;; 1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1212 program_suffix=$ac_optarg ;; 1213 1214 -program-transform-name | --program-transform-name \ 1215 | --program-transform-nam | --program-transform-na \ 1216 | --program-transform-n | --program-transform- \ 1217 | --program-transform | --program-transfor \ 1218 | --program-transfo | --program-transf \ 1219 | --program-trans | --program-tran \ 1220 | --progr-tra | --program-tr | --program-t) 1221 ac_prev=program_transform_name ;; 1222 -program-transform-name=* | --program-transform-name=* \ 1223 | --program-transform-nam=* | --program-transform-na=* \ 1224 | --program-transform-n=* | --program-transform-=* \ 1225 | --program-transform=* | --program-transfor=* \ 1226 | --program-transfo=* | --program-transf=* \ 1227 | --program-trans=* | --program-tran=* \ 1228 | --progr-tra=* | --program-tr=* | --program-t=*) 1229 program_transform_name=$ac_optarg ;; 1230 1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1232 ac_prev=pdfdir ;; 1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1234 pdfdir=$ac_optarg ;; 1235 1236 -psdir | --psdir | --psdi | --psd | --ps) 1237 ac_prev=psdir ;; 1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1239 psdir=$ac_optarg ;; 1240 1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1242 | -silent | --silent | --silen | --sile | --sil) 1243 silent=yes ;; 1244 1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1246 ac_prev=sbindir ;; 1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1248 | --sbi=* | --sb=*) 1249 sbindir=$ac_optarg ;; 1250 1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1253 | --sharedst | --shareds | --shared | --share | --shar \ 1254 | --sha | --sh) 1255 ac_prev=sharedstatedir ;; 1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1259 | --sha=* | --sh=*) 1260 sharedstatedir=$ac_optarg ;; 1261 1262 -site | --site | --sit) 1263 ac_prev=site ;; 1264 -site=* | --site=* | --sit=*) 1265 site=$ac_optarg ;; 1266 1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1268 ac_prev=srcdir ;; 1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1270 srcdir=$ac_optarg ;; 1271 1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1273 | --syscon | --sysco | --sysc | --sys | --sy) 1274 ac_prev=sysconfdir ;; 1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1277 sysconfdir=$ac_optarg ;; 1278 1279 -target | --target | --targe | --targ | --tar | --ta | --t) 1280 ac_prev=target_alias ;; 1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1282 target_alias=$ac_optarg ;; 1283 1284 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1285 verbose=yes ;; 1286 1287 -version | --version | --versio | --versi | --vers | -V) 1288 ac_init_version=: ;; 1289 1290 -with-* | --with-*) 1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1292 # Reject names that are not valid shell variable names. 1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1294 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1295 { (exit 1); exit 1; }; } 1296 ac_useropt_orig=$ac_useropt 1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1298 case $ac_user_opts in 1299 *" 1300"with_$ac_useropt" 1301"*) ;; 1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1303 ac_unrecognized_sep=', ';; 1304 esac 1305 eval with_$ac_useropt=\$ac_optarg ;; 1306 1307 -without-* | --without-*) 1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1309 # Reject names that are not valid shell variable names. 1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1311 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1312 { (exit 1); exit 1; }; } 1313 ac_useropt_orig=$ac_useropt 1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1315 case $ac_user_opts in 1316 *" 1317"with_$ac_useropt" 1318"*) ;; 1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1320 ac_unrecognized_sep=', ';; 1321 esac 1322 eval with_$ac_useropt=no ;; 1323 1324 --x) 1325 # Obsolete; use --with-x. 1326 with_x=yes ;; 1327 1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1329 | --x-incl | --x-inc | --x-in | --x-i) 1330 ac_prev=x_includes ;; 1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1333 x_includes=$ac_optarg ;; 1334 1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1337 ac_prev=x_libraries ;; 1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1340 x_libraries=$ac_optarg ;; 1341 1342 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1343Try \`$0 --help' for more information." >&2 1344 { (exit 1); exit 1; }; } 1345 ;; 1346 1347 *=*) 1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1349 # Reject names that are not valid shell variable names. 1350 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1351 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1352 { (exit 1); exit 1; }; } 1353 eval $ac_envvar=\$ac_optarg 1354 export $ac_envvar ;; 1355 1356 *) 1357 # FIXME: should be removed in autoconf 3.0. 1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1362 ;; 1363 1364 esac 1365done 1366 1367if test -n "$ac_prev"; then 1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1369 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1370 { (exit 1); exit 1; }; } 1371fi 1372 1373if test -n "$ac_unrecognized_opts"; then 1374 case $enable_option_checking in 1375 no) ;; 1376 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1377 { (exit 1); exit 1; }; } ;; 1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1379 esac 1380fi 1381 1382# Check all directory arguments for consistency. 1383for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1384 datadir sysconfdir sharedstatedir localstatedir includedir \ 1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1386 libdir localedir mandir 1387do 1388 eval ac_val=\$$ac_var 1389 # Remove trailing slashes. 1390 case $ac_val in 1391 */ ) 1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1393 eval $ac_var=\$ac_val;; 1394 esac 1395 # Be sure to have absolute directory names. 1396 case $ac_val in 1397 [\\/$]* | ?:[\\/]* ) continue;; 1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1399 esac 1400 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1401 { (exit 1); exit 1; }; } 1402done 1403 1404# There might be people who depend on the old broken behavior: `$host' 1405# used to hold the argument of --host etc. 1406# FIXME: To remove some day. 1407build=$build_alias 1408host=$host_alias 1409target=$target_alias 1410 1411# FIXME: To remove some day. 1412if test "x$host_alias" != x; then 1413 if test "x$build_alias" = x; then 1414 cross_compiling=maybe 1415 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1416 If a cross compiler is detected then cross compile mode will be used." >&2 1417 elif test "x$build_alias" != "x$host_alias"; then 1418 cross_compiling=yes 1419 fi 1420fi 1421 1422ac_tool_prefix= 1423test -n "$host_alias" && ac_tool_prefix=$host_alias- 1424 1425test "$silent" = yes && exec 6>/dev/null 1426 1427 1428ac_pwd=`pwd` && test -n "$ac_pwd" && 1429ac_ls_di=`ls -di .` && 1430ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1431 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1432 { (exit 1); exit 1; }; } 1433test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1434 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1435 { (exit 1); exit 1; }; } 1436 1437 1438# Find the source files, if location was not specified. 1439if test -z "$srcdir"; then 1440 ac_srcdir_defaulted=yes 1441 # Try the directory containing this script, then the parent directory. 1442 ac_confdir=`$as_dirname -- "$as_myself" || 1443$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1444 X"$as_myself" : 'X\(//\)[^/]' \| \ 1445 X"$as_myself" : 'X\(//\)$' \| \ 1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1447$as_echo X"$as_myself" | 1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1449 s//\1/ 1450 q 1451 } 1452 /^X\(\/\/\)[^/].*/{ 1453 s//\1/ 1454 q 1455 } 1456 /^X\(\/\/\)$/{ 1457 s//\1/ 1458 q 1459 } 1460 /^X\(\/\).*/{ 1461 s//\1/ 1462 q 1463 } 1464 s/.*/./; q'` 1465 srcdir=$ac_confdir 1466 if test ! -r "$srcdir/$ac_unique_file"; then 1467 srcdir=.. 1468 fi 1469else 1470 ac_srcdir_defaulted=no 1471fi 1472if test ! -r "$srcdir/$ac_unique_file"; then 1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1474 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1475 { (exit 1); exit 1; }; } 1476fi 1477ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1478ac_abs_confdir=`( 1479 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1480 { (exit 1); exit 1; }; } 1481 pwd)` 1482# When building in place, set srcdir=. 1483if test "$ac_abs_confdir" = "$ac_pwd"; then 1484 srcdir=. 1485fi 1486# Remove unnecessary trailing slashes from srcdir. 1487# Double slashes in file names in object file debugging info 1488# mess up M-x gdb in Emacs. 1489case $srcdir in 1490*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1491esac 1492for ac_var in $ac_precious_vars; do 1493 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1494 eval ac_env_${ac_var}_value=\$${ac_var} 1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1496 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1497done 1498 1499# 1500# Report the --help message. 1501# 1502if test "$ac_init_help" = "long"; then 1503 # Omit some internal or obsolete options to make the list less imposing. 1504 # This message is too long to be a string in the A/UX 3.1 sh. 1505 cat <<_ACEOF 1506\`configure' configures xf86-video-glint 1.2.3 to adapt to many kinds of systems. 1507 1508Usage: $0 [OPTION]... [VAR=VALUE]... 1509 1510To assign environment variables (e.g., CC, CFLAGS...), specify them as 1511VAR=VALUE. See below for descriptions of some of the useful variables. 1512 1513Defaults for the options are specified in brackets. 1514 1515Configuration: 1516 -h, --help display this help and exit 1517 --help=short display options specific to this package 1518 --help=recursive display the short help of all the included packages 1519 -V, --version display version information and exit 1520 -q, --quiet, --silent do not print \`checking...' messages 1521 --cache-file=FILE cache test results in FILE [disabled] 1522 -C, --config-cache alias for \`--cache-file=config.cache' 1523 -n, --no-create do not create output files 1524 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1525 1526Installation directories: 1527 --prefix=PREFIX install architecture-independent files in PREFIX 1528 [$ac_default_prefix] 1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1530 [PREFIX] 1531 1532By default, \`make install' will install all the files in 1533\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1534an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1535for instance \`--prefix=\$HOME'. 1536 1537For better control, use the options below. 1538 1539Fine tuning of the installation directories: 1540 --bindir=DIR user executables [EPREFIX/bin] 1541 --sbindir=DIR system admin executables [EPREFIX/sbin] 1542 --libexecdir=DIR program executables [EPREFIX/libexec] 1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1546 --libdir=DIR object code libraries [EPREFIX/lib] 1547 --includedir=DIR C header files [PREFIX/include] 1548 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1551 --infodir=DIR info documentation [DATAROOTDIR/info] 1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1553 --mandir=DIR man documentation [DATAROOTDIR/man] 1554 --docdir=DIR documentation root 1555 [DATAROOTDIR/doc/xf86-video-glint] 1556 --htmldir=DIR html documentation [DOCDIR] 1557 --dvidir=DIR dvi documentation [DOCDIR] 1558 --pdfdir=DIR pdf documentation [DOCDIR] 1559 --psdir=DIR ps documentation [DOCDIR] 1560_ACEOF 1561 1562 cat <<\_ACEOF 1563 1564Program names: 1565 --program-prefix=PREFIX prepend PREFIX to installed program names 1566 --program-suffix=SUFFIX append SUFFIX to installed program names 1567 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1568 1569System types: 1570 --build=BUILD configure for building on BUILD [guessed] 1571 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1572_ACEOF 1573fi 1574 1575if test -n "$ac_init_help"; then 1576 case $ac_init_help in 1577 short | recursive ) echo "Configuration of xf86-video-glint 1.2.3:";; 1578 esac 1579 cat <<\_ACEOF 1580 1581Optional Features: 1582 --disable-option-checking ignore unrecognized --enable/--with options 1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1585 --enable-maintainer-mode enable make rules and dependencies not useful 1586 (and sometimes confusing) to the casual installer 1587 --enable-static[=PKGS] build static libraries [default=no] 1588 --enable-shared[=PKGS] build shared libraries [default=yes] 1589 --enable-fast-install[=PKGS] 1590 optimize for fast installation [default=yes] 1591 --disable-dependency-tracking speeds up one-time build 1592 --enable-dependency-tracking do not reject slow dependency extractors 1593 --disable-libtool-lock avoid locking (might break parallel builds) 1594 --disable-dri Disable DRI support [default=auto] 1595 1596Optional Packages: 1597 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1598 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1599 --with-pic try to use only PIC/non-PIC objects [default=use 1600 both] 1601 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1602 --with-xorg-module-dir=DIR 1603 Default xorg module directory 1604 [default=$libdir/xorg/modules] 1605 --with-release-version=STRING 1606 Use release version string in package name 1607 1608Some influential environment variables: 1609 CC C compiler command 1610 CFLAGS C compiler flags 1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1612 nonstandard directory <lib dir> 1613 LIBS libraries to pass to the linker, e.g. -l<library> 1614 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1615 you have headers in a nonstandard directory <include dir> 1616 CPP C preprocessor 1617 PKG_CONFIG path to pkg-config utility 1618 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1619 XORG_LIBS linker flags for XORG, overriding pkg-config 1620 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1621 DRI_LIBS linker flags for DRI, overriding pkg-config 1622 PCIACCESS_CFLAGS 1623 C compiler flags for PCIACCESS, overriding pkg-config 1624 PCIACCESS_LIBS 1625 linker flags for PCIACCESS, overriding pkg-config 1626 1627Use these variables to override the choices made by `configure' or to help 1628it to find libraries and programs with nonstandard names/locations. 1629 1630Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1631_ACEOF 1632ac_status=$? 1633fi 1634 1635if test "$ac_init_help" = "recursive"; then 1636 # If there are subdirs, report their specific --help. 1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1638 test -d "$ac_dir" || 1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1640 continue 1641 ac_builddir=. 1642 1643case "$ac_dir" in 1644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1645*) 1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1647 # A ".." for each directory in $ac_dir_suffix. 1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1649 case $ac_top_builddir_sub in 1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1652 esac ;; 1653esac 1654ac_abs_top_builddir=$ac_pwd 1655ac_abs_builddir=$ac_pwd$ac_dir_suffix 1656# for backward compatibility: 1657ac_top_builddir=$ac_top_build_prefix 1658 1659case $srcdir in 1660 .) # We are building in place. 1661 ac_srcdir=. 1662 ac_top_srcdir=$ac_top_builddir_sub 1663 ac_abs_top_srcdir=$ac_pwd ;; 1664 [\\/]* | ?:[\\/]* ) # Absolute name. 1665 ac_srcdir=$srcdir$ac_dir_suffix; 1666 ac_top_srcdir=$srcdir 1667 ac_abs_top_srcdir=$srcdir ;; 1668 *) # Relative name. 1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1670 ac_top_srcdir=$ac_top_build_prefix$srcdir 1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1672esac 1673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1674 1675 cd "$ac_dir" || { ac_status=$?; continue; } 1676 # Check for guested configure. 1677 if test -f "$ac_srcdir/configure.gnu"; then 1678 echo && 1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1680 elif test -f "$ac_srcdir/configure"; then 1681 echo && 1682 $SHELL "$ac_srcdir/configure" --help=recursive 1683 else 1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1685 fi || ac_status=$? 1686 cd "$ac_pwd" || { ac_status=$?; break; } 1687 done 1688fi 1689 1690test -n "$ac_init_help" && exit $ac_status 1691if $ac_init_version; then 1692 cat <<\_ACEOF 1693xf86-video-glint configure 1.2.3 1694generated by GNU Autoconf 2.63 1695 1696Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16972002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1698This configure script is free software; the Free Software Foundation 1699gives unlimited permission to copy, distribute and modify it. 1700_ACEOF 1701 exit 1702fi 1703cat >config.log <<_ACEOF 1704This file contains any messages produced by compilers while 1705running configure, to aid debugging if configure makes a mistake. 1706 1707It was created by xf86-video-glint $as_me 1.2.3, which was 1708generated by GNU Autoconf 2.63. Invocation command line was 1709 1710 $ $0 $@ 1711 1712_ACEOF 1713exec 5>>config.log 1714{ 1715cat <<_ASUNAME 1716## --------- ## 1717## Platform. ## 1718## --------- ## 1719 1720hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1721uname -m = `(uname -m) 2>/dev/null || echo unknown` 1722uname -r = `(uname -r) 2>/dev/null || echo unknown` 1723uname -s = `(uname -s) 2>/dev/null || echo unknown` 1724uname -v = `(uname -v) 2>/dev/null || echo unknown` 1725 1726/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1727/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1728 1729/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1730/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1731/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1732/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1733/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1734/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1735/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1736 1737_ASUNAME 1738 1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1740for as_dir in $PATH 1741do 1742 IFS=$as_save_IFS 1743 test -z "$as_dir" && as_dir=. 1744 $as_echo "PATH: $as_dir" 1745done 1746IFS=$as_save_IFS 1747 1748} >&5 1749 1750cat >&5 <<_ACEOF 1751 1752 1753## ----------- ## 1754## Core tests. ## 1755## ----------- ## 1756 1757_ACEOF 1758 1759 1760# Keep a trace of the command line. 1761# Strip out --no-create and --no-recursion so they do not pile up. 1762# Strip out --silent because we don't want to record it for future runs. 1763# Also quote any args containing shell meta-characters. 1764# Make two passes to allow for proper duplicate-argument suppression. 1765ac_configure_args= 1766ac_configure_args0= 1767ac_configure_args1= 1768ac_must_keep_next=false 1769for ac_pass in 1 2 1770do 1771 for ac_arg 1772 do 1773 case $ac_arg in 1774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1776 | -silent | --silent | --silen | --sile | --sil) 1777 continue ;; 1778 *\'*) 1779 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1780 esac 1781 case $ac_pass in 1782 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1783 2) 1784 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1785 if test $ac_must_keep_next = true; then 1786 ac_must_keep_next=false # Got value, back to normal. 1787 else 1788 case $ac_arg in 1789 *=* | --config-cache | -C | -disable-* | --disable-* \ 1790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1792 | -with-* | --with-* | -without-* | --without-* | --x) 1793 case "$ac_configure_args0 " in 1794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1795 esac 1796 ;; 1797 -* ) ac_must_keep_next=true ;; 1798 esac 1799 fi 1800 ac_configure_args="$ac_configure_args '$ac_arg'" 1801 ;; 1802 esac 1803 done 1804done 1805$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1806$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1807 1808# When interrupted or exit'd, cleanup temporary files, and complete 1809# config.log. We remove comments because anyway the quotes in there 1810# would cause problems or look ugly. 1811# WARNING: Use '\'' to represent an apostrophe within the trap. 1812# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1813trap 'exit_status=$? 1814 # Save into config.log some information that might help in debugging. 1815 { 1816 echo 1817 1818 cat <<\_ASBOX 1819## ---------------- ## 1820## Cache variables. ## 1821## ---------------- ## 1822_ASBOX 1823 echo 1824 # The following way of writing the cache mishandles newlines in values, 1825( 1826 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1827 eval ac_val=\$$ac_var 1828 case $ac_val in #( 1829 *${as_nl}*) 1830 case $ac_var in #( 1831 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1832$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1833 esac 1834 case $ac_var in #( 1835 _ | IFS | as_nl) ;; #( 1836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1837 *) $as_unset $ac_var ;; 1838 esac ;; 1839 esac 1840 done 1841 (set) 2>&1 | 1842 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1843 *${as_nl}ac_space=\ *) 1844 sed -n \ 1845 "s/'\''/'\''\\\\'\'''\''/g; 1846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1847 ;; #( 1848 *) 1849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1850 ;; 1851 esac | 1852 sort 1853) 1854 echo 1855 1856 cat <<\_ASBOX 1857## ----------------- ## 1858## Output variables. ## 1859## ----------------- ## 1860_ASBOX 1861 echo 1862 for ac_var in $ac_subst_vars 1863 do 1864 eval ac_val=\$$ac_var 1865 case $ac_val in 1866 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1867 esac 1868 $as_echo "$ac_var='\''$ac_val'\''" 1869 done | sort 1870 echo 1871 1872 if test -n "$ac_subst_files"; then 1873 cat <<\_ASBOX 1874## ------------------- ## 1875## File substitutions. ## 1876## ------------------- ## 1877_ASBOX 1878 echo 1879 for ac_var in $ac_subst_files 1880 do 1881 eval ac_val=\$$ac_var 1882 case $ac_val in 1883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1884 esac 1885 $as_echo "$ac_var='\''$ac_val'\''" 1886 done | sort 1887 echo 1888 fi 1889 1890 if test -s confdefs.h; then 1891 cat <<\_ASBOX 1892## ----------- ## 1893## confdefs.h. ## 1894## ----------- ## 1895_ASBOX 1896 echo 1897 cat confdefs.h 1898 echo 1899 fi 1900 test "$ac_signal" != 0 && 1901 $as_echo "$as_me: caught signal $ac_signal" 1902 $as_echo "$as_me: exit $exit_status" 1903 } >&5 1904 rm -f core *.core core.conftest.* && 1905 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1906 exit $exit_status 1907' 0 1908for ac_signal in 1 2 13 15; do 1909 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1910done 1911ac_signal=0 1912 1913# confdefs.h avoids OS command line length limits that DEFS can exceed. 1914rm -f -r conftest* confdefs.h 1915 1916# Predefined preprocessor variables. 1917 1918cat >>confdefs.h <<_ACEOF 1919#define PACKAGE_NAME "$PACKAGE_NAME" 1920_ACEOF 1921 1922 1923cat >>confdefs.h <<_ACEOF 1924#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1925_ACEOF 1926 1927 1928cat >>confdefs.h <<_ACEOF 1929#define PACKAGE_VERSION "$PACKAGE_VERSION" 1930_ACEOF 1931 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_STRING "$PACKAGE_STRING" 1935_ACEOF 1936 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1940_ACEOF 1941 1942 1943# Let the site file select an alternate cache file if it wants to. 1944# Prefer an explicitly selected file to automatically selected ones. 1945ac_site_file1=NONE 1946ac_site_file2=NONE 1947if test -n "$CONFIG_SITE"; then 1948 ac_site_file1=$CONFIG_SITE 1949elif test "x$prefix" != xNONE; then 1950 ac_site_file1=$prefix/share/config.site 1951 ac_site_file2=$prefix/etc/config.site 1952else 1953 ac_site_file1=$ac_default_prefix/share/config.site 1954 ac_site_file2=$ac_default_prefix/etc/config.site 1955fi 1956for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1957do 1958 test "x$ac_site_file" = xNONE && continue 1959 if test -r "$ac_site_file"; then 1960 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1961$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1962 sed 's/^/| /' "$ac_site_file" >&5 1963 . "$ac_site_file" 1964 fi 1965done 1966 1967if test -r "$cache_file"; then 1968 # Some versions of bash will fail to source /dev/null (special 1969 # files actually), so we avoid doing that. 1970 if test -f "$cache_file"; then 1971 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1972$as_echo "$as_me: loading cache $cache_file" >&6;} 1973 case $cache_file in 1974 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1975 *) . "./$cache_file";; 1976 esac 1977 fi 1978else 1979 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1980$as_echo "$as_me: creating cache $cache_file" >&6;} 1981 >$cache_file 1982fi 1983 1984# Check that the precious variables saved in the cache have kept the same 1985# value. 1986ac_cache_corrupted=false 1987for ac_var in $ac_precious_vars; do 1988 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1989 eval ac_new_set=\$ac_env_${ac_var}_set 1990 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1991 eval ac_new_val=\$ac_env_${ac_var}_value 1992 case $ac_old_set,$ac_new_set in 1993 set,) 1994 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1995$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1996 ac_cache_corrupted=: ;; 1997 ,set) 1998 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1999$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2000 ac_cache_corrupted=: ;; 2001 ,);; 2002 *) 2003 if test "x$ac_old_val" != "x$ac_new_val"; then 2004 # differences in whitespace do not lead to failure. 2005 ac_old_val_w=`echo x $ac_old_val` 2006 ac_new_val_w=`echo x $ac_new_val` 2007 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2009$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2010 ac_cache_corrupted=: 2011 else 2012 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2013$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2014 eval $ac_var=\$ac_old_val 2015 fi 2016 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2017$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2018 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2019$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2020 fi;; 2021 esac 2022 # Pass precious variables to config.status. 2023 if test "$ac_new_set" = set; then 2024 case $ac_new_val in 2025 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2026 *) ac_arg=$ac_var=$ac_new_val ;; 2027 esac 2028 case " $ac_configure_args " in 2029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2030 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2031 esac 2032 fi 2033done 2034if $ac_cache_corrupted; then 2035 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2037 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2038$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2039 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2040$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2041 { (exit 1); exit 1; }; } 2042fi 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068ac_ext=c 2069ac_cpp='$CPP $CPPFLAGS' 2070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2072ac_compiler_gnu=$ac_cv_c_compiler_gnu 2073 2074 2075 2076 2077ac_config_headers="$ac_config_headers config.h" 2078 2079ac_aux_dir= 2080for ac_dir in . "$srcdir"/.; do 2081 if test -f "$ac_dir/install-sh"; then 2082 ac_aux_dir=$ac_dir 2083 ac_install_sh="$ac_aux_dir/install-sh -c" 2084 break 2085 elif test -f "$ac_dir/install.sh"; then 2086 ac_aux_dir=$ac_dir 2087 ac_install_sh="$ac_aux_dir/install.sh -c" 2088 break 2089 elif test -f "$ac_dir/shtool"; then 2090 ac_aux_dir=$ac_dir 2091 ac_install_sh="$ac_aux_dir/shtool install -c" 2092 break 2093 fi 2094done 2095if test -z "$ac_aux_dir"; then 2096 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2097$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2098 { (exit 1); exit 1; }; } 2099fi 2100 2101# These three variables are undocumented and unsupported, 2102# and are intended to be withdrawn in a future Autoconf release. 2103# They can cause serious problems if a builder's source tree is in a directory 2104# whose full name contains unusual characters. 2105ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2106ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2107ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2108 2109 2110 2111am__api_version='1.10' 2112 2113# Find a good install program. We prefer a C program (faster), 2114# so one script is as good as another. But avoid the broken or 2115# incompatible versions: 2116# SysV /etc/install, /usr/sbin/install 2117# SunOS /usr/etc/install 2118# IRIX /sbin/install 2119# AIX /bin/install 2120# AmigaOS /C/install, which installs bootblocks on floppy discs 2121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2122# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2124# OS/2's system install, which has a completely different semantic 2125# ./install, which can be erroneously created by make from ./install.sh. 2126# Reject install programs that cannot install multiple files. 2127{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2128$as_echo_n "checking for a BSD-compatible install... " >&6; } 2129if test -z "$INSTALL"; then 2130if test "${ac_cv_path_install+set}" = set; then 2131 $as_echo_n "(cached) " >&6 2132else 2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2134for as_dir in $PATH 2135do 2136 IFS=$as_save_IFS 2137 test -z "$as_dir" && as_dir=. 2138 # Account for people who put trailing slashes in PATH elements. 2139case $as_dir/ in 2140 ./ | .// | /cC/* | \ 2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2143 /usr/ucb/* ) ;; 2144 *) 2145 # OSF1 and SCO ODT 3.0 have their own names for install. 2146 # Don't use installbsd from OSF since it installs stuff as root 2147 # by default. 2148 for ac_prog in ginstall scoinst install; do 2149 for ac_exec_ext in '' $ac_executable_extensions; do 2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2151 if test $ac_prog = install && 2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2153 # AIX install. It has an incompatible calling convention. 2154 : 2155 elif test $ac_prog = install && 2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2157 # program-specific install script used by HP pwplus--don't use. 2158 : 2159 else 2160 rm -rf conftest.one conftest.two conftest.dir 2161 echo one > conftest.one 2162 echo two > conftest.two 2163 mkdir conftest.dir 2164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2165 test -s conftest.one && test -s conftest.two && 2166 test -s conftest.dir/conftest.one && 2167 test -s conftest.dir/conftest.two 2168 then 2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2170 break 3 2171 fi 2172 fi 2173 fi 2174 done 2175 done 2176 ;; 2177esac 2178 2179done 2180IFS=$as_save_IFS 2181 2182rm -rf conftest.one conftest.two conftest.dir 2183 2184fi 2185 if test "${ac_cv_path_install+set}" = set; then 2186 INSTALL=$ac_cv_path_install 2187 else 2188 # As a last resort, use the slow shell script. Don't cache a 2189 # value for INSTALL within a source directory, because that will 2190 # break other packages using the cache if that directory is 2191 # removed, or if the value is a relative name. 2192 INSTALL=$ac_install_sh 2193 fi 2194fi 2195{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2196$as_echo "$INSTALL" >&6; } 2197 2198# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2199# It thinks the first close brace ends the variable substitution. 2200test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2201 2202test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2203 2204test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2205 2206{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2207$as_echo_n "checking whether build environment is sane... " >&6; } 2208# Just in case 2209sleep 1 2210echo timestamp > conftest.file 2211# Do `set' in a subshell so we don't clobber the current shell's 2212# arguments. Must try -L first in case configure is actually a 2213# symlink; some systems play weird games with the mod time of symlinks 2214# (eg FreeBSD returns the mod time of the symlink's containing 2215# directory). 2216if ( 2217 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2218 if test "$*" = "X"; then 2219 # -L didn't work. 2220 set X `ls -t $srcdir/configure conftest.file` 2221 fi 2222 rm -f conftest.file 2223 if test "$*" != "X $srcdir/configure conftest.file" \ 2224 && test "$*" != "X conftest.file $srcdir/configure"; then 2225 2226 # If neither matched, then we have a broken ls. This can happen 2227 # if, for instance, CONFIG_SHELL is bash and it inherits a 2228 # broken ls alias from the environment. This has actually 2229 # happened. Such a system could not be considered "sane". 2230 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2231alias in your environment" >&5 2232$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2233alias in your environment" >&2;} 2234 { (exit 1); exit 1; }; } 2235 fi 2236 2237 test "$2" = conftest.file 2238 ) 2239then 2240 # Ok. 2241 : 2242else 2243 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2244Check your system clock" >&5 2245$as_echo "$as_me: error: newly created file is older than distributed files! 2246Check your system clock" >&2;} 2247 { (exit 1); exit 1; }; } 2248fi 2249{ $as_echo "$as_me:$LINENO: result: yes" >&5 2250$as_echo "yes" >&6; } 2251test "$program_prefix" != NONE && 2252 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2253# Use a double $ so make ignores it. 2254test "$program_suffix" != NONE && 2255 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2256# Double any \ or $. 2257# By default was `s,x,x', remove it if useless. 2258ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2259program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2260 2261# expand $ac_aux_dir to an absolute path 2262am_aux_dir=`cd $ac_aux_dir && pwd` 2263 2264test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2265# Use eval to expand $SHELL 2266if eval "$MISSING --run true"; then 2267 am_missing_run="$MISSING --run " 2268else 2269 am_missing_run= 2270 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2271$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2272fi 2273 2274{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2275$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2276if test -z "$MKDIR_P"; then 2277 if test "${ac_cv_path_mkdir+set}" = set; then 2278 $as_echo_n "(cached) " >&6 2279else 2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2281for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2282do 2283 IFS=$as_save_IFS 2284 test -z "$as_dir" && as_dir=. 2285 for ac_prog in mkdir gmkdir; do 2286 for ac_exec_ext in '' $ac_executable_extensions; do 2287 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2288 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2289 'mkdir (GNU coreutils) '* | \ 2290 'mkdir (coreutils) '* | \ 2291 'mkdir (fileutils) '4.1*) 2292 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2293 break 3;; 2294 esac 2295 done 2296 done 2297done 2298IFS=$as_save_IFS 2299 2300fi 2301 2302 if test "${ac_cv_path_mkdir+set}" = set; then 2303 MKDIR_P="$ac_cv_path_mkdir -p" 2304 else 2305 # As a last resort, use the slow shell script. Don't cache a 2306 # value for MKDIR_P within a source directory, because that will 2307 # break other packages using the cache if that directory is 2308 # removed, or if the value is a relative name. 2309 test -d ./--version && rmdir ./--version 2310 MKDIR_P="$ac_install_sh -d" 2311 fi 2312fi 2313{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2314$as_echo "$MKDIR_P" >&6; } 2315 2316mkdir_p="$MKDIR_P" 2317case $mkdir_p in 2318 [\\/$]* | ?:[\\/]*) ;; 2319 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2320esac 2321 2322for ac_prog in gawk mawk nawk awk 2323do 2324 # Extract the first word of "$ac_prog", so it can be a program name with args. 2325set dummy $ac_prog; ac_word=$2 2326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2327$as_echo_n "checking for $ac_word... " >&6; } 2328if test "${ac_cv_prog_AWK+set}" = set; then 2329 $as_echo_n "(cached) " >&6 2330else 2331 if test -n "$AWK"; then 2332 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2333else 2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2335for as_dir in $PATH 2336do 2337 IFS=$as_save_IFS 2338 test -z "$as_dir" && as_dir=. 2339 for ac_exec_ext in '' $ac_executable_extensions; do 2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2341 ac_cv_prog_AWK="$ac_prog" 2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2343 break 2 2344 fi 2345done 2346done 2347IFS=$as_save_IFS 2348 2349fi 2350fi 2351AWK=$ac_cv_prog_AWK 2352if test -n "$AWK"; then 2353 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2354$as_echo "$AWK" >&6; } 2355else 2356 { $as_echo "$as_me:$LINENO: result: no" >&5 2357$as_echo "no" >&6; } 2358fi 2359 2360 2361 test -n "$AWK" && break 2362done 2363 2364{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2365$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2366set x ${MAKE-make} 2367ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2368if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2369 $as_echo_n "(cached) " >&6 2370else 2371 cat >conftest.make <<\_ACEOF 2372SHELL = /bin/sh 2373all: 2374 @echo '@@@%%%=$(MAKE)=@@@%%%' 2375_ACEOF 2376# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2377case `${MAKE-make} -f conftest.make 2>/dev/null` in 2378 *@@@%%%=?*=@@@%%%*) 2379 eval ac_cv_prog_make_${ac_make}_set=yes;; 2380 *) 2381 eval ac_cv_prog_make_${ac_make}_set=no;; 2382esac 2383rm -f conftest.make 2384fi 2385if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2386 { $as_echo "$as_me:$LINENO: result: yes" >&5 2387$as_echo "yes" >&6; } 2388 SET_MAKE= 2389else 2390 { $as_echo "$as_me:$LINENO: result: no" >&5 2391$as_echo "no" >&6; } 2392 SET_MAKE="MAKE=${MAKE-make}" 2393fi 2394 2395rm -rf .tst 2>/dev/null 2396mkdir .tst 2>/dev/null 2397if test -d .tst; then 2398 am__leading_dot=. 2399else 2400 am__leading_dot=_ 2401fi 2402rmdir .tst 2>/dev/null 2403 2404if test "`cd $srcdir && pwd`" != "`pwd`"; then 2405 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2406 # is not polluted with repeated "-I." 2407 am__isrc=' -I$(srcdir)' 2408 # test to see if srcdir already configured 2409 if test -f $srcdir/config.status; then 2410 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2411$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2412 { (exit 1); exit 1; }; } 2413 fi 2414fi 2415 2416# test whether we have cygpath 2417if test -z "$CYGPATH_W"; then 2418 if (cygpath --version) >/dev/null 2>/dev/null; then 2419 CYGPATH_W='cygpath -w' 2420 else 2421 CYGPATH_W=echo 2422 fi 2423fi 2424 2425 2426# Define the identity of the package. 2427 PACKAGE='xf86-video-glint' 2428 VERSION='1.2.3' 2429 2430 2431cat >>confdefs.h <<_ACEOF 2432#define PACKAGE "$PACKAGE" 2433_ACEOF 2434 2435 2436cat >>confdefs.h <<_ACEOF 2437#define VERSION "$VERSION" 2438_ACEOF 2439 2440# Some tools Automake needs. 2441 2442ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2443 2444 2445AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2446 2447 2448AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2449 2450 2451AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2452 2453 2454MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2455 2456install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2457 2458# Installed binaries are usually stripped using `strip' when the user 2459# run `make install-strip'. However `strip' might not be the right 2460# tool to use in cross-compilation environments, therefore Automake 2461# will honor the `STRIP' environment variable to overrule this program. 2462if test "$cross_compiling" != no; then 2463 if test -n "$ac_tool_prefix"; then 2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2465set dummy ${ac_tool_prefix}strip; ac_word=$2 2466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2467$as_echo_n "checking for $ac_word... " >&6; } 2468if test "${ac_cv_prog_STRIP+set}" = set; then 2469 $as_echo_n "(cached) " >&6 2470else 2471 if test -n "$STRIP"; then 2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2473else 2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2475for as_dir in $PATH 2476do 2477 IFS=$as_save_IFS 2478 test -z "$as_dir" && as_dir=. 2479 for ac_exec_ext in '' $ac_executable_extensions; do 2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2483 break 2 2484 fi 2485done 2486done 2487IFS=$as_save_IFS 2488 2489fi 2490fi 2491STRIP=$ac_cv_prog_STRIP 2492if test -n "$STRIP"; then 2493 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2494$as_echo "$STRIP" >&6; } 2495else 2496 { $as_echo "$as_me:$LINENO: result: no" >&5 2497$as_echo "no" >&6; } 2498fi 2499 2500 2501fi 2502if test -z "$ac_cv_prog_STRIP"; then 2503 ac_ct_STRIP=$STRIP 2504 # Extract the first word of "strip", so it can be a program name with args. 2505set dummy strip; ac_word=$2 2506{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2507$as_echo_n "checking for $ac_word... " >&6; } 2508if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2509 $as_echo_n "(cached) " >&6 2510else 2511 if test -n "$ac_ct_STRIP"; then 2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2513else 2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515for as_dir in $PATH 2516do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2521 ac_cv_prog_ac_ct_STRIP="strip" 2522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525done 2526done 2527IFS=$as_save_IFS 2528 2529fi 2530fi 2531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2532if test -n "$ac_ct_STRIP"; then 2533 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2534$as_echo "$ac_ct_STRIP" >&6; } 2535else 2536 { $as_echo "$as_me:$LINENO: result: no" >&5 2537$as_echo "no" >&6; } 2538fi 2539 2540 if test "x$ac_ct_STRIP" = x; then 2541 STRIP=":" 2542 else 2543 case $cross_compiling:$ac_tool_warned in 2544yes:) 2545{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2547ac_tool_warned=yes ;; 2548esac 2549 STRIP=$ac_ct_STRIP 2550 fi 2551else 2552 STRIP="$ac_cv_prog_STRIP" 2553fi 2554 2555fi 2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2557 2558# We need awk for the "check" target. The system "awk" is bad on 2559# some platforms. 2560# Always define AMTAR for backward compatibility. 2561 2562AMTAR=${AMTAR-"${am_missing_run}tar"} 2563 2564am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2565 2566 2567 2568 2569 2570 2571{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2572$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2573 # Check whether --enable-maintainer-mode was given. 2574if test "${enable_maintainer_mode+set}" = set; then 2575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2576else 2577 USE_MAINTAINER_MODE=no 2578fi 2579 2580 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2581$as_echo "$USE_MAINTAINER_MODE" >&6; } 2582 if test $USE_MAINTAINER_MODE = yes; then 2583 MAINTAINER_MODE_TRUE= 2584 MAINTAINER_MODE_FALSE='#' 2585else 2586 MAINTAINER_MODE_TRUE='#' 2587 MAINTAINER_MODE_FALSE= 2588fi 2589 2590 MAINT=$MAINTAINER_MODE_TRUE 2591 2592 2593 2594# Checks for programs. 2595# Check whether --enable-static was given. 2596if test "${enable_static+set}" = set; then 2597 enableval=$enable_static; p=${PACKAGE-default} 2598 case $enableval in 2599 yes) enable_static=yes ;; 2600 no) enable_static=no ;; 2601 *) 2602 enable_static=no 2603 # Look at the argument we got. We use all the common list separators. 2604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2605 for pkg in $enableval; do 2606 IFS="$lt_save_ifs" 2607 if test "X$pkg" = "X$p"; then 2608 enable_static=yes 2609 fi 2610 done 2611 IFS="$lt_save_ifs" 2612 ;; 2613 esac 2614else 2615 enable_static=no 2616fi 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626case `pwd` in 2627 *\ * | *\ *) 2628 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2629$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2630esac 2631 2632 2633 2634macro_version='2.2.6' 2635macro_revision='1.3012' 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649ltmain="$ac_aux_dir/ltmain.sh" 2650 2651# Make sure we can run config.sub. 2652$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2653 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2654$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2655 { (exit 1); exit 1; }; } 2656 2657{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2658$as_echo_n "checking build system type... " >&6; } 2659if test "${ac_cv_build+set}" = set; then 2660 $as_echo_n "(cached) " >&6 2661else 2662 ac_build_alias=$build_alias 2663test "x$ac_build_alias" = x && 2664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2665test "x$ac_build_alias" = x && 2666 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2667$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2668 { (exit 1); exit 1; }; } 2669ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2671$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2672 { (exit 1); exit 1; }; } 2673 2674fi 2675{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2676$as_echo "$ac_cv_build" >&6; } 2677case $ac_cv_build in 2678*-*-*) ;; 2679*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2680$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2681 { (exit 1); exit 1; }; };; 2682esac 2683build=$ac_cv_build 2684ac_save_IFS=$IFS; IFS='-' 2685set x $ac_cv_build 2686shift 2687build_cpu=$1 2688build_vendor=$2 2689shift; shift 2690# Remember, the first character of IFS is used to create $*, 2691# except with old shells: 2692build_os=$* 2693IFS=$ac_save_IFS 2694case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2695 2696 2697{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2698$as_echo_n "checking host system type... " >&6; } 2699if test "${ac_cv_host+set}" = set; then 2700 $as_echo_n "(cached) " >&6 2701else 2702 if test "x$host_alias" = x; then 2703 ac_cv_host=$ac_cv_build 2704else 2705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2706 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2707$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2708 { (exit 1); exit 1; }; } 2709fi 2710 2711fi 2712{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2713$as_echo "$ac_cv_host" >&6; } 2714case $ac_cv_host in 2715*-*-*) ;; 2716*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2717$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2718 { (exit 1); exit 1; }; };; 2719esac 2720host=$ac_cv_host 2721ac_save_IFS=$IFS; IFS='-' 2722set x $ac_cv_host 2723shift 2724host_cpu=$1 2725host_vendor=$2 2726shift; shift 2727# Remember, the first character of IFS is used to create $*, 2728# except with old shells: 2729host_os=$* 2730IFS=$ac_save_IFS 2731case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2732 2733 2734DEPDIR="${am__leading_dot}deps" 2735 2736ac_config_commands="$ac_config_commands depfiles" 2737 2738 2739am_make=${MAKE-make} 2740cat > confinc << 'END' 2741am__doit: 2742 @echo done 2743.PHONY: am__doit 2744END 2745# If we don't find an include directive, just comment out the code. 2746{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2747$as_echo_n "checking for style of include used by $am_make... " >&6; } 2748am__include="#" 2749am__quote= 2750_am_result=none 2751# First try GNU make style include. 2752echo "include confinc" > confmf 2753# We grep out `Entering directory' and `Leaving directory' 2754# messages which can occur if `w' ends up in MAKEFLAGS. 2755# In particular we don't look at `^make:' because GNU make might 2756# be invoked under some other name (usually "gmake"), in which 2757# case it prints its new name instead of `make'. 2758if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2759 am__include=include 2760 am__quote= 2761 _am_result=GNU 2762fi 2763# Now try BSD make style include. 2764if test "$am__include" = "#"; then 2765 echo '.include "confinc"' > confmf 2766 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2767 am__include=.include 2768 am__quote="\"" 2769 _am_result=BSD 2770 fi 2771fi 2772 2773 2774{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2775$as_echo "$_am_result" >&6; } 2776rm -f confinc confmf 2777 2778# Check whether --enable-dependency-tracking was given. 2779if test "${enable_dependency_tracking+set}" = set; then 2780 enableval=$enable_dependency_tracking; 2781fi 2782 2783if test "x$enable_dependency_tracking" != xno; then 2784 am_depcomp="$ac_aux_dir/depcomp" 2785 AMDEPBACKSLASH='\' 2786fi 2787 if test "x$enable_dependency_tracking" != xno; then 2788 AMDEP_TRUE= 2789 AMDEP_FALSE='#' 2790else 2791 AMDEP_TRUE='#' 2792 AMDEP_FALSE= 2793fi 2794 2795 2796ac_ext=c 2797ac_cpp='$CPP $CPPFLAGS' 2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2800ac_compiler_gnu=$ac_cv_c_compiler_gnu 2801if test -n "$ac_tool_prefix"; then 2802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2803set dummy ${ac_tool_prefix}gcc; ac_word=$2 2804{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2805$as_echo_n "checking for $ac_word... " >&6; } 2806if test "${ac_cv_prog_CC+set}" = set; then 2807 $as_echo_n "(cached) " >&6 2808else 2809 if test -n "$CC"; then 2810 ac_cv_prog_CC="$CC" # Let the user override the test. 2811else 2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813for as_dir in $PATH 2814do 2815 IFS=$as_save_IFS 2816 test -z "$as_dir" && as_dir=. 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2819 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824done 2825IFS=$as_save_IFS 2826 2827fi 2828fi 2829CC=$ac_cv_prog_CC 2830if test -n "$CC"; then 2831 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2832$as_echo "$CC" >&6; } 2833else 2834 { $as_echo "$as_me:$LINENO: result: no" >&5 2835$as_echo "no" >&6; } 2836fi 2837 2838 2839fi 2840if test -z "$ac_cv_prog_CC"; then 2841 ac_ct_CC=$CC 2842 # Extract the first word of "gcc", so it can be a program name with args. 2843set dummy gcc; ac_word=$2 2844{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2845$as_echo_n "checking for $ac_word... " >&6; } 2846if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2847 $as_echo_n "(cached) " >&6 2848else 2849 if test -n "$ac_ct_CC"; then 2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2851else 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853for as_dir in $PATH 2854do 2855 IFS=$as_save_IFS 2856 test -z "$as_dir" && as_dir=. 2857 for ac_exec_ext in '' $ac_executable_extensions; do 2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2859 ac_cv_prog_ac_ct_CC="gcc" 2860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2861 break 2 2862 fi 2863done 2864done 2865IFS=$as_save_IFS 2866 2867fi 2868fi 2869ac_ct_CC=$ac_cv_prog_ac_ct_CC 2870if test -n "$ac_ct_CC"; then 2871 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2872$as_echo "$ac_ct_CC" >&6; } 2873else 2874 { $as_echo "$as_me:$LINENO: result: no" >&5 2875$as_echo "no" >&6; } 2876fi 2877 2878 if test "x$ac_ct_CC" = x; then 2879 CC="" 2880 else 2881 case $cross_compiling:$ac_tool_warned in 2882yes:) 2883{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2885ac_tool_warned=yes ;; 2886esac 2887 CC=$ac_ct_CC 2888 fi 2889else 2890 CC="$ac_cv_prog_CC" 2891fi 2892 2893if test -z "$CC"; then 2894 if test -n "$ac_tool_prefix"; then 2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2896set dummy ${ac_tool_prefix}cc; ac_word=$2 2897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2898$as_echo_n "checking for $ac_word... " >&6; } 2899if test "${ac_cv_prog_CC+set}" = set; then 2900 $as_echo_n "(cached) " >&6 2901else 2902 if test -n "$CC"; then 2903 ac_cv_prog_CC="$CC" # Let the user override the test. 2904else 2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2906for as_dir in $PATH 2907do 2908 IFS=$as_save_IFS 2909 test -z "$as_dir" && as_dir=. 2910 for ac_exec_ext in '' $ac_executable_extensions; do 2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2912 ac_cv_prog_CC="${ac_tool_prefix}cc" 2913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2914 break 2 2915 fi 2916done 2917done 2918IFS=$as_save_IFS 2919 2920fi 2921fi 2922CC=$ac_cv_prog_CC 2923if test -n "$CC"; then 2924 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2925$as_echo "$CC" >&6; } 2926else 2927 { $as_echo "$as_me:$LINENO: result: no" >&5 2928$as_echo "no" >&6; } 2929fi 2930 2931 2932 fi 2933fi 2934if test -z "$CC"; then 2935 # Extract the first word of "cc", so it can be a program name with args. 2936set dummy cc; ac_word=$2 2937{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2938$as_echo_n "checking for $ac_word... " >&6; } 2939if test "${ac_cv_prog_CC+set}" = set; then 2940 $as_echo_n "(cached) " >&6 2941else 2942 if test -n "$CC"; then 2943 ac_cv_prog_CC="$CC" # Let the user override the test. 2944else 2945 ac_prog_rejected=no 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2954 ac_prog_rejected=yes 2955 continue 2956 fi 2957 ac_cv_prog_CC="cc" 2958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961done 2962done 2963IFS=$as_save_IFS 2964 2965if test $ac_prog_rejected = yes; then 2966 # We found a bogon in the path, so make sure we never use it. 2967 set dummy $ac_cv_prog_CC 2968 shift 2969 if test $# != 0; then 2970 # We chose a different compiler from the bogus one. 2971 # However, it has the same basename, so the bogon will be chosen 2972 # first if we set CC to just the basename; use the full file name. 2973 shift 2974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2975 fi 2976fi 2977fi 2978fi 2979CC=$ac_cv_prog_CC 2980if test -n "$CC"; then 2981 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2982$as_echo "$CC" >&6; } 2983else 2984 { $as_echo "$as_me:$LINENO: result: no" >&5 2985$as_echo "no" >&6; } 2986fi 2987 2988 2989fi 2990if test -z "$CC"; then 2991 if test -n "$ac_tool_prefix"; then 2992 for ac_prog in cl.exe 2993 do 2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2995set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2996{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2997$as_echo_n "checking for $ac_word... " >&6; } 2998if test "${ac_cv_prog_CC+set}" = set; then 2999 $as_echo_n "(cached) " >&6 3000else 3001 if test -n "$CC"; then 3002 ac_cv_prog_CC="$CC" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 test -z "$as_dir" && as_dir=. 3009 for ac_exec_ext in '' $ac_executable_extensions; do 3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016done 3017IFS=$as_save_IFS 3018 3019fi 3020fi 3021CC=$ac_cv_prog_CC 3022if test -n "$CC"; then 3023 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3024$as_echo "$CC" >&6; } 3025else 3026 { $as_echo "$as_me:$LINENO: result: no" >&5 3027$as_echo "no" >&6; } 3028fi 3029 3030 3031 test -n "$CC" && break 3032 done 3033fi 3034if test -z "$CC"; then 3035 ac_ct_CC=$CC 3036 for ac_prog in cl.exe 3037do 3038 # Extract the first word of "$ac_prog", so it can be a program name with args. 3039set dummy $ac_prog; ac_word=$2 3040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3041$as_echo_n "checking for $ac_word... " >&6; } 3042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3043 $as_echo_n "(cached) " >&6 3044else 3045 if test -n "$ac_ct_CC"; then 3046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3047else 3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3049for as_dir in $PATH 3050do 3051 IFS=$as_save_IFS 3052 test -z "$as_dir" && as_dir=. 3053 for ac_exec_ext in '' $ac_executable_extensions; do 3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3055 ac_cv_prog_ac_ct_CC="$ac_prog" 3056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060done 3061IFS=$as_save_IFS 3062 3063fi 3064fi 3065ac_ct_CC=$ac_cv_prog_ac_ct_CC 3066if test -n "$ac_ct_CC"; then 3067 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3068$as_echo "$ac_ct_CC" >&6; } 3069else 3070 { $as_echo "$as_me:$LINENO: result: no" >&5 3071$as_echo "no" >&6; } 3072fi 3073 3074 3075 test -n "$ac_ct_CC" && break 3076done 3077 3078 if test "x$ac_ct_CC" = x; then 3079 CC="" 3080 else 3081 case $cross_compiling:$ac_tool_warned in 3082yes:) 3083{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3085ac_tool_warned=yes ;; 3086esac 3087 CC=$ac_ct_CC 3088 fi 3089fi 3090 3091fi 3092 3093 3094test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3096{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3097See \`config.log' for more details." >&5 3098$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3099See \`config.log' for more details." >&2;} 3100 { (exit 1); exit 1; }; }; } 3101 3102# Provide some information about the compiler. 3103$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3104set X $ac_compile 3105ac_compiler=$2 3106{ (ac_try="$ac_compiler --version >&5" 3107case "(($ac_try" in 3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3109 *) ac_try_echo=$ac_try;; 3110esac 3111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3112$as_echo "$ac_try_echo") >&5 3113 (eval "$ac_compiler --version >&5") 2>&5 3114 ac_status=$? 3115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); } 3117{ (ac_try="$ac_compiler -v >&5" 3118case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3123$as_echo "$ac_try_echo") >&5 3124 (eval "$ac_compiler -v >&5") 2>&5 3125 ac_status=$? 3126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } 3128{ (ac_try="$ac_compiler -V >&5" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3134$as_echo "$ac_try_echo") >&5 3135 (eval "$ac_compiler -V >&5") 2>&5 3136 ac_status=$? 3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 (exit $ac_status); } 3139 3140cat >conftest.$ac_ext <<_ACEOF 3141/* confdefs.h. */ 3142_ACEOF 3143cat confdefs.h >>conftest.$ac_ext 3144cat >>conftest.$ac_ext <<_ACEOF 3145/* end confdefs.h. */ 3146 3147int 3148main () 3149{ 3150 3151 ; 3152 return 0; 3153} 3154_ACEOF 3155ac_clean_files_save=$ac_clean_files 3156ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3157# Try to create an executable without -o first, disregard a.out. 3158# It will help us diagnose broken compilers, and finding out an intuition 3159# of exeext. 3160{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3161$as_echo_n "checking for C compiler default output file name... " >&6; } 3162ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3163 3164# The possible output files: 3165ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3166 3167ac_rmfiles= 3168for ac_file in $ac_files 3169do 3170 case $ac_file in 3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3172 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3173 esac 3174done 3175rm -f $ac_rmfiles 3176 3177if { (ac_try="$ac_link_default" 3178case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181esac 3182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3183$as_echo "$ac_try_echo") >&5 3184 (eval "$ac_link_default") 2>&5 3185 ac_status=$? 3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 (exit $ac_status); }; then 3188 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3189# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3190# in a Makefile. We should not override ac_cv_exeext if it was cached, 3191# so that the user can short-circuit this test for compilers unknown to 3192# Autoconf. 3193for ac_file in $ac_files '' 3194do 3195 test -f "$ac_file" || continue 3196 case $ac_file in 3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3198 ;; 3199 [ab].out ) 3200 # We found the default executable, but exeext='' is most 3201 # certainly right. 3202 break;; 3203 *.* ) 3204 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3205 then :; else 3206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3207 fi 3208 # We set ac_cv_exeext here because the later test for it is not 3209 # safe: cross compilers may not add the suffix if given an `-o' 3210 # argument, so we may need to know it at that point already. 3211 # Even if this section looks crufty: it has the advantage of 3212 # actually working. 3213 break;; 3214 * ) 3215 break;; 3216 esac 3217done 3218test "$ac_cv_exeext" = no && ac_cv_exeext= 3219 3220else 3221 ac_file='' 3222fi 3223 3224{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3225$as_echo "$ac_file" >&6; } 3226if test -z "$ac_file"; then 3227 $as_echo "$as_me: failed program was:" >&5 3228sed 's/^/| /' conftest.$ac_ext >&5 3229 3230{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3232{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3233See \`config.log' for more details." >&5 3234$as_echo "$as_me: error: C compiler cannot create executables 3235See \`config.log' for more details." >&2;} 3236 { (exit 77); exit 77; }; }; } 3237fi 3238 3239ac_exeext=$ac_cv_exeext 3240 3241# Check that the compiler produces executables we can run. If not, either 3242# the compiler is broken, or we cross compile. 3243{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3244$as_echo_n "checking whether the C compiler works... " >&6; } 3245# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3246# If not cross compiling, check that we can run a simple program. 3247if test "$cross_compiling" != yes; then 3248 if { ac_try='./$ac_file' 3249 { (case "(($ac_try" in 3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3251 *) ac_try_echo=$ac_try;; 3252esac 3253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3254$as_echo "$ac_try_echo") >&5 3255 (eval "$ac_try") 2>&5 3256 ac_status=$? 3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); }; }; then 3259 cross_compiling=no 3260 else 3261 if test "$cross_compiling" = maybe; then 3262 cross_compiling=yes 3263 else 3264 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3266{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3267If you meant to cross compile, use \`--host'. 3268See \`config.log' for more details." >&5 3269$as_echo "$as_me: error: cannot run C compiled programs. 3270If you meant to cross compile, use \`--host'. 3271See \`config.log' for more details." >&2;} 3272 { (exit 1); exit 1; }; }; } 3273 fi 3274 fi 3275fi 3276{ $as_echo "$as_me:$LINENO: result: yes" >&5 3277$as_echo "yes" >&6; } 3278 3279rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3280ac_clean_files=$ac_clean_files_save 3281# Check that the compiler produces executables we can run. If not, either 3282# the compiler is broken, or we cross compile. 3283{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3284$as_echo_n "checking whether we are cross compiling... " >&6; } 3285{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3286$as_echo "$cross_compiling" >&6; } 3287 3288{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3289$as_echo_n "checking for suffix of executables... " >&6; } 3290if { (ac_try="$ac_link" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3296$as_echo "$ac_try_echo") >&5 3297 (eval "$ac_link") 2>&5 3298 ac_status=$? 3299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3300 (exit $ac_status); }; then 3301 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3302# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3303# work properly (i.e., refer to `conftest.exe'), while it won't with 3304# `rm'. 3305for ac_file in conftest.exe conftest conftest.*; do 3306 test -f "$ac_file" || continue 3307 case $ac_file in 3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3309 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3310 break;; 3311 * ) break;; 3312 esac 3313done 3314else 3315 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3317{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3318See \`config.log' for more details." >&5 3319$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3320See \`config.log' for more details." >&2;} 3321 { (exit 1); exit 1; }; }; } 3322fi 3323 3324rm -f conftest$ac_cv_exeext 3325{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3326$as_echo "$ac_cv_exeext" >&6; } 3327 3328rm -f conftest.$ac_ext 3329EXEEXT=$ac_cv_exeext 3330ac_exeext=$EXEEXT 3331{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3332$as_echo_n "checking for suffix of object files... " >&6; } 3333if test "${ac_cv_objext+set}" = set; then 3334 $as_echo_n "(cached) " >&6 3335else 3336 cat >conftest.$ac_ext <<_ACEOF 3337/* confdefs.h. */ 3338_ACEOF 3339cat confdefs.h >>conftest.$ac_ext 3340cat >>conftest.$ac_ext <<_ACEOF 3341/* end confdefs.h. */ 3342 3343int 3344main () 3345{ 3346 3347 ; 3348 return 0; 3349} 3350_ACEOF 3351rm -f conftest.o conftest.obj 3352if { (ac_try="$ac_compile" 3353case "(($ac_try" in 3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3355 *) ac_try_echo=$ac_try;; 3356esac 3357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3358$as_echo "$ac_try_echo") >&5 3359 (eval "$ac_compile") 2>&5 3360 ac_status=$? 3361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3362 (exit $ac_status); }; then 3363 for ac_file in conftest.o conftest.obj conftest.*; do 3364 test -f "$ac_file" || continue; 3365 case $ac_file in 3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3368 break;; 3369 esac 3370done 3371else 3372 $as_echo "$as_me: failed program was:" >&5 3373sed 's/^/| /' conftest.$ac_ext >&5 3374 3375{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3377{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3378See \`config.log' for more details." >&5 3379$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3380See \`config.log' for more details." >&2;} 3381 { (exit 1); exit 1; }; }; } 3382fi 3383 3384rm -f conftest.$ac_cv_objext conftest.$ac_ext 3385fi 3386{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3387$as_echo "$ac_cv_objext" >&6; } 3388OBJEXT=$ac_cv_objext 3389ac_objext=$OBJEXT 3390{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3391$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3392if test "${ac_cv_c_compiler_gnu+set}" = set; then 3393 $as_echo_n "(cached) " >&6 3394else 3395 cat >conftest.$ac_ext <<_ACEOF 3396/* confdefs.h. */ 3397_ACEOF 3398cat confdefs.h >>conftest.$ac_ext 3399cat >>conftest.$ac_ext <<_ACEOF 3400/* end confdefs.h. */ 3401 3402int 3403main () 3404{ 3405#ifndef __GNUC__ 3406 choke me 3407#endif 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413rm -f conftest.$ac_objext 3414if { (ac_try="$ac_compile" 3415case "(($ac_try" in 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3417 *) ac_try_echo=$ac_try;; 3418esac 3419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3420$as_echo "$ac_try_echo") >&5 3421 (eval "$ac_compile") 2>conftest.er1 3422 ac_status=$? 3423 grep -v '^ *+' conftest.er1 >conftest.err 3424 rm -f conftest.er1 3425 cat conftest.err >&5 3426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3427 (exit $ac_status); } && { 3428 test -z "$ac_c_werror_flag" || 3429 test ! -s conftest.err 3430 } && test -s conftest.$ac_objext; then 3431 ac_compiler_gnu=yes 3432else 3433 $as_echo "$as_me: failed program was:" >&5 3434sed 's/^/| /' conftest.$ac_ext >&5 3435 3436 ac_compiler_gnu=no 3437fi 3438 3439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3440ac_cv_c_compiler_gnu=$ac_compiler_gnu 3441 3442fi 3443{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3444$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3445if test $ac_compiler_gnu = yes; then 3446 GCC=yes 3447else 3448 GCC= 3449fi 3450ac_test_CFLAGS=${CFLAGS+set} 3451ac_save_CFLAGS=$CFLAGS 3452{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3453$as_echo_n "checking whether $CC accepts -g... " >&6; } 3454if test "${ac_cv_prog_cc_g+set}" = set; then 3455 $as_echo_n "(cached) " >&6 3456else 3457 ac_save_c_werror_flag=$ac_c_werror_flag 3458 ac_c_werror_flag=yes 3459 ac_cv_prog_cc_g=no 3460 CFLAGS="-g" 3461 cat >conftest.$ac_ext <<_ACEOF 3462/* confdefs.h. */ 3463_ACEOF 3464cat confdefs.h >>conftest.$ac_ext 3465cat >>conftest.$ac_ext <<_ACEOF 3466/* end confdefs.h. */ 3467 3468int 3469main () 3470{ 3471 3472 ; 3473 return 0; 3474} 3475_ACEOF 3476rm -f conftest.$ac_objext 3477if { (ac_try="$ac_compile" 3478case "(($ac_try" in 3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3480 *) ac_try_echo=$ac_try;; 3481esac 3482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3483$as_echo "$ac_try_echo") >&5 3484 (eval "$ac_compile") 2>conftest.er1 3485 ac_status=$? 3486 grep -v '^ *+' conftest.er1 >conftest.err 3487 rm -f conftest.er1 3488 cat conftest.err >&5 3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3490 (exit $ac_status); } && { 3491 test -z "$ac_c_werror_flag" || 3492 test ! -s conftest.err 3493 } && test -s conftest.$ac_objext; then 3494 ac_cv_prog_cc_g=yes 3495else 3496 $as_echo "$as_me: failed program was:" >&5 3497sed 's/^/| /' conftest.$ac_ext >&5 3498 3499 CFLAGS="" 3500 cat >conftest.$ac_ext <<_ACEOF 3501/* confdefs.h. */ 3502_ACEOF 3503cat confdefs.h >>conftest.$ac_ext 3504cat >>conftest.$ac_ext <<_ACEOF 3505/* end confdefs.h. */ 3506 3507int 3508main () 3509{ 3510 3511 ; 3512 return 0; 3513} 3514_ACEOF 3515rm -f conftest.$ac_objext 3516if { (ac_try="$ac_compile" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3522$as_echo "$ac_try_echo") >&5 3523 (eval "$ac_compile") 2>conftest.er1 3524 ac_status=$? 3525 grep -v '^ *+' conftest.er1 >conftest.err 3526 rm -f conftest.er1 3527 cat conftest.err >&5 3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3529 (exit $ac_status); } && { 3530 test -z "$ac_c_werror_flag" || 3531 test ! -s conftest.err 3532 } && test -s conftest.$ac_objext; then 3533 : 3534else 3535 $as_echo "$as_me: failed program was:" >&5 3536sed 's/^/| /' conftest.$ac_ext >&5 3537 3538 ac_c_werror_flag=$ac_save_c_werror_flag 3539 CFLAGS="-g" 3540 cat >conftest.$ac_ext <<_ACEOF 3541/* confdefs.h. */ 3542_ACEOF 3543cat confdefs.h >>conftest.$ac_ext 3544cat >>conftest.$ac_ext <<_ACEOF 3545/* end confdefs.h. */ 3546 3547int 3548main () 3549{ 3550 3551 ; 3552 return 0; 3553} 3554_ACEOF 3555rm -f conftest.$ac_objext 3556if { (ac_try="$ac_compile" 3557case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560esac 3561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3562$as_echo "$ac_try_echo") >&5 3563 (eval "$ac_compile") 2>conftest.er1 3564 ac_status=$? 3565 grep -v '^ *+' conftest.er1 >conftest.err 3566 rm -f conftest.er1 3567 cat conftest.err >&5 3568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3569 (exit $ac_status); } && { 3570 test -z "$ac_c_werror_flag" || 3571 test ! -s conftest.err 3572 } && test -s conftest.$ac_objext; then 3573 ac_cv_prog_cc_g=yes 3574else 3575 $as_echo "$as_me: failed program was:" >&5 3576sed 's/^/| /' conftest.$ac_ext >&5 3577 3578 3579fi 3580 3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3582fi 3583 3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3585fi 3586 3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3588 ac_c_werror_flag=$ac_save_c_werror_flag 3589fi 3590{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3591$as_echo "$ac_cv_prog_cc_g" >&6; } 3592if test "$ac_test_CFLAGS" = set; then 3593 CFLAGS=$ac_save_CFLAGS 3594elif test $ac_cv_prog_cc_g = yes; then 3595 if test "$GCC" = yes; then 3596 CFLAGS="-g -O2" 3597 else 3598 CFLAGS="-g" 3599 fi 3600else 3601 if test "$GCC" = yes; then 3602 CFLAGS="-O2" 3603 else 3604 CFLAGS= 3605 fi 3606fi 3607{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3608$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3609if test "${ac_cv_prog_cc_c89+set}" = set; then 3610 $as_echo_n "(cached) " >&6 3611else 3612 ac_cv_prog_cc_c89=no 3613ac_save_CC=$CC 3614cat >conftest.$ac_ext <<_ACEOF 3615/* confdefs.h. */ 3616_ACEOF 3617cat confdefs.h >>conftest.$ac_ext 3618cat >>conftest.$ac_ext <<_ACEOF 3619/* end confdefs.h. */ 3620#include <stdarg.h> 3621#include <stdio.h> 3622#include <sys/types.h> 3623#include <sys/stat.h> 3624/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3625struct buf { int x; }; 3626FILE * (*rcsopen) (struct buf *, struct stat *, int); 3627static char *e (p, i) 3628 char **p; 3629 int i; 3630{ 3631 return p[i]; 3632} 3633static char *f (char * (*g) (char **, int), char **p, ...) 3634{ 3635 char *s; 3636 va_list v; 3637 va_start (v,p); 3638 s = g (p, va_arg (v,int)); 3639 va_end (v); 3640 return s; 3641} 3642 3643/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3644 function prototypes and stuff, but not '\xHH' hex character constants. 3645 These don't provoke an error unfortunately, instead are silently treated 3646 as 'x'. The following induces an error, until -std is added to get 3647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3648 array size at least. It's necessary to write '\x00'==0 to get something 3649 that's true only with -std. */ 3650int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3651 3652/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3653 inside strings and character constants. */ 3654#define FOO(x) 'x' 3655int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3656 3657int test (int i, double x); 3658struct s1 {int (*f) (int a);}; 3659struct s2 {int (*f) (double a);}; 3660int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3661int argc; 3662char **argv; 3663int 3664main () 3665{ 3666return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3673do 3674 CC="$ac_save_CC $ac_arg" 3675 rm -f conftest.$ac_objext 3676if { (ac_try="$ac_compile" 3677case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3682$as_echo "$ac_try_echo") >&5 3683 (eval "$ac_compile") 2>conftest.er1 3684 ac_status=$? 3685 grep -v '^ *+' conftest.er1 >conftest.err 3686 rm -f conftest.er1 3687 cat conftest.err >&5 3688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3689 (exit $ac_status); } && { 3690 test -z "$ac_c_werror_flag" || 3691 test ! -s conftest.err 3692 } && test -s conftest.$ac_objext; then 3693 ac_cv_prog_cc_c89=$ac_arg 3694else 3695 $as_echo "$as_me: failed program was:" >&5 3696sed 's/^/| /' conftest.$ac_ext >&5 3697 3698 3699fi 3700 3701rm -f core conftest.err conftest.$ac_objext 3702 test "x$ac_cv_prog_cc_c89" != "xno" && break 3703done 3704rm -f conftest.$ac_ext 3705CC=$ac_save_CC 3706 3707fi 3708# AC_CACHE_VAL 3709case "x$ac_cv_prog_cc_c89" in 3710 x) 3711 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3712$as_echo "none needed" >&6; } ;; 3713 xno) 3714 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3715$as_echo "unsupported" >&6; } ;; 3716 *) 3717 CC="$CC $ac_cv_prog_cc_c89" 3718 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3719$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3720esac 3721 3722 3723ac_ext=c 3724ac_cpp='$CPP $CPPFLAGS' 3725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3727ac_compiler_gnu=$ac_cv_c_compiler_gnu 3728 3729depcc="$CC" am_compiler_list= 3730 3731{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3732$as_echo_n "checking dependency style of $depcc... " >&6; } 3733if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3734 $as_echo_n "(cached) " >&6 3735else 3736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3737 # We make a subdir and do the tests there. Otherwise we can end up 3738 # making bogus files that we don't know about and never remove. For 3739 # instance it was reported that on HP-UX the gcc test will end up 3740 # making a dummy file named `D' -- because `-MD' means `put the output 3741 # in D'. 3742 mkdir conftest.dir 3743 # Copy depcomp to subdir because otherwise we won't find it if we're 3744 # using a relative directory. 3745 cp "$am_depcomp" conftest.dir 3746 cd conftest.dir 3747 # We will build objects and dependencies in a subdirectory because 3748 # it helps to detect inapplicable dependency modes. For instance 3749 # both Tru64's cc and ICC support -MD to output dependencies as a 3750 # side effect of compilation, but ICC will put the dependencies in 3751 # the current directory while Tru64 will put them in the object 3752 # directory. 3753 mkdir sub 3754 3755 am_cv_CC_dependencies_compiler_type=none 3756 if test "$am_compiler_list" = ""; then 3757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3758 fi 3759 for depmode in $am_compiler_list; do 3760 # Setup a source with many dependencies, because some compilers 3761 # like to wrap large dependency lists on column 80 (with \), and 3762 # we should not choose a depcomp mode which is confused by this. 3763 # 3764 # We need to recreate these files for each test, as the compiler may 3765 # overwrite some of them when testing with obscure command lines. 3766 # This happens at least with the AIX C compiler. 3767 : > sub/conftest.c 3768 for i in 1 2 3 4 5 6; do 3769 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3770 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3771 # Solaris 8's {/usr,}/bin/sh. 3772 touch sub/conftst$i.h 3773 done 3774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3775 3776 case $depmode in 3777 nosideeffect) 3778 # after this tag, mechanisms are not by side-effect, so they'll 3779 # only be used when explicitly requested 3780 if test "x$enable_dependency_tracking" = xyes; then 3781 continue 3782 else 3783 break 3784 fi 3785 ;; 3786 none) break ;; 3787 esac 3788 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3789 # mode. It turns out that the SunPro C++ compiler does not properly 3790 # handle `-M -o', and we need to detect this. 3791 if depmode=$depmode \ 3792 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3794 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3795 >/dev/null 2>conftest.err && 3796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3798 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3800 # icc doesn't choke on unknown options, it will just issue warnings 3801 # or remarks (even with -Werror). So we grep stderr for any message 3802 # that says an option was ignored or not supported. 3803 # When given -MP, icc 7.0 and 7.1 complain thusly: 3804 # icc: Command line warning: ignoring option '-M'; no argument required 3805 # The diagnosis changed in icc 8.0: 3806 # icc: Command line remark: option '-MP' not supported 3807 if (grep 'ignoring option' conftest.err || 3808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3809 am_cv_CC_dependencies_compiler_type=$depmode 3810 break 3811 fi 3812 fi 3813 done 3814 3815 cd .. 3816 rm -rf conftest.dir 3817else 3818 am_cv_CC_dependencies_compiler_type=none 3819fi 3820 3821fi 3822{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3823$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3824CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3825 3826 if 3827 test "x$enable_dependency_tracking" != xno \ 3828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3829 am__fastdepCC_TRUE= 3830 am__fastdepCC_FALSE='#' 3831else 3832 am__fastdepCC_TRUE='#' 3833 am__fastdepCC_FALSE= 3834fi 3835 3836 3837{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3838$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3839if test "${ac_cv_path_SED+set}" = set; then 3840 $as_echo_n "(cached) " >&6 3841else 3842 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3843 for ac_i in 1 2 3 4 5 6 7; do 3844 ac_script="$ac_script$as_nl$ac_script" 3845 done 3846 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3847 $as_unset ac_script || ac_script= 3848 if test -z "$SED"; then 3849 ac_path_SED_found=false 3850 # Loop through the user's path and test for each of PROGNAME-LIST 3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3852for as_dir in $PATH 3853do 3854 IFS=$as_save_IFS 3855 test -z "$as_dir" && as_dir=. 3856 for ac_prog in sed gsed; do 3857 for ac_exec_ext in '' $ac_executable_extensions; do 3858 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3859 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3860# Check for GNU ac_path_SED and select it if it is found. 3861 # Check for GNU $ac_path_SED 3862case `"$ac_path_SED" --version 2>&1` in 3863*GNU*) 3864 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3865*) 3866 ac_count=0 3867 $as_echo_n 0123456789 >"conftest.in" 3868 while : 3869 do 3870 cat "conftest.in" "conftest.in" >"conftest.tmp" 3871 mv "conftest.tmp" "conftest.in" 3872 cp "conftest.in" "conftest.nl" 3873 $as_echo '' >> "conftest.nl" 3874 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3876 ac_count=`expr $ac_count + 1` 3877 if test $ac_count -gt ${ac_path_SED_max-0}; then 3878 # Best one so far, save it but keep looking for a better one 3879 ac_cv_path_SED="$ac_path_SED" 3880 ac_path_SED_max=$ac_count 3881 fi 3882 # 10*(2^10) chars as input seems more than enough 3883 test $ac_count -gt 10 && break 3884 done 3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3886esac 3887 3888 $ac_path_SED_found && break 3 3889 done 3890 done 3891done 3892IFS=$as_save_IFS 3893 if test -z "$ac_cv_path_SED"; then 3894 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3895$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3896 { (exit 1); exit 1; }; } 3897 fi 3898else 3899 ac_cv_path_SED=$SED 3900fi 3901 3902fi 3903{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3904$as_echo "$ac_cv_path_SED" >&6; } 3905 SED="$ac_cv_path_SED" 3906 rm -f conftest.sed 3907 3908test -z "$SED" && SED=sed 3909Xsed="$SED -e 1s/^X//" 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3922$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3923if test "${ac_cv_path_GREP+set}" = set; then 3924 $as_echo_n "(cached) " >&6 3925else 3926 if test -z "$GREP"; then 3927 ac_path_GREP_found=false 3928 # Loop through the user's path and test for each of PROGNAME-LIST 3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3930for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3931do 3932 IFS=$as_save_IFS 3933 test -z "$as_dir" && as_dir=. 3934 for ac_prog in grep ggrep; do 3935 for ac_exec_ext in '' $ac_executable_extensions; do 3936 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3937 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3938# Check for GNU ac_path_GREP and select it if it is found. 3939 # Check for GNU $ac_path_GREP 3940case `"$ac_path_GREP" --version 2>&1` in 3941*GNU*) 3942 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3943*) 3944 ac_count=0 3945 $as_echo_n 0123456789 >"conftest.in" 3946 while : 3947 do 3948 cat "conftest.in" "conftest.in" >"conftest.tmp" 3949 mv "conftest.tmp" "conftest.in" 3950 cp "conftest.in" "conftest.nl" 3951 $as_echo 'GREP' >> "conftest.nl" 3952 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3954 ac_count=`expr $ac_count + 1` 3955 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3956 # Best one so far, save it but keep looking for a better one 3957 ac_cv_path_GREP="$ac_path_GREP" 3958 ac_path_GREP_max=$ac_count 3959 fi 3960 # 10*(2^10) chars as input seems more than enough 3961 test $ac_count -gt 10 && break 3962 done 3963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3964esac 3965 3966 $ac_path_GREP_found && break 3 3967 done 3968 done 3969done 3970IFS=$as_save_IFS 3971 if test -z "$ac_cv_path_GREP"; then 3972 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3973$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3974 { (exit 1); exit 1; }; } 3975 fi 3976else 3977 ac_cv_path_GREP=$GREP 3978fi 3979 3980fi 3981{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3982$as_echo "$ac_cv_path_GREP" >&6; } 3983 GREP="$ac_cv_path_GREP" 3984 3985 3986{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3987$as_echo_n "checking for egrep... " >&6; } 3988if test "${ac_cv_path_EGREP+set}" = set; then 3989 $as_echo_n "(cached) " >&6 3990else 3991 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3992 then ac_cv_path_EGREP="$GREP -E" 3993 else 3994 if test -z "$EGREP"; then 3995 ac_path_EGREP_found=false 3996 # Loop through the user's path and test for each of PROGNAME-LIST 3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3998for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3999do 4000 IFS=$as_save_IFS 4001 test -z "$as_dir" && as_dir=. 4002 for ac_prog in egrep; do 4003 for ac_exec_ext in '' $ac_executable_extensions; do 4004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4005 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4006# Check for GNU ac_path_EGREP and select it if it is found. 4007 # Check for GNU $ac_path_EGREP 4008case `"$ac_path_EGREP" --version 2>&1` in 4009*GNU*) 4010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4011*) 4012 ac_count=0 4013 $as_echo_n 0123456789 >"conftest.in" 4014 while : 4015 do 4016 cat "conftest.in" "conftest.in" >"conftest.tmp" 4017 mv "conftest.tmp" "conftest.in" 4018 cp "conftest.in" "conftest.nl" 4019 $as_echo 'EGREP' >> "conftest.nl" 4020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4022 ac_count=`expr $ac_count + 1` 4023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4024 # Best one so far, save it but keep looking for a better one 4025 ac_cv_path_EGREP="$ac_path_EGREP" 4026 ac_path_EGREP_max=$ac_count 4027 fi 4028 # 10*(2^10) chars as input seems more than enough 4029 test $ac_count -gt 10 && break 4030 done 4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4032esac 4033 4034 $ac_path_EGREP_found && break 3 4035 done 4036 done 4037done 4038IFS=$as_save_IFS 4039 if test -z "$ac_cv_path_EGREP"; then 4040 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4041$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4042 { (exit 1); exit 1; }; } 4043 fi 4044else 4045 ac_cv_path_EGREP=$EGREP 4046fi 4047 4048 fi 4049fi 4050{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4051$as_echo "$ac_cv_path_EGREP" >&6; } 4052 EGREP="$ac_cv_path_EGREP" 4053 4054 4055{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4056$as_echo_n "checking for fgrep... " >&6; } 4057if test "${ac_cv_path_FGREP+set}" = set; then 4058 $as_echo_n "(cached) " >&6 4059else 4060 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4061 then ac_cv_path_FGREP="$GREP -F" 4062 else 4063 if test -z "$FGREP"; then 4064 ac_path_FGREP_found=false 4065 # Loop through the user's path and test for each of PROGNAME-LIST 4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4068do 4069 IFS=$as_save_IFS 4070 test -z "$as_dir" && as_dir=. 4071 for ac_prog in fgrep; do 4072 for ac_exec_ext in '' $ac_executable_extensions; do 4073 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4074 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4075# Check for GNU ac_path_FGREP and select it if it is found. 4076 # Check for GNU $ac_path_FGREP 4077case `"$ac_path_FGREP" --version 2>&1` in 4078*GNU*) 4079 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4080*) 4081 ac_count=0 4082 $as_echo_n 0123456789 >"conftest.in" 4083 while : 4084 do 4085 cat "conftest.in" "conftest.in" >"conftest.tmp" 4086 mv "conftest.tmp" "conftest.in" 4087 cp "conftest.in" "conftest.nl" 4088 $as_echo 'FGREP' >> "conftest.nl" 4089 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4091 ac_count=`expr $ac_count + 1` 4092 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4093 # Best one so far, save it but keep looking for a better one 4094 ac_cv_path_FGREP="$ac_path_FGREP" 4095 ac_path_FGREP_max=$ac_count 4096 fi 4097 # 10*(2^10) chars as input seems more than enough 4098 test $ac_count -gt 10 && break 4099 done 4100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4101esac 4102 4103 $ac_path_FGREP_found && break 3 4104 done 4105 done 4106done 4107IFS=$as_save_IFS 4108 if test -z "$ac_cv_path_FGREP"; then 4109 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4110$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4111 { (exit 1); exit 1; }; } 4112 fi 4113else 4114 ac_cv_path_FGREP=$FGREP 4115fi 4116 4117 fi 4118fi 4119{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4120$as_echo "$ac_cv_path_FGREP" >&6; } 4121 FGREP="$ac_cv_path_FGREP" 4122 4123 4124test -z "$GREP" && GREP=grep 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144# Check whether --with-gnu-ld was given. 4145if test "${with_gnu_ld+set}" = set; then 4146 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4147else 4148 with_gnu_ld=no 4149fi 4150 4151ac_prog=ld 4152if test "$GCC" = yes; then 4153 # Check if gcc -print-prog-name=ld gives a path. 4154 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4155$as_echo_n "checking for ld used by $CC... " >&6; } 4156 case $host in 4157 *-*-mingw*) 4158 # gcc leaves a trailing carriage return which upsets mingw 4159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4160 *) 4161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4162 esac 4163 case $ac_prog in 4164 # Accept absolute paths. 4165 [\\/]* | ?:[\\/]*) 4166 re_direlt='/[^/][^/]*/\.\./' 4167 # Canonicalize the pathname of ld 4168 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4169 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4170 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4171 done 4172 test -z "$LD" && LD="$ac_prog" 4173 ;; 4174 "") 4175 # If it fails, then pretend we aren't using GCC. 4176 ac_prog=ld 4177 ;; 4178 *) 4179 # If it is relative, then search for the first ld in PATH. 4180 with_gnu_ld=unknown 4181 ;; 4182 esac 4183elif test "$with_gnu_ld" = yes; then 4184 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4185$as_echo_n "checking for GNU ld... " >&6; } 4186else 4187 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4188$as_echo_n "checking for non-GNU ld... " >&6; } 4189fi 4190if test "${lt_cv_path_LD+set}" = set; then 4191 $as_echo_n "(cached) " >&6 4192else 4193 if test -z "$LD"; then 4194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4195 for ac_dir in $PATH; do 4196 IFS="$lt_save_ifs" 4197 test -z "$ac_dir" && ac_dir=. 4198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4199 lt_cv_path_LD="$ac_dir/$ac_prog" 4200 # Check to see if the program is GNU ld. I'd rather use --version, 4201 # but apparently some variants of GNU ld only accept -v. 4202 # Break only if it was the GNU/non-GNU ld that we prefer. 4203 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4204 *GNU* | *'with BFD'*) 4205 test "$with_gnu_ld" != no && break 4206 ;; 4207 *) 4208 test "$with_gnu_ld" != yes && break 4209 ;; 4210 esac 4211 fi 4212 done 4213 IFS="$lt_save_ifs" 4214else 4215 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4216fi 4217fi 4218 4219LD="$lt_cv_path_LD" 4220if test -n "$LD"; then 4221 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4222$as_echo "$LD" >&6; } 4223else 4224 { $as_echo "$as_me:$LINENO: result: no" >&5 4225$as_echo "no" >&6; } 4226fi 4227test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4228$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4229 { (exit 1); exit 1; }; } 4230{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4231$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4232if test "${lt_cv_prog_gnu_ld+set}" = set; then 4233 $as_echo_n "(cached) " >&6 4234else 4235 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4236case `$LD -v 2>&1 </dev/null` in 4237*GNU* | *'with BFD'*) 4238 lt_cv_prog_gnu_ld=yes 4239 ;; 4240*) 4241 lt_cv_prog_gnu_ld=no 4242 ;; 4243esac 4244fi 4245{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4246$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4247with_gnu_ld=$lt_cv_prog_gnu_ld 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4258$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4259if test "${lt_cv_path_NM+set}" = set; then 4260 $as_echo_n "(cached) " >&6 4261else 4262 if test -n "$NM"; then 4263 # Let the user override the test. 4264 lt_cv_path_NM="$NM" 4265else 4266 lt_nm_to_check="${ac_tool_prefix}nm" 4267 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4268 lt_nm_to_check="$lt_nm_to_check nm" 4269 fi 4270 for lt_tmp_nm in $lt_nm_to_check; do 4271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4272 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4273 IFS="$lt_save_ifs" 4274 test -z "$ac_dir" && ac_dir=. 4275 tmp_nm="$ac_dir/$lt_tmp_nm" 4276 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4277 # Check to see if the nm accepts a BSD-compat flag. 4278 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4279 # nm: unknown option "B" ignored 4280 # Tru64's nm complains that /dev/null is an invalid object file 4281 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4282 */dev/null* | *'Invalid file or object type'*) 4283 lt_cv_path_NM="$tmp_nm -B" 4284 break 4285 ;; 4286 *) 4287 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4288 */dev/null*) 4289 lt_cv_path_NM="$tmp_nm -p" 4290 break 4291 ;; 4292 *) 4293 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4294 continue # so that we can try to find one that supports BSD flags 4295 ;; 4296 esac 4297 ;; 4298 esac 4299 fi 4300 done 4301 IFS="$lt_save_ifs" 4302 done 4303 : ${lt_cv_path_NM=no} 4304fi 4305fi 4306{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4307$as_echo "$lt_cv_path_NM" >&6; } 4308if test "$lt_cv_path_NM" != "no"; then 4309 NM="$lt_cv_path_NM" 4310else 4311 # Didn't find any BSD compatible name lister, look for dumpbin. 4312 if test -n "$ac_tool_prefix"; then 4313 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4314 do 4315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4316set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4318$as_echo_n "checking for $ac_word... " >&6; } 4319if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4320 $as_echo_n "(cached) " >&6 4321else 4322 if test -n "$DUMPBIN"; then 4323 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4324else 4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4326for as_dir in $PATH 4327do 4328 IFS=$as_save_IFS 4329 test -z "$as_dir" && as_dir=. 4330 for ac_exec_ext in '' $ac_executable_extensions; do 4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4332 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4334 break 2 4335 fi 4336done 4337done 4338IFS=$as_save_IFS 4339 4340fi 4341fi 4342DUMPBIN=$ac_cv_prog_DUMPBIN 4343if test -n "$DUMPBIN"; then 4344 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4345$as_echo "$DUMPBIN" >&6; } 4346else 4347 { $as_echo "$as_me:$LINENO: result: no" >&5 4348$as_echo "no" >&6; } 4349fi 4350 4351 4352 test -n "$DUMPBIN" && break 4353 done 4354fi 4355if test -z "$DUMPBIN"; then 4356 ac_ct_DUMPBIN=$DUMPBIN 4357 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4358do 4359 # Extract the first word of "$ac_prog", so it can be a program name with args. 4360set dummy $ac_prog; ac_word=$2 4361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4362$as_echo_n "checking for $ac_word... " >&6; } 4363if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4364 $as_echo_n "(cached) " >&6 4365else 4366 if test -n "$ac_ct_DUMPBIN"; then 4367 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4368else 4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4370for as_dir in $PATH 4371do 4372 IFS=$as_save_IFS 4373 test -z "$as_dir" && as_dir=. 4374 for ac_exec_ext in '' $ac_executable_extensions; do 4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4376 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4378 break 2 4379 fi 4380done 4381done 4382IFS=$as_save_IFS 4383 4384fi 4385fi 4386ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4387if test -n "$ac_ct_DUMPBIN"; then 4388 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4389$as_echo "$ac_ct_DUMPBIN" >&6; } 4390else 4391 { $as_echo "$as_me:$LINENO: result: no" >&5 4392$as_echo "no" >&6; } 4393fi 4394 4395 4396 test -n "$ac_ct_DUMPBIN" && break 4397done 4398 4399 if test "x$ac_ct_DUMPBIN" = x; then 4400 DUMPBIN=":" 4401 else 4402 case $cross_compiling:$ac_tool_warned in 4403yes:) 4404{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4406ac_tool_warned=yes ;; 4407esac 4408 DUMPBIN=$ac_ct_DUMPBIN 4409 fi 4410fi 4411 4412 4413 if test "$DUMPBIN" != ":"; then 4414 NM="$DUMPBIN" 4415 fi 4416fi 4417test -z "$NM" && NM=nm 4418 4419 4420 4421 4422 4423 4424{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4425$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4426if test "${lt_cv_nm_interface+set}" = set; then 4427 $as_echo_n "(cached) " >&6 4428else 4429 lt_cv_nm_interface="BSD nm" 4430 echo "int some_variable = 0;" > conftest.$ac_ext 4431 (eval echo "\"\$as_me:4431: $ac_compile\"" >&5) 4432 (eval "$ac_compile" 2>conftest.err) 4433 cat conftest.err >&5 4434 (eval echo "\"\$as_me:4434: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4435 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4436 cat conftest.err >&5 4437 (eval echo "\"\$as_me:4437: output\"" >&5) 4438 cat conftest.out >&5 4439 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4440 lt_cv_nm_interface="MS dumpbin" 4441 fi 4442 rm -f conftest* 4443fi 4444{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4445$as_echo "$lt_cv_nm_interface" >&6; } 4446 4447{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4448$as_echo_n "checking whether ln -s works... " >&6; } 4449LN_S=$as_ln_s 4450if test "$LN_S" = "ln -s"; then 4451 { $as_echo "$as_me:$LINENO: result: yes" >&5 4452$as_echo "yes" >&6; } 4453else 4454 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4455$as_echo "no, using $LN_S" >&6; } 4456fi 4457 4458# find the maximum length of command line arguments 4459{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4460$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4461if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4462 $as_echo_n "(cached) " >&6 4463else 4464 i=0 4465 teststring="ABCD" 4466 4467 case $build_os in 4468 msdosdjgpp*) 4469 # On DJGPP, this test can blow up pretty badly due to problems in libc 4470 # (any single argument exceeding 2000 bytes causes a buffer overrun 4471 # during glob expansion). Even if it were fixed, the result of this 4472 # check would be larger than it should be. 4473 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4474 ;; 4475 4476 gnu*) 4477 # Under GNU Hurd, this test is not required because there is 4478 # no limit to the length of command line arguments. 4479 # Libtool will interpret -1 as no limit whatsoever 4480 lt_cv_sys_max_cmd_len=-1; 4481 ;; 4482 4483 cygwin* | mingw* | cegcc*) 4484 # On Win9x/ME, this test blows up -- it succeeds, but takes 4485 # about 5 minutes as the teststring grows exponentially. 4486 # Worse, since 9x/ME are not pre-emptively multitasking, 4487 # you end up with a "frozen" computer, even though with patience 4488 # the test eventually succeeds (with a max line length of 256k). 4489 # Instead, let's just punt: use the minimum linelength reported by 4490 # all of the supported platforms: 8192 (on NT/2K/XP). 4491 lt_cv_sys_max_cmd_len=8192; 4492 ;; 4493 4494 amigaos*) 4495 # On AmigaOS with pdksh, this test takes hours, literally. 4496 # So we just punt and use a minimum line length of 8192. 4497 lt_cv_sys_max_cmd_len=8192; 4498 ;; 4499 4500 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4501 # This has been around since 386BSD, at least. Likely further. 4502 if test -x /sbin/sysctl; then 4503 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4504 elif test -x /usr/sbin/sysctl; then 4505 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4506 else 4507 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4508 fi 4509 # And add a safety zone 4510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4512 ;; 4513 4514 interix*) 4515 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4516 lt_cv_sys_max_cmd_len=196608 4517 ;; 4518 4519 osf*) 4520 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4521 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4522 # nice to cause kernel panics so lets avoid the loop below. 4523 # First set a reasonable default. 4524 lt_cv_sys_max_cmd_len=16384 4525 # 4526 if test -x /sbin/sysconfig; then 4527 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4528 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4529 esac 4530 fi 4531 ;; 4532 sco3.2v5*) 4533 lt_cv_sys_max_cmd_len=102400 4534 ;; 4535 sysv5* | sco5v6* | sysv4.2uw2*) 4536 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4537 if test -n "$kargmax"; then 4538 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4539 else 4540 lt_cv_sys_max_cmd_len=32768 4541 fi 4542 ;; 4543 *) 4544 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4545 if test -n "$lt_cv_sys_max_cmd_len"; then 4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4548 else 4549 # Make teststring a little bigger before we do anything with it. 4550 # a 1K string should be a reasonable start. 4551 for i in 1 2 3 4 5 6 7 8 ; do 4552 teststring=$teststring$teststring 4553 done 4554 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4555 # If test is not a shell built-in, we'll probably end up computing a 4556 # maximum length that is only half of the actual maximum length, but 4557 # we can't tell. 4558 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4559 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4560 test $i != 17 # 1/2 MB should be enough 4561 do 4562 i=`expr $i + 1` 4563 teststring=$teststring$teststring 4564 done 4565 # Only check the string length outside the loop. 4566 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4567 teststring= 4568 # Add a significant safety factor because C++ compilers can tack on 4569 # massive amounts of additional arguments before passing them to the 4570 # linker. It appears as though 1/2 is a usable value. 4571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4572 fi 4573 ;; 4574 esac 4575 4576fi 4577 4578if test -n $lt_cv_sys_max_cmd_len ; then 4579 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4580$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4581else 4582 { $as_echo "$as_me:$LINENO: result: none" >&5 4583$as_echo "none" >&6; } 4584fi 4585max_cmd_len=$lt_cv_sys_max_cmd_len 4586 4587 4588 4589 4590 4591 4592: ${CP="cp -f"} 4593: ${MV="mv -f"} 4594: ${RM="rm -f"} 4595 4596{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4597$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4598# Try some XSI features 4599xsi_shell=no 4600( _lt_dummy="a/b/c" 4601 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4602 = c,a/b,, \ 4603 && eval 'test $(( 1 + 1 )) -eq 2 \ 4604 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4605 && xsi_shell=yes 4606{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4607$as_echo "$xsi_shell" >&6; } 4608 4609 4610{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4611$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4612lt_shell_append=no 4613( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4614 >/dev/null 2>&1 \ 4615 && lt_shell_append=yes 4616{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4617$as_echo "$lt_shell_append" >&6; } 4618 4619 4620if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4621 lt_unset=unset 4622else 4623 lt_unset=false 4624fi 4625 4626 4627 4628 4629 4630# test EBCDIC or ASCII 4631case `echo X|tr X '\101'` in 4632 A) # ASCII based system 4633 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4634 lt_SP2NL='tr \040 \012' 4635 lt_NL2SP='tr \015\012 \040\040' 4636 ;; 4637 *) # EBCDIC based system 4638 lt_SP2NL='tr \100 \n' 4639 lt_NL2SP='tr \r\n \100\100' 4640 ;; 4641esac 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4652$as_echo_n "checking for $LD option to reload object files... " >&6; } 4653if test "${lt_cv_ld_reload_flag+set}" = set; then 4654 $as_echo_n "(cached) " >&6 4655else 4656 lt_cv_ld_reload_flag='-r' 4657fi 4658{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4659$as_echo "$lt_cv_ld_reload_flag" >&6; } 4660reload_flag=$lt_cv_ld_reload_flag 4661case $reload_flag in 4662"" | " "*) ;; 4663*) reload_flag=" $reload_flag" ;; 4664esac 4665reload_cmds='$LD$reload_flag -o $output$reload_objs' 4666case $host_os in 4667 darwin*) 4668 if test "$GCC" = yes; then 4669 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4670 else 4671 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4672 fi 4673 ;; 4674esac 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684if test -n "$ac_tool_prefix"; then 4685 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4686set dummy ${ac_tool_prefix}objdump; ac_word=$2 4687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4688$as_echo_n "checking for $ac_word... " >&6; } 4689if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4690 $as_echo_n "(cached) " >&6 4691else 4692 if test -n "$OBJDUMP"; then 4693 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4694else 4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4696for as_dir in $PATH 4697do 4698 IFS=$as_save_IFS 4699 test -z "$as_dir" && as_dir=. 4700 for ac_exec_ext in '' $ac_executable_extensions; do 4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4702 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4704 break 2 4705 fi 4706done 4707done 4708IFS=$as_save_IFS 4709 4710fi 4711fi 4712OBJDUMP=$ac_cv_prog_OBJDUMP 4713if test -n "$OBJDUMP"; then 4714 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4715$as_echo "$OBJDUMP" >&6; } 4716else 4717 { $as_echo "$as_me:$LINENO: result: no" >&5 4718$as_echo "no" >&6; } 4719fi 4720 4721 4722fi 4723if test -z "$ac_cv_prog_OBJDUMP"; then 4724 ac_ct_OBJDUMP=$OBJDUMP 4725 # Extract the first word of "objdump", so it can be a program name with args. 4726set dummy objdump; ac_word=$2 4727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4728$as_echo_n "checking for $ac_word... " >&6; } 4729if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4730 $as_echo_n "(cached) " >&6 4731else 4732 if test -n "$ac_ct_OBJDUMP"; then 4733 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4734else 4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH 4737do 4738 IFS=$as_save_IFS 4739 test -z "$as_dir" && as_dir=. 4740 for ac_exec_ext in '' $ac_executable_extensions; do 4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4742 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4744 break 2 4745 fi 4746done 4747done 4748IFS=$as_save_IFS 4749 4750fi 4751fi 4752ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4753if test -n "$ac_ct_OBJDUMP"; then 4754 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4755$as_echo "$ac_ct_OBJDUMP" >&6; } 4756else 4757 { $as_echo "$as_me:$LINENO: result: no" >&5 4758$as_echo "no" >&6; } 4759fi 4760 4761 if test "x$ac_ct_OBJDUMP" = x; then 4762 OBJDUMP="false" 4763 else 4764 case $cross_compiling:$ac_tool_warned in 4765yes:) 4766{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4768ac_tool_warned=yes ;; 4769esac 4770 OBJDUMP=$ac_ct_OBJDUMP 4771 fi 4772else 4773 OBJDUMP="$ac_cv_prog_OBJDUMP" 4774fi 4775 4776test -z "$OBJDUMP" && OBJDUMP=objdump 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4787$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4788if test "${lt_cv_deplibs_check_method+set}" = set; then 4789 $as_echo_n "(cached) " >&6 4790else 4791 lt_cv_file_magic_cmd='$MAGIC_CMD' 4792lt_cv_file_magic_test_file= 4793lt_cv_deplibs_check_method='unknown' 4794# Need to set the preceding variable on all platforms that support 4795# interlibrary dependencies. 4796# 'none' -- dependencies not supported. 4797# `unknown' -- same as none, but documents that we really don't know. 4798# 'pass_all' -- all dependencies passed with no checks. 4799# 'test_compile' -- check by making test program. 4800# 'file_magic [[regex]]' -- check by looking for files in library path 4801# which responds to the $file_magic_cmd with a given extended regex. 4802# If you have `file' or equivalent on your system and you're not sure 4803# whether `pass_all' will *always* work, you probably want this one. 4804 4805case $host_os in 4806aix[4-9]*) 4807 lt_cv_deplibs_check_method=pass_all 4808 ;; 4809 4810beos*) 4811 lt_cv_deplibs_check_method=pass_all 4812 ;; 4813 4814bsdi[45]*) 4815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4816 lt_cv_file_magic_cmd='/usr/bin/file -L' 4817 lt_cv_file_magic_test_file=/shlib/libc.so 4818 ;; 4819 4820cygwin*) 4821 # func_win32_libid is a shell function defined in ltmain.sh 4822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4823 lt_cv_file_magic_cmd='func_win32_libid' 4824 ;; 4825 4826mingw* | pw32*) 4827 # Base MSYS/MinGW do not provide the 'file' command needed by 4828 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4829 # unless we find 'file', for example because we are cross-compiling. 4830 if ( file / ) >/dev/null 2>&1; then 4831 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4832 lt_cv_file_magic_cmd='func_win32_libid' 4833 else 4834 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4835 lt_cv_file_magic_cmd='$OBJDUMP -f' 4836 fi 4837 ;; 4838 4839cegcc) 4840 # use the weaker test based on 'objdump'. See mingw*. 4841 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4842 lt_cv_file_magic_cmd='$OBJDUMP -f' 4843 ;; 4844 4845darwin* | rhapsody*) 4846 lt_cv_deplibs_check_method=pass_all 4847 ;; 4848 4849freebsd* | dragonfly*) 4850 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4851 case $host_cpu in 4852 i*86 ) 4853 # Not sure whether the presence of OpenBSD here was a mistake. 4854 # Let's accept both of them until this is cleared up. 4855 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4856 lt_cv_file_magic_cmd=/usr/bin/file 4857 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4858 ;; 4859 esac 4860 else 4861 lt_cv_deplibs_check_method=pass_all 4862 fi 4863 ;; 4864 4865gnu*) 4866 lt_cv_deplibs_check_method=pass_all 4867 ;; 4868 4869hpux10.20* | hpux11*) 4870 lt_cv_file_magic_cmd=/usr/bin/file 4871 case $host_cpu in 4872 ia64*) 4873 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4874 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4875 ;; 4876 hppa*64*) 4877 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]' 4878 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4879 ;; 4880 *) 4881 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4882 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4883 ;; 4884 esac 4885 ;; 4886 4887interix[3-9]*) 4888 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4890 ;; 4891 4892irix5* | irix6* | nonstopux*) 4893 case $LD in 4894 *-32|*"-32 ") libmagic=32-bit;; 4895 *-n32|*"-n32 ") libmagic=N32;; 4896 *-64|*"-64 ") libmagic=64-bit;; 4897 *) libmagic=never-match;; 4898 esac 4899 lt_cv_deplibs_check_method=pass_all 4900 ;; 4901 4902# This must be Linux ELF. 4903linux* | k*bsd*-gnu) 4904 lt_cv_deplibs_check_method=pass_all 4905 ;; 4906 4907netbsd*) 4908 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4910 else 4911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4912 fi 4913 ;; 4914 4915newos6*) 4916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4917 lt_cv_file_magic_cmd=/usr/bin/file 4918 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4919 ;; 4920 4921*nto* | *qnx*) 4922 lt_cv_deplibs_check_method=pass_all 4923 ;; 4924 4925openbsd*) 4926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4928 else 4929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4930 fi 4931 ;; 4932 4933osf3* | osf4* | osf5*) 4934 lt_cv_deplibs_check_method=pass_all 4935 ;; 4936 4937rdos*) 4938 lt_cv_deplibs_check_method=pass_all 4939 ;; 4940 4941solaris*) 4942 lt_cv_deplibs_check_method=pass_all 4943 ;; 4944 4945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4946 lt_cv_deplibs_check_method=pass_all 4947 ;; 4948 4949sysv4 | sysv4.3*) 4950 case $host_vendor in 4951 motorola) 4952 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]' 4953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4954 ;; 4955 ncr) 4956 lt_cv_deplibs_check_method=pass_all 4957 ;; 4958 sequent) 4959 lt_cv_file_magic_cmd='/bin/file' 4960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4961 ;; 4962 sni) 4963 lt_cv_file_magic_cmd='/bin/file' 4964 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4965 lt_cv_file_magic_test_file=/lib/libc.so 4966 ;; 4967 siemens) 4968 lt_cv_deplibs_check_method=pass_all 4969 ;; 4970 pc) 4971 lt_cv_deplibs_check_method=pass_all 4972 ;; 4973 esac 4974 ;; 4975 4976tpf*) 4977 lt_cv_deplibs_check_method=pass_all 4978 ;; 4979esac 4980 4981fi 4982{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4983$as_echo "$lt_cv_deplibs_check_method" >&6; } 4984file_magic_cmd=$lt_cv_file_magic_cmd 4985deplibs_check_method=$lt_cv_deplibs_check_method 4986test -z "$deplibs_check_method" && deplibs_check_method=unknown 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999if test -n "$ac_tool_prefix"; then 5000 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5001set dummy ${ac_tool_prefix}ar; ac_word=$2 5002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5003$as_echo_n "checking for $ac_word... " >&6; } 5004if test "${ac_cv_prog_AR+set}" = set; then 5005 $as_echo_n "(cached) " >&6 5006else 5007 if test -n "$AR"; then 5008 ac_cv_prog_AR="$AR" # Let the user override the test. 5009else 5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011for as_dir in $PATH 5012do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_exec_ext in '' $ac_executable_extensions; do 5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5017 ac_cv_prog_AR="${ac_tool_prefix}ar" 5018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5019 break 2 5020 fi 5021done 5022done 5023IFS=$as_save_IFS 5024 5025fi 5026fi 5027AR=$ac_cv_prog_AR 5028if test -n "$AR"; then 5029 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5030$as_echo "$AR" >&6; } 5031else 5032 { $as_echo "$as_me:$LINENO: result: no" >&5 5033$as_echo "no" >&6; } 5034fi 5035 5036 5037fi 5038if test -z "$ac_cv_prog_AR"; then 5039 ac_ct_AR=$AR 5040 # Extract the first word of "ar", so it can be a program name with args. 5041set dummy ar; ac_word=$2 5042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5043$as_echo_n "checking for $ac_word... " >&6; } 5044if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5045 $as_echo_n "(cached) " >&6 5046else 5047 if test -n "$ac_ct_AR"; then 5048 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5049else 5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5051for as_dir in $PATH 5052do 5053 IFS=$as_save_IFS 5054 test -z "$as_dir" && as_dir=. 5055 for ac_exec_ext in '' $ac_executable_extensions; do 5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5057 ac_cv_prog_ac_ct_AR="ar" 5058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5059 break 2 5060 fi 5061done 5062done 5063IFS=$as_save_IFS 5064 5065fi 5066fi 5067ac_ct_AR=$ac_cv_prog_ac_ct_AR 5068if test -n "$ac_ct_AR"; then 5069 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5070$as_echo "$ac_ct_AR" >&6; } 5071else 5072 { $as_echo "$as_me:$LINENO: result: no" >&5 5073$as_echo "no" >&6; } 5074fi 5075 5076 if test "x$ac_ct_AR" = x; then 5077 AR="false" 5078 else 5079 case $cross_compiling:$ac_tool_warned in 5080yes:) 5081{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5083ac_tool_warned=yes ;; 5084esac 5085 AR=$ac_ct_AR 5086 fi 5087else 5088 AR="$ac_cv_prog_AR" 5089fi 5090 5091test -z "$AR" && AR=ar 5092test -z "$AR_FLAGS" && AR_FLAGS=cru 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104if test -n "$ac_tool_prefix"; then 5105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5106set dummy ${ac_tool_prefix}strip; ac_word=$2 5107{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5108$as_echo_n "checking for $ac_word... " >&6; } 5109if test "${ac_cv_prog_STRIP+set}" = set; then 5110 $as_echo_n "(cached) " >&6 5111else 5112 if test -n "$STRIP"; then 5113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5114else 5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5116for as_dir in $PATH 5117do 5118 IFS=$as_save_IFS 5119 test -z "$as_dir" && as_dir=. 5120 for ac_exec_ext in '' $ac_executable_extensions; do 5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5122 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5124 break 2 5125 fi 5126done 5127done 5128IFS=$as_save_IFS 5129 5130fi 5131fi 5132STRIP=$ac_cv_prog_STRIP 5133if test -n "$STRIP"; then 5134 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5135$as_echo "$STRIP" >&6; } 5136else 5137 { $as_echo "$as_me:$LINENO: result: no" >&5 5138$as_echo "no" >&6; } 5139fi 5140 5141 5142fi 5143if test -z "$ac_cv_prog_STRIP"; then 5144 ac_ct_STRIP=$STRIP 5145 # Extract the first word of "strip", so it can be a program name with args. 5146set dummy strip; ac_word=$2 5147{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5148$as_echo_n "checking for $ac_word... " >&6; } 5149if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5150 $as_echo_n "(cached) " >&6 5151else 5152 if test -n "$ac_ct_STRIP"; then 5153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5154else 5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5156for as_dir in $PATH 5157do 5158 IFS=$as_save_IFS 5159 test -z "$as_dir" && as_dir=. 5160 for ac_exec_ext in '' $ac_executable_extensions; do 5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5162 ac_cv_prog_ac_ct_STRIP="strip" 5163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5164 break 2 5165 fi 5166done 5167done 5168IFS=$as_save_IFS 5169 5170fi 5171fi 5172ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5173if test -n "$ac_ct_STRIP"; then 5174 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5175$as_echo "$ac_ct_STRIP" >&6; } 5176else 5177 { $as_echo "$as_me:$LINENO: result: no" >&5 5178$as_echo "no" >&6; } 5179fi 5180 5181 if test "x$ac_ct_STRIP" = x; then 5182 STRIP=":" 5183 else 5184 case $cross_compiling:$ac_tool_warned in 5185yes:) 5186{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5188ac_tool_warned=yes ;; 5189esac 5190 STRIP=$ac_ct_STRIP 5191 fi 5192else 5193 STRIP="$ac_cv_prog_STRIP" 5194fi 5195 5196test -z "$STRIP" && STRIP=: 5197 5198 5199 5200 5201 5202 5203if test -n "$ac_tool_prefix"; then 5204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5205set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5207$as_echo_n "checking for $ac_word... " >&6; } 5208if test "${ac_cv_prog_RANLIB+set}" = set; then 5209 $as_echo_n "(cached) " >&6 5210else 5211 if test -n "$RANLIB"; then 5212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5213else 5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5215for as_dir in $PATH 5216do 5217 IFS=$as_save_IFS 5218 test -z "$as_dir" && as_dir=. 5219 for ac_exec_ext in '' $ac_executable_extensions; do 5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5223 break 2 5224 fi 5225done 5226done 5227IFS=$as_save_IFS 5228 5229fi 5230fi 5231RANLIB=$ac_cv_prog_RANLIB 5232if test -n "$RANLIB"; then 5233 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5234$as_echo "$RANLIB" >&6; } 5235else 5236 { $as_echo "$as_me:$LINENO: result: no" >&5 5237$as_echo "no" >&6; } 5238fi 5239 5240 5241fi 5242if test -z "$ac_cv_prog_RANLIB"; then 5243 ac_ct_RANLIB=$RANLIB 5244 # Extract the first word of "ranlib", so it can be a program name with args. 5245set dummy ranlib; ac_word=$2 5246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5247$as_echo_n "checking for $ac_word... " >&6; } 5248if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5249 $as_echo_n "(cached) " >&6 5250else 5251 if test -n "$ac_ct_RANLIB"; then 5252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5253else 5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5255for as_dir in $PATH 5256do 5257 IFS=$as_save_IFS 5258 test -z "$as_dir" && as_dir=. 5259 for ac_exec_ext in '' $ac_executable_extensions; do 5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5261 ac_cv_prog_ac_ct_RANLIB="ranlib" 5262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5263 break 2 5264 fi 5265done 5266done 5267IFS=$as_save_IFS 5268 5269fi 5270fi 5271ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5272if test -n "$ac_ct_RANLIB"; then 5273 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5274$as_echo "$ac_ct_RANLIB" >&6; } 5275else 5276 { $as_echo "$as_me:$LINENO: result: no" >&5 5277$as_echo "no" >&6; } 5278fi 5279 5280 if test "x$ac_ct_RANLIB" = x; then 5281 RANLIB=":" 5282 else 5283 case $cross_compiling:$ac_tool_warned in 5284yes:) 5285{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5287ac_tool_warned=yes ;; 5288esac 5289 RANLIB=$ac_ct_RANLIB 5290 fi 5291else 5292 RANLIB="$ac_cv_prog_RANLIB" 5293fi 5294 5295test -z "$RANLIB" && RANLIB=: 5296 5297 5298 5299 5300 5301 5302# Determine commands to create old-style static archives. 5303old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5304old_postinstall_cmds='chmod 644 $oldlib' 5305old_postuninstall_cmds= 5306 5307if test -n "$RANLIB"; then 5308 case $host_os in 5309 openbsd*) 5310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5311 ;; 5312 *) 5313 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5314 ;; 5315 esac 5316 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5317fi 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352# If no C compiler was specified, use CC. 5353LTCC=${LTCC-"$CC"} 5354 5355# If no C compiler flags were specified, use CFLAGS. 5356LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5357 5358# Allow CC to be a program name with arguments. 5359compiler=$CC 5360 5361 5362# Check for command to grab the raw symbol name followed by C symbol from nm. 5363{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5364$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5365if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5366 $as_echo_n "(cached) " >&6 5367else 5368 5369# These are sane defaults that work on at least a few old systems. 5370# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5371 5372# Character class describing NM global symbol codes. 5373symcode='[BCDEGRST]' 5374 5375# Regexp to match symbols that can be accessed directly from C. 5376sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5377 5378# Define system-specific variables. 5379case $host_os in 5380aix*) 5381 symcode='[BCDT]' 5382 ;; 5383cygwin* | mingw* | pw32* | cegcc*) 5384 symcode='[ABCDGISTW]' 5385 ;; 5386hpux*) 5387 if test "$host_cpu" = ia64; then 5388 symcode='[ABCDEGRST]' 5389 fi 5390 ;; 5391irix* | nonstopux*) 5392 symcode='[BCDEGRST]' 5393 ;; 5394osf*) 5395 symcode='[BCDEGQRST]' 5396 ;; 5397solaris*) 5398 symcode='[BDRT]' 5399 ;; 5400sco3.2v5*) 5401 symcode='[DT]' 5402 ;; 5403sysv4.2uw2*) 5404 symcode='[DT]' 5405 ;; 5406sysv5* | sco5v6* | unixware* | OpenUNIX*) 5407 symcode='[ABDT]' 5408 ;; 5409sysv4) 5410 symcode='[DFNSTU]' 5411 ;; 5412esac 5413 5414# If we're using GNU nm, then use its standard symbol codes. 5415case `$NM -V 2>&1` in 5416*GNU* | *'with BFD'*) 5417 symcode='[ABCDGIRSTW]' ;; 5418esac 5419 5420# Transform an extracted symbol line into a proper C declaration. 5421# Some systems (esp. on ia64) link data and code symbols differently, 5422# so use this general approach. 5423lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5424 5425# Transform an extracted symbol line into symbol name and symbol address 5426lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5427lt_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'" 5428 5429# Handle CRLF in mingw tool chain 5430opt_cr= 5431case $build_os in 5432mingw*) 5433 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5434 ;; 5435esac 5436 5437# Try without a prefix underscore, then with it. 5438for ac_symprfx in "" "_"; do 5439 5440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5441 symxfrm="\\1 $ac_symprfx\\2 \\2" 5442 5443 # Write the raw and C identifiers. 5444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5445 # Fake it for dumpbin and say T for any non-static function 5446 # and D for any global variable. 5447 # Also find C++ and __fastcall symbols from MSVC++, 5448 # which start with @ or ?. 5449 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5450" {last_section=section; section=\$ 3};"\ 5451" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5452" \$ 0!~/External *\|/{next};"\ 5453" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5454" {if(hide[section]) next};"\ 5455" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5456" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5457" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5458" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5459" ' prfx=^$ac_symprfx" 5460 else 5461 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5462 fi 5463 5464 # Check to see that the pipe works correctly. 5465 pipe_works=no 5466 5467 rm -f conftest* 5468 cat > conftest.$ac_ext <<_LT_EOF 5469#ifdef __cplusplus 5470extern "C" { 5471#endif 5472char nm_test_var; 5473void nm_test_func(void); 5474void nm_test_func(void){} 5475#ifdef __cplusplus 5476} 5477#endif 5478int main(){nm_test_var='a';nm_test_func();return(0);} 5479_LT_EOF 5480 5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5482 (eval $ac_compile) 2>&5 5483 ac_status=$? 5484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 (exit $ac_status); }; then 5486 # Now try to grab the symbols. 5487 nlist=conftest.nm 5488 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5489 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5490 ac_status=$? 5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5492 (exit $ac_status); } && test -s "$nlist"; then 5493 # Try sorting and uniquifying the output. 5494 if sort "$nlist" | uniq > "$nlist"T; then 5495 mv -f "$nlist"T "$nlist" 5496 else 5497 rm -f "$nlist"T 5498 fi 5499 5500 # Make sure that we snagged all the symbols we need. 5501 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5502 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5503 cat <<_LT_EOF > conftest.$ac_ext 5504#ifdef __cplusplus 5505extern "C" { 5506#endif 5507 5508_LT_EOF 5509 # Now generate the symbol file. 5510 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5511 5512 cat <<_LT_EOF >> conftest.$ac_ext 5513 5514/* The mapping between symbol names and symbols. */ 5515const struct { 5516 const char *name; 5517 void *address; 5518} 5519lt__PROGRAM__LTX_preloaded_symbols[] = 5520{ 5521 { "@PROGRAM@", (void *) 0 }, 5522_LT_EOF 5523 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5524 cat <<\_LT_EOF >> conftest.$ac_ext 5525 {0, (void *) 0} 5526}; 5527 5528/* This works around a problem in FreeBSD linker */ 5529#ifdef FREEBSD_WORKAROUND 5530static const void *lt_preloaded_setup() { 5531 return lt__PROGRAM__LTX_preloaded_symbols; 5532} 5533#endif 5534 5535#ifdef __cplusplus 5536} 5537#endif 5538_LT_EOF 5539 # Now try linking the two files. 5540 mv conftest.$ac_objext conftstm.$ac_objext 5541 lt_save_LIBS="$LIBS" 5542 lt_save_CFLAGS="$CFLAGS" 5543 LIBS="conftstm.$ac_objext" 5544 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5546 (eval $ac_link) 2>&5 5547 ac_status=$? 5548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5549 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5550 pipe_works=yes 5551 fi 5552 LIBS="$lt_save_LIBS" 5553 CFLAGS="$lt_save_CFLAGS" 5554 else 5555 echo "cannot find nm_test_func in $nlist" >&5 5556 fi 5557 else 5558 echo "cannot find nm_test_var in $nlist" >&5 5559 fi 5560 else 5561 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5562 fi 5563 else 5564 echo "$progname: failed program was:" >&5 5565 cat conftest.$ac_ext >&5 5566 fi 5567 rm -rf conftest* conftst* 5568 5569 # Do not use the global_symbol_pipe unless it works. 5570 if test "$pipe_works" = yes; then 5571 break 5572 else 5573 lt_cv_sys_global_symbol_pipe= 5574 fi 5575done 5576 5577fi 5578 5579if test -z "$lt_cv_sys_global_symbol_pipe"; then 5580 lt_cv_sys_global_symbol_to_cdecl= 5581fi 5582if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5583 { $as_echo "$as_me:$LINENO: result: failed" >&5 5584$as_echo "failed" >&6; } 5585else 5586 { $as_echo "$as_me:$LINENO: result: ok" >&5 5587$as_echo "ok" >&6; } 5588fi 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612# Check whether --enable-libtool-lock was given. 5613if test "${enable_libtool_lock+set}" = set; then 5614 enableval=$enable_libtool_lock; 5615fi 5616 5617test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5618 5619# Some flags need to be propagated to the compiler or linker for good 5620# libtool support. 5621case $host in 5622ia64-*-hpux*) 5623 # Find out which ABI we are using. 5624 echo 'int i;' > conftest.$ac_ext 5625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5626 (eval $ac_compile) 2>&5 5627 ac_status=$? 5628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 (exit $ac_status); }; then 5630 case `/usr/bin/file conftest.$ac_objext` in 5631 *ELF-32*) 5632 HPUX_IA64_MODE="32" 5633 ;; 5634 *ELF-64*) 5635 HPUX_IA64_MODE="64" 5636 ;; 5637 esac 5638 fi 5639 rm -rf conftest* 5640 ;; 5641*-*-irix6*) 5642 # Find out which ABI we are using. 5643 echo '#line 5643 "configure"' > conftest.$ac_ext 5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5645 (eval $ac_compile) 2>&5 5646 ac_status=$? 5647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5648 (exit $ac_status); }; then 5649 if test "$lt_cv_prog_gnu_ld" = yes; then 5650 case `/usr/bin/file conftest.$ac_objext` in 5651 *32-bit*) 5652 LD="${LD-ld} -melf32bsmip" 5653 ;; 5654 *N32*) 5655 LD="${LD-ld} -melf32bmipn32" 5656 ;; 5657 *64-bit*) 5658 LD="${LD-ld} -melf64bmip" 5659 ;; 5660 esac 5661 else 5662 case `/usr/bin/file conftest.$ac_objext` in 5663 *32-bit*) 5664 LD="${LD-ld} -32" 5665 ;; 5666 *N32*) 5667 LD="${LD-ld} -n32" 5668 ;; 5669 *64-bit*) 5670 LD="${LD-ld} -64" 5671 ;; 5672 esac 5673 fi 5674 fi 5675 rm -rf conftest* 5676 ;; 5677 5678x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5679s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5680 # Find out which ABI we are using. 5681 echo 'int i;' > conftest.$ac_ext 5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5683 (eval $ac_compile) 2>&5 5684 ac_status=$? 5685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5686 (exit $ac_status); }; then 5687 case `/usr/bin/file conftest.o` in 5688 *32-bit*) 5689 case $host in 5690 x86_64-*kfreebsd*-gnu) 5691 LD="${LD-ld} -m elf_i386_fbsd" 5692 ;; 5693 x86_64-*linux*) 5694 LD="${LD-ld} -m elf_i386" 5695 ;; 5696 ppc64-*linux*|powerpc64-*linux*) 5697 LD="${LD-ld} -m elf32ppclinux" 5698 ;; 5699 s390x-*linux*) 5700 LD="${LD-ld} -m elf_s390" 5701 ;; 5702 sparc64-*linux*) 5703 LD="${LD-ld} -m elf32_sparc" 5704 ;; 5705 esac 5706 ;; 5707 *64-bit*) 5708 case $host in 5709 x86_64-*kfreebsd*-gnu) 5710 LD="${LD-ld} -m elf_x86_64_fbsd" 5711 ;; 5712 x86_64-*linux*) 5713 LD="${LD-ld} -m elf_x86_64" 5714 ;; 5715 ppc*-*linux*|powerpc*-*linux*) 5716 LD="${LD-ld} -m elf64ppc" 5717 ;; 5718 s390*-*linux*|s390*-*tpf*) 5719 LD="${LD-ld} -m elf64_s390" 5720 ;; 5721 sparc*-*linux*) 5722 LD="${LD-ld} -m elf64_sparc" 5723 ;; 5724 esac 5725 ;; 5726 esac 5727 fi 5728 rm -rf conftest* 5729 ;; 5730 5731*-*-sco3.2v5*) 5732 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5733 SAVE_CFLAGS="$CFLAGS" 5734 CFLAGS="$CFLAGS -belf" 5735 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5736$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5737if test "${lt_cv_cc_needs_belf+set}" = set; then 5738 $as_echo_n "(cached) " >&6 5739else 5740 ac_ext=c 5741ac_cpp='$CPP $CPPFLAGS' 5742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5744ac_compiler_gnu=$ac_cv_c_compiler_gnu 5745 5746 cat >conftest.$ac_ext <<_ACEOF 5747/* confdefs.h. */ 5748_ACEOF 5749cat confdefs.h >>conftest.$ac_ext 5750cat >>conftest.$ac_ext <<_ACEOF 5751/* end confdefs.h. */ 5752 5753int 5754main () 5755{ 5756 5757 ; 5758 return 0; 5759} 5760_ACEOF 5761rm -f conftest.$ac_objext conftest$ac_exeext 5762if { (ac_try="$ac_link" 5763case "(($ac_try" in 5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5765 *) ac_try_echo=$ac_try;; 5766esac 5767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5768$as_echo "$ac_try_echo") >&5 5769 (eval "$ac_link") 2>conftest.er1 5770 ac_status=$? 5771 grep -v '^ *+' conftest.er1 >conftest.err 5772 rm -f conftest.er1 5773 cat conftest.err >&5 5774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5775 (exit $ac_status); } && { 5776 test -z "$ac_c_werror_flag" || 5777 test ! -s conftest.err 5778 } && test -s conftest$ac_exeext && { 5779 test "$cross_compiling" = yes || 5780 $as_test_x conftest$ac_exeext 5781 }; then 5782 lt_cv_cc_needs_belf=yes 5783else 5784 $as_echo "$as_me: failed program was:" >&5 5785sed 's/^/| /' conftest.$ac_ext >&5 5786 5787 lt_cv_cc_needs_belf=no 5788fi 5789 5790rm -rf conftest.dSYM 5791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5792 conftest$ac_exeext conftest.$ac_ext 5793 ac_ext=c 5794ac_cpp='$CPP $CPPFLAGS' 5795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5797ac_compiler_gnu=$ac_cv_c_compiler_gnu 5798 5799fi 5800{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5801$as_echo "$lt_cv_cc_needs_belf" >&6; } 5802 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5803 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5804 CFLAGS="$SAVE_CFLAGS" 5805 fi 5806 ;; 5807sparc*-*solaris*) 5808 # Find out which ABI we are using. 5809 echo 'int i;' > conftest.$ac_ext 5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5811 (eval $ac_compile) 2>&5 5812 ac_status=$? 5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5814 (exit $ac_status); }; then 5815 case `/usr/bin/file conftest.o` in 5816 *64-bit*) 5817 case $lt_cv_prog_gnu_ld in 5818 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5819 *) 5820 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5821 LD="${LD-ld} -64" 5822 fi 5823 ;; 5824 esac 5825 ;; 5826 esac 5827 fi 5828 rm -rf conftest* 5829 ;; 5830esac 5831 5832need_locks="$enable_libtool_lock" 5833 5834 5835 case $host_os in 5836 rhapsody* | darwin*) 5837 if test -n "$ac_tool_prefix"; then 5838 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5839set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5841$as_echo_n "checking for $ac_word... " >&6; } 5842if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5843 $as_echo_n "(cached) " >&6 5844else 5845 if test -n "$DSYMUTIL"; then 5846 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5847else 5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5849for as_dir in $PATH 5850do 5851 IFS=$as_save_IFS 5852 test -z "$as_dir" && as_dir=. 5853 for ac_exec_ext in '' $ac_executable_extensions; do 5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5855 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5857 break 2 5858 fi 5859done 5860done 5861IFS=$as_save_IFS 5862 5863fi 5864fi 5865DSYMUTIL=$ac_cv_prog_DSYMUTIL 5866if test -n "$DSYMUTIL"; then 5867 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5868$as_echo "$DSYMUTIL" >&6; } 5869else 5870 { $as_echo "$as_me:$LINENO: result: no" >&5 5871$as_echo "no" >&6; } 5872fi 5873 5874 5875fi 5876if test -z "$ac_cv_prog_DSYMUTIL"; then 5877 ac_ct_DSYMUTIL=$DSYMUTIL 5878 # Extract the first word of "dsymutil", so it can be a program name with args. 5879set dummy dsymutil; ac_word=$2 5880{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5881$as_echo_n "checking for $ac_word... " >&6; } 5882if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5883 $as_echo_n "(cached) " >&6 5884else 5885 if test -n "$ac_ct_DSYMUTIL"; then 5886 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5887else 5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5889for as_dir in $PATH 5890do 5891 IFS=$as_save_IFS 5892 test -z "$as_dir" && as_dir=. 5893 for ac_exec_ext in '' $ac_executable_extensions; do 5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5895 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5897 break 2 5898 fi 5899done 5900done 5901IFS=$as_save_IFS 5902 5903fi 5904fi 5905ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5906if test -n "$ac_ct_DSYMUTIL"; then 5907 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5908$as_echo "$ac_ct_DSYMUTIL" >&6; } 5909else 5910 { $as_echo "$as_me:$LINENO: result: no" >&5 5911$as_echo "no" >&6; } 5912fi 5913 5914 if test "x$ac_ct_DSYMUTIL" = x; then 5915 DSYMUTIL=":" 5916 else 5917 case $cross_compiling:$ac_tool_warned in 5918yes:) 5919{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5921ac_tool_warned=yes ;; 5922esac 5923 DSYMUTIL=$ac_ct_DSYMUTIL 5924 fi 5925else 5926 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5927fi 5928 5929 if test -n "$ac_tool_prefix"; then 5930 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5931set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5933$as_echo_n "checking for $ac_word... " >&6; } 5934if test "${ac_cv_prog_NMEDIT+set}" = set; then 5935 $as_echo_n "(cached) " >&6 5936else 5937 if test -n "$NMEDIT"; then 5938 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5939else 5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5941for as_dir in $PATH 5942do 5943 IFS=$as_save_IFS 5944 test -z "$as_dir" && as_dir=. 5945 for ac_exec_ext in '' $ac_executable_extensions; do 5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5947 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5949 break 2 5950 fi 5951done 5952done 5953IFS=$as_save_IFS 5954 5955fi 5956fi 5957NMEDIT=$ac_cv_prog_NMEDIT 5958if test -n "$NMEDIT"; then 5959 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5960$as_echo "$NMEDIT" >&6; } 5961else 5962 { $as_echo "$as_me:$LINENO: result: no" >&5 5963$as_echo "no" >&6; } 5964fi 5965 5966 5967fi 5968if test -z "$ac_cv_prog_NMEDIT"; then 5969 ac_ct_NMEDIT=$NMEDIT 5970 # Extract the first word of "nmedit", so it can be a program name with args. 5971set dummy nmedit; ac_word=$2 5972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5973$as_echo_n "checking for $ac_word... " >&6; } 5974if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5975 $as_echo_n "(cached) " >&6 5976else 5977 if test -n "$ac_ct_NMEDIT"; then 5978 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5979else 5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5981for as_dir in $PATH 5982do 5983 IFS=$as_save_IFS 5984 test -z "$as_dir" && as_dir=. 5985 for ac_exec_ext in '' $ac_executable_extensions; do 5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5987 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5989 break 2 5990 fi 5991done 5992done 5993IFS=$as_save_IFS 5994 5995fi 5996fi 5997ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5998if test -n "$ac_ct_NMEDIT"; then 5999 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6000$as_echo "$ac_ct_NMEDIT" >&6; } 6001else 6002 { $as_echo "$as_me:$LINENO: result: no" >&5 6003$as_echo "no" >&6; } 6004fi 6005 6006 if test "x$ac_ct_NMEDIT" = x; then 6007 NMEDIT=":" 6008 else 6009 case $cross_compiling:$ac_tool_warned in 6010yes:) 6011{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6013ac_tool_warned=yes ;; 6014esac 6015 NMEDIT=$ac_ct_NMEDIT 6016 fi 6017else 6018 NMEDIT="$ac_cv_prog_NMEDIT" 6019fi 6020 6021 if test -n "$ac_tool_prefix"; then 6022 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6023set dummy ${ac_tool_prefix}lipo; ac_word=$2 6024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6025$as_echo_n "checking for $ac_word... " >&6; } 6026if test "${ac_cv_prog_LIPO+set}" = set; then 6027 $as_echo_n "(cached) " >&6 6028else 6029 if test -n "$LIPO"; then 6030 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6031else 6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6033for as_dir in $PATH 6034do 6035 IFS=$as_save_IFS 6036 test -z "$as_dir" && as_dir=. 6037 for ac_exec_ext in '' $ac_executable_extensions; do 6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6039 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6041 break 2 6042 fi 6043done 6044done 6045IFS=$as_save_IFS 6046 6047fi 6048fi 6049LIPO=$ac_cv_prog_LIPO 6050if test -n "$LIPO"; then 6051 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6052$as_echo "$LIPO" >&6; } 6053else 6054 { $as_echo "$as_me:$LINENO: result: no" >&5 6055$as_echo "no" >&6; } 6056fi 6057 6058 6059fi 6060if test -z "$ac_cv_prog_LIPO"; then 6061 ac_ct_LIPO=$LIPO 6062 # Extract the first word of "lipo", so it can be a program name with args. 6063set dummy lipo; ac_word=$2 6064{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6065$as_echo_n "checking for $ac_word... " >&6; } 6066if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6067 $as_echo_n "(cached) " >&6 6068else 6069 if test -n "$ac_ct_LIPO"; then 6070 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6071else 6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6073for as_dir in $PATH 6074do 6075 IFS=$as_save_IFS 6076 test -z "$as_dir" && as_dir=. 6077 for ac_exec_ext in '' $ac_executable_extensions; do 6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6079 ac_cv_prog_ac_ct_LIPO="lipo" 6080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6081 break 2 6082 fi 6083done 6084done 6085IFS=$as_save_IFS 6086 6087fi 6088fi 6089ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6090if test -n "$ac_ct_LIPO"; then 6091 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6092$as_echo "$ac_ct_LIPO" >&6; } 6093else 6094 { $as_echo "$as_me:$LINENO: result: no" >&5 6095$as_echo "no" >&6; } 6096fi 6097 6098 if test "x$ac_ct_LIPO" = x; then 6099 LIPO=":" 6100 else 6101 case $cross_compiling:$ac_tool_warned in 6102yes:) 6103{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6105ac_tool_warned=yes ;; 6106esac 6107 LIPO=$ac_ct_LIPO 6108 fi 6109else 6110 LIPO="$ac_cv_prog_LIPO" 6111fi 6112 6113 if test -n "$ac_tool_prefix"; then 6114 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6115set dummy ${ac_tool_prefix}otool; ac_word=$2 6116{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6117$as_echo_n "checking for $ac_word... " >&6; } 6118if test "${ac_cv_prog_OTOOL+set}" = set; then 6119 $as_echo_n "(cached) " >&6 6120else 6121 if test -n "$OTOOL"; then 6122 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6123else 6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6125for as_dir in $PATH 6126do 6127 IFS=$as_save_IFS 6128 test -z "$as_dir" && as_dir=. 6129 for ac_exec_ext in '' $ac_executable_extensions; do 6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6131 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6133 break 2 6134 fi 6135done 6136done 6137IFS=$as_save_IFS 6138 6139fi 6140fi 6141OTOOL=$ac_cv_prog_OTOOL 6142if test -n "$OTOOL"; then 6143 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6144$as_echo "$OTOOL" >&6; } 6145else 6146 { $as_echo "$as_me:$LINENO: result: no" >&5 6147$as_echo "no" >&6; } 6148fi 6149 6150 6151fi 6152if test -z "$ac_cv_prog_OTOOL"; then 6153 ac_ct_OTOOL=$OTOOL 6154 # Extract the first word of "otool", so it can be a program name with args. 6155set dummy otool; ac_word=$2 6156{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6157$as_echo_n "checking for $ac_word... " >&6; } 6158if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6159 $as_echo_n "(cached) " >&6 6160else 6161 if test -n "$ac_ct_OTOOL"; then 6162 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6163else 6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6165for as_dir in $PATH 6166do 6167 IFS=$as_save_IFS 6168 test -z "$as_dir" && as_dir=. 6169 for ac_exec_ext in '' $ac_executable_extensions; do 6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6171 ac_cv_prog_ac_ct_OTOOL="otool" 6172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6173 break 2 6174 fi 6175done 6176done 6177IFS=$as_save_IFS 6178 6179fi 6180fi 6181ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6182if test -n "$ac_ct_OTOOL"; then 6183 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6184$as_echo "$ac_ct_OTOOL" >&6; } 6185else 6186 { $as_echo "$as_me:$LINENO: result: no" >&5 6187$as_echo "no" >&6; } 6188fi 6189 6190 if test "x$ac_ct_OTOOL" = x; then 6191 OTOOL=":" 6192 else 6193 case $cross_compiling:$ac_tool_warned in 6194yes:) 6195{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6197ac_tool_warned=yes ;; 6198esac 6199 OTOOL=$ac_ct_OTOOL 6200 fi 6201else 6202 OTOOL="$ac_cv_prog_OTOOL" 6203fi 6204 6205 if test -n "$ac_tool_prefix"; then 6206 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6207set dummy ${ac_tool_prefix}otool64; ac_word=$2 6208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6209$as_echo_n "checking for $ac_word... " >&6; } 6210if test "${ac_cv_prog_OTOOL64+set}" = set; then 6211 $as_echo_n "(cached) " >&6 6212else 6213 if test -n "$OTOOL64"; then 6214 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6215else 6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6217for as_dir in $PATH 6218do 6219 IFS=$as_save_IFS 6220 test -z "$as_dir" && as_dir=. 6221 for ac_exec_ext in '' $ac_executable_extensions; do 6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6223 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6225 break 2 6226 fi 6227done 6228done 6229IFS=$as_save_IFS 6230 6231fi 6232fi 6233OTOOL64=$ac_cv_prog_OTOOL64 6234if test -n "$OTOOL64"; then 6235 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6236$as_echo "$OTOOL64" >&6; } 6237else 6238 { $as_echo "$as_me:$LINENO: result: no" >&5 6239$as_echo "no" >&6; } 6240fi 6241 6242 6243fi 6244if test -z "$ac_cv_prog_OTOOL64"; then 6245 ac_ct_OTOOL64=$OTOOL64 6246 # Extract the first word of "otool64", so it can be a program name with args. 6247set dummy otool64; ac_word=$2 6248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6249$as_echo_n "checking for $ac_word... " >&6; } 6250if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6251 $as_echo_n "(cached) " >&6 6252else 6253 if test -n "$ac_ct_OTOOL64"; then 6254 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6255else 6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257for as_dir in $PATH 6258do 6259 IFS=$as_save_IFS 6260 test -z "$as_dir" && as_dir=. 6261 for ac_exec_ext in '' $ac_executable_extensions; do 6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6263 ac_cv_prog_ac_ct_OTOOL64="otool64" 6264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6265 break 2 6266 fi 6267done 6268done 6269IFS=$as_save_IFS 6270 6271fi 6272fi 6273ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6274if test -n "$ac_ct_OTOOL64"; then 6275 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6276$as_echo "$ac_ct_OTOOL64" >&6; } 6277else 6278 { $as_echo "$as_me:$LINENO: result: no" >&5 6279$as_echo "no" >&6; } 6280fi 6281 6282 if test "x$ac_ct_OTOOL64" = x; then 6283 OTOOL64=":" 6284 else 6285 case $cross_compiling:$ac_tool_warned in 6286yes:) 6287{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6289ac_tool_warned=yes ;; 6290esac 6291 OTOOL64=$ac_ct_OTOOL64 6292 fi 6293else 6294 OTOOL64="$ac_cv_prog_OTOOL64" 6295fi 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6324$as_echo_n "checking for -single_module linker flag... " >&6; } 6325if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6326 $as_echo_n "(cached) " >&6 6327else 6328 lt_cv_apple_cc_single_mod=no 6329 if test -z "${LT_MULTI_MODULE}"; then 6330 # By default we will add the -single_module flag. You can override 6331 # by either setting the environment variable LT_MULTI_MODULE 6332 # non-empty at configure time, or by adding -multi_module to the 6333 # link flags. 6334 rm -rf libconftest.dylib* 6335 echo "int foo(void){return 1;}" > conftest.c 6336 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6337-dynamiclib -Wl,-single_module conftest.c" >&5 6338 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6339 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6340 _lt_result=$? 6341 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6342 lt_cv_apple_cc_single_mod=yes 6343 else 6344 cat conftest.err >&5 6345 fi 6346 rm -rf libconftest.dylib* 6347 rm -f conftest.* 6348 fi 6349fi 6350{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6351$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6352 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6353$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6354if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6355 $as_echo_n "(cached) " >&6 6356else 6357 lt_cv_ld_exported_symbols_list=no 6358 save_LDFLAGS=$LDFLAGS 6359 echo "_main" > conftest.sym 6360 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6361 cat >conftest.$ac_ext <<_ACEOF 6362/* confdefs.h. */ 6363_ACEOF 6364cat confdefs.h >>conftest.$ac_ext 6365cat >>conftest.$ac_ext <<_ACEOF 6366/* end confdefs.h. */ 6367 6368int 6369main () 6370{ 6371 6372 ; 6373 return 0; 6374} 6375_ACEOF 6376rm -f conftest.$ac_objext conftest$ac_exeext 6377if { (ac_try="$ac_link" 6378case "(($ac_try" in 6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6380 *) ac_try_echo=$ac_try;; 6381esac 6382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6383$as_echo "$ac_try_echo") >&5 6384 (eval "$ac_link") 2>conftest.er1 6385 ac_status=$? 6386 grep -v '^ *+' conftest.er1 >conftest.err 6387 rm -f conftest.er1 6388 cat conftest.err >&5 6389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6390 (exit $ac_status); } && { 6391 test -z "$ac_c_werror_flag" || 6392 test ! -s conftest.err 6393 } && test -s conftest$ac_exeext && { 6394 test "$cross_compiling" = yes || 6395 $as_test_x conftest$ac_exeext 6396 }; then 6397 lt_cv_ld_exported_symbols_list=yes 6398else 6399 $as_echo "$as_me: failed program was:" >&5 6400sed 's/^/| /' conftest.$ac_ext >&5 6401 6402 lt_cv_ld_exported_symbols_list=no 6403fi 6404 6405rm -rf conftest.dSYM 6406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6407 conftest$ac_exeext conftest.$ac_ext 6408 LDFLAGS="$save_LDFLAGS" 6409 6410fi 6411{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6412$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6413 case $host_os in 6414 rhapsody* | darwin1.[012]) 6415 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6416 darwin1.*) 6417 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6418 darwin*) # darwin 5.x on 6419 # if running on 10.5 or later, the deployment target defaults 6420 # to the OS version, if on x86, and 10.4, the deployment 6421 # target defaults to 10.4. Don't you love it? 6422 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6423 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6424 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6425 10.[012]*) 6426 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6427 10.*) 6428 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6429 esac 6430 ;; 6431 esac 6432 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6433 _lt_dar_single_mod='$single_module' 6434 fi 6435 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6436 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6437 else 6438 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6439 fi 6440 if test "$DSYMUTIL" != ":"; then 6441 _lt_dsymutil='~$DSYMUTIL $lib || :' 6442 else 6443 _lt_dsymutil= 6444 fi 6445 ;; 6446 esac 6447 6448ac_ext=c 6449ac_cpp='$CPP $CPPFLAGS' 6450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6452ac_compiler_gnu=$ac_cv_c_compiler_gnu 6453{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6454$as_echo_n "checking how to run the C preprocessor... " >&6; } 6455# On Suns, sometimes $CPP names a directory. 6456if test -n "$CPP" && test -d "$CPP"; then 6457 CPP= 6458fi 6459if test -z "$CPP"; then 6460 if test "${ac_cv_prog_CPP+set}" = set; then 6461 $as_echo_n "(cached) " >&6 6462else 6463 # Double quotes because CPP needs to be expanded 6464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6465 do 6466 ac_preproc_ok=false 6467for ac_c_preproc_warn_flag in '' yes 6468do 6469 # Use a header file that comes with gcc, so configuring glibc 6470 # with a fresh cross-compiler works. 6471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6472 # <limits.h> exists even on freestanding compilers. 6473 # On the NeXT, cc -E runs the code through the compiler's parser, 6474 # not just through cpp. "Syntax error" is here to catch this case. 6475 cat >conftest.$ac_ext <<_ACEOF 6476/* confdefs.h. */ 6477_ACEOF 6478cat confdefs.h >>conftest.$ac_ext 6479cat >>conftest.$ac_ext <<_ACEOF 6480/* end confdefs.h. */ 6481#ifdef __STDC__ 6482# include <limits.h> 6483#else 6484# include <assert.h> 6485#endif 6486 Syntax error 6487_ACEOF 6488if { (ac_try="$ac_cpp conftest.$ac_ext" 6489case "(($ac_try" in 6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6491 *) ac_try_echo=$ac_try;; 6492esac 6493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6494$as_echo "$ac_try_echo") >&5 6495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6496 ac_status=$? 6497 grep -v '^ *+' conftest.er1 >conftest.err 6498 rm -f conftest.er1 6499 cat conftest.err >&5 6500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6501 (exit $ac_status); } >/dev/null && { 6502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6503 test ! -s conftest.err 6504 }; then 6505 : 6506else 6507 $as_echo "$as_me: failed program was:" >&5 6508sed 's/^/| /' conftest.$ac_ext >&5 6509 6510 # Broken: fails on valid input. 6511continue 6512fi 6513 6514rm -f conftest.err conftest.$ac_ext 6515 6516 # OK, works on sane cases. Now check whether nonexistent headers 6517 # can be detected and how. 6518 cat >conftest.$ac_ext <<_ACEOF 6519/* confdefs.h. */ 6520_ACEOF 6521cat confdefs.h >>conftest.$ac_ext 6522cat >>conftest.$ac_ext <<_ACEOF 6523/* end confdefs.h. */ 6524#include <ac_nonexistent.h> 6525_ACEOF 6526if { (ac_try="$ac_cpp conftest.$ac_ext" 6527case "(($ac_try" in 6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6529 *) ac_try_echo=$ac_try;; 6530esac 6531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6532$as_echo "$ac_try_echo") >&5 6533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6534 ac_status=$? 6535 grep -v '^ *+' conftest.er1 >conftest.err 6536 rm -f conftest.er1 6537 cat conftest.err >&5 6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6539 (exit $ac_status); } >/dev/null && { 6540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6541 test ! -s conftest.err 6542 }; then 6543 # Broken: success on invalid input. 6544continue 6545else 6546 $as_echo "$as_me: failed program was:" >&5 6547sed 's/^/| /' conftest.$ac_ext >&5 6548 6549 # Passes both tests. 6550ac_preproc_ok=: 6551break 6552fi 6553 6554rm -f conftest.err conftest.$ac_ext 6555 6556done 6557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6558rm -f conftest.err conftest.$ac_ext 6559if $ac_preproc_ok; then 6560 break 6561fi 6562 6563 done 6564 ac_cv_prog_CPP=$CPP 6565 6566fi 6567 CPP=$ac_cv_prog_CPP 6568else 6569 ac_cv_prog_CPP=$CPP 6570fi 6571{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6572$as_echo "$CPP" >&6; } 6573ac_preproc_ok=false 6574for ac_c_preproc_warn_flag in '' yes 6575do 6576 # Use a header file that comes with gcc, so configuring glibc 6577 # with a fresh cross-compiler works. 6578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6579 # <limits.h> exists even on freestanding compilers. 6580 # On the NeXT, cc -E runs the code through the compiler's parser, 6581 # not just through cpp. "Syntax error" is here to catch this case. 6582 cat >conftest.$ac_ext <<_ACEOF 6583/* confdefs.h. */ 6584_ACEOF 6585cat confdefs.h >>conftest.$ac_ext 6586cat >>conftest.$ac_ext <<_ACEOF 6587/* end confdefs.h. */ 6588#ifdef __STDC__ 6589# include <limits.h> 6590#else 6591# include <assert.h> 6592#endif 6593 Syntax error 6594_ACEOF 6595if { (ac_try="$ac_cpp conftest.$ac_ext" 6596case "(($ac_try" in 6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6598 *) ac_try_echo=$ac_try;; 6599esac 6600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6601$as_echo "$ac_try_echo") >&5 6602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6603 ac_status=$? 6604 grep -v '^ *+' conftest.er1 >conftest.err 6605 rm -f conftest.er1 6606 cat conftest.err >&5 6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6608 (exit $ac_status); } >/dev/null && { 6609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6610 test ! -s conftest.err 6611 }; then 6612 : 6613else 6614 $as_echo "$as_me: failed program was:" >&5 6615sed 's/^/| /' conftest.$ac_ext >&5 6616 6617 # Broken: fails on valid input. 6618continue 6619fi 6620 6621rm -f conftest.err conftest.$ac_ext 6622 6623 # OK, works on sane cases. Now check whether nonexistent headers 6624 # can be detected and how. 6625 cat >conftest.$ac_ext <<_ACEOF 6626/* confdefs.h. */ 6627_ACEOF 6628cat confdefs.h >>conftest.$ac_ext 6629cat >>conftest.$ac_ext <<_ACEOF 6630/* end confdefs.h. */ 6631#include <ac_nonexistent.h> 6632_ACEOF 6633if { (ac_try="$ac_cpp conftest.$ac_ext" 6634case "(($ac_try" in 6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6636 *) ac_try_echo=$ac_try;; 6637esac 6638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6639$as_echo "$ac_try_echo") >&5 6640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6641 ac_status=$? 6642 grep -v '^ *+' conftest.er1 >conftest.err 6643 rm -f conftest.er1 6644 cat conftest.err >&5 6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6646 (exit $ac_status); } >/dev/null && { 6647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6648 test ! -s conftest.err 6649 }; then 6650 # Broken: success on invalid input. 6651continue 6652else 6653 $as_echo "$as_me: failed program was:" >&5 6654sed 's/^/| /' conftest.$ac_ext >&5 6655 6656 # Passes both tests. 6657ac_preproc_ok=: 6658break 6659fi 6660 6661rm -f conftest.err conftest.$ac_ext 6662 6663done 6664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6665rm -f conftest.err conftest.$ac_ext 6666if $ac_preproc_ok; then 6667 : 6668else 6669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6671{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6672See \`config.log' for more details." >&5 6673$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6674See \`config.log' for more details." >&2;} 6675 { (exit 1); exit 1; }; }; } 6676fi 6677 6678ac_ext=c 6679ac_cpp='$CPP $CPPFLAGS' 6680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6682ac_compiler_gnu=$ac_cv_c_compiler_gnu 6683 6684 6685{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6686$as_echo_n "checking for ANSI C header files... " >&6; } 6687if test "${ac_cv_header_stdc+set}" = set; then 6688 $as_echo_n "(cached) " >&6 6689else 6690 cat >conftest.$ac_ext <<_ACEOF 6691/* confdefs.h. */ 6692_ACEOF 6693cat confdefs.h >>conftest.$ac_ext 6694cat >>conftest.$ac_ext <<_ACEOF 6695/* end confdefs.h. */ 6696#include <stdlib.h> 6697#include <stdarg.h> 6698#include <string.h> 6699#include <float.h> 6700 6701int 6702main () 6703{ 6704 6705 ; 6706 return 0; 6707} 6708_ACEOF 6709rm -f conftest.$ac_objext 6710if { (ac_try="$ac_compile" 6711case "(($ac_try" in 6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6713 *) ac_try_echo=$ac_try;; 6714esac 6715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6716$as_echo "$ac_try_echo") >&5 6717 (eval "$ac_compile") 2>conftest.er1 6718 ac_status=$? 6719 grep -v '^ *+' conftest.er1 >conftest.err 6720 rm -f conftest.er1 6721 cat conftest.err >&5 6722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); } && { 6724 test -z "$ac_c_werror_flag" || 6725 test ! -s conftest.err 6726 } && test -s conftest.$ac_objext; then 6727 ac_cv_header_stdc=yes 6728else 6729 $as_echo "$as_me: failed program was:" >&5 6730sed 's/^/| /' conftest.$ac_ext >&5 6731 6732 ac_cv_header_stdc=no 6733fi 6734 6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736 6737if test $ac_cv_header_stdc = yes; then 6738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6739 cat >conftest.$ac_ext <<_ACEOF 6740/* confdefs.h. */ 6741_ACEOF 6742cat confdefs.h >>conftest.$ac_ext 6743cat >>conftest.$ac_ext <<_ACEOF 6744/* end confdefs.h. */ 6745#include <string.h> 6746 6747_ACEOF 6748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6749 $EGREP "memchr" >/dev/null 2>&1; then 6750 : 6751else 6752 ac_cv_header_stdc=no 6753fi 6754rm -f conftest* 6755 6756fi 6757 6758if test $ac_cv_header_stdc = yes; then 6759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6760 cat >conftest.$ac_ext <<_ACEOF 6761/* confdefs.h. */ 6762_ACEOF 6763cat confdefs.h >>conftest.$ac_ext 6764cat >>conftest.$ac_ext <<_ACEOF 6765/* end confdefs.h. */ 6766#include <stdlib.h> 6767 6768_ACEOF 6769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6770 $EGREP "free" >/dev/null 2>&1; then 6771 : 6772else 6773 ac_cv_header_stdc=no 6774fi 6775rm -f conftest* 6776 6777fi 6778 6779if test $ac_cv_header_stdc = yes; then 6780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6781 if test "$cross_compiling" = yes; then 6782 : 6783else 6784 cat >conftest.$ac_ext <<_ACEOF 6785/* confdefs.h. */ 6786_ACEOF 6787cat confdefs.h >>conftest.$ac_ext 6788cat >>conftest.$ac_ext <<_ACEOF 6789/* end confdefs.h. */ 6790#include <ctype.h> 6791#include <stdlib.h> 6792#if ((' ' & 0x0FF) == 0x020) 6793# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6794# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6795#else 6796# define ISLOWER(c) \ 6797 (('a' <= (c) && (c) <= 'i') \ 6798 || ('j' <= (c) && (c) <= 'r') \ 6799 || ('s' <= (c) && (c) <= 'z')) 6800# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6801#endif 6802 6803#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6804int 6805main () 6806{ 6807 int i; 6808 for (i = 0; i < 256; i++) 6809 if (XOR (islower (i), ISLOWER (i)) 6810 || toupper (i) != TOUPPER (i)) 6811 return 2; 6812 return 0; 6813} 6814_ACEOF 6815rm -f conftest$ac_exeext 6816if { (ac_try="$ac_link" 6817case "(($ac_try" in 6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6819 *) ac_try_echo=$ac_try;; 6820esac 6821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6822$as_echo "$ac_try_echo") >&5 6823 (eval "$ac_link") 2>&5 6824 ac_status=$? 6825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6827 { (case "(($ac_try" in 6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6829 *) ac_try_echo=$ac_try;; 6830esac 6831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6832$as_echo "$ac_try_echo") >&5 6833 (eval "$ac_try") 2>&5 6834 ac_status=$? 6835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6836 (exit $ac_status); }; }; then 6837 : 6838else 6839 $as_echo "$as_me: program exited with status $ac_status" >&5 6840$as_echo "$as_me: failed program was:" >&5 6841sed 's/^/| /' conftest.$ac_ext >&5 6842 6843( exit $ac_status ) 6844ac_cv_header_stdc=no 6845fi 6846rm -rf conftest.dSYM 6847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6848fi 6849 6850 6851fi 6852fi 6853{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6854$as_echo "$ac_cv_header_stdc" >&6; } 6855if test $ac_cv_header_stdc = yes; then 6856 6857cat >>confdefs.h <<\_ACEOF 6858#define STDC_HEADERS 1 6859_ACEOF 6860 6861fi 6862 6863# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6874 inttypes.h stdint.h unistd.h 6875do 6876as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6877{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6878$as_echo_n "checking for $ac_header... " >&6; } 6879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6880 $as_echo_n "(cached) " >&6 6881else 6882 cat >conftest.$ac_ext <<_ACEOF 6883/* confdefs.h. */ 6884_ACEOF 6885cat confdefs.h >>conftest.$ac_ext 6886cat >>conftest.$ac_ext <<_ACEOF 6887/* end confdefs.h. */ 6888$ac_includes_default 6889 6890#include <$ac_header> 6891_ACEOF 6892rm -f conftest.$ac_objext 6893if { (ac_try="$ac_compile" 6894case "(($ac_try" in 6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6896 *) ac_try_echo=$ac_try;; 6897esac 6898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6899$as_echo "$ac_try_echo") >&5 6900 (eval "$ac_compile") 2>conftest.er1 6901 ac_status=$? 6902 grep -v '^ *+' conftest.er1 >conftest.err 6903 rm -f conftest.er1 6904 cat conftest.err >&5 6905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6906 (exit $ac_status); } && { 6907 test -z "$ac_c_werror_flag" || 6908 test ! -s conftest.err 6909 } && test -s conftest.$ac_objext; then 6910 eval "$as_ac_Header=yes" 6911else 6912 $as_echo "$as_me: failed program was:" >&5 6913sed 's/^/| /' conftest.$ac_ext >&5 6914 6915 eval "$as_ac_Header=no" 6916fi 6917 6918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6919fi 6920ac_res=`eval 'as_val=${'$as_ac_Header'} 6921 $as_echo "$as_val"'` 6922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6923$as_echo "$ac_res" >&6; } 6924as_val=`eval 'as_val=${'$as_ac_Header'} 6925 $as_echo "$as_val"'` 6926 if test "x$as_val" = x""yes; then 6927 cat >>confdefs.h <<_ACEOF 6928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6929_ACEOF 6930 6931fi 6932 6933done 6934 6935 6936 6937for ac_header in dlfcn.h 6938do 6939as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6940{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6941$as_echo_n "checking for $ac_header... " >&6; } 6942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6943 $as_echo_n "(cached) " >&6 6944else 6945 cat >conftest.$ac_ext <<_ACEOF 6946/* confdefs.h. */ 6947_ACEOF 6948cat confdefs.h >>conftest.$ac_ext 6949cat >>conftest.$ac_ext <<_ACEOF 6950/* end confdefs.h. */ 6951$ac_includes_default 6952 6953#include <$ac_header> 6954_ACEOF 6955rm -f conftest.$ac_objext 6956if { (ac_try="$ac_compile" 6957case "(($ac_try" in 6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6959 *) ac_try_echo=$ac_try;; 6960esac 6961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6962$as_echo "$ac_try_echo") >&5 6963 (eval "$ac_compile") 2>conftest.er1 6964 ac_status=$? 6965 grep -v '^ *+' conftest.er1 >conftest.err 6966 rm -f conftest.er1 6967 cat conftest.err >&5 6968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6969 (exit $ac_status); } && { 6970 test -z "$ac_c_werror_flag" || 6971 test ! -s conftest.err 6972 } && test -s conftest.$ac_objext; then 6973 eval "$as_ac_Header=yes" 6974else 6975 $as_echo "$as_me: failed program was:" >&5 6976sed 's/^/| /' conftest.$ac_ext >&5 6977 6978 eval "$as_ac_Header=no" 6979fi 6980 6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6982fi 6983ac_res=`eval 'as_val=${'$as_ac_Header'} 6984 $as_echo "$as_val"'` 6985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6986$as_echo "$ac_res" >&6; } 6987as_val=`eval 'as_val=${'$as_ac_Header'} 6988 $as_echo "$as_val"'` 6989 if test "x$as_val" = x""yes; then 6990 cat >>confdefs.h <<_ACEOF 6991#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6992_ACEOF 6993 6994fi 6995 6996done 6997 6998 6999 7000# Set options 7001 7002 7003 7004 enable_dlopen=no 7005 7006 7007 enable_win32_dll=no 7008 7009 7010 # Check whether --enable-shared was given. 7011if test "${enable_shared+set}" = set; then 7012 enableval=$enable_shared; p=${PACKAGE-default} 7013 case $enableval in 7014 yes) enable_shared=yes ;; 7015 no) enable_shared=no ;; 7016 *) 7017 enable_shared=no 7018 # Look at the argument we got. We use all the common list separators. 7019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7020 for pkg in $enableval; do 7021 IFS="$lt_save_ifs" 7022 if test "X$pkg" = "X$p"; then 7023 enable_shared=yes 7024 fi 7025 done 7026 IFS="$lt_save_ifs" 7027 ;; 7028 esac 7029else 7030 enable_shared=yes 7031fi 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043# Check whether --with-pic was given. 7044if test "${with_pic+set}" = set; then 7045 withval=$with_pic; pic_mode="$withval" 7046else 7047 pic_mode=default 7048fi 7049 7050 7051test -z "$pic_mode" && pic_mode=default 7052 7053 7054 7055 7056 7057 7058 7059 # Check whether --enable-fast-install was given. 7060if test "${enable_fast_install+set}" = set; then 7061 enableval=$enable_fast_install; p=${PACKAGE-default} 7062 case $enableval in 7063 yes) enable_fast_install=yes ;; 7064 no) enable_fast_install=no ;; 7065 *) 7066 enable_fast_install=no 7067 # Look at the argument we got. We use all the common list separators. 7068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7069 for pkg in $enableval; do 7070 IFS="$lt_save_ifs" 7071 if test "X$pkg" = "X$p"; then 7072 enable_fast_install=yes 7073 fi 7074 done 7075 IFS="$lt_save_ifs" 7076 ;; 7077 esac 7078else 7079 enable_fast_install=yes 7080fi 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092# This can be used to rebuild libtool when needed 7093LIBTOOL_DEPS="$ltmain" 7094 7095# Always use our own libtool. 7096LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122test -z "$LN_S" && LN_S="ln -s" 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137if test -n "${ZSH_VERSION+set}" ; then 7138 setopt NO_GLOB_SUBST 7139fi 7140 7141{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7142$as_echo_n "checking for objdir... " >&6; } 7143if test "${lt_cv_objdir+set}" = set; then 7144 $as_echo_n "(cached) " >&6 7145else 7146 rm -f .libs 2>/dev/null 7147mkdir .libs 2>/dev/null 7148if test -d .libs; then 7149 lt_cv_objdir=.libs 7150else 7151 # MS-DOS does not allow filenames that begin with a dot. 7152 lt_cv_objdir=_libs 7153fi 7154rmdir .libs 2>/dev/null 7155fi 7156{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7157$as_echo "$lt_cv_objdir" >&6; } 7158objdir=$lt_cv_objdir 7159 7160 7161 7162 7163 7164cat >>confdefs.h <<_ACEOF 7165#define LT_OBJDIR "$lt_cv_objdir/" 7166_ACEOF 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184case $host_os in 7185aix3*) 7186 # AIX sometimes has problems with the GCC collect2 program. For some 7187 # reason, if we set the COLLECT_NAMES environment variable, the problems 7188 # vanish in a puff of smoke. 7189 if test "X${COLLECT_NAMES+set}" != Xset; then 7190 COLLECT_NAMES= 7191 export COLLECT_NAMES 7192 fi 7193 ;; 7194esac 7195 7196# Sed substitution that helps us do robust quoting. It backslashifies 7197# metacharacters that are still active within double-quoted strings. 7198sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7199 7200# Same as above, but do not quote variable references. 7201double_quote_subst='s/\(["`\\]\)/\\\1/g' 7202 7203# Sed substitution to delay expansion of an escaped shell variable in a 7204# double_quote_subst'ed string. 7205delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7206 7207# Sed substitution to delay expansion of an escaped single quote. 7208delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7209 7210# Sed substitution to avoid accidental globbing in evaled expressions 7211no_glob_subst='s/\*/\\\*/g' 7212 7213# Global variables: 7214ofile=libtool 7215can_build_shared=yes 7216 7217# All known linkers require a `.a' archive for static linking (except MSVC, 7218# which needs '.lib'). 7219libext=a 7220 7221with_gnu_ld="$lt_cv_prog_gnu_ld" 7222 7223old_CC="$CC" 7224old_CFLAGS="$CFLAGS" 7225 7226# Set sane defaults for various variables 7227test -z "$CC" && CC=cc 7228test -z "$LTCC" && LTCC=$CC 7229test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7230test -z "$LD" && LD=ld 7231test -z "$ac_objext" && ac_objext=o 7232 7233for cc_temp in $compiler""; do 7234 case $cc_temp in 7235 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7236 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7237 \-*) ;; 7238 *) break;; 7239 esac 7240done 7241cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7242 7243 7244# Only perform the check for file, if the check method requires it 7245test -z "$MAGIC_CMD" && MAGIC_CMD=file 7246case $deplibs_check_method in 7247file_magic*) 7248 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7249 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7250$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7251if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7252 $as_echo_n "(cached) " >&6 7253else 7254 case $MAGIC_CMD in 7255[\\/*] | ?:[\\/]*) 7256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7257 ;; 7258*) 7259 lt_save_MAGIC_CMD="$MAGIC_CMD" 7260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7261 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7262 for ac_dir in $ac_dummy; do 7263 IFS="$lt_save_ifs" 7264 test -z "$ac_dir" && ac_dir=. 7265 if test -f $ac_dir/${ac_tool_prefix}file; then 7266 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7267 if test -n "$file_magic_test_file"; then 7268 case $deplibs_check_method in 7269 "file_magic "*) 7270 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7273 $EGREP "$file_magic_regex" > /dev/null; then 7274 : 7275 else 7276 cat <<_LT_EOF 1>&2 7277 7278*** Warning: the command libtool uses to detect shared libraries, 7279*** $file_magic_cmd, produces output that libtool cannot recognize. 7280*** The result is that libtool may fail to recognize shared libraries 7281*** as such. This will affect the creation of libtool libraries that 7282*** depend on shared libraries, but programs linked with such libtool 7283*** libraries will work regardless of this problem. Nevertheless, you 7284*** may want to report the problem to your system manager and/or to 7285*** bug-libtool@gnu.org 7286 7287_LT_EOF 7288 fi ;; 7289 esac 7290 fi 7291 break 7292 fi 7293 done 7294 IFS="$lt_save_ifs" 7295 MAGIC_CMD="$lt_save_MAGIC_CMD" 7296 ;; 7297esac 7298fi 7299 7300MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7301if test -n "$MAGIC_CMD"; then 7302 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7303$as_echo "$MAGIC_CMD" >&6; } 7304else 7305 { $as_echo "$as_me:$LINENO: result: no" >&5 7306$as_echo "no" >&6; } 7307fi 7308 7309 7310 7311 7312 7313if test -z "$lt_cv_path_MAGIC_CMD"; then 7314 if test -n "$ac_tool_prefix"; then 7315 { $as_echo "$as_me:$LINENO: checking for file" >&5 7316$as_echo_n "checking for file... " >&6; } 7317if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7318 $as_echo_n "(cached) " >&6 7319else 7320 case $MAGIC_CMD in 7321[\\/*] | ?:[\\/]*) 7322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7323 ;; 7324*) 7325 lt_save_MAGIC_CMD="$MAGIC_CMD" 7326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7327 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7328 for ac_dir in $ac_dummy; do 7329 IFS="$lt_save_ifs" 7330 test -z "$ac_dir" && ac_dir=. 7331 if test -f $ac_dir/file; then 7332 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7333 if test -n "$file_magic_test_file"; then 7334 case $deplibs_check_method in 7335 "file_magic "*) 7336 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7338 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7339 $EGREP "$file_magic_regex" > /dev/null; then 7340 : 7341 else 7342 cat <<_LT_EOF 1>&2 7343 7344*** Warning: the command libtool uses to detect shared libraries, 7345*** $file_magic_cmd, produces output that libtool cannot recognize. 7346*** The result is that libtool may fail to recognize shared libraries 7347*** as such. This will affect the creation of libtool libraries that 7348*** depend on shared libraries, but programs linked with such libtool 7349*** libraries will work regardless of this problem. Nevertheless, you 7350*** may want to report the problem to your system manager and/or to 7351*** bug-libtool@gnu.org 7352 7353_LT_EOF 7354 fi ;; 7355 esac 7356 fi 7357 break 7358 fi 7359 done 7360 IFS="$lt_save_ifs" 7361 MAGIC_CMD="$lt_save_MAGIC_CMD" 7362 ;; 7363esac 7364fi 7365 7366MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7367if test -n "$MAGIC_CMD"; then 7368 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7369$as_echo "$MAGIC_CMD" >&6; } 7370else 7371 { $as_echo "$as_me:$LINENO: result: no" >&5 7372$as_echo "no" >&6; } 7373fi 7374 7375 7376 else 7377 MAGIC_CMD=: 7378 fi 7379fi 7380 7381 fi 7382 ;; 7383esac 7384 7385# Use C for the default configuration in the libtool script 7386 7387lt_save_CC="$CC" 7388ac_ext=c 7389ac_cpp='$CPP $CPPFLAGS' 7390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7392ac_compiler_gnu=$ac_cv_c_compiler_gnu 7393 7394 7395# Source file extension for C test sources. 7396ac_ext=c 7397 7398# Object file extension for compiled C test sources. 7399objext=o 7400objext=$objext 7401 7402# Code to be used in simple compile tests 7403lt_simple_compile_test_code="int some_variable = 0;" 7404 7405# Code to be used in simple link tests 7406lt_simple_link_test_code='int main(){return(0);}' 7407 7408 7409 7410 7411 7412 7413 7414# If no C compiler was specified, use CC. 7415LTCC=${LTCC-"$CC"} 7416 7417# If no C compiler flags were specified, use CFLAGS. 7418LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7419 7420# Allow CC to be a program name with arguments. 7421compiler=$CC 7422 7423# Save the default compiler, since it gets overwritten when the other 7424# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7425compiler_DEFAULT=$CC 7426 7427# save warnings/boilerplate of simple test code 7428ac_outfile=conftest.$ac_objext 7429echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7430eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7431_lt_compiler_boilerplate=`cat conftest.err` 7432$RM conftest* 7433 7434ac_outfile=conftest.$ac_objext 7435echo "$lt_simple_link_test_code" >conftest.$ac_ext 7436eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7437_lt_linker_boilerplate=`cat conftest.err` 7438$RM -r conftest* 7439 7440 7441if test -n "$compiler"; then 7442 7443lt_prog_compiler_no_builtin_flag= 7444 7445if test "$GCC" = yes; then 7446 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7447 7448 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7449$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7450if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7451 $as_echo_n "(cached) " >&6 7452else 7453 lt_cv_prog_compiler_rtti_exceptions=no 7454 ac_outfile=conftest.$ac_objext 7455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7456 lt_compiler_flag="-fno-rtti -fno-exceptions" 7457 # Insert the option either (1) after the last *FLAGS variable, or 7458 # (2) before a word containing "conftest.", or (3) at the end. 7459 # Note that $ac_compile itself does not contain backslashes and begins 7460 # with a dollar sign (not a hyphen), so the echo should work correctly. 7461 # The option is referenced via a variable to avoid confusing sed. 7462 lt_compile=`echo "$ac_compile" | $SED \ 7463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7465 -e 's:$: $lt_compiler_flag:'` 7466 (eval echo "\"\$as_me:7466: $lt_compile\"" >&5) 7467 (eval "$lt_compile" 2>conftest.err) 7468 ac_status=$? 7469 cat conftest.err >&5 7470 echo "$as_me:7470: \$? = $ac_status" >&5 7471 if (exit $ac_status) && test -s "$ac_outfile"; then 7472 # The compiler can only warn and ignore the option if not recognized 7473 # So say no if there are warnings other than the usual output. 7474 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7477 lt_cv_prog_compiler_rtti_exceptions=yes 7478 fi 7479 fi 7480 $RM conftest* 7481 7482fi 7483{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7484$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7485 7486if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7488else 7489 : 7490fi 7491 7492fi 7493 7494 7495 7496 7497 7498 7499 lt_prog_compiler_wl= 7500lt_prog_compiler_pic= 7501lt_prog_compiler_static= 7502 7503{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7504$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7505 7506 if test "$GCC" = yes; then 7507 lt_prog_compiler_wl='-Wl,' 7508 lt_prog_compiler_static='-static' 7509 7510 case $host_os in 7511 aix*) 7512 # All AIX code is PIC. 7513 if test "$host_cpu" = ia64; then 7514 # AIX 5 now supports IA64 processor 7515 lt_prog_compiler_static='-Bstatic' 7516 fi 7517 ;; 7518 7519 amigaos*) 7520 case $host_cpu in 7521 powerpc) 7522 # see comment about AmigaOS4 .so support 7523 lt_prog_compiler_pic='-fPIC' 7524 ;; 7525 m68k) 7526 # FIXME: we need at least 68020 code to build shared libraries, but 7527 # adding the `-m68020' flag to GCC prevents building anything better, 7528 # like `-m68040'. 7529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7530 ;; 7531 esac 7532 ;; 7533 7534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7535 # PIC is the default for these OSes. 7536 ;; 7537 7538 mingw* | cygwin* | pw32* | os2* | cegcc*) 7539 # This hack is so that the source file can tell whether it is being 7540 # built for inclusion in a dll (and should export symbols for example). 7541 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7542 # (--disable-auto-import) libraries 7543 lt_prog_compiler_pic='-DDLL_EXPORT' 7544 ;; 7545 7546 darwin* | rhapsody*) 7547 # PIC is the default on this platform 7548 # Common symbols not allowed in MH_DYLIB files 7549 lt_prog_compiler_pic='-fno-common' 7550 ;; 7551 7552 hpux*) 7553 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7554 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7555 # sets the default TLS model and affects inlining. 7556 case $host_cpu in 7557 hppa*64*) 7558 # +Z the default 7559 ;; 7560 *) 7561 lt_prog_compiler_pic='-fPIC' 7562 ;; 7563 esac 7564 ;; 7565 7566 interix[3-9]*) 7567 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7568 # Instead, we relocate shared libraries at runtime. 7569 ;; 7570 7571 msdosdjgpp*) 7572 # Just because we use GCC doesn't mean we suddenly get shared libraries 7573 # on systems that don't support them. 7574 lt_prog_compiler_can_build_shared=no 7575 enable_shared=no 7576 ;; 7577 7578 *nto* | *qnx*) 7579 # QNX uses GNU C++, but need to define -shared option too, otherwise 7580 # it will coredump. 7581 lt_prog_compiler_pic='-fPIC -shared' 7582 ;; 7583 7584 sysv4*MP*) 7585 if test -d /usr/nec; then 7586 lt_prog_compiler_pic=-Kconform_pic 7587 fi 7588 ;; 7589 7590 *) 7591 lt_prog_compiler_pic='-fPIC' 7592 ;; 7593 esac 7594 else 7595 # PORTME Check for flag to pass linker flags through the system compiler. 7596 case $host_os in 7597 aix*) 7598 lt_prog_compiler_wl='-Wl,' 7599 if test "$host_cpu" = ia64; then 7600 # AIX 5 now supports IA64 processor 7601 lt_prog_compiler_static='-Bstatic' 7602 else 7603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7604 fi 7605 ;; 7606 7607 mingw* | cygwin* | pw32* | os2* | cegcc*) 7608 # This hack is so that the source file can tell whether it is being 7609 # built for inclusion in a dll (and should export symbols for example). 7610 lt_prog_compiler_pic='-DDLL_EXPORT' 7611 ;; 7612 7613 hpux9* | hpux10* | hpux11*) 7614 lt_prog_compiler_wl='-Wl,' 7615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7616 # not for PA HP-UX. 7617 case $host_cpu in 7618 hppa*64*|ia64*) 7619 # +Z the default 7620 ;; 7621 *) 7622 lt_prog_compiler_pic='+Z' 7623 ;; 7624 esac 7625 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7626 lt_prog_compiler_static='${wl}-a ${wl}archive' 7627 ;; 7628 7629 irix5* | irix6* | nonstopux*) 7630 lt_prog_compiler_wl='-Wl,' 7631 # PIC (with -KPIC) is the default. 7632 lt_prog_compiler_static='-non_shared' 7633 ;; 7634 7635 linux* | k*bsd*-gnu) 7636 case $cc_basename in 7637 # old Intel for x86_64 which still supported -KPIC. 7638 ecc*) 7639 lt_prog_compiler_wl='-Wl,' 7640 lt_prog_compiler_pic='-KPIC' 7641 lt_prog_compiler_static='-static' 7642 ;; 7643 # icc used to be incompatible with GCC. 7644 # ICC 10 doesn't accept -KPIC any more. 7645 icc* | ifort*) 7646 lt_prog_compiler_wl='-Wl,' 7647 lt_prog_compiler_pic='-fPIC' 7648 lt_prog_compiler_static='-static' 7649 ;; 7650 # Lahey Fortran 8.1. 7651 lf95*) 7652 lt_prog_compiler_wl='-Wl,' 7653 lt_prog_compiler_pic='--shared' 7654 lt_prog_compiler_static='--static' 7655 ;; 7656 pgcc* | pgf77* | pgf90* | pgf95*) 7657 # Portland Group compilers (*not* the Pentium gcc compiler, 7658 # which looks to be a dead project) 7659 lt_prog_compiler_wl='-Wl,' 7660 lt_prog_compiler_pic='-fpic' 7661 lt_prog_compiler_static='-Bstatic' 7662 ;; 7663 ccc*) 7664 lt_prog_compiler_wl='-Wl,' 7665 # All Alpha code is PIC. 7666 lt_prog_compiler_static='-non_shared' 7667 ;; 7668 xl*) 7669 # IBM XL C 8.0/Fortran 10.1 on PPC 7670 lt_prog_compiler_wl='-Wl,' 7671 lt_prog_compiler_pic='-qpic' 7672 lt_prog_compiler_static='-qstaticlink' 7673 ;; 7674 *) 7675 case `$CC -V 2>&1 | sed 5q` in 7676 *Sun\ C*) 7677 # Sun C 5.9 7678 lt_prog_compiler_pic='-KPIC' 7679 lt_prog_compiler_static='-Bstatic' 7680 lt_prog_compiler_wl='-Wl,' 7681 ;; 7682 *Sun\ F*) 7683 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7684 lt_prog_compiler_pic='-KPIC' 7685 lt_prog_compiler_static='-Bstatic' 7686 lt_prog_compiler_wl='' 7687 ;; 7688 esac 7689 ;; 7690 esac 7691 ;; 7692 7693 newsos6) 7694 lt_prog_compiler_pic='-KPIC' 7695 lt_prog_compiler_static='-Bstatic' 7696 ;; 7697 7698 *nto* | *qnx*) 7699 # QNX uses GNU C++, but need to define -shared option too, otherwise 7700 # it will coredump. 7701 lt_prog_compiler_pic='-fPIC -shared' 7702 ;; 7703 7704 osf3* | osf4* | osf5*) 7705 lt_prog_compiler_wl='-Wl,' 7706 # All OSF/1 code is PIC. 7707 lt_prog_compiler_static='-non_shared' 7708 ;; 7709 7710 rdos*) 7711 lt_prog_compiler_static='-non_shared' 7712 ;; 7713 7714 solaris*) 7715 lt_prog_compiler_pic='-KPIC' 7716 lt_prog_compiler_static='-Bstatic' 7717 case $cc_basename in 7718 f77* | f90* | f95*) 7719 lt_prog_compiler_wl='-Qoption ld ';; 7720 *) 7721 lt_prog_compiler_wl='-Wl,';; 7722 esac 7723 ;; 7724 7725 sunos4*) 7726 lt_prog_compiler_wl='-Qoption ld ' 7727 lt_prog_compiler_pic='-PIC' 7728 lt_prog_compiler_static='-Bstatic' 7729 ;; 7730 7731 sysv4 | sysv4.2uw2* | sysv4.3*) 7732 lt_prog_compiler_wl='-Wl,' 7733 lt_prog_compiler_pic='-KPIC' 7734 lt_prog_compiler_static='-Bstatic' 7735 ;; 7736 7737 sysv4*MP*) 7738 if test -d /usr/nec ;then 7739 lt_prog_compiler_pic='-Kconform_pic' 7740 lt_prog_compiler_static='-Bstatic' 7741 fi 7742 ;; 7743 7744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7745 lt_prog_compiler_wl='-Wl,' 7746 lt_prog_compiler_pic='-KPIC' 7747 lt_prog_compiler_static='-Bstatic' 7748 ;; 7749 7750 unicos*) 7751 lt_prog_compiler_wl='-Wl,' 7752 lt_prog_compiler_can_build_shared=no 7753 ;; 7754 7755 uts4*) 7756 lt_prog_compiler_pic='-pic' 7757 lt_prog_compiler_static='-Bstatic' 7758 ;; 7759 7760 *) 7761 lt_prog_compiler_can_build_shared=no 7762 ;; 7763 esac 7764 fi 7765 7766case $host_os in 7767 # For platforms which do not support PIC, -DPIC is meaningless: 7768 *djgpp*) 7769 lt_prog_compiler_pic= 7770 ;; 7771 *) 7772 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7773 ;; 7774esac 7775{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7776$as_echo "$lt_prog_compiler_pic" >&6; } 7777 7778 7779 7780 7781 7782 7783# 7784# Check to make sure the PIC flag actually works. 7785# 7786if test -n "$lt_prog_compiler_pic"; then 7787 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7788$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7789if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7790 $as_echo_n "(cached) " >&6 7791else 7792 lt_cv_prog_compiler_pic_works=no 7793 ac_outfile=conftest.$ac_objext 7794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7795 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7796 # Insert the option either (1) after the last *FLAGS variable, or 7797 # (2) before a word containing "conftest.", or (3) at the end. 7798 # Note that $ac_compile itself does not contain backslashes and begins 7799 # with a dollar sign (not a hyphen), so the echo should work correctly. 7800 # The option is referenced via a variable to avoid confusing sed. 7801 lt_compile=`echo "$ac_compile" | $SED \ 7802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7804 -e 's:$: $lt_compiler_flag:'` 7805 (eval echo "\"\$as_me:7805: $lt_compile\"" >&5) 7806 (eval "$lt_compile" 2>conftest.err) 7807 ac_status=$? 7808 cat conftest.err >&5 7809 echo "$as_me:7809: \$? = $ac_status" >&5 7810 if (exit $ac_status) && test -s "$ac_outfile"; then 7811 # The compiler can only warn and ignore the option if not recognized 7812 # So say no if there are warnings other than the usual output. 7813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7816 lt_cv_prog_compiler_pic_works=yes 7817 fi 7818 fi 7819 $RM conftest* 7820 7821fi 7822{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7823$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7824 7825if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7826 case $lt_prog_compiler_pic in 7827 "" | " "*) ;; 7828 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7829 esac 7830else 7831 lt_prog_compiler_pic= 7832 lt_prog_compiler_can_build_shared=no 7833fi 7834 7835fi 7836 7837 7838 7839 7840 7841 7842# 7843# Check to make sure the static flag actually works. 7844# 7845wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7846{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7847$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7848if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7849 $as_echo_n "(cached) " >&6 7850else 7851 lt_cv_prog_compiler_static_works=no 7852 save_LDFLAGS="$LDFLAGS" 7853 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7854 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7855 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7856 # The linker can only warn and ignore the option if not recognized 7857 # So say no if there are warnings 7858 if test -s conftest.err; then 7859 # Append any errors to the config.log. 7860 cat conftest.err 1>&5 7861 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7863 if diff conftest.exp conftest.er2 >/dev/null; then 7864 lt_cv_prog_compiler_static_works=yes 7865 fi 7866 else 7867 lt_cv_prog_compiler_static_works=yes 7868 fi 7869 fi 7870 $RM -r conftest* 7871 LDFLAGS="$save_LDFLAGS" 7872 7873fi 7874{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7875$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7876 7877if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7878 : 7879else 7880 lt_prog_compiler_static= 7881fi 7882 7883 7884 7885 7886 7887 7888 7889 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7890$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7891if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7892 $as_echo_n "(cached) " >&6 7893else 7894 lt_cv_prog_compiler_c_o=no 7895 $RM -r conftest 2>/dev/null 7896 mkdir conftest 7897 cd conftest 7898 mkdir out 7899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7900 7901 lt_compiler_flag="-o out/conftest2.$ac_objext" 7902 # Insert the option either (1) after the last *FLAGS variable, or 7903 # (2) before a word containing "conftest.", or (3) at the end. 7904 # Note that $ac_compile itself does not contain backslashes and begins 7905 # with a dollar sign (not a hyphen), so the echo should work correctly. 7906 lt_compile=`echo "$ac_compile" | $SED \ 7907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7909 -e 's:$: $lt_compiler_flag:'` 7910 (eval echo "\"\$as_me:7910: $lt_compile\"" >&5) 7911 (eval "$lt_compile" 2>out/conftest.err) 7912 ac_status=$? 7913 cat out/conftest.err >&5 7914 echo "$as_me:7914: \$? = $ac_status" >&5 7915 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7916 then 7917 # The compiler can only warn and ignore the option if not recognized 7918 # So say no if there are warnings 7919 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7922 lt_cv_prog_compiler_c_o=yes 7923 fi 7924 fi 7925 chmod u+w . 2>&5 7926 $RM conftest* 7927 # SGI C++ compiler will create directory out/ii_files/ for 7928 # template instantiation 7929 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7930 $RM out/* && rmdir out 7931 cd .. 7932 $RM -r conftest 7933 $RM conftest* 7934 7935fi 7936{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7937$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7938 7939 7940 7941 7942 7943 7944 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7945$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7946if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7947 $as_echo_n "(cached) " >&6 7948else 7949 lt_cv_prog_compiler_c_o=no 7950 $RM -r conftest 2>/dev/null 7951 mkdir conftest 7952 cd conftest 7953 mkdir out 7954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7955 7956 lt_compiler_flag="-o out/conftest2.$ac_objext" 7957 # Insert the option either (1) after the last *FLAGS variable, or 7958 # (2) before a word containing "conftest.", or (3) at the end. 7959 # Note that $ac_compile itself does not contain backslashes and begins 7960 # with a dollar sign (not a hyphen), so the echo should work correctly. 7961 lt_compile=`echo "$ac_compile" | $SED \ 7962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7964 -e 's:$: $lt_compiler_flag:'` 7965 (eval echo "\"\$as_me:7965: $lt_compile\"" >&5) 7966 (eval "$lt_compile" 2>out/conftest.err) 7967 ac_status=$? 7968 cat out/conftest.err >&5 7969 echo "$as_me:7969: \$? = $ac_status" >&5 7970 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7971 then 7972 # The compiler can only warn and ignore the option if not recognized 7973 # So say no if there are warnings 7974 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7977 lt_cv_prog_compiler_c_o=yes 7978 fi 7979 fi 7980 chmod u+w . 2>&5 7981 $RM conftest* 7982 # SGI C++ compiler will create directory out/ii_files/ for 7983 # template instantiation 7984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7985 $RM out/* && rmdir out 7986 cd .. 7987 $RM -r conftest 7988 $RM conftest* 7989 7990fi 7991{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7992$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7993 7994 7995 7996 7997hard_links="nottested" 7998if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7999 # do not overwrite the value of need_locks provided by the user 8000 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8001$as_echo_n "checking if we can lock with hard links... " >&6; } 8002 hard_links=yes 8003 $RM conftest* 8004 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8005 touch conftest.a 8006 ln conftest.a conftest.b 2>&5 || hard_links=no 8007 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8008 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8009$as_echo "$hard_links" >&6; } 8010 if test "$hard_links" = no; then 8011 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8012$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8013 need_locks=warn 8014 fi 8015else 8016 need_locks=no 8017fi 8018 8019 8020 8021 8022 8023 8024 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8025$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8026 8027 runpath_var= 8028 allow_undefined_flag= 8029 always_export_symbols=no 8030 archive_cmds= 8031 archive_expsym_cmds= 8032 compiler_needs_object=no 8033 enable_shared_with_static_runtimes=no 8034 export_dynamic_flag_spec= 8035 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8036 hardcode_automatic=no 8037 hardcode_direct=no 8038 hardcode_direct_absolute=no 8039 hardcode_libdir_flag_spec= 8040 hardcode_libdir_flag_spec_ld= 8041 hardcode_libdir_separator= 8042 hardcode_minus_L=no 8043 hardcode_shlibpath_var=unsupported 8044 inherit_rpath=no 8045 link_all_deplibs=unknown 8046 module_cmds= 8047 module_expsym_cmds= 8048 old_archive_from_new_cmds= 8049 old_archive_from_expsyms_cmds= 8050 thread_safe_flag_spec= 8051 whole_archive_flag_spec= 8052 # include_expsyms should be a list of space-separated symbols to be *always* 8053 # included in the symbol list 8054 include_expsyms= 8055 # exclude_expsyms can be an extended regexp of symbols to exclude 8056 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8058 # as well as any symbol that contains `d'. 8059 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8061 # platforms (ab)use it in PIC code, but their linkers get confused if 8062 # the symbol is explicitly referenced. Since portable code cannot 8063 # rely on this symbol name, it's probably fine to never include it in 8064 # preloaded symbol tables. 8065 # Exclude shared library initialization/finalization symbols. 8066 extract_expsyms_cmds= 8067 8068 case $host_os in 8069 cygwin* | mingw* | pw32* | cegcc*) 8070 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8071 # When not using gcc, we currently assume that we are using 8072 # Microsoft Visual C++. 8073 if test "$GCC" != yes; then 8074 with_gnu_ld=no 8075 fi 8076 ;; 8077 interix*) 8078 # we just hope/assume this is gcc and not c89 (= MSVC++) 8079 with_gnu_ld=yes 8080 ;; 8081 openbsd*) 8082 with_gnu_ld=no 8083 ;; 8084 esac 8085 8086 ld_shlibs=yes 8087 if test "$with_gnu_ld" = yes; then 8088 # If archive_cmds runs LD, not CC, wlarc should be empty 8089 wlarc='${wl}' 8090 8091 # Set some defaults for GNU ld with shared library support. These 8092 # are reset later if shared libraries are not supported. Putting them 8093 # here allows them to be overridden if necessary. 8094 runpath_var=LD_RUN_PATH 8095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8096 export_dynamic_flag_spec='${wl}--export-dynamic' 8097 # ancient GNU ld didn't support --whole-archive et. al. 8098 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8099 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8100 else 8101 whole_archive_flag_spec= 8102 fi 8103 supports_anon_versioning=no 8104 case `$LD -v 2>&1` in 8105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8108 *\ 2.11.*) ;; # other 2.11 versions 8109 *) supports_anon_versioning=yes ;; 8110 esac 8111 8112 # See if GNU ld supports shared libraries. 8113 case $host_os in 8114 aix[3-9]*) 8115 # On AIX/PPC, the GNU linker is very broken 8116 if test "$host_cpu" != ia64; then 8117 ld_shlibs=no 8118 cat <<_LT_EOF 1>&2 8119 8120*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8121*** to be unable to reliably create shared libraries on AIX. 8122*** Therefore, libtool is disabling shared libraries support. If you 8123*** really care for shared libraries, you may want to modify your PATH 8124*** so that a non-GNU linker is found, and then restart. 8125 8126_LT_EOF 8127 fi 8128 ;; 8129 8130 amigaos*) 8131 case $host_cpu in 8132 powerpc) 8133 # see comment about AmigaOS4 .so support 8134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8135 archive_expsym_cmds='' 8136 ;; 8137 m68k) 8138 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)' 8139 hardcode_libdir_flag_spec='-L$libdir' 8140 hardcode_minus_L=yes 8141 ;; 8142 esac 8143 ;; 8144 8145 beos*) 8146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8147 allow_undefined_flag=unsupported 8148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8149 # support --undefined. This deserves some investigation. FIXME 8150 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8151 else 8152 ld_shlibs=no 8153 fi 8154 ;; 8155 8156 cygwin* | mingw* | pw32* | cegcc*) 8157 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8158 # as there is no search path for DLLs. 8159 hardcode_libdir_flag_spec='-L$libdir' 8160 allow_undefined_flag=unsupported 8161 always_export_symbols=no 8162 enable_shared_with_static_runtimes=yes 8163 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8164 8165 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8167 # If the export-symbols file already is a .def file (1st line 8168 # is EXPORTS), use it as is; otherwise, prepend... 8169 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8170 cp $export_symbols $output_objdir/$soname.def; 8171 else 8172 echo EXPORTS > $output_objdir/$soname.def; 8173 cat $export_symbols >> $output_objdir/$soname.def; 8174 fi~ 8175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8176 else 8177 ld_shlibs=no 8178 fi 8179 ;; 8180 8181 interix[3-9]*) 8182 hardcode_direct=no 8183 hardcode_shlibpath_var=no 8184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8185 export_dynamic_flag_spec='${wl}-E' 8186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8187 # Instead, shared libraries are loaded at an image base (0x10000000 by 8188 # default) and relocated if they conflict, which is a slow very memory 8189 # consuming and fragmenting process. To avoid this, we pick a random, 8190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8191 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8193 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' 8194 ;; 8195 8196 gnu* | linux* | tpf* | k*bsd*-gnu) 8197 tmp_diet=no 8198 if test "$host_os" = linux-dietlibc; then 8199 case $cc_basename in 8200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8201 esac 8202 fi 8203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8204 && test "$tmp_diet" = no 8205 then 8206 tmp_addflag= 8207 tmp_sharedflag='-shared' 8208 case $cc_basename,$host_cpu in 8209 pgcc*) # Portland Group C compiler 8210 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' 8211 tmp_addflag=' $pic_flag' 8212 ;; 8213 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8214 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' 8215 tmp_addflag=' $pic_flag -Mnomain' ;; 8216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8217 tmp_addflag=' -i_dynamic' ;; 8218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8219 tmp_addflag=' -i_dynamic -nofor_main' ;; 8220 ifc* | ifort*) # Intel Fortran compiler 8221 tmp_addflag=' -nofor_main' ;; 8222 lf95*) # Lahey Fortran 8.1 8223 whole_archive_flag_spec= 8224 tmp_sharedflag='--shared' ;; 8225 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8226 tmp_sharedflag='-qmkshrobj' 8227 tmp_addflag= ;; 8228 esac 8229 case `$CC -V 2>&1 | sed 5q` in 8230 *Sun\ C*) # Sun C 5.9 8231 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' 8232 compiler_needs_object=yes 8233 tmp_sharedflag='-G' ;; 8234 *Sun\ F*) # Sun Fortran 8.3 8235 tmp_sharedflag='-G' ;; 8236 esac 8237 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8238 8239 if test "x$supports_anon_versioning" = xyes; then 8240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8242 echo "local: *; };" >> $output_objdir/$libname.ver~ 8243 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8244 fi 8245 8246 case $cc_basename in 8247 xlf*) 8248 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8249 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8250 hardcode_libdir_flag_spec= 8251 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8252 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8253 if test "x$supports_anon_versioning" = xyes; then 8254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8256 echo "local: *; };" >> $output_objdir/$libname.ver~ 8257 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8258 fi 8259 ;; 8260 esac 8261 else 8262 ld_shlibs=no 8263 fi 8264 ;; 8265 8266 netbsd*) 8267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8269 wlarc= 8270 else 8271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8273 fi 8274 ;; 8275 8276 solaris*) 8277 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8278 ld_shlibs=no 8279 cat <<_LT_EOF 1>&2 8280 8281*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8282*** create shared libraries on Solaris systems. Therefore, libtool 8283*** is disabling shared libraries support. We urge you to upgrade GNU 8284*** binutils to release 2.9.1 or newer. Another option is to modify 8285*** your PATH or compiler configuration so that the native linker is 8286*** used, and then restart. 8287 8288_LT_EOF 8289 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8292 else 8293 ld_shlibs=no 8294 fi 8295 ;; 8296 8297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8298 case `$LD -v 2>&1` in 8299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8300 ld_shlibs=no 8301 cat <<_LT_EOF 1>&2 8302 8303*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8304*** reliably create shared libraries on SCO systems. Therefore, libtool 8305*** is disabling shared libraries support. We urge you to upgrade GNU 8306*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8307*** your PATH or compiler configuration so that the native linker is 8308*** used, and then restart. 8309 8310_LT_EOF 8311 ;; 8312 *) 8313 # For security reasons, it is highly recommended that you always 8314 # use absolute paths for naming shared libraries, and exclude the 8315 # DT_RUNPATH tag from executables and libraries. But doing so 8316 # requires that you compile everything twice, which is a pain. 8317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8321 else 8322 ld_shlibs=no 8323 fi 8324 ;; 8325 esac 8326 ;; 8327 8328 sunos4*) 8329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8330 wlarc= 8331 hardcode_direct=yes 8332 hardcode_shlibpath_var=no 8333 ;; 8334 8335 *) 8336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8339 else 8340 ld_shlibs=no 8341 fi 8342 ;; 8343 esac 8344 8345 if test "$ld_shlibs" = no; then 8346 runpath_var= 8347 hardcode_libdir_flag_spec= 8348 export_dynamic_flag_spec= 8349 whole_archive_flag_spec= 8350 fi 8351 else 8352 # PORTME fill in a description of your system's linker (not GNU ld) 8353 case $host_os in 8354 aix3*) 8355 allow_undefined_flag=unsupported 8356 always_export_symbols=yes 8357 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' 8358 # Note: this linker hardcodes the directories in LIBPATH if there 8359 # are no directories specified by -L. 8360 hardcode_minus_L=yes 8361 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8362 # Neither direct hardcoding nor static linking is supported with a 8363 # broken collect2. 8364 hardcode_direct=unsupported 8365 fi 8366 ;; 8367 8368 aix[4-9]*) 8369 if test "$host_cpu" = ia64; then 8370 # On IA64, the linker does run time linking by default, so we don't 8371 # have to do anything special. 8372 aix_use_runtimelinking=no 8373 exp_sym_flag='-Bexport' 8374 no_entry_flag="" 8375 else 8376 # If we're using GNU nm, then we don't want the "-C" option. 8377 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8379 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' 8380 else 8381 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' 8382 fi 8383 aix_use_runtimelinking=no 8384 8385 # Test if we are trying to use run time linking or normal 8386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8387 # need to do runtime linking. 8388 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8389 for ld_flag in $LDFLAGS; do 8390 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8391 aix_use_runtimelinking=yes 8392 break 8393 fi 8394 done 8395 ;; 8396 esac 8397 8398 exp_sym_flag='-bexport' 8399 no_entry_flag='-bnoentry' 8400 fi 8401 8402 # When large executables or shared objects are built, AIX ld can 8403 # have problems creating the table of contents. If linking a library 8404 # or program results in "error TOC overflow" add -mminimal-toc to 8405 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8406 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8407 8408 archive_cmds='' 8409 hardcode_direct=yes 8410 hardcode_direct_absolute=yes 8411 hardcode_libdir_separator=':' 8412 link_all_deplibs=yes 8413 file_list_spec='${wl}-f,' 8414 8415 if test "$GCC" = yes; then 8416 case $host_os in aix4.[012]|aix4.[012].*) 8417 # We only want to do this on AIX 4.2 and lower, the check 8418 # below for broken collect2 doesn't work under 4.3+ 8419 collect2name=`${CC} -print-prog-name=collect2` 8420 if test -f "$collect2name" && 8421 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8422 then 8423 # We have reworked collect2 8424 : 8425 else 8426 # We have old collect2 8427 hardcode_direct=unsupported 8428 # It fails to find uninstalled libraries when the uninstalled 8429 # path is not listed in the libpath. Setting hardcode_minus_L 8430 # to unsupported forces relinking 8431 hardcode_minus_L=yes 8432 hardcode_libdir_flag_spec='-L$libdir' 8433 hardcode_libdir_separator= 8434 fi 8435 ;; 8436 esac 8437 shared_flag='-shared' 8438 if test "$aix_use_runtimelinking" = yes; then 8439 shared_flag="$shared_flag "'${wl}-G' 8440 fi 8441 else 8442 # not using gcc 8443 if test "$host_cpu" = ia64; then 8444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8445 # chokes on -Wl,-G. The following line is correct: 8446 shared_flag='-G' 8447 else 8448 if test "$aix_use_runtimelinking" = yes; then 8449 shared_flag='${wl}-G' 8450 else 8451 shared_flag='${wl}-bM:SRE' 8452 fi 8453 fi 8454 fi 8455 8456 export_dynamic_flag_spec='${wl}-bexpall' 8457 # It seems that -bexpall does not export symbols beginning with 8458 # underscore (_), so it is better to generate a list of symbols to export. 8459 always_export_symbols=yes 8460 if test "$aix_use_runtimelinking" = yes; then 8461 # Warning - without using the other runtime loading flags (-brtl), 8462 # -berok will link without error, but may produce a broken library. 8463 allow_undefined_flag='-berok' 8464 # Determine the default libpath from the value encoded in an 8465 # empty executable. 8466 cat >conftest.$ac_ext <<_ACEOF 8467/* confdefs.h. */ 8468_ACEOF 8469cat confdefs.h >>conftest.$ac_ext 8470cat >>conftest.$ac_ext <<_ACEOF 8471/* end confdefs.h. */ 8472 8473int 8474main () 8475{ 8476 8477 ; 8478 return 0; 8479} 8480_ACEOF 8481rm -f conftest.$ac_objext conftest$ac_exeext 8482if { (ac_try="$ac_link" 8483case "(($ac_try" in 8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8485 *) ac_try_echo=$ac_try;; 8486esac 8487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8488$as_echo "$ac_try_echo") >&5 8489 (eval "$ac_link") 2>conftest.er1 8490 ac_status=$? 8491 grep -v '^ *+' conftest.er1 >conftest.err 8492 rm -f conftest.er1 8493 cat conftest.err >&5 8494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8495 (exit $ac_status); } && { 8496 test -z "$ac_c_werror_flag" || 8497 test ! -s conftest.err 8498 } && test -s conftest$ac_exeext && { 8499 test "$cross_compiling" = yes || 8500 $as_test_x conftest$ac_exeext 8501 }; then 8502 8503lt_aix_libpath_sed=' 8504 /Import File Strings/,/^$/ { 8505 /^0/ { 8506 s/^0 *\(.*\)$/\1/ 8507 p 8508 } 8509 }' 8510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8511# Check for a 64-bit object if we didn't find anything. 8512if test -z "$aix_libpath"; then 8513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8514fi 8515else 8516 $as_echo "$as_me: failed program was:" >&5 8517sed 's/^/| /' conftest.$ac_ext >&5 8518 8519 8520fi 8521 8522rm -rf conftest.dSYM 8523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8524 conftest$ac_exeext conftest.$ac_ext 8525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8526 8527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8528 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" 8529 else 8530 if test "$host_cpu" = ia64; then 8531 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8532 allow_undefined_flag="-z nodefs" 8533 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" 8534 else 8535 # Determine the default libpath from the value encoded in an 8536 # empty executable. 8537 cat >conftest.$ac_ext <<_ACEOF 8538/* confdefs.h. */ 8539_ACEOF 8540cat confdefs.h >>conftest.$ac_ext 8541cat >>conftest.$ac_ext <<_ACEOF 8542/* end confdefs.h. */ 8543 8544int 8545main () 8546{ 8547 8548 ; 8549 return 0; 8550} 8551_ACEOF 8552rm -f conftest.$ac_objext conftest$ac_exeext 8553if { (ac_try="$ac_link" 8554case "(($ac_try" in 8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8556 *) ac_try_echo=$ac_try;; 8557esac 8558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8559$as_echo "$ac_try_echo") >&5 8560 (eval "$ac_link") 2>conftest.er1 8561 ac_status=$? 8562 grep -v '^ *+' conftest.er1 >conftest.err 8563 rm -f conftest.er1 8564 cat conftest.err >&5 8565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8566 (exit $ac_status); } && { 8567 test -z "$ac_c_werror_flag" || 8568 test ! -s conftest.err 8569 } && test -s conftest$ac_exeext && { 8570 test "$cross_compiling" = yes || 8571 $as_test_x conftest$ac_exeext 8572 }; then 8573 8574lt_aix_libpath_sed=' 8575 /Import File Strings/,/^$/ { 8576 /^0/ { 8577 s/^0 *\(.*\)$/\1/ 8578 p 8579 } 8580 }' 8581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8582# Check for a 64-bit object if we didn't find anything. 8583if test -z "$aix_libpath"; then 8584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8585fi 8586else 8587 $as_echo "$as_me: failed program was:" >&5 8588sed 's/^/| /' conftest.$ac_ext >&5 8589 8590 8591fi 8592 8593rm -rf conftest.dSYM 8594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8595 conftest$ac_exeext conftest.$ac_ext 8596if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8597 8598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8599 # Warning - without using the other run time loading flags, 8600 # -berok will link without error, but may produce a broken library. 8601 no_undefined_flag=' ${wl}-bernotok' 8602 allow_undefined_flag=' ${wl}-berok' 8603 # Exported symbols can be pulled into shared objects from archives 8604 whole_archive_flag_spec='$convenience' 8605 archive_cmds_need_lc=yes 8606 # This is similar to how AIX traditionally builds its shared libraries. 8607 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' 8608 fi 8609 fi 8610 ;; 8611 8612 amigaos*) 8613 case $host_cpu in 8614 powerpc) 8615 # see comment about AmigaOS4 .so support 8616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8617 archive_expsym_cmds='' 8618 ;; 8619 m68k) 8620 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)' 8621 hardcode_libdir_flag_spec='-L$libdir' 8622 hardcode_minus_L=yes 8623 ;; 8624 esac 8625 ;; 8626 8627 bsdi[45]*) 8628 export_dynamic_flag_spec=-rdynamic 8629 ;; 8630 8631 cygwin* | mingw* | pw32* | cegcc*) 8632 # When not using gcc, we currently assume that we are using 8633 # Microsoft Visual C++. 8634 # hardcode_libdir_flag_spec is actually meaningless, as there is 8635 # no search path for DLLs. 8636 hardcode_libdir_flag_spec=' ' 8637 allow_undefined_flag=unsupported 8638 # Tell ltmain to make .lib files, not .a files. 8639 libext=lib 8640 # Tell ltmain to make .dll files, not .so files. 8641 shrext_cmds=".dll" 8642 # FIXME: Setting linknames here is a bad hack. 8643 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8644 # The linker will automatically build a .lib file if we build a DLL. 8645 old_archive_from_new_cmds='true' 8646 # FIXME: Should let the user specify the lib program. 8647 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8648 fix_srcfile_path='`cygpath -w "$srcfile"`' 8649 enable_shared_with_static_runtimes=yes 8650 ;; 8651 8652 darwin* | rhapsody*) 8653 8654 8655 archive_cmds_need_lc=no 8656 hardcode_direct=no 8657 hardcode_automatic=yes 8658 hardcode_shlibpath_var=unsupported 8659 whole_archive_flag_spec='' 8660 link_all_deplibs=yes 8661 allow_undefined_flag="$_lt_dar_allow_undefined" 8662 case $cc_basename in 8663 ifort*) _lt_dar_can_shared=yes ;; 8664 *) _lt_dar_can_shared=$GCC ;; 8665 esac 8666 if test "$_lt_dar_can_shared" = "yes"; then 8667 output_verbose_link_cmd=echo 8668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8670 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}" 8671 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}" 8672 8673 else 8674 ld_shlibs=no 8675 fi 8676 8677 ;; 8678 8679 dgux*) 8680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8681 hardcode_libdir_flag_spec='-L$libdir' 8682 hardcode_shlibpath_var=no 8683 ;; 8684 8685 freebsd1*) 8686 ld_shlibs=no 8687 ;; 8688 8689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8690 # support. Future versions do this automatically, but an explicit c++rt0.o 8691 # does not break anything, and helps significantly (at the cost of a little 8692 # extra space). 8693 freebsd2.2*) 8694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8695 hardcode_libdir_flag_spec='-R$libdir' 8696 hardcode_direct=yes 8697 hardcode_shlibpath_var=no 8698 ;; 8699 8700 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8701 freebsd2*) 8702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8703 hardcode_direct=yes 8704 hardcode_minus_L=yes 8705 hardcode_shlibpath_var=no 8706 ;; 8707 8708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8709 freebsd* | dragonfly*) 8710 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8711 hardcode_libdir_flag_spec='-R$libdir' 8712 hardcode_direct=yes 8713 hardcode_shlibpath_var=no 8714 ;; 8715 8716 hpux9*) 8717 if test "$GCC" = yes; then 8718 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' 8719 else 8720 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' 8721 fi 8722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8723 hardcode_libdir_separator=: 8724 hardcode_direct=yes 8725 8726 # hardcode_minus_L: Not really in the search PATH, 8727 # but as the default location of the library. 8728 hardcode_minus_L=yes 8729 export_dynamic_flag_spec='${wl}-E' 8730 ;; 8731 8732 hpux10*) 8733 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8735 else 8736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8737 fi 8738 if test "$with_gnu_ld" = no; then 8739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8740 hardcode_libdir_flag_spec_ld='+b $libdir' 8741 hardcode_libdir_separator=: 8742 hardcode_direct=yes 8743 hardcode_direct_absolute=yes 8744 export_dynamic_flag_spec='${wl}-E' 8745 # hardcode_minus_L: Not really in the search PATH, 8746 # but as the default location of the library. 8747 hardcode_minus_L=yes 8748 fi 8749 ;; 8750 8751 hpux11*) 8752 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8753 case $host_cpu in 8754 hppa*64*) 8755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8756 ;; 8757 ia64*) 8758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8759 ;; 8760 *) 8761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8762 ;; 8763 esac 8764 else 8765 case $host_cpu in 8766 hppa*64*) 8767 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8768 ;; 8769 ia64*) 8770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8771 ;; 8772 *) 8773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8774 ;; 8775 esac 8776 fi 8777 if test "$with_gnu_ld" = no; then 8778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8779 hardcode_libdir_separator=: 8780 8781 case $host_cpu in 8782 hppa*64*|ia64*) 8783 hardcode_direct=no 8784 hardcode_shlibpath_var=no 8785 ;; 8786 *) 8787 hardcode_direct=yes 8788 hardcode_direct_absolute=yes 8789 export_dynamic_flag_spec='${wl}-E' 8790 8791 # hardcode_minus_L: Not really in the search PATH, 8792 # but as the default location of the library. 8793 hardcode_minus_L=yes 8794 ;; 8795 esac 8796 fi 8797 ;; 8798 8799 irix5* | irix6* | nonstopux*) 8800 if test "$GCC" = yes; then 8801 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' 8802 # Try to use the -exported_symbol ld option, if it does not 8803 # work, assume that -exports_file does not work either and 8804 # implicitly export all symbols. 8805 save_LDFLAGS="$LDFLAGS" 8806 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8807 cat >conftest.$ac_ext <<_ACEOF 8808int foo(void) {} 8809_ACEOF 8810rm -f conftest.$ac_objext conftest$ac_exeext 8811if { (ac_try="$ac_link" 8812case "(($ac_try" in 8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8814 *) ac_try_echo=$ac_try;; 8815esac 8816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8817$as_echo "$ac_try_echo") >&5 8818 (eval "$ac_link") 2>conftest.er1 8819 ac_status=$? 8820 grep -v '^ *+' conftest.er1 >conftest.err 8821 rm -f conftest.er1 8822 cat conftest.err >&5 8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8824 (exit $ac_status); } && { 8825 test -z "$ac_c_werror_flag" || 8826 test ! -s conftest.err 8827 } && test -s conftest$ac_exeext && { 8828 test "$cross_compiling" = yes || 8829 $as_test_x conftest$ac_exeext 8830 }; then 8831 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' 8832 8833else 8834 $as_echo "$as_me: failed program was:" >&5 8835sed 's/^/| /' conftest.$ac_ext >&5 8836 8837 8838fi 8839 8840rm -rf conftest.dSYM 8841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8842 conftest$ac_exeext conftest.$ac_ext 8843 LDFLAGS="$save_LDFLAGS" 8844 else 8845 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' 8846 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' 8847 fi 8848 archive_cmds_need_lc='no' 8849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8850 hardcode_libdir_separator=: 8851 inherit_rpath=yes 8852 link_all_deplibs=yes 8853 ;; 8854 8855 netbsd*) 8856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8858 else 8859 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8860 fi 8861 hardcode_libdir_flag_spec='-R$libdir' 8862 hardcode_direct=yes 8863 hardcode_shlibpath_var=no 8864 ;; 8865 8866 newsos6) 8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8868 hardcode_direct=yes 8869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8870 hardcode_libdir_separator=: 8871 hardcode_shlibpath_var=no 8872 ;; 8873 8874 *nto* | *qnx*) 8875 ;; 8876 8877 openbsd*) 8878 if test -f /usr/libexec/ld.so; then 8879 hardcode_direct=yes 8880 hardcode_shlibpath_var=no 8881 hardcode_direct_absolute=yes 8882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8884 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8886 export_dynamic_flag_spec='${wl}-E' 8887 else 8888 case $host_os in 8889 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8891 hardcode_libdir_flag_spec='-R$libdir' 8892 ;; 8893 *) 8894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8896 ;; 8897 esac 8898 fi 8899 else 8900 ld_shlibs=no 8901 fi 8902 ;; 8903 8904 os2*) 8905 hardcode_libdir_flag_spec='-L$libdir' 8906 hardcode_minus_L=yes 8907 allow_undefined_flag=unsupported 8908 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' 8909 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8910 ;; 8911 8912 osf3*) 8913 if test "$GCC" = yes; then 8914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8915 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' 8916 else 8917 allow_undefined_flag=' -expect_unresolved \*' 8918 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' 8919 fi 8920 archive_cmds_need_lc='no' 8921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8922 hardcode_libdir_separator=: 8923 ;; 8924 8925 osf4* | osf5*) # as osf3* with the addition of -msym flag 8926 if test "$GCC" = yes; then 8927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8928 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' 8929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8930 else 8931 allow_undefined_flag=' -expect_unresolved \*' 8932 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' 8933 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~ 8934 $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' 8935 8936 # Both c and cxx compiler support -rpath directly 8937 hardcode_libdir_flag_spec='-rpath $libdir' 8938 fi 8939 archive_cmds_need_lc='no' 8940 hardcode_libdir_separator=: 8941 ;; 8942 8943 solaris*) 8944 no_undefined_flag=' -z defs' 8945 if test "$GCC" = yes; then 8946 wlarc='${wl}' 8947 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8949 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8950 else 8951 case `$CC -V 2>&1` in 8952 *"Compilers 5.0"*) 8953 wlarc='' 8954 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8956 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8957 ;; 8958 *) 8959 wlarc='${wl}' 8960 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8961 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8962 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8963 ;; 8964 esac 8965 fi 8966 hardcode_libdir_flag_spec='-R$libdir' 8967 hardcode_shlibpath_var=no 8968 case $host_os in 8969 solaris2.[0-5] | solaris2.[0-5].*) ;; 8970 *) 8971 # The compiler driver will combine and reorder linker options, 8972 # but understands `-z linker_flag'. GCC discards it without `$wl', 8973 # but is careful enough not to reorder. 8974 # Supported since Solaris 2.6 (maybe 2.5.1?) 8975 if test "$GCC" = yes; then 8976 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8977 else 8978 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8979 fi 8980 ;; 8981 esac 8982 link_all_deplibs=yes 8983 ;; 8984 8985 sunos4*) 8986 if test "x$host_vendor" = xsequent; then 8987 # Use $CC to link under sequent, because it throws in some extra .o 8988 # files that make .init and .fini sections work. 8989 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8990 else 8991 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8992 fi 8993 hardcode_libdir_flag_spec='-L$libdir' 8994 hardcode_direct=yes 8995 hardcode_minus_L=yes 8996 hardcode_shlibpath_var=no 8997 ;; 8998 8999 sysv4) 9000 case $host_vendor in 9001 sni) 9002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9003 hardcode_direct=yes # is this really true??? 9004 ;; 9005 siemens) 9006 ## LD is ld it makes a PLAMLIB 9007 ## CC just makes a GrossModule. 9008 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9009 reload_cmds='$CC -r -o $output$reload_objs' 9010 hardcode_direct=no 9011 ;; 9012 motorola) 9013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9014 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9015 ;; 9016 esac 9017 runpath_var='LD_RUN_PATH' 9018 hardcode_shlibpath_var=no 9019 ;; 9020 9021 sysv4.3*) 9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9023 hardcode_shlibpath_var=no 9024 export_dynamic_flag_spec='-Bexport' 9025 ;; 9026 9027 sysv4*MP*) 9028 if test -d /usr/nec; then 9029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9030 hardcode_shlibpath_var=no 9031 runpath_var=LD_RUN_PATH 9032 hardcode_runpath_var=yes 9033 ld_shlibs=yes 9034 fi 9035 ;; 9036 9037 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9038 no_undefined_flag='${wl}-z,text' 9039 archive_cmds_need_lc=no 9040 hardcode_shlibpath_var=no 9041 runpath_var='LD_RUN_PATH' 9042 9043 if test "$GCC" = yes; then 9044 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9045 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9046 else 9047 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9048 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9049 fi 9050 ;; 9051 9052 sysv5* | sco3.2v5* | sco5v6*) 9053 # Note: We can NOT use -z defs as we might desire, because we do not 9054 # link with -lc, and that would cause any symbols used from libc to 9055 # always be unresolved, which means just about no library would 9056 # ever link correctly. If we're not using GNU ld we use -z text 9057 # though, which does catch some bad symbols but isn't as heavy-handed 9058 # as -z defs. 9059 no_undefined_flag='${wl}-z,text' 9060 allow_undefined_flag='${wl}-z,nodefs' 9061 archive_cmds_need_lc=no 9062 hardcode_shlibpath_var=no 9063 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9064 hardcode_libdir_separator=':' 9065 link_all_deplibs=yes 9066 export_dynamic_flag_spec='${wl}-Bexport' 9067 runpath_var='LD_RUN_PATH' 9068 9069 if test "$GCC" = yes; then 9070 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9071 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9072 else 9073 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9074 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9075 fi 9076 ;; 9077 9078 uts4*) 9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9080 hardcode_libdir_flag_spec='-L$libdir' 9081 hardcode_shlibpath_var=no 9082 ;; 9083 9084 *) 9085 ld_shlibs=no 9086 ;; 9087 esac 9088 9089 if test x$host_vendor = xsni; then 9090 case $host in 9091 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9092 export_dynamic_flag_spec='${wl}-Blargedynsym' 9093 ;; 9094 esac 9095 fi 9096 fi 9097 9098{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9099$as_echo "$ld_shlibs" >&6; } 9100test "$ld_shlibs" = no && can_build_shared=no 9101 9102with_gnu_ld=$with_gnu_ld 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118# 9119# Do we need to explicitly link libc? 9120# 9121case "x$archive_cmds_need_lc" in 9122x|xyes) 9123 # Assume -lc should be added 9124 archive_cmds_need_lc=yes 9125 9126 if test "$enable_shared" = yes && test "$GCC" = yes; then 9127 case $archive_cmds in 9128 *'~'*) 9129 # FIXME: we may have to deal with multi-command sequences. 9130 ;; 9131 '$CC '*) 9132 # Test whether the compiler implicitly links with -lc since on some 9133 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9134 # to ld, don't add -lc before -lgcc. 9135 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9136$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9137 $RM conftest* 9138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9139 9140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9141 (eval $ac_compile) 2>&5 9142 ac_status=$? 9143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 (exit $ac_status); } 2>conftest.err; then 9145 soname=conftest 9146 lib=conftest 9147 libobjs=conftest.$ac_objext 9148 deplibs= 9149 wl=$lt_prog_compiler_wl 9150 pic_flag=$lt_prog_compiler_pic 9151 compiler_flags=-v 9152 linker_flags=-v 9153 verstring= 9154 output_objdir=. 9155 libname=conftest 9156 lt_save_allow_undefined_flag=$allow_undefined_flag 9157 allow_undefined_flag= 9158 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9159 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9160 ac_status=$? 9161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9162 (exit $ac_status); } 9163 then 9164 archive_cmds_need_lc=no 9165 else 9166 archive_cmds_need_lc=yes 9167 fi 9168 allow_undefined_flag=$lt_save_allow_undefined_flag 9169 else 9170 cat conftest.err 1>&5 9171 fi 9172 $RM conftest* 9173 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9174$as_echo "$archive_cmds_need_lc" >&6; } 9175 ;; 9176 esac 9177 fi 9178 ;; 9179esac 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9338$as_echo_n "checking dynamic linker characteristics... " >&6; } 9339 9340if test "$GCC" = yes; then 9341 case $host_os in 9342 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9343 *) lt_awk_arg="/^libraries:/" ;; 9344 esac 9345 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9346 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9347 # if the path contains ";" then we assume it to be the separator 9348 # otherwise default to the standard path separator (i.e. ":") - it is 9349 # assumed that no part of a normal pathname contains ";" but that should 9350 # okay in the real world where ";" in dirpaths is itself problematic. 9351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9352 else 9353 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9354 fi 9355 # Ok, now we have the path, separated by spaces, we can step through it 9356 # and add multilib dir if necessary. 9357 lt_tmp_lt_search_path_spec= 9358 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9359 for lt_sys_path in $lt_search_path_spec; do 9360 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9362 else 9363 test -d "$lt_sys_path" && \ 9364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9365 fi 9366 done 9367 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9368BEGIN {RS=" "; FS="/|\n";} { 9369 lt_foo=""; 9370 lt_count=0; 9371 for (lt_i = NF; lt_i > 0; lt_i--) { 9372 if ($lt_i != "" && $lt_i != ".") { 9373 if ($lt_i == "..") { 9374 lt_count++; 9375 } else { 9376 if (lt_count == 0) { 9377 lt_foo="/" $lt_i lt_foo; 9378 } else { 9379 lt_count--; 9380 } 9381 } 9382 } 9383 } 9384 if (lt_foo != "") { lt_freq[lt_foo]++; } 9385 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9386}'` 9387 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9388else 9389 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9390fi 9391library_names_spec= 9392libname_spec='lib$name' 9393soname_spec= 9394shrext_cmds=".so" 9395postinstall_cmds= 9396postuninstall_cmds= 9397finish_cmds= 9398finish_eval= 9399shlibpath_var= 9400shlibpath_overrides_runpath=unknown 9401version_type=none 9402dynamic_linker="$host_os ld.so" 9403sys_lib_dlsearch_path_spec="/lib /usr/lib" 9404need_lib_prefix=unknown 9405hardcode_into_libs=no 9406 9407# when you set need_version to no, make sure it does not cause -set_version 9408# flags to be left without arguments 9409need_version=unknown 9410 9411case $host_os in 9412aix3*) 9413 version_type=linux 9414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9415 shlibpath_var=LIBPATH 9416 9417 # AIX 3 has no versioning support, so we append a major version to the name. 9418 soname_spec='${libname}${release}${shared_ext}$major' 9419 ;; 9420 9421aix[4-9]*) 9422 version_type=linux 9423 need_lib_prefix=no 9424 need_version=no 9425 hardcode_into_libs=yes 9426 if test "$host_cpu" = ia64; then 9427 # AIX 5 supports IA64 9428 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9429 shlibpath_var=LD_LIBRARY_PATH 9430 else 9431 # With GCC up to 2.95.x, collect2 would create an import file 9432 # for dependence libraries. The import file would start with 9433 # the line `#! .'. This would cause the generated library to 9434 # depend on `.', always an invalid library. This was fixed in 9435 # development snapshots of GCC prior to 3.0. 9436 case $host_os in 9437 aix4 | aix4.[01] | aix4.[01].*) 9438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9439 echo ' yes ' 9440 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9441 : 9442 else 9443 can_build_shared=no 9444 fi 9445 ;; 9446 esac 9447 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9448 # soname into executable. Probably we can add versioning support to 9449 # collect2, so additional links can be useful in future. 9450 if test "$aix_use_runtimelinking" = yes; then 9451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9452 # instead of lib<name>.a to let people know that these are not 9453 # typical AIX shared libraries. 9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9455 else 9456 # We preserve .a as extension for shared libraries through AIX4.2 9457 # and later when we are not doing run time linking. 9458 library_names_spec='${libname}${release}.a $libname.a' 9459 soname_spec='${libname}${release}${shared_ext}$major' 9460 fi 9461 shlibpath_var=LIBPATH 9462 fi 9463 ;; 9464 9465amigaos*) 9466 case $host_cpu in 9467 powerpc) 9468 # Since July 2007 AmigaOS4 officially supports .so libraries. 9469 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9471 ;; 9472 m68k) 9473 library_names_spec='$libname.ixlibrary $libname.a' 9474 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9475 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' 9476 ;; 9477 esac 9478 ;; 9479 9480beos*) 9481 library_names_spec='${libname}${shared_ext}' 9482 dynamic_linker="$host_os ld.so" 9483 shlibpath_var=LIBRARY_PATH 9484 ;; 9485 9486bsdi[45]*) 9487 version_type=linux 9488 need_version=no 9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9490 soname_spec='${libname}${release}${shared_ext}$major' 9491 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9492 shlibpath_var=LD_LIBRARY_PATH 9493 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9494 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9495 # the default ld.so.conf also contains /usr/contrib/lib and 9496 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9497 # libtool to hard-code these into programs 9498 ;; 9499 9500cygwin* | mingw* | pw32* | cegcc*) 9501 version_type=windows 9502 shrext_cmds=".dll" 9503 need_version=no 9504 need_lib_prefix=no 9505 9506 case $GCC,$host_os in 9507 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9508 library_names_spec='$libname.dll.a' 9509 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9510 postinstall_cmds='base_file=`basename \${file}`~ 9511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9512 dldir=$destdir/`dirname \$dlpath`~ 9513 test -d \$dldir || mkdir -p \$dldir~ 9514 $install_prog $dir/$dlname \$dldir/$dlname~ 9515 chmod a+x \$dldir/$dlname~ 9516 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9517 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9518 fi' 9519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9520 dlpath=$dir/\$dldll~ 9521 $RM \$dlpath' 9522 shlibpath_overrides_runpath=yes 9523 9524 case $host_os in 9525 cygwin*) 9526 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9527 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9528 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9529 ;; 9530 mingw* | cegcc*) 9531 # MinGW DLLs use traditional 'lib' prefix 9532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9533 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9534 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9535 # It is most probably a Windows format PATH printed by 9536 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9537 # path with ; separators, and with drive letters. We can handle the 9538 # drive letters (cygwin fileutils understands them), so leave them, 9539 # especially as we might pass files found there to a mingw objdump, 9540 # which wouldn't understand a cygwinified path. Ahh. 9541 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9542 else 9543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9544 fi 9545 ;; 9546 pw32*) 9547 # pw32 DLLs use 'pw' prefix rather than 'lib' 9548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9549 ;; 9550 esac 9551 ;; 9552 9553 *) 9554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9555 ;; 9556 esac 9557 dynamic_linker='Win32 ld.exe' 9558 # FIXME: first we should search . and the directory the executable is in 9559 shlibpath_var=PATH 9560 ;; 9561 9562darwin* | rhapsody*) 9563 dynamic_linker="$host_os dyld" 9564 version_type=darwin 9565 need_lib_prefix=no 9566 need_version=no 9567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9568 soname_spec='${libname}${release}${major}$shared_ext' 9569 shlibpath_overrides_runpath=yes 9570 shlibpath_var=DYLD_LIBRARY_PATH 9571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9572 9573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9575 ;; 9576 9577dgux*) 9578 version_type=linux 9579 need_lib_prefix=no 9580 need_version=no 9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9582 soname_spec='${libname}${release}${shared_ext}$major' 9583 shlibpath_var=LD_LIBRARY_PATH 9584 ;; 9585 9586freebsd1*) 9587 dynamic_linker=no 9588 ;; 9589 9590freebsd* | dragonfly*) 9591 # DragonFly does not have aout. When/if they implement a new 9592 # versioning mechanism, adjust this. 9593 if test -x /usr/bin/objformat; then 9594 objformat=`/usr/bin/objformat` 9595 else 9596 case $host_os in 9597 freebsd[123]*) objformat=aout ;; 9598 *) objformat=elf ;; 9599 esac 9600 fi 9601 version_type=freebsd-$objformat 9602 case $version_type in 9603 freebsd-elf*) 9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9605 need_version=no 9606 need_lib_prefix=no 9607 ;; 9608 freebsd-*) 9609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9610 need_version=yes 9611 ;; 9612 esac 9613 shlibpath_var=LD_LIBRARY_PATH 9614 case $host_os in 9615 freebsd2*) 9616 shlibpath_overrides_runpath=yes 9617 ;; 9618 freebsd3.[01]* | freebsdelf3.[01]*) 9619 shlibpath_overrides_runpath=yes 9620 hardcode_into_libs=yes 9621 ;; 9622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9624 shlibpath_overrides_runpath=no 9625 hardcode_into_libs=yes 9626 ;; 9627 *) # from 4.6 on, and DragonFly 9628 shlibpath_overrides_runpath=yes 9629 hardcode_into_libs=yes 9630 ;; 9631 esac 9632 ;; 9633 9634gnu*) 9635 version_type=linux 9636 need_lib_prefix=no 9637 need_version=no 9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9639 soname_spec='${libname}${release}${shared_ext}$major' 9640 shlibpath_var=LD_LIBRARY_PATH 9641 hardcode_into_libs=yes 9642 ;; 9643 9644hpux9* | hpux10* | hpux11*) 9645 # Give a soname corresponding to the major version so that dld.sl refuses to 9646 # link against other versions. 9647 version_type=sunos 9648 need_lib_prefix=no 9649 need_version=no 9650 case $host_cpu in 9651 ia64*) 9652 shrext_cmds='.so' 9653 hardcode_into_libs=yes 9654 dynamic_linker="$host_os dld.so" 9655 shlibpath_var=LD_LIBRARY_PATH 9656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9658 soname_spec='${libname}${release}${shared_ext}$major' 9659 if test "X$HPUX_IA64_MODE" = X32; then 9660 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9661 else 9662 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9663 fi 9664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9665 ;; 9666 hppa*64*) 9667 shrext_cmds='.sl' 9668 hardcode_into_libs=yes 9669 dynamic_linker="$host_os dld.sl" 9670 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9673 soname_spec='${libname}${release}${shared_ext}$major' 9674 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9676 ;; 9677 *) 9678 shrext_cmds='.sl' 9679 dynamic_linker="$host_os dld.sl" 9680 shlibpath_var=SHLIB_PATH 9681 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9683 soname_spec='${libname}${release}${shared_ext}$major' 9684 ;; 9685 esac 9686 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9687 postinstall_cmds='chmod 555 $lib' 9688 ;; 9689 9690interix[3-9]*) 9691 version_type=linux 9692 need_lib_prefix=no 9693 need_version=no 9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9695 soname_spec='${libname}${release}${shared_ext}$major' 9696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9697 shlibpath_var=LD_LIBRARY_PATH 9698 shlibpath_overrides_runpath=no 9699 hardcode_into_libs=yes 9700 ;; 9701 9702irix5* | irix6* | nonstopux*) 9703 case $host_os in 9704 nonstopux*) version_type=nonstopux ;; 9705 *) 9706 if test "$lt_cv_prog_gnu_ld" = yes; then 9707 version_type=linux 9708 else 9709 version_type=irix 9710 fi ;; 9711 esac 9712 need_lib_prefix=no 9713 need_version=no 9714 soname_spec='${libname}${release}${shared_ext}$major' 9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9716 case $host_os in 9717 irix5* | nonstopux*) 9718 libsuff= shlibsuff= 9719 ;; 9720 *) 9721 case $LD in # libtool.m4 will add one of these switches to LD 9722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9723 libsuff= shlibsuff= libmagic=32-bit;; 9724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9725 libsuff=32 shlibsuff=N32 libmagic=N32;; 9726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9727 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9728 *) libsuff= shlibsuff= libmagic=never-match;; 9729 esac 9730 ;; 9731 esac 9732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9733 shlibpath_overrides_runpath=no 9734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9736 hardcode_into_libs=yes 9737 ;; 9738 9739# No shared lib support for Linux oldld, aout, or coff. 9740linux*oldld* | linux*aout* | linux*coff*) 9741 dynamic_linker=no 9742 ;; 9743 9744# This must be Linux ELF. 9745linux* | k*bsd*-gnu) 9746 version_type=linux 9747 need_lib_prefix=no 9748 need_version=no 9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9750 soname_spec='${libname}${release}${shared_ext}$major' 9751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9752 shlibpath_var=LD_LIBRARY_PATH 9753 shlibpath_overrides_runpath=no 9754 # Some binutils ld are patched to set DT_RUNPATH 9755 save_LDFLAGS=$LDFLAGS 9756 save_libdir=$libdir 9757 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9758 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9759 cat >conftest.$ac_ext <<_ACEOF 9760/* confdefs.h. */ 9761_ACEOF 9762cat confdefs.h >>conftest.$ac_ext 9763cat >>conftest.$ac_ext <<_ACEOF 9764/* end confdefs.h. */ 9765 9766int 9767main () 9768{ 9769 9770 ; 9771 return 0; 9772} 9773_ACEOF 9774rm -f conftest.$ac_objext conftest$ac_exeext 9775if { (ac_try="$ac_link" 9776case "(($ac_try" in 9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9778 *) ac_try_echo=$ac_try;; 9779esac 9780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9781$as_echo "$ac_try_echo") >&5 9782 (eval "$ac_link") 2>conftest.er1 9783 ac_status=$? 9784 grep -v '^ *+' conftest.er1 >conftest.err 9785 rm -f conftest.er1 9786 cat conftest.err >&5 9787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9788 (exit $ac_status); } && { 9789 test -z "$ac_c_werror_flag" || 9790 test ! -s conftest.err 9791 } && test -s conftest$ac_exeext && { 9792 test "$cross_compiling" = yes || 9793 $as_test_x conftest$ac_exeext 9794 }; then 9795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9796 shlibpath_overrides_runpath=yes 9797fi 9798 9799else 9800 $as_echo "$as_me: failed program was:" >&5 9801sed 's/^/| /' conftest.$ac_ext >&5 9802 9803 9804fi 9805 9806rm -rf conftest.dSYM 9807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9808 conftest$ac_exeext conftest.$ac_ext 9809 LDFLAGS=$save_LDFLAGS 9810 libdir=$save_libdir 9811 9812 # This implies no fast_install, which is unacceptable. 9813 # Some rework will be needed to allow for fast_install 9814 # before this can be enabled. 9815 hardcode_into_libs=yes 9816 9817 # Add ABI-specific directories to the system library path. 9818 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9819 9820 # Append ld.so.conf contents to the search path 9821 if test -f /etc/ld.so.conf; then 9822 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' ' '` 9823 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9824 fi 9825 9826 # We used to test for /lib/ld.so.1 and disable shared libraries on 9827 # powerpc, because MkLinux only supported shared libraries with the 9828 # GNU dynamic linker. Since this was broken with cross compilers, 9829 # most powerpc-linux boxes support dynamic linking these days and 9830 # people can always --disable-shared, the test was removed, and we 9831 # assume the GNU/Linux dynamic linker is in use. 9832 dynamic_linker='GNU/Linux ld.so' 9833 ;; 9834 9835netbsd*) 9836 version_type=sunos 9837 need_lib_prefix=no 9838 need_version=no 9839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9842 dynamic_linker='NetBSD (a.out) ld.so' 9843 else 9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9845 soname_spec='${libname}${release}${shared_ext}$major' 9846 dynamic_linker='NetBSD ld.elf_so' 9847 fi 9848 shlibpath_var=LD_LIBRARY_PATH 9849 shlibpath_overrides_runpath=yes 9850 hardcode_into_libs=yes 9851 ;; 9852 9853newsos6) 9854 version_type=linux 9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9856 shlibpath_var=LD_LIBRARY_PATH 9857 shlibpath_overrides_runpath=yes 9858 ;; 9859 9860*nto* | *qnx*) 9861 version_type=qnx 9862 need_lib_prefix=no 9863 need_version=no 9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9865 soname_spec='${libname}${release}${shared_ext}$major' 9866 shlibpath_var=LD_LIBRARY_PATH 9867 shlibpath_overrides_runpath=no 9868 hardcode_into_libs=yes 9869 dynamic_linker='ldqnx.so' 9870 ;; 9871 9872openbsd*) 9873 version_type=sunos 9874 sys_lib_dlsearch_path_spec="/usr/lib" 9875 need_lib_prefix=no 9876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9877 case $host_os in 9878 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9879 *) need_version=no ;; 9880 esac 9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9883 shlibpath_var=LD_LIBRARY_PATH 9884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9885 case $host_os in 9886 openbsd2.[89] | openbsd2.[89].*) 9887 shlibpath_overrides_runpath=no 9888 ;; 9889 *) 9890 shlibpath_overrides_runpath=yes 9891 ;; 9892 esac 9893 else 9894 shlibpath_overrides_runpath=yes 9895 fi 9896 ;; 9897 9898os2*) 9899 libname_spec='$name' 9900 shrext_cmds=".dll" 9901 need_lib_prefix=no 9902 library_names_spec='$libname${shared_ext} $libname.a' 9903 dynamic_linker='OS/2 ld.exe' 9904 shlibpath_var=LIBPATH 9905 ;; 9906 9907osf3* | osf4* | osf5*) 9908 version_type=osf 9909 need_lib_prefix=no 9910 need_version=no 9911 soname_spec='${libname}${release}${shared_ext}$major' 9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9913 shlibpath_var=LD_LIBRARY_PATH 9914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9916 ;; 9917 9918rdos*) 9919 dynamic_linker=no 9920 ;; 9921 9922solaris*) 9923 version_type=linux 9924 need_lib_prefix=no 9925 need_version=no 9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9927 soname_spec='${libname}${release}${shared_ext}$major' 9928 shlibpath_var=LD_LIBRARY_PATH 9929 shlibpath_overrides_runpath=yes 9930 hardcode_into_libs=yes 9931 # ldd complains unless libraries are executable 9932 postinstall_cmds='chmod +x $lib' 9933 ;; 9934 9935sunos4*) 9936 version_type=sunos 9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9939 shlibpath_var=LD_LIBRARY_PATH 9940 shlibpath_overrides_runpath=yes 9941 if test "$with_gnu_ld" = yes; then 9942 need_lib_prefix=no 9943 fi 9944 need_version=yes 9945 ;; 9946 9947sysv4 | sysv4.3*) 9948 version_type=linux 9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9950 soname_spec='${libname}${release}${shared_ext}$major' 9951 shlibpath_var=LD_LIBRARY_PATH 9952 case $host_vendor in 9953 sni) 9954 shlibpath_overrides_runpath=no 9955 need_lib_prefix=no 9956 runpath_var=LD_RUN_PATH 9957 ;; 9958 siemens) 9959 need_lib_prefix=no 9960 ;; 9961 motorola) 9962 need_lib_prefix=no 9963 need_version=no 9964 shlibpath_overrides_runpath=no 9965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9966 ;; 9967 esac 9968 ;; 9969 9970sysv4*MP*) 9971 if test -d /usr/nec ;then 9972 version_type=linux 9973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9974 soname_spec='$libname${shared_ext}.$major' 9975 shlibpath_var=LD_LIBRARY_PATH 9976 fi 9977 ;; 9978 9979sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9980 version_type=freebsd-elf 9981 need_lib_prefix=no 9982 need_version=no 9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9984 soname_spec='${libname}${release}${shared_ext}$major' 9985 shlibpath_var=LD_LIBRARY_PATH 9986 shlibpath_overrides_runpath=yes 9987 hardcode_into_libs=yes 9988 if test "$with_gnu_ld" = yes; then 9989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9990 else 9991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9992 case $host_os in 9993 sco3.2v5*) 9994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9995 ;; 9996 esac 9997 fi 9998 sys_lib_dlsearch_path_spec='/usr/lib' 9999 ;; 10000 10001tpf*) 10002 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10003 version_type=linux 10004 need_lib_prefix=no 10005 need_version=no 10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10007 shlibpath_var=LD_LIBRARY_PATH 10008 shlibpath_overrides_runpath=no 10009 hardcode_into_libs=yes 10010 ;; 10011 10012uts4*) 10013 version_type=linux 10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10015 soname_spec='${libname}${release}${shared_ext}$major' 10016 shlibpath_var=LD_LIBRARY_PATH 10017 ;; 10018 10019*) 10020 dynamic_linker=no 10021 ;; 10022esac 10023{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10024$as_echo "$dynamic_linker" >&6; } 10025test "$dynamic_linker" = no && can_build_shared=no 10026 10027variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10028if test "$GCC" = yes; then 10029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10030fi 10031 10032if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10033 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10034fi 10035if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10036 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10037fi 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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10126$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10127hardcode_action= 10128if test -n "$hardcode_libdir_flag_spec" || 10129 test -n "$runpath_var" || 10130 test "X$hardcode_automatic" = "Xyes" ; then 10131 10132 # We can hardcode non-existent directories. 10133 if test "$hardcode_direct" != no && 10134 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10135 # have to relink, otherwise we might link with an installed library 10136 # when we should be linking with a yet-to-be-installed one 10137 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10138 test "$hardcode_minus_L" != no; then 10139 # Linking always hardcodes the temporary library directory. 10140 hardcode_action=relink 10141 else 10142 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10143 hardcode_action=immediate 10144 fi 10145else 10146 # We cannot hardcode anything, or else we can only hardcode existing 10147 # directories. 10148 hardcode_action=unsupported 10149fi 10150{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10151$as_echo "$hardcode_action" >&6; } 10152 10153if test "$hardcode_action" = relink || 10154 test "$inherit_rpath" = yes; then 10155 # Fast installation is not supported 10156 enable_fast_install=no 10157elif test "$shlibpath_overrides_runpath" = yes || 10158 test "$enable_shared" = no; then 10159 # Fast installation is not necessary 10160 enable_fast_install=needless 10161fi 10162 10163 10164 10165 10166 10167 10168 if test "x$enable_dlopen" != xyes; then 10169 enable_dlopen=unknown 10170 enable_dlopen_self=unknown 10171 enable_dlopen_self_static=unknown 10172else 10173 lt_cv_dlopen=no 10174 lt_cv_dlopen_libs= 10175 10176 case $host_os in 10177 beos*) 10178 lt_cv_dlopen="load_add_on" 10179 lt_cv_dlopen_libs= 10180 lt_cv_dlopen_self=yes 10181 ;; 10182 10183 mingw* | pw32* | cegcc*) 10184 lt_cv_dlopen="LoadLibrary" 10185 lt_cv_dlopen_libs= 10186 ;; 10187 10188 cygwin*) 10189 lt_cv_dlopen="dlopen" 10190 lt_cv_dlopen_libs= 10191 ;; 10192 10193 darwin*) 10194 # if libdl is installed we need to link against it 10195 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10196$as_echo_n "checking for dlopen in -ldl... " >&6; } 10197if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10198 $as_echo_n "(cached) " >&6 10199else 10200 ac_check_lib_save_LIBS=$LIBS 10201LIBS="-ldl $LIBS" 10202cat >conftest.$ac_ext <<_ACEOF 10203/* confdefs.h. */ 10204_ACEOF 10205cat confdefs.h >>conftest.$ac_ext 10206cat >>conftest.$ac_ext <<_ACEOF 10207/* end confdefs.h. */ 10208 10209/* Override any GCC internal prototype to avoid an error. 10210 Use char because int might match the return type of a GCC 10211 builtin and then its argument prototype would still apply. */ 10212#ifdef __cplusplus 10213extern "C" 10214#endif 10215char dlopen (); 10216int 10217main () 10218{ 10219return dlopen (); 10220 ; 10221 return 0; 10222} 10223_ACEOF 10224rm -f conftest.$ac_objext conftest$ac_exeext 10225if { (ac_try="$ac_link" 10226case "(($ac_try" in 10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10228 *) ac_try_echo=$ac_try;; 10229esac 10230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10231$as_echo "$ac_try_echo") >&5 10232 (eval "$ac_link") 2>conftest.er1 10233 ac_status=$? 10234 grep -v '^ *+' conftest.er1 >conftest.err 10235 rm -f conftest.er1 10236 cat conftest.err >&5 10237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10238 (exit $ac_status); } && { 10239 test -z "$ac_c_werror_flag" || 10240 test ! -s conftest.err 10241 } && test -s conftest$ac_exeext && { 10242 test "$cross_compiling" = yes || 10243 $as_test_x conftest$ac_exeext 10244 }; then 10245 ac_cv_lib_dl_dlopen=yes 10246else 10247 $as_echo "$as_me: failed program was:" >&5 10248sed 's/^/| /' conftest.$ac_ext >&5 10249 10250 ac_cv_lib_dl_dlopen=no 10251fi 10252 10253rm -rf conftest.dSYM 10254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10255 conftest$ac_exeext conftest.$ac_ext 10256LIBS=$ac_check_lib_save_LIBS 10257fi 10258{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10259$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10260if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10262else 10263 10264 lt_cv_dlopen="dyld" 10265 lt_cv_dlopen_libs= 10266 lt_cv_dlopen_self=yes 10267 10268fi 10269 10270 ;; 10271 10272 *) 10273 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10274$as_echo_n "checking for shl_load... " >&6; } 10275if test "${ac_cv_func_shl_load+set}" = set; then 10276 $as_echo_n "(cached) " >&6 10277else 10278 cat >conftest.$ac_ext <<_ACEOF 10279/* confdefs.h. */ 10280_ACEOF 10281cat confdefs.h >>conftest.$ac_ext 10282cat >>conftest.$ac_ext <<_ACEOF 10283/* end confdefs.h. */ 10284/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10285 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10286#define shl_load innocuous_shl_load 10287 10288/* System header to define __stub macros and hopefully few prototypes, 10289 which can conflict with char shl_load (); below. 10290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10291 <limits.h> exists even on freestanding compilers. */ 10292 10293#ifdef __STDC__ 10294# include <limits.h> 10295#else 10296# include <assert.h> 10297#endif 10298 10299#undef shl_load 10300 10301/* Override any GCC internal prototype to avoid an error. 10302 Use char because int might match the return type of a GCC 10303 builtin and then its argument prototype would still apply. */ 10304#ifdef __cplusplus 10305extern "C" 10306#endif 10307char shl_load (); 10308/* The GNU C library defines this for functions which it implements 10309 to always fail with ENOSYS. Some functions are actually named 10310 something starting with __ and the normal name is an alias. */ 10311#if defined __stub_shl_load || defined __stub___shl_load 10312choke me 10313#endif 10314 10315int 10316main () 10317{ 10318return shl_load (); 10319 ; 10320 return 0; 10321} 10322_ACEOF 10323rm -f conftest.$ac_objext conftest$ac_exeext 10324if { (ac_try="$ac_link" 10325case "(($ac_try" in 10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10327 *) ac_try_echo=$ac_try;; 10328esac 10329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10330$as_echo "$ac_try_echo") >&5 10331 (eval "$ac_link") 2>conftest.er1 10332 ac_status=$? 10333 grep -v '^ *+' conftest.er1 >conftest.err 10334 rm -f conftest.er1 10335 cat conftest.err >&5 10336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10337 (exit $ac_status); } && { 10338 test -z "$ac_c_werror_flag" || 10339 test ! -s conftest.err 10340 } && test -s conftest$ac_exeext && { 10341 test "$cross_compiling" = yes || 10342 $as_test_x conftest$ac_exeext 10343 }; then 10344 ac_cv_func_shl_load=yes 10345else 10346 $as_echo "$as_me: failed program was:" >&5 10347sed 's/^/| /' conftest.$ac_ext >&5 10348 10349 ac_cv_func_shl_load=no 10350fi 10351 10352rm -rf conftest.dSYM 10353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10354 conftest$ac_exeext conftest.$ac_ext 10355fi 10356{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10357$as_echo "$ac_cv_func_shl_load" >&6; } 10358if test "x$ac_cv_func_shl_load" = x""yes; then 10359 lt_cv_dlopen="shl_load" 10360else 10361 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10362$as_echo_n "checking for shl_load in -ldld... " >&6; } 10363if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10364 $as_echo_n "(cached) " >&6 10365else 10366 ac_check_lib_save_LIBS=$LIBS 10367LIBS="-ldld $LIBS" 10368cat >conftest.$ac_ext <<_ACEOF 10369/* confdefs.h. */ 10370_ACEOF 10371cat confdefs.h >>conftest.$ac_ext 10372cat >>conftest.$ac_ext <<_ACEOF 10373/* end confdefs.h. */ 10374 10375/* Override any GCC internal prototype to avoid an error. 10376 Use char because int might match the return type of a GCC 10377 builtin and then its argument prototype would still apply. */ 10378#ifdef __cplusplus 10379extern "C" 10380#endif 10381char shl_load (); 10382int 10383main () 10384{ 10385return shl_load (); 10386 ; 10387 return 0; 10388} 10389_ACEOF 10390rm -f conftest.$ac_objext conftest$ac_exeext 10391if { (ac_try="$ac_link" 10392case "(($ac_try" in 10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10394 *) ac_try_echo=$ac_try;; 10395esac 10396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10397$as_echo "$ac_try_echo") >&5 10398 (eval "$ac_link") 2>conftest.er1 10399 ac_status=$? 10400 grep -v '^ *+' conftest.er1 >conftest.err 10401 rm -f conftest.er1 10402 cat conftest.err >&5 10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 (exit $ac_status); } && { 10405 test -z "$ac_c_werror_flag" || 10406 test ! -s conftest.err 10407 } && test -s conftest$ac_exeext && { 10408 test "$cross_compiling" = yes || 10409 $as_test_x conftest$ac_exeext 10410 }; then 10411 ac_cv_lib_dld_shl_load=yes 10412else 10413 $as_echo "$as_me: failed program was:" >&5 10414sed 's/^/| /' conftest.$ac_ext >&5 10415 10416 ac_cv_lib_dld_shl_load=no 10417fi 10418 10419rm -rf conftest.dSYM 10420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10421 conftest$ac_exeext conftest.$ac_ext 10422LIBS=$ac_check_lib_save_LIBS 10423fi 10424{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10425$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10426if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10428else 10429 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10430$as_echo_n "checking for dlopen... " >&6; } 10431if test "${ac_cv_func_dlopen+set}" = set; then 10432 $as_echo_n "(cached) " >&6 10433else 10434 cat >conftest.$ac_ext <<_ACEOF 10435/* confdefs.h. */ 10436_ACEOF 10437cat confdefs.h >>conftest.$ac_ext 10438cat >>conftest.$ac_ext <<_ACEOF 10439/* end confdefs.h. */ 10440/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10441 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10442#define dlopen innocuous_dlopen 10443 10444/* System header to define __stub macros and hopefully few prototypes, 10445 which can conflict with char dlopen (); below. 10446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10447 <limits.h> exists even on freestanding compilers. */ 10448 10449#ifdef __STDC__ 10450# include <limits.h> 10451#else 10452# include <assert.h> 10453#endif 10454 10455#undef dlopen 10456 10457/* Override any GCC internal prototype to avoid an error. 10458 Use char because int might match the return type of a GCC 10459 builtin and then its argument prototype would still apply. */ 10460#ifdef __cplusplus 10461extern "C" 10462#endif 10463char dlopen (); 10464/* The GNU C library defines this for functions which it implements 10465 to always fail with ENOSYS. Some functions are actually named 10466 something starting with __ and the normal name is an alias. */ 10467#if defined __stub_dlopen || defined __stub___dlopen 10468choke me 10469#endif 10470 10471int 10472main () 10473{ 10474return dlopen (); 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479rm -f conftest.$ac_objext conftest$ac_exeext 10480if { (ac_try="$ac_link" 10481case "(($ac_try" in 10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10483 *) ac_try_echo=$ac_try;; 10484esac 10485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10486$as_echo "$ac_try_echo") >&5 10487 (eval "$ac_link") 2>conftest.er1 10488 ac_status=$? 10489 grep -v '^ *+' conftest.er1 >conftest.err 10490 rm -f conftest.er1 10491 cat conftest.err >&5 10492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10493 (exit $ac_status); } && { 10494 test -z "$ac_c_werror_flag" || 10495 test ! -s conftest.err 10496 } && test -s conftest$ac_exeext && { 10497 test "$cross_compiling" = yes || 10498 $as_test_x conftest$ac_exeext 10499 }; then 10500 ac_cv_func_dlopen=yes 10501else 10502 $as_echo "$as_me: failed program was:" >&5 10503sed 's/^/| /' conftest.$ac_ext >&5 10504 10505 ac_cv_func_dlopen=no 10506fi 10507 10508rm -rf conftest.dSYM 10509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10510 conftest$ac_exeext conftest.$ac_ext 10511fi 10512{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10513$as_echo "$ac_cv_func_dlopen" >&6; } 10514if test "x$ac_cv_func_dlopen" = x""yes; then 10515 lt_cv_dlopen="dlopen" 10516else 10517 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10518$as_echo_n "checking for dlopen in -ldl... " >&6; } 10519if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10520 $as_echo_n "(cached) " >&6 10521else 10522 ac_check_lib_save_LIBS=$LIBS 10523LIBS="-ldl $LIBS" 10524cat >conftest.$ac_ext <<_ACEOF 10525/* confdefs.h. */ 10526_ACEOF 10527cat confdefs.h >>conftest.$ac_ext 10528cat >>conftest.$ac_ext <<_ACEOF 10529/* end confdefs.h. */ 10530 10531/* Override any GCC internal prototype to avoid an error. 10532 Use char because int might match the return type of a GCC 10533 builtin and then its argument prototype would still apply. */ 10534#ifdef __cplusplus 10535extern "C" 10536#endif 10537char dlopen (); 10538int 10539main () 10540{ 10541return dlopen (); 10542 ; 10543 return 0; 10544} 10545_ACEOF 10546rm -f conftest.$ac_objext conftest$ac_exeext 10547if { (ac_try="$ac_link" 10548case "(($ac_try" in 10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10550 *) ac_try_echo=$ac_try;; 10551esac 10552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10553$as_echo "$ac_try_echo") >&5 10554 (eval "$ac_link") 2>conftest.er1 10555 ac_status=$? 10556 grep -v '^ *+' conftest.er1 >conftest.err 10557 rm -f conftest.er1 10558 cat conftest.err >&5 10559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10560 (exit $ac_status); } && { 10561 test -z "$ac_c_werror_flag" || 10562 test ! -s conftest.err 10563 } && test -s conftest$ac_exeext && { 10564 test "$cross_compiling" = yes || 10565 $as_test_x conftest$ac_exeext 10566 }; then 10567 ac_cv_lib_dl_dlopen=yes 10568else 10569 $as_echo "$as_me: failed program was:" >&5 10570sed 's/^/| /' conftest.$ac_ext >&5 10571 10572 ac_cv_lib_dl_dlopen=no 10573fi 10574 10575rm -rf conftest.dSYM 10576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10577 conftest$ac_exeext conftest.$ac_ext 10578LIBS=$ac_check_lib_save_LIBS 10579fi 10580{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10581$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10582if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10584else 10585 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10586$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10587if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10588 $as_echo_n "(cached) " >&6 10589else 10590 ac_check_lib_save_LIBS=$LIBS 10591LIBS="-lsvld $LIBS" 10592cat >conftest.$ac_ext <<_ACEOF 10593/* confdefs.h. */ 10594_ACEOF 10595cat confdefs.h >>conftest.$ac_ext 10596cat >>conftest.$ac_ext <<_ACEOF 10597/* end confdefs.h. */ 10598 10599/* Override any GCC internal prototype to avoid an error. 10600 Use char because int might match the return type of a GCC 10601 builtin and then its argument prototype would still apply. */ 10602#ifdef __cplusplus 10603extern "C" 10604#endif 10605char dlopen (); 10606int 10607main () 10608{ 10609return dlopen (); 10610 ; 10611 return 0; 10612} 10613_ACEOF 10614rm -f conftest.$ac_objext conftest$ac_exeext 10615if { (ac_try="$ac_link" 10616case "(($ac_try" in 10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10618 *) ac_try_echo=$ac_try;; 10619esac 10620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10621$as_echo "$ac_try_echo") >&5 10622 (eval "$ac_link") 2>conftest.er1 10623 ac_status=$? 10624 grep -v '^ *+' conftest.er1 >conftest.err 10625 rm -f conftest.er1 10626 cat conftest.err >&5 10627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10628 (exit $ac_status); } && { 10629 test -z "$ac_c_werror_flag" || 10630 test ! -s conftest.err 10631 } && test -s conftest$ac_exeext && { 10632 test "$cross_compiling" = yes || 10633 $as_test_x conftest$ac_exeext 10634 }; then 10635 ac_cv_lib_svld_dlopen=yes 10636else 10637 $as_echo "$as_me: failed program was:" >&5 10638sed 's/^/| /' conftest.$ac_ext >&5 10639 10640 ac_cv_lib_svld_dlopen=no 10641fi 10642 10643rm -rf conftest.dSYM 10644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10645 conftest$ac_exeext conftest.$ac_ext 10646LIBS=$ac_check_lib_save_LIBS 10647fi 10648{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10649$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10650if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10652else 10653 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10654$as_echo_n "checking for dld_link in -ldld... " >&6; } 10655if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10656 $as_echo_n "(cached) " >&6 10657else 10658 ac_check_lib_save_LIBS=$LIBS 10659LIBS="-ldld $LIBS" 10660cat >conftest.$ac_ext <<_ACEOF 10661/* confdefs.h. */ 10662_ACEOF 10663cat confdefs.h >>conftest.$ac_ext 10664cat >>conftest.$ac_ext <<_ACEOF 10665/* end confdefs.h. */ 10666 10667/* Override any GCC internal prototype to avoid an error. 10668 Use char because int might match the return type of a GCC 10669 builtin and then its argument prototype would still apply. */ 10670#ifdef __cplusplus 10671extern "C" 10672#endif 10673char dld_link (); 10674int 10675main () 10676{ 10677return dld_link (); 10678 ; 10679 return 0; 10680} 10681_ACEOF 10682rm -f conftest.$ac_objext conftest$ac_exeext 10683if { (ac_try="$ac_link" 10684case "(($ac_try" in 10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10686 *) ac_try_echo=$ac_try;; 10687esac 10688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10689$as_echo "$ac_try_echo") >&5 10690 (eval "$ac_link") 2>conftest.er1 10691 ac_status=$? 10692 grep -v '^ *+' conftest.er1 >conftest.err 10693 rm -f conftest.er1 10694 cat conftest.err >&5 10695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10696 (exit $ac_status); } && { 10697 test -z "$ac_c_werror_flag" || 10698 test ! -s conftest.err 10699 } && test -s conftest$ac_exeext && { 10700 test "$cross_compiling" = yes || 10701 $as_test_x conftest$ac_exeext 10702 }; then 10703 ac_cv_lib_dld_dld_link=yes 10704else 10705 $as_echo "$as_me: failed program was:" >&5 10706sed 's/^/| /' conftest.$ac_ext >&5 10707 10708 ac_cv_lib_dld_dld_link=no 10709fi 10710 10711rm -rf conftest.dSYM 10712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10713 conftest$ac_exeext conftest.$ac_ext 10714LIBS=$ac_check_lib_save_LIBS 10715fi 10716{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10717$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10718if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10719 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10720fi 10721 10722 10723fi 10724 10725 10726fi 10727 10728 10729fi 10730 10731 10732fi 10733 10734 10735fi 10736 10737 ;; 10738 esac 10739 10740 if test "x$lt_cv_dlopen" != xno; then 10741 enable_dlopen=yes 10742 else 10743 enable_dlopen=no 10744 fi 10745 10746 case $lt_cv_dlopen in 10747 dlopen) 10748 save_CPPFLAGS="$CPPFLAGS" 10749 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10750 10751 save_LDFLAGS="$LDFLAGS" 10752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10753 10754 save_LIBS="$LIBS" 10755 LIBS="$lt_cv_dlopen_libs $LIBS" 10756 10757 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10758$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10759if test "${lt_cv_dlopen_self+set}" = set; then 10760 $as_echo_n "(cached) " >&6 10761else 10762 if test "$cross_compiling" = yes; then : 10763 lt_cv_dlopen_self=cross 10764else 10765 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10766 lt_status=$lt_dlunknown 10767 cat > conftest.$ac_ext <<_LT_EOF 10768#line 10768 "configure" 10769#include "confdefs.h" 10770 10771#if HAVE_DLFCN_H 10772#include <dlfcn.h> 10773#endif 10774 10775#include <stdio.h> 10776 10777#ifdef RTLD_GLOBAL 10778# define LT_DLGLOBAL RTLD_GLOBAL 10779#else 10780# ifdef DL_GLOBAL 10781# define LT_DLGLOBAL DL_GLOBAL 10782# else 10783# define LT_DLGLOBAL 0 10784# endif 10785#endif 10786 10787/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10788 find out it does not work in some platform. */ 10789#ifndef LT_DLLAZY_OR_NOW 10790# ifdef RTLD_LAZY 10791# define LT_DLLAZY_OR_NOW RTLD_LAZY 10792# else 10793# ifdef DL_LAZY 10794# define LT_DLLAZY_OR_NOW DL_LAZY 10795# else 10796# ifdef RTLD_NOW 10797# define LT_DLLAZY_OR_NOW RTLD_NOW 10798# else 10799# ifdef DL_NOW 10800# define LT_DLLAZY_OR_NOW DL_NOW 10801# else 10802# define LT_DLLAZY_OR_NOW 0 10803# endif 10804# endif 10805# endif 10806# endif 10807#endif 10808 10809void fnord() { int i=42;} 10810int main () 10811{ 10812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10813 int status = $lt_dlunknown; 10814 10815 if (self) 10816 { 10817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10819 /* dlclose (self); */ 10820 } 10821 else 10822 puts (dlerror ()); 10823 10824 return status; 10825} 10826_LT_EOF 10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10828 (eval $ac_link) 2>&5 10829 ac_status=$? 10830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10831 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10832 (./conftest; exit; ) >&5 2>/dev/null 10833 lt_status=$? 10834 case x$lt_status in 10835 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10836 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10837 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10838 esac 10839 else : 10840 # compilation failed 10841 lt_cv_dlopen_self=no 10842 fi 10843fi 10844rm -fr conftest* 10845 10846 10847fi 10848{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10849$as_echo "$lt_cv_dlopen_self" >&6; } 10850 10851 if test "x$lt_cv_dlopen_self" = xyes; then 10852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10853 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10854$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10855if test "${lt_cv_dlopen_self_static+set}" = set; then 10856 $as_echo_n "(cached) " >&6 10857else 10858 if test "$cross_compiling" = yes; then : 10859 lt_cv_dlopen_self_static=cross 10860else 10861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10862 lt_status=$lt_dlunknown 10863 cat > conftest.$ac_ext <<_LT_EOF 10864#line 10864 "configure" 10865#include "confdefs.h" 10866 10867#if HAVE_DLFCN_H 10868#include <dlfcn.h> 10869#endif 10870 10871#include <stdio.h> 10872 10873#ifdef RTLD_GLOBAL 10874# define LT_DLGLOBAL RTLD_GLOBAL 10875#else 10876# ifdef DL_GLOBAL 10877# define LT_DLGLOBAL DL_GLOBAL 10878# else 10879# define LT_DLGLOBAL 0 10880# endif 10881#endif 10882 10883/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10884 find out it does not work in some platform. */ 10885#ifndef LT_DLLAZY_OR_NOW 10886# ifdef RTLD_LAZY 10887# define LT_DLLAZY_OR_NOW RTLD_LAZY 10888# else 10889# ifdef DL_LAZY 10890# define LT_DLLAZY_OR_NOW DL_LAZY 10891# else 10892# ifdef RTLD_NOW 10893# define LT_DLLAZY_OR_NOW RTLD_NOW 10894# else 10895# ifdef DL_NOW 10896# define LT_DLLAZY_OR_NOW DL_NOW 10897# else 10898# define LT_DLLAZY_OR_NOW 0 10899# endif 10900# endif 10901# endif 10902# endif 10903#endif 10904 10905void fnord() { int i=42;} 10906int main () 10907{ 10908 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10909 int status = $lt_dlunknown; 10910 10911 if (self) 10912 { 10913 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10914 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10915 /* dlclose (self); */ 10916 } 10917 else 10918 puts (dlerror ()); 10919 10920 return status; 10921} 10922_LT_EOF 10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10924 (eval $ac_link) 2>&5 10925 ac_status=$? 10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10927 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10928 (./conftest; exit; ) >&5 2>/dev/null 10929 lt_status=$? 10930 case x$lt_status in 10931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10933 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10934 esac 10935 else : 10936 # compilation failed 10937 lt_cv_dlopen_self_static=no 10938 fi 10939fi 10940rm -fr conftest* 10941 10942 10943fi 10944{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10945$as_echo "$lt_cv_dlopen_self_static" >&6; } 10946 fi 10947 10948 CPPFLAGS="$save_CPPFLAGS" 10949 LDFLAGS="$save_LDFLAGS" 10950 LIBS="$save_LIBS" 10951 ;; 10952 esac 10953 10954 case $lt_cv_dlopen_self in 10955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10956 *) enable_dlopen_self=unknown ;; 10957 esac 10958 10959 case $lt_cv_dlopen_self_static in 10960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10961 *) enable_dlopen_self_static=unknown ;; 10962 esac 10963fi 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981striplib= 10982old_striplib= 10983{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10984$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10985if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10986 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10987 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10988 { $as_echo "$as_me:$LINENO: result: yes" >&5 10989$as_echo "yes" >&6; } 10990else 10991# FIXME - insert some real tests, host_os isn't really good enough 10992 case $host_os in 10993 darwin*) 10994 if test -n "$STRIP" ; then 10995 striplib="$STRIP -x" 10996 old_striplib="$STRIP -S" 10997 { $as_echo "$as_me:$LINENO: result: yes" >&5 10998$as_echo "yes" >&6; } 10999 else 11000 { $as_echo "$as_me:$LINENO: result: no" >&5 11001$as_echo "no" >&6; } 11002 fi 11003 ;; 11004 *) 11005 { $as_echo "$as_me:$LINENO: result: no" >&5 11006$as_echo "no" >&6; } 11007 ;; 11008 esac 11009fi 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 # Report which library types will actually be built 11023 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11024$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11025 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11026$as_echo "$can_build_shared" >&6; } 11027 11028 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11029$as_echo_n "checking whether to build shared libraries... " >&6; } 11030 test "$can_build_shared" = "no" && enable_shared=no 11031 11032 # On AIX, shared libraries and static libraries use the same namespace, and 11033 # are all built from PIC. 11034 case $host_os in 11035 aix3*) 11036 test "$enable_shared" = yes && enable_static=no 11037 if test -n "$RANLIB"; then 11038 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11039 postinstall_cmds='$RANLIB $lib' 11040 fi 11041 ;; 11042 11043 aix[4-9]*) 11044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11045 test "$enable_shared" = yes && enable_static=no 11046 fi 11047 ;; 11048 esac 11049 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11050$as_echo "$enable_shared" >&6; } 11051 11052 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11053$as_echo_n "checking whether to build static libraries... " >&6; } 11054 # Make sure either enable_shared or enable_static is yes. 11055 test "$enable_shared" = yes || enable_static=yes 11056 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11057$as_echo "$enable_static" >&6; } 11058 11059 11060 11061 11062fi 11063ac_ext=c 11064ac_cpp='$CPP $CPPFLAGS' 11065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11067ac_compiler_gnu=$ac_cv_c_compiler_gnu 11068 11069CC="$lt_save_CC" 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 ac_config_commands="$ac_config_commands libtool" 11084 11085 11086 11087 11088# Only expand once: 11089 11090 11091ac_ext=c 11092ac_cpp='$CPP $CPPFLAGS' 11093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11095ac_compiler_gnu=$ac_cv_c_compiler_gnu 11096if test -n "$ac_tool_prefix"; then 11097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11098set dummy ${ac_tool_prefix}gcc; ac_word=$2 11099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11100$as_echo_n "checking for $ac_word... " >&6; } 11101if test "${ac_cv_prog_CC+set}" = set; then 11102 $as_echo_n "(cached) " >&6 11103else 11104 if test -n "$CC"; then 11105 ac_cv_prog_CC="$CC" # Let the user override the test. 11106else 11107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11108for as_dir in $PATH 11109do 11110 IFS=$as_save_IFS 11111 test -z "$as_dir" && as_dir=. 11112 for ac_exec_ext in '' $ac_executable_extensions; do 11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11114 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11116 break 2 11117 fi 11118done 11119done 11120IFS=$as_save_IFS 11121 11122fi 11123fi 11124CC=$ac_cv_prog_CC 11125if test -n "$CC"; then 11126 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11127$as_echo "$CC" >&6; } 11128else 11129 { $as_echo "$as_me:$LINENO: result: no" >&5 11130$as_echo "no" >&6; } 11131fi 11132 11133 11134fi 11135if test -z "$ac_cv_prog_CC"; then 11136 ac_ct_CC=$CC 11137 # Extract the first word of "gcc", so it can be a program name with args. 11138set dummy gcc; ac_word=$2 11139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11140$as_echo_n "checking for $ac_word... " >&6; } 11141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11142 $as_echo_n "(cached) " >&6 11143else 11144 if test -n "$ac_ct_CC"; then 11145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11146else 11147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11148for as_dir in $PATH 11149do 11150 IFS=$as_save_IFS 11151 test -z "$as_dir" && as_dir=. 11152 for ac_exec_ext in '' $ac_executable_extensions; do 11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11154 ac_cv_prog_ac_ct_CC="gcc" 11155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11156 break 2 11157 fi 11158done 11159done 11160IFS=$as_save_IFS 11161 11162fi 11163fi 11164ac_ct_CC=$ac_cv_prog_ac_ct_CC 11165if test -n "$ac_ct_CC"; then 11166 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11167$as_echo "$ac_ct_CC" >&6; } 11168else 11169 { $as_echo "$as_me:$LINENO: result: no" >&5 11170$as_echo "no" >&6; } 11171fi 11172 11173 if test "x$ac_ct_CC" = x; then 11174 CC="" 11175 else 11176 case $cross_compiling:$ac_tool_warned in 11177yes:) 11178{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11180ac_tool_warned=yes ;; 11181esac 11182 CC=$ac_ct_CC 11183 fi 11184else 11185 CC="$ac_cv_prog_CC" 11186fi 11187 11188if test -z "$CC"; then 11189 if test -n "$ac_tool_prefix"; then 11190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11191set dummy ${ac_tool_prefix}cc; ac_word=$2 11192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11193$as_echo_n "checking for $ac_word... " >&6; } 11194if test "${ac_cv_prog_CC+set}" = set; then 11195 $as_echo_n "(cached) " >&6 11196else 11197 if test -n "$CC"; then 11198 ac_cv_prog_CC="$CC" # Let the user override the test. 11199else 11200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11201for as_dir in $PATH 11202do 11203 IFS=$as_save_IFS 11204 test -z "$as_dir" && as_dir=. 11205 for ac_exec_ext in '' $ac_executable_extensions; do 11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11207 ac_cv_prog_CC="${ac_tool_prefix}cc" 11208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11209 break 2 11210 fi 11211done 11212done 11213IFS=$as_save_IFS 11214 11215fi 11216fi 11217CC=$ac_cv_prog_CC 11218if test -n "$CC"; then 11219 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11220$as_echo "$CC" >&6; } 11221else 11222 { $as_echo "$as_me:$LINENO: result: no" >&5 11223$as_echo "no" >&6; } 11224fi 11225 11226 11227 fi 11228fi 11229if test -z "$CC"; then 11230 # Extract the first word of "cc", so it can be a program name with args. 11231set dummy cc; ac_word=$2 11232{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11233$as_echo_n "checking for $ac_word... " >&6; } 11234if test "${ac_cv_prog_CC+set}" = set; then 11235 $as_echo_n "(cached) " >&6 11236else 11237 if test -n "$CC"; then 11238 ac_cv_prog_CC="$CC" # Let the user override the test. 11239else 11240 ac_prog_rejected=no 11241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11242for as_dir in $PATH 11243do 11244 IFS=$as_save_IFS 11245 test -z "$as_dir" && as_dir=. 11246 for ac_exec_ext in '' $ac_executable_extensions; do 11247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11249 ac_prog_rejected=yes 11250 continue 11251 fi 11252 ac_cv_prog_CC="cc" 11253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11254 break 2 11255 fi 11256done 11257done 11258IFS=$as_save_IFS 11259 11260if test $ac_prog_rejected = yes; then 11261 # We found a bogon in the path, so make sure we never use it. 11262 set dummy $ac_cv_prog_CC 11263 shift 11264 if test $# != 0; then 11265 # We chose a different compiler from the bogus one. 11266 # However, it has the same basename, so the bogon will be chosen 11267 # first if we set CC to just the basename; use the full file name. 11268 shift 11269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11270 fi 11271fi 11272fi 11273fi 11274CC=$ac_cv_prog_CC 11275if test -n "$CC"; then 11276 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11277$as_echo "$CC" >&6; } 11278else 11279 { $as_echo "$as_me:$LINENO: result: no" >&5 11280$as_echo "no" >&6; } 11281fi 11282 11283 11284fi 11285if test -z "$CC"; then 11286 if test -n "$ac_tool_prefix"; then 11287 for ac_prog in cl.exe 11288 do 11289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11290set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11292$as_echo_n "checking for $ac_word... " >&6; } 11293if test "${ac_cv_prog_CC+set}" = set; then 11294 $as_echo_n "(cached) " >&6 11295else 11296 if test -n "$CC"; then 11297 ac_cv_prog_CC="$CC" # Let the user override the test. 11298else 11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11300for as_dir in $PATH 11301do 11302 IFS=$as_save_IFS 11303 test -z "$as_dir" && as_dir=. 11304 for ac_exec_ext in '' $ac_executable_extensions; do 11305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11308 break 2 11309 fi 11310done 11311done 11312IFS=$as_save_IFS 11313 11314fi 11315fi 11316CC=$ac_cv_prog_CC 11317if test -n "$CC"; then 11318 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11319$as_echo "$CC" >&6; } 11320else 11321 { $as_echo "$as_me:$LINENO: result: no" >&5 11322$as_echo "no" >&6; } 11323fi 11324 11325 11326 test -n "$CC" && break 11327 done 11328fi 11329if test -z "$CC"; then 11330 ac_ct_CC=$CC 11331 for ac_prog in cl.exe 11332do 11333 # Extract the first word of "$ac_prog", so it can be a program name with args. 11334set dummy $ac_prog; ac_word=$2 11335{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11336$as_echo_n "checking for $ac_word... " >&6; } 11337if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11338 $as_echo_n "(cached) " >&6 11339else 11340 if test -n "$ac_ct_CC"; then 11341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11342else 11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11344for as_dir in $PATH 11345do 11346 IFS=$as_save_IFS 11347 test -z "$as_dir" && as_dir=. 11348 for ac_exec_ext in '' $ac_executable_extensions; do 11349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11350 ac_cv_prog_ac_ct_CC="$ac_prog" 11351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11352 break 2 11353 fi 11354done 11355done 11356IFS=$as_save_IFS 11357 11358fi 11359fi 11360ac_ct_CC=$ac_cv_prog_ac_ct_CC 11361if test -n "$ac_ct_CC"; then 11362 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11363$as_echo "$ac_ct_CC" >&6; } 11364else 11365 { $as_echo "$as_me:$LINENO: result: no" >&5 11366$as_echo "no" >&6; } 11367fi 11368 11369 11370 test -n "$ac_ct_CC" && break 11371done 11372 11373 if test "x$ac_ct_CC" = x; then 11374 CC="" 11375 else 11376 case $cross_compiling:$ac_tool_warned in 11377yes:) 11378{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11380ac_tool_warned=yes ;; 11381esac 11382 CC=$ac_ct_CC 11383 fi 11384fi 11385 11386fi 11387 11388 11389test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11391{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 11392See \`config.log' for more details." >&5 11393$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 11394See \`config.log' for more details." >&2;} 11395 { (exit 1); exit 1; }; }; } 11396 11397# Provide some information about the compiler. 11398$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 11399set X $ac_compile 11400ac_compiler=$2 11401{ (ac_try="$ac_compiler --version >&5" 11402case "(($ac_try" in 11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11404 *) ac_try_echo=$ac_try;; 11405esac 11406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11407$as_echo "$ac_try_echo") >&5 11408 (eval "$ac_compiler --version >&5") 2>&5 11409 ac_status=$? 11410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11411 (exit $ac_status); } 11412{ (ac_try="$ac_compiler -v >&5" 11413case "(($ac_try" in 11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11415 *) ac_try_echo=$ac_try;; 11416esac 11417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11418$as_echo "$ac_try_echo") >&5 11419 (eval "$ac_compiler -v >&5") 2>&5 11420 ac_status=$? 11421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11422 (exit $ac_status); } 11423{ (ac_try="$ac_compiler -V >&5" 11424case "(($ac_try" in 11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11426 *) ac_try_echo=$ac_try;; 11427esac 11428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11429$as_echo "$ac_try_echo") >&5 11430 (eval "$ac_compiler -V >&5") 2>&5 11431 ac_status=$? 11432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11433 (exit $ac_status); } 11434 11435{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 11436$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11437if test "${ac_cv_c_compiler_gnu+set}" = set; then 11438 $as_echo_n "(cached) " >&6 11439else 11440 cat >conftest.$ac_ext <<_ACEOF 11441/* confdefs.h. */ 11442_ACEOF 11443cat confdefs.h >>conftest.$ac_ext 11444cat >>conftest.$ac_ext <<_ACEOF 11445/* end confdefs.h. */ 11446 11447int 11448main () 11449{ 11450#ifndef __GNUC__ 11451 choke me 11452#endif 11453 11454 ; 11455 return 0; 11456} 11457_ACEOF 11458rm -f conftest.$ac_objext 11459if { (ac_try="$ac_compile" 11460case "(($ac_try" in 11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11462 *) ac_try_echo=$ac_try;; 11463esac 11464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11465$as_echo "$ac_try_echo") >&5 11466 (eval "$ac_compile") 2>conftest.er1 11467 ac_status=$? 11468 grep -v '^ *+' conftest.er1 >conftest.err 11469 rm -f conftest.er1 11470 cat conftest.err >&5 11471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11472 (exit $ac_status); } && { 11473 test -z "$ac_c_werror_flag" || 11474 test ! -s conftest.err 11475 } && test -s conftest.$ac_objext; then 11476 ac_compiler_gnu=yes 11477else 11478 $as_echo "$as_me: failed program was:" >&5 11479sed 's/^/| /' conftest.$ac_ext >&5 11480 11481 ac_compiler_gnu=no 11482fi 11483 11484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11485ac_cv_c_compiler_gnu=$ac_compiler_gnu 11486 11487fi 11488{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 11489$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11490if test $ac_compiler_gnu = yes; then 11491 GCC=yes 11492else 11493 GCC= 11494fi 11495ac_test_CFLAGS=${CFLAGS+set} 11496ac_save_CFLAGS=$CFLAGS 11497{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 11498$as_echo_n "checking whether $CC accepts -g... " >&6; } 11499if test "${ac_cv_prog_cc_g+set}" = set; then 11500 $as_echo_n "(cached) " >&6 11501else 11502 ac_save_c_werror_flag=$ac_c_werror_flag 11503 ac_c_werror_flag=yes 11504 ac_cv_prog_cc_g=no 11505 CFLAGS="-g" 11506 cat >conftest.$ac_ext <<_ACEOF 11507/* confdefs.h. */ 11508_ACEOF 11509cat confdefs.h >>conftest.$ac_ext 11510cat >>conftest.$ac_ext <<_ACEOF 11511/* end confdefs.h. */ 11512 11513int 11514main () 11515{ 11516 11517 ; 11518 return 0; 11519} 11520_ACEOF 11521rm -f conftest.$ac_objext 11522if { (ac_try="$ac_compile" 11523case "(($ac_try" in 11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11525 *) ac_try_echo=$ac_try;; 11526esac 11527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11528$as_echo "$ac_try_echo") >&5 11529 (eval "$ac_compile") 2>conftest.er1 11530 ac_status=$? 11531 grep -v '^ *+' conftest.er1 >conftest.err 11532 rm -f conftest.er1 11533 cat conftest.err >&5 11534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11535 (exit $ac_status); } && { 11536 test -z "$ac_c_werror_flag" || 11537 test ! -s conftest.err 11538 } && test -s conftest.$ac_objext; then 11539 ac_cv_prog_cc_g=yes 11540else 11541 $as_echo "$as_me: failed program was:" >&5 11542sed 's/^/| /' conftest.$ac_ext >&5 11543 11544 CFLAGS="" 11545 cat >conftest.$ac_ext <<_ACEOF 11546/* confdefs.h. */ 11547_ACEOF 11548cat confdefs.h >>conftest.$ac_ext 11549cat >>conftest.$ac_ext <<_ACEOF 11550/* end confdefs.h. */ 11551 11552int 11553main () 11554{ 11555 11556 ; 11557 return 0; 11558} 11559_ACEOF 11560rm -f conftest.$ac_objext 11561if { (ac_try="$ac_compile" 11562case "(($ac_try" in 11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11564 *) ac_try_echo=$ac_try;; 11565esac 11566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11567$as_echo "$ac_try_echo") >&5 11568 (eval "$ac_compile") 2>conftest.er1 11569 ac_status=$? 11570 grep -v '^ *+' conftest.er1 >conftest.err 11571 rm -f conftest.er1 11572 cat conftest.err >&5 11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11574 (exit $ac_status); } && { 11575 test -z "$ac_c_werror_flag" || 11576 test ! -s conftest.err 11577 } && test -s conftest.$ac_objext; then 11578 : 11579else 11580 $as_echo "$as_me: failed program was:" >&5 11581sed 's/^/| /' conftest.$ac_ext >&5 11582 11583 ac_c_werror_flag=$ac_save_c_werror_flag 11584 CFLAGS="-g" 11585 cat >conftest.$ac_ext <<_ACEOF 11586/* confdefs.h. */ 11587_ACEOF 11588cat confdefs.h >>conftest.$ac_ext 11589cat >>conftest.$ac_ext <<_ACEOF 11590/* end confdefs.h. */ 11591 11592int 11593main () 11594{ 11595 11596 ; 11597 return 0; 11598} 11599_ACEOF 11600rm -f conftest.$ac_objext 11601if { (ac_try="$ac_compile" 11602case "(($ac_try" in 11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11604 *) ac_try_echo=$ac_try;; 11605esac 11606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11607$as_echo "$ac_try_echo") >&5 11608 (eval "$ac_compile") 2>conftest.er1 11609 ac_status=$? 11610 grep -v '^ *+' conftest.er1 >conftest.err 11611 rm -f conftest.er1 11612 cat conftest.err >&5 11613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11614 (exit $ac_status); } && { 11615 test -z "$ac_c_werror_flag" || 11616 test ! -s conftest.err 11617 } && test -s conftest.$ac_objext; then 11618 ac_cv_prog_cc_g=yes 11619else 11620 $as_echo "$as_me: failed program was:" >&5 11621sed 's/^/| /' conftest.$ac_ext >&5 11622 11623 11624fi 11625 11626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11627fi 11628 11629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11630fi 11631 11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11633 ac_c_werror_flag=$ac_save_c_werror_flag 11634fi 11635{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 11636$as_echo "$ac_cv_prog_cc_g" >&6; } 11637if test "$ac_test_CFLAGS" = set; then 11638 CFLAGS=$ac_save_CFLAGS 11639elif test $ac_cv_prog_cc_g = yes; then 11640 if test "$GCC" = yes; then 11641 CFLAGS="-g -O2" 11642 else 11643 CFLAGS="-g" 11644 fi 11645else 11646 if test "$GCC" = yes; then 11647 CFLAGS="-O2" 11648 else 11649 CFLAGS= 11650 fi 11651fi 11652{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 11653$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11654if test "${ac_cv_prog_cc_c89+set}" = set; then 11655 $as_echo_n "(cached) " >&6 11656else 11657 ac_cv_prog_cc_c89=no 11658ac_save_CC=$CC 11659cat >conftest.$ac_ext <<_ACEOF 11660/* confdefs.h. */ 11661_ACEOF 11662cat confdefs.h >>conftest.$ac_ext 11663cat >>conftest.$ac_ext <<_ACEOF 11664/* end confdefs.h. */ 11665#include <stdarg.h> 11666#include <stdio.h> 11667#include <sys/types.h> 11668#include <sys/stat.h> 11669/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11670struct buf { int x; }; 11671FILE * (*rcsopen) (struct buf *, struct stat *, int); 11672static char *e (p, i) 11673 char **p; 11674 int i; 11675{ 11676 return p[i]; 11677} 11678static char *f (char * (*g) (char **, int), char **p, ...) 11679{ 11680 char *s; 11681 va_list v; 11682 va_start (v,p); 11683 s = g (p, va_arg (v,int)); 11684 va_end (v); 11685 return s; 11686} 11687 11688/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11689 function prototypes and stuff, but not '\xHH' hex character constants. 11690 These don't provoke an error unfortunately, instead are silently treated 11691 as 'x'. The following induces an error, until -std is added to get 11692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11693 array size at least. It's necessary to write '\x00'==0 to get something 11694 that's true only with -std. */ 11695int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11696 11697/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11698 inside strings and character constants. */ 11699#define FOO(x) 'x' 11700int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11701 11702int test (int i, double x); 11703struct s1 {int (*f) (int a);}; 11704struct s2 {int (*f) (double a);}; 11705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11706int argc; 11707char **argv; 11708int 11709main () 11710{ 11711return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11712 ; 11713 return 0; 11714} 11715_ACEOF 11716for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11718do 11719 CC="$ac_save_CC $ac_arg" 11720 rm -f conftest.$ac_objext 11721if { (ac_try="$ac_compile" 11722case "(($ac_try" in 11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11724 *) ac_try_echo=$ac_try;; 11725esac 11726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11727$as_echo "$ac_try_echo") >&5 11728 (eval "$ac_compile") 2>conftest.er1 11729 ac_status=$? 11730 grep -v '^ *+' conftest.er1 >conftest.err 11731 rm -f conftest.er1 11732 cat conftest.err >&5 11733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11734 (exit $ac_status); } && { 11735 test -z "$ac_c_werror_flag" || 11736 test ! -s conftest.err 11737 } && test -s conftest.$ac_objext; then 11738 ac_cv_prog_cc_c89=$ac_arg 11739else 11740 $as_echo "$as_me: failed program was:" >&5 11741sed 's/^/| /' conftest.$ac_ext >&5 11742 11743 11744fi 11745 11746rm -f core conftest.err conftest.$ac_objext 11747 test "x$ac_cv_prog_cc_c89" != "xno" && break 11748done 11749rm -f conftest.$ac_ext 11750CC=$ac_save_CC 11751 11752fi 11753# AC_CACHE_VAL 11754case "x$ac_cv_prog_cc_c89" in 11755 x) 11756 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11757$as_echo "none needed" >&6; } ;; 11758 xno) 11759 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11760$as_echo "unsupported" >&6; } ;; 11761 *) 11762 CC="$CC $ac_cv_prog_cc_c89" 11763 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 11764$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11765esac 11766 11767 11768ac_ext=c 11769ac_cpp='$CPP $CPPFLAGS' 11770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11772ac_compiler_gnu=$ac_cv_c_compiler_gnu 11773 11774depcc="$CC" am_compiler_list= 11775 11776{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 11777$as_echo_n "checking dependency style of $depcc... " >&6; } 11778if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 11779 $as_echo_n "(cached) " >&6 11780else 11781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11782 # We make a subdir and do the tests there. Otherwise we can end up 11783 # making bogus files that we don't know about and never remove. For 11784 # instance it was reported that on HP-UX the gcc test will end up 11785 # making a dummy file named `D' -- because `-MD' means `put the output 11786 # in D'. 11787 mkdir conftest.dir 11788 # Copy depcomp to subdir because otherwise we won't find it if we're 11789 # using a relative directory. 11790 cp "$am_depcomp" conftest.dir 11791 cd conftest.dir 11792 # We will build objects and dependencies in a subdirectory because 11793 # it helps to detect inapplicable dependency modes. For instance 11794 # both Tru64's cc and ICC support -MD to output dependencies as a 11795 # side effect of compilation, but ICC will put the dependencies in 11796 # the current directory while Tru64 will put them in the object 11797 # directory. 11798 mkdir sub 11799 11800 am_cv_CC_dependencies_compiler_type=none 11801 if test "$am_compiler_list" = ""; then 11802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11803 fi 11804 for depmode in $am_compiler_list; do 11805 # Setup a source with many dependencies, because some compilers 11806 # like to wrap large dependency lists on column 80 (with \), and 11807 # we should not choose a depcomp mode which is confused by this. 11808 # 11809 # We need to recreate these files for each test, as the compiler may 11810 # overwrite some of them when testing with obscure command lines. 11811 # This happens at least with the AIX C compiler. 11812 : > sub/conftest.c 11813 for i in 1 2 3 4 5 6; do 11814 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11816 # Solaris 8's {/usr,}/bin/sh. 11817 touch sub/conftst$i.h 11818 done 11819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11820 11821 case $depmode in 11822 nosideeffect) 11823 # after this tag, mechanisms are not by side-effect, so they'll 11824 # only be used when explicitly requested 11825 if test "x$enable_dependency_tracking" = xyes; then 11826 continue 11827 else 11828 break 11829 fi 11830 ;; 11831 none) break ;; 11832 esac 11833 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11834 # mode. It turns out that the SunPro C++ compiler does not properly 11835 # handle `-M -o', and we need to detect this. 11836 if depmode=$depmode \ 11837 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 11838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11839 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 11840 >/dev/null 2>conftest.err && 11841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11843 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 11844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11845 # icc doesn't choke on unknown options, it will just issue warnings 11846 # or remarks (even with -Werror). So we grep stderr for any message 11847 # that says an option was ignored or not supported. 11848 # When given -MP, icc 7.0 and 7.1 complain thusly: 11849 # icc: Command line warning: ignoring option '-M'; no argument required 11850 # The diagnosis changed in icc 8.0: 11851 # icc: Command line remark: option '-MP' not supported 11852 if (grep 'ignoring option' conftest.err || 11853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11854 am_cv_CC_dependencies_compiler_type=$depmode 11855 break 11856 fi 11857 fi 11858 done 11859 11860 cd .. 11861 rm -rf conftest.dir 11862else 11863 am_cv_CC_dependencies_compiler_type=none 11864fi 11865 11866fi 11867{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 11868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11870 11871 if 11872 test "x$enable_dependency_tracking" != xno \ 11873 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11874 am__fastdepCC_TRUE= 11875 am__fastdepCC_FALSE='#' 11876else 11877 am__fastdepCC_TRUE='#' 11878 am__fastdepCC_FALSE= 11879fi 11880 11881 11882 11883 11884 11885 11886 11887# Check whether --with-xorg-module-dir was given. 11888if test "${with_xorg_module_dir+set}" = set; then 11889 withval=$with_xorg_module_dir; moduledir="$withval" 11890else 11891 moduledir="$libdir/xorg/modules" 11892fi 11893 11894 11895# Check whether --enable-dri was given. 11896if test "${enable_dri+set}" = set; then 11897 enableval=$enable_dri; DRI="$enableval" 11898else 11899 DRI=auto 11900fi 11901 11902 11903# Checks for extensions 11904 11905 SAVE_CFLAGS="$CFLAGS" 11906 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11907 cat >conftest.$ac_ext <<_ACEOF 11908/* confdefs.h. */ 11909_ACEOF 11910cat confdefs.h >>conftest.$ac_ext 11911cat >>conftest.$ac_ext <<_ACEOF 11912/* end confdefs.h. */ 11913 11914#include "xorg-server.h" 11915#if !defined RANDR 11916#error RANDR not defined 11917#endif 11918 11919int 11920main () 11921{ 11922 11923 ; 11924 return 0; 11925} 11926_ACEOF 11927rm -f conftest.$ac_objext 11928if { (ac_try="$ac_compile" 11929case "(($ac_try" in 11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11931 *) ac_try_echo=$ac_try;; 11932esac 11933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11934$as_echo "$ac_try_echo") >&5 11935 (eval "$ac_compile") 2>conftest.er1 11936 ac_status=$? 11937 grep -v '^ *+' conftest.er1 >conftest.err 11938 rm -f conftest.er1 11939 cat conftest.err >&5 11940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11941 (exit $ac_status); } && { 11942 test -z "$ac_c_werror_flag" || 11943 test ! -s conftest.err 11944 } && test -s conftest.$ac_objext; then 11945 _EXT_CHECK=yes 11946else 11947 $as_echo "$as_me: failed program was:" >&5 11948sed 's/^/| /' conftest.$ac_ext >&5 11949 11950 _EXT_CHECK=no 11951fi 11952 11953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11954 CFLAGS="$SAVE_CFLAGS" 11955 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 11956$as_echo_n "checking if RANDR is defined... " >&6; } 11957 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 11958$as_echo "$_EXT_CHECK" >&6; } 11959 if test "$_EXT_CHECK" != no; then 11960 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 11961 fi 11962 11963 11964 SAVE_CFLAGS="$CFLAGS" 11965 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11966 cat >conftest.$ac_ext <<_ACEOF 11967/* confdefs.h. */ 11968_ACEOF 11969cat confdefs.h >>conftest.$ac_ext 11970cat >>conftest.$ac_ext <<_ACEOF 11971/* end confdefs.h. */ 11972 11973#include "xorg-server.h" 11974#if !defined RENDER 11975#error RENDER not defined 11976#endif 11977 11978int 11979main () 11980{ 11981 11982 ; 11983 return 0; 11984} 11985_ACEOF 11986rm -f conftest.$ac_objext 11987if { (ac_try="$ac_compile" 11988case "(($ac_try" in 11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11990 *) ac_try_echo=$ac_try;; 11991esac 11992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11993$as_echo "$ac_try_echo") >&5 11994 (eval "$ac_compile") 2>conftest.er1 11995 ac_status=$? 11996 grep -v '^ *+' conftest.er1 >conftest.err 11997 rm -f conftest.er1 11998 cat conftest.err >&5 11999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12000 (exit $ac_status); } && { 12001 test -z "$ac_c_werror_flag" || 12002 test ! -s conftest.err 12003 } && test -s conftest.$ac_objext; then 12004 _EXT_CHECK=yes 12005else 12006 $as_echo "$as_me: failed program was:" >&5 12007sed 's/^/| /' conftest.$ac_ext >&5 12008 12009 _EXT_CHECK=no 12010fi 12011 12012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12013 CFLAGS="$SAVE_CFLAGS" 12014 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12015$as_echo_n "checking if RENDER is defined... " >&6; } 12016 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12017$as_echo "$_EXT_CHECK" >&6; } 12018 if test "$_EXT_CHECK" != no; then 12019 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12020 fi 12021 12022 12023 SAVE_CFLAGS="$CFLAGS" 12024 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12025 cat >conftest.$ac_ext <<_ACEOF 12026/* confdefs.h. */ 12027_ACEOF 12028cat confdefs.h >>conftest.$ac_ext 12029cat >>conftest.$ac_ext <<_ACEOF 12030/* end confdefs.h. */ 12031 12032#include "xorg-server.h" 12033#if !defined XV 12034#error XV not defined 12035#endif 12036 12037int 12038main () 12039{ 12040 12041 ; 12042 return 0; 12043} 12044_ACEOF 12045rm -f conftest.$ac_objext 12046if { (ac_try="$ac_compile" 12047case "(($ac_try" in 12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12049 *) ac_try_echo=$ac_try;; 12050esac 12051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12052$as_echo "$ac_try_echo") >&5 12053 (eval "$ac_compile") 2>conftest.er1 12054 ac_status=$? 12055 grep -v '^ *+' conftest.er1 >conftest.err 12056 rm -f conftest.er1 12057 cat conftest.err >&5 12058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12059 (exit $ac_status); } && { 12060 test -z "$ac_c_werror_flag" || 12061 test ! -s conftest.err 12062 } && test -s conftest.$ac_objext; then 12063 _EXT_CHECK=yes 12064else 12065 $as_echo "$as_me: failed program was:" >&5 12066sed 's/^/| /' conftest.$ac_ext >&5 12067 12068 _EXT_CHECK=no 12069fi 12070 12071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12072 CFLAGS="$SAVE_CFLAGS" 12073 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 12074$as_echo_n "checking if XV is defined... " >&6; } 12075 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12076$as_echo "$_EXT_CHECK" >&6; } 12077 if test "$_EXT_CHECK" != no; then 12078 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12079 fi 12080 12081 12082 SAVE_CFLAGS="$CFLAGS" 12083 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12084 cat >conftest.$ac_ext <<_ACEOF 12085/* confdefs.h. */ 12086_ACEOF 12087cat confdefs.h >>conftest.$ac_ext 12088cat >>conftest.$ac_ext <<_ACEOF 12089/* end confdefs.h. */ 12090 12091#include "xorg-server.h" 12092#if !defined DPMSExtension 12093#error DPMSExtension not defined 12094#endif 12095 12096int 12097main () 12098{ 12099 12100 ; 12101 return 0; 12102} 12103_ACEOF 12104rm -f conftest.$ac_objext 12105if { (ac_try="$ac_compile" 12106case "(($ac_try" in 12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12108 *) ac_try_echo=$ac_try;; 12109esac 12110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12111$as_echo "$ac_try_echo") >&5 12112 (eval "$ac_compile") 2>conftest.er1 12113 ac_status=$? 12114 grep -v '^ *+' conftest.er1 >conftest.err 12115 rm -f conftest.er1 12116 cat conftest.err >&5 12117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12118 (exit $ac_status); } && { 12119 test -z "$ac_c_werror_flag" || 12120 test ! -s conftest.err 12121 } && test -s conftest.$ac_objext; then 12122 _EXT_CHECK=yes 12123else 12124 $as_echo "$as_me: failed program was:" >&5 12125sed 's/^/| /' conftest.$ac_ext >&5 12126 12127 _EXT_CHECK=no 12128fi 12129 12130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12131 CFLAGS="$SAVE_CFLAGS" 12132 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12133$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12134 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12135$as_echo "$_EXT_CHECK" >&6; } 12136 if test "$_EXT_CHECK" != no; then 12137 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12138 fi 12139 12140 12141 SAVE_CFLAGS="$CFLAGS" 12142 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12143 cat >conftest.$ac_ext <<_ACEOF 12144/* confdefs.h. */ 12145_ACEOF 12146cat confdefs.h >>conftest.$ac_ext 12147cat >>conftest.$ac_ext <<_ACEOF 12148/* end confdefs.h. */ 12149 12150#include "xorg-server.h" 12151#if !defined XFreeXDGA 12152#error XFreeXDGA not defined 12153#endif 12154 12155int 12156main () 12157{ 12158 12159 ; 12160 return 0; 12161} 12162_ACEOF 12163rm -f conftest.$ac_objext 12164if { (ac_try="$ac_compile" 12165case "(($ac_try" in 12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12167 *) ac_try_echo=$ac_try;; 12168esac 12169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12170$as_echo "$ac_try_echo") >&5 12171 (eval "$ac_compile") 2>conftest.er1 12172 ac_status=$? 12173 grep -v '^ *+' conftest.er1 >conftest.err 12174 rm -f conftest.er1 12175 cat conftest.err >&5 12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12177 (exit $ac_status); } && { 12178 test -z "$ac_c_werror_flag" || 12179 test ! -s conftest.err 12180 } && test -s conftest.$ac_objext; then 12181 _EXT_CHECK=yes 12182else 12183 $as_echo "$as_me: failed program was:" >&5 12184sed 's/^/| /' conftest.$ac_ext >&5 12185 12186 _EXT_CHECK=no 12187fi 12188 12189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12190 CFLAGS="$SAVE_CFLAGS" 12191 { $as_echo "$as_me:$LINENO: checking if XFreeXDGA is defined" >&5 12192$as_echo_n "checking if XFreeXDGA is defined... " >&6; } 12193 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12194$as_echo "$_EXT_CHECK" >&6; } 12195 if test "$_EXT_CHECK" != no; then 12196 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto" 12197 fi 12198 12199 12200# Checks for pkg-config packages 12201 12202 12203if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12204 if test -n "$ac_tool_prefix"; then 12205 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12206set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12208$as_echo_n "checking for $ac_word... " >&6; } 12209if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12210 $as_echo_n "(cached) " >&6 12211else 12212 case $PKG_CONFIG in 12213 [\\/]* | ?:[\\/]*) 12214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12215 ;; 12216 *) 12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12218for as_dir in $PATH 12219do 12220 IFS=$as_save_IFS 12221 test -z "$as_dir" && as_dir=. 12222 for ac_exec_ext in '' $ac_executable_extensions; do 12223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12226 break 2 12227 fi 12228done 12229done 12230IFS=$as_save_IFS 12231 12232 ;; 12233esac 12234fi 12235PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12236if test -n "$PKG_CONFIG"; then 12237 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12238$as_echo "$PKG_CONFIG" >&6; } 12239else 12240 { $as_echo "$as_me:$LINENO: result: no" >&5 12241$as_echo "no" >&6; } 12242fi 12243 12244 12245fi 12246if test -z "$ac_cv_path_PKG_CONFIG"; then 12247 ac_pt_PKG_CONFIG=$PKG_CONFIG 12248 # Extract the first word of "pkg-config", so it can be a program name with args. 12249set dummy pkg-config; ac_word=$2 12250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12251$as_echo_n "checking for $ac_word... " >&6; } 12252if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12253 $as_echo_n "(cached) " >&6 12254else 12255 case $ac_pt_PKG_CONFIG in 12256 [\\/]* | ?:[\\/]*) 12257 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12258 ;; 12259 *) 12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12261for as_dir in $PATH 12262do 12263 IFS=$as_save_IFS 12264 test -z "$as_dir" && as_dir=. 12265 for ac_exec_ext in '' $ac_executable_extensions; do 12266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12267 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12269 break 2 12270 fi 12271done 12272done 12273IFS=$as_save_IFS 12274 12275 ;; 12276esac 12277fi 12278ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12279if test -n "$ac_pt_PKG_CONFIG"; then 12280 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12281$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12282else 12283 { $as_echo "$as_me:$LINENO: result: no" >&5 12284$as_echo "no" >&6; } 12285fi 12286 12287 if test "x$ac_pt_PKG_CONFIG" = x; then 12288 PKG_CONFIG="" 12289 else 12290 case $cross_compiling:$ac_tool_warned in 12291yes:) 12292{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12294ac_tool_warned=yes ;; 12295esac 12296 PKG_CONFIG=$ac_pt_PKG_CONFIG 12297 fi 12298else 12299 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12300fi 12301 12302fi 12303if test -n "$PKG_CONFIG"; then 12304 _pkg_min_version=0.9.0 12305 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12306$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12307 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12308 { $as_echo "$as_me:$LINENO: result: yes" >&5 12309$as_echo "yes" >&6; } 12310 else 12311 { $as_echo "$as_me:$LINENO: result: no" >&5 12312$as_echo "no" >&6; } 12313 PKG_CONFIG="" 12314 fi 12315 12316fi 12317 12318pkg_failed=no 12319{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12320$as_echo_n "checking for XORG... " >&6; } 12321 12322if test -n "$XORG_CFLAGS"; then 12323 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12324 elif test -n "$PKG_CONFIG"; then 12325 if test -n "$PKG_CONFIG" && \ 12326 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12327 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 12328 ac_status=$? 12329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12330 (exit $ac_status); }; then 12331 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12332else 12333 pkg_failed=yes 12334fi 12335 else 12336 pkg_failed=untried 12337fi 12338if test -n "$XORG_LIBS"; then 12339 pkg_cv_XORG_LIBS="$XORG_LIBS" 12340 elif test -n "$PKG_CONFIG"; then 12341 if test -n "$PKG_CONFIG" && \ 12342 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12343 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 12344 ac_status=$? 12345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12346 (exit $ac_status); }; then 12347 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12348else 12349 pkg_failed=yes 12350fi 12351 else 12352 pkg_failed=untried 12353fi 12354 12355 12356 12357if test $pkg_failed = yes; then 12358 12359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12360 _pkg_short_errors_supported=yes 12361else 12362 _pkg_short_errors_supported=no 12363fi 12364 if test $_pkg_short_errors_supported = yes; then 12365 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12366 else 12367 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12368 fi 12369 # Put the nasty error message in config.log where it belongs 12370 echo "$XORG_PKG_ERRORS" >&5 12371 12372 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 12373 12374$XORG_PKG_ERRORS 12375 12376Consider adjusting the PKG_CONFIG_PATH environment variable if you 12377installed software in a non-standard prefix. 12378 12379Alternatively, you may set the environment variables XORG_CFLAGS 12380and XORG_LIBS to avoid the need to call pkg-config. 12381See the pkg-config man page for more details. 12382" >&5 12383$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 12384 12385$XORG_PKG_ERRORS 12386 12387Consider adjusting the PKG_CONFIG_PATH environment variable if you 12388installed software in a non-standard prefix. 12389 12390Alternatively, you may set the environment variables XORG_CFLAGS 12391and XORG_LIBS to avoid the need to call pkg-config. 12392See the pkg-config man page for more details. 12393" >&2;} 12394 { (exit 1); exit 1; }; } 12395elif test $pkg_failed = untried; then 12396 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12398{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12399is in your PATH or set the PKG_CONFIG environment variable to the full 12400path to pkg-config. 12401 12402Alternatively, you may set the environment variables XORG_CFLAGS 12403and XORG_LIBS to avoid the need to call pkg-config. 12404See the pkg-config man page for more details. 12405 12406To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12407See \`config.log' for more details." >&5 12408$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12409is in your PATH or set the PKG_CONFIG environment variable to the full 12410path to pkg-config. 12411 12412Alternatively, you may set the environment variables XORG_CFLAGS 12413and XORG_LIBS to avoid the need to call pkg-config. 12414See the pkg-config man page for more details. 12415 12416To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12417See \`config.log' for more details." >&2;} 12418 { (exit 1); exit 1; }; }; } 12419else 12420 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12421 XORG_LIBS=$pkg_cv_XORG_LIBS 12422 { $as_echo "$as_me:$LINENO: result: yes" >&5 12423$as_echo "yes" >&6; } 12424 : 12425fi 12426sdkdir=$(pkg-config --variable=sdkdir xorg-server) 12427 12428# Checks for libraries. 12429SAVE_CPPFLAGS="$CPPFLAGS" 12430CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 12431{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 12432$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 12433if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 12434 $as_echo_n "(cached) " >&6 12435else 12436 cat >conftest.$ac_ext <<_ACEOF 12437/* confdefs.h. */ 12438_ACEOF 12439cat confdefs.h >>conftest.$ac_ext 12440cat >>conftest.$ac_ext <<_ACEOF 12441/* end confdefs.h. */ 12442#include "xorg-server.h" 12443 12444int 12445main () 12446{ 12447#ifndef XSERVER_LIBPCIACCESS 12448 (void) XSERVER_LIBPCIACCESS; 12449#endif 12450 12451 ; 12452 return 0; 12453} 12454_ACEOF 12455rm -f conftest.$ac_objext 12456if { (ac_try="$ac_compile" 12457case "(($ac_try" in 12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12459 *) ac_try_echo=$ac_try;; 12460esac 12461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12462$as_echo "$ac_try_echo") >&5 12463 (eval "$ac_compile") 2>conftest.er1 12464 ac_status=$? 12465 grep -v '^ *+' conftest.er1 >conftest.err 12466 rm -f conftest.er1 12467 cat conftest.err >&5 12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12469 (exit $ac_status); } && { 12470 test -z "$ac_c_werror_flag" || 12471 test ! -s conftest.err 12472 } && test -s conftest.$ac_objext; then 12473 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 12474else 12475 $as_echo "$as_me: failed program was:" >&5 12476sed 's/^/| /' conftest.$ac_ext >&5 12477 12478 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 12479fi 12480 12481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12482fi 12483{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 12484$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 12485if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 12486 XSERVER_LIBPCIACCESS=yes 12487else 12488 XSERVER_LIBPCIACCESS=no 12489fi 12490 12491if test "${ac_cv_header_cfb8_32_h+set}" = set; then 12492 { $as_echo "$as_me:$LINENO: checking for cfb8_32.h" >&5 12493$as_echo_n "checking for cfb8_32.h... " >&6; } 12494if test "${ac_cv_header_cfb8_32_h+set}" = set; then 12495 $as_echo_n "(cached) " >&6 12496fi 12497{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cfb8_32_h" >&5 12498$as_echo "$ac_cv_header_cfb8_32_h" >&6; } 12499else 12500 # Is the header compilable? 12501{ $as_echo "$as_me:$LINENO: checking cfb8_32.h usability" >&5 12502$as_echo_n "checking cfb8_32.h usability... " >&6; } 12503cat >conftest.$ac_ext <<_ACEOF 12504/* confdefs.h. */ 12505_ACEOF 12506cat confdefs.h >>conftest.$ac_ext 12507cat >>conftest.$ac_ext <<_ACEOF 12508/* end confdefs.h. */ 12509$ac_includes_default 12510#include <cfb8_32.h> 12511_ACEOF 12512rm -f conftest.$ac_objext 12513if { (ac_try="$ac_compile" 12514case "(($ac_try" in 12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12516 *) ac_try_echo=$ac_try;; 12517esac 12518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12519$as_echo "$ac_try_echo") >&5 12520 (eval "$ac_compile") 2>conftest.er1 12521 ac_status=$? 12522 grep -v '^ *+' conftest.er1 >conftest.err 12523 rm -f conftest.er1 12524 cat conftest.err >&5 12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12526 (exit $ac_status); } && { 12527 test -z "$ac_c_werror_flag" || 12528 test ! -s conftest.err 12529 } && test -s conftest.$ac_objext; then 12530 ac_header_compiler=yes 12531else 12532 $as_echo "$as_me: failed program was:" >&5 12533sed 's/^/| /' conftest.$ac_ext >&5 12534 12535 ac_header_compiler=no 12536fi 12537 12538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12539{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12540$as_echo "$ac_header_compiler" >&6; } 12541 12542# Is the header present? 12543{ $as_echo "$as_me:$LINENO: checking cfb8_32.h presence" >&5 12544$as_echo_n "checking cfb8_32.h presence... " >&6; } 12545cat >conftest.$ac_ext <<_ACEOF 12546/* confdefs.h. */ 12547_ACEOF 12548cat confdefs.h >>conftest.$ac_ext 12549cat >>conftest.$ac_ext <<_ACEOF 12550/* end confdefs.h. */ 12551#include <cfb8_32.h> 12552_ACEOF 12553if { (ac_try="$ac_cpp conftest.$ac_ext" 12554case "(($ac_try" in 12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12556 *) ac_try_echo=$ac_try;; 12557esac 12558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12559$as_echo "$ac_try_echo") >&5 12560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12561 ac_status=$? 12562 grep -v '^ *+' conftest.er1 >conftest.err 12563 rm -f conftest.er1 12564 cat conftest.err >&5 12565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12566 (exit $ac_status); } >/dev/null && { 12567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12568 test ! -s conftest.err 12569 }; then 12570 ac_header_preproc=yes 12571else 12572 $as_echo "$as_me: failed program was:" >&5 12573sed 's/^/| /' conftest.$ac_ext >&5 12574 12575 ac_header_preproc=no 12576fi 12577 12578rm -f conftest.err conftest.$ac_ext 12579{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12580$as_echo "$ac_header_preproc" >&6; } 12581 12582# So? What about this header? 12583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12584 yes:no: ) 12585 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: accepted by the compiler, rejected by the preprocessor!" >&5 12586$as_echo "$as_me: WARNING: cfb8_32.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12587 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: proceeding with the compiler's result" >&5 12588$as_echo "$as_me: WARNING: cfb8_32.h: proceeding with the compiler's result" >&2;} 12589 ac_header_preproc=yes 12590 ;; 12591 no:yes:* ) 12592 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: present but cannot be compiled" >&5 12593$as_echo "$as_me: WARNING: cfb8_32.h: present but cannot be compiled" >&2;} 12594 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: check for missing prerequisite headers?" >&5 12595$as_echo "$as_me: WARNING: cfb8_32.h: check for missing prerequisite headers?" >&2;} 12596 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: see the Autoconf documentation" >&5 12597$as_echo "$as_me: WARNING: cfb8_32.h: see the Autoconf documentation" >&2;} 12598 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: section \"Present But Cannot Be Compiled\"" >&5 12599$as_echo "$as_me: WARNING: cfb8_32.h: section \"Present But Cannot Be Compiled\"" >&2;} 12600 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: proceeding with the preprocessor's result" >&5 12601$as_echo "$as_me: WARNING: cfb8_32.h: proceeding with the preprocessor's result" >&2;} 12602 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: in the future, the compiler will take precedence" >&5 12603$as_echo "$as_me: WARNING: cfb8_32.h: in the future, the compiler will take precedence" >&2;} 12604 ( cat <<\_ASBOX 12605## ---------------------------------------------------------------------- ## 12606## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 12607## ---------------------------------------------------------------------- ## 12608_ASBOX 12609 ) | sed "s/^/$as_me: WARNING: /" >&2 12610 ;; 12611esac 12612{ $as_echo "$as_me:$LINENO: checking for cfb8_32.h" >&5 12613$as_echo_n "checking for cfb8_32.h... " >&6; } 12614if test "${ac_cv_header_cfb8_32_h+set}" = set; then 12615 $as_echo_n "(cached) " >&6 12616else 12617 ac_cv_header_cfb8_32_h=$ac_header_preproc 12618fi 12619{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cfb8_32_h" >&5 12620$as_echo "$ac_cv_header_cfb8_32_h" >&6; } 12621 12622fi 12623if test "x$ac_cv_header_cfb8_32_h" = x""yes; then 12624 12625cat >>confdefs.h <<\_ACEOF 12626#define HAVE_CFB8_32 1 12627_ACEOF 12628 12629fi 12630 12631 12632CPPFLAGS="$SAVE_CPPFLAGS" 12633 12634# Checks for header files. 12635{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12636$as_echo_n "checking for ANSI C header files... " >&6; } 12637if test "${ac_cv_header_stdc+set}" = set; then 12638 $as_echo_n "(cached) " >&6 12639else 12640 cat >conftest.$ac_ext <<_ACEOF 12641/* confdefs.h. */ 12642_ACEOF 12643cat confdefs.h >>conftest.$ac_ext 12644cat >>conftest.$ac_ext <<_ACEOF 12645/* end confdefs.h. */ 12646#include <stdlib.h> 12647#include <stdarg.h> 12648#include <string.h> 12649#include <float.h> 12650 12651int 12652main () 12653{ 12654 12655 ; 12656 return 0; 12657} 12658_ACEOF 12659rm -f conftest.$ac_objext 12660if { (ac_try="$ac_compile" 12661case "(($ac_try" in 12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12663 *) ac_try_echo=$ac_try;; 12664esac 12665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12666$as_echo "$ac_try_echo") >&5 12667 (eval "$ac_compile") 2>conftest.er1 12668 ac_status=$? 12669 grep -v '^ *+' conftest.er1 >conftest.err 12670 rm -f conftest.er1 12671 cat conftest.err >&5 12672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12673 (exit $ac_status); } && { 12674 test -z "$ac_c_werror_flag" || 12675 test ! -s conftest.err 12676 } && test -s conftest.$ac_objext; then 12677 ac_cv_header_stdc=yes 12678else 12679 $as_echo "$as_me: failed program was:" >&5 12680sed 's/^/| /' conftest.$ac_ext >&5 12681 12682 ac_cv_header_stdc=no 12683fi 12684 12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12686 12687if test $ac_cv_header_stdc = yes; then 12688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12689 cat >conftest.$ac_ext <<_ACEOF 12690/* confdefs.h. */ 12691_ACEOF 12692cat confdefs.h >>conftest.$ac_ext 12693cat >>conftest.$ac_ext <<_ACEOF 12694/* end confdefs.h. */ 12695#include <string.h> 12696 12697_ACEOF 12698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12699 $EGREP "memchr" >/dev/null 2>&1; then 12700 : 12701else 12702 ac_cv_header_stdc=no 12703fi 12704rm -f conftest* 12705 12706fi 12707 12708if test $ac_cv_header_stdc = yes; then 12709 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12710 cat >conftest.$ac_ext <<_ACEOF 12711/* confdefs.h. */ 12712_ACEOF 12713cat confdefs.h >>conftest.$ac_ext 12714cat >>conftest.$ac_ext <<_ACEOF 12715/* end confdefs.h. */ 12716#include <stdlib.h> 12717 12718_ACEOF 12719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12720 $EGREP "free" >/dev/null 2>&1; then 12721 : 12722else 12723 ac_cv_header_stdc=no 12724fi 12725rm -f conftest* 12726 12727fi 12728 12729if test $ac_cv_header_stdc = yes; then 12730 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12731 if test "$cross_compiling" = yes; then 12732 : 12733else 12734 cat >conftest.$ac_ext <<_ACEOF 12735/* confdefs.h. */ 12736_ACEOF 12737cat confdefs.h >>conftest.$ac_ext 12738cat >>conftest.$ac_ext <<_ACEOF 12739/* end confdefs.h. */ 12740#include <ctype.h> 12741#include <stdlib.h> 12742#if ((' ' & 0x0FF) == 0x020) 12743# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12744# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12745#else 12746# define ISLOWER(c) \ 12747 (('a' <= (c) && (c) <= 'i') \ 12748 || ('j' <= (c) && (c) <= 'r') \ 12749 || ('s' <= (c) && (c) <= 'z')) 12750# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12751#endif 12752 12753#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12754int 12755main () 12756{ 12757 int i; 12758 for (i = 0; i < 256; i++) 12759 if (XOR (islower (i), ISLOWER (i)) 12760 || toupper (i) != TOUPPER (i)) 12761 return 2; 12762 return 0; 12763} 12764_ACEOF 12765rm -f conftest$ac_exeext 12766if { (ac_try="$ac_link" 12767case "(($ac_try" in 12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12769 *) ac_try_echo=$ac_try;; 12770esac 12771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12772$as_echo "$ac_try_echo") >&5 12773 (eval "$ac_link") 2>&5 12774 ac_status=$? 12775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12777 { (case "(($ac_try" in 12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12779 *) ac_try_echo=$ac_try;; 12780esac 12781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12782$as_echo "$ac_try_echo") >&5 12783 (eval "$ac_try") 2>&5 12784 ac_status=$? 12785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12786 (exit $ac_status); }; }; then 12787 : 12788else 12789 $as_echo "$as_me: program exited with status $ac_status" >&5 12790$as_echo "$as_me: failed program was:" >&5 12791sed 's/^/| /' conftest.$ac_ext >&5 12792 12793( exit $ac_status ) 12794ac_cv_header_stdc=no 12795fi 12796rm -rf conftest.dSYM 12797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12798fi 12799 12800 12801fi 12802fi 12803{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12804$as_echo "$ac_cv_header_stdc" >&6; } 12805if test $ac_cv_header_stdc = yes; then 12806 12807cat >>confdefs.h <<\_ACEOF 12808#define STDC_HEADERS 1 12809_ACEOF 12810 12811fi 12812 12813 12814if test "$DRI" != no; then 12815 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 12816{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5 12817$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 12818if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 12819 $as_echo_n "(cached) " >&6 12820else 12821 test "$cross_compiling" = yes && 12822 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 12823$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 12824 { (exit 1); exit 1; }; } 12825if test -r "${sdkdir}/dri.h"; then 12826 eval "$as_ac_File=yes" 12827else 12828 eval "$as_ac_File=no" 12829fi 12830fi 12831ac_res=`eval 'as_val=${'$as_ac_File'} 12832 $as_echo "$as_val"'` 12833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12834$as_echo "$ac_res" >&6; } 12835as_val=`eval 'as_val=${'$as_ac_File'} 12836 $as_echo "$as_val"'` 12837 if test "x$as_val" = x""yes; then 12838 have_dri_h="yes" 12839else 12840 have_dri_h="no" 12841fi 12842 12843 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 12844{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5 12845$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 12846if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 12847 $as_echo_n "(cached) " >&6 12848else 12849 test "$cross_compiling" = yes && 12850 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 12851$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 12852 { (exit 1); exit 1; }; } 12853if test -r "${sdkdir}/sarea.h"; then 12854 eval "$as_ac_File=yes" 12855else 12856 eval "$as_ac_File=no" 12857fi 12858fi 12859ac_res=`eval 'as_val=${'$as_ac_File'} 12860 $as_echo "$as_val"'` 12861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12862$as_echo "$ac_res" >&6; } 12863as_val=`eval 'as_val=${'$as_ac_File'} 12864 $as_echo "$as_val"'` 12865 if test "x$as_val" = x""yes; then 12866 have_sarea_h="yes" 12867else 12868 have_sarea_h="no" 12869fi 12870 12871 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 12872{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5 12873$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 12874if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 12875 $as_echo_n "(cached) " >&6 12876else 12877 test "$cross_compiling" = yes && 12878 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 12879$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 12880 { (exit 1); exit 1; }; } 12881if test -r "${sdkdir}/dristruct.h"; then 12882 eval "$as_ac_File=yes" 12883else 12884 eval "$as_ac_File=no" 12885fi 12886fi 12887ac_res=`eval 'as_val=${'$as_ac_File'} 12888 $as_echo "$as_val"'` 12889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12890$as_echo "$ac_res" >&6; } 12891as_val=`eval 'as_val=${'$as_ac_File'} 12892 $as_echo "$as_val"'` 12893 if test "x$as_val" = x""yes; then 12894 have_dristruct_h="yes" 12895else 12896 have_dristruct_h="no" 12897fi 12898 12899fi 12900 12901{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5 12902$as_echo_n "checking whether to include DRI support... " >&6; } 12903if test x$DRI = xauto; then 12904 if test "$have_dri_h" = yes -a \ 12905 "$have_sarea_h" = yes -a \ 12906 "$have_dristruct_h" = yes; then 12907 DRI="yes" 12908 else 12909 DRI="no" 12910 fi 12911fi 12912{ $as_echo "$as_me:$LINENO: result: $DRI" >&5 12913$as_echo "$DRI" >&6; } 12914 12915 if test x$DRI = xyes; then 12916 DRI_TRUE= 12917 DRI_FALSE='#' 12918else 12919 DRI_TRUE='#' 12920 DRI_FALSE= 12921fi 12922 12923if test "$DRI" = yes; then 12924 12925pkg_failed=no 12926{ $as_echo "$as_me:$LINENO: checking for DRI" >&5 12927$as_echo_n "checking for DRI... " >&6; } 12928 12929if test -n "$DRI_CFLAGS"; then 12930 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 12931 elif test -n "$PKG_CONFIG"; then 12932 if test -n "$PKG_CONFIG" && \ 12933 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 12934 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 12935 ac_status=$? 12936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12937 (exit $ac_status); }; then 12938 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 12939else 12940 pkg_failed=yes 12941fi 12942 else 12943 pkg_failed=untried 12944fi 12945if test -n "$DRI_LIBS"; then 12946 pkg_cv_DRI_LIBS="$DRI_LIBS" 12947 elif test -n "$PKG_CONFIG"; then 12948 if test -n "$PKG_CONFIG" && \ 12949 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 12950 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 12951 ac_status=$? 12952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12953 (exit $ac_status); }; then 12954 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 12955else 12956 pkg_failed=yes 12957fi 12958 else 12959 pkg_failed=untried 12960fi 12961 12962 12963 12964if test $pkg_failed = yes; then 12965 12966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12967 _pkg_short_errors_supported=yes 12968else 12969 _pkg_short_errors_supported=no 12970fi 12971 if test $_pkg_short_errors_supported = yes; then 12972 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 12973 else 12974 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 12975 fi 12976 # Put the nasty error message in config.log where it belongs 12977 echo "$DRI_PKG_ERRORS" >&5 12978 12979 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 12980 12981$DRI_PKG_ERRORS 12982 12983Consider adjusting the PKG_CONFIG_PATH environment variable if you 12984installed software in a non-standard prefix. 12985 12986Alternatively, you may set the environment variables DRI_CFLAGS 12987and DRI_LIBS to avoid the need to call pkg-config. 12988See the pkg-config man page for more details. 12989" >&5 12990$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 12991 12992$DRI_PKG_ERRORS 12993 12994Consider adjusting the PKG_CONFIG_PATH environment variable if you 12995installed software in a non-standard prefix. 12996 12997Alternatively, you may set the environment variables DRI_CFLAGS 12998and DRI_LIBS to avoid the need to call pkg-config. 12999See the pkg-config man page for more details. 13000" >&2;} 13001 { (exit 1); exit 1; }; } 13002elif test $pkg_failed = untried; then 13003 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 13004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13005{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13006is in your PATH or set the PKG_CONFIG environment variable to the full 13007path to pkg-config. 13008 13009Alternatively, you may set the environment variables DRI_CFLAGS 13010and DRI_LIBS to avoid the need to call pkg-config. 13011See the pkg-config man page for more details. 13012 13013To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13014See \`config.log' for more details." >&5 13015$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13016is in your PATH or set the PKG_CONFIG environment variable to the full 13017path to pkg-config. 13018 13019Alternatively, you may set the environment variables DRI_CFLAGS 13020and DRI_LIBS to avoid the need to call pkg-config. 13021See the pkg-config man page for more details. 13022 13023To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13024See \`config.log' for more details." >&2;} 13025 { (exit 1); exit 1; }; }; } 13026else 13027 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 13028 DRI_LIBS=$pkg_cv_DRI_LIBS 13029 { $as_echo "$as_me:$LINENO: result: yes" >&5 13030$as_echo "yes" >&6; } 13031 : 13032fi 13033 13034cat >>confdefs.h <<\_ACEOF 13035#define XF86DRI 1 13036_ACEOF 13037 13038 13039cat >>confdefs.h <<\_ACEOF 13040#define XF86DRI_DEVEL 1 13041_ACEOF 13042 13043fi 13044 13045if test "x$XSERVER_LIBPCIACCESS" = xyes; then 13046 13047pkg_failed=no 13048{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 13049$as_echo_n "checking for PCIACCESS... " >&6; } 13050 13051if test -n "$PCIACCESS_CFLAGS"; then 13052 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 13053 elif test -n "$PKG_CONFIG"; then 13054 if test -n "$PKG_CONFIG" && \ 13055 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 13056 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 13057 ac_status=$? 13058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13059 (exit $ac_status); }; then 13060 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 13061else 13062 pkg_failed=yes 13063fi 13064 else 13065 pkg_failed=untried 13066fi 13067if test -n "$PCIACCESS_LIBS"; then 13068 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 13069 elif test -n "$PKG_CONFIG"; then 13070 if test -n "$PKG_CONFIG" && \ 13071 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 13072 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 13073 ac_status=$? 13074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13075 (exit $ac_status); }; then 13076 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 13077else 13078 pkg_failed=yes 13079fi 13080 else 13081 pkg_failed=untried 13082fi 13083 13084 13085 13086if test $pkg_failed = yes; then 13087 13088if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13089 _pkg_short_errors_supported=yes 13090else 13091 _pkg_short_errors_supported=no 13092fi 13093 if test $_pkg_short_errors_supported = yes; then 13094 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 13095 else 13096 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 13097 fi 13098 # Put the nasty error message in config.log where it belongs 13099 echo "$PCIACCESS_PKG_ERRORS" >&5 13100 13101 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 13102 13103$PCIACCESS_PKG_ERRORS 13104 13105Consider adjusting the PKG_CONFIG_PATH environment variable if you 13106installed software in a non-standard prefix. 13107 13108Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13109and PCIACCESS_LIBS to avoid the need to call pkg-config. 13110See the pkg-config man page for more details. 13111" >&5 13112$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 13113 13114$PCIACCESS_PKG_ERRORS 13115 13116Consider adjusting the PKG_CONFIG_PATH environment variable if you 13117installed software in a non-standard prefix. 13118 13119Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13120and PCIACCESS_LIBS to avoid the need to call pkg-config. 13121See the pkg-config man page for more details. 13122" >&2;} 13123 { (exit 1); exit 1; }; } 13124elif test $pkg_failed = untried; then 13125 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 13126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13127{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13128is in your PATH or set the PKG_CONFIG environment variable to the full 13129path to pkg-config. 13130 13131Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13132and PCIACCESS_LIBS to avoid the need to call pkg-config. 13133See the pkg-config man page for more details. 13134 13135To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13136See \`config.log' for more details." >&5 13137$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13138is in your PATH or set the PKG_CONFIG environment variable to the full 13139path to pkg-config. 13140 13141Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13142and PCIACCESS_LIBS to avoid the need to call pkg-config. 13143See the pkg-config man page for more details. 13144 13145To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13146See \`config.log' for more details." >&2;} 13147 { (exit 1); exit 1; }; }; } 13148else 13149 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 13150 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 13151 { $as_echo "$as_me:$LINENO: result: yes" >&5 13152$as_echo "yes" >&6; } 13153 : 13154fi 13155 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 13156fi 13157 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 13158 XSERVER_LIBPCIACCESS_TRUE= 13159 XSERVER_LIBPCIACCESS_FALSE='#' 13160else 13161 XSERVER_LIBPCIACCESS_TRUE='#' 13162 XSERVER_LIBPCIACCESS_FALSE= 13163fi 13164 13165 13166 13167 13168 13169 13170 13171DRIVER_NAME=glint 13172 13173 13174 13175 13176 13177if test x$APP_MAN_SUFFIX = x ; then 13178 APP_MAN_SUFFIX=1 13179fi 13180if test x$APP_MAN_DIR = x ; then 13181 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 13182fi 13183 13184if test x$LIB_MAN_SUFFIX = x ; then 13185 LIB_MAN_SUFFIX=3 13186fi 13187if test x$LIB_MAN_DIR = x ; then 13188 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 13189fi 13190 13191if test x$FILE_MAN_SUFFIX = x ; then 13192 case $host_os in 13193 solaris*) FILE_MAN_SUFFIX=4 ;; 13194 *) FILE_MAN_SUFFIX=5 ;; 13195 esac 13196fi 13197if test x$FILE_MAN_DIR = x ; then 13198 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 13199fi 13200 13201if test x$MISC_MAN_SUFFIX = x ; then 13202 case $host_os in 13203 solaris*) MISC_MAN_SUFFIX=5 ;; 13204 *) MISC_MAN_SUFFIX=7 ;; 13205 esac 13206fi 13207if test x$MISC_MAN_DIR = x ; then 13208 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 13209fi 13210 13211if test x$DRIVER_MAN_SUFFIX = x ; then 13212 case $host_os in 13213 solaris*) DRIVER_MAN_SUFFIX=7 ;; 13214 *) DRIVER_MAN_SUFFIX=4 ;; 13215 esac 13216fi 13217if test x$DRIVER_MAN_DIR = x ; then 13218 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 13219fi 13220 13221if test x$ADMIN_MAN_SUFFIX = x ; then 13222 case $host_os in 13223 solaris*) ADMIN_MAN_SUFFIX=1m ;; 13224 *) ADMIN_MAN_SUFFIX=8 ;; 13225 esac 13226fi 13227if test x$ADMIN_MAN_DIR = x ; then 13228 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 13229fi 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247# Check whether --with-release-version was given. 13248if test "${with_release_version+set}" = set; then 13249 withval=$with_release_version; RELEASE_VERSION="$withval" 13250else 13251 RELEASE_VERSION="" 13252fi 13253 13254 if test "x$RELEASE_VERSION" != "x"; then 13255 PACKAGE="$PACKAGE-$RELEASE_VERSION" 13256 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 13257 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 13258$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 13259 fi 13260 13261cat >>confdefs.h <<_ACEOF 13262#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 13263_ACEOF 13264 13265 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 13266 if test "x$PVM" = "x"; then 13267 PVM="0" 13268 fi 13269 13270cat >>confdefs.h <<_ACEOF 13271#define PACKAGE_VERSION_MINOR $PVM 13272_ACEOF 13273 13274 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 13275 if test "x$PVP" = "x"; then 13276 PVP="0" 13277 fi 13278 13279cat >>confdefs.h <<_ACEOF 13280#define PACKAGE_VERSION_PATCHLEVEL $PVP 13281_ACEOF 13282 13283 13284 13285ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 13286 13287cat >confcache <<\_ACEOF 13288# This file is a shell script that caches the results of configure 13289# tests run on this system so they can be shared between configure 13290# scripts and configure runs, see configure's option --config-cache. 13291# It is not useful on other systems. If it contains results you don't 13292# want to keep, you may remove or edit it. 13293# 13294# config.status only pays attention to the cache file if you give it 13295# the --recheck option to rerun configure. 13296# 13297# `ac_cv_env_foo' variables (set or unset) will be overridden when 13298# loading this file, other *unset* `ac_cv_foo' will be assigned the 13299# following values. 13300 13301_ACEOF 13302 13303# The following way of writing the cache mishandles newlines in values, 13304# but we know of no workaround that is simple, portable, and efficient. 13305# So, we kill variables containing newlines. 13306# Ultrix sh set writes to stderr and can't be redirected directly, 13307# and sets the high bit in the cache file unless we assign to the vars. 13308( 13309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13310 eval ac_val=\$$ac_var 13311 case $ac_val in #( 13312 *${as_nl}*) 13313 case $ac_var in #( 13314 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13315$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13316 esac 13317 case $ac_var in #( 13318 _ | IFS | as_nl) ;; #( 13319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13320 *) $as_unset $ac_var ;; 13321 esac ;; 13322 esac 13323 done 13324 13325 (set) 2>&1 | 13326 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13327 *${as_nl}ac_space=\ *) 13328 # `set' does not quote correctly, so add quotes (double-quote 13329 # substitution turns \\\\ into \\, and sed turns \\ into \). 13330 sed -n \ 13331 "s/'/'\\\\''/g; 13332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13333 ;; #( 13334 *) 13335 # `set' quotes correctly as required by POSIX, so do not add quotes. 13336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13337 ;; 13338 esac | 13339 sort 13340) | 13341 sed ' 13342 /^ac_cv_env_/b end 13343 t clear 13344 :clear 13345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13346 t end 13347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13348 :end' >>confcache 13349if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13350 if test -w "$cache_file"; then 13351 test "x$cache_file" != "x/dev/null" && 13352 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13353$as_echo "$as_me: updating cache $cache_file" >&6;} 13354 cat confcache >$cache_file 13355 else 13356 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13357$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13358 fi 13359fi 13360rm -f confcache 13361 13362test "x$prefix" = xNONE && prefix=$ac_default_prefix 13363# Let make expand exec_prefix. 13364test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13365 13366DEFS=-DHAVE_CONFIG_H 13367 13368ac_libobjs= 13369ac_ltlibobjs= 13370for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13371 # 1. Remove the extension, and $U if already installed. 13372 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13373 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13375 # will be set to the directory where LIBOBJS objects are built. 13376 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13377 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13378done 13379LIBOBJS=$ac_libobjs 13380 13381LTLIBOBJS=$ac_ltlibobjs 13382 13383 13384if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13385 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13386Usually this means the macro was only invoked conditionally." >&5 13387$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13388Usually this means the macro was only invoked conditionally." >&2;} 13389 { (exit 1); exit 1; }; } 13390fi 13391if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13392 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13393Usually this means the macro was only invoked conditionally." >&5 13394$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13395Usually this means the macro was only invoked conditionally." >&2;} 13396 { (exit 1); exit 1; }; } 13397fi 13398if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13399 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13400Usually this means the macro was only invoked conditionally." >&5 13401$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13402Usually this means the macro was only invoked conditionally." >&2;} 13403 { (exit 1); exit 1; }; } 13404fi 13405if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13406 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13407Usually this means the macro was only invoked conditionally." >&5 13408$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13409Usually this means the macro was only invoked conditionally." >&2;} 13410 { (exit 1); exit 1; }; } 13411fi 13412if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 13413 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 13414Usually this means the macro was only invoked conditionally." >&5 13415$as_echo "$as_me: error: conditional \"DRI\" was never defined. 13416Usually this means the macro was only invoked conditionally." >&2;} 13417 { (exit 1); exit 1; }; } 13418fi 13419if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 13420 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13421Usually this means the macro was only invoked conditionally." >&5 13422$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13423Usually this means the macro was only invoked conditionally." >&2;} 13424 { (exit 1); exit 1; }; } 13425fi 13426 13427: ${CONFIG_STATUS=./config.status} 13428ac_write_fail=0 13429ac_clean_files_save=$ac_clean_files 13430ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13431{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13432$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13433cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13434#! $SHELL 13435# Generated by $as_me. 13436# Run this file to recreate the current configuration. 13437# Compiler output produced by configure, useful for debugging 13438# configure, is in config.log if it exists. 13439 13440debug=false 13441ac_cs_recheck=false 13442ac_cs_silent=false 13443SHELL=\${CONFIG_SHELL-$SHELL} 13444_ACEOF 13445 13446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13447## --------------------- ## 13448## M4sh Initialization. ## 13449## --------------------- ## 13450 13451# Be more Bourne compatible 13452DUALCASE=1; export DUALCASE # for MKS sh 13453if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13454 emulate sh 13455 NULLCMD=: 13456 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13457 # is contrary to our usage. Disable this feature. 13458 alias -g '${1+"$@"}'='"$@"' 13459 setopt NO_GLOB_SUBST 13460else 13461 case `(set -o) 2>/dev/null` in 13462 *posix*) set -o posix ;; 13463esac 13464 13465fi 13466 13467 13468 13469 13470# PATH needs CR 13471# Avoid depending upon Character Ranges. 13472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13475as_cr_digits='0123456789' 13476as_cr_alnum=$as_cr_Letters$as_cr_digits 13477 13478as_nl=' 13479' 13480export as_nl 13481# Printing a long string crashes Solaris 7 /usr/bin/printf. 13482as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13483as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13484as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13485if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13486 as_echo='printf %s\n' 13487 as_echo_n='printf %s' 13488else 13489 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13490 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13491 as_echo_n='/usr/ucb/echo -n' 13492 else 13493 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13494 as_echo_n_body='eval 13495 arg=$1; 13496 case $arg in 13497 *"$as_nl"*) 13498 expr "X$arg" : "X\\(.*\\)$as_nl"; 13499 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13500 esac; 13501 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13502 ' 13503 export as_echo_n_body 13504 as_echo_n='sh -c $as_echo_n_body as_echo' 13505 fi 13506 export as_echo_body 13507 as_echo='sh -c $as_echo_body as_echo' 13508fi 13509 13510# The user is always right. 13511if test "${PATH_SEPARATOR+set}" != set; then 13512 PATH_SEPARATOR=: 13513 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13514 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13515 PATH_SEPARATOR=';' 13516 } 13517fi 13518 13519# Support unset when possible. 13520if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13521 as_unset=unset 13522else 13523 as_unset=false 13524fi 13525 13526 13527# IFS 13528# We need space, tab and new line, in precisely that order. Quoting is 13529# there to prevent editors from complaining about space-tab. 13530# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13531# splitting by setting IFS to empty value.) 13532IFS=" "" $as_nl" 13533 13534# Find who we are. Look in the path if we contain no directory separator. 13535case $0 in 13536 *[\\/]* ) as_myself=$0 ;; 13537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13538for as_dir in $PATH 13539do 13540 IFS=$as_save_IFS 13541 test -z "$as_dir" && as_dir=. 13542 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13543done 13544IFS=$as_save_IFS 13545 13546 ;; 13547esac 13548# We did not find ourselves, most probably we were run as `sh COMMAND' 13549# in which case we are not to be found in the path. 13550if test "x$as_myself" = x; then 13551 as_myself=$0 13552fi 13553if test ! -f "$as_myself"; then 13554 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13555 { (exit 1); exit 1; } 13556fi 13557 13558# Work around bugs in pre-3.0 UWIN ksh. 13559for as_var in ENV MAIL MAILPATH 13560do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13561done 13562PS1='$ ' 13563PS2='> ' 13564PS4='+ ' 13565 13566# NLS nuisances. 13567LC_ALL=C 13568export LC_ALL 13569LANGUAGE=C 13570export LANGUAGE 13571 13572# Required to use basename. 13573if expr a : '\(a\)' >/dev/null 2>&1 && 13574 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13575 as_expr=expr 13576else 13577 as_expr=false 13578fi 13579 13580if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13581 as_basename=basename 13582else 13583 as_basename=false 13584fi 13585 13586 13587# Name of the executable. 13588as_me=`$as_basename -- "$0" || 13589$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13590 X"$0" : 'X\(//\)$' \| \ 13591 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13592$as_echo X/"$0" | 13593 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13594 s//\1/ 13595 q 13596 } 13597 /^X\/\(\/\/\)$/{ 13598 s//\1/ 13599 q 13600 } 13601 /^X\/\(\/\).*/{ 13602 s//\1/ 13603 q 13604 } 13605 s/.*/./; q'` 13606 13607# CDPATH. 13608$as_unset CDPATH 13609 13610 13611 13612 as_lineno_1=$LINENO 13613 as_lineno_2=$LINENO 13614 test "x$as_lineno_1" != "x$as_lineno_2" && 13615 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13616 13617 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13618 # uniformly replaced by the line number. The first 'sed' inserts a 13619 # line-number line after each line using $LINENO; the second 'sed' 13620 # does the real work. The second script uses 'N' to pair each 13621 # line-number line with the line containing $LINENO, and appends 13622 # trailing '-' during substitution so that $LINENO is not a special 13623 # case at line end. 13624 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13625 # scripts with optimization help from Paolo Bonzini. Blame Lee 13626 # E. McMahon (1931-1989) for sed's syntax. :-) 13627 sed -n ' 13628 p 13629 /[$]LINENO/= 13630 ' <$as_myself | 13631 sed ' 13632 s/[$]LINENO.*/&-/ 13633 t lineno 13634 b 13635 :lineno 13636 N 13637 :loop 13638 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13639 t loop 13640 s/-\n.*// 13641 ' >$as_me.lineno && 13642 chmod +x "$as_me.lineno" || 13643 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13644 { (exit 1); exit 1; }; } 13645 13646 # Don't try to exec as it changes $[0], causing all sort of problems 13647 # (the dirname of $[0] is not the place where we might find the 13648 # original and so on. Autoconf is especially sensitive to this). 13649 . "./$as_me.lineno" 13650 # Exit status is that of the last command. 13651 exit 13652} 13653 13654 13655if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13656 as_dirname=dirname 13657else 13658 as_dirname=false 13659fi 13660 13661ECHO_C= ECHO_N= ECHO_T= 13662case `echo -n x` in 13663-n*) 13664 case `echo 'x\c'` in 13665 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13666 *) ECHO_C='\c';; 13667 esac;; 13668*) 13669 ECHO_N='-n';; 13670esac 13671if expr a : '\(a\)' >/dev/null 2>&1 && 13672 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13673 as_expr=expr 13674else 13675 as_expr=false 13676fi 13677 13678rm -f conf$$ conf$$.exe conf$$.file 13679if test -d conf$$.dir; then 13680 rm -f conf$$.dir/conf$$.file 13681else 13682 rm -f conf$$.dir 13683 mkdir conf$$.dir 2>/dev/null 13684fi 13685if (echo >conf$$.file) 2>/dev/null; then 13686 if ln -s conf$$.file conf$$ 2>/dev/null; then 13687 as_ln_s='ln -s' 13688 # ... but there are two gotchas: 13689 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13690 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13691 # In both cases, we have to default to `cp -p'. 13692 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13693 as_ln_s='cp -p' 13694 elif ln conf$$.file conf$$ 2>/dev/null; then 13695 as_ln_s=ln 13696 else 13697 as_ln_s='cp -p' 13698 fi 13699else 13700 as_ln_s='cp -p' 13701fi 13702rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13703rmdir conf$$.dir 2>/dev/null 13704 13705if mkdir -p . 2>/dev/null; then 13706 as_mkdir_p=: 13707else 13708 test -d ./-p && rmdir ./-p 13709 as_mkdir_p=false 13710fi 13711 13712if test -x / >/dev/null 2>&1; then 13713 as_test_x='test -x' 13714else 13715 if ls -dL / >/dev/null 2>&1; then 13716 as_ls_L_option=L 13717 else 13718 as_ls_L_option= 13719 fi 13720 as_test_x=' 13721 eval sh -c '\'' 13722 if test -d "$1"; then 13723 test -d "$1/."; 13724 else 13725 case $1 in 13726 -*)set "./$1";; 13727 esac; 13728 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13729 ???[sx]*):;;*)false;;esac;fi 13730 '\'' sh 13731 ' 13732fi 13733as_executable_p=$as_test_x 13734 13735# Sed expression to map a string onto a valid CPP name. 13736as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13737 13738# Sed expression to map a string onto a valid variable name. 13739as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13740 13741 13742exec 6>&1 13743 13744# Save the log message, to keep $[0] and so on meaningful, and to 13745# report actual input values of CONFIG_FILES etc. instead of their 13746# values after options handling. 13747ac_log=" 13748This file was extended by xf86-video-glint $as_me 1.2.3, which was 13749generated by GNU Autoconf 2.63. Invocation command line was 13750 13751 CONFIG_FILES = $CONFIG_FILES 13752 CONFIG_HEADERS = $CONFIG_HEADERS 13753 CONFIG_LINKS = $CONFIG_LINKS 13754 CONFIG_COMMANDS = $CONFIG_COMMANDS 13755 $ $0 $@ 13756 13757on `(hostname || uname -n) 2>/dev/null | sed 1q` 13758" 13759 13760_ACEOF 13761 13762case $ac_config_files in *" 13763"*) set x $ac_config_files; shift; ac_config_files=$*;; 13764esac 13765 13766case $ac_config_headers in *" 13767"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13768esac 13769 13770 13771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13772# Files that config.status was made for. 13773config_files="$ac_config_files" 13774config_headers="$ac_config_headers" 13775config_commands="$ac_config_commands" 13776 13777_ACEOF 13778 13779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13780ac_cs_usage="\ 13781\`$as_me' instantiates files from templates according to the 13782current configuration. 13783 13784Usage: $0 [OPTION]... [FILE]... 13785 13786 -h, --help print this help, then exit 13787 -V, --version print version number and configuration settings, then exit 13788 -q, --quiet, --silent 13789 do not print progress messages 13790 -d, --debug don't remove temporary files 13791 --recheck update $as_me by reconfiguring in the same conditions 13792 --file=FILE[:TEMPLATE] 13793 instantiate the configuration file FILE 13794 --header=FILE[:TEMPLATE] 13795 instantiate the configuration header FILE 13796 13797Configuration files: 13798$config_files 13799 13800Configuration headers: 13801$config_headers 13802 13803Configuration commands: 13804$config_commands 13805 13806Report bugs to <bug-autoconf@gnu.org>." 13807 13808_ACEOF 13809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13810ac_cs_version="\\ 13811xf86-video-glint config.status 1.2.3 13812configured by $0, generated by GNU Autoconf 2.63, 13813 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13814 13815Copyright (C) 2008 Free Software Foundation, Inc. 13816This config.status script is free software; the Free Software Foundation 13817gives unlimited permission to copy, distribute and modify it." 13818 13819ac_pwd='$ac_pwd' 13820srcdir='$srcdir' 13821INSTALL='$INSTALL' 13822MKDIR_P='$MKDIR_P' 13823AWK='$AWK' 13824test -n "\$AWK" || AWK=awk 13825_ACEOF 13826 13827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13828# The default lists apply if the user does not specify any file. 13829ac_need_defaults=: 13830while test $# != 0 13831do 13832 case $1 in 13833 --*=*) 13834 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13835 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13836 ac_shift=: 13837 ;; 13838 *) 13839 ac_option=$1 13840 ac_optarg=$2 13841 ac_shift=shift 13842 ;; 13843 esac 13844 13845 case $ac_option in 13846 # Handling of the options. 13847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13848 ac_cs_recheck=: ;; 13849 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13850 $as_echo "$ac_cs_version"; exit ;; 13851 --debug | --debu | --deb | --de | --d | -d ) 13852 debug=: ;; 13853 --file | --fil | --fi | --f ) 13854 $ac_shift 13855 case $ac_optarg in 13856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13857 esac 13858 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13859 ac_need_defaults=false;; 13860 --header | --heade | --head | --hea ) 13861 $ac_shift 13862 case $ac_optarg in 13863 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13864 esac 13865 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13866 ac_need_defaults=false;; 13867 --he | --h) 13868 # Conflict between --help and --header 13869 { $as_echo "$as_me: error: ambiguous option: $1 13870Try \`$0 --help' for more information." >&2 13871 { (exit 1); exit 1; }; };; 13872 --help | --hel | -h ) 13873 $as_echo "$ac_cs_usage"; exit ;; 13874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13875 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13876 ac_cs_silent=: ;; 13877 13878 # This is an error. 13879 -*) { $as_echo "$as_me: error: unrecognized option: $1 13880Try \`$0 --help' for more information." >&2 13881 { (exit 1); exit 1; }; } ;; 13882 13883 *) ac_config_targets="$ac_config_targets $1" 13884 ac_need_defaults=false ;; 13885 13886 esac 13887 shift 13888done 13889 13890ac_configure_extra_args= 13891 13892if $ac_cs_silent; then 13893 exec 6>/dev/null 13894 ac_configure_extra_args="$ac_configure_extra_args --silent" 13895fi 13896 13897_ACEOF 13898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13899if \$ac_cs_recheck; then 13900 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13901 shift 13902 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13903 CONFIG_SHELL='$SHELL' 13904 export CONFIG_SHELL 13905 exec "\$@" 13906fi 13907 13908_ACEOF 13909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13910exec 5>>config.log 13911{ 13912 echo 13913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13914## Running $as_me. ## 13915_ASBOX 13916 $as_echo "$ac_log" 13917} >&5 13918 13919_ACEOF 13920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13921# 13922# INIT-COMMANDS 13923# 13924AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13925 13926 13927# The HP-UX ksh and POSIX shell print the target directory to stdout 13928# if CDPATH is set. 13929(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13930 13931sed_quote_subst='$sed_quote_subst' 13932double_quote_subst='$double_quote_subst' 13933delay_variable_subst='$delay_variable_subst' 13934enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13935macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13936macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13937enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13938pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13939enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13940host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13941host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13942host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13943build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13944build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13945build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13946SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13947Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13948GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13949EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13950FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13951LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13952NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13953LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13954max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13955ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13956exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13957lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13958lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13959lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13960reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13961reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13962OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13963deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13964file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13965AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13966AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13967STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13968RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13969old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13970old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13971old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13972CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13973CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13974compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13975GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13976lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13977lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13978lt_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"`' 13979lt_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"`' 13980objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13981SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13982ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13983MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13984lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13985lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13986lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13987lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13988lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13989need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13990DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13991NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13992LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13993OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13994OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13995libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13996shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13997extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13998archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13999enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14000export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14001whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14002compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14003old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14004old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14005archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14006archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14007module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14008module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14009with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14010allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14011no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14012hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14013hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14014hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14015hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14016hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14017hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14018hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14019hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14020inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14021link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14022fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14023always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14024export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14025exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14026include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14027prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14028file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14029variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14030need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14031need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14032version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14033runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14034shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14035shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14036libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14037library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14038soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14039postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14040postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14041finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14042finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14043hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14044sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14045sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14046hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14047enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14048enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14049enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14050old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14051striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14052 14053LTCC='$LTCC' 14054LTCFLAGS='$LTCFLAGS' 14055compiler='$compiler_DEFAULT' 14056 14057# Quote evaled strings. 14058for var in SED \ 14059GREP \ 14060EGREP \ 14061FGREP \ 14062LD \ 14063NM \ 14064LN_S \ 14065lt_SP2NL \ 14066lt_NL2SP \ 14067reload_flag \ 14068OBJDUMP \ 14069deplibs_check_method \ 14070file_magic_cmd \ 14071AR \ 14072AR_FLAGS \ 14073STRIP \ 14074RANLIB \ 14075CC \ 14076CFLAGS \ 14077compiler \ 14078lt_cv_sys_global_symbol_pipe \ 14079lt_cv_sys_global_symbol_to_cdecl \ 14080lt_cv_sys_global_symbol_to_c_name_address \ 14081lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14082SHELL \ 14083ECHO \ 14084lt_prog_compiler_no_builtin_flag \ 14085lt_prog_compiler_wl \ 14086lt_prog_compiler_pic \ 14087lt_prog_compiler_static \ 14088lt_cv_prog_compiler_c_o \ 14089need_locks \ 14090DSYMUTIL \ 14091NMEDIT \ 14092LIPO \ 14093OTOOL \ 14094OTOOL64 \ 14095shrext_cmds \ 14096export_dynamic_flag_spec \ 14097whole_archive_flag_spec \ 14098compiler_needs_object \ 14099with_gnu_ld \ 14100allow_undefined_flag \ 14101no_undefined_flag \ 14102hardcode_libdir_flag_spec \ 14103hardcode_libdir_flag_spec_ld \ 14104hardcode_libdir_separator \ 14105fix_srcfile_path \ 14106exclude_expsyms \ 14107include_expsyms \ 14108file_list_spec \ 14109variables_saved_for_relink \ 14110libname_spec \ 14111library_names_spec \ 14112soname_spec \ 14113finish_eval \ 14114old_striplib \ 14115striplib; do 14116 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14117 *[\\\\\\\`\\"\\\$]*) 14118 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14119 ;; 14120 *) 14121 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14122 ;; 14123 esac 14124done 14125 14126# Double-quote double-evaled strings. 14127for var in reload_cmds \ 14128old_postinstall_cmds \ 14129old_postuninstall_cmds \ 14130old_archive_cmds \ 14131extract_expsyms_cmds \ 14132old_archive_from_new_cmds \ 14133old_archive_from_expsyms_cmds \ 14134archive_cmds \ 14135archive_expsym_cmds \ 14136module_cmds \ 14137module_expsym_cmds \ 14138export_symbols_cmds \ 14139prelink_cmds \ 14140postinstall_cmds \ 14141postuninstall_cmds \ 14142finish_cmds \ 14143sys_lib_search_path_spec \ 14144sys_lib_dlsearch_path_spec; do 14145 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14146 *[\\\\\\\`\\"\\\$]*) 14147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14148 ;; 14149 *) 14150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14151 ;; 14152 esac 14153done 14154 14155# Fix-up fallback echo if it was mangled by the above quoting rules. 14156case \$lt_ECHO in 14157*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14158 ;; 14159esac 14160 14161ac_aux_dir='$ac_aux_dir' 14162xsi_shell='$xsi_shell' 14163lt_shell_append='$lt_shell_append' 14164 14165# See if we are running on zsh, and set the options which allow our 14166# commands through without removal of \ escapes INIT. 14167if test -n "\${ZSH_VERSION+set}" ; then 14168 setopt NO_GLOB_SUBST 14169fi 14170 14171 14172 PACKAGE='$PACKAGE' 14173 VERSION='$VERSION' 14174 TIMESTAMP='$TIMESTAMP' 14175 RM='$RM' 14176 ofile='$ofile' 14177 14178 14179 14180 14181_ACEOF 14182 14183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14184 14185# Handling of arguments. 14186for ac_config_target in $ac_config_targets 14187do 14188 case $ac_config_target in 14189 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14190 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14191 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14193 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14194 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14195 14196 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14197$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14198 { (exit 1); exit 1; }; };; 14199 esac 14200done 14201 14202 14203# If the user did not use the arguments to specify the items to instantiate, 14204# then the envvar interface is used. Set only those that are not. 14205# We use the long form for the default assignment because of an extremely 14206# bizarre bug on SunOS 4.1.3. 14207if $ac_need_defaults; then 14208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14211fi 14212 14213# Have a temporary directory for convenience. Make it in the build tree 14214# simply because there is no reason against having it here, and in addition, 14215# creating and moving files from /tmp can sometimes cause problems. 14216# Hook for its removal unless debugging. 14217# Note that there is a small window in which the directory will not be cleaned: 14218# after its creation but before its name has been assigned to `$tmp'. 14219$debug || 14220{ 14221 tmp= 14222 trap 'exit_status=$? 14223 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14224' 0 14225 trap '{ (exit 1); exit 1; }' 1 2 13 15 14226} 14227# Create a (secure) tmp directory for tmp files. 14228 14229{ 14230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14231 test -n "$tmp" && test -d "$tmp" 14232} || 14233{ 14234 tmp=./conf$$-$RANDOM 14235 (umask 077 && mkdir "$tmp") 14236} || 14237{ 14238 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14239 { (exit 1); exit 1; } 14240} 14241 14242# Set up the scripts for CONFIG_FILES section. 14243# No need to generate them if there are no CONFIG_FILES. 14244# This happens for instance with `./config.status config.h'. 14245if test -n "$CONFIG_FILES"; then 14246 14247 14248ac_cr=' 14249' 14250ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14251if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14252 ac_cs_awk_cr='\\r' 14253else 14254 ac_cs_awk_cr=$ac_cr 14255fi 14256 14257echo 'BEGIN {' >"$tmp/subs1.awk" && 14258_ACEOF 14259 14260 14261{ 14262 echo "cat >conf$$subs.awk <<_ACEOF" && 14263 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14264 echo "_ACEOF" 14265} >conf$$subs.sh || 14266 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14267$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14268 { (exit 1); exit 1; }; } 14269ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14270ac_delim='%!_!# ' 14271for ac_last_try in false false false false false :; do 14272 . ./conf$$subs.sh || 14273 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14274$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14275 { (exit 1); exit 1; }; } 14276 14277 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14278 if test $ac_delim_n = $ac_delim_num; then 14279 break 14280 elif $ac_last_try; then 14281 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14282$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14283 { (exit 1); exit 1; }; } 14284 else 14285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14286 fi 14287done 14288rm -f conf$$subs.sh 14289 14290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14291cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14292_ACEOF 14293sed -n ' 14294h 14295s/^/S["/; s/!.*/"]=/ 14296p 14297g 14298s/^[^!]*!// 14299:repl 14300t repl 14301s/'"$ac_delim"'$// 14302t delim 14303:nl 14304h 14305s/\(.\{148\}\).*/\1/ 14306t more1 14307s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14308p 14309n 14310b repl 14311:more1 14312s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14313p 14314g 14315s/.\{148\}// 14316t nl 14317:delim 14318h 14319s/\(.\{148\}\).*/\1/ 14320t more2 14321s/["\\]/\\&/g; s/^/"/; s/$/"/ 14322p 14323b 14324:more2 14325s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14326p 14327g 14328s/.\{148\}// 14329t delim 14330' <conf$$subs.awk | sed ' 14331/^[^""]/{ 14332 N 14333 s/\n// 14334} 14335' >>$CONFIG_STATUS || ac_write_fail=1 14336rm -f conf$$subs.awk 14337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14338_ACAWK 14339cat >>"\$tmp/subs1.awk" <<_ACAWK && 14340 for (key in S) S_is_set[key] = 1 14341 FS = "" 14342 14343} 14344{ 14345 line = $ 0 14346 nfields = split(line, field, "@") 14347 substed = 0 14348 len = length(field[1]) 14349 for (i = 2; i < nfields; i++) { 14350 key = field[i] 14351 keylen = length(key) 14352 if (S_is_set[key]) { 14353 value = S[key] 14354 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14355 len += length(value) + length(field[++i]) 14356 substed = 1 14357 } else 14358 len += 1 + keylen 14359 } 14360 14361 print line 14362} 14363 14364_ACAWK 14365_ACEOF 14366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14367if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14368 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14369else 14370 cat 14371fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14372 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14373$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14374 { (exit 1); exit 1; }; } 14375_ACEOF 14376 14377# VPATH may cause trouble with some makes, so we remove $(srcdir), 14378# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14379# trailing colons and then remove the whole line if VPATH becomes empty 14380# (actually we leave an empty line to preserve line numbers). 14381if test "x$srcdir" = x.; then 14382 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14383s/:*\$(srcdir):*/:/ 14384s/:*\${srcdir}:*/:/ 14385s/:*@srcdir@:*/:/ 14386s/^\([^=]*=[ ]*\):*/\1/ 14387s/:*$// 14388s/^[^=]*=[ ]*$// 14389}' 14390fi 14391 14392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14393fi # test -n "$CONFIG_FILES" 14394 14395# Set up the scripts for CONFIG_HEADERS section. 14396# No need to generate them if there are no CONFIG_HEADERS. 14397# This happens for instance with `./config.status Makefile'. 14398if test -n "$CONFIG_HEADERS"; then 14399cat >"$tmp/defines.awk" <<\_ACAWK || 14400BEGIN { 14401_ACEOF 14402 14403# Transform confdefs.h into an awk script `defines.awk', embedded as 14404# here-document in config.status, that substitutes the proper values into 14405# config.h.in to produce config.h. 14406 14407# Create a delimiter string that does not exist in confdefs.h, to ease 14408# handling of long lines. 14409ac_delim='%!_!# ' 14410for ac_last_try in false false :; do 14411 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14412 if test -z "$ac_t"; then 14413 break 14414 elif $ac_last_try; then 14415 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14416$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14417 { (exit 1); exit 1; }; } 14418 else 14419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14420 fi 14421done 14422 14423# For the awk script, D is an array of macro values keyed by name, 14424# likewise P contains macro parameters if any. Preserve backslash 14425# newline sequences. 14426 14427ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14428sed -n ' 14429s/.\{148\}/&'"$ac_delim"'/g 14430t rset 14431:rset 14432s/^[ ]*#[ ]*define[ ][ ]*/ / 14433t def 14434d 14435:def 14436s/\\$// 14437t bsnl 14438s/["\\]/\\&/g 14439s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14440D["\1"]=" \3"/p 14441s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14442d 14443:bsnl 14444s/["\\]/\\&/g 14445s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14446D["\1"]=" \3\\\\\\n"\\/p 14447t cont 14448s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14449t cont 14450d 14451:cont 14452n 14453s/.\{148\}/&'"$ac_delim"'/g 14454t clear 14455:clear 14456s/\\$// 14457t bsnlc 14458s/["\\]/\\&/g; s/^/"/; s/$/"/p 14459d 14460:bsnlc 14461s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14462b cont 14463' <confdefs.h | sed ' 14464s/'"$ac_delim"'/"\\\ 14465"/g' >>$CONFIG_STATUS || ac_write_fail=1 14466 14467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14468 for (key in D) D_is_set[key] = 1 14469 FS = "" 14470} 14471/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14472 line = \$ 0 14473 split(line, arg, " ") 14474 if (arg[1] == "#") { 14475 defundef = arg[2] 14476 mac1 = arg[3] 14477 } else { 14478 defundef = substr(arg[1], 2) 14479 mac1 = arg[2] 14480 } 14481 split(mac1, mac2, "(") #) 14482 macro = mac2[1] 14483 prefix = substr(line, 1, index(line, defundef) - 1) 14484 if (D_is_set[macro]) { 14485 # Preserve the white space surrounding the "#". 14486 print prefix "define", macro P[macro] D[macro] 14487 next 14488 } else { 14489 # Replace #undef with comments. This is necessary, for example, 14490 # in the case of _POSIX_SOURCE, which is predefined and required 14491 # on some systems where configure will not decide to define it. 14492 if (defundef == "undef") { 14493 print "/*", prefix defundef, macro, "*/" 14494 next 14495 } 14496 } 14497} 14498{ print } 14499_ACAWK 14500_ACEOF 14501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14502 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14503$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14504 { (exit 1); exit 1; }; } 14505fi # test -n "$CONFIG_HEADERS" 14506 14507 14508eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14509shift 14510for ac_tag 14511do 14512 case $ac_tag in 14513 :[FHLC]) ac_mode=$ac_tag; continue;; 14514 esac 14515 case $ac_mode$ac_tag in 14516 :[FHL]*:*);; 14517 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14518$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14519 { (exit 1); exit 1; }; };; 14520 :[FH]-) ac_tag=-:-;; 14521 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14522 esac 14523 ac_save_IFS=$IFS 14524 IFS=: 14525 set x $ac_tag 14526 IFS=$ac_save_IFS 14527 shift 14528 ac_file=$1 14529 shift 14530 14531 case $ac_mode in 14532 :L) ac_source=$1;; 14533 :[FH]) 14534 ac_file_inputs= 14535 for ac_f 14536 do 14537 case $ac_f in 14538 -) ac_f="$tmp/stdin";; 14539 *) # Look for the file first in the build tree, then in the source tree 14540 # (if the path is not absolute). The absolute path cannot be DOS-style, 14541 # because $ac_f cannot contain `:'. 14542 test -f "$ac_f" || 14543 case $ac_f in 14544 [\\/$]*) false;; 14545 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14546 esac || 14547 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14548$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14549 { (exit 1); exit 1; }; };; 14550 esac 14551 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14552 ac_file_inputs="$ac_file_inputs '$ac_f'" 14553 done 14554 14555 # Let's still pretend it is `configure' which instantiates (i.e., don't 14556 # use $as_me), people would be surprised to read: 14557 # /* config.h. Generated by config.status. */ 14558 configure_input='Generated from '` 14559 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14560 `' by configure.' 14561 if test x"$ac_file" != x-; then 14562 configure_input="$ac_file. $configure_input" 14563 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14564$as_echo "$as_me: creating $ac_file" >&6;} 14565 fi 14566 # Neutralize special characters interpreted by sed in replacement strings. 14567 case $configure_input in #( 14568 *\&* | *\|* | *\\* ) 14569 ac_sed_conf_input=`$as_echo "$configure_input" | 14570 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14571 *) ac_sed_conf_input=$configure_input;; 14572 esac 14573 14574 case $ac_tag in 14575 *:-:* | *:-) cat >"$tmp/stdin" \ 14576 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14577$as_echo "$as_me: error: could not create $ac_file" >&2;} 14578 { (exit 1); exit 1; }; } ;; 14579 esac 14580 ;; 14581 esac 14582 14583 ac_dir=`$as_dirname -- "$ac_file" || 14584$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14585 X"$ac_file" : 'X\(//\)[^/]' \| \ 14586 X"$ac_file" : 'X\(//\)$' \| \ 14587 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14588$as_echo X"$ac_file" | 14589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14590 s//\1/ 14591 q 14592 } 14593 /^X\(\/\/\)[^/].*/{ 14594 s//\1/ 14595 q 14596 } 14597 /^X\(\/\/\)$/{ 14598 s//\1/ 14599 q 14600 } 14601 /^X\(\/\).*/{ 14602 s//\1/ 14603 q 14604 } 14605 s/.*/./; q'` 14606 { as_dir="$ac_dir" 14607 case $as_dir in #( 14608 -*) as_dir=./$as_dir;; 14609 esac 14610 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14611 as_dirs= 14612 while :; do 14613 case $as_dir in #( 14614 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14615 *) as_qdir=$as_dir;; 14616 esac 14617 as_dirs="'$as_qdir' $as_dirs" 14618 as_dir=`$as_dirname -- "$as_dir" || 14619$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14620 X"$as_dir" : 'X\(//\)[^/]' \| \ 14621 X"$as_dir" : 'X\(//\)$' \| \ 14622 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14623$as_echo X"$as_dir" | 14624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14625 s//\1/ 14626 q 14627 } 14628 /^X\(\/\/\)[^/].*/{ 14629 s//\1/ 14630 q 14631 } 14632 /^X\(\/\/\)$/{ 14633 s//\1/ 14634 q 14635 } 14636 /^X\(\/\).*/{ 14637 s//\1/ 14638 q 14639 } 14640 s/.*/./; q'` 14641 test -d "$as_dir" && break 14642 done 14643 test -z "$as_dirs" || eval "mkdir $as_dirs" 14644 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14645$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14646 { (exit 1); exit 1; }; }; } 14647 ac_builddir=. 14648 14649case "$ac_dir" in 14650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14651*) 14652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14653 # A ".." for each directory in $ac_dir_suffix. 14654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14655 case $ac_top_builddir_sub in 14656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14658 esac ;; 14659esac 14660ac_abs_top_builddir=$ac_pwd 14661ac_abs_builddir=$ac_pwd$ac_dir_suffix 14662# for backward compatibility: 14663ac_top_builddir=$ac_top_build_prefix 14664 14665case $srcdir in 14666 .) # We are building in place. 14667 ac_srcdir=. 14668 ac_top_srcdir=$ac_top_builddir_sub 14669 ac_abs_top_srcdir=$ac_pwd ;; 14670 [\\/]* | ?:[\\/]* ) # Absolute name. 14671 ac_srcdir=$srcdir$ac_dir_suffix; 14672 ac_top_srcdir=$srcdir 14673 ac_abs_top_srcdir=$srcdir ;; 14674 *) # Relative name. 14675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14676 ac_top_srcdir=$ac_top_build_prefix$srcdir 14677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14678esac 14679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14680 14681 14682 case $ac_mode in 14683 :F) 14684 # 14685 # CONFIG_FILE 14686 # 14687 14688 case $INSTALL in 14689 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14690 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14691 esac 14692 ac_MKDIR_P=$MKDIR_P 14693 case $MKDIR_P in 14694 [\\/$]* | ?:[\\/]* ) ;; 14695 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14696 esac 14697_ACEOF 14698 14699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14700# If the template does not know about datarootdir, expand it. 14701# FIXME: This hack should be removed a few years after 2.60. 14702ac_datarootdir_hack=; ac_datarootdir_seen= 14703 14704ac_sed_dataroot=' 14705/datarootdir/ { 14706 p 14707 q 14708} 14709/@datadir@/p 14710/@docdir@/p 14711/@infodir@/p 14712/@localedir@/p 14713/@mandir@/p 14714' 14715case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14716*datarootdir*) ac_datarootdir_seen=yes;; 14717*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14718 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14719$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14720_ACEOF 14721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14722 ac_datarootdir_hack=' 14723 s&@datadir@&$datadir&g 14724 s&@docdir@&$docdir&g 14725 s&@infodir@&$infodir&g 14726 s&@localedir@&$localedir&g 14727 s&@mandir@&$mandir&g 14728 s&\\\${datarootdir}&$datarootdir&g' ;; 14729esac 14730_ACEOF 14731 14732# Neutralize VPATH when `$srcdir' = `.'. 14733# Shell code in configure.ac might set extrasub. 14734# FIXME: do we really want to maintain this feature? 14735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14736ac_sed_extra="$ac_vpsub 14737$extrasub 14738_ACEOF 14739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14740:t 14741/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14742s|@configure_input@|$ac_sed_conf_input|;t t 14743s&@top_builddir@&$ac_top_builddir_sub&;t t 14744s&@top_build_prefix@&$ac_top_build_prefix&;t t 14745s&@srcdir@&$ac_srcdir&;t t 14746s&@abs_srcdir@&$ac_abs_srcdir&;t t 14747s&@top_srcdir@&$ac_top_srcdir&;t t 14748s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14749s&@builddir@&$ac_builddir&;t t 14750s&@abs_builddir@&$ac_abs_builddir&;t t 14751s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14752s&@INSTALL@&$ac_INSTALL&;t t 14753s&@MKDIR_P@&$ac_MKDIR_P&;t t 14754$ac_datarootdir_hack 14755" 14756eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14757 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14758$as_echo "$as_me: error: could not create $ac_file" >&2;} 14759 { (exit 1); exit 1; }; } 14760 14761test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14762 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14764 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14765which seems to be undefined. Please make sure it is defined." >&5 14766$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14767which seems to be undefined. Please make sure it is defined." >&2;} 14768 14769 rm -f "$tmp/stdin" 14770 case $ac_file in 14771 -) cat "$tmp/out" && rm -f "$tmp/out";; 14772 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14773 esac \ 14774 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14775$as_echo "$as_me: error: could not create $ac_file" >&2;} 14776 { (exit 1); exit 1; }; } 14777 ;; 14778 :H) 14779 # 14780 # CONFIG_HEADER 14781 # 14782 if test x"$ac_file" != x-; then 14783 { 14784 $as_echo "/* $configure_input */" \ 14785 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14786 } >"$tmp/config.h" \ 14787 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14788$as_echo "$as_me: error: could not create $ac_file" >&2;} 14789 { (exit 1); exit 1; }; } 14790 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14791 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14792$as_echo "$as_me: $ac_file is unchanged" >&6;} 14793 else 14794 rm -f "$ac_file" 14795 mv "$tmp/config.h" "$ac_file" \ 14796 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14797$as_echo "$as_me: error: could not create $ac_file" >&2;} 14798 { (exit 1); exit 1; }; } 14799 fi 14800 else 14801 $as_echo "/* $configure_input */" \ 14802 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14803 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14804$as_echo "$as_me: error: could not create -" >&2;} 14805 { (exit 1); exit 1; }; } 14806 fi 14807# Compute "$ac_file"'s index in $config_headers. 14808_am_arg="$ac_file" 14809_am_stamp_count=1 14810for _am_header in $config_headers :; do 14811 case $_am_header in 14812 $_am_arg | $_am_arg:* ) 14813 break ;; 14814 * ) 14815 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14816 esac 14817done 14818echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14819$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14820 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14821 X"$_am_arg" : 'X\(//\)$' \| \ 14822 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14823$as_echo X"$_am_arg" | 14824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14825 s//\1/ 14826 q 14827 } 14828 /^X\(\/\/\)[^/].*/{ 14829 s//\1/ 14830 q 14831 } 14832 /^X\(\/\/\)$/{ 14833 s//\1/ 14834 q 14835 } 14836 /^X\(\/\).*/{ 14837 s//\1/ 14838 q 14839 } 14840 s/.*/./; q'`/stamp-h$_am_stamp_count 14841 ;; 14842 14843 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14844$as_echo "$as_me: executing $ac_file commands" >&6;} 14845 ;; 14846 esac 14847 14848 14849 case $ac_file$ac_mode in 14850 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 14851# are listed without --file. Let's play safe and only enable the eval 14852# if we detect the quoting. 14853case $CONFIG_FILES in 14854*\'*) eval set x "$CONFIG_FILES" ;; 14855*) set x $CONFIG_FILES ;; 14856esac 14857shift 14858for mf 14859do 14860 # Strip MF so we end up with the name of the file. 14861 mf=`echo "$mf" | sed -e 's/:.*$//'` 14862 # Check whether this is an Automake generated Makefile or not. 14863 # We used to match only the files named `Makefile.in', but 14864 # some people rename them; so instead we look at the file content. 14865 # Grep'ing the first line is not enough: some people post-process 14866 # each Makefile.in and add a new line on top of each file to say so. 14867 # Grep'ing the whole file is not good either: AIX grep has a line 14868 # limit of 2048, but all sed's we know have understand at least 4000. 14869 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14870 dirpart=`$as_dirname -- "$mf" || 14871$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14872 X"$mf" : 'X\(//\)[^/]' \| \ 14873 X"$mf" : 'X\(//\)$' \| \ 14874 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14875$as_echo X"$mf" | 14876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14877 s//\1/ 14878 q 14879 } 14880 /^X\(\/\/\)[^/].*/{ 14881 s//\1/ 14882 q 14883 } 14884 /^X\(\/\/\)$/{ 14885 s//\1/ 14886 q 14887 } 14888 /^X\(\/\).*/{ 14889 s//\1/ 14890 q 14891 } 14892 s/.*/./; q'` 14893 else 14894 continue 14895 fi 14896 # Extract the definition of DEPDIR, am__include, and am__quote 14897 # from the Makefile without running `make'. 14898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14899 test -z "$DEPDIR" && continue 14900 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14901 test -z "am__include" && continue 14902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14903 # When using ansi2knr, U may be empty or an underscore; expand it 14904 U=`sed -n 's/^U = //p' < "$mf"` 14905 # Find all dependency output files, they are included files with 14906 # $(DEPDIR) in their names. We invoke sed twice because it is the 14907 # simplest approach to changing $(DEPDIR) to its actual value in the 14908 # expansion. 14909 for file in `sed -n " 14910 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14911 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14912 # Make sure the directory exists. 14913 test -f "$dirpart/$file" && continue 14914 fdir=`$as_dirname -- "$file" || 14915$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14916 X"$file" : 'X\(//\)[^/]' \| \ 14917 X"$file" : 'X\(//\)$' \| \ 14918 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14919$as_echo X"$file" | 14920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14921 s//\1/ 14922 q 14923 } 14924 /^X\(\/\/\)[^/].*/{ 14925 s//\1/ 14926 q 14927 } 14928 /^X\(\/\/\)$/{ 14929 s//\1/ 14930 q 14931 } 14932 /^X\(\/\).*/{ 14933 s//\1/ 14934 q 14935 } 14936 s/.*/./; q'` 14937 { as_dir=$dirpart/$fdir 14938 case $as_dir in #( 14939 -*) as_dir=./$as_dir;; 14940 esac 14941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14942 as_dirs= 14943 while :; do 14944 case $as_dir in #( 14945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14946 *) as_qdir=$as_dir;; 14947 esac 14948 as_dirs="'$as_qdir' $as_dirs" 14949 as_dir=`$as_dirname -- "$as_dir" || 14950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14951 X"$as_dir" : 'X\(//\)[^/]' \| \ 14952 X"$as_dir" : 'X\(//\)$' \| \ 14953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14954$as_echo X"$as_dir" | 14955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14956 s//\1/ 14957 q 14958 } 14959 /^X\(\/\/\)[^/].*/{ 14960 s//\1/ 14961 q 14962 } 14963 /^X\(\/\/\)$/{ 14964 s//\1/ 14965 q 14966 } 14967 /^X\(\/\).*/{ 14968 s//\1/ 14969 q 14970 } 14971 s/.*/./; q'` 14972 test -d "$as_dir" && break 14973 done 14974 test -z "$as_dirs" || eval "mkdir $as_dirs" 14975 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14976$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14977 { (exit 1); exit 1; }; }; } 14978 # echo "creating $dirpart/$file" 14979 echo '# dummy' > "$dirpart/$file" 14980 done 14981done 14982 ;; 14983 "libtool":C) 14984 14985 # See if we are running on zsh, and set the options which allow our 14986 # commands through without removal of \ escapes. 14987 if test -n "${ZSH_VERSION+set}" ; then 14988 setopt NO_GLOB_SUBST 14989 fi 14990 14991 cfgfile="${ofile}T" 14992 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14993 $RM "$cfgfile" 14994 14995 cat <<_LT_EOF >> "$cfgfile" 14996#! $SHELL 14997 14998# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14999# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15000# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15001# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15002# 15003# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15004# 2006, 2007, 2008 Free Software Foundation, Inc. 15005# Written by Gordon Matzigkeit, 1996 15006# 15007# This file is part of GNU Libtool. 15008# 15009# GNU Libtool is free software; you can redistribute it and/or 15010# modify it under the terms of the GNU General Public License as 15011# published by the Free Software Foundation; either version 2 of 15012# the License, or (at your option) any later version. 15013# 15014# As a special exception to the GNU General Public License, 15015# if you distribute this file as part of a program or library that 15016# is built using GNU Libtool, you may include this file under the 15017# same distribution terms that you use for the rest of that program. 15018# 15019# GNU Libtool is distributed in the hope that it will be useful, 15020# but WITHOUT ANY WARRANTY; without even the implied warranty of 15021# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15022# GNU General Public License for more details. 15023# 15024# You should have received a copy of the GNU General Public License 15025# along with GNU Libtool; see the file COPYING. If not, a copy 15026# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15027# obtained by writing to the Free Software Foundation, Inc., 15028# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15029 15030 15031# The names of the tagged configurations supported by this script. 15032available_tags="" 15033 15034# ### BEGIN LIBTOOL CONFIG 15035 15036# Whether or not to build static libraries. 15037build_old_libs=$enable_static 15038 15039# Which release of libtool.m4 was used? 15040macro_version=$macro_version 15041macro_revision=$macro_revision 15042 15043# Whether or not to build shared libraries. 15044build_libtool_libs=$enable_shared 15045 15046# What type of objects to build. 15047pic_mode=$pic_mode 15048 15049# Whether or not to optimize for fast installation. 15050fast_install=$enable_fast_install 15051 15052# The host system. 15053host_alias=$host_alias 15054host=$host 15055host_os=$host_os 15056 15057# The build system. 15058build_alias=$build_alias 15059build=$build 15060build_os=$build_os 15061 15062# A sed program that does not truncate output. 15063SED=$lt_SED 15064 15065# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15066Xsed="\$SED -e 1s/^X//" 15067 15068# A grep program that handles long lines. 15069GREP=$lt_GREP 15070 15071# An ERE matcher. 15072EGREP=$lt_EGREP 15073 15074# A literal string matcher. 15075FGREP=$lt_FGREP 15076 15077# A BSD- or MS-compatible name lister. 15078NM=$lt_NM 15079 15080# Whether we need soft or hard links. 15081LN_S=$lt_LN_S 15082 15083# What is the maximum length of a command? 15084max_cmd_len=$max_cmd_len 15085 15086# Object file suffix (normally "o"). 15087objext=$ac_objext 15088 15089# Executable file suffix (normally ""). 15090exeext=$exeext 15091 15092# whether the shell understands "unset". 15093lt_unset=$lt_unset 15094 15095# turn spaces into newlines. 15096SP2NL=$lt_lt_SP2NL 15097 15098# turn newlines into spaces. 15099NL2SP=$lt_lt_NL2SP 15100 15101# How to create reloadable object files. 15102reload_flag=$lt_reload_flag 15103reload_cmds=$lt_reload_cmds 15104 15105# An object symbol dumper. 15106OBJDUMP=$lt_OBJDUMP 15107 15108# Method to check whether dependent libraries are shared objects. 15109deplibs_check_method=$lt_deplibs_check_method 15110 15111# Command to use when deplibs_check_method == "file_magic". 15112file_magic_cmd=$lt_file_magic_cmd 15113 15114# The archiver. 15115AR=$lt_AR 15116AR_FLAGS=$lt_AR_FLAGS 15117 15118# A symbol stripping program. 15119STRIP=$lt_STRIP 15120 15121# Commands used to install an old-style archive. 15122RANLIB=$lt_RANLIB 15123old_postinstall_cmds=$lt_old_postinstall_cmds 15124old_postuninstall_cmds=$lt_old_postuninstall_cmds 15125 15126# A C compiler. 15127LTCC=$lt_CC 15128 15129# LTCC compiler flags. 15130LTCFLAGS=$lt_CFLAGS 15131 15132# Take the output of nm and produce a listing of raw symbols and C names. 15133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15134 15135# Transform the output of nm in a proper C declaration. 15136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15137 15138# Transform the output of nm in a C name address pair. 15139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15140 15141# Transform the output of nm in a C name address pair when lib prefix is needed. 15142global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15143 15144# The name of the directory that contains temporary libtool files. 15145objdir=$objdir 15146 15147# Shell to use when invoking shell scripts. 15148SHELL=$lt_SHELL 15149 15150# An echo program that does not interpret backslashes. 15151ECHO=$lt_ECHO 15152 15153# Used to examine libraries when file_magic_cmd begins with "file". 15154MAGIC_CMD=$MAGIC_CMD 15155 15156# Must we lock files when doing compilation? 15157need_locks=$lt_need_locks 15158 15159# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15160DSYMUTIL=$lt_DSYMUTIL 15161 15162# Tool to change global to local symbols on Mac OS X. 15163NMEDIT=$lt_NMEDIT 15164 15165# Tool to manipulate fat objects and archives on Mac OS X. 15166LIPO=$lt_LIPO 15167 15168# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15169OTOOL=$lt_OTOOL 15170 15171# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15172OTOOL64=$lt_OTOOL64 15173 15174# Old archive suffix (normally "a"). 15175libext=$libext 15176 15177# Shared library suffix (normally ".so"). 15178shrext_cmds=$lt_shrext_cmds 15179 15180# The commands to extract the exported symbol list from a shared archive. 15181extract_expsyms_cmds=$lt_extract_expsyms_cmds 15182 15183# Variables whose values should be saved in libtool wrapper scripts and 15184# restored at link time. 15185variables_saved_for_relink=$lt_variables_saved_for_relink 15186 15187# Do we need the "lib" prefix for modules? 15188need_lib_prefix=$need_lib_prefix 15189 15190# Do we need a version for libraries? 15191need_version=$need_version 15192 15193# Library versioning type. 15194version_type=$version_type 15195 15196# Shared library runtime path variable. 15197runpath_var=$runpath_var 15198 15199# Shared library path variable. 15200shlibpath_var=$shlibpath_var 15201 15202# Is shlibpath searched before the hard-coded library search path? 15203shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15204 15205# Format of library name prefix. 15206libname_spec=$lt_libname_spec 15207 15208# List of archive names. First name is the real one, the rest are links. 15209# The last name is the one that the linker finds with -lNAME 15210library_names_spec=$lt_library_names_spec 15211 15212# The coded name of the library, if different from the real name. 15213soname_spec=$lt_soname_spec 15214 15215# Command to use after installation of a shared archive. 15216postinstall_cmds=$lt_postinstall_cmds 15217 15218# Command to use after uninstallation of a shared archive. 15219postuninstall_cmds=$lt_postuninstall_cmds 15220 15221# Commands used to finish a libtool library installation in a directory. 15222finish_cmds=$lt_finish_cmds 15223 15224# As "finish_cmds", except a single script fragment to be evaled but 15225# not shown. 15226finish_eval=$lt_finish_eval 15227 15228# Whether we should hardcode library paths into libraries. 15229hardcode_into_libs=$hardcode_into_libs 15230 15231# Compile-time system search path for libraries. 15232sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15233 15234# Run-time system search path for libraries. 15235sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15236 15237# Whether dlopen is supported. 15238dlopen_support=$enable_dlopen 15239 15240# Whether dlopen of programs is supported. 15241dlopen_self=$enable_dlopen_self 15242 15243# Whether dlopen of statically linked programs is supported. 15244dlopen_self_static=$enable_dlopen_self_static 15245 15246# Commands to strip libraries. 15247old_striplib=$lt_old_striplib 15248striplib=$lt_striplib 15249 15250 15251# The linker used to build libraries. 15252LD=$lt_LD 15253 15254# Commands used to build an old-style archive. 15255old_archive_cmds=$lt_old_archive_cmds 15256 15257# A language specific compiler. 15258CC=$lt_compiler 15259 15260# Is the compiler the GNU compiler? 15261with_gcc=$GCC 15262 15263# Compiler flag to turn off builtin functions. 15264no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15265 15266# How to pass a linker flag through the compiler. 15267wl=$lt_lt_prog_compiler_wl 15268 15269# Additional compiler flags for building library objects. 15270pic_flag=$lt_lt_prog_compiler_pic 15271 15272# Compiler flag to prevent dynamic linking. 15273link_static_flag=$lt_lt_prog_compiler_static 15274 15275# Does compiler simultaneously support -c and -o options? 15276compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15277 15278# Whether or not to add -lc for building shared libraries. 15279build_libtool_need_lc=$archive_cmds_need_lc 15280 15281# Whether or not to disallow shared libs when runtime libs are static. 15282allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15283 15284# Compiler flag to allow reflexive dlopens. 15285export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15286 15287# Compiler flag to generate shared objects directly from archives. 15288whole_archive_flag_spec=$lt_whole_archive_flag_spec 15289 15290# Whether the compiler copes with passing no objects directly. 15291compiler_needs_object=$lt_compiler_needs_object 15292 15293# Create an old-style archive from a shared archive. 15294old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15295 15296# Create a temporary old-style archive to link instead of a shared archive. 15297old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15298 15299# Commands used to build a shared archive. 15300archive_cmds=$lt_archive_cmds 15301archive_expsym_cmds=$lt_archive_expsym_cmds 15302 15303# Commands used to build a loadable module if different from building 15304# a shared archive. 15305module_cmds=$lt_module_cmds 15306module_expsym_cmds=$lt_module_expsym_cmds 15307 15308# Whether we are building with GNU ld or not. 15309with_gnu_ld=$lt_with_gnu_ld 15310 15311# Flag that allows shared libraries with undefined symbols to be built. 15312allow_undefined_flag=$lt_allow_undefined_flag 15313 15314# Flag that enforces no undefined symbols. 15315no_undefined_flag=$lt_no_undefined_flag 15316 15317# Flag to hardcode \$libdir into a binary during linking. 15318# This must work even if \$libdir does not exist 15319hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15320 15321# If ld is used when linking, flag to hardcode \$libdir into a binary 15322# during linking. This must work even if \$libdir does not exist. 15323hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15324 15325# Whether we need a single "-rpath" flag with a separated argument. 15326hardcode_libdir_separator=$lt_hardcode_libdir_separator 15327 15328# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15329# DIR into the resulting binary. 15330hardcode_direct=$hardcode_direct 15331 15332# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15333# DIR into the resulting binary and the resulting library dependency is 15334# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15335# library is relocated. 15336hardcode_direct_absolute=$hardcode_direct_absolute 15337 15338# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15339# into the resulting binary. 15340hardcode_minus_L=$hardcode_minus_L 15341 15342# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15343# into the resulting binary. 15344hardcode_shlibpath_var=$hardcode_shlibpath_var 15345 15346# Set to "yes" if building a shared library automatically hardcodes DIR 15347# into the library and all subsequent libraries and executables linked 15348# against it. 15349hardcode_automatic=$hardcode_automatic 15350 15351# Set to yes if linker adds runtime paths of dependent libraries 15352# to runtime path list. 15353inherit_rpath=$inherit_rpath 15354 15355# Whether libtool must link a program against all its dependency libraries. 15356link_all_deplibs=$link_all_deplibs 15357 15358# Fix the shell variable \$srcfile for the compiler. 15359fix_srcfile_path=$lt_fix_srcfile_path 15360 15361# Set to "yes" if exported symbols are required. 15362always_export_symbols=$always_export_symbols 15363 15364# The commands to list exported symbols. 15365export_symbols_cmds=$lt_export_symbols_cmds 15366 15367# Symbols that should not be listed in the preloaded symbols. 15368exclude_expsyms=$lt_exclude_expsyms 15369 15370# Symbols that must always be exported. 15371include_expsyms=$lt_include_expsyms 15372 15373# Commands necessary for linking programs (against libraries) with templates. 15374prelink_cmds=$lt_prelink_cmds 15375 15376# Specify filename containing input files. 15377file_list_spec=$lt_file_list_spec 15378 15379# How to hardcode a shared library path into an executable. 15380hardcode_action=$hardcode_action 15381 15382# ### END LIBTOOL CONFIG 15383 15384_LT_EOF 15385 15386 case $host_os in 15387 aix3*) 15388 cat <<\_LT_EOF >> "$cfgfile" 15389# AIX sometimes has problems with the GCC collect2 program. For some 15390# reason, if we set the COLLECT_NAMES environment variable, the problems 15391# vanish in a puff of smoke. 15392if test "X${COLLECT_NAMES+set}" != Xset; then 15393 COLLECT_NAMES= 15394 export COLLECT_NAMES 15395fi 15396_LT_EOF 15397 ;; 15398 esac 15399 15400 15401ltmain="$ac_aux_dir/ltmain.sh" 15402 15403 15404 # We use sed instead of cat because bash on DJGPP gets confused if 15405 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15406 # text mode, it properly converts lines to CR/LF. This bash problem 15407 # is reportedly fixed, but why not run on old versions too? 15408 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15409 || (rm -f "$cfgfile"; exit 1) 15410 15411 case $xsi_shell in 15412 yes) 15413 cat << \_LT_EOF >> "$cfgfile" 15414 15415# func_dirname file append nondir_replacement 15416# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15417# otherwise set result to NONDIR_REPLACEMENT. 15418func_dirname () 15419{ 15420 case ${1} in 15421 */*) func_dirname_result="${1%/*}${2}" ;; 15422 * ) func_dirname_result="${3}" ;; 15423 esac 15424} 15425 15426# func_basename file 15427func_basename () 15428{ 15429 func_basename_result="${1##*/}" 15430} 15431 15432# func_dirname_and_basename file append nondir_replacement 15433# perform func_basename and func_dirname in a single function 15434# call: 15435# dirname: Compute the dirname of FILE. If nonempty, 15436# add APPEND to the result, otherwise set result 15437# to NONDIR_REPLACEMENT. 15438# value returned in "$func_dirname_result" 15439# basename: Compute filename of FILE. 15440# value retuned in "$func_basename_result" 15441# Implementation must be kept synchronized with func_dirname 15442# and func_basename. For efficiency, we do not delegate to 15443# those functions but instead duplicate the functionality here. 15444func_dirname_and_basename () 15445{ 15446 case ${1} in 15447 */*) func_dirname_result="${1%/*}${2}" ;; 15448 * ) func_dirname_result="${3}" ;; 15449 esac 15450 func_basename_result="${1##*/}" 15451} 15452 15453# func_stripname prefix suffix name 15454# strip PREFIX and SUFFIX off of NAME. 15455# PREFIX and SUFFIX must not contain globbing or regex special 15456# characters, hashes, percent signs, but SUFFIX may contain a leading 15457# dot (in which case that matches only a dot). 15458func_stripname () 15459{ 15460 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15461 # positional parameters, so assign one to ordinary parameter first. 15462 func_stripname_result=${3} 15463 func_stripname_result=${func_stripname_result#"${1}"} 15464 func_stripname_result=${func_stripname_result%"${2}"} 15465} 15466 15467# func_opt_split 15468func_opt_split () 15469{ 15470 func_opt_split_opt=${1%%=*} 15471 func_opt_split_arg=${1#*=} 15472} 15473 15474# func_lo2o object 15475func_lo2o () 15476{ 15477 case ${1} in 15478 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15479 *) func_lo2o_result=${1} ;; 15480 esac 15481} 15482 15483# func_xform libobj-or-source 15484func_xform () 15485{ 15486 func_xform_result=${1%.*}.lo 15487} 15488 15489# func_arith arithmetic-term... 15490func_arith () 15491{ 15492 func_arith_result=$(( $* )) 15493} 15494 15495# func_len string 15496# STRING may not start with a hyphen. 15497func_len () 15498{ 15499 func_len_result=${#1} 15500} 15501 15502_LT_EOF 15503 ;; 15504 *) # Bourne compatible functions. 15505 cat << \_LT_EOF >> "$cfgfile" 15506 15507# func_dirname file append nondir_replacement 15508# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15509# otherwise set result to NONDIR_REPLACEMENT. 15510func_dirname () 15511{ 15512 # Extract subdirectory from the argument. 15513 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15514 if test "X$func_dirname_result" = "X${1}"; then 15515 func_dirname_result="${3}" 15516 else 15517 func_dirname_result="$func_dirname_result${2}" 15518 fi 15519} 15520 15521# func_basename file 15522func_basename () 15523{ 15524 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15525} 15526 15527 15528# func_stripname prefix suffix name 15529# strip PREFIX and SUFFIX off of NAME. 15530# PREFIX and SUFFIX must not contain globbing or regex special 15531# characters, hashes, percent signs, but SUFFIX may contain a leading 15532# dot (in which case that matches only a dot). 15533# func_strip_suffix prefix name 15534func_stripname () 15535{ 15536 case ${2} in 15537 .*) func_stripname_result=`$ECHO "X${3}" \ 15538 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15539 *) func_stripname_result=`$ECHO "X${3}" \ 15540 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15541 esac 15542} 15543 15544# sed scripts: 15545my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15546my_sed_long_arg='1s/^-[^=]*=//' 15547 15548# func_opt_split 15549func_opt_split () 15550{ 15551 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15552 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15553} 15554 15555# func_lo2o object 15556func_lo2o () 15557{ 15558 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15559} 15560 15561# func_xform libobj-or-source 15562func_xform () 15563{ 15564 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15565} 15566 15567# func_arith arithmetic-term... 15568func_arith () 15569{ 15570 func_arith_result=`expr "$@"` 15571} 15572 15573# func_len string 15574# STRING may not start with a hyphen. 15575func_len () 15576{ 15577 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15578} 15579 15580_LT_EOF 15581esac 15582 15583case $lt_shell_append in 15584 yes) 15585 cat << \_LT_EOF >> "$cfgfile" 15586 15587# func_append var value 15588# Append VALUE to the end of shell variable VAR. 15589func_append () 15590{ 15591 eval "$1+=\$2" 15592} 15593_LT_EOF 15594 ;; 15595 *) 15596 cat << \_LT_EOF >> "$cfgfile" 15597 15598# func_append var value 15599# Append VALUE to the end of shell variable VAR. 15600func_append () 15601{ 15602 eval "$1=\$$1\$2" 15603} 15604 15605_LT_EOF 15606 ;; 15607 esac 15608 15609 15610 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15611 || (rm -f "$cfgfile"; exit 1) 15612 15613 mv -f "$cfgfile" "$ofile" || 15614 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15615 chmod +x "$ofile" 15616 15617 ;; 15618 15619 esac 15620done # for ac_tag 15621 15622 15623{ (exit 0); exit 0; } 15624_ACEOF 15625chmod +x $CONFIG_STATUS 15626ac_clean_files=$ac_clean_files_save 15627 15628test $ac_write_fail = 0 || 15629 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15630$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15631 { (exit 1); exit 1; }; } 15632 15633 15634# configure is writing to config.log, and then calls config.status. 15635# config.status does its own redirection, appending to config.log. 15636# Unfortunately, on DOS this fails, as config.log is still kept open 15637# by configure, so config.status won't be able to write to it; its 15638# output is simply discarded. So we exec the FD to /dev/null, 15639# effectively closing config.log, so it can be properly (re)opened and 15640# appended to by config.status. When coming back to configure, we 15641# need to make the FD available again. 15642if test "$no_create" != yes; then 15643 ac_cs_success=: 15644 ac_config_status_args= 15645 test "$silent" = yes && 15646 ac_config_status_args="$ac_config_status_args --quiet" 15647 exec 5>/dev/null 15648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15649 exec 5>>config.log 15650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15651 # would make configure fail if this is the last instruction. 15652 $ac_cs_success || { (exit 1); exit 1; } 15653fi 15654if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15655 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15656$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15657fi 15658 15659