configure revision ea0de359
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-input-vmmouse 12.6.10. 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-input-vmmouse' 747PACKAGE_TARNAME='xf86-input-vmmouse' 748PACKAGE_VERSION='12.6.10' 749PACKAGE_STRING='xf86-input-vmmouse 12.6.10' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='am__EXEEXT_FALSE 790am__EXEEXT_TRUE 791LTLIBOBJS 792LIBOBJS 793XORG_LIBS 794XORG_CFLAGS 795HAS_UDEV_RULES_DIR_FALSE 796HAS_UDEV_RULES_DIR_TRUE 797UDEV_RULES_DIR 798HAL_FDI_DIR 799HAL_CALLOUTS_DIR 800HAL_BIN_DIR 801HAS_XORG_CONF_DIR_FALSE 802HAS_XORG_CONF_DIR_TRUE 803XORG_CONF_DIR 804inputdir 805OTOOL64 806OTOOL 807LIPO 808NMEDIT 809DSYMUTIL 810lt_ECHO 811RANLIB 812AR 813OBJDUMP 814LN_S 815NM 816ac_ct_DUMPBIN 817DUMPBIN 818LD 819FGREP 820LIBTOOL 821DRIVER_NAME 822AM_BACKSLASH 823AM_DEFAULT_VERBOSITY 824MAN_SUBSTS 825XORG_MAN_PAGE 826ADMIN_MAN_DIR 827DRIVER_MAN_DIR 828MISC_MAN_DIR 829FILE_MAN_DIR 830LIB_MAN_DIR 831APP_MAN_DIR 832ADMIN_MAN_SUFFIX 833DRIVER_MAN_SUFFIX 834MISC_MAN_SUFFIX 835FILE_MAN_SUFFIX 836LIB_MAN_SUFFIX 837APP_MAN_SUFFIX 838SED 839host_os 840host_vendor 841host_cpu 842host 843build_os 844build_vendor 845build_cpu 846build 847INSTALL_CMD 848PKG_CONFIG 849CHANGELOG_CMD 850CWARNFLAGS 851EGREP 852GREP 853CPP 854am__fastdepCC_FALSE 855am__fastdepCC_TRUE 856CCDEPMODE 857AMDEPBACKSLASH 858AMDEP_FALSE 859AMDEP_TRUE 860am__quote 861am__include 862DEPDIR 863OBJEXT 864EXEEXT 865ac_ct_CC 866CPPFLAGS 867LDFLAGS 868CFLAGS 869CC 870MAINT 871MAINTAINER_MODE_FALSE 872MAINTAINER_MODE_TRUE 873am__untar 874am__tar 875AMTAR 876am__leading_dot 877SET_MAKE 878AWK 879mkdir_p 880MKDIR_P 881INSTALL_STRIP_PROGRAM 882STRIP 883install_sh 884MAKEINFO 885AUTOHEADER 886AUTOMAKE 887AUTOCONF 888ACLOCAL 889VERSION 890PACKAGE 891CYGPATH_W 892am__isrc 893INSTALL_DATA 894INSTALL_SCRIPT 895INSTALL_PROGRAM 896target_alias 897host_alias 898build_alias 899LIBS 900ECHO_T 901ECHO_N 902ECHO_C 903DEFS 904mandir 905localedir 906libdir 907psdir 908pdfdir 909dvidir 910htmldir 911infodir 912docdir 913oldincludedir 914includedir 915localstatedir 916sharedstatedir 917sysconfdir 918datadir 919datarootdir 920libexecdir 921sbindir 922bindir 923program_transform_name 924prefix 925exec_prefix 926PACKAGE_BUGREPORT 927PACKAGE_STRING 928PACKAGE_VERSION 929PACKAGE_TARNAME 930PACKAGE_NAME 931PATH_SEPARATOR 932SHELL' 933ac_subst_files='' 934ac_user_opts=' 935enable_option_checking 936enable_maintainer_mode 937enable_dependency_tracking 938enable_strict_compilation 939enable_silent_rules 940enable_static 941enable_shared 942with_pic 943enable_fast_install 944with_gnu_ld 945enable_libtool_lock 946with_xorg_module_dir 947with_xorg_conf_dir 948with_hal_bin_dir 949with_hal_callouts_dir 950with_hal_fdi_dir 951with_udev_rules_dir 952' 953 ac_precious_vars='build_alias 954host_alias 955target_alias 956CC 957CFLAGS 958LDFLAGS 959LIBS 960CPPFLAGS 961CPP 962PKG_CONFIG 963XORG_CFLAGS 964XORG_LIBS' 965 966 967# Initialize some variables set by options. 968ac_init_help= 969ac_init_version=false 970ac_unrecognized_opts= 971ac_unrecognized_sep= 972# The variables have the same names as the options, with 973# dashes changed to underlines. 974cache_file=/dev/null 975exec_prefix=NONE 976no_create= 977no_recursion= 978prefix=NONE 979program_prefix=NONE 980program_suffix=NONE 981program_transform_name=s,x,x, 982silent= 983site= 984srcdir= 985verbose= 986x_includes=NONE 987x_libraries=NONE 988 989# Installation directory options. 990# These are left unexpanded so users can "make install exec_prefix=/foo" 991# and all the variables that are supposed to be based on exec_prefix 992# by default will actually change. 993# Use braces instead of parens because sh, perl, etc. also accept them. 994# (The list follows the same order as the GNU Coding Standards.) 995bindir='${exec_prefix}/bin' 996sbindir='${exec_prefix}/sbin' 997libexecdir='${exec_prefix}/libexec' 998datarootdir='${prefix}/share' 999datadir='${datarootdir}' 1000sysconfdir='${prefix}/etc' 1001sharedstatedir='${prefix}/com' 1002localstatedir='${prefix}/var' 1003includedir='${prefix}/include' 1004oldincludedir='/usr/include' 1005docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1006infodir='${datarootdir}/info' 1007htmldir='${docdir}' 1008dvidir='${docdir}' 1009pdfdir='${docdir}' 1010psdir='${docdir}' 1011libdir='${exec_prefix}/lib' 1012localedir='${datarootdir}/locale' 1013mandir='${datarootdir}/man' 1014 1015ac_prev= 1016ac_dashdash= 1017for ac_option 1018do 1019 # If the previous option needs an argument, assign it. 1020 if test -n "$ac_prev"; then 1021 eval $ac_prev=\$ac_option 1022 ac_prev= 1023 continue 1024 fi 1025 1026 case $ac_option in 1027 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1028 *) ac_optarg=yes ;; 1029 esac 1030 1031 # Accept the important Cygnus configure options, so we can diagnose typos. 1032 1033 case $ac_dashdash$ac_option in 1034 --) 1035 ac_dashdash=yes ;; 1036 1037 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1038 ac_prev=bindir ;; 1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1040 bindir=$ac_optarg ;; 1041 1042 -build | --build | --buil | --bui | --bu) 1043 ac_prev=build_alias ;; 1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1045 build_alias=$ac_optarg ;; 1046 1047 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1049 ac_prev=cache_file ;; 1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1052 cache_file=$ac_optarg ;; 1053 1054 --config-cache | -C) 1055 cache_file=config.cache ;; 1056 1057 -datadir | --datadir | --datadi | --datad) 1058 ac_prev=datadir ;; 1059 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1060 datadir=$ac_optarg ;; 1061 1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1063 | --dataroo | --dataro | --datar) 1064 ac_prev=datarootdir ;; 1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1067 datarootdir=$ac_optarg ;; 1068 1069 -disable-* | --disable-*) 1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1071 # Reject names that are not valid shell variable names. 1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1073 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1074 { (exit 1); exit 1; }; } 1075 ac_useropt_orig=$ac_useropt 1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1077 case $ac_user_opts in 1078 *" 1079"enable_$ac_useropt" 1080"*) ;; 1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1082 ac_unrecognized_sep=', ';; 1083 esac 1084 eval enable_$ac_useropt=no ;; 1085 1086 -docdir | --docdir | --docdi | --doc | --do) 1087 ac_prev=docdir ;; 1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1089 docdir=$ac_optarg ;; 1090 1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1092 ac_prev=dvidir ;; 1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1094 dvidir=$ac_optarg ;; 1095 1096 -enable-* | --enable-*) 1097 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1098 # Reject names that are not valid shell variable names. 1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1100 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1101 { (exit 1); exit 1; }; } 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"enable_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval enable_$ac_useropt=\$ac_optarg ;; 1112 1113 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1114 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1115 | --exec | --exe | --ex) 1116 ac_prev=exec_prefix ;; 1117 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1118 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1119 | --exec=* | --exe=* | --ex=*) 1120 exec_prefix=$ac_optarg ;; 1121 1122 -gas | --gas | --ga | --g) 1123 # Obsolete; use --with-gas. 1124 with_gas=yes ;; 1125 1126 -help | --help | --hel | --he | -h) 1127 ac_init_help=long ;; 1128 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1129 ac_init_help=recursive ;; 1130 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1131 ac_init_help=short ;; 1132 1133 -host | --host | --hos | --ho) 1134 ac_prev=host_alias ;; 1135 -host=* | --host=* | --hos=* | --ho=*) 1136 host_alias=$ac_optarg ;; 1137 1138 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1139 ac_prev=htmldir ;; 1140 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1141 | --ht=*) 1142 htmldir=$ac_optarg ;; 1143 1144 -includedir | --includedir | --includedi | --included | --include \ 1145 | --includ | --inclu | --incl | --inc) 1146 ac_prev=includedir ;; 1147 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1148 | --includ=* | --inclu=* | --incl=* | --inc=*) 1149 includedir=$ac_optarg ;; 1150 1151 -infodir | --infodir | --infodi | --infod | --info | --inf) 1152 ac_prev=infodir ;; 1153 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1154 infodir=$ac_optarg ;; 1155 1156 -libdir | --libdir | --libdi | --libd) 1157 ac_prev=libdir ;; 1158 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1159 libdir=$ac_optarg ;; 1160 1161 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1162 | --libexe | --libex | --libe) 1163 ac_prev=libexecdir ;; 1164 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1165 | --libexe=* | --libex=* | --libe=*) 1166 libexecdir=$ac_optarg ;; 1167 1168 -localedir | --localedir | --localedi | --localed | --locale) 1169 ac_prev=localedir ;; 1170 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1171 localedir=$ac_optarg ;; 1172 1173 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1174 | --localstate | --localstat | --localsta | --localst | --locals) 1175 ac_prev=localstatedir ;; 1176 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1177 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1178 localstatedir=$ac_optarg ;; 1179 1180 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1181 ac_prev=mandir ;; 1182 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1183 mandir=$ac_optarg ;; 1184 1185 -nfp | --nfp | --nf) 1186 # Obsolete; use --without-fp. 1187 with_fp=no ;; 1188 1189 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1190 | --no-cr | --no-c | -n) 1191 no_create=yes ;; 1192 1193 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1194 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1195 no_recursion=yes ;; 1196 1197 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1198 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1199 | --oldin | --oldi | --old | --ol | --o) 1200 ac_prev=oldincludedir ;; 1201 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1202 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1203 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1204 oldincludedir=$ac_optarg ;; 1205 1206 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1207 ac_prev=prefix ;; 1208 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1209 prefix=$ac_optarg ;; 1210 1211 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1212 | --program-pre | --program-pr | --program-p) 1213 ac_prev=program_prefix ;; 1214 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1215 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1216 program_prefix=$ac_optarg ;; 1217 1218 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1219 | --program-suf | --program-su | --program-s) 1220 ac_prev=program_suffix ;; 1221 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1222 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1223 program_suffix=$ac_optarg ;; 1224 1225 -program-transform-name | --program-transform-name \ 1226 | --program-transform-nam | --program-transform-na \ 1227 | --program-transform-n | --program-transform- \ 1228 | --program-transform | --program-transfor \ 1229 | --program-transfo | --program-transf \ 1230 | --program-trans | --program-tran \ 1231 | --progr-tra | --program-tr | --program-t) 1232 ac_prev=program_transform_name ;; 1233 -program-transform-name=* | --program-transform-name=* \ 1234 | --program-transform-nam=* | --program-transform-na=* \ 1235 | --program-transform-n=* | --program-transform-=* \ 1236 | --program-transform=* | --program-transfor=* \ 1237 | --program-transfo=* | --program-transf=* \ 1238 | --program-trans=* | --program-tran=* \ 1239 | --progr-tra=* | --program-tr=* | --program-t=*) 1240 program_transform_name=$ac_optarg ;; 1241 1242 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1243 ac_prev=pdfdir ;; 1244 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1245 pdfdir=$ac_optarg ;; 1246 1247 -psdir | --psdir | --psdi | --psd | --ps) 1248 ac_prev=psdir ;; 1249 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1250 psdir=$ac_optarg ;; 1251 1252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1253 | -silent | --silent | --silen | --sile | --sil) 1254 silent=yes ;; 1255 1256 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1257 ac_prev=sbindir ;; 1258 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1259 | --sbi=* | --sb=*) 1260 sbindir=$ac_optarg ;; 1261 1262 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1263 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1264 | --sharedst | --shareds | --shared | --share | --shar \ 1265 | --sha | --sh) 1266 ac_prev=sharedstatedir ;; 1267 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1268 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1269 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1270 | --sha=* | --sh=*) 1271 sharedstatedir=$ac_optarg ;; 1272 1273 -site | --site | --sit) 1274 ac_prev=site ;; 1275 -site=* | --site=* | --sit=*) 1276 site=$ac_optarg ;; 1277 1278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1279 ac_prev=srcdir ;; 1280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1281 srcdir=$ac_optarg ;; 1282 1283 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1284 | --syscon | --sysco | --sysc | --sys | --sy) 1285 ac_prev=sysconfdir ;; 1286 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1287 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1288 sysconfdir=$ac_optarg ;; 1289 1290 -target | --target | --targe | --targ | --tar | --ta | --t) 1291 ac_prev=target_alias ;; 1292 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1293 target_alias=$ac_optarg ;; 1294 1295 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1296 verbose=yes ;; 1297 1298 -version | --version | --versio | --versi | --vers | -V) 1299 ac_init_version=: ;; 1300 1301 -with-* | --with-*) 1302 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1303 # Reject names that are not valid shell variable names. 1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1305 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1306 { (exit 1); exit 1; }; } 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=\$ac_optarg ;; 1317 1318 -without-* | --without-*) 1319 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1320 # Reject names that are not valid shell variable names. 1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1323 { (exit 1); exit 1; }; } 1324 ac_useropt_orig=$ac_useropt 1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1326 case $ac_user_opts in 1327 *" 1328"with_$ac_useropt" 1329"*) ;; 1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1331 ac_unrecognized_sep=', ';; 1332 esac 1333 eval with_$ac_useropt=no ;; 1334 1335 --x) 1336 # Obsolete; use --with-x. 1337 with_x=yes ;; 1338 1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1340 | --x-incl | --x-inc | --x-in | --x-i) 1341 ac_prev=x_includes ;; 1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1344 x_includes=$ac_optarg ;; 1345 1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1348 ac_prev=x_libraries ;; 1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1351 x_libraries=$ac_optarg ;; 1352 1353 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1354Try \`$0 --help' for more information." >&2 1355 { (exit 1); exit 1; }; } 1356 ;; 1357 1358 *=*) 1359 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1360 # Reject names that are not valid shell variable names. 1361 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1362 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1363 { (exit 1); exit 1; }; } 1364 eval $ac_envvar=\$ac_optarg 1365 export $ac_envvar ;; 1366 1367 *) 1368 # FIXME: should be removed in autoconf 3.0. 1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1373 ;; 1374 1375 esac 1376done 1377 1378if test -n "$ac_prev"; then 1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1380 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1381 { (exit 1); exit 1; }; } 1382fi 1383 1384if test -n "$ac_unrecognized_opts"; then 1385 case $enable_option_checking in 1386 no) ;; 1387 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1388 { (exit 1); exit 1; }; } ;; 1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1390 esac 1391fi 1392 1393# Check all directory arguments for consistency. 1394for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1395 datadir sysconfdir sharedstatedir localstatedir includedir \ 1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1397 libdir localedir mandir 1398do 1399 eval ac_val=\$$ac_var 1400 # Remove trailing slashes. 1401 case $ac_val in 1402 */ ) 1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1404 eval $ac_var=\$ac_val;; 1405 esac 1406 # Be sure to have absolute directory names. 1407 case $ac_val in 1408 [\\/$]* | ?:[\\/]* ) continue;; 1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1410 esac 1411 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1412 { (exit 1); exit 1; }; } 1413done 1414 1415# There might be people who depend on the old broken behavior: `$host' 1416# used to hold the argument of --host etc. 1417# FIXME: To remove some day. 1418build=$build_alias 1419host=$host_alias 1420target=$target_alias 1421 1422# FIXME: To remove some day. 1423if test "x$host_alias" != x; then 1424 if test "x$build_alias" = x; then 1425 cross_compiling=maybe 1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1427 If a cross compiler is detected then cross compile mode will be used." >&2 1428 elif test "x$build_alias" != "x$host_alias"; then 1429 cross_compiling=yes 1430 fi 1431fi 1432 1433ac_tool_prefix= 1434test -n "$host_alias" && ac_tool_prefix=$host_alias- 1435 1436test "$silent" = yes && exec 6>/dev/null 1437 1438 1439ac_pwd=`pwd` && test -n "$ac_pwd" && 1440ac_ls_di=`ls -di .` && 1441ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1442 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1443 { (exit 1); exit 1; }; } 1444test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1445 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1446 { (exit 1); exit 1; }; } 1447 1448 1449# Find the source files, if location was not specified. 1450if test -z "$srcdir"; then 1451 ac_srcdir_defaulted=yes 1452 # Try the directory containing this script, then the parent directory. 1453 ac_confdir=`$as_dirname -- "$as_myself" || 1454$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1455 X"$as_myself" : 'X\(//\)[^/]' \| \ 1456 X"$as_myself" : 'X\(//\)$' \| \ 1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1458$as_echo X"$as_myself" | 1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\/\)[^/].*/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\/\)$/{ 1468 s//\1/ 1469 q 1470 } 1471 /^X\(\/\).*/{ 1472 s//\1/ 1473 q 1474 } 1475 s/.*/./; q'` 1476 srcdir=$ac_confdir 1477 if test ! -r "$srcdir/$ac_unique_file"; then 1478 srcdir=.. 1479 fi 1480else 1481 ac_srcdir_defaulted=no 1482fi 1483if test ! -r "$srcdir/$ac_unique_file"; then 1484 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1485 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1486 { (exit 1); exit 1; }; } 1487fi 1488ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1489ac_abs_confdir=`( 1490 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1491 { (exit 1); exit 1; }; } 1492 pwd)` 1493# When building in place, set srcdir=. 1494if test "$ac_abs_confdir" = "$ac_pwd"; then 1495 srcdir=. 1496fi 1497# Remove unnecessary trailing slashes from srcdir. 1498# Double slashes in file names in object file debugging info 1499# mess up M-x gdb in Emacs. 1500case $srcdir in 1501*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1502esac 1503for ac_var in $ac_precious_vars; do 1504 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1505 eval ac_env_${ac_var}_value=\$${ac_var} 1506 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1507 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1508done 1509 1510# 1511# Report the --help message. 1512# 1513if test "$ac_init_help" = "long"; then 1514 # Omit some internal or obsolete options to make the list less imposing. 1515 # This message is too long to be a string in the A/UX 3.1 sh. 1516 cat <<_ACEOF 1517\`configure' configures xf86-input-vmmouse 12.6.10 to adapt to many kinds of systems. 1518 1519Usage: $0 [OPTION]... [VAR=VALUE]... 1520 1521To assign environment variables (e.g., CC, CFLAGS...), specify them as 1522VAR=VALUE. See below for descriptions of some of the useful variables. 1523 1524Defaults for the options are specified in brackets. 1525 1526Configuration: 1527 -h, --help display this help and exit 1528 --help=short display options specific to this package 1529 --help=recursive display the short help of all the included packages 1530 -V, --version display version information and exit 1531 -q, --quiet, --silent do not print \`checking...' messages 1532 --cache-file=FILE cache test results in FILE [disabled] 1533 -C, --config-cache alias for \`--cache-file=config.cache' 1534 -n, --no-create do not create output files 1535 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1536 1537Installation directories: 1538 --prefix=PREFIX install architecture-independent files in PREFIX 1539 [$ac_default_prefix] 1540 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1541 [PREFIX] 1542 1543By default, \`make install' will install all the files in 1544\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1545an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1546for instance \`--prefix=\$HOME'. 1547 1548For better control, use the options below. 1549 1550Fine tuning of the installation directories: 1551 --bindir=DIR user executables [EPREFIX/bin] 1552 --sbindir=DIR system admin executables [EPREFIX/sbin] 1553 --libexecdir=DIR program executables [EPREFIX/libexec] 1554 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1555 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1556 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1557 --libdir=DIR object code libraries [EPREFIX/lib] 1558 --includedir=DIR C header files [PREFIX/include] 1559 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1560 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1561 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1562 --infodir=DIR info documentation [DATAROOTDIR/info] 1563 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1564 --mandir=DIR man documentation [DATAROOTDIR/man] 1565 --docdir=DIR documentation root 1566 [DATAROOTDIR/doc/xf86-input-vmmouse] 1567 --htmldir=DIR html documentation [DOCDIR] 1568 --dvidir=DIR dvi documentation [DOCDIR] 1569 --pdfdir=DIR pdf documentation [DOCDIR] 1570 --psdir=DIR ps documentation [DOCDIR] 1571_ACEOF 1572 1573 cat <<\_ACEOF 1574 1575Program names: 1576 --program-prefix=PREFIX prepend PREFIX to installed program names 1577 --program-suffix=SUFFIX append SUFFIX to installed program names 1578 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1579 1580System types: 1581 --build=BUILD configure for building on BUILD [guessed] 1582 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1583_ACEOF 1584fi 1585 1586if test -n "$ac_init_help"; then 1587 case $ac_init_help in 1588 short | recursive ) echo "Configuration of xf86-input-vmmouse 12.6.10:";; 1589 esac 1590 cat <<\_ACEOF 1591 1592Optional Features: 1593 --disable-option-checking ignore unrecognized --enable/--with options 1594 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1595 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1596 --enable-maintainer-mode enable make rules and dependencies not useful 1597 (and sometimes confusing) to the casual installer 1598 --disable-dependency-tracking speeds up one-time build 1599 --enable-dependency-tracking do not reject slow dependency extractors 1600 --enable-strict-compilation 1601 Enable all warnings from compiler and make them 1602 errors (default: disabled) 1603 --enable-silent-rules less verbose build output (undo: `make V=1') 1604 --disable-silent-rules verbose build output (undo: `make V=0') 1605 --enable-static[=PKGS] build static libraries [default=no] 1606 --enable-shared[=PKGS] build shared libraries [default=yes] 1607 --enable-fast-install[=PKGS] 1608 optimize for fast installation [default=yes] 1609 --disable-libtool-lock avoid locking (might break parallel builds) 1610 1611Optional Packages: 1612 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1613 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1614 --with-pic try to use only PIC/non-PIC objects [default=use 1615 both] 1616 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1617 --with-xorg-module-dir=DIR 1618 Default xorg module directory 1619 [default=$libdir/xorg/modules] 1620 --with-xorg-conf-dir=DIR 1621 Default xorg.conf.d directory 1622 [default=from], [$PKG_CONFIG], [xorg-server] 1623 --with-hal-bin-dir=DIR Directory where HAL binaries where installed 1624 [default=$bindir] 1625 --with-hal-callouts-dir=DIR 1626 Directory where HAL expects its callout scripts to 1627 be located [default=$libdir/hal] 1628 --with-hal-fdi-dir=DIR Directory where HAL expects its fdi files to be 1629 located 1630 [default=$datadir/hal/fdi/policy/20thirdparty] 1631 --with-udev-rules-dir=DIR 1632 Default udev rules.d directory 1633 [default=($prefix)/lib/udev/rules.d], [on], [Linux,], [none], [otherwise] 1634 1635Some influential environment variables: 1636 CC C compiler command 1637 CFLAGS C compiler flags 1638 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1639 nonstandard directory <lib dir> 1640 LIBS libraries to pass to the linker, e.g. -l<library> 1641 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1642 you have headers in a nonstandard directory <include dir> 1643 CPP C preprocessor 1644 PKG_CONFIG path to pkg-config utility 1645 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1646 XORG_LIBS linker flags for XORG, overriding pkg-config 1647 1648Use these variables to override the choices made by `configure' or to help 1649it to find libraries and programs with nonstandard names/locations. 1650 1651Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1652_ACEOF 1653ac_status=$? 1654fi 1655 1656if test "$ac_init_help" = "recursive"; then 1657 # If there are subdirs, report their specific --help. 1658 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1659 test -d "$ac_dir" || 1660 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1661 continue 1662 ac_builddir=. 1663 1664case "$ac_dir" in 1665.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1666*) 1667 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1668 # A ".." for each directory in $ac_dir_suffix. 1669 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1670 case $ac_top_builddir_sub in 1671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1673 esac ;; 1674esac 1675ac_abs_top_builddir=$ac_pwd 1676ac_abs_builddir=$ac_pwd$ac_dir_suffix 1677# for backward compatibility: 1678ac_top_builddir=$ac_top_build_prefix 1679 1680case $srcdir in 1681 .) # We are building in place. 1682 ac_srcdir=. 1683 ac_top_srcdir=$ac_top_builddir_sub 1684 ac_abs_top_srcdir=$ac_pwd ;; 1685 [\\/]* | ?:[\\/]* ) # Absolute name. 1686 ac_srcdir=$srcdir$ac_dir_suffix; 1687 ac_top_srcdir=$srcdir 1688 ac_abs_top_srcdir=$srcdir ;; 1689 *) # Relative name. 1690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1691 ac_top_srcdir=$ac_top_build_prefix$srcdir 1692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1693esac 1694ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1695 1696 cd "$ac_dir" || { ac_status=$?; continue; } 1697 # Check for guested configure. 1698 if test -f "$ac_srcdir/configure.gnu"; then 1699 echo && 1700 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1701 elif test -f "$ac_srcdir/configure"; then 1702 echo && 1703 $SHELL "$ac_srcdir/configure" --help=recursive 1704 else 1705 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1706 fi || ac_status=$? 1707 cd "$ac_pwd" || { ac_status=$?; break; } 1708 done 1709fi 1710 1711test -n "$ac_init_help" && exit $ac_status 1712if $ac_init_version; then 1713 cat <<\_ACEOF 1714xf86-input-vmmouse configure 12.6.10 1715generated by GNU Autoconf 2.63 1716 1717Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17182002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1719This configure script is free software; the Free Software Foundation 1720gives unlimited permission to copy, distribute and modify it. 1721_ACEOF 1722 exit 1723fi 1724cat >config.log <<_ACEOF 1725This file contains any messages produced by compilers while 1726running configure, to aid debugging if configure makes a mistake. 1727 1728It was created by xf86-input-vmmouse $as_me 12.6.10, which was 1729generated by GNU Autoconf 2.63. Invocation command line was 1730 1731 $ $0 $@ 1732 1733_ACEOF 1734exec 5>>config.log 1735{ 1736cat <<_ASUNAME 1737## --------- ## 1738## Platform. ## 1739## --------- ## 1740 1741hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1742uname -m = `(uname -m) 2>/dev/null || echo unknown` 1743uname -r = `(uname -r) 2>/dev/null || echo unknown` 1744uname -s = `(uname -s) 2>/dev/null || echo unknown` 1745uname -v = `(uname -v) 2>/dev/null || echo unknown` 1746 1747/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1748/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1749 1750/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1751/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1752/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1753/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1754/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1755/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1756/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1757 1758_ASUNAME 1759 1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1761for as_dir in $PATH 1762do 1763 IFS=$as_save_IFS 1764 test -z "$as_dir" && as_dir=. 1765 $as_echo "PATH: $as_dir" 1766done 1767IFS=$as_save_IFS 1768 1769} >&5 1770 1771cat >&5 <<_ACEOF 1772 1773 1774## ----------- ## 1775## Core tests. ## 1776## ----------- ## 1777 1778_ACEOF 1779 1780 1781# Keep a trace of the command line. 1782# Strip out --no-create and --no-recursion so they do not pile up. 1783# Strip out --silent because we don't want to record it for future runs. 1784# Also quote any args containing shell meta-characters. 1785# Make two passes to allow for proper duplicate-argument suppression. 1786ac_configure_args= 1787ac_configure_args0= 1788ac_configure_args1= 1789ac_must_keep_next=false 1790for ac_pass in 1 2 1791do 1792 for ac_arg 1793 do 1794 case $ac_arg in 1795 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1797 | -silent | --silent | --silen | --sile | --sil) 1798 continue ;; 1799 *\'*) 1800 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1801 esac 1802 case $ac_pass in 1803 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1804 2) 1805 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1806 if test $ac_must_keep_next = true; then 1807 ac_must_keep_next=false # Got value, back to normal. 1808 else 1809 case $ac_arg in 1810 *=* | --config-cache | -C | -disable-* | --disable-* \ 1811 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1812 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1813 | -with-* | --with-* | -without-* | --without-* | --x) 1814 case "$ac_configure_args0 " in 1815 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1816 esac 1817 ;; 1818 -* ) ac_must_keep_next=true ;; 1819 esac 1820 fi 1821 ac_configure_args="$ac_configure_args '$ac_arg'" 1822 ;; 1823 esac 1824 done 1825done 1826$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1827$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1828 1829# When interrupted or exit'd, cleanup temporary files, and complete 1830# config.log. We remove comments because anyway the quotes in there 1831# would cause problems or look ugly. 1832# WARNING: Use '\'' to represent an apostrophe within the trap. 1833# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1834trap 'exit_status=$? 1835 # Save into config.log some information that might help in debugging. 1836 { 1837 echo 1838 1839 cat <<\_ASBOX 1840## ---------------- ## 1841## Cache variables. ## 1842## ---------------- ## 1843_ASBOX 1844 echo 1845 # The following way of writing the cache mishandles newlines in values, 1846( 1847 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1848 eval ac_val=\$$ac_var 1849 case $ac_val in #( 1850 *${as_nl}*) 1851 case $ac_var in #( 1852 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1853$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1854 esac 1855 case $ac_var in #( 1856 _ | IFS | as_nl) ;; #( 1857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1858 *) $as_unset $ac_var ;; 1859 esac ;; 1860 esac 1861 done 1862 (set) 2>&1 | 1863 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1864 *${as_nl}ac_space=\ *) 1865 sed -n \ 1866 "s/'\''/'\''\\\\'\'''\''/g; 1867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1868 ;; #( 1869 *) 1870 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1871 ;; 1872 esac | 1873 sort 1874) 1875 echo 1876 1877 cat <<\_ASBOX 1878## ----------------- ## 1879## Output variables. ## 1880## ----------------- ## 1881_ASBOX 1882 echo 1883 for ac_var in $ac_subst_vars 1884 do 1885 eval ac_val=\$$ac_var 1886 case $ac_val in 1887 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1888 esac 1889 $as_echo "$ac_var='\''$ac_val'\''" 1890 done | sort 1891 echo 1892 1893 if test -n "$ac_subst_files"; then 1894 cat <<\_ASBOX 1895## ------------------- ## 1896## File substitutions. ## 1897## ------------------- ## 1898_ASBOX 1899 echo 1900 for ac_var in $ac_subst_files 1901 do 1902 eval ac_val=\$$ac_var 1903 case $ac_val in 1904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1905 esac 1906 $as_echo "$ac_var='\''$ac_val'\''" 1907 done | sort 1908 echo 1909 fi 1910 1911 if test -s confdefs.h; then 1912 cat <<\_ASBOX 1913## ----------- ## 1914## confdefs.h. ## 1915## ----------- ## 1916_ASBOX 1917 echo 1918 cat confdefs.h 1919 echo 1920 fi 1921 test "$ac_signal" != 0 && 1922 $as_echo "$as_me: caught signal $ac_signal" 1923 $as_echo "$as_me: exit $exit_status" 1924 } >&5 1925 rm -f core *.core core.conftest.* && 1926 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1927 exit $exit_status 1928' 0 1929for ac_signal in 1 2 13 15; do 1930 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1931done 1932ac_signal=0 1933 1934# confdefs.h avoids OS command line length limits that DEFS can exceed. 1935rm -f -r conftest* confdefs.h 1936 1937# Predefined preprocessor variables. 1938 1939cat >>confdefs.h <<_ACEOF 1940#define PACKAGE_NAME "$PACKAGE_NAME" 1941_ACEOF 1942 1943 1944cat >>confdefs.h <<_ACEOF 1945#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1946_ACEOF 1947 1948 1949cat >>confdefs.h <<_ACEOF 1950#define PACKAGE_VERSION "$PACKAGE_VERSION" 1951_ACEOF 1952 1953 1954cat >>confdefs.h <<_ACEOF 1955#define PACKAGE_STRING "$PACKAGE_STRING" 1956_ACEOF 1957 1958 1959cat >>confdefs.h <<_ACEOF 1960#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1961_ACEOF 1962 1963 1964# Let the site file select an alternate cache file if it wants to. 1965# Prefer an explicitly selected file to automatically selected ones. 1966ac_site_file1=NONE 1967ac_site_file2=NONE 1968if test -n "$CONFIG_SITE"; then 1969 ac_site_file1=$CONFIG_SITE 1970elif test "x$prefix" != xNONE; then 1971 ac_site_file1=$prefix/share/config.site 1972 ac_site_file2=$prefix/etc/config.site 1973else 1974 ac_site_file1=$ac_default_prefix/share/config.site 1975 ac_site_file2=$ac_default_prefix/etc/config.site 1976fi 1977for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1978do 1979 test "x$ac_site_file" = xNONE && continue 1980 if test -r "$ac_site_file"; then 1981 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1982$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1983 sed 's/^/| /' "$ac_site_file" >&5 1984 . "$ac_site_file" 1985 fi 1986done 1987 1988if test -r "$cache_file"; then 1989 # Some versions of bash will fail to source /dev/null (special 1990 # files actually), so we avoid doing that. 1991 if test -f "$cache_file"; then 1992 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1993$as_echo "$as_me: loading cache $cache_file" >&6;} 1994 case $cache_file in 1995 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1996 *) . "./$cache_file";; 1997 esac 1998 fi 1999else 2000 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2001$as_echo "$as_me: creating cache $cache_file" >&6;} 2002 >$cache_file 2003fi 2004 2005# Check that the precious variables saved in the cache have kept the same 2006# value. 2007ac_cache_corrupted=false 2008for ac_var in $ac_precious_vars; do 2009 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2010 eval ac_new_set=\$ac_env_${ac_var}_set 2011 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2012 eval ac_new_val=\$ac_env_${ac_var}_value 2013 case $ac_old_set,$ac_new_set in 2014 set,) 2015 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2016$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2017 ac_cache_corrupted=: ;; 2018 ,set) 2019 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2020$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2021 ac_cache_corrupted=: ;; 2022 ,);; 2023 *) 2024 if test "x$ac_old_val" != "x$ac_new_val"; then 2025 # differences in whitespace do not lead to failure. 2026 ac_old_val_w=`echo x $ac_old_val` 2027 ac_new_val_w=`echo x $ac_new_val` 2028 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2029 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2030$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2031 ac_cache_corrupted=: 2032 else 2033 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2034$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2035 eval $ac_var=\$ac_old_val 2036 fi 2037 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2038$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2039 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2040$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2041 fi;; 2042 esac 2043 # Pass precious variables to config.status. 2044 if test "$ac_new_set" = set; then 2045 case $ac_new_val in 2046 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2047 *) ac_arg=$ac_var=$ac_new_val ;; 2048 esac 2049 case " $ac_configure_args " in 2050 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2051 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2052 esac 2053 fi 2054done 2055if $ac_cache_corrupted; then 2056 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2058 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2059$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2060 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2061$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2062 { (exit 1); exit 1; }; } 2063fi 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089ac_ext=c 2090ac_cpp='$CPP $CPPFLAGS' 2091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2093ac_compiler_gnu=$ac_cv_c_compiler_gnu 2094 2095 2096 2097 2098ac_aux_dir= 2099for ac_dir in . "$srcdir"/.; do 2100 if test -f "$ac_dir/install-sh"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/install-sh -c" 2103 break 2104 elif test -f "$ac_dir/install.sh"; then 2105 ac_aux_dir=$ac_dir 2106 ac_install_sh="$ac_aux_dir/install.sh -c" 2107 break 2108 elif test -f "$ac_dir/shtool"; then 2109 ac_aux_dir=$ac_dir 2110 ac_install_sh="$ac_aux_dir/shtool install -c" 2111 break 2112 fi 2113done 2114if test -z "$ac_aux_dir"; then 2115 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2116$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2117 { (exit 1); exit 1; }; } 2118fi 2119 2120# These three variables are undocumented and unsupported, 2121# and are intended to be withdrawn in a future Autoconf release. 2122# They can cause serious problems if a builder's source tree is in a directory 2123# whose full name contains unusual characters. 2124ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2125ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2126ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2127 2128 2129am__api_version='1.11' 2130 2131# Find a good install program. We prefer a C program (faster), 2132# so one script is as good as another. But avoid the broken or 2133# incompatible versions: 2134# SysV /etc/install, /usr/sbin/install 2135# SunOS /usr/etc/install 2136# IRIX /sbin/install 2137# AIX /bin/install 2138# AmigaOS /C/install, which installs bootblocks on floppy discs 2139# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2140# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2141# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2142# OS/2's system install, which has a completely different semantic 2143# ./install, which can be erroneously created by make from ./install.sh. 2144# Reject install programs that cannot install multiple files. 2145{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2146$as_echo_n "checking for a BSD-compatible install... " >&6; } 2147if test -z "$INSTALL"; then 2148if test "${ac_cv_path_install+set}" = set; then 2149 $as_echo_n "(cached) " >&6 2150else 2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2152for as_dir in $PATH 2153do 2154 IFS=$as_save_IFS 2155 test -z "$as_dir" && as_dir=. 2156 # Account for people who put trailing slashes in PATH elements. 2157case $as_dir/ in 2158 ./ | .// | /cC/* | \ 2159 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2160 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2161 /usr/ucb/* ) ;; 2162 *) 2163 # OSF1 and SCO ODT 3.0 have their own names for install. 2164 # Don't use installbsd from OSF since it installs stuff as root 2165 # by default. 2166 for ac_prog in ginstall scoinst install; do 2167 for ac_exec_ext in '' $ac_executable_extensions; do 2168 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2169 if test $ac_prog = install && 2170 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2171 # AIX install. It has an incompatible calling convention. 2172 : 2173 elif test $ac_prog = install && 2174 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2175 # program-specific install script used by HP pwplus--don't use. 2176 : 2177 else 2178 rm -rf conftest.one conftest.two conftest.dir 2179 echo one > conftest.one 2180 echo two > conftest.two 2181 mkdir conftest.dir 2182 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2183 test -s conftest.one && test -s conftest.two && 2184 test -s conftest.dir/conftest.one && 2185 test -s conftest.dir/conftest.two 2186 then 2187 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2188 break 3 2189 fi 2190 fi 2191 fi 2192 done 2193 done 2194 ;; 2195esac 2196 2197done 2198IFS=$as_save_IFS 2199 2200rm -rf conftest.one conftest.two conftest.dir 2201 2202fi 2203 if test "${ac_cv_path_install+set}" = set; then 2204 INSTALL=$ac_cv_path_install 2205 else 2206 # As a last resort, use the slow shell script. Don't cache a 2207 # value for INSTALL within a source directory, because that will 2208 # break other packages using the cache if that directory is 2209 # removed, or if the value is a relative name. 2210 INSTALL=$ac_install_sh 2211 fi 2212fi 2213{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2214$as_echo "$INSTALL" >&6; } 2215 2216# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2217# It thinks the first close brace ends the variable substitution. 2218test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2219 2220test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2221 2222test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2223 2224{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2225$as_echo_n "checking whether build environment is sane... " >&6; } 2226# Just in case 2227sleep 1 2228echo timestamp > conftest.file 2229# Reject unsafe characters in $srcdir or the absolute working directory 2230# name. Accept space and tab only in the latter. 2231am_lf=' 2232' 2233case `pwd` in 2234 *[\\\"\#\$\&\'\`$am_lf]*) 2235 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2236$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2237 { (exit 1); exit 1; }; };; 2238esac 2239case $srcdir in 2240 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2241 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2242$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2243 { (exit 1); exit 1; }; };; 2244esac 2245 2246# Do `set' in a subshell so we don't clobber the current shell's 2247# arguments. Must try -L first in case configure is actually a 2248# symlink; some systems play weird games with the mod time of symlinks 2249# (eg FreeBSD returns the mod time of the symlink's containing 2250# directory). 2251if ( 2252 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2253 if test "$*" = "X"; then 2254 # -L didn't work. 2255 set X `ls -t "$srcdir/configure" conftest.file` 2256 fi 2257 rm -f conftest.file 2258 if test "$*" != "X $srcdir/configure conftest.file" \ 2259 && test "$*" != "X conftest.file $srcdir/configure"; then 2260 2261 # If neither matched, then we have a broken ls. This can happen 2262 # if, for instance, CONFIG_SHELL is bash and it inherits a 2263 # broken ls alias from the environment. This has actually 2264 # happened. Such a system could not be considered "sane". 2265 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2266alias in your environment" >&5 2267$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2268alias in your environment" >&2;} 2269 { (exit 1); exit 1; }; } 2270 fi 2271 2272 test "$2" = conftest.file 2273 ) 2274then 2275 # Ok. 2276 : 2277else 2278 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2279Check your system clock" >&5 2280$as_echo "$as_me: error: newly created file is older than distributed files! 2281Check your system clock" >&2;} 2282 { (exit 1); exit 1; }; } 2283fi 2284{ $as_echo "$as_me:$LINENO: result: yes" >&5 2285$as_echo "yes" >&6; } 2286test "$program_prefix" != NONE && 2287 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2288# Use a double $ so make ignores it. 2289test "$program_suffix" != NONE && 2290 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2291# Double any \ or $. 2292# By default was `s,x,x', remove it if useless. 2293ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2294program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2295 2296# expand $ac_aux_dir to an absolute path 2297am_aux_dir=`cd $ac_aux_dir && pwd` 2298 2299if test x"${MISSING+set}" != xset; then 2300 case $am_aux_dir in 2301 *\ * | *\ *) 2302 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2303 *) 2304 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2305 esac 2306fi 2307# Use eval to expand $SHELL 2308if eval "$MISSING --run true"; then 2309 am_missing_run="$MISSING --run " 2310else 2311 am_missing_run= 2312 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2313$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2314fi 2315 2316if test x"${install_sh}" != xset; then 2317 case $am_aux_dir in 2318 *\ * | *\ *) 2319 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2320 *) 2321 install_sh="\${SHELL} $am_aux_dir/install-sh" 2322 esac 2323fi 2324 2325# Installed binaries are usually stripped using `strip' when the user 2326# run `make install-strip'. However `strip' might not be the right 2327# tool to use in cross-compilation environments, therefore Automake 2328# will honor the `STRIP' environment variable to overrule this program. 2329if test "$cross_compiling" != no; then 2330 if test -n "$ac_tool_prefix"; then 2331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2332set dummy ${ac_tool_prefix}strip; ac_word=$2 2333{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2334$as_echo_n "checking for $ac_word... " >&6; } 2335if test "${ac_cv_prog_STRIP+set}" = set; then 2336 $as_echo_n "(cached) " >&6 2337else 2338 if test -n "$STRIP"; then 2339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2340else 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2348 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2350 break 2 2351 fi 2352done 2353done 2354IFS=$as_save_IFS 2355 2356fi 2357fi 2358STRIP=$ac_cv_prog_STRIP 2359if test -n "$STRIP"; then 2360 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2361$as_echo "$STRIP" >&6; } 2362else 2363 { $as_echo "$as_me:$LINENO: result: no" >&5 2364$as_echo "no" >&6; } 2365fi 2366 2367 2368fi 2369if test -z "$ac_cv_prog_STRIP"; then 2370 ac_ct_STRIP=$STRIP 2371 # Extract the first word of "strip", so it can be a program name with args. 2372set dummy strip; ac_word=$2 2373{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2374$as_echo_n "checking for $ac_word... " >&6; } 2375if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2376 $as_echo_n "(cached) " >&6 2377else 2378 if test -n "$ac_ct_STRIP"; then 2379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2380else 2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382for as_dir in $PATH 2383do 2384 IFS=$as_save_IFS 2385 test -z "$as_dir" && as_dir=. 2386 for ac_exec_ext in '' $ac_executable_extensions; do 2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2388 ac_cv_prog_ac_ct_STRIP="strip" 2389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2390 break 2 2391 fi 2392done 2393done 2394IFS=$as_save_IFS 2395 2396fi 2397fi 2398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2399if test -n "$ac_ct_STRIP"; then 2400 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2401$as_echo "$ac_ct_STRIP" >&6; } 2402else 2403 { $as_echo "$as_me:$LINENO: result: no" >&5 2404$as_echo "no" >&6; } 2405fi 2406 2407 if test "x$ac_ct_STRIP" = x; then 2408 STRIP=":" 2409 else 2410 case $cross_compiling:$ac_tool_warned in 2411yes:) 2412{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2414ac_tool_warned=yes ;; 2415esac 2416 STRIP=$ac_ct_STRIP 2417 fi 2418else 2419 STRIP="$ac_cv_prog_STRIP" 2420fi 2421 2422fi 2423INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2424 2425{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2426$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2427if test -z "$MKDIR_P"; then 2428 if test "${ac_cv_path_mkdir+set}" = set; then 2429 $as_echo_n "(cached) " >&6 2430else 2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2432for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2433do 2434 IFS=$as_save_IFS 2435 test -z "$as_dir" && as_dir=. 2436 for ac_prog in mkdir gmkdir; do 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2439 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2440 'mkdir (GNU coreutils) '* | \ 2441 'mkdir (coreutils) '* | \ 2442 'mkdir (fileutils) '4.1*) 2443 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2444 break 3;; 2445 esac 2446 done 2447 done 2448done 2449IFS=$as_save_IFS 2450 2451fi 2452 2453 if test "${ac_cv_path_mkdir+set}" = set; then 2454 MKDIR_P="$ac_cv_path_mkdir -p" 2455 else 2456 # As a last resort, use the slow shell script. Don't cache a 2457 # value for MKDIR_P within a source directory, because that will 2458 # break other packages using the cache if that directory is 2459 # removed, or if the value is a relative name. 2460 test -d ./--version && rmdir ./--version 2461 MKDIR_P="$ac_install_sh -d" 2462 fi 2463fi 2464{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2465$as_echo "$MKDIR_P" >&6; } 2466 2467mkdir_p="$MKDIR_P" 2468case $mkdir_p in 2469 [\\/$]* | ?:[\\/]*) ;; 2470 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2471esac 2472 2473for ac_prog in gawk mawk nawk awk 2474do 2475 # Extract the first word of "$ac_prog", so it can be a program name with args. 2476set dummy $ac_prog; ac_word=$2 2477{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2478$as_echo_n "checking for $ac_word... " >&6; } 2479if test "${ac_cv_prog_AWK+set}" = set; then 2480 $as_echo_n "(cached) " >&6 2481else 2482 if test -n "$AWK"; then 2483 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2484else 2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2486for as_dir in $PATH 2487do 2488 IFS=$as_save_IFS 2489 test -z "$as_dir" && as_dir=. 2490 for ac_exec_ext in '' $ac_executable_extensions; do 2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2492 ac_cv_prog_AWK="$ac_prog" 2493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2494 break 2 2495 fi 2496done 2497done 2498IFS=$as_save_IFS 2499 2500fi 2501fi 2502AWK=$ac_cv_prog_AWK 2503if test -n "$AWK"; then 2504 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2505$as_echo "$AWK" >&6; } 2506else 2507 { $as_echo "$as_me:$LINENO: result: no" >&5 2508$as_echo "no" >&6; } 2509fi 2510 2511 2512 test -n "$AWK" && break 2513done 2514 2515{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2516$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2517set x ${MAKE-make} 2518ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2519if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2520 $as_echo_n "(cached) " >&6 2521else 2522 cat >conftest.make <<\_ACEOF 2523SHELL = /bin/sh 2524all: 2525 @echo '@@@%%%=$(MAKE)=@@@%%%' 2526_ACEOF 2527# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2528case `${MAKE-make} -f conftest.make 2>/dev/null` in 2529 *@@@%%%=?*=@@@%%%*) 2530 eval ac_cv_prog_make_${ac_make}_set=yes;; 2531 *) 2532 eval ac_cv_prog_make_${ac_make}_set=no;; 2533esac 2534rm -f conftest.make 2535fi 2536if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2537 { $as_echo "$as_me:$LINENO: result: yes" >&5 2538$as_echo "yes" >&6; } 2539 SET_MAKE= 2540else 2541 { $as_echo "$as_me:$LINENO: result: no" >&5 2542$as_echo "no" >&6; } 2543 SET_MAKE="MAKE=${MAKE-make}" 2544fi 2545 2546rm -rf .tst 2>/dev/null 2547mkdir .tst 2>/dev/null 2548if test -d .tst; then 2549 am__leading_dot=. 2550else 2551 am__leading_dot=_ 2552fi 2553rmdir .tst 2>/dev/null 2554 2555if test "`cd $srcdir && pwd`" != "`pwd`"; then 2556 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2557 # is not polluted with repeated "-I." 2558 am__isrc=' -I$(srcdir)' 2559 # test to see if srcdir already configured 2560 if test -f $srcdir/config.status; then 2561 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2562$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2563 { (exit 1); exit 1; }; } 2564 fi 2565fi 2566 2567# test whether we have cygpath 2568if test -z "$CYGPATH_W"; then 2569 if (cygpath --version) >/dev/null 2>/dev/null; then 2570 CYGPATH_W='cygpath -w' 2571 else 2572 CYGPATH_W=echo 2573 fi 2574fi 2575 2576 2577# Define the identity of the package. 2578 PACKAGE='xf86-input-vmmouse' 2579 VERSION='12.6.10' 2580 2581 2582cat >>confdefs.h <<_ACEOF 2583#define PACKAGE "$PACKAGE" 2584_ACEOF 2585 2586 2587cat >>confdefs.h <<_ACEOF 2588#define VERSION "$VERSION" 2589_ACEOF 2590 2591# Some tools Automake needs. 2592 2593ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2594 2595 2596AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2597 2598 2599AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2600 2601 2602AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2603 2604 2605MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2606 2607# We need awk for the "check" target. The system "awk" is bad on 2608# some platforms. 2609# Always define AMTAR for backward compatibility. 2610 2611AMTAR=${AMTAR-"${am_missing_run}tar"} 2612 2613am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2614 2615 2616 2617 2618 2619 2620 2621{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2622$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2623 # Check whether --enable-maintainer-mode was given. 2624if test "${enable_maintainer_mode+set}" = set; then 2625 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2626else 2627 USE_MAINTAINER_MODE=no 2628fi 2629 2630 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2631$as_echo "$USE_MAINTAINER_MODE" >&6; } 2632 if test $USE_MAINTAINER_MODE = yes; then 2633 MAINTAINER_MODE_TRUE= 2634 MAINTAINER_MODE_FALSE='#' 2635else 2636 MAINTAINER_MODE_TRUE='#' 2637 MAINTAINER_MODE_FALSE= 2638fi 2639 2640 MAINT=$MAINTAINER_MODE_TRUE 2641 2642 2643 2644# Require xorg-macros: XORG_DEFAULT_OPTIONS 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656DEPDIR="${am__leading_dot}deps" 2657 2658ac_config_commands="$ac_config_commands depfiles" 2659 2660 2661am_make=${MAKE-make} 2662cat > confinc << 'END' 2663am__doit: 2664 @echo this is the am__doit target 2665.PHONY: am__doit 2666END 2667# If we don't find an include directive, just comment out the code. 2668{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2669$as_echo_n "checking for style of include used by $am_make... " >&6; } 2670am__include="#" 2671am__quote= 2672_am_result=none 2673# First try GNU make style include. 2674echo "include confinc" > confmf 2675# Ignore all kinds of additional output from `make'. 2676case `$am_make -s -f confmf 2> /dev/null` in #( 2677*the\ am__doit\ target*) 2678 am__include=include 2679 am__quote= 2680 _am_result=GNU 2681 ;; 2682esac 2683# Now try BSD make style include. 2684if test "$am__include" = "#"; then 2685 echo '.include "confinc"' > confmf 2686 case `$am_make -s -f confmf 2> /dev/null` in #( 2687 *the\ am__doit\ target*) 2688 am__include=.include 2689 am__quote="\"" 2690 _am_result=BSD 2691 ;; 2692 esac 2693fi 2694 2695 2696{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2697$as_echo "$_am_result" >&6; } 2698rm -f confinc confmf 2699 2700# Check whether --enable-dependency-tracking was given. 2701if test "${enable_dependency_tracking+set}" = set; then 2702 enableval=$enable_dependency_tracking; 2703fi 2704 2705if test "x$enable_dependency_tracking" != xno; then 2706 am_depcomp="$ac_aux_dir/depcomp" 2707 AMDEPBACKSLASH='\' 2708fi 2709 if test "x$enable_dependency_tracking" != xno; then 2710 AMDEP_TRUE= 2711 AMDEP_FALSE='#' 2712else 2713 AMDEP_TRUE='#' 2714 AMDEP_FALSE= 2715fi 2716 2717 2718ac_ext=c 2719ac_cpp='$CPP $CPPFLAGS' 2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2722ac_compiler_gnu=$ac_cv_c_compiler_gnu 2723if test -n "$ac_tool_prefix"; then 2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2725set dummy ${ac_tool_prefix}gcc; ac_word=$2 2726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2727$as_echo_n "checking for $ac_word... " >&6; } 2728if test "${ac_cv_prog_CC+set}" = set; then 2729 $as_echo_n "(cached) " >&6 2730else 2731 if test -n "$CC"; then 2732 ac_cv_prog_CC="$CC" # Let the user override the test. 2733else 2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735for as_dir in $PATH 2736do 2737 IFS=$as_save_IFS 2738 test -z "$as_dir" && as_dir=. 2739 for ac_exec_ext in '' $ac_executable_extensions; do 2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2741 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2743 break 2 2744 fi 2745done 2746done 2747IFS=$as_save_IFS 2748 2749fi 2750fi 2751CC=$ac_cv_prog_CC 2752if test -n "$CC"; then 2753 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2754$as_echo "$CC" >&6; } 2755else 2756 { $as_echo "$as_me:$LINENO: result: no" >&5 2757$as_echo "no" >&6; } 2758fi 2759 2760 2761fi 2762if test -z "$ac_cv_prog_CC"; then 2763 ac_ct_CC=$CC 2764 # Extract the first word of "gcc", so it can be a program name with args. 2765set dummy gcc; ac_word=$2 2766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2767$as_echo_n "checking for $ac_word... " >&6; } 2768if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2769 $as_echo_n "(cached) " >&6 2770else 2771 if test -n "$ac_ct_CC"; then 2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2773else 2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2775for as_dir in $PATH 2776do 2777 IFS=$as_save_IFS 2778 test -z "$as_dir" && as_dir=. 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2781 ac_cv_prog_ac_ct_CC="gcc" 2782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2783 break 2 2784 fi 2785done 2786done 2787IFS=$as_save_IFS 2788 2789fi 2790fi 2791ac_ct_CC=$ac_cv_prog_ac_ct_CC 2792if test -n "$ac_ct_CC"; then 2793 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2794$as_echo "$ac_ct_CC" >&6; } 2795else 2796 { $as_echo "$as_me:$LINENO: result: no" >&5 2797$as_echo "no" >&6; } 2798fi 2799 2800 if test "x$ac_ct_CC" = x; then 2801 CC="" 2802 else 2803 case $cross_compiling:$ac_tool_warned in 2804yes:) 2805{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2807ac_tool_warned=yes ;; 2808esac 2809 CC=$ac_ct_CC 2810 fi 2811else 2812 CC="$ac_cv_prog_CC" 2813fi 2814 2815if test -z "$CC"; then 2816 if test -n "$ac_tool_prefix"; then 2817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2818set dummy ${ac_tool_prefix}cc; ac_word=$2 2819{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2820$as_echo_n "checking for $ac_word... " >&6; } 2821if test "${ac_cv_prog_CC+set}" = set; then 2822 $as_echo_n "(cached) " >&6 2823else 2824 if test -n "$CC"; then 2825 ac_cv_prog_CC="$CC" # Let the user override the test. 2826else 2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2828for as_dir in $PATH 2829do 2830 IFS=$as_save_IFS 2831 test -z "$as_dir" && as_dir=. 2832 for ac_exec_ext in '' $ac_executable_extensions; do 2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2834 ac_cv_prog_CC="${ac_tool_prefix}cc" 2835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2836 break 2 2837 fi 2838done 2839done 2840IFS=$as_save_IFS 2841 2842fi 2843fi 2844CC=$ac_cv_prog_CC 2845if test -n "$CC"; then 2846 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2847$as_echo "$CC" >&6; } 2848else 2849 { $as_echo "$as_me:$LINENO: result: no" >&5 2850$as_echo "no" >&6; } 2851fi 2852 2853 2854 fi 2855fi 2856if test -z "$CC"; then 2857 # Extract the first word of "cc", so it can be a program name with args. 2858set dummy cc; ac_word=$2 2859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2860$as_echo_n "checking for $ac_word... " >&6; } 2861if test "${ac_cv_prog_CC+set}" = set; then 2862 $as_echo_n "(cached) " >&6 2863else 2864 if test -n "$CC"; then 2865 ac_cv_prog_CC="$CC" # Let the user override the test. 2866else 2867 ac_prog_rejected=no 2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869for as_dir in $PATH 2870do 2871 IFS=$as_save_IFS 2872 test -z "$as_dir" && as_dir=. 2873 for ac_exec_ext in '' $ac_executable_extensions; do 2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2875 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2876 ac_prog_rejected=yes 2877 continue 2878 fi 2879 ac_cv_prog_CC="cc" 2880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2881 break 2 2882 fi 2883done 2884done 2885IFS=$as_save_IFS 2886 2887if test $ac_prog_rejected = yes; then 2888 # We found a bogon in the path, so make sure we never use it. 2889 set dummy $ac_cv_prog_CC 2890 shift 2891 if test $# != 0; then 2892 # We chose a different compiler from the bogus one. 2893 # However, it has the same basename, so the bogon will be chosen 2894 # first if we set CC to just the basename; use the full file name. 2895 shift 2896 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2897 fi 2898fi 2899fi 2900fi 2901CC=$ac_cv_prog_CC 2902if test -n "$CC"; then 2903 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2904$as_echo "$CC" >&6; } 2905else 2906 { $as_echo "$as_me:$LINENO: result: no" >&5 2907$as_echo "no" >&6; } 2908fi 2909 2910 2911fi 2912if test -z "$CC"; then 2913 if test -n "$ac_tool_prefix"; then 2914 for ac_prog in cl.exe 2915 do 2916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2917set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2918{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2919$as_echo_n "checking for $ac_word... " >&6; } 2920if test "${ac_cv_prog_CC+set}" = set; then 2921 $as_echo_n "(cached) " >&6 2922else 2923 if test -n "$CC"; then 2924 ac_cv_prog_CC="$CC" # Let the user override the test. 2925else 2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH 2928do 2929 IFS=$as_save_IFS 2930 test -z "$as_dir" && as_dir=. 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938done 2939IFS=$as_save_IFS 2940 2941fi 2942fi 2943CC=$ac_cv_prog_CC 2944if test -n "$CC"; then 2945 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2946$as_echo "$CC" >&6; } 2947else 2948 { $as_echo "$as_me:$LINENO: result: no" >&5 2949$as_echo "no" >&6; } 2950fi 2951 2952 2953 test -n "$CC" && break 2954 done 2955fi 2956if test -z "$CC"; then 2957 ac_ct_CC=$CC 2958 for ac_prog in cl.exe 2959do 2960 # Extract the first word of "$ac_prog", so it can be a program name with args. 2961set dummy $ac_prog; ac_word=$2 2962{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2963$as_echo_n "checking for $ac_word... " >&6; } 2964if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2965 $as_echo_n "(cached) " >&6 2966else 2967 if test -n "$ac_ct_CC"; then 2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2969else 2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2971for as_dir in $PATH 2972do 2973 IFS=$as_save_IFS 2974 test -z "$as_dir" && as_dir=. 2975 for ac_exec_ext in '' $ac_executable_extensions; do 2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2977 ac_cv_prog_ac_ct_CC="$ac_prog" 2978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2979 break 2 2980 fi 2981done 2982done 2983IFS=$as_save_IFS 2984 2985fi 2986fi 2987ac_ct_CC=$ac_cv_prog_ac_ct_CC 2988if test -n "$ac_ct_CC"; then 2989 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2990$as_echo "$ac_ct_CC" >&6; } 2991else 2992 { $as_echo "$as_me:$LINENO: result: no" >&5 2993$as_echo "no" >&6; } 2994fi 2995 2996 2997 test -n "$ac_ct_CC" && break 2998done 2999 3000 if test "x$ac_ct_CC" = x; then 3001 CC="" 3002 else 3003 case $cross_compiling:$ac_tool_warned in 3004yes:) 3005{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3007ac_tool_warned=yes ;; 3008esac 3009 CC=$ac_ct_CC 3010 fi 3011fi 3012 3013fi 3014 3015 3016test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3018{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3019See \`config.log' for more details." >&5 3020$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3021See \`config.log' for more details." >&2;} 3022 { (exit 1); exit 1; }; }; } 3023 3024# Provide some information about the compiler. 3025$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3026set X $ac_compile 3027ac_compiler=$2 3028{ (ac_try="$ac_compiler --version >&5" 3029case "(($ac_try" in 3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3031 *) ac_try_echo=$ac_try;; 3032esac 3033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3034$as_echo "$ac_try_echo") >&5 3035 (eval "$ac_compiler --version >&5") 2>&5 3036 ac_status=$? 3037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3038 (exit $ac_status); } 3039{ (ac_try="$ac_compiler -v >&5" 3040case "(($ac_try" in 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 *) ac_try_echo=$ac_try;; 3043esac 3044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3045$as_echo "$ac_try_echo") >&5 3046 (eval "$ac_compiler -v >&5") 2>&5 3047 ac_status=$? 3048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3049 (exit $ac_status); } 3050{ (ac_try="$ac_compiler -V >&5" 3051case "(($ac_try" in 3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3053 *) ac_try_echo=$ac_try;; 3054esac 3055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3056$as_echo "$ac_try_echo") >&5 3057 (eval "$ac_compiler -V >&5") 2>&5 3058 ac_status=$? 3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); } 3061 3062cat >conftest.$ac_ext <<_ACEOF 3063/* confdefs.h. */ 3064_ACEOF 3065cat confdefs.h >>conftest.$ac_ext 3066cat >>conftest.$ac_ext <<_ACEOF 3067/* end confdefs.h. */ 3068 3069int 3070main () 3071{ 3072 3073 ; 3074 return 0; 3075} 3076_ACEOF 3077ac_clean_files_save=$ac_clean_files 3078ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3079# Try to create an executable without -o first, disregard a.out. 3080# It will help us diagnose broken compilers, and finding out an intuition 3081# of exeext. 3082{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3083$as_echo_n "checking for C compiler default output file name... " >&6; } 3084ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3085 3086# The possible output files: 3087ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3088 3089ac_rmfiles= 3090for ac_file in $ac_files 3091do 3092 case $ac_file in 3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3094 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3095 esac 3096done 3097rm -f $ac_rmfiles 3098 3099if { (ac_try="$ac_link_default" 3100case "(($ac_try" in 3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3102 *) ac_try_echo=$ac_try;; 3103esac 3104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3105$as_echo "$ac_try_echo") >&5 3106 (eval "$ac_link_default") 2>&5 3107 ac_status=$? 3108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); }; then 3110 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3111# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3112# in a Makefile. We should not override ac_cv_exeext if it was cached, 3113# so that the user can short-circuit this test for compilers unknown to 3114# Autoconf. 3115for ac_file in $ac_files '' 3116do 3117 test -f "$ac_file" || continue 3118 case $ac_file in 3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3120 ;; 3121 [ab].out ) 3122 # We found the default executable, but exeext='' is most 3123 # certainly right. 3124 break;; 3125 *.* ) 3126 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3127 then :; else 3128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3129 fi 3130 # We set ac_cv_exeext here because the later test for it is not 3131 # safe: cross compilers may not add the suffix if given an `-o' 3132 # argument, so we may need to know it at that point already. 3133 # Even if this section looks crufty: it has the advantage of 3134 # actually working. 3135 break;; 3136 * ) 3137 break;; 3138 esac 3139done 3140test "$ac_cv_exeext" = no && ac_cv_exeext= 3141 3142else 3143 ac_file='' 3144fi 3145 3146{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3147$as_echo "$ac_file" >&6; } 3148if test -z "$ac_file"; then 3149 $as_echo "$as_me: failed program was:" >&5 3150sed 's/^/| /' conftest.$ac_ext >&5 3151 3152{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3154{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3155See \`config.log' for more details." >&5 3156$as_echo "$as_me: error: C compiler cannot create executables 3157See \`config.log' for more details." >&2;} 3158 { (exit 77); exit 77; }; }; } 3159fi 3160 3161ac_exeext=$ac_cv_exeext 3162 3163# Check that the compiler produces executables we can run. If not, either 3164# the compiler is broken, or we cross compile. 3165{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3166$as_echo_n "checking whether the C compiler works... " >&6; } 3167# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3168# If not cross compiling, check that we can run a simple program. 3169if test "$cross_compiling" != yes; then 3170 if { ac_try='./$ac_file' 3171 { (case "(($ac_try" in 3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3173 *) ac_try_echo=$ac_try;; 3174esac 3175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3176$as_echo "$ac_try_echo") >&5 3177 (eval "$ac_try") 2>&5 3178 ac_status=$? 3179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3180 (exit $ac_status); }; }; then 3181 cross_compiling=no 3182 else 3183 if test "$cross_compiling" = maybe; then 3184 cross_compiling=yes 3185 else 3186 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3188{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3189If you meant to cross compile, use \`--host'. 3190See \`config.log' for more details." >&5 3191$as_echo "$as_me: error: cannot run C compiled programs. 3192If you meant to cross compile, use \`--host'. 3193See \`config.log' for more details." >&2;} 3194 { (exit 1); exit 1; }; }; } 3195 fi 3196 fi 3197fi 3198{ $as_echo "$as_me:$LINENO: result: yes" >&5 3199$as_echo "yes" >&6; } 3200 3201rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3202ac_clean_files=$ac_clean_files_save 3203# Check that the compiler produces executables we can run. If not, either 3204# the compiler is broken, or we cross compile. 3205{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3206$as_echo_n "checking whether we are cross compiling... " >&6; } 3207{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3208$as_echo "$cross_compiling" >&6; } 3209 3210{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3211$as_echo_n "checking for suffix of executables... " >&6; } 3212if { (ac_try="$ac_link" 3213case "(($ac_try" in 3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3215 *) ac_try_echo=$ac_try;; 3216esac 3217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3218$as_echo "$ac_try_echo") >&5 3219 (eval "$ac_link") 2>&5 3220 ac_status=$? 3221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3222 (exit $ac_status); }; then 3223 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3224# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3225# work properly (i.e., refer to `conftest.exe'), while it won't with 3226# `rm'. 3227for ac_file in conftest.exe conftest conftest.*; do 3228 test -f "$ac_file" || continue 3229 case $ac_file in 3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3232 break;; 3233 * ) break;; 3234 esac 3235done 3236else 3237 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3239{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3240See \`config.log' for more details." >&5 3241$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3242See \`config.log' for more details." >&2;} 3243 { (exit 1); exit 1; }; }; } 3244fi 3245 3246rm -f conftest$ac_cv_exeext 3247{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3248$as_echo "$ac_cv_exeext" >&6; } 3249 3250rm -f conftest.$ac_ext 3251EXEEXT=$ac_cv_exeext 3252ac_exeext=$EXEEXT 3253{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3254$as_echo_n "checking for suffix of object files... " >&6; } 3255if test "${ac_cv_objext+set}" = set; then 3256 $as_echo_n "(cached) " >&6 3257else 3258 cat >conftest.$ac_ext <<_ACEOF 3259/* confdefs.h. */ 3260_ACEOF 3261cat confdefs.h >>conftest.$ac_ext 3262cat >>conftest.$ac_ext <<_ACEOF 3263/* end confdefs.h. */ 3264 3265int 3266main () 3267{ 3268 3269 ; 3270 return 0; 3271} 3272_ACEOF 3273rm -f conftest.o conftest.obj 3274if { (ac_try="$ac_compile" 3275case "(($ac_try" in 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3277 *) ac_try_echo=$ac_try;; 3278esac 3279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3280$as_echo "$ac_try_echo") >&5 3281 (eval "$ac_compile") 2>&5 3282 ac_status=$? 3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3284 (exit $ac_status); }; then 3285 for ac_file in conftest.o conftest.obj conftest.*; do 3286 test -f "$ac_file" || continue; 3287 case $ac_file in 3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3290 break;; 3291 esac 3292done 3293else 3294 $as_echo "$as_me: failed program was:" >&5 3295sed 's/^/| /' conftest.$ac_ext >&5 3296 3297{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3299{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3300See \`config.log' for more details." >&5 3301$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3302See \`config.log' for more details." >&2;} 3303 { (exit 1); exit 1; }; }; } 3304fi 3305 3306rm -f conftest.$ac_cv_objext conftest.$ac_ext 3307fi 3308{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3309$as_echo "$ac_cv_objext" >&6; } 3310OBJEXT=$ac_cv_objext 3311ac_objext=$OBJEXT 3312{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3313$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3314if test "${ac_cv_c_compiler_gnu+set}" = set; then 3315 $as_echo_n "(cached) " >&6 3316else 3317 cat >conftest.$ac_ext <<_ACEOF 3318/* confdefs.h. */ 3319_ACEOF 3320cat confdefs.h >>conftest.$ac_ext 3321cat >>conftest.$ac_ext <<_ACEOF 3322/* end confdefs.h. */ 3323 3324int 3325main () 3326{ 3327#ifndef __GNUC__ 3328 choke me 3329#endif 3330 3331 ; 3332 return 0; 3333} 3334_ACEOF 3335rm -f conftest.$ac_objext 3336if { (ac_try="$ac_compile" 3337case "(($ac_try" in 3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3339 *) ac_try_echo=$ac_try;; 3340esac 3341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3342$as_echo "$ac_try_echo") >&5 3343 (eval "$ac_compile") 2>conftest.er1 3344 ac_status=$? 3345 grep -v '^ *+' conftest.er1 >conftest.err 3346 rm -f conftest.er1 3347 cat conftest.err >&5 3348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3349 (exit $ac_status); } && { 3350 test -z "$ac_c_werror_flag" || 3351 test ! -s conftest.err 3352 } && test -s conftest.$ac_objext; then 3353 ac_compiler_gnu=yes 3354else 3355 $as_echo "$as_me: failed program was:" >&5 3356sed 's/^/| /' conftest.$ac_ext >&5 3357 3358 ac_compiler_gnu=no 3359fi 3360 3361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3362ac_cv_c_compiler_gnu=$ac_compiler_gnu 3363 3364fi 3365{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3366$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3367if test $ac_compiler_gnu = yes; then 3368 GCC=yes 3369else 3370 GCC= 3371fi 3372ac_test_CFLAGS=${CFLAGS+set} 3373ac_save_CFLAGS=$CFLAGS 3374{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3375$as_echo_n "checking whether $CC accepts -g... " >&6; } 3376if test "${ac_cv_prog_cc_g+set}" = set; then 3377 $as_echo_n "(cached) " >&6 3378else 3379 ac_save_c_werror_flag=$ac_c_werror_flag 3380 ac_c_werror_flag=yes 3381 ac_cv_prog_cc_g=no 3382 CFLAGS="-g" 3383 cat >conftest.$ac_ext <<_ACEOF 3384/* confdefs.h. */ 3385_ACEOF 3386cat confdefs.h >>conftest.$ac_ext 3387cat >>conftest.$ac_ext <<_ACEOF 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398rm -f conftest.$ac_objext 3399if { (ac_try="$ac_compile" 3400case "(($ac_try" in 3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3402 *) ac_try_echo=$ac_try;; 3403esac 3404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3405$as_echo "$ac_try_echo") >&5 3406 (eval "$ac_compile") 2>conftest.er1 3407 ac_status=$? 3408 grep -v '^ *+' conftest.er1 >conftest.err 3409 rm -f conftest.er1 3410 cat conftest.err >&5 3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3412 (exit $ac_status); } && { 3413 test -z "$ac_c_werror_flag" || 3414 test ! -s conftest.err 3415 } && test -s conftest.$ac_objext; then 3416 ac_cv_prog_cc_g=yes 3417else 3418 $as_echo "$as_me: failed program was:" >&5 3419sed 's/^/| /' conftest.$ac_ext >&5 3420 3421 CFLAGS="" 3422 cat >conftest.$ac_ext <<_ACEOF 3423/* confdefs.h. */ 3424_ACEOF 3425cat confdefs.h >>conftest.$ac_ext 3426cat >>conftest.$ac_ext <<_ACEOF 3427/* end confdefs.h. */ 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437rm -f conftest.$ac_objext 3438if { (ac_try="$ac_compile" 3439case "(($ac_try" in 3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3441 *) ac_try_echo=$ac_try;; 3442esac 3443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3444$as_echo "$ac_try_echo") >&5 3445 (eval "$ac_compile") 2>conftest.er1 3446 ac_status=$? 3447 grep -v '^ *+' conftest.er1 >conftest.err 3448 rm -f conftest.er1 3449 cat conftest.err >&5 3450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); } && { 3452 test -z "$ac_c_werror_flag" || 3453 test ! -s conftest.err 3454 } && test -s conftest.$ac_objext; then 3455 : 3456else 3457 $as_echo "$as_me: failed program was:" >&5 3458sed 's/^/| /' conftest.$ac_ext >&5 3459 3460 ac_c_werror_flag=$ac_save_c_werror_flag 3461 CFLAGS="-g" 3462 cat >conftest.$ac_ext <<_ACEOF 3463/* confdefs.h. */ 3464_ACEOF 3465cat confdefs.h >>conftest.$ac_ext 3466cat >>conftest.$ac_ext <<_ACEOF 3467/* end confdefs.h. */ 3468 3469int 3470main () 3471{ 3472 3473 ; 3474 return 0; 3475} 3476_ACEOF 3477rm -f conftest.$ac_objext 3478if { (ac_try="$ac_compile" 3479case "(($ac_try" in 3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3481 *) ac_try_echo=$ac_try;; 3482esac 3483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3484$as_echo "$ac_try_echo") >&5 3485 (eval "$ac_compile") 2>conftest.er1 3486 ac_status=$? 3487 grep -v '^ *+' conftest.er1 >conftest.err 3488 rm -f conftest.er1 3489 cat conftest.err >&5 3490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3491 (exit $ac_status); } && { 3492 test -z "$ac_c_werror_flag" || 3493 test ! -s conftest.err 3494 } && test -s conftest.$ac_objext; then 3495 ac_cv_prog_cc_g=yes 3496else 3497 $as_echo "$as_me: failed program was:" >&5 3498sed 's/^/| /' conftest.$ac_ext >&5 3499 3500 3501fi 3502 3503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3504fi 3505 3506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3507fi 3508 3509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3510 ac_c_werror_flag=$ac_save_c_werror_flag 3511fi 3512{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3513$as_echo "$ac_cv_prog_cc_g" >&6; } 3514if test "$ac_test_CFLAGS" = set; then 3515 CFLAGS=$ac_save_CFLAGS 3516elif test $ac_cv_prog_cc_g = yes; then 3517 if test "$GCC" = yes; then 3518 CFLAGS="-g -O2" 3519 else 3520 CFLAGS="-g" 3521 fi 3522else 3523 if test "$GCC" = yes; then 3524 CFLAGS="-O2" 3525 else 3526 CFLAGS= 3527 fi 3528fi 3529{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3530$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3531if test "${ac_cv_prog_cc_c89+set}" = set; then 3532 $as_echo_n "(cached) " >&6 3533else 3534 ac_cv_prog_cc_c89=no 3535ac_save_CC=$CC 3536cat >conftest.$ac_ext <<_ACEOF 3537/* confdefs.h. */ 3538_ACEOF 3539cat confdefs.h >>conftest.$ac_ext 3540cat >>conftest.$ac_ext <<_ACEOF 3541/* end confdefs.h. */ 3542#include <stdarg.h> 3543#include <stdio.h> 3544#include <sys/types.h> 3545#include <sys/stat.h> 3546/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3547struct buf { int x; }; 3548FILE * (*rcsopen) (struct buf *, struct stat *, int); 3549static char *e (p, i) 3550 char **p; 3551 int i; 3552{ 3553 return p[i]; 3554} 3555static char *f (char * (*g) (char **, int), char **p, ...) 3556{ 3557 char *s; 3558 va_list v; 3559 va_start (v,p); 3560 s = g (p, va_arg (v,int)); 3561 va_end (v); 3562 return s; 3563} 3564 3565/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3566 function prototypes and stuff, but not '\xHH' hex character constants. 3567 These don't provoke an error unfortunately, instead are silently treated 3568 as 'x'. The following induces an error, until -std is added to get 3569 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3570 array size at least. It's necessary to write '\x00'==0 to get something 3571 that's true only with -std. */ 3572int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3573 3574/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3575 inside strings and character constants. */ 3576#define FOO(x) 'x' 3577int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3578 3579int test (int i, double x); 3580struct s1 {int (*f) (int a);}; 3581struct s2 {int (*f) (double a);}; 3582int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3583int argc; 3584char **argv; 3585int 3586main () 3587{ 3588return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3589 ; 3590 return 0; 3591} 3592_ACEOF 3593for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3594 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3595do 3596 CC="$ac_save_CC $ac_arg" 3597 rm -f conftest.$ac_objext 3598if { (ac_try="$ac_compile" 3599case "(($ac_try" in 3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3601 *) ac_try_echo=$ac_try;; 3602esac 3603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3604$as_echo "$ac_try_echo") >&5 3605 (eval "$ac_compile") 2>conftest.er1 3606 ac_status=$? 3607 grep -v '^ *+' conftest.er1 >conftest.err 3608 rm -f conftest.er1 3609 cat conftest.err >&5 3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 (exit $ac_status); } && { 3612 test -z "$ac_c_werror_flag" || 3613 test ! -s conftest.err 3614 } && test -s conftest.$ac_objext; then 3615 ac_cv_prog_cc_c89=$ac_arg 3616else 3617 $as_echo "$as_me: failed program was:" >&5 3618sed 's/^/| /' conftest.$ac_ext >&5 3619 3620 3621fi 3622 3623rm -f core conftest.err conftest.$ac_objext 3624 test "x$ac_cv_prog_cc_c89" != "xno" && break 3625done 3626rm -f conftest.$ac_ext 3627CC=$ac_save_CC 3628 3629fi 3630# AC_CACHE_VAL 3631case "x$ac_cv_prog_cc_c89" in 3632 x) 3633 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3634$as_echo "none needed" >&6; } ;; 3635 xno) 3636 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3637$as_echo "unsupported" >&6; } ;; 3638 *) 3639 CC="$CC $ac_cv_prog_cc_c89" 3640 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3641$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3642esac 3643 3644 3645ac_ext=c 3646ac_cpp='$CPP $CPPFLAGS' 3647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3649ac_compiler_gnu=$ac_cv_c_compiler_gnu 3650 3651depcc="$CC" am_compiler_list= 3652 3653{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3654$as_echo_n "checking dependency style of $depcc... " >&6; } 3655if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3656 $as_echo_n "(cached) " >&6 3657else 3658 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3659 # We make a subdir and do the tests there. Otherwise we can end up 3660 # making bogus files that we don't know about and never remove. For 3661 # instance it was reported that on HP-UX the gcc test will end up 3662 # making a dummy file named `D' -- because `-MD' means `put the output 3663 # in D'. 3664 mkdir conftest.dir 3665 # Copy depcomp to subdir because otherwise we won't find it if we're 3666 # using a relative directory. 3667 cp "$am_depcomp" conftest.dir 3668 cd conftest.dir 3669 # We will build objects and dependencies in a subdirectory because 3670 # it helps to detect inapplicable dependency modes. For instance 3671 # both Tru64's cc and ICC support -MD to output dependencies as a 3672 # side effect of compilation, but ICC will put the dependencies in 3673 # the current directory while Tru64 will put them in the object 3674 # directory. 3675 mkdir sub 3676 3677 am_cv_CC_dependencies_compiler_type=none 3678 if test "$am_compiler_list" = ""; then 3679 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3680 fi 3681 am__universal=false 3682 case " $depcc " in #( 3683 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3684 esac 3685 3686 for depmode in $am_compiler_list; do 3687 # Setup a source with many dependencies, because some compilers 3688 # like to wrap large dependency lists on column 80 (with \), and 3689 # we should not choose a depcomp mode which is confused by this. 3690 # 3691 # We need to recreate these files for each test, as the compiler may 3692 # overwrite some of them when testing with obscure command lines. 3693 # This happens at least with the AIX C compiler. 3694 : > sub/conftest.c 3695 for i in 1 2 3 4 5 6; do 3696 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3697 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3698 # Solaris 8's {/usr,}/bin/sh. 3699 touch sub/conftst$i.h 3700 done 3701 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3702 3703 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3704 # mode. It turns out that the SunPro C++ compiler does not properly 3705 # handle `-M -o', and we need to detect this. Also, some Intel 3706 # versions had trouble with output in subdirs 3707 am__obj=sub/conftest.${OBJEXT-o} 3708 am__minus_obj="-o $am__obj" 3709 case $depmode in 3710 gcc) 3711 # This depmode causes a compiler race in universal mode. 3712 test "$am__universal" = false || continue 3713 ;; 3714 nosideeffect) 3715 # after this tag, mechanisms are not by side-effect, so they'll 3716 # only be used when explicitly requested 3717 if test "x$enable_dependency_tracking" = xyes; then 3718 continue 3719 else 3720 break 3721 fi 3722 ;; 3723 msvisualcpp | msvcmsys) 3724 # This compiler won't grok `-c -o', but also, the minuso test has 3725 # not run yet. These depmodes are late enough in the game, and 3726 # so weak that their functioning should not be impacted. 3727 am__obj=conftest.${OBJEXT-o} 3728 am__minus_obj= 3729 ;; 3730 none) break ;; 3731 esac 3732 if depmode=$depmode \ 3733 source=sub/conftest.c object=$am__obj \ 3734 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3735 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3736 >/dev/null 2>conftest.err && 3737 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3738 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3739 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3740 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3741 # icc doesn't choke on unknown options, it will just issue warnings 3742 # or remarks (even with -Werror). So we grep stderr for any message 3743 # that says an option was ignored or not supported. 3744 # When given -MP, icc 7.0 and 7.1 complain thusly: 3745 # icc: Command line warning: ignoring option '-M'; no argument required 3746 # The diagnosis changed in icc 8.0: 3747 # icc: Command line remark: option '-MP' not supported 3748 if (grep 'ignoring option' conftest.err || 3749 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3750 am_cv_CC_dependencies_compiler_type=$depmode 3751 break 3752 fi 3753 fi 3754 done 3755 3756 cd .. 3757 rm -rf conftest.dir 3758else 3759 am_cv_CC_dependencies_compiler_type=none 3760fi 3761 3762fi 3763{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3764$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3765CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3766 3767 if 3768 test "x$enable_dependency_tracking" != xno \ 3769 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3770 am__fastdepCC_TRUE= 3771 am__fastdepCC_FALSE='#' 3772else 3773 am__fastdepCC_TRUE='#' 3774 am__fastdepCC_FALSE= 3775fi 3776 3777 3778 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 3779$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3780if test "${ac_cv_prog_cc_c99+set}" = set; then 3781 $as_echo_n "(cached) " >&6 3782else 3783 ac_cv_prog_cc_c99=no 3784ac_save_CC=$CC 3785cat >conftest.$ac_ext <<_ACEOF 3786/* confdefs.h. */ 3787_ACEOF 3788cat confdefs.h >>conftest.$ac_ext 3789cat >>conftest.$ac_ext <<_ACEOF 3790/* end confdefs.h. */ 3791#include <stdarg.h> 3792#include <stdbool.h> 3793#include <stdlib.h> 3794#include <wchar.h> 3795#include <stdio.h> 3796 3797// Check varargs macros. These examples are taken from C99 6.10.3.5. 3798#define debug(...) fprintf (stderr, __VA_ARGS__) 3799#define showlist(...) puts (#__VA_ARGS__) 3800#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3801static void 3802test_varargs_macros (void) 3803{ 3804 int x = 1234; 3805 int y = 5678; 3806 debug ("Flag"); 3807 debug ("X = %d\n", x); 3808 showlist (The first, second, and third items.); 3809 report (x>y, "x is %d but y is %d", x, y); 3810} 3811 3812// Check long long types. 3813#define BIG64 18446744073709551615ull 3814#define BIG32 4294967295ul 3815#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3816#if !BIG_OK 3817 your preprocessor is broken; 3818#endif 3819#if BIG_OK 3820#else 3821 your preprocessor is broken; 3822#endif 3823static long long int bignum = -9223372036854775807LL; 3824static unsigned long long int ubignum = BIG64; 3825 3826struct incomplete_array 3827{ 3828 int datasize; 3829 double data[]; 3830}; 3831 3832struct named_init { 3833 int number; 3834 const wchar_t *name; 3835 double average; 3836}; 3837 3838typedef const char *ccp; 3839 3840static inline int 3841test_restrict (ccp restrict text) 3842{ 3843 // See if C++-style comments work. 3844 // Iterate through items via the restricted pointer. 3845 // Also check for declarations in for loops. 3846 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3847 continue; 3848 return 0; 3849} 3850 3851// Check varargs and va_copy. 3852static void 3853test_varargs (const char *format, ...) 3854{ 3855 va_list args; 3856 va_start (args, format); 3857 va_list args_copy; 3858 va_copy (args_copy, args); 3859 3860 const char *str; 3861 int number; 3862 float fnumber; 3863 3864 while (*format) 3865 { 3866 switch (*format++) 3867 { 3868 case 's': // string 3869 str = va_arg (args_copy, const char *); 3870 break; 3871 case 'd': // int 3872 number = va_arg (args_copy, int); 3873 break; 3874 case 'f': // float 3875 fnumber = va_arg (args_copy, double); 3876 break; 3877 default: 3878 break; 3879 } 3880 } 3881 va_end (args_copy); 3882 va_end (args); 3883} 3884 3885int 3886main () 3887{ 3888 3889 // Check bool. 3890 _Bool success = false; 3891 3892 // Check restrict. 3893 if (test_restrict ("String literal") == 0) 3894 success = true; 3895 char *restrict newvar = "Another string"; 3896 3897 // Check varargs. 3898 test_varargs ("s, d' f .", "string", 65, 34.234); 3899 test_varargs_macros (); 3900 3901 // Check flexible array members. 3902 struct incomplete_array *ia = 3903 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3904 ia->datasize = 10; 3905 for (int i = 0; i < ia->datasize; ++i) 3906 ia->data[i] = i * 1.234; 3907 3908 // Check named initializers. 3909 struct named_init ni = { 3910 .number = 34, 3911 .name = L"Test wide string", 3912 .average = 543.34343, 3913 }; 3914 3915 ni.number = 58; 3916 3917 int dynamic_array[ni.number]; 3918 dynamic_array[ni.number - 1] = 543; 3919 3920 // work around unused variable warnings 3921 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3922 || dynamic_array[ni.number - 1] != 543); 3923 3924 ; 3925 return 0; 3926} 3927_ACEOF 3928for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3929do 3930 CC="$ac_save_CC $ac_arg" 3931 rm -f conftest.$ac_objext 3932if { (ac_try="$ac_compile" 3933case "(($ac_try" in 3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3935 *) ac_try_echo=$ac_try;; 3936esac 3937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3938$as_echo "$ac_try_echo") >&5 3939 (eval "$ac_compile") 2>conftest.er1 3940 ac_status=$? 3941 grep -v '^ *+' conftest.er1 >conftest.err 3942 rm -f conftest.er1 3943 cat conftest.err >&5 3944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3945 (exit $ac_status); } && { 3946 test -z "$ac_c_werror_flag" || 3947 test ! -s conftest.err 3948 } && test -s conftest.$ac_objext; then 3949 ac_cv_prog_cc_c99=$ac_arg 3950else 3951 $as_echo "$as_me: failed program was:" >&5 3952sed 's/^/| /' conftest.$ac_ext >&5 3953 3954 3955fi 3956 3957rm -f core conftest.err conftest.$ac_objext 3958 test "x$ac_cv_prog_cc_c99" != "xno" && break 3959done 3960rm -f conftest.$ac_ext 3961CC=$ac_save_CC 3962 3963fi 3964# AC_CACHE_VAL 3965case "x$ac_cv_prog_cc_c99" in 3966 x) 3967 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3968$as_echo "none needed" >&6; } ;; 3969 xno) 3970 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3971$as_echo "unsupported" >&6; } ;; 3972 *) 3973 CC="$CC $ac_cv_prog_cc_c99" 3974 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 3975$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3976esac 3977 3978 3979 3980 3981ac_ext=c 3982ac_cpp='$CPP $CPPFLAGS' 3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3985ac_compiler_gnu=$ac_cv_c_compiler_gnu 3986{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3987$as_echo_n "checking how to run the C preprocessor... " >&6; } 3988# On Suns, sometimes $CPP names a directory. 3989if test -n "$CPP" && test -d "$CPP"; then 3990 CPP= 3991fi 3992if test -z "$CPP"; then 3993 if test "${ac_cv_prog_CPP+set}" = set; then 3994 $as_echo_n "(cached) " >&6 3995else 3996 # Double quotes because CPP needs to be expanded 3997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3998 do 3999 ac_preproc_ok=false 4000for ac_c_preproc_warn_flag in '' yes 4001do 4002 # Use a header file that comes with gcc, so configuring glibc 4003 # with a fresh cross-compiler works. 4004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4005 # <limits.h> exists even on freestanding compilers. 4006 # On the NeXT, cc -E runs the code through the compiler's parser, 4007 # not just through cpp. "Syntax error" is here to catch this case. 4008 cat >conftest.$ac_ext <<_ACEOF 4009/* confdefs.h. */ 4010_ACEOF 4011cat confdefs.h >>conftest.$ac_ext 4012cat >>conftest.$ac_ext <<_ACEOF 4013/* end confdefs.h. */ 4014#ifdef __STDC__ 4015# include <limits.h> 4016#else 4017# include <assert.h> 4018#endif 4019 Syntax error 4020_ACEOF 4021if { (ac_try="$ac_cpp conftest.$ac_ext" 4022case "(($ac_try" in 4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4024 *) ac_try_echo=$ac_try;; 4025esac 4026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4027$as_echo "$ac_try_echo") >&5 4028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4029 ac_status=$? 4030 grep -v '^ *+' conftest.er1 >conftest.err 4031 rm -f conftest.er1 4032 cat conftest.err >&5 4033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4034 (exit $ac_status); } >/dev/null && { 4035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4036 test ! -s conftest.err 4037 }; then 4038 : 4039else 4040 $as_echo "$as_me: failed program was:" >&5 4041sed 's/^/| /' conftest.$ac_ext >&5 4042 4043 # Broken: fails on valid input. 4044continue 4045fi 4046 4047rm -f conftest.err conftest.$ac_ext 4048 4049 # OK, works on sane cases. Now check whether nonexistent headers 4050 # can be detected and how. 4051 cat >conftest.$ac_ext <<_ACEOF 4052/* confdefs.h. */ 4053_ACEOF 4054cat confdefs.h >>conftest.$ac_ext 4055cat >>conftest.$ac_ext <<_ACEOF 4056/* end confdefs.h. */ 4057#include <ac_nonexistent.h> 4058_ACEOF 4059if { (ac_try="$ac_cpp conftest.$ac_ext" 4060case "(($ac_try" in 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4062 *) ac_try_echo=$ac_try;; 4063esac 4064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4065$as_echo "$ac_try_echo") >&5 4066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4067 ac_status=$? 4068 grep -v '^ *+' conftest.er1 >conftest.err 4069 rm -f conftest.er1 4070 cat conftest.err >&5 4071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4072 (exit $ac_status); } >/dev/null && { 4073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4074 test ! -s conftest.err 4075 }; then 4076 # Broken: success on invalid input. 4077continue 4078else 4079 $as_echo "$as_me: failed program was:" >&5 4080sed 's/^/| /' conftest.$ac_ext >&5 4081 4082 # Passes both tests. 4083ac_preproc_ok=: 4084break 4085fi 4086 4087rm -f conftest.err conftest.$ac_ext 4088 4089done 4090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4091rm -f conftest.err conftest.$ac_ext 4092if $ac_preproc_ok; then 4093 break 4094fi 4095 4096 done 4097 ac_cv_prog_CPP=$CPP 4098 4099fi 4100 CPP=$ac_cv_prog_CPP 4101else 4102 ac_cv_prog_CPP=$CPP 4103fi 4104{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4105$as_echo "$CPP" >&6; } 4106ac_preproc_ok=false 4107for ac_c_preproc_warn_flag in '' yes 4108do 4109 # Use a header file that comes with gcc, so configuring glibc 4110 # with a fresh cross-compiler works. 4111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4112 # <limits.h> exists even on freestanding compilers. 4113 # On the NeXT, cc -E runs the code through the compiler's parser, 4114 # not just through cpp. "Syntax error" is here to catch this case. 4115 cat >conftest.$ac_ext <<_ACEOF 4116/* confdefs.h. */ 4117_ACEOF 4118cat confdefs.h >>conftest.$ac_ext 4119cat >>conftest.$ac_ext <<_ACEOF 4120/* end confdefs.h. */ 4121#ifdef __STDC__ 4122# include <limits.h> 4123#else 4124# include <assert.h> 4125#endif 4126 Syntax error 4127_ACEOF 4128if { (ac_try="$ac_cpp conftest.$ac_ext" 4129case "(($ac_try" in 4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4131 *) ac_try_echo=$ac_try;; 4132esac 4133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4134$as_echo "$ac_try_echo") >&5 4135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4136 ac_status=$? 4137 grep -v '^ *+' conftest.er1 >conftest.err 4138 rm -f conftest.er1 4139 cat conftest.err >&5 4140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4141 (exit $ac_status); } >/dev/null && { 4142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4143 test ! -s conftest.err 4144 }; then 4145 : 4146else 4147 $as_echo "$as_me: failed program was:" >&5 4148sed 's/^/| /' conftest.$ac_ext >&5 4149 4150 # Broken: fails on valid input. 4151continue 4152fi 4153 4154rm -f conftest.err conftest.$ac_ext 4155 4156 # OK, works on sane cases. Now check whether nonexistent headers 4157 # can be detected and how. 4158 cat >conftest.$ac_ext <<_ACEOF 4159/* confdefs.h. */ 4160_ACEOF 4161cat confdefs.h >>conftest.$ac_ext 4162cat >>conftest.$ac_ext <<_ACEOF 4163/* end confdefs.h. */ 4164#include <ac_nonexistent.h> 4165_ACEOF 4166if { (ac_try="$ac_cpp conftest.$ac_ext" 4167case "(($ac_try" in 4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4169 *) ac_try_echo=$ac_try;; 4170esac 4171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4172$as_echo "$ac_try_echo") >&5 4173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4174 ac_status=$? 4175 grep -v '^ *+' conftest.er1 >conftest.err 4176 rm -f conftest.er1 4177 cat conftest.err >&5 4178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4179 (exit $ac_status); } >/dev/null && { 4180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4181 test ! -s conftest.err 4182 }; then 4183 # Broken: success on invalid input. 4184continue 4185else 4186 $as_echo "$as_me: failed program was:" >&5 4187sed 's/^/| /' conftest.$ac_ext >&5 4188 4189 # Passes both tests. 4190ac_preproc_ok=: 4191break 4192fi 4193 4194rm -f conftest.err conftest.$ac_ext 4195 4196done 4197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4198rm -f conftest.err conftest.$ac_ext 4199if $ac_preproc_ok; then 4200 : 4201else 4202 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4204{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4205See \`config.log' for more details." >&5 4206$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4207See \`config.log' for more details." >&2;} 4208 { (exit 1); exit 1; }; }; } 4209fi 4210 4211ac_ext=c 4212ac_cpp='$CPP $CPPFLAGS' 4213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4215ac_compiler_gnu=$ac_cv_c_compiler_gnu 4216 4217 4218{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4219$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4220if test "${ac_cv_path_GREP+set}" = set; then 4221 $as_echo_n "(cached) " >&6 4222else 4223 if test -z "$GREP"; then 4224 ac_path_GREP_found=false 4225 # Loop through the user's path and test for each of PROGNAME-LIST 4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4228do 4229 IFS=$as_save_IFS 4230 test -z "$as_dir" && as_dir=. 4231 for ac_prog in grep ggrep; do 4232 for ac_exec_ext in '' $ac_executable_extensions; do 4233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4235# Check for GNU ac_path_GREP and select it if it is found. 4236 # Check for GNU $ac_path_GREP 4237case `"$ac_path_GREP" --version 2>&1` in 4238*GNU*) 4239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4240*) 4241 ac_count=0 4242 $as_echo_n 0123456789 >"conftest.in" 4243 while : 4244 do 4245 cat "conftest.in" "conftest.in" >"conftest.tmp" 4246 mv "conftest.tmp" "conftest.in" 4247 cp "conftest.in" "conftest.nl" 4248 $as_echo 'GREP' >> "conftest.nl" 4249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4251 ac_count=`expr $ac_count + 1` 4252 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4253 # Best one so far, save it but keep looking for a better one 4254 ac_cv_path_GREP="$ac_path_GREP" 4255 ac_path_GREP_max=$ac_count 4256 fi 4257 # 10*(2^10) chars as input seems more than enough 4258 test $ac_count -gt 10 && break 4259 done 4260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4261esac 4262 4263 $ac_path_GREP_found && break 3 4264 done 4265 done 4266done 4267IFS=$as_save_IFS 4268 if test -z "$ac_cv_path_GREP"; then 4269 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4270$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4271 { (exit 1); exit 1; }; } 4272 fi 4273else 4274 ac_cv_path_GREP=$GREP 4275fi 4276 4277fi 4278{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4279$as_echo "$ac_cv_path_GREP" >&6; } 4280 GREP="$ac_cv_path_GREP" 4281 4282 4283{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4284$as_echo_n "checking for egrep... " >&6; } 4285if test "${ac_cv_path_EGREP+set}" = set; then 4286 $as_echo_n "(cached) " >&6 4287else 4288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4289 then ac_cv_path_EGREP="$GREP -E" 4290 else 4291 if test -z "$EGREP"; then 4292 ac_path_EGREP_found=false 4293 # Loop through the user's path and test for each of PROGNAME-LIST 4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4296do 4297 IFS=$as_save_IFS 4298 test -z "$as_dir" && as_dir=. 4299 for ac_prog in egrep; do 4300 for ac_exec_ext in '' $ac_executable_extensions; do 4301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4303# Check for GNU ac_path_EGREP and select it if it is found. 4304 # Check for GNU $ac_path_EGREP 4305case `"$ac_path_EGREP" --version 2>&1` in 4306*GNU*) 4307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4308*) 4309 ac_count=0 4310 $as_echo_n 0123456789 >"conftest.in" 4311 while : 4312 do 4313 cat "conftest.in" "conftest.in" >"conftest.tmp" 4314 mv "conftest.tmp" "conftest.in" 4315 cp "conftest.in" "conftest.nl" 4316 $as_echo 'EGREP' >> "conftest.nl" 4317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4319 ac_count=`expr $ac_count + 1` 4320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4321 # Best one so far, save it but keep looking for a better one 4322 ac_cv_path_EGREP="$ac_path_EGREP" 4323 ac_path_EGREP_max=$ac_count 4324 fi 4325 # 10*(2^10) chars as input seems more than enough 4326 test $ac_count -gt 10 && break 4327 done 4328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4329esac 4330 4331 $ac_path_EGREP_found && break 3 4332 done 4333 done 4334done 4335IFS=$as_save_IFS 4336 if test -z "$ac_cv_path_EGREP"; then 4337 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4338$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4339 { (exit 1); exit 1; }; } 4340 fi 4341else 4342 ac_cv_path_EGREP=$EGREP 4343fi 4344 4345 fi 4346fi 4347{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4348$as_echo "$ac_cv_path_EGREP" >&6; } 4349 EGREP="$ac_cv_path_EGREP" 4350 4351 4352{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4353$as_echo_n "checking for ANSI C header files... " >&6; } 4354if test "${ac_cv_header_stdc+set}" = set; then 4355 $as_echo_n "(cached) " >&6 4356else 4357 cat >conftest.$ac_ext <<_ACEOF 4358/* confdefs.h. */ 4359_ACEOF 4360cat confdefs.h >>conftest.$ac_ext 4361cat >>conftest.$ac_ext <<_ACEOF 4362/* end confdefs.h. */ 4363#include <stdlib.h> 4364#include <stdarg.h> 4365#include <string.h> 4366#include <float.h> 4367 4368int 4369main () 4370{ 4371 4372 ; 4373 return 0; 4374} 4375_ACEOF 4376rm -f conftest.$ac_objext 4377if { (ac_try="$ac_compile" 4378case "(($ac_try" in 4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4380 *) ac_try_echo=$ac_try;; 4381esac 4382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4383$as_echo "$ac_try_echo") >&5 4384 (eval "$ac_compile") 2>conftest.er1 4385 ac_status=$? 4386 grep -v '^ *+' conftest.er1 >conftest.err 4387 rm -f conftest.er1 4388 cat conftest.err >&5 4389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4390 (exit $ac_status); } && { 4391 test -z "$ac_c_werror_flag" || 4392 test ! -s conftest.err 4393 } && test -s conftest.$ac_objext; then 4394 ac_cv_header_stdc=yes 4395else 4396 $as_echo "$as_me: failed program was:" >&5 4397sed 's/^/| /' conftest.$ac_ext >&5 4398 4399 ac_cv_header_stdc=no 4400fi 4401 4402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4403 4404if test $ac_cv_header_stdc = yes; then 4405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4406 cat >conftest.$ac_ext <<_ACEOF 4407/* confdefs.h. */ 4408_ACEOF 4409cat confdefs.h >>conftest.$ac_ext 4410cat >>conftest.$ac_ext <<_ACEOF 4411/* end confdefs.h. */ 4412#include <string.h> 4413 4414_ACEOF 4415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4416 $EGREP "memchr" >/dev/null 2>&1; then 4417 : 4418else 4419 ac_cv_header_stdc=no 4420fi 4421rm -f conftest* 4422 4423fi 4424 4425if test $ac_cv_header_stdc = yes; then 4426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4427 cat >conftest.$ac_ext <<_ACEOF 4428/* confdefs.h. */ 4429_ACEOF 4430cat confdefs.h >>conftest.$ac_ext 4431cat >>conftest.$ac_ext <<_ACEOF 4432/* end confdefs.h. */ 4433#include <stdlib.h> 4434 4435_ACEOF 4436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4437 $EGREP "free" >/dev/null 2>&1; then 4438 : 4439else 4440 ac_cv_header_stdc=no 4441fi 4442rm -f conftest* 4443 4444fi 4445 4446if test $ac_cv_header_stdc = yes; then 4447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4448 if test "$cross_compiling" = yes; then 4449 : 4450else 4451 cat >conftest.$ac_ext <<_ACEOF 4452/* confdefs.h. */ 4453_ACEOF 4454cat confdefs.h >>conftest.$ac_ext 4455cat >>conftest.$ac_ext <<_ACEOF 4456/* end confdefs.h. */ 4457#include <ctype.h> 4458#include <stdlib.h> 4459#if ((' ' & 0x0FF) == 0x020) 4460# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4461# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4462#else 4463# define ISLOWER(c) \ 4464 (('a' <= (c) && (c) <= 'i') \ 4465 || ('j' <= (c) && (c) <= 'r') \ 4466 || ('s' <= (c) && (c) <= 'z')) 4467# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4468#endif 4469 4470#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4471int 4472main () 4473{ 4474 int i; 4475 for (i = 0; i < 256; i++) 4476 if (XOR (islower (i), ISLOWER (i)) 4477 || toupper (i) != TOUPPER (i)) 4478 return 2; 4479 return 0; 4480} 4481_ACEOF 4482rm -f conftest$ac_exeext 4483if { (ac_try="$ac_link" 4484case "(($ac_try" in 4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4486 *) ac_try_echo=$ac_try;; 4487esac 4488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4489$as_echo "$ac_try_echo") >&5 4490 (eval "$ac_link") 2>&5 4491 ac_status=$? 4492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4494 { (case "(($ac_try" in 4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4496 *) ac_try_echo=$ac_try;; 4497esac 4498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4499$as_echo "$ac_try_echo") >&5 4500 (eval "$ac_try") 2>&5 4501 ac_status=$? 4502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); }; }; then 4504 : 4505else 4506 $as_echo "$as_me: program exited with status $ac_status" >&5 4507$as_echo "$as_me: failed program was:" >&5 4508sed 's/^/| /' conftest.$ac_ext >&5 4509 4510( exit $ac_status ) 4511ac_cv_header_stdc=no 4512fi 4513rm -rf conftest.dSYM 4514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4515fi 4516 4517 4518fi 4519fi 4520{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4521$as_echo "$ac_cv_header_stdc" >&6; } 4522if test $ac_cv_header_stdc = yes; then 4523 4524cat >>confdefs.h <<\_ACEOF 4525#define STDC_HEADERS 1 4526_ACEOF 4527 4528fi 4529 4530# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4541 inttypes.h stdint.h unistd.h 4542do 4543as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4544{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4545$as_echo_n "checking for $ac_header... " >&6; } 4546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4547 $as_echo_n "(cached) " >&6 4548else 4549 cat >conftest.$ac_ext <<_ACEOF 4550/* confdefs.h. */ 4551_ACEOF 4552cat confdefs.h >>conftest.$ac_ext 4553cat >>conftest.$ac_ext <<_ACEOF 4554/* end confdefs.h. */ 4555$ac_includes_default 4556 4557#include <$ac_header> 4558_ACEOF 4559rm -f conftest.$ac_objext 4560if { (ac_try="$ac_compile" 4561case "(($ac_try" in 4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4563 *) ac_try_echo=$ac_try;; 4564esac 4565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4566$as_echo "$ac_try_echo") >&5 4567 (eval "$ac_compile") 2>conftest.er1 4568 ac_status=$? 4569 grep -v '^ *+' conftest.er1 >conftest.err 4570 rm -f conftest.er1 4571 cat conftest.err >&5 4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); } && { 4574 test -z "$ac_c_werror_flag" || 4575 test ! -s conftest.err 4576 } && test -s conftest.$ac_objext; then 4577 eval "$as_ac_Header=yes" 4578else 4579 $as_echo "$as_me: failed program was:" >&5 4580sed 's/^/| /' conftest.$ac_ext >&5 4581 4582 eval "$as_ac_Header=no" 4583fi 4584 4585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4586fi 4587ac_res=`eval 'as_val=${'$as_ac_Header'} 4588 $as_echo "$as_val"'` 4589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4590$as_echo "$ac_res" >&6; } 4591as_val=`eval 'as_val=${'$as_ac_Header'} 4592 $as_echo "$as_val"'` 4593 if test "x$as_val" = x""yes; then 4594 cat >>confdefs.h <<_ACEOF 4595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4596_ACEOF 4597 4598fi 4599 4600done 4601 4602 4603 4604 4605if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4606 if test -n "$ac_tool_prefix"; then 4607 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4608set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4610$as_echo_n "checking for $ac_word... " >&6; } 4611if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4612 $as_echo_n "(cached) " >&6 4613else 4614 case $PKG_CONFIG in 4615 [\\/]* | ?:[\\/]*) 4616 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4617 ;; 4618 *) 4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4620for as_dir in $PATH 4621do 4622 IFS=$as_save_IFS 4623 test -z "$as_dir" && as_dir=. 4624 for ac_exec_ext in '' $ac_executable_extensions; do 4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4626 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4628 break 2 4629 fi 4630done 4631done 4632IFS=$as_save_IFS 4633 4634 ;; 4635esac 4636fi 4637PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4638if test -n "$PKG_CONFIG"; then 4639 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4640$as_echo "$PKG_CONFIG" >&6; } 4641else 4642 { $as_echo "$as_me:$LINENO: result: no" >&5 4643$as_echo "no" >&6; } 4644fi 4645 4646 4647fi 4648if test -z "$ac_cv_path_PKG_CONFIG"; then 4649 ac_pt_PKG_CONFIG=$PKG_CONFIG 4650 # Extract the first word of "pkg-config", so it can be a program name with args. 4651set dummy pkg-config; ac_word=$2 4652{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4653$as_echo_n "checking for $ac_word... " >&6; } 4654if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4655 $as_echo_n "(cached) " >&6 4656else 4657 case $ac_pt_PKG_CONFIG in 4658 [\\/]* | ?:[\\/]*) 4659 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4660 ;; 4661 *) 4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4663for as_dir in $PATH 4664do 4665 IFS=$as_save_IFS 4666 test -z "$as_dir" && as_dir=. 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4669 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4671 break 2 4672 fi 4673done 4674done 4675IFS=$as_save_IFS 4676 4677 ;; 4678esac 4679fi 4680ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4681if test -n "$ac_pt_PKG_CONFIG"; then 4682 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4683$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4684else 4685 { $as_echo "$as_me:$LINENO: result: no" >&5 4686$as_echo "no" >&6; } 4687fi 4688 4689 if test "x$ac_pt_PKG_CONFIG" = x; then 4690 PKG_CONFIG="" 4691 else 4692 case $cross_compiling:$ac_tool_warned in 4693yes:) 4694{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4696ac_tool_warned=yes ;; 4697esac 4698 PKG_CONFIG=$ac_pt_PKG_CONFIG 4699 fi 4700else 4701 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4702fi 4703 4704fi 4705if test -n "$PKG_CONFIG"; then 4706 _pkg_min_version=0.9.0 4707 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4708$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4709 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4710 { $as_echo "$as_me:$LINENO: result: yes" >&5 4711$as_echo "yes" >&6; } 4712 else 4713 { $as_echo "$as_me:$LINENO: result: no" >&5 4714$as_echo "no" >&6; } 4715 PKG_CONFIG="" 4716 fi 4717 4718fi 4719# Make sure we can run config.sub. 4720$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4721 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4722$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4723 { (exit 1); exit 1; }; } 4724 4725{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4726$as_echo_n "checking build system type... " >&6; } 4727if test "${ac_cv_build+set}" = set; then 4728 $as_echo_n "(cached) " >&6 4729else 4730 ac_build_alias=$build_alias 4731test "x$ac_build_alias" = x && 4732 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4733test "x$ac_build_alias" = x && 4734 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4735$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4736 { (exit 1); exit 1; }; } 4737ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4738 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4739$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4740 { (exit 1); exit 1; }; } 4741 4742fi 4743{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4744$as_echo "$ac_cv_build" >&6; } 4745case $ac_cv_build in 4746*-*-*) ;; 4747*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4748$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4749 { (exit 1); exit 1; }; };; 4750esac 4751build=$ac_cv_build 4752ac_save_IFS=$IFS; IFS='-' 4753set x $ac_cv_build 4754shift 4755build_cpu=$1 4756build_vendor=$2 4757shift; shift 4758# Remember, the first character of IFS is used to create $*, 4759# except with old shells: 4760build_os=$* 4761IFS=$ac_save_IFS 4762case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4763 4764 4765{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4766$as_echo_n "checking host system type... " >&6; } 4767if test "${ac_cv_host+set}" = set; then 4768 $as_echo_n "(cached) " >&6 4769else 4770 if test "x$host_alias" = x; then 4771 ac_cv_host=$ac_cv_build 4772else 4773 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4774 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4775$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4776 { (exit 1); exit 1; }; } 4777fi 4778 4779fi 4780{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4781$as_echo "$ac_cv_host" >&6; } 4782case $ac_cv_host in 4783*-*-*) ;; 4784*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4785$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4786 { (exit 1); exit 1; }; };; 4787esac 4788host=$ac_cv_host 4789ac_save_IFS=$IFS; IFS='-' 4790set x $ac_cv_host 4791shift 4792host_cpu=$1 4793host_vendor=$2 4794shift; shift 4795# Remember, the first character of IFS is used to create $*, 4796# except with old shells: 4797host_os=$* 4798IFS=$ac_save_IFS 4799case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4800 4801 4802{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4803$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4804if test "${ac_cv_path_SED+set}" = set; then 4805 $as_echo_n "(cached) " >&6 4806else 4807 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4808 for ac_i in 1 2 3 4 5 6 7; do 4809 ac_script="$ac_script$as_nl$ac_script" 4810 done 4811 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4812 $as_unset ac_script || ac_script= 4813 if test -z "$SED"; then 4814 ac_path_SED_found=false 4815 # Loop through the user's path and test for each of PROGNAME-LIST 4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4817for as_dir in $PATH 4818do 4819 IFS=$as_save_IFS 4820 test -z "$as_dir" && as_dir=. 4821 for ac_prog in sed gsed; do 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4824 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4825# Check for GNU ac_path_SED and select it if it is found. 4826 # Check for GNU $ac_path_SED 4827case `"$ac_path_SED" --version 2>&1` in 4828*GNU*) 4829 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4830*) 4831 ac_count=0 4832 $as_echo_n 0123456789 >"conftest.in" 4833 while : 4834 do 4835 cat "conftest.in" "conftest.in" >"conftest.tmp" 4836 mv "conftest.tmp" "conftest.in" 4837 cp "conftest.in" "conftest.nl" 4838 $as_echo '' >> "conftest.nl" 4839 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4841 ac_count=`expr $ac_count + 1` 4842 if test $ac_count -gt ${ac_path_SED_max-0}; then 4843 # Best one so far, save it but keep looking for a better one 4844 ac_cv_path_SED="$ac_path_SED" 4845 ac_path_SED_max=$ac_count 4846 fi 4847 # 10*(2^10) chars as input seems more than enough 4848 test $ac_count -gt 10 && break 4849 done 4850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4851esac 4852 4853 $ac_path_SED_found && break 3 4854 done 4855 done 4856done 4857IFS=$as_save_IFS 4858 if test -z "$ac_cv_path_SED"; then 4859 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4860$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4861 { (exit 1); exit 1; }; } 4862 fi 4863else 4864 ac_cv_path_SED=$SED 4865fi 4866 4867fi 4868{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4869$as_echo "$ac_cv_path_SED" >&6; } 4870 SED="$ac_cv_path_SED" 4871 rm -f conftest.sed 4872 4873 4874 4875 4876 4877if test "x$GCC" = xyes ; then 4878 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4879-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4880-Wbad-function-cast -Wformat=2" 4881 case `$CC -dumpversion` in 4882 3.4.* | 4.*) 4883 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4884 ;; 4885 esac 4886else 4887 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4888$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4889if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4890 $as_echo_n "(cached) " >&6 4891else 4892 cat >conftest.$ac_ext <<_ACEOF 4893/* confdefs.h. */ 4894_ACEOF 4895cat confdefs.h >>conftest.$ac_ext 4896cat >>conftest.$ac_ext <<_ACEOF 4897/* end confdefs.h. */ 4898$ac_includes_default 4899int 4900main () 4901{ 4902#ifndef __SUNPRO_C 4903 (void) __SUNPRO_C; 4904#endif 4905 4906 ; 4907 return 0; 4908} 4909_ACEOF 4910rm -f conftest.$ac_objext 4911if { (ac_try="$ac_compile" 4912case "(($ac_try" in 4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4914 *) ac_try_echo=$ac_try;; 4915esac 4916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4917$as_echo "$ac_try_echo") >&5 4918 (eval "$ac_compile") 2>conftest.er1 4919 ac_status=$? 4920 grep -v '^ *+' conftest.er1 >conftest.err 4921 rm -f conftest.er1 4922 cat conftest.err >&5 4923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4924 (exit $ac_status); } && { 4925 test -z "$ac_c_werror_flag" || 4926 test ! -s conftest.err 4927 } && test -s conftest.$ac_objext; then 4928 ac_cv_have_decl___SUNPRO_C=yes 4929else 4930 $as_echo "$as_me: failed program was:" >&5 4931sed 's/^/| /' conftest.$ac_ext >&5 4932 4933 ac_cv_have_decl___SUNPRO_C=no 4934fi 4935 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937fi 4938{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4939$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4940if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4941 SUNCC="yes" 4942else 4943 SUNCC="no" 4944fi 4945 4946 if test "x$SUNCC" = "xyes"; then 4947 CWARNFLAGS="-v" 4948 fi 4949fi 4950 4951 4952 4953# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4954 4955 4956 4957# Check whether --enable-strict-compilation was given. 4958if test "${enable_strict_compilation+set}" = set; then 4959 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4960else 4961 STRICT_COMPILE=no 4962fi 4963 4964if test "x$STRICT_COMPILE" = "xyes"; then 4965 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4966$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4967if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4968 $as_echo_n "(cached) " >&6 4969else 4970 cat >conftest.$ac_ext <<_ACEOF 4971/* confdefs.h. */ 4972_ACEOF 4973cat confdefs.h >>conftest.$ac_ext 4974cat >>conftest.$ac_ext <<_ACEOF 4975/* end confdefs.h. */ 4976$ac_includes_default 4977int 4978main () 4979{ 4980#ifndef __SUNPRO_C 4981 (void) __SUNPRO_C; 4982#endif 4983 4984 ; 4985 return 0; 4986} 4987_ACEOF 4988rm -f conftest.$ac_objext 4989if { (ac_try="$ac_compile" 4990case "(($ac_try" in 4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4992 *) ac_try_echo=$ac_try;; 4993esac 4994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4995$as_echo "$ac_try_echo") >&5 4996 (eval "$ac_compile") 2>conftest.er1 4997 ac_status=$? 4998 grep -v '^ *+' conftest.er1 >conftest.err 4999 rm -f conftest.er1 5000 cat conftest.err >&5 5001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5002 (exit $ac_status); } && { 5003 test -z "$ac_c_werror_flag" || 5004 test ! -s conftest.err 5005 } && test -s conftest.$ac_objext; then 5006 ac_cv_have_decl___SUNPRO_C=yes 5007else 5008 $as_echo "$as_me: failed program was:" >&5 5009sed 's/^/| /' conftest.$ac_ext >&5 5010 5011 ac_cv_have_decl___SUNPRO_C=no 5012fi 5013 5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5015fi 5016{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 5017$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 5018if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 5019 SUNCC="yes" 5020else 5021 SUNCC="no" 5022fi 5023 5024 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 5025$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 5026if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 5027 $as_echo_n "(cached) " >&6 5028else 5029 cat >conftest.$ac_ext <<_ACEOF 5030/* confdefs.h. */ 5031_ACEOF 5032cat confdefs.h >>conftest.$ac_ext 5033cat >>conftest.$ac_ext <<_ACEOF 5034/* end confdefs.h. */ 5035$ac_includes_default 5036int 5037main () 5038{ 5039#ifndef __INTEL_COMPILER 5040 (void) __INTEL_COMPILER; 5041#endif 5042 5043 ; 5044 return 0; 5045} 5046_ACEOF 5047rm -f conftest.$ac_objext 5048if { (ac_try="$ac_compile" 5049case "(($ac_try" in 5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5051 *) ac_try_echo=$ac_try;; 5052esac 5053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5054$as_echo "$ac_try_echo") >&5 5055 (eval "$ac_compile") 2>conftest.er1 5056 ac_status=$? 5057 grep -v '^ *+' conftest.er1 >conftest.err 5058 rm -f conftest.er1 5059 cat conftest.err >&5 5060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); } && { 5062 test -z "$ac_c_werror_flag" || 5063 test ! -s conftest.err 5064 } && test -s conftest.$ac_objext; then 5065 ac_cv_have_decl___INTEL_COMPILER=yes 5066else 5067 $as_echo "$as_me: failed program was:" >&5 5068sed 's/^/| /' conftest.$ac_ext >&5 5069 5070 ac_cv_have_decl___INTEL_COMPILER=no 5071fi 5072 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 5076$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 5077if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 5078 INTELCC="yes" 5079else 5080 INTELCC="no" 5081fi 5082 5083 if test "x$GCC" = xyes ; then 5084 STRICT_CFLAGS="-pedantic -Werror" 5085 elif test "x$SUNCC" = "xyes"; then 5086 STRICT_CFLAGS="-errwarn" 5087 elif test "x$INTELCC" = "xyes"; then 5088 STRICT_CFLAGS="-Werror" 5089 fi 5090fi 5091CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 5092 5093 5094 5095 5096cat >>confdefs.h <<_ACEOF 5097#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 5098_ACEOF 5099 5100 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 5101 if test "x$PVM" = "x"; then 5102 PVM="0" 5103 fi 5104 5105cat >>confdefs.h <<_ACEOF 5106#define PACKAGE_VERSION_MINOR $PVM 5107_ACEOF 5108 5109 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 5110 if test "x$PVP" = "x"; then 5111 PVP="0" 5112 fi 5113 5114cat >>confdefs.h <<_ACEOF 5115#define PACKAGE_VERSION_PATCHLEVEL $PVP 5116_ACEOF 5117 5118 5119 5120CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 5121mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 5122|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 5123echo 'git directory not found: installing possibly empty changelog.' >&2)" 5124 5125 5126 5127 5128macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 5129INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 5130mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 5131|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 5132echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 5133 5134 5135 5136 5137 5138 5139if test x$APP_MAN_SUFFIX = x ; then 5140 APP_MAN_SUFFIX=1 5141fi 5142if test x$APP_MAN_DIR = x ; then 5143 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 5144fi 5145 5146if test x$LIB_MAN_SUFFIX = x ; then 5147 LIB_MAN_SUFFIX=3 5148fi 5149if test x$LIB_MAN_DIR = x ; then 5150 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 5151fi 5152 5153if test x$FILE_MAN_SUFFIX = x ; then 5154 case $host_os in 5155 solaris*) FILE_MAN_SUFFIX=4 ;; 5156 *) FILE_MAN_SUFFIX=5 ;; 5157 esac 5158fi 5159if test x$FILE_MAN_DIR = x ; then 5160 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 5161fi 5162 5163if test x$MISC_MAN_SUFFIX = x ; then 5164 case $host_os in 5165 solaris*) MISC_MAN_SUFFIX=5 ;; 5166 *) MISC_MAN_SUFFIX=7 ;; 5167 esac 5168fi 5169if test x$MISC_MAN_DIR = x ; then 5170 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 5171fi 5172 5173if test x$DRIVER_MAN_SUFFIX = x ; then 5174 case $host_os in 5175 solaris*) DRIVER_MAN_SUFFIX=7 ;; 5176 *) DRIVER_MAN_SUFFIX=4 ;; 5177 esac 5178fi 5179if test x$DRIVER_MAN_DIR = x ; then 5180 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 5181fi 5182 5183if test x$ADMIN_MAN_SUFFIX = x ; then 5184 case $host_os in 5185 solaris*) ADMIN_MAN_SUFFIX=1m ;; 5186 *) ADMIN_MAN_SUFFIX=8 ;; 5187 esac 5188fi 5189if test x$ADMIN_MAN_DIR = x ; then 5190 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 5191fi 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207XORG_MAN_PAGE="X Version 11" 5208 5209MAN_SUBSTS="\ 5210 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5211 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5212 -e 's|__xservername__|Xorg|g' \ 5213 -e 's|__xconfigfile__|xorg.conf|g' \ 5214 -e 's|__projectroot__|\$(prefix)|g' \ 5215 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 5216 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 5217 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 5218 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 5219 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 5220 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 5221 5222 5223 5224# Check whether --enable-silent-rules was given. 5225if test "${enable_silent_rules+set}" = set; then 5226 enableval=$enable_silent_rules; 5227fi 5228 5229case $enable_silent_rules in 5230yes) AM_DEFAULT_VERBOSITY=0;; 5231no) AM_DEFAULT_VERBOSITY=1;; 5232*) AM_DEFAULT_VERBOSITY=0;; 5233esac 5234AM_BACKSLASH='\' 5235 5236 5237 5238DRIVER_NAME=vmmouse 5239 5240 5241ac_config_headers="$ac_config_headers config.h" 5242 5243 5244# Checks for programs. 5245# Check whether --enable-static was given. 5246if test "${enable_static+set}" = set; then 5247 enableval=$enable_static; p=${PACKAGE-default} 5248 case $enableval in 5249 yes) enable_static=yes ;; 5250 no) enable_static=no ;; 5251 *) 5252 enable_static=no 5253 # Look at the argument we got. We use all the common list separators. 5254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5255 for pkg in $enableval; do 5256 IFS="$lt_save_ifs" 5257 if test "X$pkg" = "X$p"; then 5258 enable_static=yes 5259 fi 5260 done 5261 IFS="$lt_save_ifs" 5262 ;; 5263 esac 5264else 5265 enable_static=no 5266fi 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276case `pwd` in 5277 *\ * | *\ *) 5278 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5279$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5280esac 5281 5282 5283 5284macro_version='2.2.6b' 5285macro_revision='1.3017' 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299ltmain="$ac_aux_dir/ltmain.sh" 5300 5301{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5302$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5303if test "${ac_cv_path_SED+set}" = set; then 5304 $as_echo_n "(cached) " >&6 5305else 5306 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5307 for ac_i in 1 2 3 4 5 6 7; do 5308 ac_script="$ac_script$as_nl$ac_script" 5309 done 5310 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5311 $as_unset ac_script || ac_script= 5312 if test -z "$SED"; then 5313 ac_path_SED_found=false 5314 # Loop through the user's path and test for each of PROGNAME-LIST 5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5316for as_dir in $PATH 5317do 5318 IFS=$as_save_IFS 5319 test -z "$as_dir" && as_dir=. 5320 for ac_prog in sed gsed; do 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5323 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5324# Check for GNU ac_path_SED and select it if it is found. 5325 # Check for GNU $ac_path_SED 5326case `"$ac_path_SED" --version 2>&1` in 5327*GNU*) 5328 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5329*) 5330 ac_count=0 5331 $as_echo_n 0123456789 >"conftest.in" 5332 while : 5333 do 5334 cat "conftest.in" "conftest.in" >"conftest.tmp" 5335 mv "conftest.tmp" "conftest.in" 5336 cp "conftest.in" "conftest.nl" 5337 $as_echo '' >> "conftest.nl" 5338 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5340 ac_count=`expr $ac_count + 1` 5341 if test $ac_count -gt ${ac_path_SED_max-0}; then 5342 # Best one so far, save it but keep looking for a better one 5343 ac_cv_path_SED="$ac_path_SED" 5344 ac_path_SED_max=$ac_count 5345 fi 5346 # 10*(2^10) chars as input seems more than enough 5347 test $ac_count -gt 10 && break 5348 done 5349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5350esac 5351 5352 $ac_path_SED_found && break 3 5353 done 5354 done 5355done 5356IFS=$as_save_IFS 5357 if test -z "$ac_cv_path_SED"; then 5358 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 5359$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 5360 { (exit 1); exit 1; }; } 5361 fi 5362else 5363 ac_cv_path_SED=$SED 5364fi 5365 5366fi 5367{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5368$as_echo "$ac_cv_path_SED" >&6; } 5369 SED="$ac_cv_path_SED" 5370 rm -f conftest.sed 5371 5372test -z "$SED" && SED=sed 5373Xsed="$SED -e 1s/^X//" 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 5386$as_echo_n "checking for fgrep... " >&6; } 5387if test "${ac_cv_path_FGREP+set}" = set; then 5388 $as_echo_n "(cached) " >&6 5389else 5390 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5391 then ac_cv_path_FGREP="$GREP -F" 5392 else 5393 if test -z "$FGREP"; then 5394 ac_path_FGREP_found=false 5395 # Loop through the user's path and test for each of PROGNAME-LIST 5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5398do 5399 IFS=$as_save_IFS 5400 test -z "$as_dir" && as_dir=. 5401 for ac_prog in fgrep; do 5402 for ac_exec_ext in '' $ac_executable_extensions; do 5403 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5404 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5405# Check for GNU ac_path_FGREP and select it if it is found. 5406 # Check for GNU $ac_path_FGREP 5407case `"$ac_path_FGREP" --version 2>&1` in 5408*GNU*) 5409 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5410*) 5411 ac_count=0 5412 $as_echo_n 0123456789 >"conftest.in" 5413 while : 5414 do 5415 cat "conftest.in" "conftest.in" >"conftest.tmp" 5416 mv "conftest.tmp" "conftest.in" 5417 cp "conftest.in" "conftest.nl" 5418 $as_echo 'FGREP' >> "conftest.nl" 5419 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5421 ac_count=`expr $ac_count + 1` 5422 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5423 # Best one so far, save it but keep looking for a better one 5424 ac_cv_path_FGREP="$ac_path_FGREP" 5425 ac_path_FGREP_max=$ac_count 5426 fi 5427 # 10*(2^10) chars as input seems more than enough 5428 test $ac_count -gt 10 && break 5429 done 5430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5431esac 5432 5433 $ac_path_FGREP_found && break 3 5434 done 5435 done 5436done 5437IFS=$as_save_IFS 5438 if test -z "$ac_cv_path_FGREP"; then 5439 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5440$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5441 { (exit 1); exit 1; }; } 5442 fi 5443else 5444 ac_cv_path_FGREP=$FGREP 5445fi 5446 5447 fi 5448fi 5449{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5450$as_echo "$ac_cv_path_FGREP" >&6; } 5451 FGREP="$ac_cv_path_FGREP" 5452 5453 5454test -z "$GREP" && GREP=grep 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474# Check whether --with-gnu-ld was given. 5475if test "${with_gnu_ld+set}" = set; then 5476 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5477else 5478 with_gnu_ld=no 5479fi 5480 5481ac_prog=ld 5482if test "$GCC" = yes; then 5483 # Check if gcc -print-prog-name=ld gives a path. 5484 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5485$as_echo_n "checking for ld used by $CC... " >&6; } 5486 case $host in 5487 *-*-mingw*) 5488 # gcc leaves a trailing carriage return which upsets mingw 5489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5490 *) 5491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5492 esac 5493 case $ac_prog in 5494 # Accept absolute paths. 5495 [\\/]* | ?:[\\/]*) 5496 re_direlt='/[^/][^/]*/\.\./' 5497 # Canonicalize the pathname of ld 5498 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5499 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5500 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5501 done 5502 test -z "$LD" && LD="$ac_prog" 5503 ;; 5504 "") 5505 # If it fails, then pretend we aren't using GCC. 5506 ac_prog=ld 5507 ;; 5508 *) 5509 # If it is relative, then search for the first ld in PATH. 5510 with_gnu_ld=unknown 5511 ;; 5512 esac 5513elif test "$with_gnu_ld" = yes; then 5514 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 5515$as_echo_n "checking for GNU ld... " >&6; } 5516else 5517 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5518$as_echo_n "checking for non-GNU ld... " >&6; } 5519fi 5520if test "${lt_cv_path_LD+set}" = set; then 5521 $as_echo_n "(cached) " >&6 5522else 5523 if test -z "$LD"; then 5524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5525 for ac_dir in $PATH; do 5526 IFS="$lt_save_ifs" 5527 test -z "$ac_dir" && ac_dir=. 5528 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5529 lt_cv_path_LD="$ac_dir/$ac_prog" 5530 # Check to see if the program is GNU ld. I'd rather use --version, 5531 # but apparently some variants of GNU ld only accept -v. 5532 # Break only if it was the GNU/non-GNU ld that we prefer. 5533 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5534 *GNU* | *'with BFD'*) 5535 test "$with_gnu_ld" != no && break 5536 ;; 5537 *) 5538 test "$with_gnu_ld" != yes && break 5539 ;; 5540 esac 5541 fi 5542 done 5543 IFS="$lt_save_ifs" 5544else 5545 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5546fi 5547fi 5548 5549LD="$lt_cv_path_LD" 5550if test -n "$LD"; then 5551 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5552$as_echo "$LD" >&6; } 5553else 5554 { $as_echo "$as_me:$LINENO: result: no" >&5 5555$as_echo "no" >&6; } 5556fi 5557test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5558$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5559 { (exit 1); exit 1; }; } 5560{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5561$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5562if test "${lt_cv_prog_gnu_ld+set}" = set; then 5563 $as_echo_n "(cached) " >&6 5564else 5565 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5566case `$LD -v 2>&1 </dev/null` in 5567*GNU* | *'with BFD'*) 5568 lt_cv_prog_gnu_ld=yes 5569 ;; 5570*) 5571 lt_cv_prog_gnu_ld=no 5572 ;; 5573esac 5574fi 5575{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5576$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5577with_gnu_ld=$lt_cv_prog_gnu_ld 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5588$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5589if test "${lt_cv_path_NM+set}" = set; then 5590 $as_echo_n "(cached) " >&6 5591else 5592 if test -n "$NM"; then 5593 # Let the user override the test. 5594 lt_cv_path_NM="$NM" 5595else 5596 lt_nm_to_check="${ac_tool_prefix}nm" 5597 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5598 lt_nm_to_check="$lt_nm_to_check nm" 5599 fi 5600 for lt_tmp_nm in $lt_nm_to_check; do 5601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5602 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5603 IFS="$lt_save_ifs" 5604 test -z "$ac_dir" && ac_dir=. 5605 tmp_nm="$ac_dir/$lt_tmp_nm" 5606 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5607 # Check to see if the nm accepts a BSD-compat flag. 5608 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5609 # nm: unknown option "B" ignored 5610 # Tru64's nm complains that /dev/null is an invalid object file 5611 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5612 */dev/null* | *'Invalid file or object type'*) 5613 lt_cv_path_NM="$tmp_nm -B" 5614 break 5615 ;; 5616 *) 5617 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5618 */dev/null*) 5619 lt_cv_path_NM="$tmp_nm -p" 5620 break 5621 ;; 5622 *) 5623 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5624 continue # so that we can try to find one that supports BSD flags 5625 ;; 5626 esac 5627 ;; 5628 esac 5629 fi 5630 done 5631 IFS="$lt_save_ifs" 5632 done 5633 : ${lt_cv_path_NM=no} 5634fi 5635fi 5636{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5637$as_echo "$lt_cv_path_NM" >&6; } 5638if test "$lt_cv_path_NM" != "no"; then 5639 NM="$lt_cv_path_NM" 5640else 5641 # Didn't find any BSD compatible name lister, look for dumpbin. 5642 if test -n "$ac_tool_prefix"; then 5643 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5644 do 5645 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5646set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5647{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5648$as_echo_n "checking for $ac_word... " >&6; } 5649if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5650 $as_echo_n "(cached) " >&6 5651else 5652 if test -n "$DUMPBIN"; then 5653 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5654else 5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5656for as_dir in $PATH 5657do 5658 IFS=$as_save_IFS 5659 test -z "$as_dir" && as_dir=. 5660 for ac_exec_ext in '' $ac_executable_extensions; do 5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5662 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5664 break 2 5665 fi 5666done 5667done 5668IFS=$as_save_IFS 5669 5670fi 5671fi 5672DUMPBIN=$ac_cv_prog_DUMPBIN 5673if test -n "$DUMPBIN"; then 5674 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5675$as_echo "$DUMPBIN" >&6; } 5676else 5677 { $as_echo "$as_me:$LINENO: result: no" >&5 5678$as_echo "no" >&6; } 5679fi 5680 5681 5682 test -n "$DUMPBIN" && break 5683 done 5684fi 5685if test -z "$DUMPBIN"; then 5686 ac_ct_DUMPBIN=$DUMPBIN 5687 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5688do 5689 # Extract the first word of "$ac_prog", so it can be a program name with args. 5690set dummy $ac_prog; ac_word=$2 5691{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5692$as_echo_n "checking for $ac_word... " >&6; } 5693if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5694 $as_echo_n "(cached) " >&6 5695else 5696 if test -n "$ac_ct_DUMPBIN"; then 5697 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5698else 5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5700for as_dir in $PATH 5701do 5702 IFS=$as_save_IFS 5703 test -z "$as_dir" && as_dir=. 5704 for ac_exec_ext in '' $ac_executable_extensions; do 5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5706 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5708 break 2 5709 fi 5710done 5711done 5712IFS=$as_save_IFS 5713 5714fi 5715fi 5716ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5717if test -n "$ac_ct_DUMPBIN"; then 5718 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5719$as_echo "$ac_ct_DUMPBIN" >&6; } 5720else 5721 { $as_echo "$as_me:$LINENO: result: no" >&5 5722$as_echo "no" >&6; } 5723fi 5724 5725 5726 test -n "$ac_ct_DUMPBIN" && break 5727done 5728 5729 if test "x$ac_ct_DUMPBIN" = x; then 5730 DUMPBIN=":" 5731 else 5732 case $cross_compiling:$ac_tool_warned in 5733yes:) 5734{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5736ac_tool_warned=yes ;; 5737esac 5738 DUMPBIN=$ac_ct_DUMPBIN 5739 fi 5740fi 5741 5742 5743 if test "$DUMPBIN" != ":"; then 5744 NM="$DUMPBIN" 5745 fi 5746fi 5747test -z "$NM" && NM=nm 5748 5749 5750 5751 5752 5753 5754{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5755$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5756if test "${lt_cv_nm_interface+set}" = set; then 5757 $as_echo_n "(cached) " >&6 5758else 5759 lt_cv_nm_interface="BSD nm" 5760 echo "int some_variable = 0;" > conftest.$ac_ext 5761 (eval echo "\"\$as_me:5761: $ac_compile\"" >&5) 5762 (eval "$ac_compile" 2>conftest.err) 5763 cat conftest.err >&5 5764 (eval echo "\"\$as_me:5764: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5765 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5766 cat conftest.err >&5 5767 (eval echo "\"\$as_me:5767: output\"" >&5) 5768 cat conftest.out >&5 5769 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5770 lt_cv_nm_interface="MS dumpbin" 5771 fi 5772 rm -f conftest* 5773fi 5774{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5775$as_echo "$lt_cv_nm_interface" >&6; } 5776 5777{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5778$as_echo_n "checking whether ln -s works... " >&6; } 5779LN_S=$as_ln_s 5780if test "$LN_S" = "ln -s"; then 5781 { $as_echo "$as_me:$LINENO: result: yes" >&5 5782$as_echo "yes" >&6; } 5783else 5784 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5785$as_echo "no, using $LN_S" >&6; } 5786fi 5787 5788# find the maximum length of command line arguments 5789{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5790$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5791if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5792 $as_echo_n "(cached) " >&6 5793else 5794 i=0 5795 teststring="ABCD" 5796 5797 case $build_os in 5798 msdosdjgpp*) 5799 # On DJGPP, this test can blow up pretty badly due to problems in libc 5800 # (any single argument exceeding 2000 bytes causes a buffer overrun 5801 # during glob expansion). Even if it were fixed, the result of this 5802 # check would be larger than it should be. 5803 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5804 ;; 5805 5806 gnu*) 5807 # Under GNU Hurd, this test is not required because there is 5808 # no limit to the length of command line arguments. 5809 # Libtool will interpret -1 as no limit whatsoever 5810 lt_cv_sys_max_cmd_len=-1; 5811 ;; 5812 5813 cygwin* | mingw* | cegcc*) 5814 # On Win9x/ME, this test blows up -- it succeeds, but takes 5815 # about 5 minutes as the teststring grows exponentially. 5816 # Worse, since 9x/ME are not pre-emptively multitasking, 5817 # you end up with a "frozen" computer, even though with patience 5818 # the test eventually succeeds (with a max line length of 256k). 5819 # Instead, let's just punt: use the minimum linelength reported by 5820 # all of the supported platforms: 8192 (on NT/2K/XP). 5821 lt_cv_sys_max_cmd_len=8192; 5822 ;; 5823 5824 amigaos*) 5825 # On AmigaOS with pdksh, this test takes hours, literally. 5826 # So we just punt and use a minimum line length of 8192. 5827 lt_cv_sys_max_cmd_len=8192; 5828 ;; 5829 5830 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5831 # This has been around since 386BSD, at least. Likely further. 5832 if test -x /sbin/sysctl; then 5833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5834 elif test -x /usr/sbin/sysctl; then 5835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5836 else 5837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5838 fi 5839 # And add a safety zone 5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5842 ;; 5843 5844 interix*) 5845 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5846 lt_cv_sys_max_cmd_len=196608 5847 ;; 5848 5849 osf*) 5850 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5851 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5852 # nice to cause kernel panics so lets avoid the loop below. 5853 # First set a reasonable default. 5854 lt_cv_sys_max_cmd_len=16384 5855 # 5856 if test -x /sbin/sysconfig; then 5857 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5858 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5859 esac 5860 fi 5861 ;; 5862 sco3.2v5*) 5863 lt_cv_sys_max_cmd_len=102400 5864 ;; 5865 sysv5* | sco5v6* | sysv4.2uw2*) 5866 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5867 if test -n "$kargmax"; then 5868 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5869 else 5870 lt_cv_sys_max_cmd_len=32768 5871 fi 5872 ;; 5873 *) 5874 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5875 if test -n "$lt_cv_sys_max_cmd_len"; then 5876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5878 else 5879 # Make teststring a little bigger before we do anything with it. 5880 # a 1K string should be a reasonable start. 5881 for i in 1 2 3 4 5 6 7 8 ; do 5882 teststring=$teststring$teststring 5883 done 5884 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5885 # If test is not a shell built-in, we'll probably end up computing a 5886 # maximum length that is only half of the actual maximum length, but 5887 # we can't tell. 5888 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5889 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5890 test $i != 17 # 1/2 MB should be enough 5891 do 5892 i=`expr $i + 1` 5893 teststring=$teststring$teststring 5894 done 5895 # Only check the string length outside the loop. 5896 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5897 teststring= 5898 # Add a significant safety factor because C++ compilers can tack on 5899 # massive amounts of additional arguments before passing them to the 5900 # linker. It appears as though 1/2 is a usable value. 5901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5902 fi 5903 ;; 5904 esac 5905 5906fi 5907 5908if test -n $lt_cv_sys_max_cmd_len ; then 5909 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5910$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5911else 5912 { $as_echo "$as_me:$LINENO: result: none" >&5 5913$as_echo "none" >&6; } 5914fi 5915max_cmd_len=$lt_cv_sys_max_cmd_len 5916 5917 5918 5919 5920 5921 5922: ${CP="cp -f"} 5923: ${MV="mv -f"} 5924: ${RM="rm -f"} 5925 5926{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5927$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5928# Try some XSI features 5929xsi_shell=no 5930( _lt_dummy="a/b/c" 5931 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5932 = c,a/b,, \ 5933 && eval 'test $(( 1 + 1 )) -eq 2 \ 5934 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5935 && xsi_shell=yes 5936{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5937$as_echo "$xsi_shell" >&6; } 5938 5939 5940{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5941$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5942lt_shell_append=no 5943( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5944 >/dev/null 2>&1 \ 5945 && lt_shell_append=yes 5946{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5947$as_echo "$lt_shell_append" >&6; } 5948 5949 5950if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5951 lt_unset=unset 5952else 5953 lt_unset=false 5954fi 5955 5956 5957 5958 5959 5960# test EBCDIC or ASCII 5961case `echo X|tr X '\101'` in 5962 A) # ASCII based system 5963 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5964 lt_SP2NL='tr \040 \012' 5965 lt_NL2SP='tr \015\012 \040\040' 5966 ;; 5967 *) # EBCDIC based system 5968 lt_SP2NL='tr \100 \n' 5969 lt_NL2SP='tr \r\n \100\100' 5970 ;; 5971esac 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5982$as_echo_n "checking for $LD option to reload object files... " >&6; } 5983if test "${lt_cv_ld_reload_flag+set}" = set; then 5984 $as_echo_n "(cached) " >&6 5985else 5986 lt_cv_ld_reload_flag='-r' 5987fi 5988{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5989$as_echo "$lt_cv_ld_reload_flag" >&6; } 5990reload_flag=$lt_cv_ld_reload_flag 5991case $reload_flag in 5992"" | " "*) ;; 5993*) reload_flag=" $reload_flag" ;; 5994esac 5995reload_cmds='$LD$reload_flag -o $output$reload_objs' 5996case $host_os in 5997 darwin*) 5998 if test "$GCC" = yes; then 5999 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6000 else 6001 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6002 fi 6003 ;; 6004esac 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014if test -n "$ac_tool_prefix"; then 6015 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6016set dummy ${ac_tool_prefix}objdump; ac_word=$2 6017{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6018$as_echo_n "checking for $ac_word... " >&6; } 6019if test "${ac_cv_prog_OBJDUMP+set}" = set; then 6020 $as_echo_n "(cached) " >&6 6021else 6022 if test -n "$OBJDUMP"; then 6023 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6024else 6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6026for as_dir in $PATH 6027do 6028 IFS=$as_save_IFS 6029 test -z "$as_dir" && as_dir=. 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6032 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6034 break 2 6035 fi 6036done 6037done 6038IFS=$as_save_IFS 6039 6040fi 6041fi 6042OBJDUMP=$ac_cv_prog_OBJDUMP 6043if test -n "$OBJDUMP"; then 6044 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 6045$as_echo "$OBJDUMP" >&6; } 6046else 6047 { $as_echo "$as_me:$LINENO: result: no" >&5 6048$as_echo "no" >&6; } 6049fi 6050 6051 6052fi 6053if test -z "$ac_cv_prog_OBJDUMP"; then 6054 ac_ct_OBJDUMP=$OBJDUMP 6055 # Extract the first word of "objdump", so it can be a program name with args. 6056set dummy objdump; ac_word=$2 6057{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6058$as_echo_n "checking for $ac_word... " >&6; } 6059if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 6060 $as_echo_n "(cached) " >&6 6061else 6062 if test -n "$ac_ct_OBJDUMP"; then 6063 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6064else 6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6066for as_dir in $PATH 6067do 6068 IFS=$as_save_IFS 6069 test -z "$as_dir" && as_dir=. 6070 for ac_exec_ext in '' $ac_executable_extensions; do 6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6072 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6074 break 2 6075 fi 6076done 6077done 6078IFS=$as_save_IFS 6079 6080fi 6081fi 6082ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6083if test -n "$ac_ct_OBJDUMP"; then 6084 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 6085$as_echo "$ac_ct_OBJDUMP" >&6; } 6086else 6087 { $as_echo "$as_me:$LINENO: result: no" >&5 6088$as_echo "no" >&6; } 6089fi 6090 6091 if test "x$ac_ct_OBJDUMP" = x; then 6092 OBJDUMP="false" 6093 else 6094 case $cross_compiling:$ac_tool_warned in 6095yes:) 6096{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6098ac_tool_warned=yes ;; 6099esac 6100 OBJDUMP=$ac_ct_OBJDUMP 6101 fi 6102else 6103 OBJDUMP="$ac_cv_prog_OBJDUMP" 6104fi 6105 6106test -z "$OBJDUMP" && OBJDUMP=objdump 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6117$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6118if test "${lt_cv_deplibs_check_method+set}" = set; then 6119 $as_echo_n "(cached) " >&6 6120else 6121 lt_cv_file_magic_cmd='$MAGIC_CMD' 6122lt_cv_file_magic_test_file= 6123lt_cv_deplibs_check_method='unknown' 6124# Need to set the preceding variable on all platforms that support 6125# interlibrary dependencies. 6126# 'none' -- dependencies not supported. 6127# `unknown' -- same as none, but documents that we really don't know. 6128# 'pass_all' -- all dependencies passed with no checks. 6129# 'test_compile' -- check by making test program. 6130# 'file_magic [[regex]]' -- check by looking for files in library path 6131# which responds to the $file_magic_cmd with a given extended regex. 6132# If you have `file' or equivalent on your system and you're not sure 6133# whether `pass_all' will *always* work, you probably want this one. 6134 6135case $host_os in 6136aix[4-9]*) 6137 lt_cv_deplibs_check_method=pass_all 6138 ;; 6139 6140beos*) 6141 lt_cv_deplibs_check_method=pass_all 6142 ;; 6143 6144bsdi[45]*) 6145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6146 lt_cv_file_magic_cmd='/usr/bin/file -L' 6147 lt_cv_file_magic_test_file=/shlib/libc.so 6148 ;; 6149 6150cygwin*) 6151 # func_win32_libid is a shell function defined in ltmain.sh 6152 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6153 lt_cv_file_magic_cmd='func_win32_libid' 6154 ;; 6155 6156mingw* | pw32*) 6157 # Base MSYS/MinGW do not provide the 'file' command needed by 6158 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6159 # unless we find 'file', for example because we are cross-compiling. 6160 if ( file / ) >/dev/null 2>&1; then 6161 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6162 lt_cv_file_magic_cmd='func_win32_libid' 6163 else 6164 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6165 lt_cv_file_magic_cmd='$OBJDUMP -f' 6166 fi 6167 ;; 6168 6169cegcc) 6170 # use the weaker test based on 'objdump'. See mingw*. 6171 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6172 lt_cv_file_magic_cmd='$OBJDUMP -f' 6173 ;; 6174 6175darwin* | rhapsody*) 6176 lt_cv_deplibs_check_method=pass_all 6177 ;; 6178 6179freebsd* | dragonfly*) 6180 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6181 case $host_cpu in 6182 i*86 ) 6183 # Not sure whether the presence of OpenBSD here was a mistake. 6184 # Let's accept both of them until this is cleared up. 6185 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6186 lt_cv_file_magic_cmd=/usr/bin/file 6187 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6188 ;; 6189 esac 6190 else 6191 lt_cv_deplibs_check_method=pass_all 6192 fi 6193 ;; 6194 6195gnu*) 6196 lt_cv_deplibs_check_method=pass_all 6197 ;; 6198 6199hpux10.20* | hpux11*) 6200 lt_cv_file_magic_cmd=/usr/bin/file 6201 case $host_cpu in 6202 ia64*) 6203 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6204 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6205 ;; 6206 hppa*64*) 6207 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]' 6208 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6209 ;; 6210 *) 6211 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6212 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6213 ;; 6214 esac 6215 ;; 6216 6217interix[3-9]*) 6218 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6220 ;; 6221 6222irix5* | irix6* | nonstopux*) 6223 case $LD in 6224 *-32|*"-32 ") libmagic=32-bit;; 6225 *-n32|*"-n32 ") libmagic=N32;; 6226 *-64|*"-64 ") libmagic=64-bit;; 6227 *) libmagic=never-match;; 6228 esac 6229 lt_cv_deplibs_check_method=pass_all 6230 ;; 6231 6232# This must be Linux ELF. 6233linux* | k*bsd*-gnu) 6234 lt_cv_deplibs_check_method=pass_all 6235 ;; 6236 6237netbsd*) 6238 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6240 else 6241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6242 fi 6243 ;; 6244 6245newos6*) 6246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6247 lt_cv_file_magic_cmd=/usr/bin/file 6248 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6249 ;; 6250 6251*nto* | *qnx*) 6252 lt_cv_deplibs_check_method=pass_all 6253 ;; 6254 6255openbsd*) 6256 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6258 else 6259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6260 fi 6261 ;; 6262 6263osf3* | osf4* | osf5*) 6264 lt_cv_deplibs_check_method=pass_all 6265 ;; 6266 6267rdos*) 6268 lt_cv_deplibs_check_method=pass_all 6269 ;; 6270 6271solaris*) 6272 lt_cv_deplibs_check_method=pass_all 6273 ;; 6274 6275sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6276 lt_cv_deplibs_check_method=pass_all 6277 ;; 6278 6279sysv4 | sysv4.3*) 6280 case $host_vendor in 6281 motorola) 6282 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]' 6283 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6284 ;; 6285 ncr) 6286 lt_cv_deplibs_check_method=pass_all 6287 ;; 6288 sequent) 6289 lt_cv_file_magic_cmd='/bin/file' 6290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6291 ;; 6292 sni) 6293 lt_cv_file_magic_cmd='/bin/file' 6294 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6295 lt_cv_file_magic_test_file=/lib/libc.so 6296 ;; 6297 siemens) 6298 lt_cv_deplibs_check_method=pass_all 6299 ;; 6300 pc) 6301 lt_cv_deplibs_check_method=pass_all 6302 ;; 6303 esac 6304 ;; 6305 6306tpf*) 6307 lt_cv_deplibs_check_method=pass_all 6308 ;; 6309esac 6310 6311fi 6312{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6313$as_echo "$lt_cv_deplibs_check_method" >&6; } 6314file_magic_cmd=$lt_cv_file_magic_cmd 6315deplibs_check_method=$lt_cv_deplibs_check_method 6316test -z "$deplibs_check_method" && deplibs_check_method=unknown 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329if test -n "$ac_tool_prefix"; then 6330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6331set dummy ${ac_tool_prefix}ar; ac_word=$2 6332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6333$as_echo_n "checking for $ac_word... " >&6; } 6334if test "${ac_cv_prog_AR+set}" = set; then 6335 $as_echo_n "(cached) " >&6 6336else 6337 if test -n "$AR"; then 6338 ac_cv_prog_AR="$AR" # Let the user override the test. 6339else 6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6341for as_dir in $PATH 6342do 6343 IFS=$as_save_IFS 6344 test -z "$as_dir" && as_dir=. 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6347 ac_cv_prog_AR="${ac_tool_prefix}ar" 6348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6349 break 2 6350 fi 6351done 6352done 6353IFS=$as_save_IFS 6354 6355fi 6356fi 6357AR=$ac_cv_prog_AR 6358if test -n "$AR"; then 6359 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6360$as_echo "$AR" >&6; } 6361else 6362 { $as_echo "$as_me:$LINENO: result: no" >&5 6363$as_echo "no" >&6; } 6364fi 6365 6366 6367fi 6368if test -z "$ac_cv_prog_AR"; then 6369 ac_ct_AR=$AR 6370 # Extract the first word of "ar", so it can be a program name with args. 6371set dummy ar; ac_word=$2 6372{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6373$as_echo_n "checking for $ac_word... " >&6; } 6374if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6375 $as_echo_n "(cached) " >&6 6376else 6377 if test -n "$ac_ct_AR"; then 6378 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6379else 6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6381for as_dir in $PATH 6382do 6383 IFS=$as_save_IFS 6384 test -z "$as_dir" && as_dir=. 6385 for ac_exec_ext in '' $ac_executable_extensions; do 6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6387 ac_cv_prog_ac_ct_AR="ar" 6388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6389 break 2 6390 fi 6391done 6392done 6393IFS=$as_save_IFS 6394 6395fi 6396fi 6397ac_ct_AR=$ac_cv_prog_ac_ct_AR 6398if test -n "$ac_ct_AR"; then 6399 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6400$as_echo "$ac_ct_AR" >&6; } 6401else 6402 { $as_echo "$as_me:$LINENO: result: no" >&5 6403$as_echo "no" >&6; } 6404fi 6405 6406 if test "x$ac_ct_AR" = x; then 6407 AR="false" 6408 else 6409 case $cross_compiling:$ac_tool_warned in 6410yes:) 6411{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6413ac_tool_warned=yes ;; 6414esac 6415 AR=$ac_ct_AR 6416 fi 6417else 6418 AR="$ac_cv_prog_AR" 6419fi 6420 6421test -z "$AR" && AR=ar 6422test -z "$AR_FLAGS" && AR_FLAGS=cru 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434if test -n "$ac_tool_prefix"; then 6435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6436set dummy ${ac_tool_prefix}strip; ac_word=$2 6437{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6438$as_echo_n "checking for $ac_word... " >&6; } 6439if test "${ac_cv_prog_STRIP+set}" = set; then 6440 $as_echo_n "(cached) " >&6 6441else 6442 if test -n "$STRIP"; then 6443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6444else 6445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6446for as_dir in $PATH 6447do 6448 IFS=$as_save_IFS 6449 test -z "$as_dir" && as_dir=. 6450 for ac_exec_ext in '' $ac_executable_extensions; do 6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6452 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6454 break 2 6455 fi 6456done 6457done 6458IFS=$as_save_IFS 6459 6460fi 6461fi 6462STRIP=$ac_cv_prog_STRIP 6463if test -n "$STRIP"; then 6464 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6465$as_echo "$STRIP" >&6; } 6466else 6467 { $as_echo "$as_me:$LINENO: result: no" >&5 6468$as_echo "no" >&6; } 6469fi 6470 6471 6472fi 6473if test -z "$ac_cv_prog_STRIP"; then 6474 ac_ct_STRIP=$STRIP 6475 # Extract the first word of "strip", so it can be a program name with args. 6476set dummy strip; ac_word=$2 6477{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6478$as_echo_n "checking for $ac_word... " >&6; } 6479if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6480 $as_echo_n "(cached) " >&6 6481else 6482 if test -n "$ac_ct_STRIP"; then 6483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6484else 6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6486for as_dir in $PATH 6487do 6488 IFS=$as_save_IFS 6489 test -z "$as_dir" && as_dir=. 6490 for ac_exec_ext in '' $ac_executable_extensions; do 6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6492 ac_cv_prog_ac_ct_STRIP="strip" 6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6494 break 2 6495 fi 6496done 6497done 6498IFS=$as_save_IFS 6499 6500fi 6501fi 6502ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6503if test -n "$ac_ct_STRIP"; then 6504 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6505$as_echo "$ac_ct_STRIP" >&6; } 6506else 6507 { $as_echo "$as_me:$LINENO: result: no" >&5 6508$as_echo "no" >&6; } 6509fi 6510 6511 if test "x$ac_ct_STRIP" = x; then 6512 STRIP=":" 6513 else 6514 case $cross_compiling:$ac_tool_warned in 6515yes:) 6516{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6518ac_tool_warned=yes ;; 6519esac 6520 STRIP=$ac_ct_STRIP 6521 fi 6522else 6523 STRIP="$ac_cv_prog_STRIP" 6524fi 6525 6526test -z "$STRIP" && STRIP=: 6527 6528 6529 6530 6531 6532 6533if test -n "$ac_tool_prefix"; then 6534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6535set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6536{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6537$as_echo_n "checking for $ac_word... " >&6; } 6538if test "${ac_cv_prog_RANLIB+set}" = set; then 6539 $as_echo_n "(cached) " >&6 6540else 6541 if test -n "$RANLIB"; then 6542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6543else 6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6545for as_dir in $PATH 6546do 6547 IFS=$as_save_IFS 6548 test -z "$as_dir" && as_dir=. 6549 for ac_exec_ext in '' $ac_executable_extensions; do 6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6551 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6553 break 2 6554 fi 6555done 6556done 6557IFS=$as_save_IFS 6558 6559fi 6560fi 6561RANLIB=$ac_cv_prog_RANLIB 6562if test -n "$RANLIB"; then 6563 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6564$as_echo "$RANLIB" >&6; } 6565else 6566 { $as_echo "$as_me:$LINENO: result: no" >&5 6567$as_echo "no" >&6; } 6568fi 6569 6570 6571fi 6572if test -z "$ac_cv_prog_RANLIB"; then 6573 ac_ct_RANLIB=$RANLIB 6574 # Extract the first word of "ranlib", so it can be a program name with args. 6575set dummy ranlib; ac_word=$2 6576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6577$as_echo_n "checking for $ac_word... " >&6; } 6578if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6579 $as_echo_n "(cached) " >&6 6580else 6581 if test -n "$ac_ct_RANLIB"; then 6582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6583else 6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6585for as_dir in $PATH 6586do 6587 IFS=$as_save_IFS 6588 test -z "$as_dir" && as_dir=. 6589 for ac_exec_ext in '' $ac_executable_extensions; do 6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6591 ac_cv_prog_ac_ct_RANLIB="ranlib" 6592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6593 break 2 6594 fi 6595done 6596done 6597IFS=$as_save_IFS 6598 6599fi 6600fi 6601ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6602if test -n "$ac_ct_RANLIB"; then 6603 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6604$as_echo "$ac_ct_RANLIB" >&6; } 6605else 6606 { $as_echo "$as_me:$LINENO: result: no" >&5 6607$as_echo "no" >&6; } 6608fi 6609 6610 if test "x$ac_ct_RANLIB" = x; then 6611 RANLIB=":" 6612 else 6613 case $cross_compiling:$ac_tool_warned in 6614yes:) 6615{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6617ac_tool_warned=yes ;; 6618esac 6619 RANLIB=$ac_ct_RANLIB 6620 fi 6621else 6622 RANLIB="$ac_cv_prog_RANLIB" 6623fi 6624 6625test -z "$RANLIB" && RANLIB=: 6626 6627 6628 6629 6630 6631 6632# Determine commands to create old-style static archives. 6633old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6634old_postinstall_cmds='chmod 644 $oldlib' 6635old_postuninstall_cmds= 6636 6637if test -n "$RANLIB"; then 6638 case $host_os in 6639 openbsd*) 6640 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6641 ;; 6642 *) 6643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6644 ;; 6645 esac 6646 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6647fi 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682# If no C compiler was specified, use CC. 6683LTCC=${LTCC-"$CC"} 6684 6685# If no C compiler flags were specified, use CFLAGS. 6686LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6687 6688# Allow CC to be a program name with arguments. 6689compiler=$CC 6690 6691 6692# Check for command to grab the raw symbol name followed by C symbol from nm. 6693{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6694$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6695if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6696 $as_echo_n "(cached) " >&6 6697else 6698 6699# These are sane defaults that work on at least a few old systems. 6700# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6701 6702# Character class describing NM global symbol codes. 6703symcode='[BCDEGRST]' 6704 6705# Regexp to match symbols that can be accessed directly from C. 6706sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6707 6708# Define system-specific variables. 6709case $host_os in 6710aix*) 6711 symcode='[BCDT]' 6712 ;; 6713cygwin* | mingw* | pw32* | cegcc*) 6714 symcode='[ABCDGISTW]' 6715 ;; 6716hpux*) 6717 if test "$host_cpu" = ia64; then 6718 symcode='[ABCDEGRST]' 6719 fi 6720 ;; 6721irix* | nonstopux*) 6722 symcode='[BCDEGRST]' 6723 ;; 6724osf*) 6725 symcode='[BCDEGQRST]' 6726 ;; 6727solaris*) 6728 symcode='[BDRT]' 6729 ;; 6730sco3.2v5*) 6731 symcode='[DT]' 6732 ;; 6733sysv4.2uw2*) 6734 symcode='[DT]' 6735 ;; 6736sysv5* | sco5v6* | unixware* | OpenUNIX*) 6737 symcode='[ABDT]' 6738 ;; 6739sysv4) 6740 symcode='[DFNSTU]' 6741 ;; 6742esac 6743 6744# If we're using GNU nm, then use its standard symbol codes. 6745case `$NM -V 2>&1` in 6746*GNU* | *'with BFD'*) 6747 symcode='[ABCDGIRSTW]' ;; 6748esac 6749 6750# Transform an extracted symbol line into a proper C declaration. 6751# Some systems (esp. on ia64) link data and code symbols differently, 6752# so use this general approach. 6753lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6754 6755# Transform an extracted symbol line into symbol name and symbol address 6756lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6757lt_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'" 6758 6759# Handle CRLF in mingw tool chain 6760opt_cr= 6761case $build_os in 6762mingw*) 6763 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6764 ;; 6765esac 6766 6767# Try without a prefix underscore, then with it. 6768for ac_symprfx in "" "_"; do 6769 6770 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6771 symxfrm="\\1 $ac_symprfx\\2 \\2" 6772 6773 # Write the raw and C identifiers. 6774 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6775 # Fake it for dumpbin and say T for any non-static function 6776 # and D for any global variable. 6777 # Also find C++ and __fastcall symbols from MSVC++, 6778 # which start with @ or ?. 6779 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6780" {last_section=section; section=\$ 3};"\ 6781" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6782" \$ 0!~/External *\|/{next};"\ 6783" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6784" {if(hide[section]) next};"\ 6785" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6786" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6787" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6788" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6789" ' prfx=^$ac_symprfx" 6790 else 6791 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6792 fi 6793 6794 # Check to see that the pipe works correctly. 6795 pipe_works=no 6796 6797 rm -f conftest* 6798 cat > conftest.$ac_ext <<_LT_EOF 6799#ifdef __cplusplus 6800extern "C" { 6801#endif 6802char nm_test_var; 6803void nm_test_func(void); 6804void nm_test_func(void){} 6805#ifdef __cplusplus 6806} 6807#endif 6808int main(){nm_test_var='a';nm_test_func();return(0);} 6809_LT_EOF 6810 6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6812 (eval $ac_compile) 2>&5 6813 ac_status=$? 6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 (exit $ac_status); }; then 6816 # Now try to grab the symbols. 6817 nlist=conftest.nm 6818 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6819 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6820 ac_status=$? 6821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 (exit $ac_status); } && test -s "$nlist"; then 6823 # Try sorting and uniquifying the output. 6824 if sort "$nlist" | uniq > "$nlist"T; then 6825 mv -f "$nlist"T "$nlist" 6826 else 6827 rm -f "$nlist"T 6828 fi 6829 6830 # Make sure that we snagged all the symbols we need. 6831 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6832 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6833 cat <<_LT_EOF > conftest.$ac_ext 6834#ifdef __cplusplus 6835extern "C" { 6836#endif 6837 6838_LT_EOF 6839 # Now generate the symbol file. 6840 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6841 6842 cat <<_LT_EOF >> conftest.$ac_ext 6843 6844/* The mapping between symbol names and symbols. */ 6845const struct { 6846 const char *name; 6847 void *address; 6848} 6849lt__PROGRAM__LTX_preloaded_symbols[] = 6850{ 6851 { "@PROGRAM@", (void *) 0 }, 6852_LT_EOF 6853 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6854 cat <<\_LT_EOF >> conftest.$ac_ext 6855 {0, (void *) 0} 6856}; 6857 6858/* This works around a problem in FreeBSD linker */ 6859#ifdef FREEBSD_WORKAROUND 6860static const void *lt_preloaded_setup() { 6861 return lt__PROGRAM__LTX_preloaded_symbols; 6862} 6863#endif 6864 6865#ifdef __cplusplus 6866} 6867#endif 6868_LT_EOF 6869 # Now try linking the two files. 6870 mv conftest.$ac_objext conftstm.$ac_objext 6871 lt_save_LIBS="$LIBS" 6872 lt_save_CFLAGS="$CFLAGS" 6873 LIBS="conftstm.$ac_objext" 6874 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6876 (eval $ac_link) 2>&5 6877 ac_status=$? 6878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6879 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6880 pipe_works=yes 6881 fi 6882 LIBS="$lt_save_LIBS" 6883 CFLAGS="$lt_save_CFLAGS" 6884 else 6885 echo "cannot find nm_test_func in $nlist" >&5 6886 fi 6887 else 6888 echo "cannot find nm_test_var in $nlist" >&5 6889 fi 6890 else 6891 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6892 fi 6893 else 6894 echo "$progname: failed program was:" >&5 6895 cat conftest.$ac_ext >&5 6896 fi 6897 rm -rf conftest* conftst* 6898 6899 # Do not use the global_symbol_pipe unless it works. 6900 if test "$pipe_works" = yes; then 6901 break 6902 else 6903 lt_cv_sys_global_symbol_pipe= 6904 fi 6905done 6906 6907fi 6908 6909if test -z "$lt_cv_sys_global_symbol_pipe"; then 6910 lt_cv_sys_global_symbol_to_cdecl= 6911fi 6912if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6913 { $as_echo "$as_me:$LINENO: result: failed" >&5 6914$as_echo "failed" >&6; } 6915else 6916 { $as_echo "$as_me:$LINENO: result: ok" >&5 6917$as_echo "ok" >&6; } 6918fi 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941# Check whether --enable-libtool-lock was given. 6942if test "${enable_libtool_lock+set}" = set; then 6943 enableval=$enable_libtool_lock; 6944fi 6945 6946test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6947 6948# Some flags need to be propagated to the compiler or linker for good 6949# libtool support. 6950case $host in 6951ia64-*-hpux*) 6952 # Find out which ABI we are using. 6953 echo 'int i;' > conftest.$ac_ext 6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6955 (eval $ac_compile) 2>&5 6956 ac_status=$? 6957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6958 (exit $ac_status); }; then 6959 case `/usr/bin/file conftest.$ac_objext` in 6960 *ELF-32*) 6961 HPUX_IA64_MODE="32" 6962 ;; 6963 *ELF-64*) 6964 HPUX_IA64_MODE="64" 6965 ;; 6966 esac 6967 fi 6968 rm -rf conftest* 6969 ;; 6970*-*-irix6*) 6971 # Find out which ABI we are using. 6972 echo '#line 6972 "configure"' > conftest.$ac_ext 6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6974 (eval $ac_compile) 2>&5 6975 ac_status=$? 6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6977 (exit $ac_status); }; then 6978 if test "$lt_cv_prog_gnu_ld" = yes; then 6979 case `/usr/bin/file conftest.$ac_objext` in 6980 *32-bit*) 6981 LD="${LD-ld} -melf32bsmip" 6982 ;; 6983 *N32*) 6984 LD="${LD-ld} -melf32bmipn32" 6985 ;; 6986 *64-bit*) 6987 LD="${LD-ld} -melf64bmip" 6988 ;; 6989 esac 6990 else 6991 case `/usr/bin/file conftest.$ac_objext` in 6992 *32-bit*) 6993 LD="${LD-ld} -32" 6994 ;; 6995 *N32*) 6996 LD="${LD-ld} -n32" 6997 ;; 6998 *64-bit*) 6999 LD="${LD-ld} -64" 7000 ;; 7001 esac 7002 fi 7003 fi 7004 rm -rf conftest* 7005 ;; 7006 7007x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7008s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7009 # Find out which ABI we are using. 7010 echo 'int i;' > conftest.$ac_ext 7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7012 (eval $ac_compile) 2>&5 7013 ac_status=$? 7014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7015 (exit $ac_status); }; then 7016 case `/usr/bin/file conftest.o` in 7017 *32-bit*) 7018 case $host in 7019 x86_64-*kfreebsd*-gnu) 7020 LD="${LD-ld} -m elf_i386_fbsd" 7021 ;; 7022 x86_64-*linux*) 7023 LD="${LD-ld} -m elf_i386" 7024 ;; 7025 ppc64-*linux*|powerpc64-*linux*) 7026 LD="${LD-ld} -m elf32ppclinux" 7027 ;; 7028 s390x-*linux*) 7029 LD="${LD-ld} -m elf_s390" 7030 ;; 7031 sparc64-*linux*) 7032 LD="${LD-ld} -m elf32_sparc" 7033 ;; 7034 esac 7035 ;; 7036 *64-bit*) 7037 case $host in 7038 x86_64-*kfreebsd*-gnu) 7039 LD="${LD-ld} -m elf_x86_64_fbsd" 7040 ;; 7041 x86_64-*linux*) 7042 LD="${LD-ld} -m elf_x86_64" 7043 ;; 7044 ppc*-*linux*|powerpc*-*linux*) 7045 LD="${LD-ld} -m elf64ppc" 7046 ;; 7047 s390*-*linux*|s390*-*tpf*) 7048 LD="${LD-ld} -m elf64_s390" 7049 ;; 7050 sparc*-*linux*) 7051 LD="${LD-ld} -m elf64_sparc" 7052 ;; 7053 esac 7054 ;; 7055 esac 7056 fi 7057 rm -rf conftest* 7058 ;; 7059 7060*-*-sco3.2v5*) 7061 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7062 SAVE_CFLAGS="$CFLAGS" 7063 CFLAGS="$CFLAGS -belf" 7064 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7065$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7066if test "${lt_cv_cc_needs_belf+set}" = set; then 7067 $as_echo_n "(cached) " >&6 7068else 7069 ac_ext=c 7070ac_cpp='$CPP $CPPFLAGS' 7071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7073ac_compiler_gnu=$ac_cv_c_compiler_gnu 7074 7075 cat >conftest.$ac_ext <<_ACEOF 7076/* confdefs.h. */ 7077_ACEOF 7078cat confdefs.h >>conftest.$ac_ext 7079cat >>conftest.$ac_ext <<_ACEOF 7080/* end confdefs.h. */ 7081 7082int 7083main () 7084{ 7085 7086 ; 7087 return 0; 7088} 7089_ACEOF 7090rm -f conftest.$ac_objext conftest$ac_exeext 7091if { (ac_try="$ac_link" 7092case "(($ac_try" in 7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7094 *) ac_try_echo=$ac_try;; 7095esac 7096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7097$as_echo "$ac_try_echo") >&5 7098 (eval "$ac_link") 2>conftest.er1 7099 ac_status=$? 7100 grep -v '^ *+' conftest.er1 >conftest.err 7101 rm -f conftest.er1 7102 cat conftest.err >&5 7103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7104 (exit $ac_status); } && { 7105 test -z "$ac_c_werror_flag" || 7106 test ! -s conftest.err 7107 } && test -s conftest$ac_exeext && { 7108 test "$cross_compiling" = yes || 7109 $as_test_x conftest$ac_exeext 7110 }; then 7111 lt_cv_cc_needs_belf=yes 7112else 7113 $as_echo "$as_me: failed program was:" >&5 7114sed 's/^/| /' conftest.$ac_ext >&5 7115 7116 lt_cv_cc_needs_belf=no 7117fi 7118 7119rm -rf conftest.dSYM 7120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7121 conftest$ac_exeext conftest.$ac_ext 7122 ac_ext=c 7123ac_cpp='$CPP $CPPFLAGS' 7124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7126ac_compiler_gnu=$ac_cv_c_compiler_gnu 7127 7128fi 7129{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7130$as_echo "$lt_cv_cc_needs_belf" >&6; } 7131 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7133 CFLAGS="$SAVE_CFLAGS" 7134 fi 7135 ;; 7136sparc*-*solaris*) 7137 # Find out which ABI we are using. 7138 echo 'int i;' > conftest.$ac_ext 7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7140 (eval $ac_compile) 2>&5 7141 ac_status=$? 7142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7143 (exit $ac_status); }; then 7144 case `/usr/bin/file conftest.o` in 7145 *64-bit*) 7146 case $lt_cv_prog_gnu_ld in 7147 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7148 *) 7149 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7150 LD="${LD-ld} -64" 7151 fi 7152 ;; 7153 esac 7154 ;; 7155 esac 7156 fi 7157 rm -rf conftest* 7158 ;; 7159esac 7160 7161need_locks="$enable_libtool_lock" 7162 7163 7164 case $host_os in 7165 rhapsody* | darwin*) 7166 if test -n "$ac_tool_prefix"; then 7167 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7168set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7169{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7170$as_echo_n "checking for $ac_word... " >&6; } 7171if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7172 $as_echo_n "(cached) " >&6 7173else 7174 if test -n "$DSYMUTIL"; then 7175 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7176else 7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7178for as_dir in $PATH 7179do 7180 IFS=$as_save_IFS 7181 test -z "$as_dir" && as_dir=. 7182 for ac_exec_ext in '' $ac_executable_extensions; do 7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7184 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7186 break 2 7187 fi 7188done 7189done 7190IFS=$as_save_IFS 7191 7192fi 7193fi 7194DSYMUTIL=$ac_cv_prog_DSYMUTIL 7195if test -n "$DSYMUTIL"; then 7196 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7197$as_echo "$DSYMUTIL" >&6; } 7198else 7199 { $as_echo "$as_me:$LINENO: result: no" >&5 7200$as_echo "no" >&6; } 7201fi 7202 7203 7204fi 7205if test -z "$ac_cv_prog_DSYMUTIL"; then 7206 ac_ct_DSYMUTIL=$DSYMUTIL 7207 # Extract the first word of "dsymutil", so it can be a program name with args. 7208set dummy dsymutil; ac_word=$2 7209{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7210$as_echo_n "checking for $ac_word... " >&6; } 7211if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7212 $as_echo_n "(cached) " >&6 7213else 7214 if test -n "$ac_ct_DSYMUTIL"; then 7215 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7216else 7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7218for as_dir in $PATH 7219do 7220 IFS=$as_save_IFS 7221 test -z "$as_dir" && as_dir=. 7222 for ac_exec_ext in '' $ac_executable_extensions; do 7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7224 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7226 break 2 7227 fi 7228done 7229done 7230IFS=$as_save_IFS 7231 7232fi 7233fi 7234ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7235if test -n "$ac_ct_DSYMUTIL"; then 7236 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7237$as_echo "$ac_ct_DSYMUTIL" >&6; } 7238else 7239 { $as_echo "$as_me:$LINENO: result: no" >&5 7240$as_echo "no" >&6; } 7241fi 7242 7243 if test "x$ac_ct_DSYMUTIL" = x; then 7244 DSYMUTIL=":" 7245 else 7246 case $cross_compiling:$ac_tool_warned in 7247yes:) 7248{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7250ac_tool_warned=yes ;; 7251esac 7252 DSYMUTIL=$ac_ct_DSYMUTIL 7253 fi 7254else 7255 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7256fi 7257 7258 if test -n "$ac_tool_prefix"; then 7259 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7260set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7261{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7262$as_echo_n "checking for $ac_word... " >&6; } 7263if test "${ac_cv_prog_NMEDIT+set}" = set; then 7264 $as_echo_n "(cached) " >&6 7265else 7266 if test -n "$NMEDIT"; then 7267 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7268else 7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7270for as_dir in $PATH 7271do 7272 IFS=$as_save_IFS 7273 test -z "$as_dir" && as_dir=. 7274 for ac_exec_ext in '' $ac_executable_extensions; do 7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7276 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7278 break 2 7279 fi 7280done 7281done 7282IFS=$as_save_IFS 7283 7284fi 7285fi 7286NMEDIT=$ac_cv_prog_NMEDIT 7287if test -n "$NMEDIT"; then 7288 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7289$as_echo "$NMEDIT" >&6; } 7290else 7291 { $as_echo "$as_me:$LINENO: result: no" >&5 7292$as_echo "no" >&6; } 7293fi 7294 7295 7296fi 7297if test -z "$ac_cv_prog_NMEDIT"; then 7298 ac_ct_NMEDIT=$NMEDIT 7299 # Extract the first word of "nmedit", so it can be a program name with args. 7300set dummy nmedit; ac_word=$2 7301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7302$as_echo_n "checking for $ac_word... " >&6; } 7303if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7304 $as_echo_n "(cached) " >&6 7305else 7306 if test -n "$ac_ct_NMEDIT"; then 7307 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7308else 7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7310for as_dir in $PATH 7311do 7312 IFS=$as_save_IFS 7313 test -z "$as_dir" && as_dir=. 7314 for ac_exec_ext in '' $ac_executable_extensions; do 7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7316 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7318 break 2 7319 fi 7320done 7321done 7322IFS=$as_save_IFS 7323 7324fi 7325fi 7326ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7327if test -n "$ac_ct_NMEDIT"; then 7328 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7329$as_echo "$ac_ct_NMEDIT" >&6; } 7330else 7331 { $as_echo "$as_me:$LINENO: result: no" >&5 7332$as_echo "no" >&6; } 7333fi 7334 7335 if test "x$ac_ct_NMEDIT" = x; then 7336 NMEDIT=":" 7337 else 7338 case $cross_compiling:$ac_tool_warned in 7339yes:) 7340{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7342ac_tool_warned=yes ;; 7343esac 7344 NMEDIT=$ac_ct_NMEDIT 7345 fi 7346else 7347 NMEDIT="$ac_cv_prog_NMEDIT" 7348fi 7349 7350 if test -n "$ac_tool_prefix"; then 7351 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7352set dummy ${ac_tool_prefix}lipo; ac_word=$2 7353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7354$as_echo_n "checking for $ac_word... " >&6; } 7355if test "${ac_cv_prog_LIPO+set}" = set; then 7356 $as_echo_n "(cached) " >&6 7357else 7358 if test -n "$LIPO"; then 7359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7360else 7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7362for as_dir in $PATH 7363do 7364 IFS=$as_save_IFS 7365 test -z "$as_dir" && as_dir=. 7366 for ac_exec_ext in '' $ac_executable_extensions; do 7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7368 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7370 break 2 7371 fi 7372done 7373done 7374IFS=$as_save_IFS 7375 7376fi 7377fi 7378LIPO=$ac_cv_prog_LIPO 7379if test -n "$LIPO"; then 7380 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 7381$as_echo "$LIPO" >&6; } 7382else 7383 { $as_echo "$as_me:$LINENO: result: no" >&5 7384$as_echo "no" >&6; } 7385fi 7386 7387 7388fi 7389if test -z "$ac_cv_prog_LIPO"; then 7390 ac_ct_LIPO=$LIPO 7391 # Extract the first word of "lipo", so it can be a program name with args. 7392set dummy lipo; ac_word=$2 7393{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7394$as_echo_n "checking for $ac_word... " >&6; } 7395if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7396 $as_echo_n "(cached) " >&6 7397else 7398 if test -n "$ac_ct_LIPO"; then 7399 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7400else 7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7402for as_dir in $PATH 7403do 7404 IFS=$as_save_IFS 7405 test -z "$as_dir" && as_dir=. 7406 for ac_exec_ext in '' $ac_executable_extensions; do 7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7408 ac_cv_prog_ac_ct_LIPO="lipo" 7409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7410 break 2 7411 fi 7412done 7413done 7414IFS=$as_save_IFS 7415 7416fi 7417fi 7418ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7419if test -n "$ac_ct_LIPO"; then 7420 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7421$as_echo "$ac_ct_LIPO" >&6; } 7422else 7423 { $as_echo "$as_me:$LINENO: result: no" >&5 7424$as_echo "no" >&6; } 7425fi 7426 7427 if test "x$ac_ct_LIPO" = x; then 7428 LIPO=":" 7429 else 7430 case $cross_compiling:$ac_tool_warned in 7431yes:) 7432{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7434ac_tool_warned=yes ;; 7435esac 7436 LIPO=$ac_ct_LIPO 7437 fi 7438else 7439 LIPO="$ac_cv_prog_LIPO" 7440fi 7441 7442 if test -n "$ac_tool_prefix"; then 7443 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7444set dummy ${ac_tool_prefix}otool; ac_word=$2 7445{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7446$as_echo_n "checking for $ac_word... " >&6; } 7447if test "${ac_cv_prog_OTOOL+set}" = set; then 7448 $as_echo_n "(cached) " >&6 7449else 7450 if test -n "$OTOOL"; then 7451 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7452else 7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7454for as_dir in $PATH 7455do 7456 IFS=$as_save_IFS 7457 test -z "$as_dir" && as_dir=. 7458 for ac_exec_ext in '' $ac_executable_extensions; do 7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7460 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7462 break 2 7463 fi 7464done 7465done 7466IFS=$as_save_IFS 7467 7468fi 7469fi 7470OTOOL=$ac_cv_prog_OTOOL 7471if test -n "$OTOOL"; then 7472 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 7473$as_echo "$OTOOL" >&6; } 7474else 7475 { $as_echo "$as_me:$LINENO: result: no" >&5 7476$as_echo "no" >&6; } 7477fi 7478 7479 7480fi 7481if test -z "$ac_cv_prog_OTOOL"; then 7482 ac_ct_OTOOL=$OTOOL 7483 # Extract the first word of "otool", so it can be a program name with args. 7484set dummy otool; ac_word=$2 7485{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7486$as_echo_n "checking for $ac_word... " >&6; } 7487if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7488 $as_echo_n "(cached) " >&6 7489else 7490 if test -n "$ac_ct_OTOOL"; then 7491 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7492else 7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7494for as_dir in $PATH 7495do 7496 IFS=$as_save_IFS 7497 test -z "$as_dir" && as_dir=. 7498 for ac_exec_ext in '' $ac_executable_extensions; do 7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7500 ac_cv_prog_ac_ct_OTOOL="otool" 7501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7502 break 2 7503 fi 7504done 7505done 7506IFS=$as_save_IFS 7507 7508fi 7509fi 7510ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7511if test -n "$ac_ct_OTOOL"; then 7512 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7513$as_echo "$ac_ct_OTOOL" >&6; } 7514else 7515 { $as_echo "$as_me:$LINENO: result: no" >&5 7516$as_echo "no" >&6; } 7517fi 7518 7519 if test "x$ac_ct_OTOOL" = x; then 7520 OTOOL=":" 7521 else 7522 case $cross_compiling:$ac_tool_warned in 7523yes:) 7524{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7526ac_tool_warned=yes ;; 7527esac 7528 OTOOL=$ac_ct_OTOOL 7529 fi 7530else 7531 OTOOL="$ac_cv_prog_OTOOL" 7532fi 7533 7534 if test -n "$ac_tool_prefix"; then 7535 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7536set dummy ${ac_tool_prefix}otool64; ac_word=$2 7537{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7538$as_echo_n "checking for $ac_word... " >&6; } 7539if test "${ac_cv_prog_OTOOL64+set}" = set; then 7540 $as_echo_n "(cached) " >&6 7541else 7542 if test -n "$OTOOL64"; then 7543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7544else 7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7546for as_dir in $PATH 7547do 7548 IFS=$as_save_IFS 7549 test -z "$as_dir" && as_dir=. 7550 for ac_exec_ext in '' $ac_executable_extensions; do 7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7554 break 2 7555 fi 7556done 7557done 7558IFS=$as_save_IFS 7559 7560fi 7561fi 7562OTOOL64=$ac_cv_prog_OTOOL64 7563if test -n "$OTOOL64"; then 7564 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 7565$as_echo "$OTOOL64" >&6; } 7566else 7567 { $as_echo "$as_me:$LINENO: result: no" >&5 7568$as_echo "no" >&6; } 7569fi 7570 7571 7572fi 7573if test -z "$ac_cv_prog_OTOOL64"; then 7574 ac_ct_OTOOL64=$OTOOL64 7575 # Extract the first word of "otool64", so it can be a program name with args. 7576set dummy otool64; ac_word=$2 7577{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7578$as_echo_n "checking for $ac_word... " >&6; } 7579if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7580 $as_echo_n "(cached) " >&6 7581else 7582 if test -n "$ac_ct_OTOOL64"; then 7583 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7584else 7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7586for as_dir in $PATH 7587do 7588 IFS=$as_save_IFS 7589 test -z "$as_dir" && as_dir=. 7590 for ac_exec_ext in '' $ac_executable_extensions; do 7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7592 ac_cv_prog_ac_ct_OTOOL64="otool64" 7593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7594 break 2 7595 fi 7596done 7597done 7598IFS=$as_save_IFS 7599 7600fi 7601fi 7602ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7603if test -n "$ac_ct_OTOOL64"; then 7604 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7605$as_echo "$ac_ct_OTOOL64" >&6; } 7606else 7607 { $as_echo "$as_me:$LINENO: result: no" >&5 7608$as_echo "no" >&6; } 7609fi 7610 7611 if test "x$ac_ct_OTOOL64" = x; then 7612 OTOOL64=":" 7613 else 7614 case $cross_compiling:$ac_tool_warned in 7615yes:) 7616{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7618ac_tool_warned=yes ;; 7619esac 7620 OTOOL64=$ac_ct_OTOOL64 7621 fi 7622else 7623 OTOOL64="$ac_cv_prog_OTOOL64" 7624fi 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7653$as_echo_n "checking for -single_module linker flag... " >&6; } 7654if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7655 $as_echo_n "(cached) " >&6 7656else 7657 lt_cv_apple_cc_single_mod=no 7658 if test -z "${LT_MULTI_MODULE}"; then 7659 # By default we will add the -single_module flag. You can override 7660 # by either setting the environment variable LT_MULTI_MODULE 7661 # non-empty at configure time, or by adding -multi_module to the 7662 # link flags. 7663 rm -rf libconftest.dylib* 7664 echo "int foo(void){return 1;}" > conftest.c 7665 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7666-dynamiclib -Wl,-single_module conftest.c" >&5 7667 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7668 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7669 _lt_result=$? 7670 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7671 lt_cv_apple_cc_single_mod=yes 7672 else 7673 cat conftest.err >&5 7674 fi 7675 rm -rf libconftest.dylib* 7676 rm -f conftest.* 7677 fi 7678fi 7679{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7680$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7681 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7682$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7683if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7684 $as_echo_n "(cached) " >&6 7685else 7686 lt_cv_ld_exported_symbols_list=no 7687 save_LDFLAGS=$LDFLAGS 7688 echo "_main" > conftest.sym 7689 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7690 cat >conftest.$ac_ext <<_ACEOF 7691/* confdefs.h. */ 7692_ACEOF 7693cat confdefs.h >>conftest.$ac_ext 7694cat >>conftest.$ac_ext <<_ACEOF 7695/* end confdefs.h. */ 7696 7697int 7698main () 7699{ 7700 7701 ; 7702 return 0; 7703} 7704_ACEOF 7705rm -f conftest.$ac_objext conftest$ac_exeext 7706if { (ac_try="$ac_link" 7707case "(($ac_try" in 7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7709 *) ac_try_echo=$ac_try;; 7710esac 7711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7712$as_echo "$ac_try_echo") >&5 7713 (eval "$ac_link") 2>conftest.er1 7714 ac_status=$? 7715 grep -v '^ *+' conftest.er1 >conftest.err 7716 rm -f conftest.er1 7717 cat conftest.err >&5 7718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7719 (exit $ac_status); } && { 7720 test -z "$ac_c_werror_flag" || 7721 test ! -s conftest.err 7722 } && test -s conftest$ac_exeext && { 7723 test "$cross_compiling" = yes || 7724 $as_test_x conftest$ac_exeext 7725 }; then 7726 lt_cv_ld_exported_symbols_list=yes 7727else 7728 $as_echo "$as_me: failed program was:" >&5 7729sed 's/^/| /' conftest.$ac_ext >&5 7730 7731 lt_cv_ld_exported_symbols_list=no 7732fi 7733 7734rm -rf conftest.dSYM 7735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7736 conftest$ac_exeext conftest.$ac_ext 7737 LDFLAGS="$save_LDFLAGS" 7738 7739fi 7740{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7741$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7742 case $host_os in 7743 rhapsody* | darwin1.[012]) 7744 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7745 darwin1.*) 7746 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7747 darwin*) # darwin 5.x on 7748 # if running on 10.5 or later, the deployment target defaults 7749 # to the OS version, if on x86, and 10.4, the deployment 7750 # target defaults to 10.4. Don't you love it? 7751 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7752 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7753 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7754 10.[012]*) 7755 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7756 10.*) 7757 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7758 esac 7759 ;; 7760 esac 7761 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7762 _lt_dar_single_mod='$single_module' 7763 fi 7764 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7765 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7766 else 7767 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7768 fi 7769 if test "$DSYMUTIL" != ":"; then 7770 _lt_dsymutil='~$DSYMUTIL $lib || :' 7771 else 7772 _lt_dsymutil= 7773 fi 7774 ;; 7775 esac 7776 7777 7778for ac_header in dlfcn.h 7779do 7780as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7781{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7782$as_echo_n "checking for $ac_header... " >&6; } 7783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7784 $as_echo_n "(cached) " >&6 7785else 7786 cat >conftest.$ac_ext <<_ACEOF 7787/* confdefs.h. */ 7788_ACEOF 7789cat confdefs.h >>conftest.$ac_ext 7790cat >>conftest.$ac_ext <<_ACEOF 7791/* end confdefs.h. */ 7792$ac_includes_default 7793 7794#include <$ac_header> 7795_ACEOF 7796rm -f conftest.$ac_objext 7797if { (ac_try="$ac_compile" 7798case "(($ac_try" in 7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7800 *) ac_try_echo=$ac_try;; 7801esac 7802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7803$as_echo "$ac_try_echo") >&5 7804 (eval "$ac_compile") 2>conftest.er1 7805 ac_status=$? 7806 grep -v '^ *+' conftest.er1 >conftest.err 7807 rm -f conftest.er1 7808 cat conftest.err >&5 7809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7810 (exit $ac_status); } && { 7811 test -z "$ac_c_werror_flag" || 7812 test ! -s conftest.err 7813 } && test -s conftest.$ac_objext; then 7814 eval "$as_ac_Header=yes" 7815else 7816 $as_echo "$as_me: failed program was:" >&5 7817sed 's/^/| /' conftest.$ac_ext >&5 7818 7819 eval "$as_ac_Header=no" 7820fi 7821 7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7823fi 7824ac_res=`eval 'as_val=${'$as_ac_Header'} 7825 $as_echo "$as_val"'` 7826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7827$as_echo "$ac_res" >&6; } 7828as_val=`eval 'as_val=${'$as_ac_Header'} 7829 $as_echo "$as_val"'` 7830 if test "x$as_val" = x""yes; then 7831 cat >>confdefs.h <<_ACEOF 7832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7833_ACEOF 7834 7835fi 7836 7837done 7838 7839 7840 7841# Set options 7842 7843 7844 7845 enable_dlopen=no 7846 7847 7848 enable_win32_dll=no 7849 7850 7851 # Check whether --enable-shared was given. 7852if test "${enable_shared+set}" = set; then 7853 enableval=$enable_shared; p=${PACKAGE-default} 7854 case $enableval in 7855 yes) enable_shared=yes ;; 7856 no) enable_shared=no ;; 7857 *) 7858 enable_shared=no 7859 # Look at the argument we got. We use all the common list separators. 7860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7861 for pkg in $enableval; do 7862 IFS="$lt_save_ifs" 7863 if test "X$pkg" = "X$p"; then 7864 enable_shared=yes 7865 fi 7866 done 7867 IFS="$lt_save_ifs" 7868 ;; 7869 esac 7870else 7871 enable_shared=yes 7872fi 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884# Check whether --with-pic was given. 7885if test "${with_pic+set}" = set; then 7886 withval=$with_pic; pic_mode="$withval" 7887else 7888 pic_mode=default 7889fi 7890 7891 7892test -z "$pic_mode" && pic_mode=default 7893 7894 7895 7896 7897 7898 7899 7900 # Check whether --enable-fast-install was given. 7901if test "${enable_fast_install+set}" = set; then 7902 enableval=$enable_fast_install; p=${PACKAGE-default} 7903 case $enableval in 7904 yes) enable_fast_install=yes ;; 7905 no) enable_fast_install=no ;; 7906 *) 7907 enable_fast_install=no 7908 # Look at the argument we got. We use all the common list separators. 7909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7910 for pkg in $enableval; do 7911 IFS="$lt_save_ifs" 7912 if test "X$pkg" = "X$p"; then 7913 enable_fast_install=yes 7914 fi 7915 done 7916 IFS="$lt_save_ifs" 7917 ;; 7918 esac 7919else 7920 enable_fast_install=yes 7921fi 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933# This can be used to rebuild libtool when needed 7934LIBTOOL_DEPS="$ltmain" 7935 7936# Always use our own libtool. 7937LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963test -z "$LN_S" && LN_S="ln -s" 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978if test -n "${ZSH_VERSION+set}" ; then 7979 setopt NO_GLOB_SUBST 7980fi 7981 7982{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7983$as_echo_n "checking for objdir... " >&6; } 7984if test "${lt_cv_objdir+set}" = set; then 7985 $as_echo_n "(cached) " >&6 7986else 7987 rm -f .libs 2>/dev/null 7988mkdir .libs 2>/dev/null 7989if test -d .libs; then 7990 lt_cv_objdir=.libs 7991else 7992 # MS-DOS does not allow filenames that begin with a dot. 7993 lt_cv_objdir=_libs 7994fi 7995rmdir .libs 2>/dev/null 7996fi 7997{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7998$as_echo "$lt_cv_objdir" >&6; } 7999objdir=$lt_cv_objdir 8000 8001 8002 8003 8004 8005cat >>confdefs.h <<_ACEOF 8006#define LT_OBJDIR "$lt_cv_objdir/" 8007_ACEOF 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025case $host_os in 8026aix3*) 8027 # AIX sometimes has problems with the GCC collect2 program. For some 8028 # reason, if we set the COLLECT_NAMES environment variable, the problems 8029 # vanish in a puff of smoke. 8030 if test "X${COLLECT_NAMES+set}" != Xset; then 8031 COLLECT_NAMES= 8032 export COLLECT_NAMES 8033 fi 8034 ;; 8035esac 8036 8037# Sed substitution that helps us do robust quoting. It backslashifies 8038# metacharacters that are still active within double-quoted strings. 8039sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8040 8041# Same as above, but do not quote variable references. 8042double_quote_subst='s/\(["`\\]\)/\\\1/g' 8043 8044# Sed substitution to delay expansion of an escaped shell variable in a 8045# double_quote_subst'ed string. 8046delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8047 8048# Sed substitution to delay expansion of an escaped single quote. 8049delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8050 8051# Sed substitution to avoid accidental globbing in evaled expressions 8052no_glob_subst='s/\*/\\\*/g' 8053 8054# Global variables: 8055ofile=libtool 8056can_build_shared=yes 8057 8058# All known linkers require a `.a' archive for static linking (except MSVC, 8059# which needs '.lib'). 8060libext=a 8061 8062with_gnu_ld="$lt_cv_prog_gnu_ld" 8063 8064old_CC="$CC" 8065old_CFLAGS="$CFLAGS" 8066 8067# Set sane defaults for various variables 8068test -z "$CC" && CC=cc 8069test -z "$LTCC" && LTCC=$CC 8070test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8071test -z "$LD" && LD=ld 8072test -z "$ac_objext" && ac_objext=o 8073 8074for cc_temp in $compiler""; do 8075 case $cc_temp in 8076 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8077 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8078 \-*) ;; 8079 *) break;; 8080 esac 8081done 8082cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8083 8084 8085# Only perform the check for file, if the check method requires it 8086test -z "$MAGIC_CMD" && MAGIC_CMD=file 8087case $deplibs_check_method in 8088file_magic*) 8089 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8090 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8091$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8092if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8093 $as_echo_n "(cached) " >&6 8094else 8095 case $MAGIC_CMD in 8096[\\/*] | ?:[\\/]*) 8097 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8098 ;; 8099*) 8100 lt_save_MAGIC_CMD="$MAGIC_CMD" 8101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8102 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8103 for ac_dir in $ac_dummy; do 8104 IFS="$lt_save_ifs" 8105 test -z "$ac_dir" && ac_dir=. 8106 if test -f $ac_dir/${ac_tool_prefix}file; then 8107 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8108 if test -n "$file_magic_test_file"; then 8109 case $deplibs_check_method in 8110 "file_magic "*) 8111 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8114 $EGREP "$file_magic_regex" > /dev/null; then 8115 : 8116 else 8117 cat <<_LT_EOF 1>&2 8118 8119*** Warning: the command libtool uses to detect shared libraries, 8120*** $file_magic_cmd, produces output that libtool cannot recognize. 8121*** The result is that libtool may fail to recognize shared libraries 8122*** as such. This will affect the creation of libtool libraries that 8123*** depend on shared libraries, but programs linked with such libtool 8124*** libraries will work regardless of this problem. Nevertheless, you 8125*** may want to report the problem to your system manager and/or to 8126*** bug-libtool@gnu.org 8127 8128_LT_EOF 8129 fi ;; 8130 esac 8131 fi 8132 break 8133 fi 8134 done 8135 IFS="$lt_save_ifs" 8136 MAGIC_CMD="$lt_save_MAGIC_CMD" 8137 ;; 8138esac 8139fi 8140 8141MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8142if test -n "$MAGIC_CMD"; then 8143 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8144$as_echo "$MAGIC_CMD" >&6; } 8145else 8146 { $as_echo "$as_me:$LINENO: result: no" >&5 8147$as_echo "no" >&6; } 8148fi 8149 8150 8151 8152 8153 8154if test -z "$lt_cv_path_MAGIC_CMD"; then 8155 if test -n "$ac_tool_prefix"; then 8156 { $as_echo "$as_me:$LINENO: checking for file" >&5 8157$as_echo_n "checking for file... " >&6; } 8158if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8159 $as_echo_n "(cached) " >&6 8160else 8161 case $MAGIC_CMD in 8162[\\/*] | ?:[\\/]*) 8163 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8164 ;; 8165*) 8166 lt_save_MAGIC_CMD="$MAGIC_CMD" 8167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8168 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8169 for ac_dir in $ac_dummy; do 8170 IFS="$lt_save_ifs" 8171 test -z "$ac_dir" && ac_dir=. 8172 if test -f $ac_dir/file; then 8173 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8174 if test -n "$file_magic_test_file"; then 8175 case $deplibs_check_method in 8176 "file_magic "*) 8177 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8180 $EGREP "$file_magic_regex" > /dev/null; then 8181 : 8182 else 8183 cat <<_LT_EOF 1>&2 8184 8185*** Warning: the command libtool uses to detect shared libraries, 8186*** $file_magic_cmd, produces output that libtool cannot recognize. 8187*** The result is that libtool may fail to recognize shared libraries 8188*** as such. This will affect the creation of libtool libraries that 8189*** depend on shared libraries, but programs linked with such libtool 8190*** libraries will work regardless of this problem. Nevertheless, you 8191*** may want to report the problem to your system manager and/or to 8192*** bug-libtool@gnu.org 8193 8194_LT_EOF 8195 fi ;; 8196 esac 8197 fi 8198 break 8199 fi 8200 done 8201 IFS="$lt_save_ifs" 8202 MAGIC_CMD="$lt_save_MAGIC_CMD" 8203 ;; 8204esac 8205fi 8206 8207MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8208if test -n "$MAGIC_CMD"; then 8209 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8210$as_echo "$MAGIC_CMD" >&6; } 8211else 8212 { $as_echo "$as_me:$LINENO: result: no" >&5 8213$as_echo "no" >&6; } 8214fi 8215 8216 8217 else 8218 MAGIC_CMD=: 8219 fi 8220fi 8221 8222 fi 8223 ;; 8224esac 8225 8226# Use C for the default configuration in the libtool script 8227 8228lt_save_CC="$CC" 8229ac_ext=c 8230ac_cpp='$CPP $CPPFLAGS' 8231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8233ac_compiler_gnu=$ac_cv_c_compiler_gnu 8234 8235 8236# Source file extension for C test sources. 8237ac_ext=c 8238 8239# Object file extension for compiled C test sources. 8240objext=o 8241objext=$objext 8242 8243# Code to be used in simple compile tests 8244lt_simple_compile_test_code="int some_variable = 0;" 8245 8246# Code to be used in simple link tests 8247lt_simple_link_test_code='int main(){return(0);}' 8248 8249 8250 8251 8252 8253 8254 8255# If no C compiler was specified, use CC. 8256LTCC=${LTCC-"$CC"} 8257 8258# If no C compiler flags were specified, use CFLAGS. 8259LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8260 8261# Allow CC to be a program name with arguments. 8262compiler=$CC 8263 8264# Save the default compiler, since it gets overwritten when the other 8265# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8266compiler_DEFAULT=$CC 8267 8268# save warnings/boilerplate of simple test code 8269ac_outfile=conftest.$ac_objext 8270echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8271eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8272_lt_compiler_boilerplate=`cat conftest.err` 8273$RM conftest* 8274 8275ac_outfile=conftest.$ac_objext 8276echo "$lt_simple_link_test_code" >conftest.$ac_ext 8277eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8278_lt_linker_boilerplate=`cat conftest.err` 8279$RM -r conftest* 8280 8281 8282if test -n "$compiler"; then 8283 8284lt_prog_compiler_no_builtin_flag= 8285 8286if test "$GCC" = yes; then 8287 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8288 8289 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8290$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8291if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8292 $as_echo_n "(cached) " >&6 8293else 8294 lt_cv_prog_compiler_rtti_exceptions=no 8295 ac_outfile=conftest.$ac_objext 8296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8297 lt_compiler_flag="-fno-rtti -fno-exceptions" 8298 # Insert the option either (1) after the last *FLAGS variable, or 8299 # (2) before a word containing "conftest.", or (3) at the end. 8300 # Note that $ac_compile itself does not contain backslashes and begins 8301 # with a dollar sign (not a hyphen), so the echo should work correctly. 8302 # The option is referenced via a variable to avoid confusing sed. 8303 lt_compile=`echo "$ac_compile" | $SED \ 8304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8306 -e 's:$: $lt_compiler_flag:'` 8307 (eval echo "\"\$as_me:8307: $lt_compile\"" >&5) 8308 (eval "$lt_compile" 2>conftest.err) 8309 ac_status=$? 8310 cat conftest.err >&5 8311 echo "$as_me:8311: \$? = $ac_status" >&5 8312 if (exit $ac_status) && test -s "$ac_outfile"; then 8313 # The compiler can only warn and ignore the option if not recognized 8314 # So say no if there are warnings other than the usual output. 8315 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8318 lt_cv_prog_compiler_rtti_exceptions=yes 8319 fi 8320 fi 8321 $RM conftest* 8322 8323fi 8324{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8325$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8326 8327if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8328 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8329else 8330 : 8331fi 8332 8333fi 8334 8335 8336 8337 8338 8339 8340 lt_prog_compiler_wl= 8341lt_prog_compiler_pic= 8342lt_prog_compiler_static= 8343 8344{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8345$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8346 8347 if test "$GCC" = yes; then 8348 lt_prog_compiler_wl='-Wl,' 8349 lt_prog_compiler_static='-static' 8350 8351 case $host_os in 8352 aix*) 8353 # All AIX code is PIC. 8354 if test "$host_cpu" = ia64; then 8355 # AIX 5 now supports IA64 processor 8356 lt_prog_compiler_static='-Bstatic' 8357 fi 8358 ;; 8359 8360 amigaos*) 8361 case $host_cpu in 8362 powerpc) 8363 # see comment about AmigaOS4 .so support 8364 lt_prog_compiler_pic='-fPIC' 8365 ;; 8366 m68k) 8367 # FIXME: we need at least 68020 code to build shared libraries, but 8368 # adding the `-m68020' flag to GCC prevents building anything better, 8369 # like `-m68040'. 8370 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8371 ;; 8372 esac 8373 ;; 8374 8375 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8376 # PIC is the default for these OSes. 8377 ;; 8378 8379 mingw* | cygwin* | pw32* | os2* | cegcc*) 8380 # This hack is so that the source file can tell whether it is being 8381 # built for inclusion in a dll (and should export symbols for example). 8382 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8383 # (--disable-auto-import) libraries 8384 lt_prog_compiler_pic='-DDLL_EXPORT' 8385 ;; 8386 8387 darwin* | rhapsody*) 8388 # PIC is the default on this platform 8389 # Common symbols not allowed in MH_DYLIB files 8390 lt_prog_compiler_pic='-fno-common' 8391 ;; 8392 8393 hpux*) 8394 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8395 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8396 # sets the default TLS model and affects inlining. 8397 case $host_cpu in 8398 hppa*64*) 8399 # +Z the default 8400 ;; 8401 *) 8402 lt_prog_compiler_pic='-fPIC' 8403 ;; 8404 esac 8405 ;; 8406 8407 interix[3-9]*) 8408 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8409 # Instead, we relocate shared libraries at runtime. 8410 ;; 8411 8412 msdosdjgpp*) 8413 # Just because we use GCC doesn't mean we suddenly get shared libraries 8414 # on systems that don't support them. 8415 lt_prog_compiler_can_build_shared=no 8416 enable_shared=no 8417 ;; 8418 8419 *nto* | *qnx*) 8420 # QNX uses GNU C++, but need to define -shared option too, otherwise 8421 # it will coredump. 8422 lt_prog_compiler_pic='-fPIC -shared' 8423 ;; 8424 8425 sysv4*MP*) 8426 if test -d /usr/nec; then 8427 lt_prog_compiler_pic=-Kconform_pic 8428 fi 8429 ;; 8430 8431 *) 8432 lt_prog_compiler_pic='-fPIC' 8433 ;; 8434 esac 8435 else 8436 # PORTME Check for flag to pass linker flags through the system compiler. 8437 case $host_os in 8438 aix*) 8439 lt_prog_compiler_wl='-Wl,' 8440 if test "$host_cpu" = ia64; then 8441 # AIX 5 now supports IA64 processor 8442 lt_prog_compiler_static='-Bstatic' 8443 else 8444 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8445 fi 8446 ;; 8447 8448 mingw* | cygwin* | pw32* | os2* | cegcc*) 8449 # This hack is so that the source file can tell whether it is being 8450 # built for inclusion in a dll (and should export symbols for example). 8451 lt_prog_compiler_pic='-DDLL_EXPORT' 8452 ;; 8453 8454 hpux9* | hpux10* | hpux11*) 8455 lt_prog_compiler_wl='-Wl,' 8456 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8457 # not for PA HP-UX. 8458 case $host_cpu in 8459 hppa*64*|ia64*) 8460 # +Z the default 8461 ;; 8462 *) 8463 lt_prog_compiler_pic='+Z' 8464 ;; 8465 esac 8466 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8467 lt_prog_compiler_static='${wl}-a ${wl}archive' 8468 ;; 8469 8470 irix5* | irix6* | nonstopux*) 8471 lt_prog_compiler_wl='-Wl,' 8472 # PIC (with -KPIC) is the default. 8473 lt_prog_compiler_static='-non_shared' 8474 ;; 8475 8476 linux* | k*bsd*-gnu) 8477 case $cc_basename in 8478 # old Intel for x86_64 which still supported -KPIC. 8479 ecc*) 8480 lt_prog_compiler_wl='-Wl,' 8481 lt_prog_compiler_pic='-KPIC' 8482 lt_prog_compiler_static='-static' 8483 ;; 8484 # icc used to be incompatible with GCC. 8485 # ICC 10 doesn't accept -KPIC any more. 8486 icc* | ifort*) 8487 lt_prog_compiler_wl='-Wl,' 8488 lt_prog_compiler_pic='-fPIC' 8489 lt_prog_compiler_static='-static' 8490 ;; 8491 # Lahey Fortran 8.1. 8492 lf95*) 8493 lt_prog_compiler_wl='-Wl,' 8494 lt_prog_compiler_pic='--shared' 8495 lt_prog_compiler_static='--static' 8496 ;; 8497 pgcc* | pgf77* | pgf90* | pgf95*) 8498 # Portland Group compilers (*not* the Pentium gcc compiler, 8499 # which looks to be a dead project) 8500 lt_prog_compiler_wl='-Wl,' 8501 lt_prog_compiler_pic='-fpic' 8502 lt_prog_compiler_static='-Bstatic' 8503 ;; 8504 ccc*) 8505 lt_prog_compiler_wl='-Wl,' 8506 # All Alpha code is PIC. 8507 lt_prog_compiler_static='-non_shared' 8508 ;; 8509 xl*) 8510 # IBM XL C 8.0/Fortran 10.1 on PPC 8511 lt_prog_compiler_wl='-Wl,' 8512 lt_prog_compiler_pic='-qpic' 8513 lt_prog_compiler_static='-qstaticlink' 8514 ;; 8515 *) 8516 case `$CC -V 2>&1 | sed 5q` in 8517 *Sun\ C*) 8518 # Sun C 5.9 8519 lt_prog_compiler_pic='-KPIC' 8520 lt_prog_compiler_static='-Bstatic' 8521 lt_prog_compiler_wl='-Wl,' 8522 ;; 8523 *Sun\ F*) 8524 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8525 lt_prog_compiler_pic='-KPIC' 8526 lt_prog_compiler_static='-Bstatic' 8527 lt_prog_compiler_wl='' 8528 ;; 8529 esac 8530 ;; 8531 esac 8532 ;; 8533 8534 newsos6) 8535 lt_prog_compiler_pic='-KPIC' 8536 lt_prog_compiler_static='-Bstatic' 8537 ;; 8538 8539 *nto* | *qnx*) 8540 # QNX uses GNU C++, but need to define -shared option too, otherwise 8541 # it will coredump. 8542 lt_prog_compiler_pic='-fPIC -shared' 8543 ;; 8544 8545 osf3* | osf4* | osf5*) 8546 lt_prog_compiler_wl='-Wl,' 8547 # All OSF/1 code is PIC. 8548 lt_prog_compiler_static='-non_shared' 8549 ;; 8550 8551 rdos*) 8552 lt_prog_compiler_static='-non_shared' 8553 ;; 8554 8555 solaris*) 8556 lt_prog_compiler_pic='-KPIC' 8557 lt_prog_compiler_static='-Bstatic' 8558 case $cc_basename in 8559 f77* | f90* | f95*) 8560 lt_prog_compiler_wl='-Qoption ld ';; 8561 *) 8562 lt_prog_compiler_wl='-Wl,';; 8563 esac 8564 ;; 8565 8566 sunos4*) 8567 lt_prog_compiler_wl='-Qoption ld ' 8568 lt_prog_compiler_pic='-PIC' 8569 lt_prog_compiler_static='-Bstatic' 8570 ;; 8571 8572 sysv4 | sysv4.2uw2* | sysv4.3*) 8573 lt_prog_compiler_wl='-Wl,' 8574 lt_prog_compiler_pic='-KPIC' 8575 lt_prog_compiler_static='-Bstatic' 8576 ;; 8577 8578 sysv4*MP*) 8579 if test -d /usr/nec ;then 8580 lt_prog_compiler_pic='-Kconform_pic' 8581 lt_prog_compiler_static='-Bstatic' 8582 fi 8583 ;; 8584 8585 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8586 lt_prog_compiler_wl='-Wl,' 8587 lt_prog_compiler_pic='-KPIC' 8588 lt_prog_compiler_static='-Bstatic' 8589 ;; 8590 8591 unicos*) 8592 lt_prog_compiler_wl='-Wl,' 8593 lt_prog_compiler_can_build_shared=no 8594 ;; 8595 8596 uts4*) 8597 lt_prog_compiler_pic='-pic' 8598 lt_prog_compiler_static='-Bstatic' 8599 ;; 8600 8601 *) 8602 lt_prog_compiler_can_build_shared=no 8603 ;; 8604 esac 8605 fi 8606 8607case $host_os in 8608 # For platforms which do not support PIC, -DPIC is meaningless: 8609 *djgpp*) 8610 lt_prog_compiler_pic= 8611 ;; 8612 *) 8613 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8614 ;; 8615esac 8616{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8617$as_echo "$lt_prog_compiler_pic" >&6; } 8618 8619 8620 8621 8622 8623 8624# 8625# Check to make sure the PIC flag actually works. 8626# 8627if test -n "$lt_prog_compiler_pic"; then 8628 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8629$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8630if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8631 $as_echo_n "(cached) " >&6 8632else 8633 lt_cv_prog_compiler_pic_works=no 8634 ac_outfile=conftest.$ac_objext 8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8636 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8637 # Insert the option either (1) after the last *FLAGS variable, or 8638 # (2) before a word containing "conftest.", or (3) at the end. 8639 # Note that $ac_compile itself does not contain backslashes and begins 8640 # with a dollar sign (not a hyphen), so the echo should work correctly. 8641 # The option is referenced via a variable to avoid confusing sed. 8642 lt_compile=`echo "$ac_compile" | $SED \ 8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8645 -e 's:$: $lt_compiler_flag:'` 8646 (eval echo "\"\$as_me:8646: $lt_compile\"" >&5) 8647 (eval "$lt_compile" 2>conftest.err) 8648 ac_status=$? 8649 cat conftest.err >&5 8650 echo "$as_me:8650: \$? = $ac_status" >&5 8651 if (exit $ac_status) && test -s "$ac_outfile"; then 8652 # The compiler can only warn and ignore the option if not recognized 8653 # So say no if there are warnings other than the usual output. 8654 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8657 lt_cv_prog_compiler_pic_works=yes 8658 fi 8659 fi 8660 $RM conftest* 8661 8662fi 8663{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8664$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8665 8666if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8667 case $lt_prog_compiler_pic in 8668 "" | " "*) ;; 8669 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8670 esac 8671else 8672 lt_prog_compiler_pic= 8673 lt_prog_compiler_can_build_shared=no 8674fi 8675 8676fi 8677 8678 8679 8680 8681 8682 8683# 8684# Check to make sure the static flag actually works. 8685# 8686wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8687{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8688$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8689if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8690 $as_echo_n "(cached) " >&6 8691else 8692 lt_cv_prog_compiler_static_works=no 8693 save_LDFLAGS="$LDFLAGS" 8694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8695 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8697 # The linker can only warn and ignore the option if not recognized 8698 # So say no if there are warnings 8699 if test -s conftest.err; then 8700 # Append any errors to the config.log. 8701 cat conftest.err 1>&5 8702 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8704 if diff conftest.exp conftest.er2 >/dev/null; then 8705 lt_cv_prog_compiler_static_works=yes 8706 fi 8707 else 8708 lt_cv_prog_compiler_static_works=yes 8709 fi 8710 fi 8711 $RM -r conftest* 8712 LDFLAGS="$save_LDFLAGS" 8713 8714fi 8715{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8716$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8717 8718if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8719 : 8720else 8721 lt_prog_compiler_static= 8722fi 8723 8724 8725 8726 8727 8728 8729 8730 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8731$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8732if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8733 $as_echo_n "(cached) " >&6 8734else 8735 lt_cv_prog_compiler_c_o=no 8736 $RM -r conftest 2>/dev/null 8737 mkdir conftest 8738 cd conftest 8739 mkdir out 8740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8741 8742 lt_compiler_flag="-o out/conftest2.$ac_objext" 8743 # Insert the option either (1) after the last *FLAGS variable, or 8744 # (2) before a word containing "conftest.", or (3) at the end. 8745 # Note that $ac_compile itself does not contain backslashes and begins 8746 # with a dollar sign (not a hyphen), so the echo should work correctly. 8747 lt_compile=`echo "$ac_compile" | $SED \ 8748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8750 -e 's:$: $lt_compiler_flag:'` 8751 (eval echo "\"\$as_me:8751: $lt_compile\"" >&5) 8752 (eval "$lt_compile" 2>out/conftest.err) 8753 ac_status=$? 8754 cat out/conftest.err >&5 8755 echo "$as_me:8755: \$? = $ac_status" >&5 8756 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8757 then 8758 # The compiler can only warn and ignore the option if not recognized 8759 # So say no if there are warnings 8760 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8763 lt_cv_prog_compiler_c_o=yes 8764 fi 8765 fi 8766 chmod u+w . 2>&5 8767 $RM conftest* 8768 # SGI C++ compiler will create directory out/ii_files/ for 8769 # template instantiation 8770 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8771 $RM out/* && rmdir out 8772 cd .. 8773 $RM -r conftest 8774 $RM conftest* 8775 8776fi 8777{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8778$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8779 8780 8781 8782 8783 8784 8785 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8786$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8787if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8788 $as_echo_n "(cached) " >&6 8789else 8790 lt_cv_prog_compiler_c_o=no 8791 $RM -r conftest 2>/dev/null 8792 mkdir conftest 8793 cd conftest 8794 mkdir out 8795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8796 8797 lt_compiler_flag="-o out/conftest2.$ac_objext" 8798 # Insert the option either (1) after the last *FLAGS variable, or 8799 # (2) before a word containing "conftest.", or (3) at the end. 8800 # Note that $ac_compile itself does not contain backslashes and begins 8801 # with a dollar sign (not a hyphen), so the echo should work correctly. 8802 lt_compile=`echo "$ac_compile" | $SED \ 8803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8805 -e 's:$: $lt_compiler_flag:'` 8806 (eval echo "\"\$as_me:8806: $lt_compile\"" >&5) 8807 (eval "$lt_compile" 2>out/conftest.err) 8808 ac_status=$? 8809 cat out/conftest.err >&5 8810 echo "$as_me:8810: \$? = $ac_status" >&5 8811 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8812 then 8813 # The compiler can only warn and ignore the option if not recognized 8814 # So say no if there are warnings 8815 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8818 lt_cv_prog_compiler_c_o=yes 8819 fi 8820 fi 8821 chmod u+w . 2>&5 8822 $RM conftest* 8823 # SGI C++ compiler will create directory out/ii_files/ for 8824 # template instantiation 8825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8826 $RM out/* && rmdir out 8827 cd .. 8828 $RM -r conftest 8829 $RM conftest* 8830 8831fi 8832{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8833$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8834 8835 8836 8837 8838hard_links="nottested" 8839if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8840 # do not overwrite the value of need_locks provided by the user 8841 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8842$as_echo_n "checking if we can lock with hard links... " >&6; } 8843 hard_links=yes 8844 $RM conftest* 8845 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8846 touch conftest.a 8847 ln conftest.a conftest.b 2>&5 || hard_links=no 8848 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8849 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8850$as_echo "$hard_links" >&6; } 8851 if test "$hard_links" = no; then 8852 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8853$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8854 need_locks=warn 8855 fi 8856else 8857 need_locks=no 8858fi 8859 8860 8861 8862 8863 8864 8865 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8866$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8867 8868 runpath_var= 8869 allow_undefined_flag= 8870 always_export_symbols=no 8871 archive_cmds= 8872 archive_expsym_cmds= 8873 compiler_needs_object=no 8874 enable_shared_with_static_runtimes=no 8875 export_dynamic_flag_spec= 8876 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8877 hardcode_automatic=no 8878 hardcode_direct=no 8879 hardcode_direct_absolute=no 8880 hardcode_libdir_flag_spec= 8881 hardcode_libdir_flag_spec_ld= 8882 hardcode_libdir_separator= 8883 hardcode_minus_L=no 8884 hardcode_shlibpath_var=unsupported 8885 inherit_rpath=no 8886 link_all_deplibs=unknown 8887 module_cmds= 8888 module_expsym_cmds= 8889 old_archive_from_new_cmds= 8890 old_archive_from_expsyms_cmds= 8891 thread_safe_flag_spec= 8892 whole_archive_flag_spec= 8893 # include_expsyms should be a list of space-separated symbols to be *always* 8894 # included in the symbol list 8895 include_expsyms= 8896 # exclude_expsyms can be an extended regexp of symbols to exclude 8897 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8898 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8899 # as well as any symbol that contains `d'. 8900 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8901 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8902 # platforms (ab)use it in PIC code, but their linkers get confused if 8903 # the symbol is explicitly referenced. Since portable code cannot 8904 # rely on this symbol name, it's probably fine to never include it in 8905 # preloaded symbol tables. 8906 # Exclude shared library initialization/finalization symbols. 8907 extract_expsyms_cmds= 8908 8909 case $host_os in 8910 cygwin* | mingw* | pw32* | cegcc*) 8911 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8912 # When not using gcc, we currently assume that we are using 8913 # Microsoft Visual C++. 8914 if test "$GCC" != yes; then 8915 with_gnu_ld=no 8916 fi 8917 ;; 8918 interix*) 8919 # we just hope/assume this is gcc and not c89 (= MSVC++) 8920 with_gnu_ld=yes 8921 ;; 8922 openbsd*) 8923 with_gnu_ld=no 8924 ;; 8925 esac 8926 8927 ld_shlibs=yes 8928 if test "$with_gnu_ld" = yes; then 8929 # If archive_cmds runs LD, not CC, wlarc should be empty 8930 wlarc='${wl}' 8931 8932 # Set some defaults for GNU ld with shared library support. These 8933 # are reset later if shared libraries are not supported. Putting them 8934 # here allows them to be overridden if necessary. 8935 runpath_var=LD_RUN_PATH 8936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8937 export_dynamic_flag_spec='${wl}--export-dynamic' 8938 # ancient GNU ld didn't support --whole-archive et. al. 8939 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8940 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8941 else 8942 whole_archive_flag_spec= 8943 fi 8944 supports_anon_versioning=no 8945 case `$LD -v 2>&1` in 8946 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8947 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8948 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8949 *\ 2.11.*) ;; # other 2.11 versions 8950 *) supports_anon_versioning=yes ;; 8951 esac 8952 8953 # See if GNU ld supports shared libraries. 8954 case $host_os in 8955 aix[3-9]*) 8956 # On AIX/PPC, the GNU linker is very broken 8957 if test "$host_cpu" != ia64; then 8958 ld_shlibs=no 8959 cat <<_LT_EOF 1>&2 8960 8961*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8962*** to be unable to reliably create shared libraries on AIX. 8963*** Therefore, libtool is disabling shared libraries support. If you 8964*** really care for shared libraries, you may want to modify your PATH 8965*** so that a non-GNU linker is found, and then restart. 8966 8967_LT_EOF 8968 fi 8969 ;; 8970 8971 amigaos*) 8972 case $host_cpu in 8973 powerpc) 8974 # see comment about AmigaOS4 .so support 8975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8976 archive_expsym_cmds='' 8977 ;; 8978 m68k) 8979 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)' 8980 hardcode_libdir_flag_spec='-L$libdir' 8981 hardcode_minus_L=yes 8982 ;; 8983 esac 8984 ;; 8985 8986 beos*) 8987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8988 allow_undefined_flag=unsupported 8989 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8990 # support --undefined. This deserves some investigation. FIXME 8991 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8992 else 8993 ld_shlibs=no 8994 fi 8995 ;; 8996 8997 cygwin* | mingw* | pw32* | cegcc*) 8998 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8999 # as there is no search path for DLLs. 9000 hardcode_libdir_flag_spec='-L$libdir' 9001 allow_undefined_flag=unsupported 9002 always_export_symbols=no 9003 enable_shared_with_static_runtimes=yes 9004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9005 9006 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9008 # If the export-symbols file already is a .def file (1st line 9009 # is EXPORTS), use it as is; otherwise, prepend... 9010 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9011 cp $export_symbols $output_objdir/$soname.def; 9012 else 9013 echo EXPORTS > $output_objdir/$soname.def; 9014 cat $export_symbols >> $output_objdir/$soname.def; 9015 fi~ 9016 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9017 else 9018 ld_shlibs=no 9019 fi 9020 ;; 9021 9022 interix[3-9]*) 9023 hardcode_direct=no 9024 hardcode_shlibpath_var=no 9025 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9026 export_dynamic_flag_spec='${wl}-E' 9027 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9028 # Instead, shared libraries are loaded at an image base (0x10000000 by 9029 # default) and relocated if they conflict, which is a slow very memory 9030 # consuming and fragmenting process. To avoid this, we pick a random, 9031 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9032 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9034 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' 9035 ;; 9036 9037 gnu* | linux* | tpf* | k*bsd*-gnu) 9038 tmp_diet=no 9039 if test "$host_os" = linux-dietlibc; then 9040 case $cc_basename in 9041 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9042 esac 9043 fi 9044 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9045 && test "$tmp_diet" = no 9046 then 9047 tmp_addflag= 9048 tmp_sharedflag='-shared' 9049 case $cc_basename,$host_cpu in 9050 pgcc*) # Portland Group C compiler 9051 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' 9052 tmp_addflag=' $pic_flag' 9053 ;; 9054 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9055 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' 9056 tmp_addflag=' $pic_flag -Mnomain' ;; 9057 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9058 tmp_addflag=' -i_dynamic' ;; 9059 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9060 tmp_addflag=' -i_dynamic -nofor_main' ;; 9061 ifc* | ifort*) # Intel Fortran compiler 9062 tmp_addflag=' -nofor_main' ;; 9063 lf95*) # Lahey Fortran 8.1 9064 whole_archive_flag_spec= 9065 tmp_sharedflag='--shared' ;; 9066 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9067 tmp_sharedflag='-qmkshrobj' 9068 tmp_addflag= ;; 9069 esac 9070 case `$CC -V 2>&1 | sed 5q` in 9071 *Sun\ C*) # Sun C 5.9 9072 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' 9073 compiler_needs_object=yes 9074 tmp_sharedflag='-G' ;; 9075 *Sun\ F*) # Sun Fortran 8.3 9076 tmp_sharedflag='-G' ;; 9077 esac 9078 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9079 9080 if test "x$supports_anon_versioning" = xyes; then 9081 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9083 echo "local: *; };" >> $output_objdir/$libname.ver~ 9084 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9085 fi 9086 9087 case $cc_basename in 9088 xlf*) 9089 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9090 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9091 hardcode_libdir_flag_spec= 9092 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9093 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9094 if test "x$supports_anon_versioning" = xyes; then 9095 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9097 echo "local: *; };" >> $output_objdir/$libname.ver~ 9098 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9099 fi 9100 ;; 9101 esac 9102 else 9103 ld_shlibs=no 9104 fi 9105 ;; 9106 9107 netbsd*) 9108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9109 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9110 wlarc= 9111 else 9112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9113 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9114 fi 9115 ;; 9116 9117 solaris*) 9118 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9119 ld_shlibs=no 9120 cat <<_LT_EOF 1>&2 9121 9122*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9123*** create shared libraries on Solaris systems. Therefore, libtool 9124*** is disabling shared libraries support. We urge you to upgrade GNU 9125*** binutils to release 2.9.1 or newer. Another option is to modify 9126*** your PATH or compiler configuration so that the native linker is 9127*** used, and then restart. 9128 9129_LT_EOF 9130 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9133 else 9134 ld_shlibs=no 9135 fi 9136 ;; 9137 9138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9139 case `$LD -v 2>&1` in 9140 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9141 ld_shlibs=no 9142 cat <<_LT_EOF 1>&2 9143 9144*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9145*** reliably create shared libraries on SCO systems. Therefore, libtool 9146*** is disabling shared libraries support. We urge you to upgrade GNU 9147*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9148*** your PATH or compiler configuration so that the native linker is 9149*** used, and then restart. 9150 9151_LT_EOF 9152 ;; 9153 *) 9154 # For security reasons, it is highly recommended that you always 9155 # use absolute paths for naming shared libraries, and exclude the 9156 # DT_RUNPATH tag from executables and libraries. But doing so 9157 # requires that you compile everything twice, which is a pain. 9158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9162 else 9163 ld_shlibs=no 9164 fi 9165 ;; 9166 esac 9167 ;; 9168 9169 sunos4*) 9170 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9171 wlarc= 9172 hardcode_direct=yes 9173 hardcode_shlibpath_var=no 9174 ;; 9175 9176 *) 9177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9179 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9180 else 9181 ld_shlibs=no 9182 fi 9183 ;; 9184 esac 9185 9186 if test "$ld_shlibs" = no; then 9187 runpath_var= 9188 hardcode_libdir_flag_spec= 9189 export_dynamic_flag_spec= 9190 whole_archive_flag_spec= 9191 fi 9192 else 9193 # PORTME fill in a description of your system's linker (not GNU ld) 9194 case $host_os in 9195 aix3*) 9196 allow_undefined_flag=unsupported 9197 always_export_symbols=yes 9198 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' 9199 # Note: this linker hardcodes the directories in LIBPATH if there 9200 # are no directories specified by -L. 9201 hardcode_minus_L=yes 9202 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9203 # Neither direct hardcoding nor static linking is supported with a 9204 # broken collect2. 9205 hardcode_direct=unsupported 9206 fi 9207 ;; 9208 9209 aix[4-9]*) 9210 if test "$host_cpu" = ia64; then 9211 # On IA64, the linker does run time linking by default, so we don't 9212 # have to do anything special. 9213 aix_use_runtimelinking=no 9214 exp_sym_flag='-Bexport' 9215 no_entry_flag="" 9216 else 9217 # If we're using GNU nm, then we don't want the "-C" option. 9218 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9219 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9220 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' 9221 else 9222 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' 9223 fi 9224 aix_use_runtimelinking=no 9225 9226 # Test if we are trying to use run time linking or normal 9227 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9228 # need to do runtime linking. 9229 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9230 for ld_flag in $LDFLAGS; do 9231 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9232 aix_use_runtimelinking=yes 9233 break 9234 fi 9235 done 9236 ;; 9237 esac 9238 9239 exp_sym_flag='-bexport' 9240 no_entry_flag='-bnoentry' 9241 fi 9242 9243 # When large executables or shared objects are built, AIX ld can 9244 # have problems creating the table of contents. If linking a library 9245 # or program results in "error TOC overflow" add -mminimal-toc to 9246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9248 9249 archive_cmds='' 9250 hardcode_direct=yes 9251 hardcode_direct_absolute=yes 9252 hardcode_libdir_separator=':' 9253 link_all_deplibs=yes 9254 file_list_spec='${wl}-f,' 9255 9256 if test "$GCC" = yes; then 9257 case $host_os in aix4.[012]|aix4.[012].*) 9258 # We only want to do this on AIX 4.2 and lower, the check 9259 # below for broken collect2 doesn't work under 4.3+ 9260 collect2name=`${CC} -print-prog-name=collect2` 9261 if test -f "$collect2name" && 9262 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9263 then 9264 # We have reworked collect2 9265 : 9266 else 9267 # We have old collect2 9268 hardcode_direct=unsupported 9269 # It fails to find uninstalled libraries when the uninstalled 9270 # path is not listed in the libpath. Setting hardcode_minus_L 9271 # to unsupported forces relinking 9272 hardcode_minus_L=yes 9273 hardcode_libdir_flag_spec='-L$libdir' 9274 hardcode_libdir_separator= 9275 fi 9276 ;; 9277 esac 9278 shared_flag='-shared' 9279 if test "$aix_use_runtimelinking" = yes; then 9280 shared_flag="$shared_flag "'${wl}-G' 9281 fi 9282 else 9283 # not using gcc 9284 if test "$host_cpu" = ia64; then 9285 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9286 # chokes on -Wl,-G. The following line is correct: 9287 shared_flag='-G' 9288 else 9289 if test "$aix_use_runtimelinking" = yes; then 9290 shared_flag='${wl}-G' 9291 else 9292 shared_flag='${wl}-bM:SRE' 9293 fi 9294 fi 9295 fi 9296 9297 export_dynamic_flag_spec='${wl}-bexpall' 9298 # It seems that -bexpall does not export symbols beginning with 9299 # underscore (_), so it is better to generate a list of symbols to export. 9300 always_export_symbols=yes 9301 if test "$aix_use_runtimelinking" = yes; then 9302 # Warning - without using the other runtime loading flags (-brtl), 9303 # -berok will link without error, but may produce a broken library. 9304 allow_undefined_flag='-berok' 9305 # Determine the default libpath from the value encoded in an 9306 # empty executable. 9307 cat >conftest.$ac_ext <<_ACEOF 9308/* confdefs.h. */ 9309_ACEOF 9310cat confdefs.h >>conftest.$ac_ext 9311cat >>conftest.$ac_ext <<_ACEOF 9312/* end confdefs.h. */ 9313 9314int 9315main () 9316{ 9317 9318 ; 9319 return 0; 9320} 9321_ACEOF 9322rm -f conftest.$ac_objext conftest$ac_exeext 9323if { (ac_try="$ac_link" 9324case "(($ac_try" in 9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9326 *) ac_try_echo=$ac_try;; 9327esac 9328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9329$as_echo "$ac_try_echo") >&5 9330 (eval "$ac_link") 2>conftest.er1 9331 ac_status=$? 9332 grep -v '^ *+' conftest.er1 >conftest.err 9333 rm -f conftest.er1 9334 cat conftest.err >&5 9335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9336 (exit $ac_status); } && { 9337 test -z "$ac_c_werror_flag" || 9338 test ! -s conftest.err 9339 } && test -s conftest$ac_exeext && { 9340 test "$cross_compiling" = yes || 9341 $as_test_x conftest$ac_exeext 9342 }; then 9343 9344lt_aix_libpath_sed=' 9345 /Import File Strings/,/^$/ { 9346 /^0/ { 9347 s/^0 *\(.*\)$/\1/ 9348 p 9349 } 9350 }' 9351aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9352# Check for a 64-bit object if we didn't find anything. 9353if test -z "$aix_libpath"; then 9354 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9355fi 9356else 9357 $as_echo "$as_me: failed program was:" >&5 9358sed 's/^/| /' conftest.$ac_ext >&5 9359 9360 9361fi 9362 9363rm -rf conftest.dSYM 9364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9365 conftest$ac_exeext conftest.$ac_ext 9366if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9367 9368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9369 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" 9370 else 9371 if test "$host_cpu" = ia64; then 9372 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9373 allow_undefined_flag="-z nodefs" 9374 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" 9375 else 9376 # Determine the default libpath from the value encoded in an 9377 # empty executable. 9378 cat >conftest.$ac_ext <<_ACEOF 9379/* confdefs.h. */ 9380_ACEOF 9381cat confdefs.h >>conftest.$ac_ext 9382cat >>conftest.$ac_ext <<_ACEOF 9383/* end confdefs.h. */ 9384 9385int 9386main () 9387{ 9388 9389 ; 9390 return 0; 9391} 9392_ACEOF 9393rm -f conftest.$ac_objext conftest$ac_exeext 9394if { (ac_try="$ac_link" 9395case "(($ac_try" in 9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9397 *) ac_try_echo=$ac_try;; 9398esac 9399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9400$as_echo "$ac_try_echo") >&5 9401 (eval "$ac_link") 2>conftest.er1 9402 ac_status=$? 9403 grep -v '^ *+' conftest.er1 >conftest.err 9404 rm -f conftest.er1 9405 cat conftest.err >&5 9406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9407 (exit $ac_status); } && { 9408 test -z "$ac_c_werror_flag" || 9409 test ! -s conftest.err 9410 } && test -s conftest$ac_exeext && { 9411 test "$cross_compiling" = yes || 9412 $as_test_x conftest$ac_exeext 9413 }; then 9414 9415lt_aix_libpath_sed=' 9416 /Import File Strings/,/^$/ { 9417 /^0/ { 9418 s/^0 *\(.*\)$/\1/ 9419 p 9420 } 9421 }' 9422aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9423# Check for a 64-bit object if we didn't find anything. 9424if test -z "$aix_libpath"; then 9425 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9426fi 9427else 9428 $as_echo "$as_me: failed program was:" >&5 9429sed 's/^/| /' conftest.$ac_ext >&5 9430 9431 9432fi 9433 9434rm -rf conftest.dSYM 9435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9436 conftest$ac_exeext conftest.$ac_ext 9437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9438 9439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9440 # Warning - without using the other run time loading flags, 9441 # -berok will link without error, but may produce a broken library. 9442 no_undefined_flag=' ${wl}-bernotok' 9443 allow_undefined_flag=' ${wl}-berok' 9444 # Exported symbols can be pulled into shared objects from archives 9445 whole_archive_flag_spec='$convenience' 9446 archive_cmds_need_lc=yes 9447 # This is similar to how AIX traditionally builds its shared libraries. 9448 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' 9449 fi 9450 fi 9451 ;; 9452 9453 amigaos*) 9454 case $host_cpu in 9455 powerpc) 9456 # see comment about AmigaOS4 .so support 9457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9458 archive_expsym_cmds='' 9459 ;; 9460 m68k) 9461 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)' 9462 hardcode_libdir_flag_spec='-L$libdir' 9463 hardcode_minus_L=yes 9464 ;; 9465 esac 9466 ;; 9467 9468 bsdi[45]*) 9469 export_dynamic_flag_spec=-rdynamic 9470 ;; 9471 9472 cygwin* | mingw* | pw32* | cegcc*) 9473 # When not using gcc, we currently assume that we are using 9474 # Microsoft Visual C++. 9475 # hardcode_libdir_flag_spec is actually meaningless, as there is 9476 # no search path for DLLs. 9477 hardcode_libdir_flag_spec=' ' 9478 allow_undefined_flag=unsupported 9479 # Tell ltmain to make .lib files, not .a files. 9480 libext=lib 9481 # Tell ltmain to make .dll files, not .so files. 9482 shrext_cmds=".dll" 9483 # FIXME: Setting linknames here is a bad hack. 9484 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9485 # The linker will automatically build a .lib file if we build a DLL. 9486 old_archive_from_new_cmds='true' 9487 # FIXME: Should let the user specify the lib program. 9488 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9489 fix_srcfile_path='`cygpath -w "$srcfile"`' 9490 enable_shared_with_static_runtimes=yes 9491 ;; 9492 9493 darwin* | rhapsody*) 9494 9495 9496 archive_cmds_need_lc=no 9497 hardcode_direct=no 9498 hardcode_automatic=yes 9499 hardcode_shlibpath_var=unsupported 9500 whole_archive_flag_spec='' 9501 link_all_deplibs=yes 9502 allow_undefined_flag="$_lt_dar_allow_undefined" 9503 case $cc_basename in 9504 ifort*) _lt_dar_can_shared=yes ;; 9505 *) _lt_dar_can_shared=$GCC ;; 9506 esac 9507 if test "$_lt_dar_can_shared" = "yes"; then 9508 output_verbose_link_cmd=echo 9509 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9510 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9511 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}" 9512 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}" 9513 9514 else 9515 ld_shlibs=no 9516 fi 9517 9518 ;; 9519 9520 dgux*) 9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9522 hardcode_libdir_flag_spec='-L$libdir' 9523 hardcode_shlibpath_var=no 9524 ;; 9525 9526 freebsd1*) 9527 ld_shlibs=no 9528 ;; 9529 9530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9531 # support. Future versions do this automatically, but an explicit c++rt0.o 9532 # does not break anything, and helps significantly (at the cost of a little 9533 # extra space). 9534 freebsd2.2*) 9535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9536 hardcode_libdir_flag_spec='-R$libdir' 9537 hardcode_direct=yes 9538 hardcode_shlibpath_var=no 9539 ;; 9540 9541 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9542 freebsd2*) 9543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9544 hardcode_direct=yes 9545 hardcode_minus_L=yes 9546 hardcode_shlibpath_var=no 9547 ;; 9548 9549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9550 freebsd* | dragonfly*) 9551 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9552 hardcode_libdir_flag_spec='-R$libdir' 9553 hardcode_direct=yes 9554 hardcode_shlibpath_var=no 9555 ;; 9556 9557 hpux9*) 9558 if test "$GCC" = yes; then 9559 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' 9560 else 9561 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' 9562 fi 9563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9564 hardcode_libdir_separator=: 9565 hardcode_direct=yes 9566 9567 # hardcode_minus_L: Not really in the search PATH, 9568 # but as the default location of the library. 9569 hardcode_minus_L=yes 9570 export_dynamic_flag_spec='${wl}-E' 9571 ;; 9572 9573 hpux10*) 9574 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9575 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9576 else 9577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9578 fi 9579 if test "$with_gnu_ld" = no; then 9580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9581 hardcode_libdir_flag_spec_ld='+b $libdir' 9582 hardcode_libdir_separator=: 9583 hardcode_direct=yes 9584 hardcode_direct_absolute=yes 9585 export_dynamic_flag_spec='${wl}-E' 9586 # hardcode_minus_L: Not really in the search PATH, 9587 # but as the default location of the library. 9588 hardcode_minus_L=yes 9589 fi 9590 ;; 9591 9592 hpux11*) 9593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9594 case $host_cpu in 9595 hppa*64*) 9596 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9597 ;; 9598 ia64*) 9599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9600 ;; 9601 *) 9602 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9603 ;; 9604 esac 9605 else 9606 case $host_cpu in 9607 hppa*64*) 9608 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9609 ;; 9610 ia64*) 9611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9612 ;; 9613 *) 9614 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9615 ;; 9616 esac 9617 fi 9618 if test "$with_gnu_ld" = no; then 9619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9620 hardcode_libdir_separator=: 9621 9622 case $host_cpu in 9623 hppa*64*|ia64*) 9624 hardcode_direct=no 9625 hardcode_shlibpath_var=no 9626 ;; 9627 *) 9628 hardcode_direct=yes 9629 hardcode_direct_absolute=yes 9630 export_dynamic_flag_spec='${wl}-E' 9631 9632 # hardcode_minus_L: Not really in the search PATH, 9633 # but as the default location of the library. 9634 hardcode_minus_L=yes 9635 ;; 9636 esac 9637 fi 9638 ;; 9639 9640 irix5* | irix6* | nonstopux*) 9641 if test "$GCC" = yes; then 9642 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' 9643 # Try to use the -exported_symbol ld option, if it does not 9644 # work, assume that -exports_file does not work either and 9645 # implicitly export all symbols. 9646 save_LDFLAGS="$LDFLAGS" 9647 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9648 cat >conftest.$ac_ext <<_ACEOF 9649int foo(void) {} 9650_ACEOF 9651rm -f conftest.$ac_objext conftest$ac_exeext 9652if { (ac_try="$ac_link" 9653case "(($ac_try" in 9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9655 *) ac_try_echo=$ac_try;; 9656esac 9657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9658$as_echo "$ac_try_echo") >&5 9659 (eval "$ac_link") 2>conftest.er1 9660 ac_status=$? 9661 grep -v '^ *+' conftest.er1 >conftest.err 9662 rm -f conftest.er1 9663 cat conftest.err >&5 9664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9665 (exit $ac_status); } && { 9666 test -z "$ac_c_werror_flag" || 9667 test ! -s conftest.err 9668 } && test -s conftest$ac_exeext && { 9669 test "$cross_compiling" = yes || 9670 $as_test_x conftest$ac_exeext 9671 }; then 9672 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' 9673 9674else 9675 $as_echo "$as_me: failed program was:" >&5 9676sed 's/^/| /' conftest.$ac_ext >&5 9677 9678 9679fi 9680 9681rm -rf conftest.dSYM 9682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9683 conftest$ac_exeext conftest.$ac_ext 9684 LDFLAGS="$save_LDFLAGS" 9685 else 9686 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' 9687 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' 9688 fi 9689 archive_cmds_need_lc='no' 9690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9691 hardcode_libdir_separator=: 9692 inherit_rpath=yes 9693 link_all_deplibs=yes 9694 ;; 9695 9696 netbsd*) 9697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9699 else 9700 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9701 fi 9702 hardcode_libdir_flag_spec='-R$libdir' 9703 hardcode_direct=yes 9704 hardcode_shlibpath_var=no 9705 ;; 9706 9707 newsos6) 9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9709 hardcode_direct=yes 9710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9711 hardcode_libdir_separator=: 9712 hardcode_shlibpath_var=no 9713 ;; 9714 9715 *nto* | *qnx*) 9716 ;; 9717 9718 openbsd*) 9719 if test -f /usr/libexec/ld.so; then 9720 hardcode_direct=yes 9721 hardcode_shlibpath_var=no 9722 hardcode_direct_absolute=yes 9723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9725 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9726 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9727 export_dynamic_flag_spec='${wl}-E' 9728 else 9729 case $host_os in 9730 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9732 hardcode_libdir_flag_spec='-R$libdir' 9733 ;; 9734 *) 9735 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9737 ;; 9738 esac 9739 fi 9740 else 9741 ld_shlibs=no 9742 fi 9743 ;; 9744 9745 os2*) 9746 hardcode_libdir_flag_spec='-L$libdir' 9747 hardcode_minus_L=yes 9748 allow_undefined_flag=unsupported 9749 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' 9750 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9751 ;; 9752 9753 osf3*) 9754 if test "$GCC" = yes; then 9755 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9756 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' 9757 else 9758 allow_undefined_flag=' -expect_unresolved \*' 9759 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' 9760 fi 9761 archive_cmds_need_lc='no' 9762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9763 hardcode_libdir_separator=: 9764 ;; 9765 9766 osf4* | osf5*) # as osf3* with the addition of -msym flag 9767 if test "$GCC" = yes; then 9768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9769 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' 9770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9771 else 9772 allow_undefined_flag=' -expect_unresolved \*' 9773 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' 9774 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~ 9775 $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' 9776 9777 # Both c and cxx compiler support -rpath directly 9778 hardcode_libdir_flag_spec='-rpath $libdir' 9779 fi 9780 archive_cmds_need_lc='no' 9781 hardcode_libdir_separator=: 9782 ;; 9783 9784 solaris*) 9785 no_undefined_flag=' -z defs' 9786 if test "$GCC" = yes; then 9787 wlarc='${wl}' 9788 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9789 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9790 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9791 else 9792 case `$CC -V 2>&1` in 9793 *"Compilers 5.0"*) 9794 wlarc='' 9795 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9796 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9798 ;; 9799 *) 9800 wlarc='${wl}' 9801 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9802 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9803 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9804 ;; 9805 esac 9806 fi 9807 hardcode_libdir_flag_spec='-R$libdir' 9808 hardcode_shlibpath_var=no 9809 case $host_os in 9810 solaris2.[0-5] | solaris2.[0-5].*) ;; 9811 *) 9812 # The compiler driver will combine and reorder linker options, 9813 # but understands `-z linker_flag'. GCC discards it without `$wl', 9814 # but is careful enough not to reorder. 9815 # Supported since Solaris 2.6 (maybe 2.5.1?) 9816 if test "$GCC" = yes; then 9817 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9818 else 9819 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9820 fi 9821 ;; 9822 esac 9823 link_all_deplibs=yes 9824 ;; 9825 9826 sunos4*) 9827 if test "x$host_vendor" = xsequent; then 9828 # Use $CC to link under sequent, because it throws in some extra .o 9829 # files that make .init and .fini sections work. 9830 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9831 else 9832 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9833 fi 9834 hardcode_libdir_flag_spec='-L$libdir' 9835 hardcode_direct=yes 9836 hardcode_minus_L=yes 9837 hardcode_shlibpath_var=no 9838 ;; 9839 9840 sysv4) 9841 case $host_vendor in 9842 sni) 9843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9844 hardcode_direct=yes # is this really true??? 9845 ;; 9846 siemens) 9847 ## LD is ld it makes a PLAMLIB 9848 ## CC just makes a GrossModule. 9849 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9850 reload_cmds='$CC -r -o $output$reload_objs' 9851 hardcode_direct=no 9852 ;; 9853 motorola) 9854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9855 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9856 ;; 9857 esac 9858 runpath_var='LD_RUN_PATH' 9859 hardcode_shlibpath_var=no 9860 ;; 9861 9862 sysv4.3*) 9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9864 hardcode_shlibpath_var=no 9865 export_dynamic_flag_spec='-Bexport' 9866 ;; 9867 9868 sysv4*MP*) 9869 if test -d /usr/nec; then 9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9871 hardcode_shlibpath_var=no 9872 runpath_var=LD_RUN_PATH 9873 hardcode_runpath_var=yes 9874 ld_shlibs=yes 9875 fi 9876 ;; 9877 9878 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9879 no_undefined_flag='${wl}-z,text' 9880 archive_cmds_need_lc=no 9881 hardcode_shlibpath_var=no 9882 runpath_var='LD_RUN_PATH' 9883 9884 if test "$GCC" = yes; then 9885 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9887 else 9888 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9890 fi 9891 ;; 9892 9893 sysv5* | sco3.2v5* | sco5v6*) 9894 # Note: We can NOT use -z defs as we might desire, because we do not 9895 # link with -lc, and that would cause any symbols used from libc to 9896 # always be unresolved, which means just about no library would 9897 # ever link correctly. If we're not using GNU ld we use -z text 9898 # though, which does catch some bad symbols but isn't as heavy-handed 9899 # as -z defs. 9900 no_undefined_flag='${wl}-z,text' 9901 allow_undefined_flag='${wl}-z,nodefs' 9902 archive_cmds_need_lc=no 9903 hardcode_shlibpath_var=no 9904 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9905 hardcode_libdir_separator=':' 9906 link_all_deplibs=yes 9907 export_dynamic_flag_spec='${wl}-Bexport' 9908 runpath_var='LD_RUN_PATH' 9909 9910 if test "$GCC" = yes; then 9911 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9912 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9913 else 9914 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9915 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9916 fi 9917 ;; 9918 9919 uts4*) 9920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9921 hardcode_libdir_flag_spec='-L$libdir' 9922 hardcode_shlibpath_var=no 9923 ;; 9924 9925 *) 9926 ld_shlibs=no 9927 ;; 9928 esac 9929 9930 if test x$host_vendor = xsni; then 9931 case $host in 9932 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9933 export_dynamic_flag_spec='${wl}-Blargedynsym' 9934 ;; 9935 esac 9936 fi 9937 fi 9938 9939{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9940$as_echo "$ld_shlibs" >&6; } 9941test "$ld_shlibs" = no && can_build_shared=no 9942 9943with_gnu_ld=$with_gnu_ld 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959# 9960# Do we need to explicitly link libc? 9961# 9962case "x$archive_cmds_need_lc" in 9963x|xyes) 9964 # Assume -lc should be added 9965 archive_cmds_need_lc=yes 9966 9967 if test "$enable_shared" = yes && test "$GCC" = yes; then 9968 case $archive_cmds in 9969 *'~'*) 9970 # FIXME: we may have to deal with multi-command sequences. 9971 ;; 9972 '$CC '*) 9973 # Test whether the compiler implicitly links with -lc since on some 9974 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9975 # to ld, don't add -lc before -lgcc. 9976 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9977$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9978 $RM conftest* 9979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9980 9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9982 (eval $ac_compile) 2>&5 9983 ac_status=$? 9984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9985 (exit $ac_status); } 2>conftest.err; then 9986 soname=conftest 9987 lib=conftest 9988 libobjs=conftest.$ac_objext 9989 deplibs= 9990 wl=$lt_prog_compiler_wl 9991 pic_flag=$lt_prog_compiler_pic 9992 compiler_flags=-v 9993 linker_flags=-v 9994 verstring= 9995 output_objdir=. 9996 libname=conftest 9997 lt_save_allow_undefined_flag=$allow_undefined_flag 9998 allow_undefined_flag= 9999 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10000 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10001 ac_status=$? 10002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10003 (exit $ac_status); } 10004 then 10005 archive_cmds_need_lc=no 10006 else 10007 archive_cmds_need_lc=yes 10008 fi 10009 allow_undefined_flag=$lt_save_allow_undefined_flag 10010 else 10011 cat conftest.err 1>&5 10012 fi 10013 $RM conftest* 10014 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10015$as_echo "$archive_cmds_need_lc" >&6; } 10016 ;; 10017 esac 10018 fi 10019 ;; 10020esac 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10179$as_echo_n "checking dynamic linker characteristics... " >&6; } 10180 10181if test "$GCC" = yes; then 10182 case $host_os in 10183 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10184 *) lt_awk_arg="/^libraries:/" ;; 10185 esac 10186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10187 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10188 # if the path contains ";" then we assume it to be the separator 10189 # otherwise default to the standard path separator (i.e. ":") - it is 10190 # assumed that no part of a normal pathname contains ";" but that should 10191 # okay in the real world where ";" in dirpaths is itself problematic. 10192 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10193 else 10194 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10195 fi 10196 # Ok, now we have the path, separated by spaces, we can step through it 10197 # and add multilib dir if necessary. 10198 lt_tmp_lt_search_path_spec= 10199 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10200 for lt_sys_path in $lt_search_path_spec; do 10201 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10203 else 10204 test -d "$lt_sys_path" && \ 10205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10206 fi 10207 done 10208 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10209BEGIN {RS=" "; FS="/|\n";} { 10210 lt_foo=""; 10211 lt_count=0; 10212 for (lt_i = NF; lt_i > 0; lt_i--) { 10213 if ($lt_i != "" && $lt_i != ".") { 10214 if ($lt_i == "..") { 10215 lt_count++; 10216 } else { 10217 if (lt_count == 0) { 10218 lt_foo="/" $lt_i lt_foo; 10219 } else { 10220 lt_count--; 10221 } 10222 } 10223 } 10224 } 10225 if (lt_foo != "") { lt_freq[lt_foo]++; } 10226 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10227}'` 10228 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10229else 10230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10231fi 10232library_names_spec= 10233libname_spec='lib$name' 10234soname_spec= 10235shrext_cmds=".so" 10236postinstall_cmds= 10237postuninstall_cmds= 10238finish_cmds= 10239finish_eval= 10240shlibpath_var= 10241shlibpath_overrides_runpath=unknown 10242version_type=none 10243dynamic_linker="$host_os ld.so" 10244sys_lib_dlsearch_path_spec="/lib /usr/lib" 10245need_lib_prefix=unknown 10246hardcode_into_libs=no 10247 10248# when you set need_version to no, make sure it does not cause -set_version 10249# flags to be left without arguments 10250need_version=unknown 10251 10252case $host_os in 10253aix3*) 10254 version_type=linux 10255 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10256 shlibpath_var=LIBPATH 10257 10258 # AIX 3 has no versioning support, so we append a major version to the name. 10259 soname_spec='${libname}${release}${shared_ext}$major' 10260 ;; 10261 10262aix[4-9]*) 10263 version_type=linux 10264 need_lib_prefix=no 10265 need_version=no 10266 hardcode_into_libs=yes 10267 if test "$host_cpu" = ia64; then 10268 # AIX 5 supports IA64 10269 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10270 shlibpath_var=LD_LIBRARY_PATH 10271 else 10272 # With GCC up to 2.95.x, collect2 would create an import file 10273 # for dependence libraries. The import file would start with 10274 # the line `#! .'. This would cause the generated library to 10275 # depend on `.', always an invalid library. This was fixed in 10276 # development snapshots of GCC prior to 3.0. 10277 case $host_os in 10278 aix4 | aix4.[01] | aix4.[01].*) 10279 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10280 echo ' yes ' 10281 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10282 : 10283 else 10284 can_build_shared=no 10285 fi 10286 ;; 10287 esac 10288 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10289 # soname into executable. Probably we can add versioning support to 10290 # collect2, so additional links can be useful in future. 10291 if test "$aix_use_runtimelinking" = yes; then 10292 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10293 # instead of lib<name>.a to let people know that these are not 10294 # typical AIX shared libraries. 10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10296 else 10297 # We preserve .a as extension for shared libraries through AIX4.2 10298 # and later when we are not doing run time linking. 10299 library_names_spec='${libname}${release}.a $libname.a' 10300 soname_spec='${libname}${release}${shared_ext}$major' 10301 fi 10302 shlibpath_var=LIBPATH 10303 fi 10304 ;; 10305 10306amigaos*) 10307 case $host_cpu in 10308 powerpc) 10309 # Since July 2007 AmigaOS4 officially supports .so libraries. 10310 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10312 ;; 10313 m68k) 10314 library_names_spec='$libname.ixlibrary $libname.a' 10315 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10316 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' 10317 ;; 10318 esac 10319 ;; 10320 10321beos*) 10322 library_names_spec='${libname}${shared_ext}' 10323 dynamic_linker="$host_os ld.so" 10324 shlibpath_var=LIBRARY_PATH 10325 ;; 10326 10327bsdi[45]*) 10328 version_type=linux 10329 need_version=no 10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10331 soname_spec='${libname}${release}${shared_ext}$major' 10332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10333 shlibpath_var=LD_LIBRARY_PATH 10334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10336 # the default ld.so.conf also contains /usr/contrib/lib and 10337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10338 # libtool to hard-code these into programs 10339 ;; 10340 10341cygwin* | mingw* | pw32* | cegcc*) 10342 version_type=windows 10343 shrext_cmds=".dll" 10344 need_version=no 10345 need_lib_prefix=no 10346 10347 case $GCC,$host_os in 10348 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10349 library_names_spec='$libname.dll.a' 10350 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10351 postinstall_cmds='base_file=`basename \${file}`~ 10352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10353 dldir=$destdir/`dirname \$dlpath`~ 10354 test -d \$dldir || mkdir -p \$dldir~ 10355 $install_prog $dir/$dlname \$dldir/$dlname~ 10356 chmod a+x \$dldir/$dlname~ 10357 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10358 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10359 fi' 10360 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10361 dlpath=$dir/\$dldll~ 10362 $RM \$dlpath' 10363 shlibpath_overrides_runpath=yes 10364 10365 case $host_os in 10366 cygwin*) 10367 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10368 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10369 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10370 ;; 10371 mingw* | cegcc*) 10372 # MinGW DLLs use traditional 'lib' prefix 10373 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10374 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10375 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10376 # It is most probably a Windows format PATH printed by 10377 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10378 # path with ; separators, and with drive letters. We can handle the 10379 # drive letters (cygwin fileutils understands them), so leave them, 10380 # especially as we might pass files found there to a mingw objdump, 10381 # which wouldn't understand a cygwinified path. Ahh. 10382 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10383 else 10384 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10385 fi 10386 ;; 10387 pw32*) 10388 # pw32 DLLs use 'pw' prefix rather than 'lib' 10389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10390 ;; 10391 esac 10392 ;; 10393 10394 *) 10395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10396 ;; 10397 esac 10398 dynamic_linker='Win32 ld.exe' 10399 # FIXME: first we should search . and the directory the executable is in 10400 shlibpath_var=PATH 10401 ;; 10402 10403darwin* | rhapsody*) 10404 dynamic_linker="$host_os dyld" 10405 version_type=darwin 10406 need_lib_prefix=no 10407 need_version=no 10408 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10409 soname_spec='${libname}${release}${major}$shared_ext' 10410 shlibpath_overrides_runpath=yes 10411 shlibpath_var=DYLD_LIBRARY_PATH 10412 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10413 10414 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10416 ;; 10417 10418dgux*) 10419 version_type=linux 10420 need_lib_prefix=no 10421 need_version=no 10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10423 soname_spec='${libname}${release}${shared_ext}$major' 10424 shlibpath_var=LD_LIBRARY_PATH 10425 ;; 10426 10427freebsd1*) 10428 dynamic_linker=no 10429 ;; 10430 10431freebsd* | dragonfly*) 10432 # DragonFly does not have aout. When/if they implement a new 10433 # versioning mechanism, adjust this. 10434 if test -x /usr/bin/objformat; then 10435 objformat=`/usr/bin/objformat` 10436 else 10437 case $host_os in 10438 freebsd[123]*) objformat=aout ;; 10439 *) objformat=elf ;; 10440 esac 10441 fi 10442 version_type=freebsd-$objformat 10443 case $version_type in 10444 freebsd-elf*) 10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10446 need_version=no 10447 need_lib_prefix=no 10448 ;; 10449 freebsd-*) 10450 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10451 need_version=yes 10452 ;; 10453 esac 10454 shlibpath_var=LD_LIBRARY_PATH 10455 case $host_os in 10456 freebsd2*) 10457 shlibpath_overrides_runpath=yes 10458 ;; 10459 freebsd3.[01]* | freebsdelf3.[01]*) 10460 shlibpath_overrides_runpath=yes 10461 hardcode_into_libs=yes 10462 ;; 10463 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10464 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10465 shlibpath_overrides_runpath=no 10466 hardcode_into_libs=yes 10467 ;; 10468 *) # from 4.6 on, and DragonFly 10469 shlibpath_overrides_runpath=yes 10470 hardcode_into_libs=yes 10471 ;; 10472 esac 10473 ;; 10474 10475gnu*) 10476 version_type=linux 10477 need_lib_prefix=no 10478 need_version=no 10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10480 soname_spec='${libname}${release}${shared_ext}$major' 10481 shlibpath_var=LD_LIBRARY_PATH 10482 hardcode_into_libs=yes 10483 ;; 10484 10485hpux9* | hpux10* | hpux11*) 10486 # Give a soname corresponding to the major version so that dld.sl refuses to 10487 # link against other versions. 10488 version_type=sunos 10489 need_lib_prefix=no 10490 need_version=no 10491 case $host_cpu in 10492 ia64*) 10493 shrext_cmds='.so' 10494 hardcode_into_libs=yes 10495 dynamic_linker="$host_os dld.so" 10496 shlibpath_var=LD_LIBRARY_PATH 10497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10499 soname_spec='${libname}${release}${shared_ext}$major' 10500 if test "X$HPUX_IA64_MODE" = X32; then 10501 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10502 else 10503 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10504 fi 10505 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10506 ;; 10507 hppa*64*) 10508 shrext_cmds='.sl' 10509 hardcode_into_libs=yes 10510 dynamic_linker="$host_os dld.sl" 10511 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10514 soname_spec='${libname}${release}${shared_ext}$major' 10515 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10517 ;; 10518 *) 10519 shrext_cmds='.sl' 10520 dynamic_linker="$host_os dld.sl" 10521 shlibpath_var=SHLIB_PATH 10522 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10524 soname_spec='${libname}${release}${shared_ext}$major' 10525 ;; 10526 esac 10527 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10528 postinstall_cmds='chmod 555 $lib' 10529 ;; 10530 10531interix[3-9]*) 10532 version_type=linux 10533 need_lib_prefix=no 10534 need_version=no 10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10536 soname_spec='${libname}${release}${shared_ext}$major' 10537 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10538 shlibpath_var=LD_LIBRARY_PATH 10539 shlibpath_overrides_runpath=no 10540 hardcode_into_libs=yes 10541 ;; 10542 10543irix5* | irix6* | nonstopux*) 10544 case $host_os in 10545 nonstopux*) version_type=nonstopux ;; 10546 *) 10547 if test "$lt_cv_prog_gnu_ld" = yes; then 10548 version_type=linux 10549 else 10550 version_type=irix 10551 fi ;; 10552 esac 10553 need_lib_prefix=no 10554 need_version=no 10555 soname_spec='${libname}${release}${shared_ext}$major' 10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10557 case $host_os in 10558 irix5* | nonstopux*) 10559 libsuff= shlibsuff= 10560 ;; 10561 *) 10562 case $LD in # libtool.m4 will add one of these switches to LD 10563 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10564 libsuff= shlibsuff= libmagic=32-bit;; 10565 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10566 libsuff=32 shlibsuff=N32 libmagic=N32;; 10567 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10568 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10569 *) libsuff= shlibsuff= libmagic=never-match;; 10570 esac 10571 ;; 10572 esac 10573 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10574 shlibpath_overrides_runpath=no 10575 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10576 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10577 hardcode_into_libs=yes 10578 ;; 10579 10580# No shared lib support for Linux oldld, aout, or coff. 10581linux*oldld* | linux*aout* | linux*coff*) 10582 dynamic_linker=no 10583 ;; 10584 10585# This must be Linux ELF. 10586linux* | k*bsd*-gnu) 10587 version_type=linux 10588 need_lib_prefix=no 10589 need_version=no 10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10591 soname_spec='${libname}${release}${shared_ext}$major' 10592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10593 shlibpath_var=LD_LIBRARY_PATH 10594 shlibpath_overrides_runpath=no 10595 # Some binutils ld are patched to set DT_RUNPATH 10596 save_LDFLAGS=$LDFLAGS 10597 save_libdir=$libdir 10598 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10599 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10600 cat >conftest.$ac_ext <<_ACEOF 10601/* confdefs.h. */ 10602_ACEOF 10603cat confdefs.h >>conftest.$ac_ext 10604cat >>conftest.$ac_ext <<_ACEOF 10605/* end confdefs.h. */ 10606 10607int 10608main () 10609{ 10610 10611 ; 10612 return 0; 10613} 10614_ACEOF 10615rm -f conftest.$ac_objext conftest$ac_exeext 10616if { (ac_try="$ac_link" 10617case "(($ac_try" in 10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10619 *) ac_try_echo=$ac_try;; 10620esac 10621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10622$as_echo "$ac_try_echo") >&5 10623 (eval "$ac_link") 2>conftest.er1 10624 ac_status=$? 10625 grep -v '^ *+' conftest.er1 >conftest.err 10626 rm -f conftest.er1 10627 cat conftest.err >&5 10628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10629 (exit $ac_status); } && { 10630 test -z "$ac_c_werror_flag" || 10631 test ! -s conftest.err 10632 } && test -s conftest$ac_exeext && { 10633 test "$cross_compiling" = yes || 10634 $as_test_x conftest$ac_exeext 10635 }; then 10636 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10637 shlibpath_overrides_runpath=yes 10638fi 10639 10640else 10641 $as_echo "$as_me: failed program was:" >&5 10642sed 's/^/| /' conftest.$ac_ext >&5 10643 10644 10645fi 10646 10647rm -rf conftest.dSYM 10648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10649 conftest$ac_exeext conftest.$ac_ext 10650 LDFLAGS=$save_LDFLAGS 10651 libdir=$save_libdir 10652 10653 # This implies no fast_install, which is unacceptable. 10654 # Some rework will be needed to allow for fast_install 10655 # before this can be enabled. 10656 hardcode_into_libs=yes 10657 10658 # Add ABI-specific directories to the system library path. 10659 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10660 10661 # Append ld.so.conf contents to the search path 10662 if test -f /etc/ld.so.conf; then 10663 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' ' '` 10664 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10665 fi 10666 10667 # We used to test for /lib/ld.so.1 and disable shared libraries on 10668 # powerpc, because MkLinux only supported shared libraries with the 10669 # GNU dynamic linker. Since this was broken with cross compilers, 10670 # most powerpc-linux boxes support dynamic linking these days and 10671 # people can always --disable-shared, the test was removed, and we 10672 # assume the GNU/Linux dynamic linker is in use. 10673 dynamic_linker='GNU/Linux ld.so' 10674 ;; 10675 10676netbsd*) 10677 version_type=sunos 10678 need_lib_prefix=no 10679 need_version=no 10680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10683 dynamic_linker='NetBSD (a.out) ld.so' 10684 else 10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10686 soname_spec='${libname}${release}${shared_ext}$major' 10687 dynamic_linker='NetBSD ld.elf_so' 10688 fi 10689 shlibpath_var=LD_LIBRARY_PATH 10690 shlibpath_overrides_runpath=yes 10691 hardcode_into_libs=yes 10692 ;; 10693 10694newsos6) 10695 version_type=linux 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10697 shlibpath_var=LD_LIBRARY_PATH 10698 shlibpath_overrides_runpath=yes 10699 ;; 10700 10701*nto* | *qnx*) 10702 version_type=qnx 10703 need_lib_prefix=no 10704 need_version=no 10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10706 soname_spec='${libname}${release}${shared_ext}$major' 10707 shlibpath_var=LD_LIBRARY_PATH 10708 shlibpath_overrides_runpath=no 10709 hardcode_into_libs=yes 10710 dynamic_linker='ldqnx.so' 10711 ;; 10712 10713openbsd*) 10714 version_type=sunos 10715 sys_lib_dlsearch_path_spec="/usr/lib" 10716 need_lib_prefix=no 10717 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10718 case $host_os in 10719 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10720 *) need_version=no ;; 10721 esac 10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10724 shlibpath_var=LD_LIBRARY_PATH 10725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10726 case $host_os in 10727 openbsd2.[89] | openbsd2.[89].*) 10728 shlibpath_overrides_runpath=no 10729 ;; 10730 *) 10731 shlibpath_overrides_runpath=yes 10732 ;; 10733 esac 10734 else 10735 shlibpath_overrides_runpath=yes 10736 fi 10737 ;; 10738 10739os2*) 10740 libname_spec='$name' 10741 shrext_cmds=".dll" 10742 need_lib_prefix=no 10743 library_names_spec='$libname${shared_ext} $libname.a' 10744 dynamic_linker='OS/2 ld.exe' 10745 shlibpath_var=LIBPATH 10746 ;; 10747 10748osf3* | osf4* | osf5*) 10749 version_type=osf 10750 need_lib_prefix=no 10751 need_version=no 10752 soname_spec='${libname}${release}${shared_ext}$major' 10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10754 shlibpath_var=LD_LIBRARY_PATH 10755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10757 ;; 10758 10759rdos*) 10760 dynamic_linker=no 10761 ;; 10762 10763solaris*) 10764 version_type=linux 10765 need_lib_prefix=no 10766 need_version=no 10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10768 soname_spec='${libname}${release}${shared_ext}$major' 10769 shlibpath_var=LD_LIBRARY_PATH 10770 shlibpath_overrides_runpath=yes 10771 hardcode_into_libs=yes 10772 # ldd complains unless libraries are executable 10773 postinstall_cmds='chmod +x $lib' 10774 ;; 10775 10776sunos4*) 10777 version_type=sunos 10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10780 shlibpath_var=LD_LIBRARY_PATH 10781 shlibpath_overrides_runpath=yes 10782 if test "$with_gnu_ld" = yes; then 10783 need_lib_prefix=no 10784 fi 10785 need_version=yes 10786 ;; 10787 10788sysv4 | sysv4.3*) 10789 version_type=linux 10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10791 soname_spec='${libname}${release}${shared_ext}$major' 10792 shlibpath_var=LD_LIBRARY_PATH 10793 case $host_vendor in 10794 sni) 10795 shlibpath_overrides_runpath=no 10796 need_lib_prefix=no 10797 runpath_var=LD_RUN_PATH 10798 ;; 10799 siemens) 10800 need_lib_prefix=no 10801 ;; 10802 motorola) 10803 need_lib_prefix=no 10804 need_version=no 10805 shlibpath_overrides_runpath=no 10806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10807 ;; 10808 esac 10809 ;; 10810 10811sysv4*MP*) 10812 if test -d /usr/nec ;then 10813 version_type=linux 10814 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10815 soname_spec='$libname${shared_ext}.$major' 10816 shlibpath_var=LD_LIBRARY_PATH 10817 fi 10818 ;; 10819 10820sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10821 version_type=freebsd-elf 10822 need_lib_prefix=no 10823 need_version=no 10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10825 soname_spec='${libname}${release}${shared_ext}$major' 10826 shlibpath_var=LD_LIBRARY_PATH 10827 shlibpath_overrides_runpath=yes 10828 hardcode_into_libs=yes 10829 if test "$with_gnu_ld" = yes; then 10830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10831 else 10832 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10833 case $host_os in 10834 sco3.2v5*) 10835 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10836 ;; 10837 esac 10838 fi 10839 sys_lib_dlsearch_path_spec='/usr/lib' 10840 ;; 10841 10842tpf*) 10843 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10844 version_type=linux 10845 need_lib_prefix=no 10846 need_version=no 10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10848 shlibpath_var=LD_LIBRARY_PATH 10849 shlibpath_overrides_runpath=no 10850 hardcode_into_libs=yes 10851 ;; 10852 10853uts4*) 10854 version_type=linux 10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10856 soname_spec='${libname}${release}${shared_ext}$major' 10857 shlibpath_var=LD_LIBRARY_PATH 10858 ;; 10859 10860*) 10861 dynamic_linker=no 10862 ;; 10863esac 10864{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10865$as_echo "$dynamic_linker" >&6; } 10866test "$dynamic_linker" = no && can_build_shared=no 10867 10868variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10869if test "$GCC" = yes; then 10870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10871fi 10872 10873if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10874 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10875fi 10876if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10877 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10878fi 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10967$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10968hardcode_action= 10969if test -n "$hardcode_libdir_flag_spec" || 10970 test -n "$runpath_var" || 10971 test "X$hardcode_automatic" = "Xyes" ; then 10972 10973 # We can hardcode non-existent directories. 10974 if test "$hardcode_direct" != no && 10975 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10976 # have to relink, otherwise we might link with an installed library 10977 # when we should be linking with a yet-to-be-installed one 10978 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10979 test "$hardcode_minus_L" != no; then 10980 # Linking always hardcodes the temporary library directory. 10981 hardcode_action=relink 10982 else 10983 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10984 hardcode_action=immediate 10985 fi 10986else 10987 # We cannot hardcode anything, or else we can only hardcode existing 10988 # directories. 10989 hardcode_action=unsupported 10990fi 10991{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10992$as_echo "$hardcode_action" >&6; } 10993 10994if test "$hardcode_action" = relink || 10995 test "$inherit_rpath" = yes; then 10996 # Fast installation is not supported 10997 enable_fast_install=no 10998elif test "$shlibpath_overrides_runpath" = yes || 10999 test "$enable_shared" = no; then 11000 # Fast installation is not necessary 11001 enable_fast_install=needless 11002fi 11003 11004 11005 11006 11007 11008 11009 if test "x$enable_dlopen" != xyes; then 11010 enable_dlopen=unknown 11011 enable_dlopen_self=unknown 11012 enable_dlopen_self_static=unknown 11013else 11014 lt_cv_dlopen=no 11015 lt_cv_dlopen_libs= 11016 11017 case $host_os in 11018 beos*) 11019 lt_cv_dlopen="load_add_on" 11020 lt_cv_dlopen_libs= 11021 lt_cv_dlopen_self=yes 11022 ;; 11023 11024 mingw* | pw32* | cegcc*) 11025 lt_cv_dlopen="LoadLibrary" 11026 lt_cv_dlopen_libs= 11027 ;; 11028 11029 cygwin*) 11030 lt_cv_dlopen="dlopen" 11031 lt_cv_dlopen_libs= 11032 ;; 11033 11034 darwin*) 11035 # if libdl is installed we need to link against it 11036 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11037$as_echo_n "checking for dlopen in -ldl... " >&6; } 11038if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11039 $as_echo_n "(cached) " >&6 11040else 11041 ac_check_lib_save_LIBS=$LIBS 11042LIBS="-ldl $LIBS" 11043cat >conftest.$ac_ext <<_ACEOF 11044/* confdefs.h. */ 11045_ACEOF 11046cat confdefs.h >>conftest.$ac_ext 11047cat >>conftest.$ac_ext <<_ACEOF 11048/* end confdefs.h. */ 11049 11050/* Override any GCC internal prototype to avoid an error. 11051 Use char because int might match the return type of a GCC 11052 builtin and then its argument prototype would still apply. */ 11053#ifdef __cplusplus 11054extern "C" 11055#endif 11056char dlopen (); 11057int 11058main () 11059{ 11060return dlopen (); 11061 ; 11062 return 0; 11063} 11064_ACEOF 11065rm -f conftest.$ac_objext conftest$ac_exeext 11066if { (ac_try="$ac_link" 11067case "(($ac_try" in 11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11069 *) ac_try_echo=$ac_try;; 11070esac 11071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11072$as_echo "$ac_try_echo") >&5 11073 (eval "$ac_link") 2>conftest.er1 11074 ac_status=$? 11075 grep -v '^ *+' conftest.er1 >conftest.err 11076 rm -f conftest.er1 11077 cat conftest.err >&5 11078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11079 (exit $ac_status); } && { 11080 test -z "$ac_c_werror_flag" || 11081 test ! -s conftest.err 11082 } && test -s conftest$ac_exeext && { 11083 test "$cross_compiling" = yes || 11084 $as_test_x conftest$ac_exeext 11085 }; then 11086 ac_cv_lib_dl_dlopen=yes 11087else 11088 $as_echo "$as_me: failed program was:" >&5 11089sed 's/^/| /' conftest.$ac_ext >&5 11090 11091 ac_cv_lib_dl_dlopen=no 11092fi 11093 11094rm -rf conftest.dSYM 11095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11096 conftest$ac_exeext conftest.$ac_ext 11097LIBS=$ac_check_lib_save_LIBS 11098fi 11099{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11100$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11101if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11103else 11104 11105 lt_cv_dlopen="dyld" 11106 lt_cv_dlopen_libs= 11107 lt_cv_dlopen_self=yes 11108 11109fi 11110 11111 ;; 11112 11113 *) 11114 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11115$as_echo_n "checking for shl_load... " >&6; } 11116if test "${ac_cv_func_shl_load+set}" = set; then 11117 $as_echo_n "(cached) " >&6 11118else 11119 cat >conftest.$ac_ext <<_ACEOF 11120/* confdefs.h. */ 11121_ACEOF 11122cat confdefs.h >>conftest.$ac_ext 11123cat >>conftest.$ac_ext <<_ACEOF 11124/* end confdefs.h. */ 11125/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11126 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11127#define shl_load innocuous_shl_load 11128 11129/* System header to define __stub macros and hopefully few prototypes, 11130 which can conflict with char shl_load (); below. 11131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11132 <limits.h> exists even on freestanding compilers. */ 11133 11134#ifdef __STDC__ 11135# include <limits.h> 11136#else 11137# include <assert.h> 11138#endif 11139 11140#undef shl_load 11141 11142/* Override any GCC internal prototype to avoid an error. 11143 Use char because int might match the return type of a GCC 11144 builtin and then its argument prototype would still apply. */ 11145#ifdef __cplusplus 11146extern "C" 11147#endif 11148char shl_load (); 11149/* The GNU C library defines this for functions which it implements 11150 to always fail with ENOSYS. Some functions are actually named 11151 something starting with __ and the normal name is an alias. */ 11152#if defined __stub_shl_load || defined __stub___shl_load 11153choke me 11154#endif 11155 11156int 11157main () 11158{ 11159return shl_load (); 11160 ; 11161 return 0; 11162} 11163_ACEOF 11164rm -f conftest.$ac_objext conftest$ac_exeext 11165if { (ac_try="$ac_link" 11166case "(($ac_try" in 11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11168 *) ac_try_echo=$ac_try;; 11169esac 11170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11171$as_echo "$ac_try_echo") >&5 11172 (eval "$ac_link") 2>conftest.er1 11173 ac_status=$? 11174 grep -v '^ *+' conftest.er1 >conftest.err 11175 rm -f conftest.er1 11176 cat conftest.err >&5 11177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11178 (exit $ac_status); } && { 11179 test -z "$ac_c_werror_flag" || 11180 test ! -s conftest.err 11181 } && test -s conftest$ac_exeext && { 11182 test "$cross_compiling" = yes || 11183 $as_test_x conftest$ac_exeext 11184 }; then 11185 ac_cv_func_shl_load=yes 11186else 11187 $as_echo "$as_me: failed program was:" >&5 11188sed 's/^/| /' conftest.$ac_ext >&5 11189 11190 ac_cv_func_shl_load=no 11191fi 11192 11193rm -rf conftest.dSYM 11194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11195 conftest$ac_exeext conftest.$ac_ext 11196fi 11197{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11198$as_echo "$ac_cv_func_shl_load" >&6; } 11199if test "x$ac_cv_func_shl_load" = x""yes; then 11200 lt_cv_dlopen="shl_load" 11201else 11202 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11203$as_echo_n "checking for shl_load in -ldld... " >&6; } 11204if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11205 $as_echo_n "(cached) " >&6 11206else 11207 ac_check_lib_save_LIBS=$LIBS 11208LIBS="-ldld $LIBS" 11209cat >conftest.$ac_ext <<_ACEOF 11210/* confdefs.h. */ 11211_ACEOF 11212cat confdefs.h >>conftest.$ac_ext 11213cat >>conftest.$ac_ext <<_ACEOF 11214/* end confdefs.h. */ 11215 11216/* Override any GCC internal prototype to avoid an error. 11217 Use char because int might match the return type of a GCC 11218 builtin and then its argument prototype would still apply. */ 11219#ifdef __cplusplus 11220extern "C" 11221#endif 11222char shl_load (); 11223int 11224main () 11225{ 11226return shl_load (); 11227 ; 11228 return 0; 11229} 11230_ACEOF 11231rm -f conftest.$ac_objext conftest$ac_exeext 11232if { (ac_try="$ac_link" 11233case "(($ac_try" in 11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11235 *) ac_try_echo=$ac_try;; 11236esac 11237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11238$as_echo "$ac_try_echo") >&5 11239 (eval "$ac_link") 2>conftest.er1 11240 ac_status=$? 11241 grep -v '^ *+' conftest.er1 >conftest.err 11242 rm -f conftest.er1 11243 cat conftest.err >&5 11244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11245 (exit $ac_status); } && { 11246 test -z "$ac_c_werror_flag" || 11247 test ! -s conftest.err 11248 } && test -s conftest$ac_exeext && { 11249 test "$cross_compiling" = yes || 11250 $as_test_x conftest$ac_exeext 11251 }; then 11252 ac_cv_lib_dld_shl_load=yes 11253else 11254 $as_echo "$as_me: failed program was:" >&5 11255sed 's/^/| /' conftest.$ac_ext >&5 11256 11257 ac_cv_lib_dld_shl_load=no 11258fi 11259 11260rm -rf conftest.dSYM 11261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11262 conftest$ac_exeext conftest.$ac_ext 11263LIBS=$ac_check_lib_save_LIBS 11264fi 11265{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11266$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11267if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11268 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11269else 11270 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11271$as_echo_n "checking for dlopen... " >&6; } 11272if test "${ac_cv_func_dlopen+set}" = set; then 11273 $as_echo_n "(cached) " >&6 11274else 11275 cat >conftest.$ac_ext <<_ACEOF 11276/* confdefs.h. */ 11277_ACEOF 11278cat confdefs.h >>conftest.$ac_ext 11279cat >>conftest.$ac_ext <<_ACEOF 11280/* end confdefs.h. */ 11281/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11282 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11283#define dlopen innocuous_dlopen 11284 11285/* System header to define __stub macros and hopefully few prototypes, 11286 which can conflict with char dlopen (); below. 11287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11288 <limits.h> exists even on freestanding compilers. */ 11289 11290#ifdef __STDC__ 11291# include <limits.h> 11292#else 11293# include <assert.h> 11294#endif 11295 11296#undef dlopen 11297 11298/* Override any GCC internal prototype to avoid an error. 11299 Use char because int might match the return type of a GCC 11300 builtin and then its argument prototype would still apply. */ 11301#ifdef __cplusplus 11302extern "C" 11303#endif 11304char dlopen (); 11305/* The GNU C library defines this for functions which it implements 11306 to always fail with ENOSYS. Some functions are actually named 11307 something starting with __ and the normal name is an alias. */ 11308#if defined __stub_dlopen || defined __stub___dlopen 11309choke me 11310#endif 11311 11312int 11313main () 11314{ 11315return dlopen (); 11316 ; 11317 return 0; 11318} 11319_ACEOF 11320rm -f conftest.$ac_objext conftest$ac_exeext 11321if { (ac_try="$ac_link" 11322case "(($ac_try" in 11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11324 *) ac_try_echo=$ac_try;; 11325esac 11326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11327$as_echo "$ac_try_echo") >&5 11328 (eval "$ac_link") 2>conftest.er1 11329 ac_status=$? 11330 grep -v '^ *+' conftest.er1 >conftest.err 11331 rm -f conftest.er1 11332 cat conftest.err >&5 11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11334 (exit $ac_status); } && { 11335 test -z "$ac_c_werror_flag" || 11336 test ! -s conftest.err 11337 } && test -s conftest$ac_exeext && { 11338 test "$cross_compiling" = yes || 11339 $as_test_x conftest$ac_exeext 11340 }; then 11341 ac_cv_func_dlopen=yes 11342else 11343 $as_echo "$as_me: failed program was:" >&5 11344sed 's/^/| /' conftest.$ac_ext >&5 11345 11346 ac_cv_func_dlopen=no 11347fi 11348 11349rm -rf conftest.dSYM 11350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11351 conftest$ac_exeext conftest.$ac_ext 11352fi 11353{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11354$as_echo "$ac_cv_func_dlopen" >&6; } 11355if test "x$ac_cv_func_dlopen" = x""yes; then 11356 lt_cv_dlopen="dlopen" 11357else 11358 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11359$as_echo_n "checking for dlopen in -ldl... " >&6; } 11360if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11361 $as_echo_n "(cached) " >&6 11362else 11363 ac_check_lib_save_LIBS=$LIBS 11364LIBS="-ldl $LIBS" 11365cat >conftest.$ac_ext <<_ACEOF 11366/* confdefs.h. */ 11367_ACEOF 11368cat confdefs.h >>conftest.$ac_ext 11369cat >>conftest.$ac_ext <<_ACEOF 11370/* end confdefs.h. */ 11371 11372/* Override any GCC internal prototype to avoid an error. 11373 Use char because int might match the return type of a GCC 11374 builtin and then its argument prototype would still apply. */ 11375#ifdef __cplusplus 11376extern "C" 11377#endif 11378char dlopen (); 11379int 11380main () 11381{ 11382return dlopen (); 11383 ; 11384 return 0; 11385} 11386_ACEOF 11387rm -f conftest.$ac_objext conftest$ac_exeext 11388if { (ac_try="$ac_link" 11389case "(($ac_try" in 11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11391 *) ac_try_echo=$ac_try;; 11392esac 11393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11394$as_echo "$ac_try_echo") >&5 11395 (eval "$ac_link") 2>conftest.er1 11396 ac_status=$? 11397 grep -v '^ *+' conftest.er1 >conftest.err 11398 rm -f conftest.er1 11399 cat conftest.err >&5 11400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11401 (exit $ac_status); } && { 11402 test -z "$ac_c_werror_flag" || 11403 test ! -s conftest.err 11404 } && test -s conftest$ac_exeext && { 11405 test "$cross_compiling" = yes || 11406 $as_test_x conftest$ac_exeext 11407 }; then 11408 ac_cv_lib_dl_dlopen=yes 11409else 11410 $as_echo "$as_me: failed program was:" >&5 11411sed 's/^/| /' conftest.$ac_ext >&5 11412 11413 ac_cv_lib_dl_dlopen=no 11414fi 11415 11416rm -rf conftest.dSYM 11417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11418 conftest$ac_exeext conftest.$ac_ext 11419LIBS=$ac_check_lib_save_LIBS 11420fi 11421{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11422$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11423if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11425else 11426 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11427$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11428if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11429 $as_echo_n "(cached) " >&6 11430else 11431 ac_check_lib_save_LIBS=$LIBS 11432LIBS="-lsvld $LIBS" 11433cat >conftest.$ac_ext <<_ACEOF 11434/* confdefs.h. */ 11435_ACEOF 11436cat confdefs.h >>conftest.$ac_ext 11437cat >>conftest.$ac_ext <<_ACEOF 11438/* end confdefs.h. */ 11439 11440/* Override any GCC internal prototype to avoid an error. 11441 Use char because int might match the return type of a GCC 11442 builtin and then its argument prototype would still apply. */ 11443#ifdef __cplusplus 11444extern "C" 11445#endif 11446char dlopen (); 11447int 11448main () 11449{ 11450return dlopen (); 11451 ; 11452 return 0; 11453} 11454_ACEOF 11455rm -f conftest.$ac_objext conftest$ac_exeext 11456if { (ac_try="$ac_link" 11457case "(($ac_try" in 11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11459 *) ac_try_echo=$ac_try;; 11460esac 11461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11462$as_echo "$ac_try_echo") >&5 11463 (eval "$ac_link") 2>conftest.er1 11464 ac_status=$? 11465 grep -v '^ *+' conftest.er1 >conftest.err 11466 rm -f conftest.er1 11467 cat conftest.err >&5 11468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11469 (exit $ac_status); } && { 11470 test -z "$ac_c_werror_flag" || 11471 test ! -s conftest.err 11472 } && test -s conftest$ac_exeext && { 11473 test "$cross_compiling" = yes || 11474 $as_test_x conftest$ac_exeext 11475 }; then 11476 ac_cv_lib_svld_dlopen=yes 11477else 11478 $as_echo "$as_me: failed program was:" >&5 11479sed 's/^/| /' conftest.$ac_ext >&5 11480 11481 ac_cv_lib_svld_dlopen=no 11482fi 11483 11484rm -rf conftest.dSYM 11485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11486 conftest$ac_exeext conftest.$ac_ext 11487LIBS=$ac_check_lib_save_LIBS 11488fi 11489{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11490$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11491if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11493else 11494 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11495$as_echo_n "checking for dld_link in -ldld... " >&6; } 11496if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11497 $as_echo_n "(cached) " >&6 11498else 11499 ac_check_lib_save_LIBS=$LIBS 11500LIBS="-ldld $LIBS" 11501cat >conftest.$ac_ext <<_ACEOF 11502/* confdefs.h. */ 11503_ACEOF 11504cat confdefs.h >>conftest.$ac_ext 11505cat >>conftest.$ac_ext <<_ACEOF 11506/* end confdefs.h. */ 11507 11508/* Override any GCC internal prototype to avoid an error. 11509 Use char because int might match the return type of a GCC 11510 builtin and then its argument prototype would still apply. */ 11511#ifdef __cplusplus 11512extern "C" 11513#endif 11514char dld_link (); 11515int 11516main () 11517{ 11518return dld_link (); 11519 ; 11520 return 0; 11521} 11522_ACEOF 11523rm -f conftest.$ac_objext conftest$ac_exeext 11524if { (ac_try="$ac_link" 11525case "(($ac_try" in 11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11527 *) ac_try_echo=$ac_try;; 11528esac 11529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11530$as_echo "$ac_try_echo") >&5 11531 (eval "$ac_link") 2>conftest.er1 11532 ac_status=$? 11533 grep -v '^ *+' conftest.er1 >conftest.err 11534 rm -f conftest.er1 11535 cat conftest.err >&5 11536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11537 (exit $ac_status); } && { 11538 test -z "$ac_c_werror_flag" || 11539 test ! -s conftest.err 11540 } && test -s conftest$ac_exeext && { 11541 test "$cross_compiling" = yes || 11542 $as_test_x conftest$ac_exeext 11543 }; then 11544 ac_cv_lib_dld_dld_link=yes 11545else 11546 $as_echo "$as_me: failed program was:" >&5 11547sed 's/^/| /' conftest.$ac_ext >&5 11548 11549 ac_cv_lib_dld_dld_link=no 11550fi 11551 11552rm -rf conftest.dSYM 11553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11554 conftest$ac_exeext conftest.$ac_ext 11555LIBS=$ac_check_lib_save_LIBS 11556fi 11557{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11558$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11559if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11560 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11561fi 11562 11563 11564fi 11565 11566 11567fi 11568 11569 11570fi 11571 11572 11573fi 11574 11575 11576fi 11577 11578 ;; 11579 esac 11580 11581 if test "x$lt_cv_dlopen" != xno; then 11582 enable_dlopen=yes 11583 else 11584 enable_dlopen=no 11585 fi 11586 11587 case $lt_cv_dlopen in 11588 dlopen) 11589 save_CPPFLAGS="$CPPFLAGS" 11590 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11591 11592 save_LDFLAGS="$LDFLAGS" 11593 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11594 11595 save_LIBS="$LIBS" 11596 LIBS="$lt_cv_dlopen_libs $LIBS" 11597 11598 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11599$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11600if test "${lt_cv_dlopen_self+set}" = set; then 11601 $as_echo_n "(cached) " >&6 11602else 11603 if test "$cross_compiling" = yes; then : 11604 lt_cv_dlopen_self=cross 11605else 11606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11607 lt_status=$lt_dlunknown 11608 cat > conftest.$ac_ext <<_LT_EOF 11609#line 11609 "configure" 11610#include "confdefs.h" 11611 11612#if HAVE_DLFCN_H 11613#include <dlfcn.h> 11614#endif 11615 11616#include <stdio.h> 11617 11618#ifdef RTLD_GLOBAL 11619# define LT_DLGLOBAL RTLD_GLOBAL 11620#else 11621# ifdef DL_GLOBAL 11622# define LT_DLGLOBAL DL_GLOBAL 11623# else 11624# define LT_DLGLOBAL 0 11625# endif 11626#endif 11627 11628/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11629 find out it does not work in some platform. */ 11630#ifndef LT_DLLAZY_OR_NOW 11631# ifdef RTLD_LAZY 11632# define LT_DLLAZY_OR_NOW RTLD_LAZY 11633# else 11634# ifdef DL_LAZY 11635# define LT_DLLAZY_OR_NOW DL_LAZY 11636# else 11637# ifdef RTLD_NOW 11638# define LT_DLLAZY_OR_NOW RTLD_NOW 11639# else 11640# ifdef DL_NOW 11641# define LT_DLLAZY_OR_NOW DL_NOW 11642# else 11643# define LT_DLLAZY_OR_NOW 0 11644# endif 11645# endif 11646# endif 11647# endif 11648#endif 11649 11650void fnord() { int i=42;} 11651int main () 11652{ 11653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11654 int status = $lt_dlunknown; 11655 11656 if (self) 11657 { 11658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11659 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11660 /* dlclose (self); */ 11661 } 11662 else 11663 puts (dlerror ()); 11664 11665 return status; 11666} 11667_LT_EOF 11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11669 (eval $ac_link) 2>&5 11670 ac_status=$? 11671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11672 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11673 (./conftest; exit; ) >&5 2>/dev/null 11674 lt_status=$? 11675 case x$lt_status in 11676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11679 esac 11680 else : 11681 # compilation failed 11682 lt_cv_dlopen_self=no 11683 fi 11684fi 11685rm -fr conftest* 11686 11687 11688fi 11689{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11690$as_echo "$lt_cv_dlopen_self" >&6; } 11691 11692 if test "x$lt_cv_dlopen_self" = xyes; then 11693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11694 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11695$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11696if test "${lt_cv_dlopen_self_static+set}" = set; then 11697 $as_echo_n "(cached) " >&6 11698else 11699 if test "$cross_compiling" = yes; then : 11700 lt_cv_dlopen_self_static=cross 11701else 11702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11703 lt_status=$lt_dlunknown 11704 cat > conftest.$ac_ext <<_LT_EOF 11705#line 11705 "configure" 11706#include "confdefs.h" 11707 11708#if HAVE_DLFCN_H 11709#include <dlfcn.h> 11710#endif 11711 11712#include <stdio.h> 11713 11714#ifdef RTLD_GLOBAL 11715# define LT_DLGLOBAL RTLD_GLOBAL 11716#else 11717# ifdef DL_GLOBAL 11718# define LT_DLGLOBAL DL_GLOBAL 11719# else 11720# define LT_DLGLOBAL 0 11721# endif 11722#endif 11723 11724/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11725 find out it does not work in some platform. */ 11726#ifndef LT_DLLAZY_OR_NOW 11727# ifdef RTLD_LAZY 11728# define LT_DLLAZY_OR_NOW RTLD_LAZY 11729# else 11730# ifdef DL_LAZY 11731# define LT_DLLAZY_OR_NOW DL_LAZY 11732# else 11733# ifdef RTLD_NOW 11734# define LT_DLLAZY_OR_NOW RTLD_NOW 11735# else 11736# ifdef DL_NOW 11737# define LT_DLLAZY_OR_NOW DL_NOW 11738# else 11739# define LT_DLLAZY_OR_NOW 0 11740# endif 11741# endif 11742# endif 11743# endif 11744#endif 11745 11746void fnord() { int i=42;} 11747int main () 11748{ 11749 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11750 int status = $lt_dlunknown; 11751 11752 if (self) 11753 { 11754 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11755 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11756 /* dlclose (self); */ 11757 } 11758 else 11759 puts (dlerror ()); 11760 11761 return status; 11762} 11763_LT_EOF 11764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11765 (eval $ac_link) 2>&5 11766 ac_status=$? 11767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11768 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11769 (./conftest; exit; ) >&5 2>/dev/null 11770 lt_status=$? 11771 case x$lt_status in 11772 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11773 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11774 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11775 esac 11776 else : 11777 # compilation failed 11778 lt_cv_dlopen_self_static=no 11779 fi 11780fi 11781rm -fr conftest* 11782 11783 11784fi 11785{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11786$as_echo "$lt_cv_dlopen_self_static" >&6; } 11787 fi 11788 11789 CPPFLAGS="$save_CPPFLAGS" 11790 LDFLAGS="$save_LDFLAGS" 11791 LIBS="$save_LIBS" 11792 ;; 11793 esac 11794 11795 case $lt_cv_dlopen_self in 11796 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11797 *) enable_dlopen_self=unknown ;; 11798 esac 11799 11800 case $lt_cv_dlopen_self_static in 11801 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11802 *) enable_dlopen_self_static=unknown ;; 11803 esac 11804fi 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822striplib= 11823old_striplib= 11824{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11825$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11826if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11827 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11828 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11829 { $as_echo "$as_me:$LINENO: result: yes" >&5 11830$as_echo "yes" >&6; } 11831else 11832# FIXME - insert some real tests, host_os isn't really good enough 11833 case $host_os in 11834 darwin*) 11835 if test -n "$STRIP" ; then 11836 striplib="$STRIP -x" 11837 old_striplib="$STRIP -S" 11838 { $as_echo "$as_me:$LINENO: result: yes" >&5 11839$as_echo "yes" >&6; } 11840 else 11841 { $as_echo "$as_me:$LINENO: result: no" >&5 11842$as_echo "no" >&6; } 11843 fi 11844 ;; 11845 *) 11846 { $as_echo "$as_me:$LINENO: result: no" >&5 11847$as_echo "no" >&6; } 11848 ;; 11849 esac 11850fi 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 # Report which library types will actually be built 11864 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11865$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11866 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11867$as_echo "$can_build_shared" >&6; } 11868 11869 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11870$as_echo_n "checking whether to build shared libraries... " >&6; } 11871 test "$can_build_shared" = "no" && enable_shared=no 11872 11873 # On AIX, shared libraries and static libraries use the same namespace, and 11874 # are all built from PIC. 11875 case $host_os in 11876 aix3*) 11877 test "$enable_shared" = yes && enable_static=no 11878 if test -n "$RANLIB"; then 11879 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11880 postinstall_cmds='$RANLIB $lib' 11881 fi 11882 ;; 11883 11884 aix[4-9]*) 11885 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11886 test "$enable_shared" = yes && enable_static=no 11887 fi 11888 ;; 11889 esac 11890 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11891$as_echo "$enable_shared" >&6; } 11892 11893 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11894$as_echo_n "checking whether to build static libraries... " >&6; } 11895 # Make sure either enable_shared or enable_static is yes. 11896 test "$enable_shared" = yes || enable_static=yes 11897 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11898$as_echo "$enable_static" >&6; } 11899 11900 11901 11902 11903fi 11904ac_ext=c 11905ac_cpp='$CPP $CPPFLAGS' 11906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11908ac_compiler_gnu=$ac_cv_c_compiler_gnu 11909 11910CC="$lt_save_CC" 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 ac_config_commands="$ac_config_commands libtool" 11925 11926 11927 11928 11929# Only expand once: 11930 11931 11932ac_ext=c 11933ac_cpp='$CPP $CPPFLAGS' 11934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11936ac_compiler_gnu=$ac_cv_c_compiler_gnu 11937if test -n "$ac_tool_prefix"; then 11938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11939set dummy ${ac_tool_prefix}gcc; ac_word=$2 11940{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11941$as_echo_n "checking for $ac_word... " >&6; } 11942if test "${ac_cv_prog_CC+set}" = set; then 11943 $as_echo_n "(cached) " >&6 11944else 11945 if test -n "$CC"; then 11946 ac_cv_prog_CC="$CC" # Let the user override the test. 11947else 11948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11949for as_dir in $PATH 11950do 11951 IFS=$as_save_IFS 11952 test -z "$as_dir" && as_dir=. 11953 for ac_exec_ext in '' $ac_executable_extensions; do 11954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11955 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11957 break 2 11958 fi 11959done 11960done 11961IFS=$as_save_IFS 11962 11963fi 11964fi 11965CC=$ac_cv_prog_CC 11966if test -n "$CC"; then 11967 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11968$as_echo "$CC" >&6; } 11969else 11970 { $as_echo "$as_me:$LINENO: result: no" >&5 11971$as_echo "no" >&6; } 11972fi 11973 11974 11975fi 11976if test -z "$ac_cv_prog_CC"; then 11977 ac_ct_CC=$CC 11978 # Extract the first word of "gcc", so it can be a program name with args. 11979set dummy gcc; ac_word=$2 11980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11981$as_echo_n "checking for $ac_word... " >&6; } 11982if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11983 $as_echo_n "(cached) " >&6 11984else 11985 if test -n "$ac_ct_CC"; then 11986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11987else 11988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11989for as_dir in $PATH 11990do 11991 IFS=$as_save_IFS 11992 test -z "$as_dir" && as_dir=. 11993 for ac_exec_ext in '' $ac_executable_extensions; do 11994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11995 ac_cv_prog_ac_ct_CC="gcc" 11996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11997 break 2 11998 fi 11999done 12000done 12001IFS=$as_save_IFS 12002 12003fi 12004fi 12005ac_ct_CC=$ac_cv_prog_ac_ct_CC 12006if test -n "$ac_ct_CC"; then 12007 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 12008$as_echo "$ac_ct_CC" >&6; } 12009else 12010 { $as_echo "$as_me:$LINENO: result: no" >&5 12011$as_echo "no" >&6; } 12012fi 12013 12014 if test "x$ac_ct_CC" = x; then 12015 CC="" 12016 else 12017 case $cross_compiling:$ac_tool_warned in 12018yes:) 12019{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12021ac_tool_warned=yes ;; 12022esac 12023 CC=$ac_ct_CC 12024 fi 12025else 12026 CC="$ac_cv_prog_CC" 12027fi 12028 12029if test -z "$CC"; then 12030 if test -n "$ac_tool_prefix"; then 12031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12032set dummy ${ac_tool_prefix}cc; ac_word=$2 12033{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12034$as_echo_n "checking for $ac_word... " >&6; } 12035if test "${ac_cv_prog_CC+set}" = set; then 12036 $as_echo_n "(cached) " >&6 12037else 12038 if test -n "$CC"; then 12039 ac_cv_prog_CC="$CC" # Let the user override the test. 12040else 12041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12042for as_dir in $PATH 12043do 12044 IFS=$as_save_IFS 12045 test -z "$as_dir" && as_dir=. 12046 for ac_exec_ext in '' $ac_executable_extensions; do 12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12048 ac_cv_prog_CC="${ac_tool_prefix}cc" 12049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12050 break 2 12051 fi 12052done 12053done 12054IFS=$as_save_IFS 12055 12056fi 12057fi 12058CC=$ac_cv_prog_CC 12059if test -n "$CC"; then 12060 { $as_echo "$as_me:$LINENO: result: $CC" >&5 12061$as_echo "$CC" >&6; } 12062else 12063 { $as_echo "$as_me:$LINENO: result: no" >&5 12064$as_echo "no" >&6; } 12065fi 12066 12067 12068 fi 12069fi 12070if test -z "$CC"; then 12071 # Extract the first word of "cc", so it can be a program name with args. 12072set dummy cc; ac_word=$2 12073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12074$as_echo_n "checking for $ac_word... " >&6; } 12075if test "${ac_cv_prog_CC+set}" = set; then 12076 $as_echo_n "(cached) " >&6 12077else 12078 if test -n "$CC"; then 12079 ac_cv_prog_CC="$CC" # Let the user override the test. 12080else 12081 ac_prog_rejected=no 12082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12083for as_dir in $PATH 12084do 12085 IFS=$as_save_IFS 12086 test -z "$as_dir" && as_dir=. 12087 for ac_exec_ext in '' $ac_executable_extensions; do 12088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12090 ac_prog_rejected=yes 12091 continue 12092 fi 12093 ac_cv_prog_CC="cc" 12094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12095 break 2 12096 fi 12097done 12098done 12099IFS=$as_save_IFS 12100 12101if test $ac_prog_rejected = yes; then 12102 # We found a bogon in the path, so make sure we never use it. 12103 set dummy $ac_cv_prog_CC 12104 shift 12105 if test $# != 0; then 12106 # We chose a different compiler from the bogus one. 12107 # However, it has the same basename, so the bogon will be chosen 12108 # first if we set CC to just the basename; use the full file name. 12109 shift 12110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12111 fi 12112fi 12113fi 12114fi 12115CC=$ac_cv_prog_CC 12116if test -n "$CC"; then 12117 { $as_echo "$as_me:$LINENO: result: $CC" >&5 12118$as_echo "$CC" >&6; } 12119else 12120 { $as_echo "$as_me:$LINENO: result: no" >&5 12121$as_echo "no" >&6; } 12122fi 12123 12124 12125fi 12126if test -z "$CC"; then 12127 if test -n "$ac_tool_prefix"; then 12128 for ac_prog in cl.exe 12129 do 12130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12131set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12133$as_echo_n "checking for $ac_word... " >&6; } 12134if test "${ac_cv_prog_CC+set}" = set; then 12135 $as_echo_n "(cached) " >&6 12136else 12137 if test -n "$CC"; then 12138 ac_cv_prog_CC="$CC" # Let the user override the test. 12139else 12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12141for as_dir in $PATH 12142do 12143 IFS=$as_save_IFS 12144 test -z "$as_dir" && as_dir=. 12145 for ac_exec_ext in '' $ac_executable_extensions; do 12146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12149 break 2 12150 fi 12151done 12152done 12153IFS=$as_save_IFS 12154 12155fi 12156fi 12157CC=$ac_cv_prog_CC 12158if test -n "$CC"; then 12159 { $as_echo "$as_me:$LINENO: result: $CC" >&5 12160$as_echo "$CC" >&6; } 12161else 12162 { $as_echo "$as_me:$LINENO: result: no" >&5 12163$as_echo "no" >&6; } 12164fi 12165 12166 12167 test -n "$CC" && break 12168 done 12169fi 12170if test -z "$CC"; then 12171 ac_ct_CC=$CC 12172 for ac_prog in cl.exe 12173do 12174 # Extract the first word of "$ac_prog", so it can be a program name with args. 12175set dummy $ac_prog; ac_word=$2 12176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12177$as_echo_n "checking for $ac_word... " >&6; } 12178if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 12179 $as_echo_n "(cached) " >&6 12180else 12181 if test -n "$ac_ct_CC"; then 12182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12183else 12184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12185for as_dir in $PATH 12186do 12187 IFS=$as_save_IFS 12188 test -z "$as_dir" && as_dir=. 12189 for ac_exec_ext in '' $ac_executable_extensions; do 12190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12191 ac_cv_prog_ac_ct_CC="$ac_prog" 12192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12193 break 2 12194 fi 12195done 12196done 12197IFS=$as_save_IFS 12198 12199fi 12200fi 12201ac_ct_CC=$ac_cv_prog_ac_ct_CC 12202if test -n "$ac_ct_CC"; then 12203 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 12204$as_echo "$ac_ct_CC" >&6; } 12205else 12206 { $as_echo "$as_me:$LINENO: result: no" >&5 12207$as_echo "no" >&6; } 12208fi 12209 12210 12211 test -n "$ac_ct_CC" && break 12212done 12213 12214 if test "x$ac_ct_CC" = x; then 12215 CC="" 12216 else 12217 case $cross_compiling:$ac_tool_warned in 12218yes:) 12219{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12221ac_tool_warned=yes ;; 12222esac 12223 CC=$ac_ct_CC 12224 fi 12225fi 12226 12227fi 12228 12229 12230test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12232{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 12233See \`config.log' for more details." >&5 12234$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 12235See \`config.log' for more details." >&2;} 12236 { (exit 1); exit 1; }; }; } 12237 12238# Provide some information about the compiler. 12239$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 12240set X $ac_compile 12241ac_compiler=$2 12242{ (ac_try="$ac_compiler --version >&5" 12243case "(($ac_try" in 12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12245 *) ac_try_echo=$ac_try;; 12246esac 12247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12248$as_echo "$ac_try_echo") >&5 12249 (eval "$ac_compiler --version >&5") 2>&5 12250 ac_status=$? 12251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12252 (exit $ac_status); } 12253{ (ac_try="$ac_compiler -v >&5" 12254case "(($ac_try" in 12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12256 *) ac_try_echo=$ac_try;; 12257esac 12258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12259$as_echo "$ac_try_echo") >&5 12260 (eval "$ac_compiler -v >&5") 2>&5 12261 ac_status=$? 12262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12263 (exit $ac_status); } 12264{ (ac_try="$ac_compiler -V >&5" 12265case "(($ac_try" in 12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12267 *) ac_try_echo=$ac_try;; 12268esac 12269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12270$as_echo "$ac_try_echo") >&5 12271 (eval "$ac_compiler -V >&5") 2>&5 12272 ac_status=$? 12273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12274 (exit $ac_status); } 12275 12276{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 12277$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12278if test "${ac_cv_c_compiler_gnu+set}" = set; then 12279 $as_echo_n "(cached) " >&6 12280else 12281 cat >conftest.$ac_ext <<_ACEOF 12282/* confdefs.h. */ 12283_ACEOF 12284cat confdefs.h >>conftest.$ac_ext 12285cat >>conftest.$ac_ext <<_ACEOF 12286/* end confdefs.h. */ 12287 12288int 12289main () 12290{ 12291#ifndef __GNUC__ 12292 choke me 12293#endif 12294 12295 ; 12296 return 0; 12297} 12298_ACEOF 12299rm -f conftest.$ac_objext 12300if { (ac_try="$ac_compile" 12301case "(($ac_try" in 12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12303 *) ac_try_echo=$ac_try;; 12304esac 12305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12306$as_echo "$ac_try_echo") >&5 12307 (eval "$ac_compile") 2>conftest.er1 12308 ac_status=$? 12309 grep -v '^ *+' conftest.er1 >conftest.err 12310 rm -f conftest.er1 12311 cat conftest.err >&5 12312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12313 (exit $ac_status); } && { 12314 test -z "$ac_c_werror_flag" || 12315 test ! -s conftest.err 12316 } && test -s conftest.$ac_objext; then 12317 ac_compiler_gnu=yes 12318else 12319 $as_echo "$as_me: failed program was:" >&5 12320sed 's/^/| /' conftest.$ac_ext >&5 12321 12322 ac_compiler_gnu=no 12323fi 12324 12325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12326ac_cv_c_compiler_gnu=$ac_compiler_gnu 12327 12328fi 12329{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 12330$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12331if test $ac_compiler_gnu = yes; then 12332 GCC=yes 12333else 12334 GCC= 12335fi 12336ac_test_CFLAGS=${CFLAGS+set} 12337ac_save_CFLAGS=$CFLAGS 12338{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 12339$as_echo_n "checking whether $CC accepts -g... " >&6; } 12340if test "${ac_cv_prog_cc_g+set}" = set; then 12341 $as_echo_n "(cached) " >&6 12342else 12343 ac_save_c_werror_flag=$ac_c_werror_flag 12344 ac_c_werror_flag=yes 12345 ac_cv_prog_cc_g=no 12346 CFLAGS="-g" 12347 cat >conftest.$ac_ext <<_ACEOF 12348/* confdefs.h. */ 12349_ACEOF 12350cat confdefs.h >>conftest.$ac_ext 12351cat >>conftest.$ac_ext <<_ACEOF 12352/* end confdefs.h. */ 12353 12354int 12355main () 12356{ 12357 12358 ; 12359 return 0; 12360} 12361_ACEOF 12362rm -f conftest.$ac_objext 12363if { (ac_try="$ac_compile" 12364case "(($ac_try" in 12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12366 *) ac_try_echo=$ac_try;; 12367esac 12368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12369$as_echo "$ac_try_echo") >&5 12370 (eval "$ac_compile") 2>conftest.er1 12371 ac_status=$? 12372 grep -v '^ *+' conftest.er1 >conftest.err 12373 rm -f conftest.er1 12374 cat conftest.err >&5 12375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12376 (exit $ac_status); } && { 12377 test -z "$ac_c_werror_flag" || 12378 test ! -s conftest.err 12379 } && test -s conftest.$ac_objext; then 12380 ac_cv_prog_cc_g=yes 12381else 12382 $as_echo "$as_me: failed program was:" >&5 12383sed 's/^/| /' conftest.$ac_ext >&5 12384 12385 CFLAGS="" 12386 cat >conftest.$ac_ext <<_ACEOF 12387/* confdefs.h. */ 12388_ACEOF 12389cat confdefs.h >>conftest.$ac_ext 12390cat >>conftest.$ac_ext <<_ACEOF 12391/* end confdefs.h. */ 12392 12393int 12394main () 12395{ 12396 12397 ; 12398 return 0; 12399} 12400_ACEOF 12401rm -f conftest.$ac_objext 12402if { (ac_try="$ac_compile" 12403case "(($ac_try" in 12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12405 *) ac_try_echo=$ac_try;; 12406esac 12407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12408$as_echo "$ac_try_echo") >&5 12409 (eval "$ac_compile") 2>conftest.er1 12410 ac_status=$? 12411 grep -v '^ *+' conftest.er1 >conftest.err 12412 rm -f conftest.er1 12413 cat conftest.err >&5 12414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12415 (exit $ac_status); } && { 12416 test -z "$ac_c_werror_flag" || 12417 test ! -s conftest.err 12418 } && test -s conftest.$ac_objext; then 12419 : 12420else 12421 $as_echo "$as_me: failed program was:" >&5 12422sed 's/^/| /' conftest.$ac_ext >&5 12423 12424 ac_c_werror_flag=$ac_save_c_werror_flag 12425 CFLAGS="-g" 12426 cat >conftest.$ac_ext <<_ACEOF 12427/* confdefs.h. */ 12428_ACEOF 12429cat confdefs.h >>conftest.$ac_ext 12430cat >>conftest.$ac_ext <<_ACEOF 12431/* end confdefs.h. */ 12432 12433int 12434main () 12435{ 12436 12437 ; 12438 return 0; 12439} 12440_ACEOF 12441rm -f conftest.$ac_objext 12442if { (ac_try="$ac_compile" 12443case "(($ac_try" in 12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12445 *) ac_try_echo=$ac_try;; 12446esac 12447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12448$as_echo "$ac_try_echo") >&5 12449 (eval "$ac_compile") 2>conftest.er1 12450 ac_status=$? 12451 grep -v '^ *+' conftest.er1 >conftest.err 12452 rm -f conftest.er1 12453 cat conftest.err >&5 12454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12455 (exit $ac_status); } && { 12456 test -z "$ac_c_werror_flag" || 12457 test ! -s conftest.err 12458 } && test -s conftest.$ac_objext; then 12459 ac_cv_prog_cc_g=yes 12460else 12461 $as_echo "$as_me: failed program was:" >&5 12462sed 's/^/| /' conftest.$ac_ext >&5 12463 12464 12465fi 12466 12467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12468fi 12469 12470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12471fi 12472 12473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12474 ac_c_werror_flag=$ac_save_c_werror_flag 12475fi 12476{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 12477$as_echo "$ac_cv_prog_cc_g" >&6; } 12478if test "$ac_test_CFLAGS" = set; then 12479 CFLAGS=$ac_save_CFLAGS 12480elif test $ac_cv_prog_cc_g = yes; then 12481 if test "$GCC" = yes; then 12482 CFLAGS="-g -O2" 12483 else 12484 CFLAGS="-g" 12485 fi 12486else 12487 if test "$GCC" = yes; then 12488 CFLAGS="-O2" 12489 else 12490 CFLAGS= 12491 fi 12492fi 12493{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 12494$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12495if test "${ac_cv_prog_cc_c89+set}" = set; then 12496 $as_echo_n "(cached) " >&6 12497else 12498 ac_cv_prog_cc_c89=no 12499ac_save_CC=$CC 12500cat >conftest.$ac_ext <<_ACEOF 12501/* confdefs.h. */ 12502_ACEOF 12503cat confdefs.h >>conftest.$ac_ext 12504cat >>conftest.$ac_ext <<_ACEOF 12505/* end confdefs.h. */ 12506#include <stdarg.h> 12507#include <stdio.h> 12508#include <sys/types.h> 12509#include <sys/stat.h> 12510/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12511struct buf { int x; }; 12512FILE * (*rcsopen) (struct buf *, struct stat *, int); 12513static char *e (p, i) 12514 char **p; 12515 int i; 12516{ 12517 return p[i]; 12518} 12519static char *f (char * (*g) (char **, int), char **p, ...) 12520{ 12521 char *s; 12522 va_list v; 12523 va_start (v,p); 12524 s = g (p, va_arg (v,int)); 12525 va_end (v); 12526 return s; 12527} 12528 12529/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12530 function prototypes and stuff, but not '\xHH' hex character constants. 12531 These don't provoke an error unfortunately, instead are silently treated 12532 as 'x'. The following induces an error, until -std is added to get 12533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12534 array size at least. It's necessary to write '\x00'==0 to get something 12535 that's true only with -std. */ 12536int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12537 12538/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12539 inside strings and character constants. */ 12540#define FOO(x) 'x' 12541int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12542 12543int test (int i, double x); 12544struct s1 {int (*f) (int a);}; 12545struct s2 {int (*f) (double a);}; 12546int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12547int argc; 12548char **argv; 12549int 12550main () 12551{ 12552return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12553 ; 12554 return 0; 12555} 12556_ACEOF 12557for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12559do 12560 CC="$ac_save_CC $ac_arg" 12561 rm -f conftest.$ac_objext 12562if { (ac_try="$ac_compile" 12563case "(($ac_try" in 12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12565 *) ac_try_echo=$ac_try;; 12566esac 12567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12568$as_echo "$ac_try_echo") >&5 12569 (eval "$ac_compile") 2>conftest.er1 12570 ac_status=$? 12571 grep -v '^ *+' conftest.er1 >conftest.err 12572 rm -f conftest.er1 12573 cat conftest.err >&5 12574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12575 (exit $ac_status); } && { 12576 test -z "$ac_c_werror_flag" || 12577 test ! -s conftest.err 12578 } && test -s conftest.$ac_objext; then 12579 ac_cv_prog_cc_c89=$ac_arg 12580else 12581 $as_echo "$as_me: failed program was:" >&5 12582sed 's/^/| /' conftest.$ac_ext >&5 12583 12584 12585fi 12586 12587rm -f core conftest.err conftest.$ac_objext 12588 test "x$ac_cv_prog_cc_c89" != "xno" && break 12589done 12590rm -f conftest.$ac_ext 12591CC=$ac_save_CC 12592 12593fi 12594# AC_CACHE_VAL 12595case "x$ac_cv_prog_cc_c89" in 12596 x) 12597 { $as_echo "$as_me:$LINENO: result: none needed" >&5 12598$as_echo "none needed" >&6; } ;; 12599 xno) 12600 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 12601$as_echo "unsupported" >&6; } ;; 12602 *) 12603 CC="$CC $ac_cv_prog_cc_c89" 12604 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 12605$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12606esac 12607 12608 12609ac_ext=c 12610ac_cpp='$CPP $CPPFLAGS' 12611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12613ac_compiler_gnu=$ac_cv_c_compiler_gnu 12614 12615depcc="$CC" am_compiler_list= 12616 12617{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 12618$as_echo_n "checking dependency style of $depcc... " >&6; } 12619if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 12620 $as_echo_n "(cached) " >&6 12621else 12622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12623 # We make a subdir and do the tests there. Otherwise we can end up 12624 # making bogus files that we don't know about and never remove. For 12625 # instance it was reported that on HP-UX the gcc test will end up 12626 # making a dummy file named `D' -- because `-MD' means `put the output 12627 # in D'. 12628 mkdir conftest.dir 12629 # Copy depcomp to subdir because otherwise we won't find it if we're 12630 # using a relative directory. 12631 cp "$am_depcomp" conftest.dir 12632 cd conftest.dir 12633 # We will build objects and dependencies in a subdirectory because 12634 # it helps to detect inapplicable dependency modes. For instance 12635 # both Tru64's cc and ICC support -MD to output dependencies as a 12636 # side effect of compilation, but ICC will put the dependencies in 12637 # the current directory while Tru64 will put them in the object 12638 # directory. 12639 mkdir sub 12640 12641 am_cv_CC_dependencies_compiler_type=none 12642 if test "$am_compiler_list" = ""; then 12643 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12644 fi 12645 am__universal=false 12646 case " $depcc " in #( 12647 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12648 esac 12649 12650 for depmode in $am_compiler_list; do 12651 # Setup a source with many dependencies, because some compilers 12652 # like to wrap large dependency lists on column 80 (with \), and 12653 # we should not choose a depcomp mode which is confused by this. 12654 # 12655 # We need to recreate these files for each test, as the compiler may 12656 # overwrite some of them when testing with obscure command lines. 12657 # This happens at least with the AIX C compiler. 12658 : > sub/conftest.c 12659 for i in 1 2 3 4 5 6; do 12660 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12661 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12662 # Solaris 8's {/usr,}/bin/sh. 12663 touch sub/conftst$i.h 12664 done 12665 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12666 12667 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12668 # mode. It turns out that the SunPro C++ compiler does not properly 12669 # handle `-M -o', and we need to detect this. Also, some Intel 12670 # versions had trouble with output in subdirs 12671 am__obj=sub/conftest.${OBJEXT-o} 12672 am__minus_obj="-o $am__obj" 12673 case $depmode in 12674 gcc) 12675 # This depmode causes a compiler race in universal mode. 12676 test "$am__universal" = false || continue 12677 ;; 12678 nosideeffect) 12679 # after this tag, mechanisms are not by side-effect, so they'll 12680 # only be used when explicitly requested 12681 if test "x$enable_dependency_tracking" = xyes; then 12682 continue 12683 else 12684 break 12685 fi 12686 ;; 12687 msvisualcpp | msvcmsys) 12688 # This compiler won't grok `-c -o', but also, the minuso test has 12689 # not run yet. These depmodes are late enough in the game, and 12690 # so weak that their functioning should not be impacted. 12691 am__obj=conftest.${OBJEXT-o} 12692 am__minus_obj= 12693 ;; 12694 none) break ;; 12695 esac 12696 if depmode=$depmode \ 12697 source=sub/conftest.c object=$am__obj \ 12698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12699 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12700 >/dev/null 2>conftest.err && 12701 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12702 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12703 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12704 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12705 # icc doesn't choke on unknown options, it will just issue warnings 12706 # or remarks (even with -Werror). So we grep stderr for any message 12707 # that says an option was ignored or not supported. 12708 # When given -MP, icc 7.0 and 7.1 complain thusly: 12709 # icc: Command line warning: ignoring option '-M'; no argument required 12710 # The diagnosis changed in icc 8.0: 12711 # icc: Command line remark: option '-MP' not supported 12712 if (grep 'ignoring option' conftest.err || 12713 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12714 am_cv_CC_dependencies_compiler_type=$depmode 12715 break 12716 fi 12717 fi 12718 done 12719 12720 cd .. 12721 rm -rf conftest.dir 12722else 12723 am_cv_CC_dependencies_compiler_type=none 12724fi 12725 12726fi 12727{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 12728$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12729CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12730 12731 if 12732 test "x$enable_dependency_tracking" != xno \ 12733 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12734 am__fastdepCC_TRUE= 12735 am__fastdepCC_FALSE='#' 12736else 12737 am__fastdepCC_TRUE='#' 12738 am__fastdepCC_FALSE= 12739fi 12740 12741 12742{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 12743$as_echo_n "checking for a sed that does not truncate output... " >&6; } 12744if test "${ac_cv_path_SED+set}" = set; then 12745 $as_echo_n "(cached) " >&6 12746else 12747 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12748 for ac_i in 1 2 3 4 5 6 7; do 12749 ac_script="$ac_script$as_nl$ac_script" 12750 done 12751 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12752 $as_unset ac_script || ac_script= 12753 if test -z "$SED"; then 12754 ac_path_SED_found=false 12755 # Loop through the user's path and test for each of PROGNAME-LIST 12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12757for as_dir in $PATH 12758do 12759 IFS=$as_save_IFS 12760 test -z "$as_dir" && as_dir=. 12761 for ac_prog in sed gsed; do 12762 for ac_exec_ext in '' $ac_executable_extensions; do 12763 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12764 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 12765# Check for GNU ac_path_SED and select it if it is found. 12766 # Check for GNU $ac_path_SED 12767case `"$ac_path_SED" --version 2>&1` in 12768*GNU*) 12769 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12770*) 12771 ac_count=0 12772 $as_echo_n 0123456789 >"conftest.in" 12773 while : 12774 do 12775 cat "conftest.in" "conftest.in" >"conftest.tmp" 12776 mv "conftest.tmp" "conftest.in" 12777 cp "conftest.in" "conftest.nl" 12778 $as_echo '' >> "conftest.nl" 12779 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12781 ac_count=`expr $ac_count + 1` 12782 if test $ac_count -gt ${ac_path_SED_max-0}; then 12783 # Best one so far, save it but keep looking for a better one 12784 ac_cv_path_SED="$ac_path_SED" 12785 ac_path_SED_max=$ac_count 12786 fi 12787 # 10*(2^10) chars as input seems more than enough 12788 test $ac_count -gt 10 && break 12789 done 12790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12791esac 12792 12793 $ac_path_SED_found && break 3 12794 done 12795 done 12796done 12797IFS=$as_save_IFS 12798 if test -z "$ac_cv_path_SED"; then 12799 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 12800$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 12801 { (exit 1); exit 1; }; } 12802 fi 12803else 12804 ac_cv_path_SED=$SED 12805fi 12806 12807fi 12808{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 12809$as_echo "$ac_cv_path_SED" >&6; } 12810 SED="$ac_cv_path_SED" 12811 rm -f conftest.sed 12812 12813 12814 12815 12816 12817 12818# Check whether --with-xorg-module-dir was given. 12819if test "${with_xorg_module_dir+set}" = set; then 12820 withval=$with_xorg_module_dir; moduledir="$withval" 12821else 12822 moduledir="$libdir/xorg/modules" 12823fi 12824 12825inputdir=${moduledir}/input 12826 12827 12828 12829# Check whether --with-xorg-conf-dir was given. 12830if test "${with_xorg_conf_dir+set}" = set; then 12831 withval=$with_xorg_conf_dir; XORG_CONF_DIR="$withval" 12832else 12833 XORG_CONF_DIR="`$PKG_CONFIG --variable=sysconfigdir xorg-server`" 12834fi 12835 12836 12837 if test "x$XORG_CONF_DIR" != "x" && test "x$XORG_CONF_DIR" != "xno"; then 12838 HAS_XORG_CONF_DIR_TRUE= 12839 HAS_XORG_CONF_DIR_FALSE='#' 12840else 12841 HAS_XORG_CONF_DIR_TRUE='#' 12842 HAS_XORG_CONF_DIR_FALSE= 12843fi 12844 12845 12846 12847# Check whether --with-hal-bin-dir was given. 12848if test "${with_hal_bin_dir+set}" = set; then 12849 withval=$with_hal_bin_dir; halbindir="$withval" 12850else 12851 halbindir="$bindir" 12852fi 12853 12854HAL_BIN_DIR=${halbindir} 12855 12856 12857 12858# Check whether --with-hal-callouts-dir was given. 12859if test "${with_hal_callouts_dir+set}" = set; then 12860 withval=$with_hal_callouts_dir; halcalloutsdir="$withval" 12861else 12862 halcalloutsdir="$libdir/hal" 12863fi 12864 12865HAL_CALLOUTS_DIR=${halcalloutsdir} 12866 12867 12868 12869# Check whether --with-hal-fdi-dir was given. 12870if test "${with_hal_fdi_dir+set}" = set; then 12871 withval=$with_hal_fdi_dir; halfdidir="$withval" 12872else 12873 halfdidir="$datadir/hal/fdi/policy/20thirdparty" 12874fi 12875 12876HAL_FDI_DIR=${halfdidir} 12877 12878 12879case $host_os in 12880 linux*) 12881 if test "x$prefix" = "xNONE" -o "x$prefix" = "x/usr" -o "x$prefix" = "x/usr/local" ; then 12882 slashlibdir=/lib 12883 else 12884 slashlibdir=$prefix/lib 12885 fi 12886 UDEV_RULES_DIR=$slashlibdir/udev/rules.d 12887 ;; 12888 *) 12889 UDEV_RULES_DIR=no 12890 ;; 12891esac 12892 12893 12894# Check whether --with-udev-rules-dir was given. 12895if test "${with_udev_rules_dir+set}" = set; then 12896 withval=$with_udev_rules_dir; UDEV_RULES_DIR="$withval" 12897fi 12898 12899 12900 if test "x$UDEV_RULES_DIR" != "xno"; then 12901 HAS_UDEV_RULES_DIR_TRUE= 12902 HAS_UDEV_RULES_DIR_FALSE='#' 12903else 12904 HAS_UDEV_RULES_DIR_TRUE='#' 12905 HAS_UDEV_RULES_DIR_FALSE= 12906fi 12907 12908 12909# Checks for extensions 12910 12911 12912 SAVE_CFLAGS="$CFLAGS" 12913 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12914 cat >conftest.$ac_ext <<_ACEOF 12915/* confdefs.h. */ 12916_ACEOF 12917cat confdefs.h >>conftest.$ac_ext 12918cat >>conftest.$ac_ext <<_ACEOF 12919/* end confdefs.h. */ 12920 12921#include "xorg-server.h" 12922#if !defined RANDR 12923#error RANDR not defined 12924#endif 12925 12926int 12927main () 12928{ 12929 12930 ; 12931 return 0; 12932} 12933_ACEOF 12934rm -f conftest.$ac_objext 12935if { (ac_try="$ac_compile" 12936case "(($ac_try" in 12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12938 *) ac_try_echo=$ac_try;; 12939esac 12940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12941$as_echo "$ac_try_echo") >&5 12942 (eval "$ac_compile") 2>conftest.er1 12943 ac_status=$? 12944 grep -v '^ *+' conftest.er1 >conftest.err 12945 rm -f conftest.er1 12946 cat conftest.err >&5 12947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12948 (exit $ac_status); } && { 12949 test -z "$ac_c_werror_flag" || 12950 test ! -s conftest.err 12951 } && test -s conftest.$ac_objext; then 12952 _EXT_CHECK=yes 12953else 12954 $as_echo "$as_me: failed program was:" >&5 12955sed 's/^/| /' conftest.$ac_ext >&5 12956 12957 _EXT_CHECK=no 12958fi 12959 12960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12961 CFLAGS="$SAVE_CFLAGS" 12962 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 12963$as_echo_n "checking if RANDR is defined... " >&6; } 12964 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12965$as_echo "$_EXT_CHECK" >&6; } 12966 if test "$_EXT_CHECK" != no; then 12967 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12968 fi 12969 12970 12971 12972 SAVE_CFLAGS="$CFLAGS" 12973 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12974 cat >conftest.$ac_ext <<_ACEOF 12975/* confdefs.h. */ 12976_ACEOF 12977cat confdefs.h >>conftest.$ac_ext 12978cat >>conftest.$ac_ext <<_ACEOF 12979/* end confdefs.h. */ 12980 12981#include "xorg-server.h" 12982#if !defined XINPUT 12983#error XINPUT not defined 12984#endif 12985 12986int 12987main () 12988{ 12989 12990 ; 12991 return 0; 12992} 12993_ACEOF 12994rm -f conftest.$ac_objext 12995if { (ac_try="$ac_compile" 12996case "(($ac_try" in 12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12998 *) ac_try_echo=$ac_try;; 12999esac 13000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13001$as_echo "$ac_try_echo") >&5 13002 (eval "$ac_compile") 2>conftest.er1 13003 ac_status=$? 13004 grep -v '^ *+' conftest.er1 >conftest.err 13005 rm -f conftest.er1 13006 cat conftest.err >&5 13007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13008 (exit $ac_status); } && { 13009 test -z "$ac_c_werror_flag" || 13010 test ! -s conftest.err 13011 } && test -s conftest.$ac_objext; then 13012 _EXT_CHECK=yes 13013else 13014 $as_echo "$as_me: failed program was:" >&5 13015sed 's/^/| /' conftest.$ac_ext >&5 13016 13017 _EXT_CHECK=no 13018fi 13019 13020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13021 CFLAGS="$SAVE_CFLAGS" 13022 { $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5 13023$as_echo_n "checking if XINPUT is defined... " >&6; } 13024 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 13025$as_echo "$_EXT_CHECK" >&6; } 13026 if test "$_EXT_CHECK" != no; then 13027 REQUIRED_MODULES="$REQUIRED_MODULES inputproto" 13028 fi 13029 13030 13031# Checks for pkg-config packages 13032 13033pkg_failed=no 13034{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 13035$as_echo_n "checking for XORG... " >&6; } 13036 13037if test -n "$XORG_CFLAGS"; then 13038 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 13039 elif test -n "$PKG_CONFIG"; then 13040 if test -n "$PKG_CONFIG" && \ 13041 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\"") >&5 13042 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5 13043 ac_status=$? 13044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13045 (exit $ac_status); }; then 13046 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null` 13047else 13048 pkg_failed=yes 13049fi 13050 else 13051 pkg_failed=untried 13052fi 13053if test -n "$XORG_LIBS"; then 13054 pkg_cv_XORG_LIBS="$XORG_LIBS" 13055 elif test -n "$PKG_CONFIG"; then 13056 if test -n "$PKG_CONFIG" && \ 13057 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\"") >&5 13058 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5 13059 ac_status=$? 13060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13061 (exit $ac_status); }; then 13062 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null` 13063else 13064 pkg_failed=yes 13065fi 13066 else 13067 pkg_failed=untried 13068fi 13069 13070 13071 13072if test $pkg_failed = yes; then 13073 13074if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13075 _pkg_short_errors_supported=yes 13076else 13077 _pkg_short_errors_supported=no 13078fi 13079 if test $_pkg_short_errors_supported = yes; then 13080 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1` 13081 else 13082 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1` 13083 fi 13084 # Put the nasty error message in config.log where it belongs 13085 echo "$XORG_PKG_ERRORS" >&5 13086 13087 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met: 13088 13089$XORG_PKG_ERRORS 13090 13091Consider adjusting the PKG_CONFIG_PATH environment variable if you 13092installed software in a non-standard prefix. 13093 13094Alternatively, you may set the environment variables XORG_CFLAGS 13095and XORG_LIBS to avoid the need to call pkg-config. 13096See the pkg-config man page for more details. 13097" >&5 13098$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met: 13099 13100$XORG_PKG_ERRORS 13101 13102Consider adjusting the PKG_CONFIG_PATH environment variable if you 13103installed software in a non-standard prefix. 13104 13105Alternatively, you may set the environment variables XORG_CFLAGS 13106and XORG_LIBS to avoid the need to call pkg-config. 13107See the pkg-config man page for more details. 13108" >&2;} 13109 { (exit 1); exit 1; }; } 13110elif test $pkg_failed = untried; then 13111 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 13112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13113{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13114is in your PATH or set the PKG_CONFIG environment variable to the full 13115path to pkg-config. 13116 13117Alternatively, you may set the environment variables XORG_CFLAGS 13118and XORG_LIBS to avoid the need to call pkg-config. 13119See the pkg-config man page for more details. 13120 13121To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13122See \`config.log' for more details." >&5 13123$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13124is in your PATH or set the PKG_CONFIG environment variable to the full 13125path to pkg-config. 13126 13127Alternatively, you may set the environment variables XORG_CFLAGS 13128and XORG_LIBS to avoid the need to call pkg-config. 13129See the pkg-config man page for more details. 13130 13131To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13132See \`config.log' for more details." >&2;} 13133 { (exit 1); exit 1; }; }; } 13134else 13135 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 13136 XORG_LIBS=$pkg_cv_XORG_LIBS 13137 { $as_echo "$as_me:$LINENO: result: yes" >&5 13138$as_echo "yes" >&6; } 13139 : 13140fi 13141 13142if test -n "$PKG_CONFIG" && \ 13143 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\"") >&5 13144 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5 13145 ac_status=$? 13146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13147 (exit $ac_status); }; then 13148 13149cat >>confdefs.h <<\_ACEOF 13150#define HAVE_XORG_SERVER_1_1_0 1 13151_ACEOF 13152 13153fi 13154 13155if test -n "$PKG_CONFIG" && \ 13156 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90\"") >&5 13157 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90") 2>&5 13158 ac_status=$? 13159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13160 (exit $ac_status); }; then 13161 13162cat >>confdefs.h <<\_ACEOF 13163#define CALL_CONVERSION_PROC 1 13164_ACEOF 13165 13166fi 13167if test -n "$PKG_CONFIG" && \ 13168 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.0.90\"") >&5 13169 ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.0.90") 2>&5 13170 ac_status=$? 13171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13172 (exit $ac_status); }; then 13173 13174cat >>confdefs.h <<\_ACEOF 13175#define ABS_VALUATOR_AXES 1 13176_ACEOF 13177 13178fi 13179if test -n "$PKG_CONFIG" && \ 13180 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.0\"") >&5 13181 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.0") 2>&5 13182 ac_status=$? 13183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13184 (exit $ac_status); }; then 13185 13186cat >>confdefs.h <<\_ACEOF 13187#define NO_MOUSE_MODULE 1 13188_ACEOF 13189 13190fi 13191 13192# Checks for libraries. 13193 13194# Checks for header files. 13195{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 13196$as_echo_n "checking for ANSI C header files... " >&6; } 13197if test "${ac_cv_header_stdc+set}" = set; then 13198 $as_echo_n "(cached) " >&6 13199else 13200 cat >conftest.$ac_ext <<_ACEOF 13201/* confdefs.h. */ 13202_ACEOF 13203cat confdefs.h >>conftest.$ac_ext 13204cat >>conftest.$ac_ext <<_ACEOF 13205/* end confdefs.h. */ 13206#include <stdlib.h> 13207#include <stdarg.h> 13208#include <string.h> 13209#include <float.h> 13210 13211int 13212main () 13213{ 13214 13215 ; 13216 return 0; 13217} 13218_ACEOF 13219rm -f conftest.$ac_objext 13220if { (ac_try="$ac_compile" 13221case "(($ac_try" in 13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13223 *) ac_try_echo=$ac_try;; 13224esac 13225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13226$as_echo "$ac_try_echo") >&5 13227 (eval "$ac_compile") 2>conftest.er1 13228 ac_status=$? 13229 grep -v '^ *+' conftest.er1 >conftest.err 13230 rm -f conftest.er1 13231 cat conftest.err >&5 13232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13233 (exit $ac_status); } && { 13234 test -z "$ac_c_werror_flag" || 13235 test ! -s conftest.err 13236 } && test -s conftest.$ac_objext; then 13237 ac_cv_header_stdc=yes 13238else 13239 $as_echo "$as_me: failed program was:" >&5 13240sed 's/^/| /' conftest.$ac_ext >&5 13241 13242 ac_cv_header_stdc=no 13243fi 13244 13245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13246 13247if test $ac_cv_header_stdc = yes; then 13248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13249 cat >conftest.$ac_ext <<_ACEOF 13250/* confdefs.h. */ 13251_ACEOF 13252cat confdefs.h >>conftest.$ac_ext 13253cat >>conftest.$ac_ext <<_ACEOF 13254/* end confdefs.h. */ 13255#include <string.h> 13256 13257_ACEOF 13258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13259 $EGREP "memchr" >/dev/null 2>&1; then 13260 : 13261else 13262 ac_cv_header_stdc=no 13263fi 13264rm -f conftest* 13265 13266fi 13267 13268if test $ac_cv_header_stdc = yes; then 13269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13270 cat >conftest.$ac_ext <<_ACEOF 13271/* confdefs.h. */ 13272_ACEOF 13273cat confdefs.h >>conftest.$ac_ext 13274cat >>conftest.$ac_ext <<_ACEOF 13275/* end confdefs.h. */ 13276#include <stdlib.h> 13277 13278_ACEOF 13279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13280 $EGREP "free" >/dev/null 2>&1; then 13281 : 13282else 13283 ac_cv_header_stdc=no 13284fi 13285rm -f conftest* 13286 13287fi 13288 13289if test $ac_cv_header_stdc = yes; then 13290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13291 if test "$cross_compiling" = yes; then 13292 : 13293else 13294 cat >conftest.$ac_ext <<_ACEOF 13295/* confdefs.h. */ 13296_ACEOF 13297cat confdefs.h >>conftest.$ac_ext 13298cat >>conftest.$ac_ext <<_ACEOF 13299/* end confdefs.h. */ 13300#include <ctype.h> 13301#include <stdlib.h> 13302#if ((' ' & 0x0FF) == 0x020) 13303# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13304# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13305#else 13306# define ISLOWER(c) \ 13307 (('a' <= (c) && (c) <= 'i') \ 13308 || ('j' <= (c) && (c) <= 'r') \ 13309 || ('s' <= (c) && (c) <= 'z')) 13310# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13311#endif 13312 13313#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13314int 13315main () 13316{ 13317 int i; 13318 for (i = 0; i < 256; i++) 13319 if (XOR (islower (i), ISLOWER (i)) 13320 || toupper (i) != TOUPPER (i)) 13321 return 2; 13322 return 0; 13323} 13324_ACEOF 13325rm -f conftest$ac_exeext 13326if { (ac_try="$ac_link" 13327case "(($ac_try" in 13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13329 *) ac_try_echo=$ac_try;; 13330esac 13331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13332$as_echo "$ac_try_echo") >&5 13333 (eval "$ac_link") 2>&5 13334 ac_status=$? 13335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13337 { (case "(($ac_try" in 13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13339 *) ac_try_echo=$ac_try;; 13340esac 13341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13342$as_echo "$ac_try_echo") >&5 13343 (eval "$ac_try") 2>&5 13344 ac_status=$? 13345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13346 (exit $ac_status); }; }; then 13347 : 13348else 13349 $as_echo "$as_me: program exited with status $ac_status" >&5 13350$as_echo "$as_me: failed program was:" >&5 13351sed 's/^/| /' conftest.$ac_ext >&5 13352 13353( exit $ac_status ) 13354ac_cv_header_stdc=no 13355fi 13356rm -rf conftest.dSYM 13357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13358fi 13359 13360 13361fi 13362fi 13363{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 13364$as_echo "$ac_cv_header_stdc" >&6; } 13365if test $ac_cv_header_stdc = yes; then 13366 13367cat >>confdefs.h <<\_ACEOF 13368#define STDC_HEADERS 1 13369_ACEOF 13370 13371fi 13372 13373 13374ac_config_files="$ac_config_files Makefile shared/Makefile src/Makefile tools/Makefile fdi/Makefile man/Makefile" 13375 13376cat >confcache <<\_ACEOF 13377# This file is a shell script that caches the results of configure 13378# tests run on this system so they can be shared between configure 13379# scripts and configure runs, see configure's option --config-cache. 13380# It is not useful on other systems. If it contains results you don't 13381# want to keep, you may remove or edit it. 13382# 13383# config.status only pays attention to the cache file if you give it 13384# the --recheck option to rerun configure. 13385# 13386# `ac_cv_env_foo' variables (set or unset) will be overridden when 13387# loading this file, other *unset* `ac_cv_foo' will be assigned the 13388# following values. 13389 13390_ACEOF 13391 13392# The following way of writing the cache mishandles newlines in values, 13393# but we know of no workaround that is simple, portable, and efficient. 13394# So, we kill variables containing newlines. 13395# Ultrix sh set writes to stderr and can't be redirected directly, 13396# and sets the high bit in the cache file unless we assign to the vars. 13397( 13398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13399 eval ac_val=\$$ac_var 13400 case $ac_val in #( 13401 *${as_nl}*) 13402 case $ac_var in #( 13403 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13404$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13405 esac 13406 case $ac_var in #( 13407 _ | IFS | as_nl) ;; #( 13408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13409 *) $as_unset $ac_var ;; 13410 esac ;; 13411 esac 13412 done 13413 13414 (set) 2>&1 | 13415 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13416 *${as_nl}ac_space=\ *) 13417 # `set' does not quote correctly, so add quotes (double-quote 13418 # substitution turns \\\\ into \\, and sed turns \\ into \). 13419 sed -n \ 13420 "s/'/'\\\\''/g; 13421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13422 ;; #( 13423 *) 13424 # `set' quotes correctly as required by POSIX, so do not add quotes. 13425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13426 ;; 13427 esac | 13428 sort 13429) | 13430 sed ' 13431 /^ac_cv_env_/b end 13432 t clear 13433 :clear 13434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13435 t end 13436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13437 :end' >>confcache 13438if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13439 if test -w "$cache_file"; then 13440 test "x$cache_file" != "x/dev/null" && 13441 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13442$as_echo "$as_me: updating cache $cache_file" >&6;} 13443 cat confcache >$cache_file 13444 else 13445 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13446$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13447 fi 13448fi 13449rm -f confcache 13450 13451test "x$prefix" = xNONE && prefix=$ac_default_prefix 13452# Let make expand exec_prefix. 13453test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13454 13455DEFS=-DHAVE_CONFIG_H 13456 13457ac_libobjs= 13458ac_ltlibobjs= 13459for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13460 # 1. Remove the extension, and $U if already installed. 13461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13464 # will be set to the directory where LIBOBJS objects are built. 13465 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13466 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13467done 13468LIBOBJS=$ac_libobjs 13469 13470LTLIBOBJS=$ac_ltlibobjs 13471 13472 13473 if test -n "$EXEEXT"; then 13474 am__EXEEXT_TRUE= 13475 am__EXEEXT_FALSE='#' 13476else 13477 am__EXEEXT_TRUE='#' 13478 am__EXEEXT_FALSE= 13479fi 13480 13481if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13482 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13483Usually this means the macro was only invoked conditionally." >&5 13484$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13485Usually this means the macro was only invoked conditionally." >&2;} 13486 { (exit 1); exit 1; }; } 13487fi 13488if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13489 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13490Usually this means the macro was only invoked conditionally." >&5 13491$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13492Usually this means the macro was only invoked conditionally." >&2;} 13493 { (exit 1); exit 1; }; } 13494fi 13495if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13496 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13497Usually this means the macro was only invoked conditionally." >&5 13498$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13499Usually this means the macro was only invoked conditionally." >&2;} 13500 { (exit 1); exit 1; }; } 13501fi 13502if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13503 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13504Usually this means the macro was only invoked conditionally." >&5 13505$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13506Usually this means the macro was only invoked conditionally." >&2;} 13507 { (exit 1); exit 1; }; } 13508fi 13509if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then 13510 { { $as_echo "$as_me:$LINENO: error: conditional \"HAS_XORG_CONF_DIR\" was never defined. 13511Usually this means the macro was only invoked conditionally." >&5 13512$as_echo "$as_me: error: conditional \"HAS_XORG_CONF_DIR\" was never defined. 13513Usually this means the macro was only invoked conditionally." >&2;} 13514 { (exit 1); exit 1; }; } 13515fi 13516if test -z "${HAS_UDEV_RULES_DIR_TRUE}" && test -z "${HAS_UDEV_RULES_DIR_FALSE}"; then 13517 { { $as_echo "$as_me:$LINENO: error: conditional \"HAS_UDEV_RULES_DIR\" was never defined. 13518Usually this means the macro was only invoked conditionally." >&5 13519$as_echo "$as_me: error: conditional \"HAS_UDEV_RULES_DIR\" was never defined. 13520Usually this means the macro was only invoked conditionally." >&2;} 13521 { (exit 1); exit 1; }; } 13522fi 13523 13524: ${CONFIG_STATUS=./config.status} 13525ac_write_fail=0 13526ac_clean_files_save=$ac_clean_files 13527ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13528{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13529$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13530cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13531#! $SHELL 13532# Generated by $as_me. 13533# Run this file to recreate the current configuration. 13534# Compiler output produced by configure, useful for debugging 13535# configure, is in config.log if it exists. 13536 13537debug=false 13538ac_cs_recheck=false 13539ac_cs_silent=false 13540SHELL=\${CONFIG_SHELL-$SHELL} 13541_ACEOF 13542 13543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13544## --------------------- ## 13545## M4sh Initialization. ## 13546## --------------------- ## 13547 13548# Be more Bourne compatible 13549DUALCASE=1; export DUALCASE # for MKS sh 13550if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13551 emulate sh 13552 NULLCMD=: 13553 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13554 # is contrary to our usage. Disable this feature. 13555 alias -g '${1+"$@"}'='"$@"' 13556 setopt NO_GLOB_SUBST 13557else 13558 case `(set -o) 2>/dev/null` in 13559 *posix*) set -o posix ;; 13560esac 13561 13562fi 13563 13564 13565 13566 13567# PATH needs CR 13568# Avoid depending upon Character Ranges. 13569as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13570as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13571as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13572as_cr_digits='0123456789' 13573as_cr_alnum=$as_cr_Letters$as_cr_digits 13574 13575as_nl=' 13576' 13577export as_nl 13578# Printing a long string crashes Solaris 7 /usr/bin/printf. 13579as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13580as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13581as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13582if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13583 as_echo='printf %s\n' 13584 as_echo_n='printf %s' 13585else 13586 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13587 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13588 as_echo_n='/usr/ucb/echo -n' 13589 else 13590 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13591 as_echo_n_body='eval 13592 arg=$1; 13593 case $arg in 13594 *"$as_nl"*) 13595 expr "X$arg" : "X\\(.*\\)$as_nl"; 13596 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13597 esac; 13598 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13599 ' 13600 export as_echo_n_body 13601 as_echo_n='sh -c $as_echo_n_body as_echo' 13602 fi 13603 export as_echo_body 13604 as_echo='sh -c $as_echo_body as_echo' 13605fi 13606 13607# The user is always right. 13608if test "${PATH_SEPARATOR+set}" != set; then 13609 PATH_SEPARATOR=: 13610 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13611 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13612 PATH_SEPARATOR=';' 13613 } 13614fi 13615 13616# Support unset when possible. 13617if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13618 as_unset=unset 13619else 13620 as_unset=false 13621fi 13622 13623 13624# IFS 13625# We need space, tab and new line, in precisely that order. Quoting is 13626# there to prevent editors from complaining about space-tab. 13627# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13628# splitting by setting IFS to empty value.) 13629IFS=" "" $as_nl" 13630 13631# Find who we are. Look in the path if we contain no directory separator. 13632case $0 in 13633 *[\\/]* ) as_myself=$0 ;; 13634 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13635for as_dir in $PATH 13636do 13637 IFS=$as_save_IFS 13638 test -z "$as_dir" && as_dir=. 13639 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13640done 13641IFS=$as_save_IFS 13642 13643 ;; 13644esac 13645# We did not find ourselves, most probably we were run as `sh COMMAND' 13646# in which case we are not to be found in the path. 13647if test "x$as_myself" = x; then 13648 as_myself=$0 13649fi 13650if test ! -f "$as_myself"; then 13651 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13652 { (exit 1); exit 1; } 13653fi 13654 13655# Work around bugs in pre-3.0 UWIN ksh. 13656for as_var in ENV MAIL MAILPATH 13657do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13658done 13659PS1='$ ' 13660PS2='> ' 13661PS4='+ ' 13662 13663# NLS nuisances. 13664LC_ALL=C 13665export LC_ALL 13666LANGUAGE=C 13667export LANGUAGE 13668 13669# Required to use basename. 13670if expr a : '\(a\)' >/dev/null 2>&1 && 13671 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13672 as_expr=expr 13673else 13674 as_expr=false 13675fi 13676 13677if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13678 as_basename=basename 13679else 13680 as_basename=false 13681fi 13682 13683 13684# Name of the executable. 13685as_me=`$as_basename -- "$0" || 13686$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13687 X"$0" : 'X\(//\)$' \| \ 13688 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13689$as_echo X/"$0" | 13690 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13691 s//\1/ 13692 q 13693 } 13694 /^X\/\(\/\/\)$/{ 13695 s//\1/ 13696 q 13697 } 13698 /^X\/\(\/\).*/{ 13699 s//\1/ 13700 q 13701 } 13702 s/.*/./; q'` 13703 13704# CDPATH. 13705$as_unset CDPATH 13706 13707 13708 13709 as_lineno_1=$LINENO 13710 as_lineno_2=$LINENO 13711 test "x$as_lineno_1" != "x$as_lineno_2" && 13712 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13713 13714 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13715 # uniformly replaced by the line number. The first 'sed' inserts a 13716 # line-number line after each line using $LINENO; the second 'sed' 13717 # does the real work. The second script uses 'N' to pair each 13718 # line-number line with the line containing $LINENO, and appends 13719 # trailing '-' during substitution so that $LINENO is not a special 13720 # case at line end. 13721 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13722 # scripts with optimization help from Paolo Bonzini. Blame Lee 13723 # E. McMahon (1931-1989) for sed's syntax. :-) 13724 sed -n ' 13725 p 13726 /[$]LINENO/= 13727 ' <$as_myself | 13728 sed ' 13729 s/[$]LINENO.*/&-/ 13730 t lineno 13731 b 13732 :lineno 13733 N 13734 :loop 13735 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13736 t loop 13737 s/-\n.*// 13738 ' >$as_me.lineno && 13739 chmod +x "$as_me.lineno" || 13740 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13741 { (exit 1); exit 1; }; } 13742 13743 # Don't try to exec as it changes $[0], causing all sort of problems 13744 # (the dirname of $[0] is not the place where we might find the 13745 # original and so on. Autoconf is especially sensitive to this). 13746 . "./$as_me.lineno" 13747 # Exit status is that of the last command. 13748 exit 13749} 13750 13751 13752if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13753 as_dirname=dirname 13754else 13755 as_dirname=false 13756fi 13757 13758ECHO_C= ECHO_N= ECHO_T= 13759case `echo -n x` in 13760-n*) 13761 case `echo 'x\c'` in 13762 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13763 *) ECHO_C='\c';; 13764 esac;; 13765*) 13766 ECHO_N='-n';; 13767esac 13768if expr a : '\(a\)' >/dev/null 2>&1 && 13769 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13770 as_expr=expr 13771else 13772 as_expr=false 13773fi 13774 13775rm -f conf$$ conf$$.exe conf$$.file 13776if test -d conf$$.dir; then 13777 rm -f conf$$.dir/conf$$.file 13778else 13779 rm -f conf$$.dir 13780 mkdir conf$$.dir 2>/dev/null 13781fi 13782if (echo >conf$$.file) 2>/dev/null; then 13783 if ln -s conf$$.file conf$$ 2>/dev/null; then 13784 as_ln_s='ln -s' 13785 # ... but there are two gotchas: 13786 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13787 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13788 # In both cases, we have to default to `cp -p'. 13789 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13790 as_ln_s='cp -p' 13791 elif ln conf$$.file conf$$ 2>/dev/null; then 13792 as_ln_s=ln 13793 else 13794 as_ln_s='cp -p' 13795 fi 13796else 13797 as_ln_s='cp -p' 13798fi 13799rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13800rmdir conf$$.dir 2>/dev/null 13801 13802if mkdir -p . 2>/dev/null; then 13803 as_mkdir_p=: 13804else 13805 test -d ./-p && rmdir ./-p 13806 as_mkdir_p=false 13807fi 13808 13809if test -x / >/dev/null 2>&1; then 13810 as_test_x='test -x' 13811else 13812 if ls -dL / >/dev/null 2>&1; then 13813 as_ls_L_option=L 13814 else 13815 as_ls_L_option= 13816 fi 13817 as_test_x=' 13818 eval sh -c '\'' 13819 if test -d "$1"; then 13820 test -d "$1/."; 13821 else 13822 case $1 in 13823 -*)set "./$1";; 13824 esac; 13825 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13826 ???[sx]*):;;*)false;;esac;fi 13827 '\'' sh 13828 ' 13829fi 13830as_executable_p=$as_test_x 13831 13832# Sed expression to map a string onto a valid CPP name. 13833as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13834 13835# Sed expression to map a string onto a valid variable name. 13836as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13837 13838 13839exec 6>&1 13840 13841# Save the log message, to keep $[0] and so on meaningful, and to 13842# report actual input values of CONFIG_FILES etc. instead of their 13843# values after options handling. 13844ac_log=" 13845This file was extended by xf86-input-vmmouse $as_me 12.6.10, which was 13846generated by GNU Autoconf 2.63. Invocation command line was 13847 13848 CONFIG_FILES = $CONFIG_FILES 13849 CONFIG_HEADERS = $CONFIG_HEADERS 13850 CONFIG_LINKS = $CONFIG_LINKS 13851 CONFIG_COMMANDS = $CONFIG_COMMANDS 13852 $ $0 $@ 13853 13854on `(hostname || uname -n) 2>/dev/null | sed 1q` 13855" 13856 13857_ACEOF 13858 13859case $ac_config_files in *" 13860"*) set x $ac_config_files; shift; ac_config_files=$*;; 13861esac 13862 13863case $ac_config_headers in *" 13864"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13865esac 13866 13867 13868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13869# Files that config.status was made for. 13870config_files="$ac_config_files" 13871config_headers="$ac_config_headers" 13872config_commands="$ac_config_commands" 13873 13874_ACEOF 13875 13876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13877ac_cs_usage="\ 13878\`$as_me' instantiates files from templates according to the 13879current configuration. 13880 13881Usage: $0 [OPTION]... [FILE]... 13882 13883 -h, --help print this help, then exit 13884 -V, --version print version number and configuration settings, then exit 13885 -q, --quiet, --silent 13886 do not print progress messages 13887 -d, --debug don't remove temporary files 13888 --recheck update $as_me by reconfiguring in the same conditions 13889 --file=FILE[:TEMPLATE] 13890 instantiate the configuration file FILE 13891 --header=FILE[:TEMPLATE] 13892 instantiate the configuration header FILE 13893 13894Configuration files: 13895$config_files 13896 13897Configuration headers: 13898$config_headers 13899 13900Configuration commands: 13901$config_commands 13902 13903Report bugs to <bug-autoconf@gnu.org>." 13904 13905_ACEOF 13906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13907ac_cs_version="\\ 13908xf86-input-vmmouse config.status 12.6.10 13909configured by $0, generated by GNU Autoconf 2.63, 13910 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13911 13912Copyright (C) 2008 Free Software Foundation, Inc. 13913This config.status script is free software; the Free Software Foundation 13914gives unlimited permission to copy, distribute and modify it." 13915 13916ac_pwd='$ac_pwd' 13917srcdir='$srcdir' 13918INSTALL='$INSTALL' 13919MKDIR_P='$MKDIR_P' 13920AWK='$AWK' 13921test -n "\$AWK" || AWK=awk 13922_ACEOF 13923 13924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13925# The default lists apply if the user does not specify any file. 13926ac_need_defaults=: 13927while test $# != 0 13928do 13929 case $1 in 13930 --*=*) 13931 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13933 ac_shift=: 13934 ;; 13935 *) 13936 ac_option=$1 13937 ac_optarg=$2 13938 ac_shift=shift 13939 ;; 13940 esac 13941 13942 case $ac_option in 13943 # Handling of the options. 13944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13945 ac_cs_recheck=: ;; 13946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13947 $as_echo "$ac_cs_version"; exit ;; 13948 --debug | --debu | --deb | --de | --d | -d ) 13949 debug=: ;; 13950 --file | --fil | --fi | --f ) 13951 $ac_shift 13952 case $ac_optarg in 13953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13954 esac 13955 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13956 ac_need_defaults=false;; 13957 --header | --heade | --head | --hea ) 13958 $ac_shift 13959 case $ac_optarg in 13960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13961 esac 13962 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13963 ac_need_defaults=false;; 13964 --he | --h) 13965 # Conflict between --help and --header 13966 { $as_echo "$as_me: error: ambiguous option: $1 13967Try \`$0 --help' for more information." >&2 13968 { (exit 1); exit 1; }; };; 13969 --help | --hel | -h ) 13970 $as_echo "$ac_cs_usage"; exit ;; 13971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13972 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13973 ac_cs_silent=: ;; 13974 13975 # This is an error. 13976 -*) { $as_echo "$as_me: error: unrecognized option: $1 13977Try \`$0 --help' for more information." >&2 13978 { (exit 1); exit 1; }; } ;; 13979 13980 *) ac_config_targets="$ac_config_targets $1" 13981 ac_need_defaults=false ;; 13982 13983 esac 13984 shift 13985done 13986 13987ac_configure_extra_args= 13988 13989if $ac_cs_silent; then 13990 exec 6>/dev/null 13991 ac_configure_extra_args="$ac_configure_extra_args --silent" 13992fi 13993 13994_ACEOF 13995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13996if \$ac_cs_recheck; then 13997 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13998 shift 13999 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14000 CONFIG_SHELL='$SHELL' 14001 export CONFIG_SHELL 14002 exec "\$@" 14003fi 14004 14005_ACEOF 14006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14007exec 5>>config.log 14008{ 14009 echo 14010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14011## Running $as_me. ## 14012_ASBOX 14013 $as_echo "$ac_log" 14014} >&5 14015 14016_ACEOF 14017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14018# 14019# INIT-COMMANDS 14020# 14021AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14022 14023 14024# The HP-UX ksh and POSIX shell print the target directory to stdout 14025# if CDPATH is set. 14026(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14027 14028sed_quote_subst='$sed_quote_subst' 14029double_quote_subst='$double_quote_subst' 14030delay_variable_subst='$delay_variable_subst' 14031enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14032macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14033macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14034enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14035pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14036enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14037host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14038host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14039host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14040build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14041build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14042build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14043SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14044Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14045GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14046EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14047FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14048LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14049NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14050LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14051max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14052ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14053exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14054lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14055lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14056lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14057reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14058reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14059OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14060deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14061file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14062AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14063AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14064STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14065RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14066old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14067old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14068old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14069CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14070CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14071compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14072GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14073lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14074lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14075lt_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"`' 14076lt_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"`' 14077objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14078SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14079ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14080MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14081lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14082lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14083lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14084lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14085lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14086need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14087DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14088NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14089LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14090OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14091OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14092libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14093shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14094extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14095archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14096enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14097export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14098whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14099compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14100old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14101old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14102archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14103archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14104module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14105module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14106with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14107allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14108no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14109hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14110hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14111hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14112hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14113hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14114hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14115hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14116hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14117inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14118link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14119fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14120always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14121export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14122exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14123include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14124prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14125file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14126variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14127need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14128need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14129version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14130runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14131shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14132shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14133libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14134library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14135soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14136postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14137postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14138finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14139finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14140hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14141sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14142sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14143hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14144enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14145enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14146enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14147old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14148striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14149 14150LTCC='$LTCC' 14151LTCFLAGS='$LTCFLAGS' 14152compiler='$compiler_DEFAULT' 14153 14154# Quote evaled strings. 14155for var in SED \ 14156GREP \ 14157EGREP \ 14158FGREP \ 14159LD \ 14160NM \ 14161LN_S \ 14162lt_SP2NL \ 14163lt_NL2SP \ 14164reload_flag \ 14165OBJDUMP \ 14166deplibs_check_method \ 14167file_magic_cmd \ 14168AR \ 14169AR_FLAGS \ 14170STRIP \ 14171RANLIB \ 14172CC \ 14173CFLAGS \ 14174compiler \ 14175lt_cv_sys_global_symbol_pipe \ 14176lt_cv_sys_global_symbol_to_cdecl \ 14177lt_cv_sys_global_symbol_to_c_name_address \ 14178lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14179SHELL \ 14180ECHO \ 14181lt_prog_compiler_no_builtin_flag \ 14182lt_prog_compiler_wl \ 14183lt_prog_compiler_pic \ 14184lt_prog_compiler_static \ 14185lt_cv_prog_compiler_c_o \ 14186need_locks \ 14187DSYMUTIL \ 14188NMEDIT \ 14189LIPO \ 14190OTOOL \ 14191OTOOL64 \ 14192shrext_cmds \ 14193export_dynamic_flag_spec \ 14194whole_archive_flag_spec \ 14195compiler_needs_object \ 14196with_gnu_ld \ 14197allow_undefined_flag \ 14198no_undefined_flag \ 14199hardcode_libdir_flag_spec \ 14200hardcode_libdir_flag_spec_ld \ 14201hardcode_libdir_separator \ 14202fix_srcfile_path \ 14203exclude_expsyms \ 14204include_expsyms \ 14205file_list_spec \ 14206variables_saved_for_relink \ 14207libname_spec \ 14208library_names_spec \ 14209soname_spec \ 14210finish_eval \ 14211old_striplib \ 14212striplib; do 14213 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14214 *[\\\\\\\`\\"\\\$]*) 14215 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14216 ;; 14217 *) 14218 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14219 ;; 14220 esac 14221done 14222 14223# Double-quote double-evaled strings. 14224for var in reload_cmds \ 14225old_postinstall_cmds \ 14226old_postuninstall_cmds \ 14227old_archive_cmds \ 14228extract_expsyms_cmds \ 14229old_archive_from_new_cmds \ 14230old_archive_from_expsyms_cmds \ 14231archive_cmds \ 14232archive_expsym_cmds \ 14233module_cmds \ 14234module_expsym_cmds \ 14235export_symbols_cmds \ 14236prelink_cmds \ 14237postinstall_cmds \ 14238postuninstall_cmds \ 14239finish_cmds \ 14240sys_lib_search_path_spec \ 14241sys_lib_dlsearch_path_spec; do 14242 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14243 *[\\\\\\\`\\"\\\$]*) 14244 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14245 ;; 14246 *) 14247 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14248 ;; 14249 esac 14250done 14251 14252# Fix-up fallback echo if it was mangled by the above quoting rules. 14253case \$lt_ECHO in 14254*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14255 ;; 14256esac 14257 14258ac_aux_dir='$ac_aux_dir' 14259xsi_shell='$xsi_shell' 14260lt_shell_append='$lt_shell_append' 14261 14262# See if we are running on zsh, and set the options which allow our 14263# commands through without removal of \ escapes INIT. 14264if test -n "\${ZSH_VERSION+set}" ; then 14265 setopt NO_GLOB_SUBST 14266fi 14267 14268 14269 PACKAGE='$PACKAGE' 14270 VERSION='$VERSION' 14271 TIMESTAMP='$TIMESTAMP' 14272 RM='$RM' 14273 ofile='$ofile' 14274 14275 14276 14277 14278_ACEOF 14279 14280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14281 14282# Handling of arguments. 14283for ac_config_target in $ac_config_targets 14284do 14285 case $ac_config_target in 14286 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14287 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14288 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14289 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14290 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;; 14291 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14292 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 14293 "fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;; 14294 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14295 14296 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14297$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14298 { (exit 1); exit 1; }; };; 14299 esac 14300done 14301 14302 14303# If the user did not use the arguments to specify the items to instantiate, 14304# then the envvar interface is used. Set only those that are not. 14305# We use the long form for the default assignment because of an extremely 14306# bizarre bug on SunOS 4.1.3. 14307if $ac_need_defaults; then 14308 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14309 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14310 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14311fi 14312 14313# Have a temporary directory for convenience. Make it in the build tree 14314# simply because there is no reason against having it here, and in addition, 14315# creating and moving files from /tmp can sometimes cause problems. 14316# Hook for its removal unless debugging. 14317# Note that there is a small window in which the directory will not be cleaned: 14318# after its creation but before its name has been assigned to `$tmp'. 14319$debug || 14320{ 14321 tmp= 14322 trap 'exit_status=$? 14323 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14324' 0 14325 trap '{ (exit 1); exit 1; }' 1 2 13 15 14326} 14327# Create a (secure) tmp directory for tmp files. 14328 14329{ 14330 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14331 test -n "$tmp" && test -d "$tmp" 14332} || 14333{ 14334 tmp=./conf$$-$RANDOM 14335 (umask 077 && mkdir "$tmp") 14336} || 14337{ 14338 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14339 { (exit 1); exit 1; } 14340} 14341 14342# Set up the scripts for CONFIG_FILES section. 14343# No need to generate them if there are no CONFIG_FILES. 14344# This happens for instance with `./config.status config.h'. 14345if test -n "$CONFIG_FILES"; then 14346 14347 14348ac_cr=' 14349' 14350ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14351if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14352 ac_cs_awk_cr='\\r' 14353else 14354 ac_cs_awk_cr=$ac_cr 14355fi 14356 14357echo 'BEGIN {' >"$tmp/subs1.awk" && 14358_ACEOF 14359 14360 14361{ 14362 echo "cat >conf$$subs.awk <<_ACEOF" && 14363 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14364 echo "_ACEOF" 14365} >conf$$subs.sh || 14366 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14367$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14368 { (exit 1); exit 1; }; } 14369ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14370ac_delim='%!_!# ' 14371for ac_last_try in false false false false false :; do 14372 . ./conf$$subs.sh || 14373 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14374$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14375 { (exit 1); exit 1; }; } 14376 14377 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14378 if test $ac_delim_n = $ac_delim_num; then 14379 break 14380 elif $ac_last_try; then 14381 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14382$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14383 { (exit 1); exit 1; }; } 14384 else 14385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14386 fi 14387done 14388rm -f conf$$subs.sh 14389 14390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14391cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14392_ACEOF 14393sed -n ' 14394h 14395s/^/S["/; s/!.*/"]=/ 14396p 14397g 14398s/^[^!]*!// 14399:repl 14400t repl 14401s/'"$ac_delim"'$// 14402t delim 14403:nl 14404h 14405s/\(.\{148\}\).*/\1/ 14406t more1 14407s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14408p 14409n 14410b repl 14411:more1 14412s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14413p 14414g 14415s/.\{148\}// 14416t nl 14417:delim 14418h 14419s/\(.\{148\}\).*/\1/ 14420t more2 14421s/["\\]/\\&/g; s/^/"/; s/$/"/ 14422p 14423b 14424:more2 14425s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14426p 14427g 14428s/.\{148\}// 14429t delim 14430' <conf$$subs.awk | sed ' 14431/^[^""]/{ 14432 N 14433 s/\n// 14434} 14435' >>$CONFIG_STATUS || ac_write_fail=1 14436rm -f conf$$subs.awk 14437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14438_ACAWK 14439cat >>"\$tmp/subs1.awk" <<_ACAWK && 14440 for (key in S) S_is_set[key] = 1 14441 FS = "" 14442 14443} 14444{ 14445 line = $ 0 14446 nfields = split(line, field, "@") 14447 substed = 0 14448 len = length(field[1]) 14449 for (i = 2; i < nfields; i++) { 14450 key = field[i] 14451 keylen = length(key) 14452 if (S_is_set[key]) { 14453 value = S[key] 14454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14455 len += length(value) + length(field[++i]) 14456 substed = 1 14457 } else 14458 len += 1 + keylen 14459 } 14460 14461 print line 14462} 14463 14464_ACAWK 14465_ACEOF 14466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14467if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14468 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14469else 14470 cat 14471fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14472 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14473$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14474 { (exit 1); exit 1; }; } 14475_ACEOF 14476 14477# VPATH may cause trouble with some makes, so we remove $(srcdir), 14478# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14479# trailing colons and then remove the whole line if VPATH becomes empty 14480# (actually we leave an empty line to preserve line numbers). 14481if test "x$srcdir" = x.; then 14482 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14483s/:*\$(srcdir):*/:/ 14484s/:*\${srcdir}:*/:/ 14485s/:*@srcdir@:*/:/ 14486s/^\([^=]*=[ ]*\):*/\1/ 14487s/:*$// 14488s/^[^=]*=[ ]*$// 14489}' 14490fi 14491 14492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14493fi # test -n "$CONFIG_FILES" 14494 14495# Set up the scripts for CONFIG_HEADERS section. 14496# No need to generate them if there are no CONFIG_HEADERS. 14497# This happens for instance with `./config.status Makefile'. 14498if test -n "$CONFIG_HEADERS"; then 14499cat >"$tmp/defines.awk" <<\_ACAWK || 14500BEGIN { 14501_ACEOF 14502 14503# Transform confdefs.h into an awk script `defines.awk', embedded as 14504# here-document in config.status, that substitutes the proper values into 14505# config.h.in to produce config.h. 14506 14507# Create a delimiter string that does not exist in confdefs.h, to ease 14508# handling of long lines. 14509ac_delim='%!_!# ' 14510for ac_last_try in false false :; do 14511 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14512 if test -z "$ac_t"; then 14513 break 14514 elif $ac_last_try; then 14515 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14516$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14517 { (exit 1); exit 1; }; } 14518 else 14519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14520 fi 14521done 14522 14523# For the awk script, D is an array of macro values keyed by name, 14524# likewise P contains macro parameters if any. Preserve backslash 14525# newline sequences. 14526 14527ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14528sed -n ' 14529s/.\{148\}/&'"$ac_delim"'/g 14530t rset 14531:rset 14532s/^[ ]*#[ ]*define[ ][ ]*/ / 14533t def 14534d 14535:def 14536s/\\$// 14537t bsnl 14538s/["\\]/\\&/g 14539s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14540D["\1"]=" \3"/p 14541s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14542d 14543:bsnl 14544s/["\\]/\\&/g 14545s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14546D["\1"]=" \3\\\\\\n"\\/p 14547t cont 14548s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14549t cont 14550d 14551:cont 14552n 14553s/.\{148\}/&'"$ac_delim"'/g 14554t clear 14555:clear 14556s/\\$// 14557t bsnlc 14558s/["\\]/\\&/g; s/^/"/; s/$/"/p 14559d 14560:bsnlc 14561s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14562b cont 14563' <confdefs.h | sed ' 14564s/'"$ac_delim"'/"\\\ 14565"/g' >>$CONFIG_STATUS || ac_write_fail=1 14566 14567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14568 for (key in D) D_is_set[key] = 1 14569 FS = "" 14570} 14571/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14572 line = \$ 0 14573 split(line, arg, " ") 14574 if (arg[1] == "#") { 14575 defundef = arg[2] 14576 mac1 = arg[3] 14577 } else { 14578 defundef = substr(arg[1], 2) 14579 mac1 = arg[2] 14580 } 14581 split(mac1, mac2, "(") #) 14582 macro = mac2[1] 14583 prefix = substr(line, 1, index(line, defundef) - 1) 14584 if (D_is_set[macro]) { 14585 # Preserve the white space surrounding the "#". 14586 print prefix "define", macro P[macro] D[macro] 14587 next 14588 } else { 14589 # Replace #undef with comments. This is necessary, for example, 14590 # in the case of _POSIX_SOURCE, which is predefined and required 14591 # on some systems where configure will not decide to define it. 14592 if (defundef == "undef") { 14593 print "/*", prefix defundef, macro, "*/" 14594 next 14595 } 14596 } 14597} 14598{ print } 14599_ACAWK 14600_ACEOF 14601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14602 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14603$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14604 { (exit 1); exit 1; }; } 14605fi # test -n "$CONFIG_HEADERS" 14606 14607 14608eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14609shift 14610for ac_tag 14611do 14612 case $ac_tag in 14613 :[FHLC]) ac_mode=$ac_tag; continue;; 14614 esac 14615 case $ac_mode$ac_tag in 14616 :[FHL]*:*);; 14617 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14618$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14619 { (exit 1); exit 1; }; };; 14620 :[FH]-) ac_tag=-:-;; 14621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14622 esac 14623 ac_save_IFS=$IFS 14624 IFS=: 14625 set x $ac_tag 14626 IFS=$ac_save_IFS 14627 shift 14628 ac_file=$1 14629 shift 14630 14631 case $ac_mode in 14632 :L) ac_source=$1;; 14633 :[FH]) 14634 ac_file_inputs= 14635 for ac_f 14636 do 14637 case $ac_f in 14638 -) ac_f="$tmp/stdin";; 14639 *) # Look for the file first in the build tree, then in the source tree 14640 # (if the path is not absolute). The absolute path cannot be DOS-style, 14641 # because $ac_f cannot contain `:'. 14642 test -f "$ac_f" || 14643 case $ac_f in 14644 [\\/$]*) false;; 14645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14646 esac || 14647 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14648$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14649 { (exit 1); exit 1; }; };; 14650 esac 14651 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14652 ac_file_inputs="$ac_file_inputs '$ac_f'" 14653 done 14654 14655 # Let's still pretend it is `configure' which instantiates (i.e., don't 14656 # use $as_me), people would be surprised to read: 14657 # /* config.h. Generated by config.status. */ 14658 configure_input='Generated from '` 14659 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14660 `' by configure.' 14661 if test x"$ac_file" != x-; then 14662 configure_input="$ac_file. $configure_input" 14663 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14664$as_echo "$as_me: creating $ac_file" >&6;} 14665 fi 14666 # Neutralize special characters interpreted by sed in replacement strings. 14667 case $configure_input in #( 14668 *\&* | *\|* | *\\* ) 14669 ac_sed_conf_input=`$as_echo "$configure_input" | 14670 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14671 *) ac_sed_conf_input=$configure_input;; 14672 esac 14673 14674 case $ac_tag in 14675 *:-:* | *:-) cat >"$tmp/stdin" \ 14676 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14677$as_echo "$as_me: error: could not create $ac_file" >&2;} 14678 { (exit 1); exit 1; }; } ;; 14679 esac 14680 ;; 14681 esac 14682 14683 ac_dir=`$as_dirname -- "$ac_file" || 14684$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14685 X"$ac_file" : 'X\(//\)[^/]' \| \ 14686 X"$ac_file" : 'X\(//\)$' \| \ 14687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14688$as_echo X"$ac_file" | 14689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14690 s//\1/ 14691 q 14692 } 14693 /^X\(\/\/\)[^/].*/{ 14694 s//\1/ 14695 q 14696 } 14697 /^X\(\/\/\)$/{ 14698 s//\1/ 14699 q 14700 } 14701 /^X\(\/\).*/{ 14702 s//\1/ 14703 q 14704 } 14705 s/.*/./; q'` 14706 { as_dir="$ac_dir" 14707 case $as_dir in #( 14708 -*) as_dir=./$as_dir;; 14709 esac 14710 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14711 as_dirs= 14712 while :; do 14713 case $as_dir in #( 14714 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14715 *) as_qdir=$as_dir;; 14716 esac 14717 as_dirs="'$as_qdir' $as_dirs" 14718 as_dir=`$as_dirname -- "$as_dir" || 14719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14720 X"$as_dir" : 'X\(//\)[^/]' \| \ 14721 X"$as_dir" : 'X\(//\)$' \| \ 14722 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14723$as_echo X"$as_dir" | 14724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14725 s//\1/ 14726 q 14727 } 14728 /^X\(\/\/\)[^/].*/{ 14729 s//\1/ 14730 q 14731 } 14732 /^X\(\/\/\)$/{ 14733 s//\1/ 14734 q 14735 } 14736 /^X\(\/\).*/{ 14737 s//\1/ 14738 q 14739 } 14740 s/.*/./; q'` 14741 test -d "$as_dir" && break 14742 done 14743 test -z "$as_dirs" || eval "mkdir $as_dirs" 14744 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14745$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14746 { (exit 1); exit 1; }; }; } 14747 ac_builddir=. 14748 14749case "$ac_dir" in 14750.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14751*) 14752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14753 # A ".." for each directory in $ac_dir_suffix. 14754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14755 case $ac_top_builddir_sub in 14756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14758 esac ;; 14759esac 14760ac_abs_top_builddir=$ac_pwd 14761ac_abs_builddir=$ac_pwd$ac_dir_suffix 14762# for backward compatibility: 14763ac_top_builddir=$ac_top_build_prefix 14764 14765case $srcdir in 14766 .) # We are building in place. 14767 ac_srcdir=. 14768 ac_top_srcdir=$ac_top_builddir_sub 14769 ac_abs_top_srcdir=$ac_pwd ;; 14770 [\\/]* | ?:[\\/]* ) # Absolute name. 14771 ac_srcdir=$srcdir$ac_dir_suffix; 14772 ac_top_srcdir=$srcdir 14773 ac_abs_top_srcdir=$srcdir ;; 14774 *) # Relative name. 14775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14776 ac_top_srcdir=$ac_top_build_prefix$srcdir 14777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14778esac 14779ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14780 14781 14782 case $ac_mode in 14783 :F) 14784 # 14785 # CONFIG_FILE 14786 # 14787 14788 case $INSTALL in 14789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14790 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14791 esac 14792 ac_MKDIR_P=$MKDIR_P 14793 case $MKDIR_P in 14794 [\\/$]* | ?:[\\/]* ) ;; 14795 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14796 esac 14797_ACEOF 14798 14799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14800# If the template does not know about datarootdir, expand it. 14801# FIXME: This hack should be removed a few years after 2.60. 14802ac_datarootdir_hack=; ac_datarootdir_seen= 14803 14804ac_sed_dataroot=' 14805/datarootdir/ { 14806 p 14807 q 14808} 14809/@datadir@/p 14810/@docdir@/p 14811/@infodir@/p 14812/@localedir@/p 14813/@mandir@/p 14814' 14815case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14816*datarootdir*) ac_datarootdir_seen=yes;; 14817*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14818 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14819$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14820_ACEOF 14821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14822 ac_datarootdir_hack=' 14823 s&@datadir@&$datadir&g 14824 s&@docdir@&$docdir&g 14825 s&@infodir@&$infodir&g 14826 s&@localedir@&$localedir&g 14827 s&@mandir@&$mandir&g 14828 s&\\\${datarootdir}&$datarootdir&g' ;; 14829esac 14830_ACEOF 14831 14832# Neutralize VPATH when `$srcdir' = `.'. 14833# Shell code in configure.ac might set extrasub. 14834# FIXME: do we really want to maintain this feature? 14835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14836ac_sed_extra="$ac_vpsub 14837$extrasub 14838_ACEOF 14839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14840:t 14841/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14842s|@configure_input@|$ac_sed_conf_input|;t t 14843s&@top_builddir@&$ac_top_builddir_sub&;t t 14844s&@top_build_prefix@&$ac_top_build_prefix&;t t 14845s&@srcdir@&$ac_srcdir&;t t 14846s&@abs_srcdir@&$ac_abs_srcdir&;t t 14847s&@top_srcdir@&$ac_top_srcdir&;t t 14848s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14849s&@builddir@&$ac_builddir&;t t 14850s&@abs_builddir@&$ac_abs_builddir&;t t 14851s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14852s&@INSTALL@&$ac_INSTALL&;t t 14853s&@MKDIR_P@&$ac_MKDIR_P&;t t 14854$ac_datarootdir_hack 14855" 14856eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14857 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14858$as_echo "$as_me: error: could not create $ac_file" >&2;} 14859 { (exit 1); exit 1; }; } 14860 14861test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14864 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14865which seems to be undefined. Please make sure it is defined." >&5 14866$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14867which seems to be undefined. Please make sure it is defined." >&2;} 14868 14869 rm -f "$tmp/stdin" 14870 case $ac_file in 14871 -) cat "$tmp/out" && rm -f "$tmp/out";; 14872 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14873 esac \ 14874 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14875$as_echo "$as_me: error: could not create $ac_file" >&2;} 14876 { (exit 1); exit 1; }; } 14877 ;; 14878 :H) 14879 # 14880 # CONFIG_HEADER 14881 # 14882 if test x"$ac_file" != x-; then 14883 { 14884 $as_echo "/* $configure_input */" \ 14885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14886 } >"$tmp/config.h" \ 14887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14888$as_echo "$as_me: error: could not create $ac_file" >&2;} 14889 { (exit 1); exit 1; }; } 14890 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14891 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14892$as_echo "$as_me: $ac_file is unchanged" >&6;} 14893 else 14894 rm -f "$ac_file" 14895 mv "$tmp/config.h" "$ac_file" \ 14896 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14897$as_echo "$as_me: error: could not create $ac_file" >&2;} 14898 { (exit 1); exit 1; }; } 14899 fi 14900 else 14901 $as_echo "/* $configure_input */" \ 14902 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14903 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14904$as_echo "$as_me: error: could not create -" >&2;} 14905 { (exit 1); exit 1; }; } 14906 fi 14907# Compute "$ac_file"'s index in $config_headers. 14908_am_arg="$ac_file" 14909_am_stamp_count=1 14910for _am_header in $config_headers :; do 14911 case $_am_header in 14912 $_am_arg | $_am_arg:* ) 14913 break ;; 14914 * ) 14915 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14916 esac 14917done 14918echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14919$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14920 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14921 X"$_am_arg" : 'X\(//\)$' \| \ 14922 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14923$as_echo X"$_am_arg" | 14924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14925 s//\1/ 14926 q 14927 } 14928 /^X\(\/\/\)[^/].*/{ 14929 s//\1/ 14930 q 14931 } 14932 /^X\(\/\/\)$/{ 14933 s//\1/ 14934 q 14935 } 14936 /^X\(\/\).*/{ 14937 s//\1/ 14938 q 14939 } 14940 s/.*/./; q'`/stamp-h$_am_stamp_count 14941 ;; 14942 14943 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14944$as_echo "$as_me: executing $ac_file commands" >&6;} 14945 ;; 14946 esac 14947 14948 14949 case $ac_file$ac_mode in 14950 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14951 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14952 # are listed without --file. Let's play safe and only enable the eval 14953 # if we detect the quoting. 14954 case $CONFIG_FILES in 14955 *\'*) eval set x "$CONFIG_FILES" ;; 14956 *) set x $CONFIG_FILES ;; 14957 esac 14958 shift 14959 for mf 14960 do 14961 # Strip MF so we end up with the name of the file. 14962 mf=`echo "$mf" | sed -e 's/:.*$//'` 14963 # Check whether this is an Automake generated Makefile or not. 14964 # We used to match only the files named `Makefile.in', but 14965 # some people rename them; so instead we look at the file content. 14966 # Grep'ing the first line is not enough: some people post-process 14967 # each Makefile.in and add a new line on top of each file to say so. 14968 # Grep'ing the whole file is not good either: AIX grep has a line 14969 # limit of 2048, but all sed's we know have understand at least 4000. 14970 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14971 dirpart=`$as_dirname -- "$mf" || 14972$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14973 X"$mf" : 'X\(//\)[^/]' \| \ 14974 X"$mf" : 'X\(//\)$' \| \ 14975 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14976$as_echo X"$mf" | 14977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14978 s//\1/ 14979 q 14980 } 14981 /^X\(\/\/\)[^/].*/{ 14982 s//\1/ 14983 q 14984 } 14985 /^X\(\/\/\)$/{ 14986 s//\1/ 14987 q 14988 } 14989 /^X\(\/\).*/{ 14990 s//\1/ 14991 q 14992 } 14993 s/.*/./; q'` 14994 else 14995 continue 14996 fi 14997 # Extract the definition of DEPDIR, am__include, and am__quote 14998 # from the Makefile without running `make'. 14999 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15000 test -z "$DEPDIR" && continue 15001 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15002 test -z "am__include" && continue 15003 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15004 # When using ansi2knr, U may be empty or an underscore; expand it 15005 U=`sed -n 's/^U = //p' < "$mf"` 15006 # Find all dependency output files, they are included files with 15007 # $(DEPDIR) in their names. We invoke sed twice because it is the 15008 # simplest approach to changing $(DEPDIR) to its actual value in the 15009 # expansion. 15010 for file in `sed -n " 15011 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15012 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15013 # Make sure the directory exists. 15014 test -f "$dirpart/$file" && continue 15015 fdir=`$as_dirname -- "$file" || 15016$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15017 X"$file" : 'X\(//\)[^/]' \| \ 15018 X"$file" : 'X\(//\)$' \| \ 15019 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15020$as_echo X"$file" | 15021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15022 s//\1/ 15023 q 15024 } 15025 /^X\(\/\/\)[^/].*/{ 15026 s//\1/ 15027 q 15028 } 15029 /^X\(\/\/\)$/{ 15030 s//\1/ 15031 q 15032 } 15033 /^X\(\/\).*/{ 15034 s//\1/ 15035 q 15036 } 15037 s/.*/./; q'` 15038 { as_dir=$dirpart/$fdir 15039 case $as_dir in #( 15040 -*) as_dir=./$as_dir;; 15041 esac 15042 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15043 as_dirs= 15044 while :; do 15045 case $as_dir in #( 15046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15047 *) as_qdir=$as_dir;; 15048 esac 15049 as_dirs="'$as_qdir' $as_dirs" 15050 as_dir=`$as_dirname -- "$as_dir" || 15051$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15052 X"$as_dir" : 'X\(//\)[^/]' \| \ 15053 X"$as_dir" : 'X\(//\)$' \| \ 15054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15055$as_echo X"$as_dir" | 15056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15057 s//\1/ 15058 q 15059 } 15060 /^X\(\/\/\)[^/].*/{ 15061 s//\1/ 15062 q 15063 } 15064 /^X\(\/\/\)$/{ 15065 s//\1/ 15066 q 15067 } 15068 /^X\(\/\).*/{ 15069 s//\1/ 15070 q 15071 } 15072 s/.*/./; q'` 15073 test -d "$as_dir" && break 15074 done 15075 test -z "$as_dirs" || eval "mkdir $as_dirs" 15076 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15077$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15078 { (exit 1); exit 1; }; }; } 15079 # echo "creating $dirpart/$file" 15080 echo '# dummy' > "$dirpart/$file" 15081 done 15082 done 15083} 15084 ;; 15085 "libtool":C) 15086 15087 # See if we are running on zsh, and set the options which allow our 15088 # commands through without removal of \ escapes. 15089 if test -n "${ZSH_VERSION+set}" ; then 15090 setopt NO_GLOB_SUBST 15091 fi 15092 15093 cfgfile="${ofile}T" 15094 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15095 $RM "$cfgfile" 15096 15097 cat <<_LT_EOF >> "$cfgfile" 15098#! $SHELL 15099 15100# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15101# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15102# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15103# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15104# 15105# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15106# 2006, 2007, 2008 Free Software Foundation, Inc. 15107# Written by Gordon Matzigkeit, 1996 15108# 15109# This file is part of GNU Libtool. 15110# 15111# GNU Libtool is free software; you can redistribute it and/or 15112# modify it under the terms of the GNU General Public License as 15113# published by the Free Software Foundation; either version 2 of 15114# the License, or (at your option) any later version. 15115# 15116# As a special exception to the GNU General Public License, 15117# if you distribute this file as part of a program or library that 15118# is built using GNU Libtool, you may include this file under the 15119# same distribution terms that you use for the rest of that program. 15120# 15121# GNU Libtool is distributed in the hope that it will be useful, 15122# but WITHOUT ANY WARRANTY; without even the implied warranty of 15123# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15124# GNU General Public License for more details. 15125# 15126# You should have received a copy of the GNU General Public License 15127# along with GNU Libtool; see the file COPYING. If not, a copy 15128# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15129# obtained by writing to the Free Software Foundation, Inc., 15130# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15131 15132 15133# The names of the tagged configurations supported by this script. 15134available_tags="" 15135 15136# ### BEGIN LIBTOOL CONFIG 15137 15138# Whether or not to build static libraries. 15139build_old_libs=$enable_static 15140 15141# Which release of libtool.m4 was used? 15142macro_version=$macro_version 15143macro_revision=$macro_revision 15144 15145# Whether or not to build shared libraries. 15146build_libtool_libs=$enable_shared 15147 15148# What type of objects to build. 15149pic_mode=$pic_mode 15150 15151# Whether or not to optimize for fast installation. 15152fast_install=$enable_fast_install 15153 15154# The host system. 15155host_alias=$host_alias 15156host=$host 15157host_os=$host_os 15158 15159# The build system. 15160build_alias=$build_alias 15161build=$build 15162build_os=$build_os 15163 15164# A sed program that does not truncate output. 15165SED=$lt_SED 15166 15167# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15168Xsed="\$SED -e 1s/^X//" 15169 15170# A grep program that handles long lines. 15171GREP=$lt_GREP 15172 15173# An ERE matcher. 15174EGREP=$lt_EGREP 15175 15176# A literal string matcher. 15177FGREP=$lt_FGREP 15178 15179# A BSD- or MS-compatible name lister. 15180NM=$lt_NM 15181 15182# Whether we need soft or hard links. 15183LN_S=$lt_LN_S 15184 15185# What is the maximum length of a command? 15186max_cmd_len=$max_cmd_len 15187 15188# Object file suffix (normally "o"). 15189objext=$ac_objext 15190 15191# Executable file suffix (normally ""). 15192exeext=$exeext 15193 15194# whether the shell understands "unset". 15195lt_unset=$lt_unset 15196 15197# turn spaces into newlines. 15198SP2NL=$lt_lt_SP2NL 15199 15200# turn newlines into spaces. 15201NL2SP=$lt_lt_NL2SP 15202 15203# How to create reloadable object files. 15204reload_flag=$lt_reload_flag 15205reload_cmds=$lt_reload_cmds 15206 15207# An object symbol dumper. 15208OBJDUMP=$lt_OBJDUMP 15209 15210# Method to check whether dependent libraries are shared objects. 15211deplibs_check_method=$lt_deplibs_check_method 15212 15213# Command to use when deplibs_check_method == "file_magic". 15214file_magic_cmd=$lt_file_magic_cmd 15215 15216# The archiver. 15217AR=$lt_AR 15218AR_FLAGS=$lt_AR_FLAGS 15219 15220# A symbol stripping program. 15221STRIP=$lt_STRIP 15222 15223# Commands used to install an old-style archive. 15224RANLIB=$lt_RANLIB 15225old_postinstall_cmds=$lt_old_postinstall_cmds 15226old_postuninstall_cmds=$lt_old_postuninstall_cmds 15227 15228# A C compiler. 15229LTCC=$lt_CC 15230 15231# LTCC compiler flags. 15232LTCFLAGS=$lt_CFLAGS 15233 15234# Take the output of nm and produce a listing of raw symbols and C names. 15235global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15236 15237# Transform the output of nm in a proper C declaration. 15238global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15239 15240# Transform the output of nm in a C name address pair. 15241global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15242 15243# Transform the output of nm in a C name address pair when lib prefix is needed. 15244global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15245 15246# The name of the directory that contains temporary libtool files. 15247objdir=$objdir 15248 15249# Shell to use when invoking shell scripts. 15250SHELL=$lt_SHELL 15251 15252# An echo program that does not interpret backslashes. 15253ECHO=$lt_ECHO 15254 15255# Used to examine libraries when file_magic_cmd begins with "file". 15256MAGIC_CMD=$MAGIC_CMD 15257 15258# Must we lock files when doing compilation? 15259need_locks=$lt_need_locks 15260 15261# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15262DSYMUTIL=$lt_DSYMUTIL 15263 15264# Tool to change global to local symbols on Mac OS X. 15265NMEDIT=$lt_NMEDIT 15266 15267# Tool to manipulate fat objects and archives on Mac OS X. 15268LIPO=$lt_LIPO 15269 15270# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15271OTOOL=$lt_OTOOL 15272 15273# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15274OTOOL64=$lt_OTOOL64 15275 15276# Old archive suffix (normally "a"). 15277libext=$libext 15278 15279# Shared library suffix (normally ".so"). 15280shrext_cmds=$lt_shrext_cmds 15281 15282# The commands to extract the exported symbol list from a shared archive. 15283extract_expsyms_cmds=$lt_extract_expsyms_cmds 15284 15285# Variables whose values should be saved in libtool wrapper scripts and 15286# restored at link time. 15287variables_saved_for_relink=$lt_variables_saved_for_relink 15288 15289# Do we need the "lib" prefix for modules? 15290need_lib_prefix=$need_lib_prefix 15291 15292# Do we need a version for libraries? 15293need_version=$need_version 15294 15295# Library versioning type. 15296version_type=$version_type 15297 15298# Shared library runtime path variable. 15299runpath_var=$runpath_var 15300 15301# Shared library path variable. 15302shlibpath_var=$shlibpath_var 15303 15304# Is shlibpath searched before the hard-coded library search path? 15305shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15306 15307# Format of library name prefix. 15308libname_spec=$lt_libname_spec 15309 15310# List of archive names. First name is the real one, the rest are links. 15311# The last name is the one that the linker finds with -lNAME 15312library_names_spec=$lt_library_names_spec 15313 15314# The coded name of the library, if different from the real name. 15315soname_spec=$lt_soname_spec 15316 15317# Command to use after installation of a shared archive. 15318postinstall_cmds=$lt_postinstall_cmds 15319 15320# Command to use after uninstallation of a shared archive. 15321postuninstall_cmds=$lt_postuninstall_cmds 15322 15323# Commands used to finish a libtool library installation in a directory. 15324finish_cmds=$lt_finish_cmds 15325 15326# As "finish_cmds", except a single script fragment to be evaled but 15327# not shown. 15328finish_eval=$lt_finish_eval 15329 15330# Whether we should hardcode library paths into libraries. 15331hardcode_into_libs=$hardcode_into_libs 15332 15333# Compile-time system search path for libraries. 15334sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15335 15336# Run-time system search path for libraries. 15337sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15338 15339# Whether dlopen is supported. 15340dlopen_support=$enable_dlopen 15341 15342# Whether dlopen of programs is supported. 15343dlopen_self=$enable_dlopen_self 15344 15345# Whether dlopen of statically linked programs is supported. 15346dlopen_self_static=$enable_dlopen_self_static 15347 15348# Commands to strip libraries. 15349old_striplib=$lt_old_striplib 15350striplib=$lt_striplib 15351 15352 15353# The linker used to build libraries. 15354LD=$lt_LD 15355 15356# Commands used to build an old-style archive. 15357old_archive_cmds=$lt_old_archive_cmds 15358 15359# A language specific compiler. 15360CC=$lt_compiler 15361 15362# Is the compiler the GNU compiler? 15363with_gcc=$GCC 15364 15365# Compiler flag to turn off builtin functions. 15366no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15367 15368# How to pass a linker flag through the compiler. 15369wl=$lt_lt_prog_compiler_wl 15370 15371# Additional compiler flags for building library objects. 15372pic_flag=$lt_lt_prog_compiler_pic 15373 15374# Compiler flag to prevent dynamic linking. 15375link_static_flag=$lt_lt_prog_compiler_static 15376 15377# Does compiler simultaneously support -c and -o options? 15378compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15379 15380# Whether or not to add -lc for building shared libraries. 15381build_libtool_need_lc=$archive_cmds_need_lc 15382 15383# Whether or not to disallow shared libs when runtime libs are static. 15384allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15385 15386# Compiler flag to allow reflexive dlopens. 15387export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15388 15389# Compiler flag to generate shared objects directly from archives. 15390whole_archive_flag_spec=$lt_whole_archive_flag_spec 15391 15392# Whether the compiler copes with passing no objects directly. 15393compiler_needs_object=$lt_compiler_needs_object 15394 15395# Create an old-style archive from a shared archive. 15396old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15397 15398# Create a temporary old-style archive to link instead of a shared archive. 15399old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15400 15401# Commands used to build a shared archive. 15402archive_cmds=$lt_archive_cmds 15403archive_expsym_cmds=$lt_archive_expsym_cmds 15404 15405# Commands used to build a loadable module if different from building 15406# a shared archive. 15407module_cmds=$lt_module_cmds 15408module_expsym_cmds=$lt_module_expsym_cmds 15409 15410# Whether we are building with GNU ld or not. 15411with_gnu_ld=$lt_with_gnu_ld 15412 15413# Flag that allows shared libraries with undefined symbols to be built. 15414allow_undefined_flag=$lt_allow_undefined_flag 15415 15416# Flag that enforces no undefined symbols. 15417no_undefined_flag=$lt_no_undefined_flag 15418 15419# Flag to hardcode \$libdir into a binary during linking. 15420# This must work even if \$libdir does not exist 15421hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15422 15423# If ld is used when linking, flag to hardcode \$libdir into a binary 15424# during linking. This must work even if \$libdir does not exist. 15425hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15426 15427# Whether we need a single "-rpath" flag with a separated argument. 15428hardcode_libdir_separator=$lt_hardcode_libdir_separator 15429 15430# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15431# DIR into the resulting binary. 15432hardcode_direct=$hardcode_direct 15433 15434# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15435# DIR into the resulting binary and the resulting library dependency is 15436# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15437# library is relocated. 15438hardcode_direct_absolute=$hardcode_direct_absolute 15439 15440# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15441# into the resulting binary. 15442hardcode_minus_L=$hardcode_minus_L 15443 15444# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15445# into the resulting binary. 15446hardcode_shlibpath_var=$hardcode_shlibpath_var 15447 15448# Set to "yes" if building a shared library automatically hardcodes DIR 15449# into the library and all subsequent libraries and executables linked 15450# against it. 15451hardcode_automatic=$hardcode_automatic 15452 15453# Set to yes if linker adds runtime paths of dependent libraries 15454# to runtime path list. 15455inherit_rpath=$inherit_rpath 15456 15457# Whether libtool must link a program against all its dependency libraries. 15458link_all_deplibs=$link_all_deplibs 15459 15460# Fix the shell variable \$srcfile for the compiler. 15461fix_srcfile_path=$lt_fix_srcfile_path 15462 15463# Set to "yes" if exported symbols are required. 15464always_export_symbols=$always_export_symbols 15465 15466# The commands to list exported symbols. 15467export_symbols_cmds=$lt_export_symbols_cmds 15468 15469# Symbols that should not be listed in the preloaded symbols. 15470exclude_expsyms=$lt_exclude_expsyms 15471 15472# Symbols that must always be exported. 15473include_expsyms=$lt_include_expsyms 15474 15475# Commands necessary for linking programs (against libraries) with templates. 15476prelink_cmds=$lt_prelink_cmds 15477 15478# Specify filename containing input files. 15479file_list_spec=$lt_file_list_spec 15480 15481# How to hardcode a shared library path into an executable. 15482hardcode_action=$hardcode_action 15483 15484# ### END LIBTOOL CONFIG 15485 15486_LT_EOF 15487 15488 case $host_os in 15489 aix3*) 15490 cat <<\_LT_EOF >> "$cfgfile" 15491# AIX sometimes has problems with the GCC collect2 program. For some 15492# reason, if we set the COLLECT_NAMES environment variable, the problems 15493# vanish in a puff of smoke. 15494if test "X${COLLECT_NAMES+set}" != Xset; then 15495 COLLECT_NAMES= 15496 export COLLECT_NAMES 15497fi 15498_LT_EOF 15499 ;; 15500 esac 15501 15502 15503ltmain="$ac_aux_dir/ltmain.sh" 15504 15505 15506 # We use sed instead of cat because bash on DJGPP gets confused if 15507 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15508 # text mode, it properly converts lines to CR/LF. This bash problem 15509 # is reportedly fixed, but why not run on old versions too? 15510 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15511 || (rm -f "$cfgfile"; exit 1) 15512 15513 case $xsi_shell in 15514 yes) 15515 cat << \_LT_EOF >> "$cfgfile" 15516 15517# func_dirname file append nondir_replacement 15518# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15519# otherwise set result to NONDIR_REPLACEMENT. 15520func_dirname () 15521{ 15522 case ${1} in 15523 */*) func_dirname_result="${1%/*}${2}" ;; 15524 * ) func_dirname_result="${3}" ;; 15525 esac 15526} 15527 15528# func_basename file 15529func_basename () 15530{ 15531 func_basename_result="${1##*/}" 15532} 15533 15534# func_dirname_and_basename file append nondir_replacement 15535# perform func_basename and func_dirname in a single function 15536# call: 15537# dirname: Compute the dirname of FILE. If nonempty, 15538# add APPEND to the result, otherwise set result 15539# to NONDIR_REPLACEMENT. 15540# value returned in "$func_dirname_result" 15541# basename: Compute filename of FILE. 15542# value retuned in "$func_basename_result" 15543# Implementation must be kept synchronized with func_dirname 15544# and func_basename. For efficiency, we do not delegate to 15545# those functions but instead duplicate the functionality here. 15546func_dirname_and_basename () 15547{ 15548 case ${1} in 15549 */*) func_dirname_result="${1%/*}${2}" ;; 15550 * ) func_dirname_result="${3}" ;; 15551 esac 15552 func_basename_result="${1##*/}" 15553} 15554 15555# func_stripname prefix suffix name 15556# strip PREFIX and SUFFIX off of NAME. 15557# PREFIX and SUFFIX must not contain globbing or regex special 15558# characters, hashes, percent signs, but SUFFIX may contain a leading 15559# dot (in which case that matches only a dot). 15560func_stripname () 15561{ 15562 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15563 # positional parameters, so assign one to ordinary parameter first. 15564 func_stripname_result=${3} 15565 func_stripname_result=${func_stripname_result#"${1}"} 15566 func_stripname_result=${func_stripname_result%"${2}"} 15567} 15568 15569# func_opt_split 15570func_opt_split () 15571{ 15572 func_opt_split_opt=${1%%=*} 15573 func_opt_split_arg=${1#*=} 15574} 15575 15576# func_lo2o object 15577func_lo2o () 15578{ 15579 case ${1} in 15580 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15581 *) func_lo2o_result=${1} ;; 15582 esac 15583} 15584 15585# func_xform libobj-or-source 15586func_xform () 15587{ 15588 func_xform_result=${1%.*}.lo 15589} 15590 15591# func_arith arithmetic-term... 15592func_arith () 15593{ 15594 func_arith_result=$(( $* )) 15595} 15596 15597# func_len string 15598# STRING may not start with a hyphen. 15599func_len () 15600{ 15601 func_len_result=${#1} 15602} 15603 15604_LT_EOF 15605 ;; 15606 *) # Bourne compatible functions. 15607 cat << \_LT_EOF >> "$cfgfile" 15608 15609# func_dirname file append nondir_replacement 15610# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15611# otherwise set result to NONDIR_REPLACEMENT. 15612func_dirname () 15613{ 15614 # Extract subdirectory from the argument. 15615 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15616 if test "X$func_dirname_result" = "X${1}"; then 15617 func_dirname_result="${3}" 15618 else 15619 func_dirname_result="$func_dirname_result${2}" 15620 fi 15621} 15622 15623# func_basename file 15624func_basename () 15625{ 15626 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15627} 15628 15629 15630# func_stripname prefix suffix name 15631# strip PREFIX and SUFFIX off of NAME. 15632# PREFIX and SUFFIX must not contain globbing or regex special 15633# characters, hashes, percent signs, but SUFFIX may contain a leading 15634# dot (in which case that matches only a dot). 15635# func_strip_suffix prefix name 15636func_stripname () 15637{ 15638 case ${2} in 15639 .*) func_stripname_result=`$ECHO "X${3}" \ 15640 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15641 *) func_stripname_result=`$ECHO "X${3}" \ 15642 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15643 esac 15644} 15645 15646# sed scripts: 15647my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15648my_sed_long_arg='1s/^-[^=]*=//' 15649 15650# func_opt_split 15651func_opt_split () 15652{ 15653 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15654 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15655} 15656 15657# func_lo2o object 15658func_lo2o () 15659{ 15660 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15661} 15662 15663# func_xform libobj-or-source 15664func_xform () 15665{ 15666 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15667} 15668 15669# func_arith arithmetic-term... 15670func_arith () 15671{ 15672 func_arith_result=`expr "$@"` 15673} 15674 15675# func_len string 15676# STRING may not start with a hyphen. 15677func_len () 15678{ 15679 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15680} 15681 15682_LT_EOF 15683esac 15684 15685case $lt_shell_append in 15686 yes) 15687 cat << \_LT_EOF >> "$cfgfile" 15688 15689# func_append var value 15690# Append VALUE to the end of shell variable VAR. 15691func_append () 15692{ 15693 eval "$1+=\$2" 15694} 15695_LT_EOF 15696 ;; 15697 *) 15698 cat << \_LT_EOF >> "$cfgfile" 15699 15700# func_append var value 15701# Append VALUE to the end of shell variable VAR. 15702func_append () 15703{ 15704 eval "$1=\$$1\$2" 15705} 15706 15707_LT_EOF 15708 ;; 15709 esac 15710 15711 15712 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15713 || (rm -f "$cfgfile"; exit 1) 15714 15715 mv -f "$cfgfile" "$ofile" || 15716 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15717 chmod +x "$ofile" 15718 15719 ;; 15720 15721 esac 15722done # for ac_tag 15723 15724 15725{ (exit 0); exit 0; } 15726_ACEOF 15727chmod +x $CONFIG_STATUS 15728ac_clean_files=$ac_clean_files_save 15729 15730test $ac_write_fail = 0 || 15731 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15732$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15733 { (exit 1); exit 1; }; } 15734 15735 15736# configure is writing to config.log, and then calls config.status. 15737# config.status does its own redirection, appending to config.log. 15738# Unfortunately, on DOS this fails, as config.log is still kept open 15739# by configure, so config.status won't be able to write to it; its 15740# output is simply discarded. So we exec the FD to /dev/null, 15741# effectively closing config.log, so it can be properly (re)opened and 15742# appended to by config.status. When coming back to configure, we 15743# need to make the FD available again. 15744if test "$no_create" != yes; then 15745 ac_cs_success=: 15746 ac_config_status_args= 15747 test "$silent" = yes && 15748 ac_config_status_args="$ac_config_status_args --quiet" 15749 exec 5>/dev/null 15750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15751 exec 5>>config.log 15752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15753 # would make configure fail if this is the last instruction. 15754 $ac_cs_success || { (exit 1); exit 1; } 15755fi 15756if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15757 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15758$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15759fi 15760 15761