configure revision fc27e79c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-input-mouse 1.5.0. 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-mouse' 747PACKAGE_TARNAME='xf86-input-mouse' 748PACKAGE_VERSION='1.5.0' 749PACKAGE_STRING='xf86-input-mouse 1.5.0' 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 793MAKE_HTML 794MAKE_PDF 795MAKE_PS 796MAKE_TEXT 797BUILD_PDFDOC_FALSE 798BUILD_PDFDOC_TRUE 799BUILD_LINUXDOC_FALSE 800BUILD_LINUXDOC_TRUE 801PS2PDF 802LINUXDOC 803LINT_FALSE 804LINT_TRUE 805LINT_FLAGS 806LINT 807OS_MOUSE_NAME 808XORG_LIBS 809XORG_CFLAGS 810PKG_CONFIG 811inputdir 812ADMIN_MAN_DIR 813DRIVER_MAN_DIR 814MISC_MAN_DIR 815FILE_MAN_DIR 816LIB_MAN_DIR 817APP_MAN_DIR 818ADMIN_MAN_SUFFIX 819DRIVER_MAN_SUFFIX 820MISC_MAN_SUFFIX 821FILE_MAN_SUFFIX 822LIB_MAN_SUFFIX 823APP_MAN_SUFFIX 824distcleancheck_listfiles 825CHANGELOG_CMD 826AM_BACKSLASH 827AM_DEFAULT_VERBOSITY 828CWARNFLAGS 829CPP 830OTOOL64 831OTOOL 832LIPO 833NMEDIT 834DSYMUTIL 835lt_ECHO 836RANLIB 837AR 838OBJDUMP 839LN_S 840NM 841ac_ct_DUMPBIN 842DUMPBIN 843LD 844FGREP 845EGREP 846GREP 847SED 848am__fastdepCC_FALSE 849am__fastdepCC_TRUE 850CCDEPMODE 851AMDEPBACKSLASH 852AMDEP_FALSE 853AMDEP_TRUE 854am__quote 855am__include 856DEPDIR 857OBJEXT 858EXEEXT 859ac_ct_CC 860CPPFLAGS 861LDFLAGS 862CFLAGS 863CC 864host_os 865host_vendor 866host_cpu 867host 868build_os 869build_vendor 870build_cpu 871build 872LIBTOOL 873DRIVER_NAME 874MAINT 875MAINTAINER_MODE_FALSE 876MAINTAINER_MODE_TRUE 877am__untar 878am__tar 879AMTAR 880am__leading_dot 881SET_MAKE 882AWK 883mkdir_p 884MKDIR_P 885INSTALL_STRIP_PROGRAM 886STRIP 887install_sh 888MAKEINFO 889AUTOHEADER 890AUTOMAKE 891AUTOCONF 892ACLOCAL 893VERSION 894PACKAGE 895CYGPATH_W 896am__isrc 897INSTALL_DATA 898INSTALL_SCRIPT 899INSTALL_PROGRAM 900target_alias 901host_alias 902build_alias 903LIBS 904ECHO_T 905ECHO_N 906ECHO_C 907DEFS 908mandir 909localedir 910libdir 911psdir 912pdfdir 913dvidir 914htmldir 915infodir 916docdir 917oldincludedir 918includedir 919localstatedir 920sharedstatedir 921sysconfdir 922datadir 923datarootdir 924libexecdir 925sbindir 926bindir 927program_transform_name 928prefix 929exec_prefix 930PACKAGE_BUGREPORT 931PACKAGE_STRING 932PACKAGE_VERSION 933PACKAGE_TARNAME 934PACKAGE_NAME 935PATH_SEPARATOR 936SHELL' 937ac_subst_files='' 938ac_user_opts=' 939enable_option_checking 940enable_maintainer_mode 941enable_static 942enable_shared 943with_pic 944enable_fast_install 945enable_dependency_tracking 946with_gnu_ld 947enable_libtool_lock 948enable_silent_rules 949enable_strict_compilation 950with_release_version 951with_xorg_module_dir 952with_lint 953' 954 ac_precious_vars='build_alias 955host_alias 956target_alias 957CC 958CFLAGS 959LDFLAGS 960LIBS 961CPPFLAGS 962CPP 963PKG_CONFIG 964XORG_CFLAGS 965XORG_LIBS' 966 967 968# Initialize some variables set by options. 969ac_init_help= 970ac_init_version=false 971ac_unrecognized_opts= 972ac_unrecognized_sep= 973# The variables have the same names as the options, with 974# dashes changed to underlines. 975cache_file=/dev/null 976exec_prefix=NONE 977no_create= 978no_recursion= 979prefix=NONE 980program_prefix=NONE 981program_suffix=NONE 982program_transform_name=s,x,x, 983silent= 984site= 985srcdir= 986verbose= 987x_includes=NONE 988x_libraries=NONE 989 990# Installation directory options. 991# These are left unexpanded so users can "make install exec_prefix=/foo" 992# and all the variables that are supposed to be based on exec_prefix 993# by default will actually change. 994# Use braces instead of parens because sh, perl, etc. also accept them. 995# (The list follows the same order as the GNU Coding Standards.) 996bindir='${exec_prefix}/bin' 997sbindir='${exec_prefix}/sbin' 998libexecdir='${exec_prefix}/libexec' 999datarootdir='${prefix}/share' 1000datadir='${datarootdir}' 1001sysconfdir='${prefix}/etc' 1002sharedstatedir='${prefix}/com' 1003localstatedir='${prefix}/var' 1004includedir='${prefix}/include' 1005oldincludedir='/usr/include' 1006docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1007infodir='${datarootdir}/info' 1008htmldir='${docdir}' 1009dvidir='${docdir}' 1010pdfdir='${docdir}' 1011psdir='${docdir}' 1012libdir='${exec_prefix}/lib' 1013localedir='${datarootdir}/locale' 1014mandir='${datarootdir}/man' 1015 1016ac_prev= 1017ac_dashdash= 1018for ac_option 1019do 1020 # If the previous option needs an argument, assign it. 1021 if test -n "$ac_prev"; then 1022 eval $ac_prev=\$ac_option 1023 ac_prev= 1024 continue 1025 fi 1026 1027 case $ac_option in 1028 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1029 *) ac_optarg=yes ;; 1030 esac 1031 1032 # Accept the important Cygnus configure options, so we can diagnose typos. 1033 1034 case $ac_dashdash$ac_option in 1035 --) 1036 ac_dashdash=yes ;; 1037 1038 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1039 ac_prev=bindir ;; 1040 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1041 bindir=$ac_optarg ;; 1042 1043 -build | --build | --buil | --bui | --bu) 1044 ac_prev=build_alias ;; 1045 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1046 build_alias=$ac_optarg ;; 1047 1048 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1049 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1050 ac_prev=cache_file ;; 1051 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1052 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1053 cache_file=$ac_optarg ;; 1054 1055 --config-cache | -C) 1056 cache_file=config.cache ;; 1057 1058 -datadir | --datadir | --datadi | --datad) 1059 ac_prev=datadir ;; 1060 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1061 datadir=$ac_optarg ;; 1062 1063 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1064 | --dataroo | --dataro | --datar) 1065 ac_prev=datarootdir ;; 1066 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1067 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1068 datarootdir=$ac_optarg ;; 1069 1070 -disable-* | --disable-*) 1071 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1072 # Reject names that are not valid shell variable names. 1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1074 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1075 { (exit 1); exit 1; }; } 1076 ac_useropt_orig=$ac_useropt 1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1078 case $ac_user_opts in 1079 *" 1080"enable_$ac_useropt" 1081"*) ;; 1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1083 ac_unrecognized_sep=', ';; 1084 esac 1085 eval enable_$ac_useropt=no ;; 1086 1087 -docdir | --docdir | --docdi | --doc | --do) 1088 ac_prev=docdir ;; 1089 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1090 docdir=$ac_optarg ;; 1091 1092 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1093 ac_prev=dvidir ;; 1094 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1095 dvidir=$ac_optarg ;; 1096 1097 -enable-* | --enable-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1102 { (exit 1); exit 1; }; } 1103 ac_useropt_orig=$ac_useropt 1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1105 case $ac_user_opts in 1106 *" 1107"enable_$ac_useropt" 1108"*) ;; 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1110 ac_unrecognized_sep=', ';; 1111 esac 1112 eval enable_$ac_useropt=\$ac_optarg ;; 1113 1114 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1115 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1116 | --exec | --exe | --ex) 1117 ac_prev=exec_prefix ;; 1118 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1119 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1120 | --exec=* | --exe=* | --ex=*) 1121 exec_prefix=$ac_optarg ;; 1122 1123 -gas | --gas | --ga | --g) 1124 # Obsolete; use --with-gas. 1125 with_gas=yes ;; 1126 1127 -help | --help | --hel | --he | -h) 1128 ac_init_help=long ;; 1129 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1130 ac_init_help=recursive ;; 1131 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1132 ac_init_help=short ;; 1133 1134 -host | --host | --hos | --ho) 1135 ac_prev=host_alias ;; 1136 -host=* | --host=* | --hos=* | --ho=*) 1137 host_alias=$ac_optarg ;; 1138 1139 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1140 ac_prev=htmldir ;; 1141 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1142 | --ht=*) 1143 htmldir=$ac_optarg ;; 1144 1145 -includedir | --includedir | --includedi | --included | --include \ 1146 | --includ | --inclu | --incl | --inc) 1147 ac_prev=includedir ;; 1148 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1149 | --includ=* | --inclu=* | --incl=* | --inc=*) 1150 includedir=$ac_optarg ;; 1151 1152 -infodir | --infodir | --infodi | --infod | --info | --inf) 1153 ac_prev=infodir ;; 1154 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1155 infodir=$ac_optarg ;; 1156 1157 -libdir | --libdir | --libdi | --libd) 1158 ac_prev=libdir ;; 1159 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1160 libdir=$ac_optarg ;; 1161 1162 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1163 | --libexe | --libex | --libe) 1164 ac_prev=libexecdir ;; 1165 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1166 | --libexe=* | --libex=* | --libe=*) 1167 libexecdir=$ac_optarg ;; 1168 1169 -localedir | --localedir | --localedi | --localed | --locale) 1170 ac_prev=localedir ;; 1171 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1172 localedir=$ac_optarg ;; 1173 1174 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1175 | --localstate | --localstat | --localsta | --localst | --locals) 1176 ac_prev=localstatedir ;; 1177 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1178 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1179 localstatedir=$ac_optarg ;; 1180 1181 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1182 ac_prev=mandir ;; 1183 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1184 mandir=$ac_optarg ;; 1185 1186 -nfp | --nfp | --nf) 1187 # Obsolete; use --without-fp. 1188 with_fp=no ;; 1189 1190 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1191 | --no-cr | --no-c | -n) 1192 no_create=yes ;; 1193 1194 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1195 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1196 no_recursion=yes ;; 1197 1198 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1199 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1200 | --oldin | --oldi | --old | --ol | --o) 1201 ac_prev=oldincludedir ;; 1202 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1203 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1204 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1205 oldincludedir=$ac_optarg ;; 1206 1207 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1208 ac_prev=prefix ;; 1209 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1210 prefix=$ac_optarg ;; 1211 1212 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1213 | --program-pre | --program-pr | --program-p) 1214 ac_prev=program_prefix ;; 1215 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1216 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1217 program_prefix=$ac_optarg ;; 1218 1219 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1220 | --program-suf | --program-su | --program-s) 1221 ac_prev=program_suffix ;; 1222 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1223 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1224 program_suffix=$ac_optarg ;; 1225 1226 -program-transform-name | --program-transform-name \ 1227 | --program-transform-nam | --program-transform-na \ 1228 | --program-transform-n | --program-transform- \ 1229 | --program-transform | --program-transfor \ 1230 | --program-transfo | --program-transf \ 1231 | --program-trans | --program-tran \ 1232 | --progr-tra | --program-tr | --program-t) 1233 ac_prev=program_transform_name ;; 1234 -program-transform-name=* | --program-transform-name=* \ 1235 | --program-transform-nam=* | --program-transform-na=* \ 1236 | --program-transform-n=* | --program-transform-=* \ 1237 | --program-transform=* | --program-transfor=* \ 1238 | --program-transfo=* | --program-transf=* \ 1239 | --program-trans=* | --program-tran=* \ 1240 | --progr-tra=* | --program-tr=* | --program-t=*) 1241 program_transform_name=$ac_optarg ;; 1242 1243 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1244 ac_prev=pdfdir ;; 1245 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1246 pdfdir=$ac_optarg ;; 1247 1248 -psdir | --psdir | --psdi | --psd | --ps) 1249 ac_prev=psdir ;; 1250 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1251 psdir=$ac_optarg ;; 1252 1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1254 | -silent | --silent | --silen | --sile | --sil) 1255 silent=yes ;; 1256 1257 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1258 ac_prev=sbindir ;; 1259 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1260 | --sbi=* | --sb=*) 1261 sbindir=$ac_optarg ;; 1262 1263 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1264 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1265 | --sharedst | --shareds | --shared | --share | --shar \ 1266 | --sha | --sh) 1267 ac_prev=sharedstatedir ;; 1268 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1269 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1270 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1271 | --sha=* | --sh=*) 1272 sharedstatedir=$ac_optarg ;; 1273 1274 -site | --site | --sit) 1275 ac_prev=site ;; 1276 -site=* | --site=* | --sit=*) 1277 site=$ac_optarg ;; 1278 1279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1280 ac_prev=srcdir ;; 1281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1282 srcdir=$ac_optarg ;; 1283 1284 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1285 | --syscon | --sysco | --sysc | --sys | --sy) 1286 ac_prev=sysconfdir ;; 1287 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1288 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1289 sysconfdir=$ac_optarg ;; 1290 1291 -target | --target | --targe | --targ | --tar | --ta | --t) 1292 ac_prev=target_alias ;; 1293 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1294 target_alias=$ac_optarg ;; 1295 1296 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1297 verbose=yes ;; 1298 1299 -version | --version | --versio | --versi | --vers | -V) 1300 ac_init_version=: ;; 1301 1302 -with-* | --with-*) 1303 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1304 # Reject names that are not valid shell variable names. 1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1306 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1307 { (exit 1); exit 1; }; } 1308 ac_useropt_orig=$ac_useropt 1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1310 case $ac_user_opts in 1311 *" 1312"with_$ac_useropt" 1313"*) ;; 1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1315 ac_unrecognized_sep=', ';; 1316 esac 1317 eval with_$ac_useropt=\$ac_optarg ;; 1318 1319 -without-* | --without-*) 1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1321 # Reject names that are not valid shell variable names. 1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1323 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1324 { (exit 1); exit 1; }; } 1325 ac_useropt_orig=$ac_useropt 1326 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1327 case $ac_user_opts in 1328 *" 1329"with_$ac_useropt" 1330"*) ;; 1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1332 ac_unrecognized_sep=', ';; 1333 esac 1334 eval with_$ac_useropt=no ;; 1335 1336 --x) 1337 # Obsolete; use --with-x. 1338 with_x=yes ;; 1339 1340 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1341 | --x-incl | --x-inc | --x-in | --x-i) 1342 ac_prev=x_includes ;; 1343 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1344 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1345 x_includes=$ac_optarg ;; 1346 1347 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1348 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1349 ac_prev=x_libraries ;; 1350 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1351 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1352 x_libraries=$ac_optarg ;; 1353 1354 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1355Try \`$0 --help' for more information." >&2 1356 { (exit 1); exit 1; }; } 1357 ;; 1358 1359 *=*) 1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1361 # Reject names that are not valid shell variable names. 1362 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1363 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1364 { (exit 1); exit 1; }; } 1365 eval $ac_envvar=\$ac_optarg 1366 export $ac_envvar ;; 1367 1368 *) 1369 # FIXME: should be removed in autoconf 3.0. 1370 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1371 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1372 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1373 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1374 ;; 1375 1376 esac 1377done 1378 1379if test -n "$ac_prev"; then 1380 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1381 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1382 { (exit 1); exit 1; }; } 1383fi 1384 1385if test -n "$ac_unrecognized_opts"; then 1386 case $enable_option_checking in 1387 no) ;; 1388 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1389 { (exit 1); exit 1; }; } ;; 1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1391 esac 1392fi 1393 1394# Check all directory arguments for consistency. 1395for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1396 datadir sysconfdir sharedstatedir localstatedir includedir \ 1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1398 libdir localedir mandir 1399do 1400 eval ac_val=\$$ac_var 1401 # Remove trailing slashes. 1402 case $ac_val in 1403 */ ) 1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1405 eval $ac_var=\$ac_val;; 1406 esac 1407 # Be sure to have absolute directory names. 1408 case $ac_val in 1409 [\\/$]* | ?:[\\/]* ) continue;; 1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1411 esac 1412 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1413 { (exit 1); exit 1; }; } 1414done 1415 1416# There might be people who depend on the old broken behavior: `$host' 1417# used to hold the argument of --host etc. 1418# FIXME: To remove some day. 1419build=$build_alias 1420host=$host_alias 1421target=$target_alias 1422 1423# FIXME: To remove some day. 1424if test "x$host_alias" != x; then 1425 if test "x$build_alias" = x; then 1426 cross_compiling=maybe 1427 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1428 If a cross compiler is detected then cross compile mode will be used." >&2 1429 elif test "x$build_alias" != "x$host_alias"; then 1430 cross_compiling=yes 1431 fi 1432fi 1433 1434ac_tool_prefix= 1435test -n "$host_alias" && ac_tool_prefix=$host_alias- 1436 1437test "$silent" = yes && exec 6>/dev/null 1438 1439 1440ac_pwd=`pwd` && test -n "$ac_pwd" && 1441ac_ls_di=`ls -di .` && 1442ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1443 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1444 { (exit 1); exit 1; }; } 1445test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1446 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1447 { (exit 1); exit 1; }; } 1448 1449 1450# Find the source files, if location was not specified. 1451if test -z "$srcdir"; then 1452 ac_srcdir_defaulted=yes 1453 # Try the directory containing this script, then the parent directory. 1454 ac_confdir=`$as_dirname -- "$as_myself" || 1455$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1456 X"$as_myself" : 'X\(//\)[^/]' \| \ 1457 X"$as_myself" : 'X\(//\)$' \| \ 1458 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1459$as_echo X"$as_myself" | 1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1461 s//\1/ 1462 q 1463 } 1464 /^X\(\/\/\)[^/].*/{ 1465 s//\1/ 1466 q 1467 } 1468 /^X\(\/\/\)$/{ 1469 s//\1/ 1470 q 1471 } 1472 /^X\(\/\).*/{ 1473 s//\1/ 1474 q 1475 } 1476 s/.*/./; q'` 1477 srcdir=$ac_confdir 1478 if test ! -r "$srcdir/$ac_unique_file"; then 1479 srcdir=.. 1480 fi 1481else 1482 ac_srcdir_defaulted=no 1483fi 1484if test ! -r "$srcdir/$ac_unique_file"; then 1485 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1486 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1487 { (exit 1); exit 1; }; } 1488fi 1489ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1490ac_abs_confdir=`( 1491 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1492 { (exit 1); exit 1; }; } 1493 pwd)` 1494# When building in place, set srcdir=. 1495if test "$ac_abs_confdir" = "$ac_pwd"; then 1496 srcdir=. 1497fi 1498# Remove unnecessary trailing slashes from srcdir. 1499# Double slashes in file names in object file debugging info 1500# mess up M-x gdb in Emacs. 1501case $srcdir in 1502*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1503esac 1504for ac_var in $ac_precious_vars; do 1505 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1506 eval ac_env_${ac_var}_value=\$${ac_var} 1507 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1508 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1509done 1510 1511# 1512# Report the --help message. 1513# 1514if test "$ac_init_help" = "long"; then 1515 # Omit some internal or obsolete options to make the list less imposing. 1516 # This message is too long to be a string in the A/UX 3.1 sh. 1517 cat <<_ACEOF 1518\`configure' configures xf86-input-mouse 1.5.0 to adapt to many kinds of systems. 1519 1520Usage: $0 [OPTION]... [VAR=VALUE]... 1521 1522To assign environment variables (e.g., CC, CFLAGS...), specify them as 1523VAR=VALUE. See below for descriptions of some of the useful variables. 1524 1525Defaults for the options are specified in brackets. 1526 1527Configuration: 1528 -h, --help display this help and exit 1529 --help=short display options specific to this package 1530 --help=recursive display the short help of all the included packages 1531 -V, --version display version information and exit 1532 -q, --quiet, --silent do not print \`checking...' messages 1533 --cache-file=FILE cache test results in FILE [disabled] 1534 -C, --config-cache alias for \`--cache-file=config.cache' 1535 -n, --no-create do not create output files 1536 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1537 1538Installation directories: 1539 --prefix=PREFIX install architecture-independent files in PREFIX 1540 [$ac_default_prefix] 1541 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1542 [PREFIX] 1543 1544By default, \`make install' will install all the files in 1545\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1546an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1547for instance \`--prefix=\$HOME'. 1548 1549For better control, use the options below. 1550 1551Fine tuning of the installation directories: 1552 --bindir=DIR user executables [EPREFIX/bin] 1553 --sbindir=DIR system admin executables [EPREFIX/sbin] 1554 --libexecdir=DIR program executables [EPREFIX/libexec] 1555 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1556 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1557 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1558 --libdir=DIR object code libraries [EPREFIX/lib] 1559 --includedir=DIR C header files [PREFIX/include] 1560 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1561 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1562 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1563 --infodir=DIR info documentation [DATAROOTDIR/info] 1564 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1565 --mandir=DIR man documentation [DATAROOTDIR/man] 1566 --docdir=DIR documentation root 1567 [DATAROOTDIR/doc/xf86-input-mouse] 1568 --htmldir=DIR html documentation [DOCDIR] 1569 --dvidir=DIR dvi documentation [DOCDIR] 1570 --pdfdir=DIR pdf documentation [DOCDIR] 1571 --psdir=DIR ps documentation [DOCDIR] 1572_ACEOF 1573 1574 cat <<\_ACEOF 1575 1576Program names: 1577 --program-prefix=PREFIX prepend PREFIX to installed program names 1578 --program-suffix=SUFFIX append SUFFIX to installed program names 1579 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1580 1581System types: 1582 --build=BUILD configure for building on BUILD [guessed] 1583 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1584_ACEOF 1585fi 1586 1587if test -n "$ac_init_help"; then 1588 case $ac_init_help in 1589 short | recursive ) echo "Configuration of xf86-input-mouse 1.5.0:";; 1590 esac 1591 cat <<\_ACEOF 1592 1593Optional Features: 1594 --disable-option-checking ignore unrecognized --enable/--with options 1595 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1596 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1597 --enable-maintainer-mode enable make rules and dependencies not useful 1598 (and sometimes confusing) to the casual installer 1599 --enable-static[=PKGS] build static libraries [default=no] 1600 --enable-shared[=PKGS] build shared libraries [default=yes] 1601 --enable-fast-install[=PKGS] 1602 optimize for fast installation [default=yes] 1603 --disable-dependency-tracking speeds up one-time build 1604 --enable-dependency-tracking do not reject slow dependency extractors 1605 --disable-libtool-lock avoid locking (might break parallel builds) 1606 --enable-silent-rules less verbose build output (undo: `make V=1') 1607 --disable-silent-rules verbose build output (undo: `make V=0') 1608 --enable-strict-compilation 1609 Enable all warnings from compiler and make them 1610 errors (default: disabled) 1611 1612Optional Packages: 1613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1615 --with-pic try to use only PIC/non-PIC objects [default=use 1616 both] 1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1618 --with-release-version=STRING 1619 Use release version string in package name 1620 --with-xorg-module-dir=DIR 1621 Default xorg module directory 1622 [default=$libdir/xorg/modules] 1623 --with-lint Use a lint-style source code checker (default: 1624 disabled) 1625 1626Some influential environment variables: 1627 CC C compiler command 1628 CFLAGS C compiler flags 1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1630 nonstandard directory <lib dir> 1631 LIBS libraries to pass to the linker, e.g. -l<library> 1632 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1633 you have headers in a nonstandard directory <include dir> 1634 CPP C preprocessor 1635 PKG_CONFIG path to pkg-config utility 1636 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1637 XORG_LIBS linker flags for XORG, overriding pkg-config 1638 1639Use these variables to override the choices made by `configure' or to help 1640it to find libraries and programs with nonstandard names/locations. 1641 1642Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1643_ACEOF 1644ac_status=$? 1645fi 1646 1647if test "$ac_init_help" = "recursive"; then 1648 # If there are subdirs, report their specific --help. 1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1650 test -d "$ac_dir" || 1651 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1652 continue 1653 ac_builddir=. 1654 1655case "$ac_dir" in 1656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1657*) 1658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1659 # A ".." for each directory in $ac_dir_suffix. 1660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1661 case $ac_top_builddir_sub in 1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1664 esac ;; 1665esac 1666ac_abs_top_builddir=$ac_pwd 1667ac_abs_builddir=$ac_pwd$ac_dir_suffix 1668# for backward compatibility: 1669ac_top_builddir=$ac_top_build_prefix 1670 1671case $srcdir in 1672 .) # We are building in place. 1673 ac_srcdir=. 1674 ac_top_srcdir=$ac_top_builddir_sub 1675 ac_abs_top_srcdir=$ac_pwd ;; 1676 [\\/]* | ?:[\\/]* ) # Absolute name. 1677 ac_srcdir=$srcdir$ac_dir_suffix; 1678 ac_top_srcdir=$srcdir 1679 ac_abs_top_srcdir=$srcdir ;; 1680 *) # Relative name. 1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1682 ac_top_srcdir=$ac_top_build_prefix$srcdir 1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1684esac 1685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1686 1687 cd "$ac_dir" || { ac_status=$?; continue; } 1688 # Check for guested configure. 1689 if test -f "$ac_srcdir/configure.gnu"; then 1690 echo && 1691 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1692 elif test -f "$ac_srcdir/configure"; then 1693 echo && 1694 $SHELL "$ac_srcdir/configure" --help=recursive 1695 else 1696 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1697 fi || ac_status=$? 1698 cd "$ac_pwd" || { ac_status=$?; break; } 1699 done 1700fi 1701 1702test -n "$ac_init_help" && exit $ac_status 1703if $ac_init_version; then 1704 cat <<\_ACEOF 1705xf86-input-mouse configure 1.5.0 1706generated by GNU Autoconf 2.63 1707 1708Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17092002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1710This configure script is free software; the Free Software Foundation 1711gives unlimited permission to copy, distribute and modify it. 1712_ACEOF 1713 exit 1714fi 1715cat >config.log <<_ACEOF 1716This file contains any messages produced by compilers while 1717running configure, to aid debugging if configure makes a mistake. 1718 1719It was created by xf86-input-mouse $as_me 1.5.0, which was 1720generated by GNU Autoconf 2.63. Invocation command line was 1721 1722 $ $0 $@ 1723 1724_ACEOF 1725exec 5>>config.log 1726{ 1727cat <<_ASUNAME 1728## --------- ## 1729## Platform. ## 1730## --------- ## 1731 1732hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1733uname -m = `(uname -m) 2>/dev/null || echo unknown` 1734uname -r = `(uname -r) 2>/dev/null || echo unknown` 1735uname -s = `(uname -s) 2>/dev/null || echo unknown` 1736uname -v = `(uname -v) 2>/dev/null || echo unknown` 1737 1738/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1739/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1740 1741/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1742/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1743/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1744/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1745/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1746/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1747/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1748 1749_ASUNAME 1750 1751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1752for as_dir in $PATH 1753do 1754 IFS=$as_save_IFS 1755 test -z "$as_dir" && as_dir=. 1756 $as_echo "PATH: $as_dir" 1757done 1758IFS=$as_save_IFS 1759 1760} >&5 1761 1762cat >&5 <<_ACEOF 1763 1764 1765## ----------- ## 1766## Core tests. ## 1767## ----------- ## 1768 1769_ACEOF 1770 1771 1772# Keep a trace of the command line. 1773# Strip out --no-create and --no-recursion so they do not pile up. 1774# Strip out --silent because we don't want to record it for future runs. 1775# Also quote any args containing shell meta-characters. 1776# Make two passes to allow for proper duplicate-argument suppression. 1777ac_configure_args= 1778ac_configure_args0= 1779ac_configure_args1= 1780ac_must_keep_next=false 1781for ac_pass in 1 2 1782do 1783 for ac_arg 1784 do 1785 case $ac_arg in 1786 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1788 | -silent | --silent | --silen | --sile | --sil) 1789 continue ;; 1790 *\'*) 1791 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1792 esac 1793 case $ac_pass in 1794 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1795 2) 1796 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1797 if test $ac_must_keep_next = true; then 1798 ac_must_keep_next=false # Got value, back to normal. 1799 else 1800 case $ac_arg in 1801 *=* | --config-cache | -C | -disable-* | --disable-* \ 1802 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1803 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1804 | -with-* | --with-* | -without-* | --without-* | --x) 1805 case "$ac_configure_args0 " in 1806 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1807 esac 1808 ;; 1809 -* ) ac_must_keep_next=true ;; 1810 esac 1811 fi 1812 ac_configure_args="$ac_configure_args '$ac_arg'" 1813 ;; 1814 esac 1815 done 1816done 1817$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1818$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1819 1820# When interrupted or exit'd, cleanup temporary files, and complete 1821# config.log. We remove comments because anyway the quotes in there 1822# would cause problems or look ugly. 1823# WARNING: Use '\'' to represent an apostrophe within the trap. 1824# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1825trap 'exit_status=$? 1826 # Save into config.log some information that might help in debugging. 1827 { 1828 echo 1829 1830 cat <<\_ASBOX 1831## ---------------- ## 1832## Cache variables. ## 1833## ---------------- ## 1834_ASBOX 1835 echo 1836 # The following way of writing the cache mishandles newlines in values, 1837( 1838 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1839 eval ac_val=\$$ac_var 1840 case $ac_val in #( 1841 *${as_nl}*) 1842 case $ac_var in #( 1843 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1844$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1845 esac 1846 case $ac_var in #( 1847 _ | IFS | as_nl) ;; #( 1848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1849 *) $as_unset $ac_var ;; 1850 esac ;; 1851 esac 1852 done 1853 (set) 2>&1 | 1854 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1855 *${as_nl}ac_space=\ *) 1856 sed -n \ 1857 "s/'\''/'\''\\\\'\'''\''/g; 1858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1859 ;; #( 1860 *) 1861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1862 ;; 1863 esac | 1864 sort 1865) 1866 echo 1867 1868 cat <<\_ASBOX 1869## ----------------- ## 1870## Output variables. ## 1871## ----------------- ## 1872_ASBOX 1873 echo 1874 for ac_var in $ac_subst_vars 1875 do 1876 eval ac_val=\$$ac_var 1877 case $ac_val in 1878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1879 esac 1880 $as_echo "$ac_var='\''$ac_val'\''" 1881 done | sort 1882 echo 1883 1884 if test -n "$ac_subst_files"; then 1885 cat <<\_ASBOX 1886## ------------------- ## 1887## File substitutions. ## 1888## ------------------- ## 1889_ASBOX 1890 echo 1891 for ac_var in $ac_subst_files 1892 do 1893 eval ac_val=\$$ac_var 1894 case $ac_val in 1895 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1896 esac 1897 $as_echo "$ac_var='\''$ac_val'\''" 1898 done | sort 1899 echo 1900 fi 1901 1902 if test -s confdefs.h; then 1903 cat <<\_ASBOX 1904## ----------- ## 1905## confdefs.h. ## 1906## ----------- ## 1907_ASBOX 1908 echo 1909 cat confdefs.h 1910 echo 1911 fi 1912 test "$ac_signal" != 0 && 1913 $as_echo "$as_me: caught signal $ac_signal" 1914 $as_echo "$as_me: exit $exit_status" 1915 } >&5 1916 rm -f core *.core core.conftest.* && 1917 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1918 exit $exit_status 1919' 0 1920for ac_signal in 1 2 13 15; do 1921 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1922done 1923ac_signal=0 1924 1925# confdefs.h avoids OS command line length limits that DEFS can exceed. 1926rm -f -r conftest* confdefs.h 1927 1928# Predefined preprocessor variables. 1929 1930cat >>confdefs.h <<_ACEOF 1931#define PACKAGE_NAME "$PACKAGE_NAME" 1932_ACEOF 1933 1934 1935cat >>confdefs.h <<_ACEOF 1936#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1937_ACEOF 1938 1939 1940cat >>confdefs.h <<_ACEOF 1941#define PACKAGE_VERSION "$PACKAGE_VERSION" 1942_ACEOF 1943 1944 1945cat >>confdefs.h <<_ACEOF 1946#define PACKAGE_STRING "$PACKAGE_STRING" 1947_ACEOF 1948 1949 1950cat >>confdefs.h <<_ACEOF 1951#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1952_ACEOF 1953 1954 1955# Let the site file select an alternate cache file if it wants to. 1956# Prefer an explicitly selected file to automatically selected ones. 1957ac_site_file1=NONE 1958ac_site_file2=NONE 1959if test -n "$CONFIG_SITE"; then 1960 ac_site_file1=$CONFIG_SITE 1961elif test "x$prefix" != xNONE; then 1962 ac_site_file1=$prefix/share/config.site 1963 ac_site_file2=$prefix/etc/config.site 1964else 1965 ac_site_file1=$ac_default_prefix/share/config.site 1966 ac_site_file2=$ac_default_prefix/etc/config.site 1967fi 1968for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1969do 1970 test "x$ac_site_file" = xNONE && continue 1971 if test -r "$ac_site_file"; then 1972 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1973$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1974 sed 's/^/| /' "$ac_site_file" >&5 1975 . "$ac_site_file" 1976 fi 1977done 1978 1979if test -r "$cache_file"; then 1980 # Some versions of bash will fail to source /dev/null (special 1981 # files actually), so we avoid doing that. 1982 if test -f "$cache_file"; then 1983 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1984$as_echo "$as_me: loading cache $cache_file" >&6;} 1985 case $cache_file in 1986 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1987 *) . "./$cache_file";; 1988 esac 1989 fi 1990else 1991 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1992$as_echo "$as_me: creating cache $cache_file" >&6;} 1993 >$cache_file 1994fi 1995 1996# Check that the precious variables saved in the cache have kept the same 1997# value. 1998ac_cache_corrupted=false 1999for ac_var in $ac_precious_vars; do 2000 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2001 eval ac_new_set=\$ac_env_${ac_var}_set 2002 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2003 eval ac_new_val=\$ac_env_${ac_var}_value 2004 case $ac_old_set,$ac_new_set in 2005 set,) 2006 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2007$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2008 ac_cache_corrupted=: ;; 2009 ,set) 2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2011$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2012 ac_cache_corrupted=: ;; 2013 ,);; 2014 *) 2015 if test "x$ac_old_val" != "x$ac_new_val"; then 2016 # differences in whitespace do not lead to failure. 2017 ac_old_val_w=`echo x $ac_old_val` 2018 ac_new_val_w=`echo x $ac_new_val` 2019 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2020 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2021$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2022 ac_cache_corrupted=: 2023 else 2024 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2025$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2026 eval $ac_var=\$ac_old_val 2027 fi 2028 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2029$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2030 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2031$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2032 fi;; 2033 esac 2034 # Pass precious variables to config.status. 2035 if test "$ac_new_set" = set; then 2036 case $ac_new_val in 2037 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2038 *) ac_arg=$ac_var=$ac_new_val ;; 2039 esac 2040 case " $ac_configure_args " in 2041 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2042 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2043 esac 2044 fi 2045done 2046if $ac_cache_corrupted; then 2047 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2049 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2050$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2051 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2052$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2053 { (exit 1); exit 1; }; } 2054fi 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080ac_ext=c 2081ac_cpp='$CPP $CPPFLAGS' 2082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2084ac_compiler_gnu=$ac_cv_c_compiler_gnu 2085 2086 2087 2088# Require xorg-macros version >= 1.3.0 for XORG_DEFAULT_OPTIONS 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102ac_aux_dir= 2103for ac_dir in . "$srcdir"/.; do 2104 if 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/install.sh"; then 2109 ac_aux_dir=$ac_dir 2110 ac_install_sh="$ac_aux_dir/install.sh -c" 2111 break 2112 elif test -f "$ac_dir/shtool"; then 2113 ac_aux_dir=$ac_dir 2114 ac_install_sh="$ac_aux_dir/shtool install -c" 2115 break 2116 fi 2117done 2118if test -z "$ac_aux_dir"; then 2119 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2120$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2121 { (exit 1); exit 1; }; } 2122fi 2123 2124# These three variables are undocumented and unsupported, 2125# and are intended to be withdrawn in a future Autoconf release. 2126# They can cause serious problems if a builder's source tree is in a directory 2127# whose full name contains unusual characters. 2128ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2129ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2130ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2131 2132 2133am__api_version='1.11' 2134 2135# Find a good install program. We prefer a C program (faster), 2136# so one script is as good as another. But avoid the broken or 2137# incompatible versions: 2138# SysV /etc/install, /usr/sbin/install 2139# SunOS /usr/etc/install 2140# IRIX /sbin/install 2141# AIX /bin/install 2142# AmigaOS /C/install, which installs bootblocks on floppy discs 2143# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2144# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2145# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2146# OS/2's system install, which has a completely different semantic 2147# ./install, which can be erroneously created by make from ./install.sh. 2148# Reject install programs that cannot install multiple files. 2149{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2150$as_echo_n "checking for a BSD-compatible install... " >&6; } 2151if test -z "$INSTALL"; then 2152if test "${ac_cv_path_install+set}" = set; then 2153 $as_echo_n "(cached) " >&6 2154else 2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2156for as_dir in $PATH 2157do 2158 IFS=$as_save_IFS 2159 test -z "$as_dir" && as_dir=. 2160 # Account for people who put trailing slashes in PATH elements. 2161case $as_dir/ in 2162 ./ | .// | /cC/* | \ 2163 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2164 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2165 /usr/ucb/* ) ;; 2166 *) 2167 # OSF1 and SCO ODT 3.0 have their own names for install. 2168 # Don't use installbsd from OSF since it installs stuff as root 2169 # by default. 2170 for ac_prog in ginstall scoinst install; do 2171 for ac_exec_ext in '' $ac_executable_extensions; do 2172 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2173 if test $ac_prog = install && 2174 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2175 # AIX install. It has an incompatible calling convention. 2176 : 2177 elif test $ac_prog = install && 2178 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2179 # program-specific install script used by HP pwplus--don't use. 2180 : 2181 else 2182 rm -rf conftest.one conftest.two conftest.dir 2183 echo one > conftest.one 2184 echo two > conftest.two 2185 mkdir conftest.dir 2186 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2187 test -s conftest.one && test -s conftest.two && 2188 test -s conftest.dir/conftest.one && 2189 test -s conftest.dir/conftest.two 2190 then 2191 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2192 break 3 2193 fi 2194 fi 2195 fi 2196 done 2197 done 2198 ;; 2199esac 2200 2201done 2202IFS=$as_save_IFS 2203 2204rm -rf conftest.one conftest.two conftest.dir 2205 2206fi 2207 if test "${ac_cv_path_install+set}" = set; then 2208 INSTALL=$ac_cv_path_install 2209 else 2210 # As a last resort, use the slow shell script. Don't cache a 2211 # value for INSTALL within a source directory, because that will 2212 # break other packages using the cache if that directory is 2213 # removed, or if the value is a relative name. 2214 INSTALL=$ac_install_sh 2215 fi 2216fi 2217{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2218$as_echo "$INSTALL" >&6; } 2219 2220# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2221# It thinks the first close brace ends the variable substitution. 2222test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2223 2224test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2225 2226test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2227 2228{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2229$as_echo_n "checking whether build environment is sane... " >&6; } 2230# Just in case 2231sleep 1 2232echo timestamp > conftest.file 2233# Reject unsafe characters in $srcdir or the absolute working directory 2234# name. Accept space and tab only in the latter. 2235am_lf=' 2236' 2237case `pwd` in 2238 *[\\\"\#\$\&\'\`$am_lf]*) 2239 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2240$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2241 { (exit 1); exit 1; }; };; 2242esac 2243case $srcdir in 2244 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2245 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2246$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2247 { (exit 1); exit 1; }; };; 2248esac 2249 2250# Do `set' in a subshell so we don't clobber the current shell's 2251# arguments. Must try -L first in case configure is actually a 2252# symlink; some systems play weird games with the mod time of symlinks 2253# (eg FreeBSD returns the mod time of the symlink's containing 2254# directory). 2255if ( 2256 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2257 if test "$*" = "X"; then 2258 # -L didn't work. 2259 set X `ls -t "$srcdir/configure" conftest.file` 2260 fi 2261 rm -f conftest.file 2262 if test "$*" != "X $srcdir/configure conftest.file" \ 2263 && test "$*" != "X conftest.file $srcdir/configure"; then 2264 2265 # If neither matched, then we have a broken ls. This can happen 2266 # if, for instance, CONFIG_SHELL is bash and it inherits a 2267 # broken ls alias from the environment. This has actually 2268 # happened. Such a system could not be considered "sane". 2269 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2270alias in your environment" >&5 2271$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2272alias in your environment" >&2;} 2273 { (exit 1); exit 1; }; } 2274 fi 2275 2276 test "$2" = conftest.file 2277 ) 2278then 2279 # Ok. 2280 : 2281else 2282 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2283Check your system clock" >&5 2284$as_echo "$as_me: error: newly created file is older than distributed files! 2285Check your system clock" >&2;} 2286 { (exit 1); exit 1; }; } 2287fi 2288{ $as_echo "$as_me:$LINENO: result: yes" >&5 2289$as_echo "yes" >&6; } 2290test "$program_prefix" != NONE && 2291 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2292# Use a double $ so make ignores it. 2293test "$program_suffix" != NONE && 2294 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2295# Double any \ or $. 2296# By default was `s,x,x', remove it if useless. 2297ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2298program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2299 2300# expand $ac_aux_dir to an absolute path 2301am_aux_dir=`cd $ac_aux_dir && pwd` 2302 2303if test x"${MISSING+set}" != xset; then 2304 case $am_aux_dir in 2305 *\ * | *\ *) 2306 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2307 *) 2308 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2309 esac 2310fi 2311# Use eval to expand $SHELL 2312if eval "$MISSING --run true"; then 2313 am_missing_run="$MISSING --run " 2314else 2315 am_missing_run= 2316 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2317$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2318fi 2319 2320if test x"${install_sh}" != xset; then 2321 case $am_aux_dir in 2322 *\ * | *\ *) 2323 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2324 *) 2325 install_sh="\${SHELL} $am_aux_dir/install-sh" 2326 esac 2327fi 2328 2329# Installed binaries are usually stripped using `strip' when the user 2330# run `make install-strip'. However `strip' might not be the right 2331# tool to use in cross-compilation environments, therefore Automake 2332# will honor the `STRIP' environment variable to overrule this program. 2333if test "$cross_compiling" != no; then 2334 if test -n "$ac_tool_prefix"; then 2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2336set dummy ${ac_tool_prefix}strip; ac_word=$2 2337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2338$as_echo_n "checking for $ac_word... " >&6; } 2339if test "${ac_cv_prog_STRIP+set}" = set; then 2340 $as_echo_n "(cached) " >&6 2341else 2342 if test -n "$STRIP"; then 2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2344else 2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2346for as_dir in $PATH 2347do 2348 IFS=$as_save_IFS 2349 test -z "$as_dir" && as_dir=. 2350 for ac_exec_ext in '' $ac_executable_extensions; do 2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2352 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2354 break 2 2355 fi 2356done 2357done 2358IFS=$as_save_IFS 2359 2360fi 2361fi 2362STRIP=$ac_cv_prog_STRIP 2363if test -n "$STRIP"; then 2364 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2365$as_echo "$STRIP" >&6; } 2366else 2367 { $as_echo "$as_me:$LINENO: result: no" >&5 2368$as_echo "no" >&6; } 2369fi 2370 2371 2372fi 2373if test -z "$ac_cv_prog_STRIP"; then 2374 ac_ct_STRIP=$STRIP 2375 # Extract the first word of "strip", so it can be a program name with args. 2376set dummy strip; ac_word=$2 2377{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2378$as_echo_n "checking for $ac_word... " >&6; } 2379if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2380 $as_echo_n "(cached) " >&6 2381else 2382 if test -n "$ac_ct_STRIP"; then 2383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2384else 2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2386for as_dir in $PATH 2387do 2388 IFS=$as_save_IFS 2389 test -z "$as_dir" && as_dir=. 2390 for ac_exec_ext in '' $ac_executable_extensions; do 2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2392 ac_cv_prog_ac_ct_STRIP="strip" 2393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2394 break 2 2395 fi 2396done 2397done 2398IFS=$as_save_IFS 2399 2400fi 2401fi 2402ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2403if test -n "$ac_ct_STRIP"; then 2404 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2405$as_echo "$ac_ct_STRIP" >&6; } 2406else 2407 { $as_echo "$as_me:$LINENO: result: no" >&5 2408$as_echo "no" >&6; } 2409fi 2410 2411 if test "x$ac_ct_STRIP" = x; then 2412 STRIP=":" 2413 else 2414 case $cross_compiling:$ac_tool_warned in 2415yes:) 2416{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2418ac_tool_warned=yes ;; 2419esac 2420 STRIP=$ac_ct_STRIP 2421 fi 2422else 2423 STRIP="$ac_cv_prog_STRIP" 2424fi 2425 2426fi 2427INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2428 2429{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2430$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2431if test -z "$MKDIR_P"; then 2432 if test "${ac_cv_path_mkdir+set}" = set; then 2433 $as_echo_n "(cached) " >&6 2434else 2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2436for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2437do 2438 IFS=$as_save_IFS 2439 test -z "$as_dir" && as_dir=. 2440 for ac_prog in mkdir gmkdir; do 2441 for ac_exec_ext in '' $ac_executable_extensions; do 2442 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2443 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2444 'mkdir (GNU coreutils) '* | \ 2445 'mkdir (coreutils) '* | \ 2446 'mkdir (fileutils) '4.1*) 2447 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2448 break 3;; 2449 esac 2450 done 2451 done 2452done 2453IFS=$as_save_IFS 2454 2455fi 2456 2457 if test "${ac_cv_path_mkdir+set}" = set; then 2458 MKDIR_P="$ac_cv_path_mkdir -p" 2459 else 2460 # As a last resort, use the slow shell script. Don't cache a 2461 # value for MKDIR_P within a source directory, because that will 2462 # break other packages using the cache if that directory is 2463 # removed, or if the value is a relative name. 2464 test -d ./--version && rmdir ./--version 2465 MKDIR_P="$ac_install_sh -d" 2466 fi 2467fi 2468{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2469$as_echo "$MKDIR_P" >&6; } 2470 2471mkdir_p="$MKDIR_P" 2472case $mkdir_p in 2473 [\\/$]* | ?:[\\/]*) ;; 2474 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2475esac 2476 2477for ac_prog in gawk mawk nawk awk 2478do 2479 # Extract the first word of "$ac_prog", so it can be a program name with args. 2480set dummy $ac_prog; ac_word=$2 2481{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2482$as_echo_n "checking for $ac_word... " >&6; } 2483if test "${ac_cv_prog_AWK+set}" = set; then 2484 $as_echo_n "(cached) " >&6 2485else 2486 if test -n "$AWK"; then 2487 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2488else 2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490for as_dir in $PATH 2491do 2492 IFS=$as_save_IFS 2493 test -z "$as_dir" && as_dir=. 2494 for ac_exec_ext in '' $ac_executable_extensions; do 2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2496 ac_cv_prog_AWK="$ac_prog" 2497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2498 break 2 2499 fi 2500done 2501done 2502IFS=$as_save_IFS 2503 2504fi 2505fi 2506AWK=$ac_cv_prog_AWK 2507if test -n "$AWK"; then 2508 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2509$as_echo "$AWK" >&6; } 2510else 2511 { $as_echo "$as_me:$LINENO: result: no" >&5 2512$as_echo "no" >&6; } 2513fi 2514 2515 2516 test -n "$AWK" && break 2517done 2518 2519{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2520$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2521set x ${MAKE-make} 2522ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2523if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2524 $as_echo_n "(cached) " >&6 2525else 2526 cat >conftest.make <<\_ACEOF 2527SHELL = /bin/sh 2528all: 2529 @echo '@@@%%%=$(MAKE)=@@@%%%' 2530_ACEOF 2531# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2532case `${MAKE-make} -f conftest.make 2>/dev/null` in 2533 *@@@%%%=?*=@@@%%%*) 2534 eval ac_cv_prog_make_${ac_make}_set=yes;; 2535 *) 2536 eval ac_cv_prog_make_${ac_make}_set=no;; 2537esac 2538rm -f conftest.make 2539fi 2540if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2541 { $as_echo "$as_me:$LINENO: result: yes" >&5 2542$as_echo "yes" >&6; } 2543 SET_MAKE= 2544else 2545 { $as_echo "$as_me:$LINENO: result: no" >&5 2546$as_echo "no" >&6; } 2547 SET_MAKE="MAKE=${MAKE-make}" 2548fi 2549 2550rm -rf .tst 2>/dev/null 2551mkdir .tst 2>/dev/null 2552if test -d .tst; then 2553 am__leading_dot=. 2554else 2555 am__leading_dot=_ 2556fi 2557rmdir .tst 2>/dev/null 2558 2559if test "`cd $srcdir && pwd`" != "`pwd`"; then 2560 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2561 # is not polluted with repeated "-I." 2562 am__isrc=' -I$(srcdir)' 2563 # test to see if srcdir already configured 2564 if test -f $srcdir/config.status; then 2565 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2566$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2567 { (exit 1); exit 1; }; } 2568 fi 2569fi 2570 2571# test whether we have cygpath 2572if test -z "$CYGPATH_W"; then 2573 if (cygpath --version) >/dev/null 2>/dev/null; then 2574 CYGPATH_W='cygpath -w' 2575 else 2576 CYGPATH_W=echo 2577 fi 2578fi 2579 2580 2581# Define the identity of the package. 2582 PACKAGE='xf86-input-mouse' 2583 VERSION='1.5.0' 2584 2585 2586cat >>confdefs.h <<_ACEOF 2587#define PACKAGE "$PACKAGE" 2588_ACEOF 2589 2590 2591cat >>confdefs.h <<_ACEOF 2592#define VERSION "$VERSION" 2593_ACEOF 2594 2595# Some tools Automake needs. 2596 2597ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2598 2599 2600AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2601 2602 2603AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2604 2605 2606AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2607 2608 2609MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2610 2611# We need awk for the "check" target. The system "awk" is bad on 2612# some platforms. 2613# Always define AMTAR for backward compatibility. 2614 2615AMTAR=${AMTAR-"${am_missing_run}tar"} 2616 2617am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2618 2619 2620 2621 2622 2623 2624 2625{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2626$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2627 # Check whether --enable-maintainer-mode was given. 2628if test "${enable_maintainer_mode+set}" = set; then 2629 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2630else 2631 USE_MAINTAINER_MODE=no 2632fi 2633 2634 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2635$as_echo "$USE_MAINTAINER_MODE" >&6; } 2636 if test $USE_MAINTAINER_MODE = yes; then 2637 MAINTAINER_MODE_TRUE= 2638 MAINTAINER_MODE_FALSE='#' 2639else 2640 MAINTAINER_MODE_TRUE='#' 2641 MAINTAINER_MODE_FALSE= 2642fi 2643 2644 MAINT=$MAINTAINER_MODE_TRUE 2645 2646 2647 2648DRIVER_NAME=mouse 2649 2650 2651ac_config_headers="$ac_config_headers config.h" 2652 2653 2654# Checks for programs. 2655# Check whether --enable-static was given. 2656if test "${enable_static+set}" = set; then 2657 enableval=$enable_static; p=${PACKAGE-default} 2658 case $enableval in 2659 yes) enable_static=yes ;; 2660 no) enable_static=no ;; 2661 *) 2662 enable_static=no 2663 # Look at the argument we got. We use all the common list separators. 2664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2665 for pkg in $enableval; do 2666 IFS="$lt_save_ifs" 2667 if test "X$pkg" = "X$p"; then 2668 enable_static=yes 2669 fi 2670 done 2671 IFS="$lt_save_ifs" 2672 ;; 2673 esac 2674else 2675 enable_static=no 2676fi 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686case `pwd` in 2687 *\ * | *\ *) 2688 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2689$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2690esac 2691 2692 2693 2694macro_version='2.2.6' 2695macro_revision='1.3012' 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709ltmain="$ac_aux_dir/ltmain.sh" 2710 2711# Make sure we can run config.sub. 2712$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2713 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2714$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2715 { (exit 1); exit 1; }; } 2716 2717{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2718$as_echo_n "checking build system type... " >&6; } 2719if test "${ac_cv_build+set}" = set; then 2720 $as_echo_n "(cached) " >&6 2721else 2722 ac_build_alias=$build_alias 2723test "x$ac_build_alias" = x && 2724 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2725test "x$ac_build_alias" = x && 2726 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2727$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2728 { (exit 1); exit 1; }; } 2729ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2730 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2731$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2732 { (exit 1); exit 1; }; } 2733 2734fi 2735{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2736$as_echo "$ac_cv_build" >&6; } 2737case $ac_cv_build in 2738*-*-*) ;; 2739*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2740$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2741 { (exit 1); exit 1; }; };; 2742esac 2743build=$ac_cv_build 2744ac_save_IFS=$IFS; IFS='-' 2745set x $ac_cv_build 2746shift 2747build_cpu=$1 2748build_vendor=$2 2749shift; shift 2750# Remember, the first character of IFS is used to create $*, 2751# except with old shells: 2752build_os=$* 2753IFS=$ac_save_IFS 2754case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2755 2756 2757{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2758$as_echo_n "checking host system type... " >&6; } 2759if test "${ac_cv_host+set}" = set; then 2760 $as_echo_n "(cached) " >&6 2761else 2762 if test "x$host_alias" = x; then 2763 ac_cv_host=$ac_cv_build 2764else 2765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2766 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2767$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2768 { (exit 1); exit 1; }; } 2769fi 2770 2771fi 2772{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2773$as_echo "$ac_cv_host" >&6; } 2774case $ac_cv_host in 2775*-*-*) ;; 2776*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2777$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2778 { (exit 1); exit 1; }; };; 2779esac 2780host=$ac_cv_host 2781ac_save_IFS=$IFS; IFS='-' 2782set x $ac_cv_host 2783shift 2784host_cpu=$1 2785host_vendor=$2 2786shift; shift 2787# Remember, the first character of IFS is used to create $*, 2788# except with old shells: 2789host_os=$* 2790IFS=$ac_save_IFS 2791case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2792 2793 2794DEPDIR="${am__leading_dot}deps" 2795 2796ac_config_commands="$ac_config_commands depfiles" 2797 2798 2799am_make=${MAKE-make} 2800cat > confinc << 'END' 2801am__doit: 2802 @echo this is the am__doit target 2803.PHONY: am__doit 2804END 2805# If we don't find an include directive, just comment out the code. 2806{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2807$as_echo_n "checking for style of include used by $am_make... " >&6; } 2808am__include="#" 2809am__quote= 2810_am_result=none 2811# First try GNU make style include. 2812echo "include confinc" > confmf 2813# Ignore all kinds of additional output from `make'. 2814case `$am_make -s -f confmf 2> /dev/null` in #( 2815*the\ am__doit\ target*) 2816 am__include=include 2817 am__quote= 2818 _am_result=GNU 2819 ;; 2820esac 2821# Now try BSD make style include. 2822if test "$am__include" = "#"; then 2823 echo '.include "confinc"' > confmf 2824 case `$am_make -s -f confmf 2> /dev/null` in #( 2825 *the\ am__doit\ target*) 2826 am__include=.include 2827 am__quote="\"" 2828 _am_result=BSD 2829 ;; 2830 esac 2831fi 2832 2833 2834{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2835$as_echo "$_am_result" >&6; } 2836rm -f confinc confmf 2837 2838# Check whether --enable-dependency-tracking was given. 2839if test "${enable_dependency_tracking+set}" = set; then 2840 enableval=$enable_dependency_tracking; 2841fi 2842 2843if test "x$enable_dependency_tracking" != xno; then 2844 am_depcomp="$ac_aux_dir/depcomp" 2845 AMDEPBACKSLASH='\' 2846fi 2847 if test "x$enable_dependency_tracking" != xno; then 2848 AMDEP_TRUE= 2849 AMDEP_FALSE='#' 2850else 2851 AMDEP_TRUE='#' 2852 AMDEP_FALSE= 2853fi 2854 2855 2856ac_ext=c 2857ac_cpp='$CPP $CPPFLAGS' 2858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2860ac_compiler_gnu=$ac_cv_c_compiler_gnu 2861if test -n "$ac_tool_prefix"; then 2862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2863set dummy ${ac_tool_prefix}gcc; ac_word=$2 2864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2865$as_echo_n "checking for $ac_word... " >&6; } 2866if test "${ac_cv_prog_CC+set}" = set; then 2867 $as_echo_n "(cached) " >&6 2868else 2869 if test -n "$CC"; then 2870 ac_cv_prog_CC="$CC" # Let the user override the test. 2871else 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873for as_dir in $PATH 2874do 2875 IFS=$as_save_IFS 2876 test -z "$as_dir" && as_dir=. 2877 for ac_exec_ext in '' $ac_executable_extensions; do 2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2879 ac_cv_prog_CC="${ac_tool_prefix}gcc" 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 2887fi 2888fi 2889CC=$ac_cv_prog_CC 2890if test -n "$CC"; then 2891 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2892$as_echo "$CC" >&6; } 2893else 2894 { $as_echo "$as_me:$LINENO: result: no" >&5 2895$as_echo "no" >&6; } 2896fi 2897 2898 2899fi 2900if test -z "$ac_cv_prog_CC"; then 2901 ac_ct_CC=$CC 2902 # Extract the first word of "gcc", so it can be a program name with args. 2903set dummy gcc; ac_word=$2 2904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2905$as_echo_n "checking for $ac_word... " >&6; } 2906if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2907 $as_echo_n "(cached) " >&6 2908else 2909 if test -n "$ac_ct_CC"; then 2910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2911else 2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 for ac_exec_ext in '' $ac_executable_extensions; do 2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2919 ac_cv_prog_ac_ct_CC="gcc" 2920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2921 break 2 2922 fi 2923done 2924done 2925IFS=$as_save_IFS 2926 2927fi 2928fi 2929ac_ct_CC=$ac_cv_prog_ac_ct_CC 2930if test -n "$ac_ct_CC"; then 2931 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2932$as_echo "$ac_ct_CC" >&6; } 2933else 2934 { $as_echo "$as_me:$LINENO: result: no" >&5 2935$as_echo "no" >&6; } 2936fi 2937 2938 if test "x$ac_ct_CC" = x; then 2939 CC="" 2940 else 2941 case $cross_compiling:$ac_tool_warned in 2942yes:) 2943{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2945ac_tool_warned=yes ;; 2946esac 2947 CC=$ac_ct_CC 2948 fi 2949else 2950 CC="$ac_cv_prog_CC" 2951fi 2952 2953if test -z "$CC"; then 2954 if test -n "$ac_tool_prefix"; then 2955 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2956set dummy ${ac_tool_prefix}cc; ac_word=$2 2957{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2958$as_echo_n "checking for $ac_word... " >&6; } 2959if test "${ac_cv_prog_CC+set}" = set; then 2960 $as_echo_n "(cached) " >&6 2961else 2962 if test -n "$CC"; then 2963 ac_cv_prog_CC="$CC" # Let the user override the test. 2964else 2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2966for as_dir in $PATH 2967do 2968 IFS=$as_save_IFS 2969 test -z "$as_dir" && as_dir=. 2970 for ac_exec_ext in '' $ac_executable_extensions; do 2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2972 ac_cv_prog_CC="${ac_tool_prefix}cc" 2973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2974 break 2 2975 fi 2976done 2977done 2978IFS=$as_save_IFS 2979 2980fi 2981fi 2982CC=$ac_cv_prog_CC 2983if test -n "$CC"; then 2984 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2985$as_echo "$CC" >&6; } 2986else 2987 { $as_echo "$as_me:$LINENO: result: no" >&5 2988$as_echo "no" >&6; } 2989fi 2990 2991 2992 fi 2993fi 2994if test -z "$CC"; then 2995 # Extract the first word of "cc", so it can be a program name with args. 2996set dummy cc; ac_word=$2 2997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2998$as_echo_n "checking for $ac_word... " >&6; } 2999if test "${ac_cv_prog_CC+set}" = set; then 3000 $as_echo_n "(cached) " >&6 3001else 3002 if test -n "$CC"; then 3003 ac_cv_prog_CC="$CC" # Let the user override the test. 3004else 3005 ac_prog_rejected=no 3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3007for as_dir in $PATH 3008do 3009 IFS=$as_save_IFS 3010 test -z "$as_dir" && as_dir=. 3011 for ac_exec_ext in '' $ac_executable_extensions; do 3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3013 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3014 ac_prog_rejected=yes 3015 continue 3016 fi 3017 ac_cv_prog_CC="cc" 3018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3019 break 2 3020 fi 3021done 3022done 3023IFS=$as_save_IFS 3024 3025if test $ac_prog_rejected = yes; then 3026 # We found a bogon in the path, so make sure we never use it. 3027 set dummy $ac_cv_prog_CC 3028 shift 3029 if test $# != 0; then 3030 # We chose a different compiler from the bogus one. 3031 # However, it has the same basename, so the bogon will be chosen 3032 # first if we set CC to just the basename; use the full file name. 3033 shift 3034 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3035 fi 3036fi 3037fi 3038fi 3039CC=$ac_cv_prog_CC 3040if test -n "$CC"; then 3041 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3042$as_echo "$CC" >&6; } 3043else 3044 { $as_echo "$as_me:$LINENO: result: no" >&5 3045$as_echo "no" >&6; } 3046fi 3047 3048 3049fi 3050if test -z "$CC"; then 3051 if test -n "$ac_tool_prefix"; then 3052 for ac_prog in cl.exe 3053 do 3054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3055set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3056{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3057$as_echo_n "checking for $ac_word... " >&6; } 3058if test "${ac_cv_prog_CC+set}" = set; then 3059 $as_echo_n "(cached) " >&6 3060else 3061 if test -n "$CC"; then 3062 ac_cv_prog_CC="$CC" # Let the user override the test. 3063else 3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065for as_dir in $PATH 3066do 3067 IFS=$as_save_IFS 3068 test -z "$as_dir" && as_dir=. 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075done 3076done 3077IFS=$as_save_IFS 3078 3079fi 3080fi 3081CC=$ac_cv_prog_CC 3082if test -n "$CC"; then 3083 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3084$as_echo "$CC" >&6; } 3085else 3086 { $as_echo "$as_me:$LINENO: result: no" >&5 3087$as_echo "no" >&6; } 3088fi 3089 3090 3091 test -n "$CC" && break 3092 done 3093fi 3094if test -z "$CC"; then 3095 ac_ct_CC=$CC 3096 for ac_prog in cl.exe 3097do 3098 # Extract the first word of "$ac_prog", so it can be a program name with args. 3099set dummy $ac_prog; ac_word=$2 3100{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3101$as_echo_n "checking for $ac_word... " >&6; } 3102if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3103 $as_echo_n "(cached) " >&6 3104else 3105 if test -n "$ac_ct_CC"; then 3106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3107else 3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 test -z "$as_dir" && as_dir=. 3113 for ac_exec_ext in '' $ac_executable_extensions; do 3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3115 ac_cv_prog_ac_ct_CC="$ac_prog" 3116 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3117 break 2 3118 fi 3119done 3120done 3121IFS=$as_save_IFS 3122 3123fi 3124fi 3125ac_ct_CC=$ac_cv_prog_ac_ct_CC 3126if test -n "$ac_ct_CC"; then 3127 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3128$as_echo "$ac_ct_CC" >&6; } 3129else 3130 { $as_echo "$as_me:$LINENO: result: no" >&5 3131$as_echo "no" >&6; } 3132fi 3133 3134 3135 test -n "$ac_ct_CC" && break 3136done 3137 3138 if test "x$ac_ct_CC" = x; then 3139 CC="" 3140 else 3141 case $cross_compiling:$ac_tool_warned in 3142yes:) 3143{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3145ac_tool_warned=yes ;; 3146esac 3147 CC=$ac_ct_CC 3148 fi 3149fi 3150 3151fi 3152 3153 3154test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3156{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3157See \`config.log' for more details." >&5 3158$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3159See \`config.log' for more details." >&2;} 3160 { (exit 1); exit 1; }; }; } 3161 3162# Provide some information about the compiler. 3163$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3164set X $ac_compile 3165ac_compiler=$2 3166{ (ac_try="$ac_compiler --version >&5" 3167case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3172$as_echo "$ac_try_echo") >&5 3173 (eval "$ac_compiler --version >&5") 2>&5 3174 ac_status=$? 3175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3176 (exit $ac_status); } 3177{ (ac_try="$ac_compiler -v >&5" 3178case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181esac 3182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3183$as_echo "$ac_try_echo") >&5 3184 (eval "$ac_compiler -v >&5") 2>&5 3185 ac_status=$? 3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 (exit $ac_status); } 3188{ (ac_try="$ac_compiler -V >&5" 3189case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3194$as_echo "$ac_try_echo") >&5 3195 (eval "$ac_compiler -V >&5") 2>&5 3196 ac_status=$? 3197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); } 3199 3200cat >conftest.$ac_ext <<_ACEOF 3201/* confdefs.h. */ 3202_ACEOF 3203cat confdefs.h >>conftest.$ac_ext 3204cat >>conftest.$ac_ext <<_ACEOF 3205/* end confdefs.h. */ 3206 3207int 3208main () 3209{ 3210 3211 ; 3212 return 0; 3213} 3214_ACEOF 3215ac_clean_files_save=$ac_clean_files 3216ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3217# Try to create an executable without -o first, disregard a.out. 3218# It will help us diagnose broken compilers, and finding out an intuition 3219# of exeext. 3220{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3221$as_echo_n "checking for C compiler default output file name... " >&6; } 3222ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3223 3224# The possible output files: 3225ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3226 3227ac_rmfiles= 3228for ac_file in $ac_files 3229do 3230 case $ac_file in 3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3232 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3233 esac 3234done 3235rm -f $ac_rmfiles 3236 3237if { (ac_try="$ac_link_default" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3243$as_echo "$ac_try_echo") >&5 3244 (eval "$ac_link_default") 2>&5 3245 ac_status=$? 3246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3247 (exit $ac_status); }; then 3248 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3249# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3250# in a Makefile. We should not override ac_cv_exeext if it was cached, 3251# so that the user can short-circuit this test for compilers unknown to 3252# Autoconf. 3253for ac_file in $ac_files '' 3254do 3255 test -f "$ac_file" || continue 3256 case $ac_file in 3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3258 ;; 3259 [ab].out ) 3260 # We found the default executable, but exeext='' is most 3261 # certainly right. 3262 break;; 3263 *.* ) 3264 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3265 then :; else 3266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3267 fi 3268 # We set ac_cv_exeext here because the later test for it is not 3269 # safe: cross compilers may not add the suffix if given an `-o' 3270 # argument, so we may need to know it at that point already. 3271 # Even if this section looks crufty: it has the advantage of 3272 # actually working. 3273 break;; 3274 * ) 3275 break;; 3276 esac 3277done 3278test "$ac_cv_exeext" = no && ac_cv_exeext= 3279 3280else 3281 ac_file='' 3282fi 3283 3284{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3285$as_echo "$ac_file" >&6; } 3286if test -z "$ac_file"; then 3287 $as_echo "$as_me: failed program was:" >&5 3288sed 's/^/| /' conftest.$ac_ext >&5 3289 3290{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3292{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3293See \`config.log' for more details." >&5 3294$as_echo "$as_me: error: C compiler cannot create executables 3295See \`config.log' for more details." >&2;} 3296 { (exit 77); exit 77; }; }; } 3297fi 3298 3299ac_exeext=$ac_cv_exeext 3300 3301# Check that the compiler produces executables we can run. If not, either 3302# the compiler is broken, or we cross compile. 3303{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3304$as_echo_n "checking whether the C compiler works... " >&6; } 3305# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3306# If not cross compiling, check that we can run a simple program. 3307if test "$cross_compiling" != yes; then 3308 if { ac_try='./$ac_file' 3309 { (case "(($ac_try" in 3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3311 *) ac_try_echo=$ac_try;; 3312esac 3313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3314$as_echo "$ac_try_echo") >&5 3315 (eval "$ac_try") 2>&5 3316 ac_status=$? 3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3318 (exit $ac_status); }; }; then 3319 cross_compiling=no 3320 else 3321 if test "$cross_compiling" = maybe; then 3322 cross_compiling=yes 3323 else 3324 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3326{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3327If you meant to cross compile, use \`--host'. 3328See \`config.log' for more details." >&5 3329$as_echo "$as_me: error: cannot run C compiled programs. 3330If you meant to cross compile, use \`--host'. 3331See \`config.log' for more details." >&2;} 3332 { (exit 1); exit 1; }; }; } 3333 fi 3334 fi 3335fi 3336{ $as_echo "$as_me:$LINENO: result: yes" >&5 3337$as_echo "yes" >&6; } 3338 3339rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3340ac_clean_files=$ac_clean_files_save 3341# Check that the compiler produces executables we can run. If not, either 3342# the compiler is broken, or we cross compile. 3343{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3344$as_echo_n "checking whether we are cross compiling... " >&6; } 3345{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3346$as_echo "$cross_compiling" >&6; } 3347 3348{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3349$as_echo_n "checking for suffix of executables... " >&6; } 3350if { (ac_try="$ac_link" 3351case "(($ac_try" in 3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3353 *) ac_try_echo=$ac_try;; 3354esac 3355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3356$as_echo "$ac_try_echo") >&5 3357 (eval "$ac_link") 2>&5 3358 ac_status=$? 3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3360 (exit $ac_status); }; then 3361 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3362# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3363# work properly (i.e., refer to `conftest.exe'), while it won't with 3364# `rm'. 3365for ac_file in conftest.exe conftest conftest.*; do 3366 test -f "$ac_file" || continue 3367 case $ac_file in 3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3369 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3370 break;; 3371 * ) break;; 3372 esac 3373done 3374else 3375 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3377{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3378See \`config.log' for more details." >&5 3379$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3380See \`config.log' for more details." >&2;} 3381 { (exit 1); exit 1; }; }; } 3382fi 3383 3384rm -f conftest$ac_cv_exeext 3385{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3386$as_echo "$ac_cv_exeext" >&6; } 3387 3388rm -f conftest.$ac_ext 3389EXEEXT=$ac_cv_exeext 3390ac_exeext=$EXEEXT 3391{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3392$as_echo_n "checking for suffix of object files... " >&6; } 3393if test "${ac_cv_objext+set}" = set; then 3394 $as_echo_n "(cached) " >&6 3395else 3396 cat >conftest.$ac_ext <<_ACEOF 3397/* confdefs.h. */ 3398_ACEOF 3399cat confdefs.h >>conftest.$ac_ext 3400cat >>conftest.$ac_ext <<_ACEOF 3401/* end confdefs.h. */ 3402 3403int 3404main () 3405{ 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411rm -f conftest.o conftest.obj 3412if { (ac_try="$ac_compile" 3413case "(($ac_try" in 3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3415 *) ac_try_echo=$ac_try;; 3416esac 3417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3418$as_echo "$ac_try_echo") >&5 3419 (eval "$ac_compile") 2>&5 3420 ac_status=$? 3421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); }; then 3423 for ac_file in conftest.o conftest.obj conftest.*; do 3424 test -f "$ac_file" || continue; 3425 case $ac_file in 3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3428 break;; 3429 esac 3430done 3431else 3432 $as_echo "$as_me: failed program was:" >&5 3433sed 's/^/| /' conftest.$ac_ext >&5 3434 3435{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3437{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3438See \`config.log' for more details." >&5 3439$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3440See \`config.log' for more details." >&2;} 3441 { (exit 1); exit 1; }; }; } 3442fi 3443 3444rm -f conftest.$ac_cv_objext conftest.$ac_ext 3445fi 3446{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3447$as_echo "$ac_cv_objext" >&6; } 3448OBJEXT=$ac_cv_objext 3449ac_objext=$OBJEXT 3450{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3451$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3452if test "${ac_cv_c_compiler_gnu+set}" = set; then 3453 $as_echo_n "(cached) " >&6 3454else 3455 cat >conftest.$ac_ext <<_ACEOF 3456/* confdefs.h. */ 3457_ACEOF 3458cat confdefs.h >>conftest.$ac_ext 3459cat >>conftest.$ac_ext <<_ACEOF 3460/* end confdefs.h. */ 3461 3462int 3463main () 3464{ 3465#ifndef __GNUC__ 3466 choke me 3467#endif 3468 3469 ; 3470 return 0; 3471} 3472_ACEOF 3473rm -f conftest.$ac_objext 3474if { (ac_try="$ac_compile" 3475case "(($ac_try" in 3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3477 *) ac_try_echo=$ac_try;; 3478esac 3479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3480$as_echo "$ac_try_echo") >&5 3481 (eval "$ac_compile") 2>conftest.er1 3482 ac_status=$? 3483 grep -v '^ *+' conftest.er1 >conftest.err 3484 rm -f conftest.er1 3485 cat conftest.err >&5 3486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); } && { 3488 test -z "$ac_c_werror_flag" || 3489 test ! -s conftest.err 3490 } && test -s conftest.$ac_objext; then 3491 ac_compiler_gnu=yes 3492else 3493 $as_echo "$as_me: failed program was:" >&5 3494sed 's/^/| /' conftest.$ac_ext >&5 3495 3496 ac_compiler_gnu=no 3497fi 3498 3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3500ac_cv_c_compiler_gnu=$ac_compiler_gnu 3501 3502fi 3503{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3504$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3505if test $ac_compiler_gnu = yes; then 3506 GCC=yes 3507else 3508 GCC= 3509fi 3510ac_test_CFLAGS=${CFLAGS+set} 3511ac_save_CFLAGS=$CFLAGS 3512{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3513$as_echo_n "checking whether $CC accepts -g... " >&6; } 3514if test "${ac_cv_prog_cc_g+set}" = set; then 3515 $as_echo_n "(cached) " >&6 3516else 3517 ac_save_c_werror_flag=$ac_c_werror_flag 3518 ac_c_werror_flag=yes 3519 ac_cv_prog_cc_g=no 3520 CFLAGS="-g" 3521 cat >conftest.$ac_ext <<_ACEOF 3522/* confdefs.h. */ 3523_ACEOF 3524cat confdefs.h >>conftest.$ac_ext 3525cat >>conftest.$ac_ext <<_ACEOF 3526/* end confdefs.h. */ 3527 3528int 3529main () 3530{ 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536rm -f conftest.$ac_objext 3537if { (ac_try="$ac_compile" 3538case "(($ac_try" in 3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3540 *) ac_try_echo=$ac_try;; 3541esac 3542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3543$as_echo "$ac_try_echo") >&5 3544 (eval "$ac_compile") 2>conftest.er1 3545 ac_status=$? 3546 grep -v '^ *+' conftest.er1 >conftest.err 3547 rm -f conftest.er1 3548 cat conftest.err >&5 3549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3550 (exit $ac_status); } && { 3551 test -z "$ac_c_werror_flag" || 3552 test ! -s conftest.err 3553 } && test -s conftest.$ac_objext; then 3554 ac_cv_prog_cc_g=yes 3555else 3556 $as_echo "$as_me: failed program was:" >&5 3557sed 's/^/| /' conftest.$ac_ext >&5 3558 3559 CFLAGS="" 3560 cat >conftest.$ac_ext <<_ACEOF 3561/* confdefs.h. */ 3562_ACEOF 3563cat confdefs.h >>conftest.$ac_ext 3564cat >>conftest.$ac_ext <<_ACEOF 3565/* end confdefs.h. */ 3566 3567int 3568main () 3569{ 3570 3571 ; 3572 return 0; 3573} 3574_ACEOF 3575rm -f conftest.$ac_objext 3576if { (ac_try="$ac_compile" 3577case "(($ac_try" in 3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3579 *) ac_try_echo=$ac_try;; 3580esac 3581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3582$as_echo "$ac_try_echo") >&5 3583 (eval "$ac_compile") 2>conftest.er1 3584 ac_status=$? 3585 grep -v '^ *+' conftest.er1 >conftest.err 3586 rm -f conftest.er1 3587 cat conftest.err >&5 3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3589 (exit $ac_status); } && { 3590 test -z "$ac_c_werror_flag" || 3591 test ! -s conftest.err 3592 } && test -s conftest.$ac_objext; then 3593 : 3594else 3595 $as_echo "$as_me: failed program was:" >&5 3596sed 's/^/| /' conftest.$ac_ext >&5 3597 3598 ac_c_werror_flag=$ac_save_c_werror_flag 3599 CFLAGS="-g" 3600 cat >conftest.$ac_ext <<_ACEOF 3601/* confdefs.h. */ 3602_ACEOF 3603cat confdefs.h >>conftest.$ac_ext 3604cat >>conftest.$ac_ext <<_ACEOF 3605/* end confdefs.h. */ 3606 3607int 3608main () 3609{ 3610 3611 ; 3612 return 0; 3613} 3614_ACEOF 3615rm -f conftest.$ac_objext 3616if { (ac_try="$ac_compile" 3617case "(($ac_try" in 3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3619 *) ac_try_echo=$ac_try;; 3620esac 3621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3622$as_echo "$ac_try_echo") >&5 3623 (eval "$ac_compile") 2>conftest.er1 3624 ac_status=$? 3625 grep -v '^ *+' conftest.er1 >conftest.err 3626 rm -f conftest.er1 3627 cat conftest.err >&5 3628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3629 (exit $ac_status); } && { 3630 test -z "$ac_c_werror_flag" || 3631 test ! -s conftest.err 3632 } && test -s conftest.$ac_objext; then 3633 ac_cv_prog_cc_g=yes 3634else 3635 $as_echo "$as_me: failed program was:" >&5 3636sed 's/^/| /' conftest.$ac_ext >&5 3637 3638 3639fi 3640 3641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3642fi 3643 3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3645fi 3646 3647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3648 ac_c_werror_flag=$ac_save_c_werror_flag 3649fi 3650{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3651$as_echo "$ac_cv_prog_cc_g" >&6; } 3652if test "$ac_test_CFLAGS" = set; then 3653 CFLAGS=$ac_save_CFLAGS 3654elif test $ac_cv_prog_cc_g = yes; then 3655 if test "$GCC" = yes; then 3656 CFLAGS="-g -O2" 3657 else 3658 CFLAGS="-g" 3659 fi 3660else 3661 if test "$GCC" = yes; then 3662 CFLAGS="-O2" 3663 else 3664 CFLAGS= 3665 fi 3666fi 3667{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3668$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3669if test "${ac_cv_prog_cc_c89+set}" = set; then 3670 $as_echo_n "(cached) " >&6 3671else 3672 ac_cv_prog_cc_c89=no 3673ac_save_CC=$CC 3674cat >conftest.$ac_ext <<_ACEOF 3675/* confdefs.h. */ 3676_ACEOF 3677cat confdefs.h >>conftest.$ac_ext 3678cat >>conftest.$ac_ext <<_ACEOF 3679/* end confdefs.h. */ 3680#include <stdarg.h> 3681#include <stdio.h> 3682#include <sys/types.h> 3683#include <sys/stat.h> 3684/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3685struct buf { int x; }; 3686FILE * (*rcsopen) (struct buf *, struct stat *, int); 3687static char *e (p, i) 3688 char **p; 3689 int i; 3690{ 3691 return p[i]; 3692} 3693static char *f (char * (*g) (char **, int), char **p, ...) 3694{ 3695 char *s; 3696 va_list v; 3697 va_start (v,p); 3698 s = g (p, va_arg (v,int)); 3699 va_end (v); 3700 return s; 3701} 3702 3703/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3704 function prototypes and stuff, but not '\xHH' hex character constants. 3705 These don't provoke an error unfortunately, instead are silently treated 3706 as 'x'. The following induces an error, until -std is added to get 3707 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3708 array size at least. It's necessary to write '\x00'==0 to get something 3709 that's true only with -std. */ 3710int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3711 3712/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3713 inside strings and character constants. */ 3714#define FOO(x) 'x' 3715int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3716 3717int test (int i, double x); 3718struct s1 {int (*f) (int a);}; 3719struct s2 {int (*f) (double a);}; 3720int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3721int argc; 3722char **argv; 3723int 3724main () 3725{ 3726return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3727 ; 3728 return 0; 3729} 3730_ACEOF 3731for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3732 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3733do 3734 CC="$ac_save_CC $ac_arg" 3735 rm -f conftest.$ac_objext 3736if { (ac_try="$ac_compile" 3737case "(($ac_try" in 3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3739 *) ac_try_echo=$ac_try;; 3740esac 3741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3742$as_echo "$ac_try_echo") >&5 3743 (eval "$ac_compile") 2>conftest.er1 3744 ac_status=$? 3745 grep -v '^ *+' conftest.er1 >conftest.err 3746 rm -f conftest.er1 3747 cat conftest.err >&5 3748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3749 (exit $ac_status); } && { 3750 test -z "$ac_c_werror_flag" || 3751 test ! -s conftest.err 3752 } && test -s conftest.$ac_objext; then 3753 ac_cv_prog_cc_c89=$ac_arg 3754else 3755 $as_echo "$as_me: failed program was:" >&5 3756sed 's/^/| /' conftest.$ac_ext >&5 3757 3758 3759fi 3760 3761rm -f core conftest.err conftest.$ac_objext 3762 test "x$ac_cv_prog_cc_c89" != "xno" && break 3763done 3764rm -f conftest.$ac_ext 3765CC=$ac_save_CC 3766 3767fi 3768# AC_CACHE_VAL 3769case "x$ac_cv_prog_cc_c89" in 3770 x) 3771 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3772$as_echo "none needed" >&6; } ;; 3773 xno) 3774 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3775$as_echo "unsupported" >&6; } ;; 3776 *) 3777 CC="$CC $ac_cv_prog_cc_c89" 3778 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3779$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3780esac 3781 3782 3783ac_ext=c 3784ac_cpp='$CPP $CPPFLAGS' 3785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3787ac_compiler_gnu=$ac_cv_c_compiler_gnu 3788 3789depcc="$CC" am_compiler_list= 3790 3791{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3792$as_echo_n "checking dependency style of $depcc... " >&6; } 3793if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3794 $as_echo_n "(cached) " >&6 3795else 3796 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3797 # We make a subdir and do the tests there. Otherwise we can end up 3798 # making bogus files that we don't know about and never remove. For 3799 # instance it was reported that on HP-UX the gcc test will end up 3800 # making a dummy file named `D' -- because `-MD' means `put the output 3801 # in D'. 3802 mkdir conftest.dir 3803 # Copy depcomp to subdir because otherwise we won't find it if we're 3804 # using a relative directory. 3805 cp "$am_depcomp" conftest.dir 3806 cd conftest.dir 3807 # We will build objects and dependencies in a subdirectory because 3808 # it helps to detect inapplicable dependency modes. For instance 3809 # both Tru64's cc and ICC support -MD to output dependencies as a 3810 # side effect of compilation, but ICC will put the dependencies in 3811 # the current directory while Tru64 will put them in the object 3812 # directory. 3813 mkdir sub 3814 3815 am_cv_CC_dependencies_compiler_type=none 3816 if test "$am_compiler_list" = ""; then 3817 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3818 fi 3819 am__universal=false 3820 case " $depcc " in #( 3821 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3822 esac 3823 3824 for depmode in $am_compiler_list; do 3825 # Setup a source with many dependencies, because some compilers 3826 # like to wrap large dependency lists on column 80 (with \), and 3827 # we should not choose a depcomp mode which is confused by this. 3828 # 3829 # We need to recreate these files for each test, as the compiler may 3830 # overwrite some of them when testing with obscure command lines. 3831 # This happens at least with the AIX C compiler. 3832 : > sub/conftest.c 3833 for i in 1 2 3 4 5 6; do 3834 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3835 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3836 # Solaris 8's {/usr,}/bin/sh. 3837 touch sub/conftst$i.h 3838 done 3839 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3840 3841 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3842 # mode. It turns out that the SunPro C++ compiler does not properly 3843 # handle `-M -o', and we need to detect this. Also, some Intel 3844 # versions had trouble with output in subdirs 3845 am__obj=sub/conftest.${OBJEXT-o} 3846 am__minus_obj="-o $am__obj" 3847 case $depmode in 3848 gcc) 3849 # This depmode causes a compiler race in universal mode. 3850 test "$am__universal" = false || continue 3851 ;; 3852 nosideeffect) 3853 # after this tag, mechanisms are not by side-effect, so they'll 3854 # only be used when explicitly requested 3855 if test "x$enable_dependency_tracking" = xyes; then 3856 continue 3857 else 3858 break 3859 fi 3860 ;; 3861 msvisualcpp | msvcmsys) 3862 # This compiler won't grok `-c -o', but also, the minuso test has 3863 # not run yet. These depmodes are late enough in the game, and 3864 # so weak that their functioning should not be impacted. 3865 am__obj=conftest.${OBJEXT-o} 3866 am__minus_obj= 3867 ;; 3868 none) break ;; 3869 esac 3870 if depmode=$depmode \ 3871 source=sub/conftest.c object=$am__obj \ 3872 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3873 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3874 >/dev/null 2>conftest.err && 3875 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3876 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3877 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3878 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3879 # icc doesn't choke on unknown options, it will just issue warnings 3880 # or remarks (even with -Werror). So we grep stderr for any message 3881 # that says an option was ignored or not supported. 3882 # When given -MP, icc 7.0 and 7.1 complain thusly: 3883 # icc: Command line warning: ignoring option '-M'; no argument required 3884 # The diagnosis changed in icc 8.0: 3885 # icc: Command line remark: option '-MP' not supported 3886 if (grep 'ignoring option' conftest.err || 3887 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3888 am_cv_CC_dependencies_compiler_type=$depmode 3889 break 3890 fi 3891 fi 3892 done 3893 3894 cd .. 3895 rm -rf conftest.dir 3896else 3897 am_cv_CC_dependencies_compiler_type=none 3898fi 3899 3900fi 3901{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3902$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3903CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3904 3905 if 3906 test "x$enable_dependency_tracking" != xno \ 3907 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3908 am__fastdepCC_TRUE= 3909 am__fastdepCC_FALSE='#' 3910else 3911 am__fastdepCC_TRUE='#' 3912 am__fastdepCC_FALSE= 3913fi 3914 3915 3916{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3917$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3918if test "${ac_cv_path_SED+set}" = set; then 3919 $as_echo_n "(cached) " >&6 3920else 3921 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3922 for ac_i in 1 2 3 4 5 6 7; do 3923 ac_script="$ac_script$as_nl$ac_script" 3924 done 3925 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3926 $as_unset ac_script || ac_script= 3927 if test -z "$SED"; then 3928 ac_path_SED_found=false 3929 # Loop through the user's path and test for each of PROGNAME-LIST 3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3931for as_dir in $PATH 3932do 3933 IFS=$as_save_IFS 3934 test -z "$as_dir" && as_dir=. 3935 for ac_prog in sed gsed; do 3936 for ac_exec_ext in '' $ac_executable_extensions; do 3937 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3938 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3939# Check for GNU ac_path_SED and select it if it is found. 3940 # Check for GNU $ac_path_SED 3941case `"$ac_path_SED" --version 2>&1` in 3942*GNU*) 3943 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3944*) 3945 ac_count=0 3946 $as_echo_n 0123456789 >"conftest.in" 3947 while : 3948 do 3949 cat "conftest.in" "conftest.in" >"conftest.tmp" 3950 mv "conftest.tmp" "conftest.in" 3951 cp "conftest.in" "conftest.nl" 3952 $as_echo '' >> "conftest.nl" 3953 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3955 ac_count=`expr $ac_count + 1` 3956 if test $ac_count -gt ${ac_path_SED_max-0}; then 3957 # Best one so far, save it but keep looking for a better one 3958 ac_cv_path_SED="$ac_path_SED" 3959 ac_path_SED_max=$ac_count 3960 fi 3961 # 10*(2^10) chars as input seems more than enough 3962 test $ac_count -gt 10 && break 3963 done 3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3965esac 3966 3967 $ac_path_SED_found && break 3 3968 done 3969 done 3970done 3971IFS=$as_save_IFS 3972 if test -z "$ac_cv_path_SED"; then 3973 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3974$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3975 { (exit 1); exit 1; }; } 3976 fi 3977else 3978 ac_cv_path_SED=$SED 3979fi 3980 3981fi 3982{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3983$as_echo "$ac_cv_path_SED" >&6; } 3984 SED="$ac_cv_path_SED" 3985 rm -f conftest.sed 3986 3987test -z "$SED" && SED=sed 3988Xsed="$SED -e 1s/^X//" 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4001$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4002if test "${ac_cv_path_GREP+set}" = set; then 4003 $as_echo_n "(cached) " >&6 4004else 4005 if test -z "$GREP"; then 4006 ac_path_GREP_found=false 4007 # Loop through the user's path and test for each of PROGNAME-LIST 4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4009for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4010do 4011 IFS=$as_save_IFS 4012 test -z "$as_dir" && as_dir=. 4013 for ac_prog in grep ggrep; do 4014 for ac_exec_ext in '' $ac_executable_extensions; do 4015 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4017# Check for GNU ac_path_GREP and select it if it is found. 4018 # Check for GNU $ac_path_GREP 4019case `"$ac_path_GREP" --version 2>&1` in 4020*GNU*) 4021 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4022*) 4023 ac_count=0 4024 $as_echo_n 0123456789 >"conftest.in" 4025 while : 4026 do 4027 cat "conftest.in" "conftest.in" >"conftest.tmp" 4028 mv "conftest.tmp" "conftest.in" 4029 cp "conftest.in" "conftest.nl" 4030 $as_echo 'GREP' >> "conftest.nl" 4031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4033 ac_count=`expr $ac_count + 1` 4034 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4035 # Best one so far, save it but keep looking for a better one 4036 ac_cv_path_GREP="$ac_path_GREP" 4037 ac_path_GREP_max=$ac_count 4038 fi 4039 # 10*(2^10) chars as input seems more than enough 4040 test $ac_count -gt 10 && break 4041 done 4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4043esac 4044 4045 $ac_path_GREP_found && break 3 4046 done 4047 done 4048done 4049IFS=$as_save_IFS 4050 if test -z "$ac_cv_path_GREP"; then 4051 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4052$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4053 { (exit 1); exit 1; }; } 4054 fi 4055else 4056 ac_cv_path_GREP=$GREP 4057fi 4058 4059fi 4060{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4061$as_echo "$ac_cv_path_GREP" >&6; } 4062 GREP="$ac_cv_path_GREP" 4063 4064 4065{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4066$as_echo_n "checking for egrep... " >&6; } 4067if test "${ac_cv_path_EGREP+set}" = set; then 4068 $as_echo_n "(cached) " >&6 4069else 4070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4071 then ac_cv_path_EGREP="$GREP -E" 4072 else 4073 if test -z "$EGREP"; then 4074 ac_path_EGREP_found=false 4075 # Loop through the user's path and test for each of PROGNAME-LIST 4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4078do 4079 IFS=$as_save_IFS 4080 test -z "$as_dir" && as_dir=. 4081 for ac_prog in egrep; do 4082 for ac_exec_ext in '' $ac_executable_extensions; do 4083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4085# Check for GNU ac_path_EGREP and select it if it is found. 4086 # Check for GNU $ac_path_EGREP 4087case `"$ac_path_EGREP" --version 2>&1` in 4088*GNU*) 4089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4090*) 4091 ac_count=0 4092 $as_echo_n 0123456789 >"conftest.in" 4093 while : 4094 do 4095 cat "conftest.in" "conftest.in" >"conftest.tmp" 4096 mv "conftest.tmp" "conftest.in" 4097 cp "conftest.in" "conftest.nl" 4098 $as_echo 'EGREP' >> "conftest.nl" 4099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4101 ac_count=`expr $ac_count + 1` 4102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4103 # Best one so far, save it but keep looking for a better one 4104 ac_cv_path_EGREP="$ac_path_EGREP" 4105 ac_path_EGREP_max=$ac_count 4106 fi 4107 # 10*(2^10) chars as input seems more than enough 4108 test $ac_count -gt 10 && break 4109 done 4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4111esac 4112 4113 $ac_path_EGREP_found && break 3 4114 done 4115 done 4116done 4117IFS=$as_save_IFS 4118 if test -z "$ac_cv_path_EGREP"; then 4119 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4120$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4121 { (exit 1); exit 1; }; } 4122 fi 4123else 4124 ac_cv_path_EGREP=$EGREP 4125fi 4126 4127 fi 4128fi 4129{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4130$as_echo "$ac_cv_path_EGREP" >&6; } 4131 EGREP="$ac_cv_path_EGREP" 4132 4133 4134{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4135$as_echo_n "checking for fgrep... " >&6; } 4136if test "${ac_cv_path_FGREP+set}" = set; then 4137 $as_echo_n "(cached) " >&6 4138else 4139 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4140 then ac_cv_path_FGREP="$GREP -F" 4141 else 4142 if test -z "$FGREP"; then 4143 ac_path_FGREP_found=false 4144 # Loop through the user's path and test for each of PROGNAME-LIST 4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4146for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4147do 4148 IFS=$as_save_IFS 4149 test -z "$as_dir" && as_dir=. 4150 for ac_prog in fgrep; do 4151 for ac_exec_ext in '' $ac_executable_extensions; do 4152 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4153 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4154# Check for GNU ac_path_FGREP and select it if it is found. 4155 # Check for GNU $ac_path_FGREP 4156case `"$ac_path_FGREP" --version 2>&1` in 4157*GNU*) 4158 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4159*) 4160 ac_count=0 4161 $as_echo_n 0123456789 >"conftest.in" 4162 while : 4163 do 4164 cat "conftest.in" "conftest.in" >"conftest.tmp" 4165 mv "conftest.tmp" "conftest.in" 4166 cp "conftest.in" "conftest.nl" 4167 $as_echo 'FGREP' >> "conftest.nl" 4168 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4170 ac_count=`expr $ac_count + 1` 4171 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4172 # Best one so far, save it but keep looking for a better one 4173 ac_cv_path_FGREP="$ac_path_FGREP" 4174 ac_path_FGREP_max=$ac_count 4175 fi 4176 # 10*(2^10) chars as input seems more than enough 4177 test $ac_count -gt 10 && break 4178 done 4179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4180esac 4181 4182 $ac_path_FGREP_found && break 3 4183 done 4184 done 4185done 4186IFS=$as_save_IFS 4187 if test -z "$ac_cv_path_FGREP"; then 4188 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4189$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4190 { (exit 1); exit 1; }; } 4191 fi 4192else 4193 ac_cv_path_FGREP=$FGREP 4194fi 4195 4196 fi 4197fi 4198{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4199$as_echo "$ac_cv_path_FGREP" >&6; } 4200 FGREP="$ac_cv_path_FGREP" 4201 4202 4203test -z "$GREP" && GREP=grep 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223# Check whether --with-gnu-ld was given. 4224if test "${with_gnu_ld+set}" = set; then 4225 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4226else 4227 with_gnu_ld=no 4228fi 4229 4230ac_prog=ld 4231if test "$GCC" = yes; then 4232 # Check if gcc -print-prog-name=ld gives a path. 4233 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4234$as_echo_n "checking for ld used by $CC... " >&6; } 4235 case $host in 4236 *-*-mingw*) 4237 # gcc leaves a trailing carriage return which upsets mingw 4238 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4239 *) 4240 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4241 esac 4242 case $ac_prog in 4243 # Accept absolute paths. 4244 [\\/]* | ?:[\\/]*) 4245 re_direlt='/[^/][^/]*/\.\./' 4246 # Canonicalize the pathname of ld 4247 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4248 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4249 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4250 done 4251 test -z "$LD" && LD="$ac_prog" 4252 ;; 4253 "") 4254 # If it fails, then pretend we aren't using GCC. 4255 ac_prog=ld 4256 ;; 4257 *) 4258 # If it is relative, then search for the first ld in PATH. 4259 with_gnu_ld=unknown 4260 ;; 4261 esac 4262elif test "$with_gnu_ld" = yes; then 4263 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4264$as_echo_n "checking for GNU ld... " >&6; } 4265else 4266 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4267$as_echo_n "checking for non-GNU ld... " >&6; } 4268fi 4269if test "${lt_cv_path_LD+set}" = set; then 4270 $as_echo_n "(cached) " >&6 4271else 4272 if test -z "$LD"; then 4273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4274 for ac_dir in $PATH; do 4275 IFS="$lt_save_ifs" 4276 test -z "$ac_dir" && ac_dir=. 4277 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4278 lt_cv_path_LD="$ac_dir/$ac_prog" 4279 # Check to see if the program is GNU ld. I'd rather use --version, 4280 # but apparently some variants of GNU ld only accept -v. 4281 # Break only if it was the GNU/non-GNU ld that we prefer. 4282 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4283 *GNU* | *'with BFD'*) 4284 test "$with_gnu_ld" != no && break 4285 ;; 4286 *) 4287 test "$with_gnu_ld" != yes && break 4288 ;; 4289 esac 4290 fi 4291 done 4292 IFS="$lt_save_ifs" 4293else 4294 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4295fi 4296fi 4297 4298LD="$lt_cv_path_LD" 4299if test -n "$LD"; then 4300 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4301$as_echo "$LD" >&6; } 4302else 4303 { $as_echo "$as_me:$LINENO: result: no" >&5 4304$as_echo "no" >&6; } 4305fi 4306test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4307$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4308 { (exit 1); exit 1; }; } 4309{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4310$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4311if test "${lt_cv_prog_gnu_ld+set}" = set; then 4312 $as_echo_n "(cached) " >&6 4313else 4314 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4315case `$LD -v 2>&1 </dev/null` in 4316*GNU* | *'with BFD'*) 4317 lt_cv_prog_gnu_ld=yes 4318 ;; 4319*) 4320 lt_cv_prog_gnu_ld=no 4321 ;; 4322esac 4323fi 4324{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4325$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4326with_gnu_ld=$lt_cv_prog_gnu_ld 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4337$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4338if test "${lt_cv_path_NM+set}" = set; then 4339 $as_echo_n "(cached) " >&6 4340else 4341 if test -n "$NM"; then 4342 # Let the user override the test. 4343 lt_cv_path_NM="$NM" 4344else 4345 lt_nm_to_check="${ac_tool_prefix}nm" 4346 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4347 lt_nm_to_check="$lt_nm_to_check nm" 4348 fi 4349 for lt_tmp_nm in $lt_nm_to_check; do 4350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4351 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4352 IFS="$lt_save_ifs" 4353 test -z "$ac_dir" && ac_dir=. 4354 tmp_nm="$ac_dir/$lt_tmp_nm" 4355 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4356 # Check to see if the nm accepts a BSD-compat flag. 4357 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4358 # nm: unknown option "B" ignored 4359 # Tru64's nm complains that /dev/null is an invalid object file 4360 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4361 */dev/null* | *'Invalid file or object type'*) 4362 lt_cv_path_NM="$tmp_nm -B" 4363 break 4364 ;; 4365 *) 4366 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4367 */dev/null*) 4368 lt_cv_path_NM="$tmp_nm -p" 4369 break 4370 ;; 4371 *) 4372 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4373 continue # so that we can try to find one that supports BSD flags 4374 ;; 4375 esac 4376 ;; 4377 esac 4378 fi 4379 done 4380 IFS="$lt_save_ifs" 4381 done 4382 : ${lt_cv_path_NM=no} 4383fi 4384fi 4385{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4386$as_echo "$lt_cv_path_NM" >&6; } 4387if test "$lt_cv_path_NM" != "no"; then 4388 NM="$lt_cv_path_NM" 4389else 4390 # Didn't find any BSD compatible name lister, look for dumpbin. 4391 if test -n "$ac_tool_prefix"; then 4392 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4393 do 4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4395set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4397$as_echo_n "checking for $ac_word... " >&6; } 4398if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4399 $as_echo_n "(cached) " >&6 4400else 4401 if test -n "$DUMPBIN"; then 4402 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4403else 4404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4405for as_dir in $PATH 4406do 4407 IFS=$as_save_IFS 4408 test -z "$as_dir" && as_dir=. 4409 for ac_exec_ext in '' $ac_executable_extensions; do 4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4411 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4413 break 2 4414 fi 4415done 4416done 4417IFS=$as_save_IFS 4418 4419fi 4420fi 4421DUMPBIN=$ac_cv_prog_DUMPBIN 4422if test -n "$DUMPBIN"; then 4423 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4424$as_echo "$DUMPBIN" >&6; } 4425else 4426 { $as_echo "$as_me:$LINENO: result: no" >&5 4427$as_echo "no" >&6; } 4428fi 4429 4430 4431 test -n "$DUMPBIN" && break 4432 done 4433fi 4434if test -z "$DUMPBIN"; then 4435 ac_ct_DUMPBIN=$DUMPBIN 4436 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4437do 4438 # Extract the first word of "$ac_prog", so it can be a program name with args. 4439set dummy $ac_prog; ac_word=$2 4440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4441$as_echo_n "checking for $ac_word... " >&6; } 4442if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4443 $as_echo_n "(cached) " >&6 4444else 4445 if test -n "$ac_ct_DUMPBIN"; then 4446 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4447else 4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4449for as_dir in $PATH 4450do 4451 IFS=$as_save_IFS 4452 test -z "$as_dir" && as_dir=. 4453 for ac_exec_ext in '' $ac_executable_extensions; do 4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4455 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4457 break 2 4458 fi 4459done 4460done 4461IFS=$as_save_IFS 4462 4463fi 4464fi 4465ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4466if test -n "$ac_ct_DUMPBIN"; then 4467 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4468$as_echo "$ac_ct_DUMPBIN" >&6; } 4469else 4470 { $as_echo "$as_me:$LINENO: result: no" >&5 4471$as_echo "no" >&6; } 4472fi 4473 4474 4475 test -n "$ac_ct_DUMPBIN" && break 4476done 4477 4478 if test "x$ac_ct_DUMPBIN" = x; then 4479 DUMPBIN=":" 4480 else 4481 case $cross_compiling:$ac_tool_warned in 4482yes:) 4483{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4485ac_tool_warned=yes ;; 4486esac 4487 DUMPBIN=$ac_ct_DUMPBIN 4488 fi 4489fi 4490 4491 4492 if test "$DUMPBIN" != ":"; then 4493 NM="$DUMPBIN" 4494 fi 4495fi 4496test -z "$NM" && NM=nm 4497 4498 4499 4500 4501 4502 4503{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4504$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4505if test "${lt_cv_nm_interface+set}" = set; then 4506 $as_echo_n "(cached) " >&6 4507else 4508 lt_cv_nm_interface="BSD nm" 4509 echo "int some_variable = 0;" > conftest.$ac_ext 4510 (eval echo "\"\$as_me:4510: $ac_compile\"" >&5) 4511 (eval "$ac_compile" 2>conftest.err) 4512 cat conftest.err >&5 4513 (eval echo "\"\$as_me:4513: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4514 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4515 cat conftest.err >&5 4516 (eval echo "\"\$as_me:4516: output\"" >&5) 4517 cat conftest.out >&5 4518 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4519 lt_cv_nm_interface="MS dumpbin" 4520 fi 4521 rm -f conftest* 4522fi 4523{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4524$as_echo "$lt_cv_nm_interface" >&6; } 4525 4526{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4527$as_echo_n "checking whether ln -s works... " >&6; } 4528LN_S=$as_ln_s 4529if test "$LN_S" = "ln -s"; then 4530 { $as_echo "$as_me:$LINENO: result: yes" >&5 4531$as_echo "yes" >&6; } 4532else 4533 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4534$as_echo "no, using $LN_S" >&6; } 4535fi 4536 4537# find the maximum length of command line arguments 4538{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4539$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4540if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4541 $as_echo_n "(cached) " >&6 4542else 4543 i=0 4544 teststring="ABCD" 4545 4546 case $build_os in 4547 msdosdjgpp*) 4548 # On DJGPP, this test can blow up pretty badly due to problems in libc 4549 # (any single argument exceeding 2000 bytes causes a buffer overrun 4550 # during glob expansion). Even if it were fixed, the result of this 4551 # check would be larger than it should be. 4552 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4553 ;; 4554 4555 gnu*) 4556 # Under GNU Hurd, this test is not required because there is 4557 # no limit to the length of command line arguments. 4558 # Libtool will interpret -1 as no limit whatsoever 4559 lt_cv_sys_max_cmd_len=-1; 4560 ;; 4561 4562 cygwin* | mingw* | cegcc*) 4563 # On Win9x/ME, this test blows up -- it succeeds, but takes 4564 # about 5 minutes as the teststring grows exponentially. 4565 # Worse, since 9x/ME are not pre-emptively multitasking, 4566 # you end up with a "frozen" computer, even though with patience 4567 # the test eventually succeeds (with a max line length of 256k). 4568 # Instead, let's just punt: use the minimum linelength reported by 4569 # all of the supported platforms: 8192 (on NT/2K/XP). 4570 lt_cv_sys_max_cmd_len=8192; 4571 ;; 4572 4573 amigaos*) 4574 # On AmigaOS with pdksh, this test takes hours, literally. 4575 # So we just punt and use a minimum line length of 8192. 4576 lt_cv_sys_max_cmd_len=8192; 4577 ;; 4578 4579 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4580 # This has been around since 386BSD, at least. Likely further. 4581 if test -x /sbin/sysctl; then 4582 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4583 elif test -x /usr/sbin/sysctl; then 4584 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4585 else 4586 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4587 fi 4588 # And add a safety zone 4589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4591 ;; 4592 4593 interix*) 4594 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4595 lt_cv_sys_max_cmd_len=196608 4596 ;; 4597 4598 osf*) 4599 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4600 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4601 # nice to cause kernel panics so lets avoid the loop below. 4602 # First set a reasonable default. 4603 lt_cv_sys_max_cmd_len=16384 4604 # 4605 if test -x /sbin/sysconfig; then 4606 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4607 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4608 esac 4609 fi 4610 ;; 4611 sco3.2v5*) 4612 lt_cv_sys_max_cmd_len=102400 4613 ;; 4614 sysv5* | sco5v6* | sysv4.2uw2*) 4615 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4616 if test -n "$kargmax"; then 4617 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4618 else 4619 lt_cv_sys_max_cmd_len=32768 4620 fi 4621 ;; 4622 *) 4623 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4624 if test -n "$lt_cv_sys_max_cmd_len"; then 4625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4627 else 4628 # Make teststring a little bigger before we do anything with it. 4629 # a 1K string should be a reasonable start. 4630 for i in 1 2 3 4 5 6 7 8 ; do 4631 teststring=$teststring$teststring 4632 done 4633 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4634 # If test is not a shell built-in, we'll probably end up computing a 4635 # maximum length that is only half of the actual maximum length, but 4636 # we can't tell. 4637 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4638 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4639 test $i != 17 # 1/2 MB should be enough 4640 do 4641 i=`expr $i + 1` 4642 teststring=$teststring$teststring 4643 done 4644 # Only check the string length outside the loop. 4645 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4646 teststring= 4647 # Add a significant safety factor because C++ compilers can tack on 4648 # massive amounts of additional arguments before passing them to the 4649 # linker. It appears as though 1/2 is a usable value. 4650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4651 fi 4652 ;; 4653 esac 4654 4655fi 4656 4657if test -n $lt_cv_sys_max_cmd_len ; then 4658 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4659$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4660else 4661 { $as_echo "$as_me:$LINENO: result: none" >&5 4662$as_echo "none" >&6; } 4663fi 4664max_cmd_len=$lt_cv_sys_max_cmd_len 4665 4666 4667 4668 4669 4670 4671: ${CP="cp -f"} 4672: ${MV="mv -f"} 4673: ${RM="rm -f"} 4674 4675{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4676$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4677# Try some XSI features 4678xsi_shell=no 4679( _lt_dummy="a/b/c" 4680 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4681 = c,a/b,, \ 4682 && eval 'test $(( 1 + 1 )) -eq 2 \ 4683 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4684 && xsi_shell=yes 4685{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4686$as_echo "$xsi_shell" >&6; } 4687 4688 4689{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4690$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4691lt_shell_append=no 4692( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4693 >/dev/null 2>&1 \ 4694 && lt_shell_append=yes 4695{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4696$as_echo "$lt_shell_append" >&6; } 4697 4698 4699if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4700 lt_unset=unset 4701else 4702 lt_unset=false 4703fi 4704 4705 4706 4707 4708 4709# test EBCDIC or ASCII 4710case `echo X|tr X '\101'` in 4711 A) # ASCII based system 4712 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4713 lt_SP2NL='tr \040 \012' 4714 lt_NL2SP='tr \015\012 \040\040' 4715 ;; 4716 *) # EBCDIC based system 4717 lt_SP2NL='tr \100 \n' 4718 lt_NL2SP='tr \r\n \100\100' 4719 ;; 4720esac 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4731$as_echo_n "checking for $LD option to reload object files... " >&6; } 4732if test "${lt_cv_ld_reload_flag+set}" = set; then 4733 $as_echo_n "(cached) " >&6 4734else 4735 lt_cv_ld_reload_flag='-r' 4736fi 4737{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4738$as_echo "$lt_cv_ld_reload_flag" >&6; } 4739reload_flag=$lt_cv_ld_reload_flag 4740case $reload_flag in 4741"" | " "*) ;; 4742*) reload_flag=" $reload_flag" ;; 4743esac 4744reload_cmds='$LD$reload_flag -o $output$reload_objs' 4745case $host_os in 4746 darwin*) 4747 if test "$GCC" = yes; then 4748 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4749 else 4750 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4751 fi 4752 ;; 4753esac 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763if test -n "$ac_tool_prefix"; then 4764 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4765set dummy ${ac_tool_prefix}objdump; ac_word=$2 4766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4767$as_echo_n "checking for $ac_word... " >&6; } 4768if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4769 $as_echo_n "(cached) " >&6 4770else 4771 if test -n "$OBJDUMP"; then 4772 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4773else 4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4775for as_dir in $PATH 4776do 4777 IFS=$as_save_IFS 4778 test -z "$as_dir" && as_dir=. 4779 for ac_exec_ext in '' $ac_executable_extensions; do 4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4781 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4783 break 2 4784 fi 4785done 4786done 4787IFS=$as_save_IFS 4788 4789fi 4790fi 4791OBJDUMP=$ac_cv_prog_OBJDUMP 4792if test -n "$OBJDUMP"; then 4793 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4794$as_echo "$OBJDUMP" >&6; } 4795else 4796 { $as_echo "$as_me:$LINENO: result: no" >&5 4797$as_echo "no" >&6; } 4798fi 4799 4800 4801fi 4802if test -z "$ac_cv_prog_OBJDUMP"; then 4803 ac_ct_OBJDUMP=$OBJDUMP 4804 # Extract the first word of "objdump", so it can be a program name with args. 4805set dummy objdump; ac_word=$2 4806{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4807$as_echo_n "checking for $ac_word... " >&6; } 4808if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4809 $as_echo_n "(cached) " >&6 4810else 4811 if test -n "$ac_ct_OBJDUMP"; then 4812 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4813else 4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4815for as_dir in $PATH 4816do 4817 IFS=$as_save_IFS 4818 test -z "$as_dir" && as_dir=. 4819 for ac_exec_ext in '' $ac_executable_extensions; do 4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4821 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4823 break 2 4824 fi 4825done 4826done 4827IFS=$as_save_IFS 4828 4829fi 4830fi 4831ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4832if test -n "$ac_ct_OBJDUMP"; then 4833 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4834$as_echo "$ac_ct_OBJDUMP" >&6; } 4835else 4836 { $as_echo "$as_me:$LINENO: result: no" >&5 4837$as_echo "no" >&6; } 4838fi 4839 4840 if test "x$ac_ct_OBJDUMP" = x; then 4841 OBJDUMP="false" 4842 else 4843 case $cross_compiling:$ac_tool_warned in 4844yes:) 4845{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4847ac_tool_warned=yes ;; 4848esac 4849 OBJDUMP=$ac_ct_OBJDUMP 4850 fi 4851else 4852 OBJDUMP="$ac_cv_prog_OBJDUMP" 4853fi 4854 4855test -z "$OBJDUMP" && OBJDUMP=objdump 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4866$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4867if test "${lt_cv_deplibs_check_method+set}" = set; then 4868 $as_echo_n "(cached) " >&6 4869else 4870 lt_cv_file_magic_cmd='$MAGIC_CMD' 4871lt_cv_file_magic_test_file= 4872lt_cv_deplibs_check_method='unknown' 4873# Need to set the preceding variable on all platforms that support 4874# interlibrary dependencies. 4875# 'none' -- dependencies not supported. 4876# `unknown' -- same as none, but documents that we really don't know. 4877# 'pass_all' -- all dependencies passed with no checks. 4878# 'test_compile' -- check by making test program. 4879# 'file_magic [[regex]]' -- check by looking for files in library path 4880# which responds to the $file_magic_cmd with a given extended regex. 4881# If you have `file' or equivalent on your system and you're not sure 4882# whether `pass_all' will *always* work, you probably want this one. 4883 4884case $host_os in 4885aix[4-9]*) 4886 lt_cv_deplibs_check_method=pass_all 4887 ;; 4888 4889beos*) 4890 lt_cv_deplibs_check_method=pass_all 4891 ;; 4892 4893bsdi[45]*) 4894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4895 lt_cv_file_magic_cmd='/usr/bin/file -L' 4896 lt_cv_file_magic_test_file=/shlib/libc.so 4897 ;; 4898 4899cygwin*) 4900 # func_win32_libid is a shell function defined in ltmain.sh 4901 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4902 lt_cv_file_magic_cmd='func_win32_libid' 4903 ;; 4904 4905mingw* | pw32*) 4906 # Base MSYS/MinGW do not provide the 'file' command needed by 4907 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4908 # unless we find 'file', for example because we are cross-compiling. 4909 if ( file / ) >/dev/null 2>&1; then 4910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4911 lt_cv_file_magic_cmd='func_win32_libid' 4912 else 4913 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4914 lt_cv_file_magic_cmd='$OBJDUMP -f' 4915 fi 4916 ;; 4917 4918cegcc) 4919 # use the weaker test based on 'objdump'. See mingw*. 4920 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4921 lt_cv_file_magic_cmd='$OBJDUMP -f' 4922 ;; 4923 4924darwin* | rhapsody*) 4925 lt_cv_deplibs_check_method=pass_all 4926 ;; 4927 4928freebsd* | dragonfly*) 4929 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4930 case $host_cpu in 4931 i*86 ) 4932 # Not sure whether the presence of OpenBSD here was a mistake. 4933 # Let's accept both of them until this is cleared up. 4934 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4935 lt_cv_file_magic_cmd=/usr/bin/file 4936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4937 ;; 4938 esac 4939 else 4940 lt_cv_deplibs_check_method=pass_all 4941 fi 4942 ;; 4943 4944gnu*) 4945 lt_cv_deplibs_check_method=pass_all 4946 ;; 4947 4948hpux10.20* | hpux11*) 4949 lt_cv_file_magic_cmd=/usr/bin/file 4950 case $host_cpu in 4951 ia64*) 4952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4953 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4954 ;; 4955 hppa*64*) 4956 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]' 4957 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4958 ;; 4959 *) 4960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4961 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4962 ;; 4963 esac 4964 ;; 4965 4966interix[3-9]*) 4967 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4969 ;; 4970 4971irix5* | irix6* | nonstopux*) 4972 case $LD in 4973 *-32|*"-32 ") libmagic=32-bit;; 4974 *-n32|*"-n32 ") libmagic=N32;; 4975 *-64|*"-64 ") libmagic=64-bit;; 4976 *) libmagic=never-match;; 4977 esac 4978 lt_cv_deplibs_check_method=pass_all 4979 ;; 4980 4981# This must be Linux ELF. 4982linux* | k*bsd*-gnu) 4983 lt_cv_deplibs_check_method=pass_all 4984 ;; 4985 4986netbsd*) 4987 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4989 else 4990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4991 fi 4992 ;; 4993 4994newos6*) 4995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4996 lt_cv_file_magic_cmd=/usr/bin/file 4997 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4998 ;; 4999 5000*nto* | *qnx*) 5001 lt_cv_deplibs_check_method=pass_all 5002 ;; 5003 5004openbsd*) 5005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5007 else 5008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5009 fi 5010 ;; 5011 5012osf3* | osf4* | osf5*) 5013 lt_cv_deplibs_check_method=pass_all 5014 ;; 5015 5016rdos*) 5017 lt_cv_deplibs_check_method=pass_all 5018 ;; 5019 5020solaris*) 5021 lt_cv_deplibs_check_method=pass_all 5022 ;; 5023 5024sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5025 lt_cv_deplibs_check_method=pass_all 5026 ;; 5027 5028sysv4 | sysv4.3*) 5029 case $host_vendor in 5030 motorola) 5031 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]' 5032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5033 ;; 5034 ncr) 5035 lt_cv_deplibs_check_method=pass_all 5036 ;; 5037 sequent) 5038 lt_cv_file_magic_cmd='/bin/file' 5039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5040 ;; 5041 sni) 5042 lt_cv_file_magic_cmd='/bin/file' 5043 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5044 lt_cv_file_magic_test_file=/lib/libc.so 5045 ;; 5046 siemens) 5047 lt_cv_deplibs_check_method=pass_all 5048 ;; 5049 pc) 5050 lt_cv_deplibs_check_method=pass_all 5051 ;; 5052 esac 5053 ;; 5054 5055tpf*) 5056 lt_cv_deplibs_check_method=pass_all 5057 ;; 5058esac 5059 5060fi 5061{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5062$as_echo "$lt_cv_deplibs_check_method" >&6; } 5063file_magic_cmd=$lt_cv_file_magic_cmd 5064deplibs_check_method=$lt_cv_deplibs_check_method 5065test -z "$deplibs_check_method" && deplibs_check_method=unknown 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078if test -n "$ac_tool_prefix"; then 5079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5080set dummy ${ac_tool_prefix}ar; ac_word=$2 5081{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5082$as_echo_n "checking for $ac_word... " >&6; } 5083if test "${ac_cv_prog_AR+set}" = set; then 5084 $as_echo_n "(cached) " >&6 5085else 5086 if test -n "$AR"; then 5087 ac_cv_prog_AR="$AR" # Let the user override the test. 5088else 5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5090for as_dir in $PATH 5091do 5092 IFS=$as_save_IFS 5093 test -z "$as_dir" && as_dir=. 5094 for ac_exec_ext in '' $ac_executable_extensions; do 5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5096 ac_cv_prog_AR="${ac_tool_prefix}ar" 5097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5098 break 2 5099 fi 5100done 5101done 5102IFS=$as_save_IFS 5103 5104fi 5105fi 5106AR=$ac_cv_prog_AR 5107if test -n "$AR"; then 5108 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5109$as_echo "$AR" >&6; } 5110else 5111 { $as_echo "$as_me:$LINENO: result: no" >&5 5112$as_echo "no" >&6; } 5113fi 5114 5115 5116fi 5117if test -z "$ac_cv_prog_AR"; then 5118 ac_ct_AR=$AR 5119 # Extract the first word of "ar", so it can be a program name with args. 5120set dummy ar; ac_word=$2 5121{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5122$as_echo_n "checking for $ac_word... " >&6; } 5123if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5124 $as_echo_n "(cached) " >&6 5125else 5126 if test -n "$ac_ct_AR"; then 5127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5128else 5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5130for as_dir in $PATH 5131do 5132 IFS=$as_save_IFS 5133 test -z "$as_dir" && as_dir=. 5134 for ac_exec_ext in '' $ac_executable_extensions; do 5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5136 ac_cv_prog_ac_ct_AR="ar" 5137 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5138 break 2 5139 fi 5140done 5141done 5142IFS=$as_save_IFS 5143 5144fi 5145fi 5146ac_ct_AR=$ac_cv_prog_ac_ct_AR 5147if test -n "$ac_ct_AR"; then 5148 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5149$as_echo "$ac_ct_AR" >&6; } 5150else 5151 { $as_echo "$as_me:$LINENO: result: no" >&5 5152$as_echo "no" >&6; } 5153fi 5154 5155 if test "x$ac_ct_AR" = x; then 5156 AR="false" 5157 else 5158 case $cross_compiling:$ac_tool_warned in 5159yes:) 5160{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5162ac_tool_warned=yes ;; 5163esac 5164 AR=$ac_ct_AR 5165 fi 5166else 5167 AR="$ac_cv_prog_AR" 5168fi 5169 5170test -z "$AR" && AR=ar 5171test -z "$AR_FLAGS" && AR_FLAGS=cru 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183if test -n "$ac_tool_prefix"; then 5184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5185set dummy ${ac_tool_prefix}strip; ac_word=$2 5186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5187$as_echo_n "checking for $ac_word... " >&6; } 5188if test "${ac_cv_prog_STRIP+set}" = set; then 5189 $as_echo_n "(cached) " >&6 5190else 5191 if test -n "$STRIP"; then 5192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5193else 5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5195for as_dir in $PATH 5196do 5197 IFS=$as_save_IFS 5198 test -z "$as_dir" && as_dir=. 5199 for ac_exec_ext in '' $ac_executable_extensions; do 5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5201 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5203 break 2 5204 fi 5205done 5206done 5207IFS=$as_save_IFS 5208 5209fi 5210fi 5211STRIP=$ac_cv_prog_STRIP 5212if test -n "$STRIP"; then 5213 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5214$as_echo "$STRIP" >&6; } 5215else 5216 { $as_echo "$as_me:$LINENO: result: no" >&5 5217$as_echo "no" >&6; } 5218fi 5219 5220 5221fi 5222if test -z "$ac_cv_prog_STRIP"; then 5223 ac_ct_STRIP=$STRIP 5224 # Extract the first word of "strip", so it can be a program name with args. 5225set dummy strip; ac_word=$2 5226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5227$as_echo_n "checking for $ac_word... " >&6; } 5228if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5229 $as_echo_n "(cached) " >&6 5230else 5231 if test -n "$ac_ct_STRIP"; then 5232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5233else 5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5235for as_dir in $PATH 5236do 5237 IFS=$as_save_IFS 5238 test -z "$as_dir" && as_dir=. 5239 for ac_exec_ext in '' $ac_executable_extensions; do 5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5241 ac_cv_prog_ac_ct_STRIP="strip" 5242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5243 break 2 5244 fi 5245done 5246done 5247IFS=$as_save_IFS 5248 5249fi 5250fi 5251ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5252if test -n "$ac_ct_STRIP"; then 5253 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5254$as_echo "$ac_ct_STRIP" >&6; } 5255else 5256 { $as_echo "$as_me:$LINENO: result: no" >&5 5257$as_echo "no" >&6; } 5258fi 5259 5260 if test "x$ac_ct_STRIP" = x; then 5261 STRIP=":" 5262 else 5263 case $cross_compiling:$ac_tool_warned in 5264yes:) 5265{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5267ac_tool_warned=yes ;; 5268esac 5269 STRIP=$ac_ct_STRIP 5270 fi 5271else 5272 STRIP="$ac_cv_prog_STRIP" 5273fi 5274 5275test -z "$STRIP" && STRIP=: 5276 5277 5278 5279 5280 5281 5282if test -n "$ac_tool_prefix"; then 5283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5284set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5285{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5286$as_echo_n "checking for $ac_word... " >&6; } 5287if test "${ac_cv_prog_RANLIB+set}" = set; then 5288 $as_echo_n "(cached) " >&6 5289else 5290 if test -n "$RANLIB"; then 5291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5292else 5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5294for as_dir in $PATH 5295do 5296 IFS=$as_save_IFS 5297 test -z "$as_dir" && as_dir=. 5298 for ac_exec_ext in '' $ac_executable_extensions; do 5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5302 break 2 5303 fi 5304done 5305done 5306IFS=$as_save_IFS 5307 5308fi 5309fi 5310RANLIB=$ac_cv_prog_RANLIB 5311if test -n "$RANLIB"; then 5312 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5313$as_echo "$RANLIB" >&6; } 5314else 5315 { $as_echo "$as_me:$LINENO: result: no" >&5 5316$as_echo "no" >&6; } 5317fi 5318 5319 5320fi 5321if test -z "$ac_cv_prog_RANLIB"; then 5322 ac_ct_RANLIB=$RANLIB 5323 # Extract the first word of "ranlib", so it can be a program name with args. 5324set dummy ranlib; ac_word=$2 5325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5326$as_echo_n "checking for $ac_word... " >&6; } 5327if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5328 $as_echo_n "(cached) " >&6 5329else 5330 if test -n "$ac_ct_RANLIB"; then 5331 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5332else 5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5334for as_dir in $PATH 5335do 5336 IFS=$as_save_IFS 5337 test -z "$as_dir" && as_dir=. 5338 for ac_exec_ext in '' $ac_executable_extensions; do 5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5340 ac_cv_prog_ac_ct_RANLIB="ranlib" 5341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5342 break 2 5343 fi 5344done 5345done 5346IFS=$as_save_IFS 5347 5348fi 5349fi 5350ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5351if test -n "$ac_ct_RANLIB"; then 5352 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5353$as_echo "$ac_ct_RANLIB" >&6; } 5354else 5355 { $as_echo "$as_me:$LINENO: result: no" >&5 5356$as_echo "no" >&6; } 5357fi 5358 5359 if test "x$ac_ct_RANLIB" = x; then 5360 RANLIB=":" 5361 else 5362 case $cross_compiling:$ac_tool_warned in 5363yes:) 5364{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5366ac_tool_warned=yes ;; 5367esac 5368 RANLIB=$ac_ct_RANLIB 5369 fi 5370else 5371 RANLIB="$ac_cv_prog_RANLIB" 5372fi 5373 5374test -z "$RANLIB" && RANLIB=: 5375 5376 5377 5378 5379 5380 5381# Determine commands to create old-style static archives. 5382old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5383old_postinstall_cmds='chmod 644 $oldlib' 5384old_postuninstall_cmds= 5385 5386if test -n "$RANLIB"; then 5387 case $host_os in 5388 openbsd*) 5389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5390 ;; 5391 *) 5392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5393 ;; 5394 esac 5395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5396fi 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431# If no C compiler was specified, use CC. 5432LTCC=${LTCC-"$CC"} 5433 5434# If no C compiler flags were specified, use CFLAGS. 5435LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5436 5437# Allow CC to be a program name with arguments. 5438compiler=$CC 5439 5440 5441# Check for command to grab the raw symbol name followed by C symbol from nm. 5442{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5443$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5444if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5445 $as_echo_n "(cached) " >&6 5446else 5447 5448# These are sane defaults that work on at least a few old systems. 5449# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5450 5451# Character class describing NM global symbol codes. 5452symcode='[BCDEGRST]' 5453 5454# Regexp to match symbols that can be accessed directly from C. 5455sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5456 5457# Define system-specific variables. 5458case $host_os in 5459aix*) 5460 symcode='[BCDT]' 5461 ;; 5462cygwin* | mingw* | pw32* | cegcc*) 5463 symcode='[ABCDGISTW]' 5464 ;; 5465hpux*) 5466 if test "$host_cpu" = ia64; then 5467 symcode='[ABCDEGRST]' 5468 fi 5469 ;; 5470irix* | nonstopux*) 5471 symcode='[BCDEGRST]' 5472 ;; 5473osf*) 5474 symcode='[BCDEGQRST]' 5475 ;; 5476solaris*) 5477 symcode='[BDRT]' 5478 ;; 5479sco3.2v5*) 5480 symcode='[DT]' 5481 ;; 5482sysv4.2uw2*) 5483 symcode='[DT]' 5484 ;; 5485sysv5* | sco5v6* | unixware* | OpenUNIX*) 5486 symcode='[ABDT]' 5487 ;; 5488sysv4) 5489 symcode='[DFNSTU]' 5490 ;; 5491esac 5492 5493# If we're using GNU nm, then use its standard symbol codes. 5494case `$NM -V 2>&1` in 5495*GNU* | *'with BFD'*) 5496 symcode='[ABCDGIRSTW]' ;; 5497esac 5498 5499# Transform an extracted symbol line into a proper C declaration. 5500# Some systems (esp. on ia64) link data and code symbols differently, 5501# so use this general approach. 5502lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5503 5504# Transform an extracted symbol line into symbol name and symbol address 5505lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5506lt_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'" 5507 5508# Handle CRLF in mingw tool chain 5509opt_cr= 5510case $build_os in 5511mingw*) 5512 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5513 ;; 5514esac 5515 5516# Try without a prefix underscore, then with it. 5517for ac_symprfx in "" "_"; do 5518 5519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5520 symxfrm="\\1 $ac_symprfx\\2 \\2" 5521 5522 # Write the raw and C identifiers. 5523 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5524 # Fake it for dumpbin and say T for any non-static function 5525 # and D for any global variable. 5526 # Also find C++ and __fastcall symbols from MSVC++, 5527 # which start with @ or ?. 5528 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5529" {last_section=section; section=\$ 3};"\ 5530" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5531" \$ 0!~/External *\|/{next};"\ 5532" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5533" {if(hide[section]) next};"\ 5534" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5535" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5536" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5537" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5538" ' prfx=^$ac_symprfx" 5539 else 5540 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5541 fi 5542 5543 # Check to see that the pipe works correctly. 5544 pipe_works=no 5545 5546 rm -f conftest* 5547 cat > conftest.$ac_ext <<_LT_EOF 5548#ifdef __cplusplus 5549extern "C" { 5550#endif 5551char nm_test_var; 5552void nm_test_func(void); 5553void nm_test_func(void){} 5554#ifdef __cplusplus 5555} 5556#endif 5557int main(){nm_test_var='a';nm_test_func();return(0);} 5558_LT_EOF 5559 5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5561 (eval $ac_compile) 2>&5 5562 ac_status=$? 5563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5564 (exit $ac_status); }; then 5565 # Now try to grab the symbols. 5566 nlist=conftest.nm 5567 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5568 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5569 ac_status=$? 5570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5571 (exit $ac_status); } && test -s "$nlist"; then 5572 # Try sorting and uniquifying the output. 5573 if sort "$nlist" | uniq > "$nlist"T; then 5574 mv -f "$nlist"T "$nlist" 5575 else 5576 rm -f "$nlist"T 5577 fi 5578 5579 # Make sure that we snagged all the symbols we need. 5580 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5581 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5582 cat <<_LT_EOF > conftest.$ac_ext 5583#ifdef __cplusplus 5584extern "C" { 5585#endif 5586 5587_LT_EOF 5588 # Now generate the symbol file. 5589 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5590 5591 cat <<_LT_EOF >> conftest.$ac_ext 5592 5593/* The mapping between symbol names and symbols. */ 5594const struct { 5595 const char *name; 5596 void *address; 5597} 5598lt__PROGRAM__LTX_preloaded_symbols[] = 5599{ 5600 { "@PROGRAM@", (void *) 0 }, 5601_LT_EOF 5602 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5603 cat <<\_LT_EOF >> conftest.$ac_ext 5604 {0, (void *) 0} 5605}; 5606 5607/* This works around a problem in FreeBSD linker */ 5608#ifdef FREEBSD_WORKAROUND 5609static const void *lt_preloaded_setup() { 5610 return lt__PROGRAM__LTX_preloaded_symbols; 5611} 5612#endif 5613 5614#ifdef __cplusplus 5615} 5616#endif 5617_LT_EOF 5618 # Now try linking the two files. 5619 mv conftest.$ac_objext conftstm.$ac_objext 5620 lt_save_LIBS="$LIBS" 5621 lt_save_CFLAGS="$CFLAGS" 5622 LIBS="conftstm.$ac_objext" 5623 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5625 (eval $ac_link) 2>&5 5626 ac_status=$? 5627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5628 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5629 pipe_works=yes 5630 fi 5631 LIBS="$lt_save_LIBS" 5632 CFLAGS="$lt_save_CFLAGS" 5633 else 5634 echo "cannot find nm_test_func in $nlist" >&5 5635 fi 5636 else 5637 echo "cannot find nm_test_var in $nlist" >&5 5638 fi 5639 else 5640 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5641 fi 5642 else 5643 echo "$progname: failed program was:" >&5 5644 cat conftest.$ac_ext >&5 5645 fi 5646 rm -rf conftest* conftst* 5647 5648 # Do not use the global_symbol_pipe unless it works. 5649 if test "$pipe_works" = yes; then 5650 break 5651 else 5652 lt_cv_sys_global_symbol_pipe= 5653 fi 5654done 5655 5656fi 5657 5658if test -z "$lt_cv_sys_global_symbol_pipe"; then 5659 lt_cv_sys_global_symbol_to_cdecl= 5660fi 5661if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5662 { $as_echo "$as_me:$LINENO: result: failed" >&5 5663$as_echo "failed" >&6; } 5664else 5665 { $as_echo "$as_me:$LINENO: result: ok" >&5 5666$as_echo "ok" >&6; } 5667fi 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691# Check whether --enable-libtool-lock was given. 5692if test "${enable_libtool_lock+set}" = set; then 5693 enableval=$enable_libtool_lock; 5694fi 5695 5696test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5697 5698# Some flags need to be propagated to the compiler or linker for good 5699# libtool support. 5700case $host in 5701ia64-*-hpux*) 5702 # Find out which ABI we are using. 5703 echo 'int i;' > conftest.$ac_ext 5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5705 (eval $ac_compile) 2>&5 5706 ac_status=$? 5707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5708 (exit $ac_status); }; then 5709 case `/usr/bin/file conftest.$ac_objext` in 5710 *ELF-32*) 5711 HPUX_IA64_MODE="32" 5712 ;; 5713 *ELF-64*) 5714 HPUX_IA64_MODE="64" 5715 ;; 5716 esac 5717 fi 5718 rm -rf conftest* 5719 ;; 5720*-*-irix6*) 5721 # Find out which ABI we are using. 5722 echo '#line 5722 "configure"' > conftest.$ac_ext 5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5724 (eval $ac_compile) 2>&5 5725 ac_status=$? 5726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5727 (exit $ac_status); }; then 5728 if test "$lt_cv_prog_gnu_ld" = yes; then 5729 case `/usr/bin/file conftest.$ac_objext` in 5730 *32-bit*) 5731 LD="${LD-ld} -melf32bsmip" 5732 ;; 5733 *N32*) 5734 LD="${LD-ld} -melf32bmipn32" 5735 ;; 5736 *64-bit*) 5737 LD="${LD-ld} -melf64bmip" 5738 ;; 5739 esac 5740 else 5741 case `/usr/bin/file conftest.$ac_objext` in 5742 *32-bit*) 5743 LD="${LD-ld} -32" 5744 ;; 5745 *N32*) 5746 LD="${LD-ld} -n32" 5747 ;; 5748 *64-bit*) 5749 LD="${LD-ld} -64" 5750 ;; 5751 esac 5752 fi 5753 fi 5754 rm -rf conftest* 5755 ;; 5756 5757x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5758s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5759 # Find out which ABI we are using. 5760 echo 'int i;' > conftest.$ac_ext 5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5762 (eval $ac_compile) 2>&5 5763 ac_status=$? 5764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5765 (exit $ac_status); }; then 5766 case `/usr/bin/file conftest.o` in 5767 *32-bit*) 5768 case $host in 5769 x86_64-*kfreebsd*-gnu) 5770 LD="${LD-ld} -m elf_i386_fbsd" 5771 ;; 5772 x86_64-*linux*) 5773 LD="${LD-ld} -m elf_i386" 5774 ;; 5775 ppc64-*linux*|powerpc64-*linux*) 5776 LD="${LD-ld} -m elf32ppclinux" 5777 ;; 5778 s390x-*linux*) 5779 LD="${LD-ld} -m elf_s390" 5780 ;; 5781 sparc64-*linux*) 5782 LD="${LD-ld} -m elf32_sparc" 5783 ;; 5784 esac 5785 ;; 5786 *64-bit*) 5787 case $host in 5788 x86_64-*kfreebsd*-gnu) 5789 LD="${LD-ld} -m elf_x86_64_fbsd" 5790 ;; 5791 x86_64-*linux*) 5792 LD="${LD-ld} -m elf_x86_64" 5793 ;; 5794 ppc*-*linux*|powerpc*-*linux*) 5795 LD="${LD-ld} -m elf64ppc" 5796 ;; 5797 s390*-*linux*|s390*-*tpf*) 5798 LD="${LD-ld} -m elf64_s390" 5799 ;; 5800 sparc*-*linux*) 5801 LD="${LD-ld} -m elf64_sparc" 5802 ;; 5803 esac 5804 ;; 5805 esac 5806 fi 5807 rm -rf conftest* 5808 ;; 5809 5810*-*-sco3.2v5*) 5811 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5812 SAVE_CFLAGS="$CFLAGS" 5813 CFLAGS="$CFLAGS -belf" 5814 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5815$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5816if test "${lt_cv_cc_needs_belf+set}" = set; then 5817 $as_echo_n "(cached) " >&6 5818else 5819 ac_ext=c 5820ac_cpp='$CPP $CPPFLAGS' 5821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5823ac_compiler_gnu=$ac_cv_c_compiler_gnu 5824 5825 cat >conftest.$ac_ext <<_ACEOF 5826/* confdefs.h. */ 5827_ACEOF 5828cat confdefs.h >>conftest.$ac_ext 5829cat >>conftest.$ac_ext <<_ACEOF 5830/* end confdefs.h. */ 5831 5832int 5833main () 5834{ 5835 5836 ; 5837 return 0; 5838} 5839_ACEOF 5840rm -f conftest.$ac_objext conftest$ac_exeext 5841if { (ac_try="$ac_link" 5842case "(($ac_try" in 5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5844 *) ac_try_echo=$ac_try;; 5845esac 5846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5847$as_echo "$ac_try_echo") >&5 5848 (eval "$ac_link") 2>conftest.er1 5849 ac_status=$? 5850 grep -v '^ *+' conftest.er1 >conftest.err 5851 rm -f conftest.er1 5852 cat conftest.err >&5 5853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5854 (exit $ac_status); } && { 5855 test -z "$ac_c_werror_flag" || 5856 test ! -s conftest.err 5857 } && test -s conftest$ac_exeext && { 5858 test "$cross_compiling" = yes || 5859 $as_test_x conftest$ac_exeext 5860 }; then 5861 lt_cv_cc_needs_belf=yes 5862else 5863 $as_echo "$as_me: failed program was:" >&5 5864sed 's/^/| /' conftest.$ac_ext >&5 5865 5866 lt_cv_cc_needs_belf=no 5867fi 5868 5869rm -rf conftest.dSYM 5870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5871 conftest$ac_exeext conftest.$ac_ext 5872 ac_ext=c 5873ac_cpp='$CPP $CPPFLAGS' 5874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5876ac_compiler_gnu=$ac_cv_c_compiler_gnu 5877 5878fi 5879{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5880$as_echo "$lt_cv_cc_needs_belf" >&6; } 5881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5883 CFLAGS="$SAVE_CFLAGS" 5884 fi 5885 ;; 5886sparc*-*solaris*) 5887 # Find out which ABI we are using. 5888 echo 'int i;' > conftest.$ac_ext 5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5890 (eval $ac_compile) 2>&5 5891 ac_status=$? 5892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5893 (exit $ac_status); }; then 5894 case `/usr/bin/file conftest.o` in 5895 *64-bit*) 5896 case $lt_cv_prog_gnu_ld in 5897 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5898 *) 5899 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5900 LD="${LD-ld} -64" 5901 fi 5902 ;; 5903 esac 5904 ;; 5905 esac 5906 fi 5907 rm -rf conftest* 5908 ;; 5909esac 5910 5911need_locks="$enable_libtool_lock" 5912 5913 5914 case $host_os in 5915 rhapsody* | darwin*) 5916 if test -n "$ac_tool_prefix"; then 5917 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5918set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5919{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5920$as_echo_n "checking for $ac_word... " >&6; } 5921if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5922 $as_echo_n "(cached) " >&6 5923else 5924 if test -n "$DSYMUTIL"; then 5925 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5926else 5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5928for as_dir in $PATH 5929do 5930 IFS=$as_save_IFS 5931 test -z "$as_dir" && as_dir=. 5932 for ac_exec_ext in '' $ac_executable_extensions; do 5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5934 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5936 break 2 5937 fi 5938done 5939done 5940IFS=$as_save_IFS 5941 5942fi 5943fi 5944DSYMUTIL=$ac_cv_prog_DSYMUTIL 5945if test -n "$DSYMUTIL"; then 5946 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5947$as_echo "$DSYMUTIL" >&6; } 5948else 5949 { $as_echo "$as_me:$LINENO: result: no" >&5 5950$as_echo "no" >&6; } 5951fi 5952 5953 5954fi 5955if test -z "$ac_cv_prog_DSYMUTIL"; then 5956 ac_ct_DSYMUTIL=$DSYMUTIL 5957 # Extract the first word of "dsymutil", so it can be a program name with args. 5958set dummy dsymutil; ac_word=$2 5959{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5960$as_echo_n "checking for $ac_word... " >&6; } 5961if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5962 $as_echo_n "(cached) " >&6 5963else 5964 if test -n "$ac_ct_DSYMUTIL"; then 5965 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5966else 5967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5968for as_dir in $PATH 5969do 5970 IFS=$as_save_IFS 5971 test -z "$as_dir" && as_dir=. 5972 for ac_exec_ext in '' $ac_executable_extensions; do 5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5974 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5975 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5976 break 2 5977 fi 5978done 5979done 5980IFS=$as_save_IFS 5981 5982fi 5983fi 5984ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5985if test -n "$ac_ct_DSYMUTIL"; then 5986 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5987$as_echo "$ac_ct_DSYMUTIL" >&6; } 5988else 5989 { $as_echo "$as_me:$LINENO: result: no" >&5 5990$as_echo "no" >&6; } 5991fi 5992 5993 if test "x$ac_ct_DSYMUTIL" = x; then 5994 DSYMUTIL=":" 5995 else 5996 case $cross_compiling:$ac_tool_warned in 5997yes:) 5998{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6000ac_tool_warned=yes ;; 6001esac 6002 DSYMUTIL=$ac_ct_DSYMUTIL 6003 fi 6004else 6005 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6006fi 6007 6008 if test -n "$ac_tool_prefix"; then 6009 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6010set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6011{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6012$as_echo_n "checking for $ac_word... " >&6; } 6013if test "${ac_cv_prog_NMEDIT+set}" = set; then 6014 $as_echo_n "(cached) " >&6 6015else 6016 if test -n "$NMEDIT"; then 6017 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6018else 6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6020for as_dir in $PATH 6021do 6022 IFS=$as_save_IFS 6023 test -z "$as_dir" && as_dir=. 6024 for ac_exec_ext in '' $ac_executable_extensions; do 6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6026 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6028 break 2 6029 fi 6030done 6031done 6032IFS=$as_save_IFS 6033 6034fi 6035fi 6036NMEDIT=$ac_cv_prog_NMEDIT 6037if test -n "$NMEDIT"; then 6038 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6039$as_echo "$NMEDIT" >&6; } 6040else 6041 { $as_echo "$as_me:$LINENO: result: no" >&5 6042$as_echo "no" >&6; } 6043fi 6044 6045 6046fi 6047if test -z "$ac_cv_prog_NMEDIT"; then 6048 ac_ct_NMEDIT=$NMEDIT 6049 # Extract the first word of "nmedit", so it can be a program name with args. 6050set dummy nmedit; ac_word=$2 6051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6052$as_echo_n "checking for $ac_word... " >&6; } 6053if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6054 $as_echo_n "(cached) " >&6 6055else 6056 if test -n "$ac_ct_NMEDIT"; then 6057 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6058else 6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6060for as_dir in $PATH 6061do 6062 IFS=$as_save_IFS 6063 test -z "$as_dir" && as_dir=. 6064 for ac_exec_ext in '' $ac_executable_extensions; do 6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6066 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6068 break 2 6069 fi 6070done 6071done 6072IFS=$as_save_IFS 6073 6074fi 6075fi 6076ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6077if test -n "$ac_ct_NMEDIT"; then 6078 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6079$as_echo "$ac_ct_NMEDIT" >&6; } 6080else 6081 { $as_echo "$as_me:$LINENO: result: no" >&5 6082$as_echo "no" >&6; } 6083fi 6084 6085 if test "x$ac_ct_NMEDIT" = x; then 6086 NMEDIT=":" 6087 else 6088 case $cross_compiling:$ac_tool_warned in 6089yes:) 6090{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6092ac_tool_warned=yes ;; 6093esac 6094 NMEDIT=$ac_ct_NMEDIT 6095 fi 6096else 6097 NMEDIT="$ac_cv_prog_NMEDIT" 6098fi 6099 6100 if test -n "$ac_tool_prefix"; then 6101 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6102set dummy ${ac_tool_prefix}lipo; ac_word=$2 6103{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6104$as_echo_n "checking for $ac_word... " >&6; } 6105if test "${ac_cv_prog_LIPO+set}" = set; then 6106 $as_echo_n "(cached) " >&6 6107else 6108 if test -n "$LIPO"; then 6109 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6110else 6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6112for as_dir in $PATH 6113do 6114 IFS=$as_save_IFS 6115 test -z "$as_dir" && as_dir=. 6116 for ac_exec_ext in '' $ac_executable_extensions; do 6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6118 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6119 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6120 break 2 6121 fi 6122done 6123done 6124IFS=$as_save_IFS 6125 6126fi 6127fi 6128LIPO=$ac_cv_prog_LIPO 6129if test -n "$LIPO"; then 6130 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6131$as_echo "$LIPO" >&6; } 6132else 6133 { $as_echo "$as_me:$LINENO: result: no" >&5 6134$as_echo "no" >&6; } 6135fi 6136 6137 6138fi 6139if test -z "$ac_cv_prog_LIPO"; then 6140 ac_ct_LIPO=$LIPO 6141 # Extract the first word of "lipo", so it can be a program name with args. 6142set dummy lipo; ac_word=$2 6143{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6144$as_echo_n "checking for $ac_word... " >&6; } 6145if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6146 $as_echo_n "(cached) " >&6 6147else 6148 if test -n "$ac_ct_LIPO"; then 6149 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6150else 6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6152for as_dir in $PATH 6153do 6154 IFS=$as_save_IFS 6155 test -z "$as_dir" && as_dir=. 6156 for ac_exec_ext in '' $ac_executable_extensions; do 6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6158 ac_cv_prog_ac_ct_LIPO="lipo" 6159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6160 break 2 6161 fi 6162done 6163done 6164IFS=$as_save_IFS 6165 6166fi 6167fi 6168ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6169if test -n "$ac_ct_LIPO"; then 6170 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6171$as_echo "$ac_ct_LIPO" >&6; } 6172else 6173 { $as_echo "$as_me:$LINENO: result: no" >&5 6174$as_echo "no" >&6; } 6175fi 6176 6177 if test "x$ac_ct_LIPO" = x; then 6178 LIPO=":" 6179 else 6180 case $cross_compiling:$ac_tool_warned in 6181yes:) 6182{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6184ac_tool_warned=yes ;; 6185esac 6186 LIPO=$ac_ct_LIPO 6187 fi 6188else 6189 LIPO="$ac_cv_prog_LIPO" 6190fi 6191 6192 if test -n "$ac_tool_prefix"; then 6193 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6194set dummy ${ac_tool_prefix}otool; ac_word=$2 6195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6196$as_echo_n "checking for $ac_word... " >&6; } 6197if test "${ac_cv_prog_OTOOL+set}" = set; then 6198 $as_echo_n "(cached) " >&6 6199else 6200 if test -n "$OTOOL"; then 6201 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6202else 6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204for as_dir in $PATH 6205do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6210 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215done 6216IFS=$as_save_IFS 6217 6218fi 6219fi 6220OTOOL=$ac_cv_prog_OTOOL 6221if test -n "$OTOOL"; then 6222 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6223$as_echo "$OTOOL" >&6; } 6224else 6225 { $as_echo "$as_me:$LINENO: result: no" >&5 6226$as_echo "no" >&6; } 6227fi 6228 6229 6230fi 6231if test -z "$ac_cv_prog_OTOOL"; then 6232 ac_ct_OTOOL=$OTOOL 6233 # Extract the first word of "otool", so it can be a program name with args. 6234set dummy otool; ac_word=$2 6235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6236$as_echo_n "checking for $ac_word... " >&6; } 6237if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6238 $as_echo_n "(cached) " >&6 6239else 6240 if test -n "$ac_ct_OTOOL"; then 6241 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 test -z "$as_dir" && as_dir=. 6248 for ac_exec_ext in '' $ac_executable_extensions; do 6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6250 ac_cv_prog_ac_ct_OTOOL="otool" 6251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6252 break 2 6253 fi 6254done 6255done 6256IFS=$as_save_IFS 6257 6258fi 6259fi 6260ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6261if test -n "$ac_ct_OTOOL"; then 6262 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6263$as_echo "$ac_ct_OTOOL" >&6; } 6264else 6265 { $as_echo "$as_me:$LINENO: result: no" >&5 6266$as_echo "no" >&6; } 6267fi 6268 6269 if test "x$ac_ct_OTOOL" = x; then 6270 OTOOL=":" 6271 else 6272 case $cross_compiling:$ac_tool_warned in 6273yes:) 6274{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6276ac_tool_warned=yes ;; 6277esac 6278 OTOOL=$ac_ct_OTOOL 6279 fi 6280else 6281 OTOOL="$ac_cv_prog_OTOOL" 6282fi 6283 6284 if test -n "$ac_tool_prefix"; then 6285 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6286set dummy ${ac_tool_prefix}otool64; ac_word=$2 6287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6288$as_echo_n "checking for $ac_word... " >&6; } 6289if test "${ac_cv_prog_OTOOL64+set}" = set; then 6290 $as_echo_n "(cached) " >&6 6291else 6292 if test -n "$OTOOL64"; then 6293 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6294else 6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6296for as_dir in $PATH 6297do 6298 IFS=$as_save_IFS 6299 test -z "$as_dir" && as_dir=. 6300 for ac_exec_ext in '' $ac_executable_extensions; do 6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6302 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6304 break 2 6305 fi 6306done 6307done 6308IFS=$as_save_IFS 6309 6310fi 6311fi 6312OTOOL64=$ac_cv_prog_OTOOL64 6313if test -n "$OTOOL64"; then 6314 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6315$as_echo "$OTOOL64" >&6; } 6316else 6317 { $as_echo "$as_me:$LINENO: result: no" >&5 6318$as_echo "no" >&6; } 6319fi 6320 6321 6322fi 6323if test -z "$ac_cv_prog_OTOOL64"; then 6324 ac_ct_OTOOL64=$OTOOL64 6325 # Extract the first word of "otool64", so it can be a program name with args. 6326set dummy otool64; ac_word=$2 6327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6328$as_echo_n "checking for $ac_word... " >&6; } 6329if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6330 $as_echo_n "(cached) " >&6 6331else 6332 if test -n "$ac_ct_OTOOL64"; then 6333 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6334else 6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336for as_dir in $PATH 6337do 6338 IFS=$as_save_IFS 6339 test -z "$as_dir" && as_dir=. 6340 for ac_exec_ext in '' $ac_executable_extensions; do 6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6342 ac_cv_prog_ac_ct_OTOOL64="otool64" 6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6344 break 2 6345 fi 6346done 6347done 6348IFS=$as_save_IFS 6349 6350fi 6351fi 6352ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6353if test -n "$ac_ct_OTOOL64"; then 6354 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6355$as_echo "$ac_ct_OTOOL64" >&6; } 6356else 6357 { $as_echo "$as_me:$LINENO: result: no" >&5 6358$as_echo "no" >&6; } 6359fi 6360 6361 if test "x$ac_ct_OTOOL64" = x; then 6362 OTOOL64=":" 6363 else 6364 case $cross_compiling:$ac_tool_warned in 6365yes:) 6366{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6368ac_tool_warned=yes ;; 6369esac 6370 OTOOL64=$ac_ct_OTOOL64 6371 fi 6372else 6373 OTOOL64="$ac_cv_prog_OTOOL64" 6374fi 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6403$as_echo_n "checking for -single_module linker flag... " >&6; } 6404if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6405 $as_echo_n "(cached) " >&6 6406else 6407 lt_cv_apple_cc_single_mod=no 6408 if test -z "${LT_MULTI_MODULE}"; then 6409 # By default we will add the -single_module flag. You can override 6410 # by either setting the environment variable LT_MULTI_MODULE 6411 # non-empty at configure time, or by adding -multi_module to the 6412 # link flags. 6413 rm -rf libconftest.dylib* 6414 echo "int foo(void){return 1;}" > conftest.c 6415 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6416-dynamiclib -Wl,-single_module conftest.c" >&5 6417 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6418 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6419 _lt_result=$? 6420 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6421 lt_cv_apple_cc_single_mod=yes 6422 else 6423 cat conftest.err >&5 6424 fi 6425 rm -rf libconftest.dylib* 6426 rm -f conftest.* 6427 fi 6428fi 6429{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6430$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6431 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6432$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6433if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6434 $as_echo_n "(cached) " >&6 6435else 6436 lt_cv_ld_exported_symbols_list=no 6437 save_LDFLAGS=$LDFLAGS 6438 echo "_main" > conftest.sym 6439 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6440 cat >conftest.$ac_ext <<_ACEOF 6441/* confdefs.h. */ 6442_ACEOF 6443cat confdefs.h >>conftest.$ac_ext 6444cat >>conftest.$ac_ext <<_ACEOF 6445/* end confdefs.h. */ 6446 6447int 6448main () 6449{ 6450 6451 ; 6452 return 0; 6453} 6454_ACEOF 6455rm -f conftest.$ac_objext conftest$ac_exeext 6456if { (ac_try="$ac_link" 6457case "(($ac_try" in 6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6459 *) ac_try_echo=$ac_try;; 6460esac 6461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6462$as_echo "$ac_try_echo") >&5 6463 (eval "$ac_link") 2>conftest.er1 6464 ac_status=$? 6465 grep -v '^ *+' conftest.er1 >conftest.err 6466 rm -f conftest.er1 6467 cat conftest.err >&5 6468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6469 (exit $ac_status); } && { 6470 test -z "$ac_c_werror_flag" || 6471 test ! -s conftest.err 6472 } && test -s conftest$ac_exeext && { 6473 test "$cross_compiling" = yes || 6474 $as_test_x conftest$ac_exeext 6475 }; then 6476 lt_cv_ld_exported_symbols_list=yes 6477else 6478 $as_echo "$as_me: failed program was:" >&5 6479sed 's/^/| /' conftest.$ac_ext >&5 6480 6481 lt_cv_ld_exported_symbols_list=no 6482fi 6483 6484rm -rf conftest.dSYM 6485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6486 conftest$ac_exeext conftest.$ac_ext 6487 LDFLAGS="$save_LDFLAGS" 6488 6489fi 6490{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6491$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6492 case $host_os in 6493 rhapsody* | darwin1.[012]) 6494 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6495 darwin1.*) 6496 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6497 darwin*) # darwin 5.x on 6498 # if running on 10.5 or later, the deployment target defaults 6499 # to the OS version, if on x86, and 10.4, the deployment 6500 # target defaults to 10.4. Don't you love it? 6501 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6502 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6503 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6504 10.[012]*) 6505 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6506 10.*) 6507 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6508 esac 6509 ;; 6510 esac 6511 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6512 _lt_dar_single_mod='$single_module' 6513 fi 6514 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6515 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6516 else 6517 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6518 fi 6519 if test "$DSYMUTIL" != ":"; then 6520 _lt_dsymutil='~$DSYMUTIL $lib || :' 6521 else 6522 _lt_dsymutil= 6523 fi 6524 ;; 6525 esac 6526 6527ac_ext=c 6528ac_cpp='$CPP $CPPFLAGS' 6529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6531ac_compiler_gnu=$ac_cv_c_compiler_gnu 6532{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6533$as_echo_n "checking how to run the C preprocessor... " >&6; } 6534# On Suns, sometimes $CPP names a directory. 6535if test -n "$CPP" && test -d "$CPP"; then 6536 CPP= 6537fi 6538if test -z "$CPP"; then 6539 if test "${ac_cv_prog_CPP+set}" = set; then 6540 $as_echo_n "(cached) " >&6 6541else 6542 # Double quotes because CPP needs to be expanded 6543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6544 do 6545 ac_preproc_ok=false 6546for ac_c_preproc_warn_flag in '' yes 6547do 6548 # Use a header file that comes with gcc, so configuring glibc 6549 # with a fresh cross-compiler works. 6550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6551 # <limits.h> exists even on freestanding compilers. 6552 # On the NeXT, cc -E runs the code through the compiler's parser, 6553 # not just through cpp. "Syntax error" is here to catch this case. 6554 cat >conftest.$ac_ext <<_ACEOF 6555/* confdefs.h. */ 6556_ACEOF 6557cat confdefs.h >>conftest.$ac_ext 6558cat >>conftest.$ac_ext <<_ACEOF 6559/* end confdefs.h. */ 6560#ifdef __STDC__ 6561# include <limits.h> 6562#else 6563# include <assert.h> 6564#endif 6565 Syntax error 6566_ACEOF 6567if { (ac_try="$ac_cpp conftest.$ac_ext" 6568case "(($ac_try" in 6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6570 *) ac_try_echo=$ac_try;; 6571esac 6572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6573$as_echo "$ac_try_echo") >&5 6574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6575 ac_status=$? 6576 grep -v '^ *+' conftest.er1 >conftest.err 6577 rm -f conftest.er1 6578 cat conftest.err >&5 6579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6580 (exit $ac_status); } >/dev/null && { 6581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6582 test ! -s conftest.err 6583 }; then 6584 : 6585else 6586 $as_echo "$as_me: failed program was:" >&5 6587sed 's/^/| /' conftest.$ac_ext >&5 6588 6589 # Broken: fails on valid input. 6590continue 6591fi 6592 6593rm -f conftest.err conftest.$ac_ext 6594 6595 # OK, works on sane cases. Now check whether nonexistent headers 6596 # can be detected and how. 6597 cat >conftest.$ac_ext <<_ACEOF 6598/* confdefs.h. */ 6599_ACEOF 6600cat confdefs.h >>conftest.$ac_ext 6601cat >>conftest.$ac_ext <<_ACEOF 6602/* end confdefs.h. */ 6603#include <ac_nonexistent.h> 6604_ACEOF 6605if { (ac_try="$ac_cpp conftest.$ac_ext" 6606case "(($ac_try" in 6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6608 *) ac_try_echo=$ac_try;; 6609esac 6610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6611$as_echo "$ac_try_echo") >&5 6612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6613 ac_status=$? 6614 grep -v '^ *+' conftest.er1 >conftest.err 6615 rm -f conftest.er1 6616 cat conftest.err >&5 6617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6618 (exit $ac_status); } >/dev/null && { 6619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6620 test ! -s conftest.err 6621 }; then 6622 # Broken: success on invalid input. 6623continue 6624else 6625 $as_echo "$as_me: failed program was:" >&5 6626sed 's/^/| /' conftest.$ac_ext >&5 6627 6628 # Passes both tests. 6629ac_preproc_ok=: 6630break 6631fi 6632 6633rm -f conftest.err conftest.$ac_ext 6634 6635done 6636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6637rm -f conftest.err conftest.$ac_ext 6638if $ac_preproc_ok; then 6639 break 6640fi 6641 6642 done 6643 ac_cv_prog_CPP=$CPP 6644 6645fi 6646 CPP=$ac_cv_prog_CPP 6647else 6648 ac_cv_prog_CPP=$CPP 6649fi 6650{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6651$as_echo "$CPP" >&6; } 6652ac_preproc_ok=false 6653for ac_c_preproc_warn_flag in '' yes 6654do 6655 # Use a header file that comes with gcc, so configuring glibc 6656 # with a fresh cross-compiler works. 6657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6658 # <limits.h> exists even on freestanding compilers. 6659 # On the NeXT, cc -E runs the code through the compiler's parser, 6660 # not just through cpp. "Syntax error" is here to catch this case. 6661 cat >conftest.$ac_ext <<_ACEOF 6662/* confdefs.h. */ 6663_ACEOF 6664cat confdefs.h >>conftest.$ac_ext 6665cat >>conftest.$ac_ext <<_ACEOF 6666/* end confdefs.h. */ 6667#ifdef __STDC__ 6668# include <limits.h> 6669#else 6670# include <assert.h> 6671#endif 6672 Syntax error 6673_ACEOF 6674if { (ac_try="$ac_cpp conftest.$ac_ext" 6675case "(($ac_try" in 6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6677 *) ac_try_echo=$ac_try;; 6678esac 6679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6680$as_echo "$ac_try_echo") >&5 6681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6682 ac_status=$? 6683 grep -v '^ *+' conftest.er1 >conftest.err 6684 rm -f conftest.er1 6685 cat conftest.err >&5 6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6687 (exit $ac_status); } >/dev/null && { 6688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6689 test ! -s conftest.err 6690 }; then 6691 : 6692else 6693 $as_echo "$as_me: failed program was:" >&5 6694sed 's/^/| /' conftest.$ac_ext >&5 6695 6696 # Broken: fails on valid input. 6697continue 6698fi 6699 6700rm -f conftest.err conftest.$ac_ext 6701 6702 # OK, works on sane cases. Now check whether nonexistent headers 6703 # can be detected and how. 6704 cat >conftest.$ac_ext <<_ACEOF 6705/* confdefs.h. */ 6706_ACEOF 6707cat confdefs.h >>conftest.$ac_ext 6708cat >>conftest.$ac_ext <<_ACEOF 6709/* end confdefs.h. */ 6710#include <ac_nonexistent.h> 6711_ACEOF 6712if { (ac_try="$ac_cpp conftest.$ac_ext" 6713case "(($ac_try" in 6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6715 *) ac_try_echo=$ac_try;; 6716esac 6717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6718$as_echo "$ac_try_echo") >&5 6719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6720 ac_status=$? 6721 grep -v '^ *+' conftest.er1 >conftest.err 6722 rm -f conftest.er1 6723 cat conftest.err >&5 6724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6725 (exit $ac_status); } >/dev/null && { 6726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6727 test ! -s conftest.err 6728 }; then 6729 # Broken: success on invalid input. 6730continue 6731else 6732 $as_echo "$as_me: failed program was:" >&5 6733sed 's/^/| /' conftest.$ac_ext >&5 6734 6735 # Passes both tests. 6736ac_preproc_ok=: 6737break 6738fi 6739 6740rm -f conftest.err conftest.$ac_ext 6741 6742done 6743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6744rm -f conftest.err conftest.$ac_ext 6745if $ac_preproc_ok; then 6746 : 6747else 6748 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6750{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6751See \`config.log' for more details." >&5 6752$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6753See \`config.log' for more details." >&2;} 6754 { (exit 1); exit 1; }; }; } 6755fi 6756 6757ac_ext=c 6758ac_cpp='$CPP $CPPFLAGS' 6759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6761ac_compiler_gnu=$ac_cv_c_compiler_gnu 6762 6763 6764{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6765$as_echo_n "checking for ANSI C header files... " >&6; } 6766if test "${ac_cv_header_stdc+set}" = set; then 6767 $as_echo_n "(cached) " >&6 6768else 6769 cat >conftest.$ac_ext <<_ACEOF 6770/* confdefs.h. */ 6771_ACEOF 6772cat confdefs.h >>conftest.$ac_ext 6773cat >>conftest.$ac_ext <<_ACEOF 6774/* end confdefs.h. */ 6775#include <stdlib.h> 6776#include <stdarg.h> 6777#include <string.h> 6778#include <float.h> 6779 6780int 6781main () 6782{ 6783 6784 ; 6785 return 0; 6786} 6787_ACEOF 6788rm -f conftest.$ac_objext 6789if { (ac_try="$ac_compile" 6790case "(($ac_try" in 6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6792 *) ac_try_echo=$ac_try;; 6793esac 6794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6795$as_echo "$ac_try_echo") >&5 6796 (eval "$ac_compile") 2>conftest.er1 6797 ac_status=$? 6798 grep -v '^ *+' conftest.er1 >conftest.err 6799 rm -f conftest.er1 6800 cat conftest.err >&5 6801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6802 (exit $ac_status); } && { 6803 test -z "$ac_c_werror_flag" || 6804 test ! -s conftest.err 6805 } && test -s conftest.$ac_objext; then 6806 ac_cv_header_stdc=yes 6807else 6808 $as_echo "$as_me: failed program was:" >&5 6809sed 's/^/| /' conftest.$ac_ext >&5 6810 6811 ac_cv_header_stdc=no 6812fi 6813 6814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6815 6816if test $ac_cv_header_stdc = yes; then 6817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6818 cat >conftest.$ac_ext <<_ACEOF 6819/* confdefs.h. */ 6820_ACEOF 6821cat confdefs.h >>conftest.$ac_ext 6822cat >>conftest.$ac_ext <<_ACEOF 6823/* end confdefs.h. */ 6824#include <string.h> 6825 6826_ACEOF 6827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6828 $EGREP "memchr" >/dev/null 2>&1; then 6829 : 6830else 6831 ac_cv_header_stdc=no 6832fi 6833rm -f conftest* 6834 6835fi 6836 6837if test $ac_cv_header_stdc = yes; then 6838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6839 cat >conftest.$ac_ext <<_ACEOF 6840/* confdefs.h. */ 6841_ACEOF 6842cat confdefs.h >>conftest.$ac_ext 6843cat >>conftest.$ac_ext <<_ACEOF 6844/* end confdefs.h. */ 6845#include <stdlib.h> 6846 6847_ACEOF 6848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6849 $EGREP "free" >/dev/null 2>&1; then 6850 : 6851else 6852 ac_cv_header_stdc=no 6853fi 6854rm -f conftest* 6855 6856fi 6857 6858if test $ac_cv_header_stdc = yes; then 6859 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6860 if test "$cross_compiling" = yes; then 6861 : 6862else 6863 cat >conftest.$ac_ext <<_ACEOF 6864/* confdefs.h. */ 6865_ACEOF 6866cat confdefs.h >>conftest.$ac_ext 6867cat >>conftest.$ac_ext <<_ACEOF 6868/* end confdefs.h. */ 6869#include <ctype.h> 6870#include <stdlib.h> 6871#if ((' ' & 0x0FF) == 0x020) 6872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6874#else 6875# define ISLOWER(c) \ 6876 (('a' <= (c) && (c) <= 'i') \ 6877 || ('j' <= (c) && (c) <= 'r') \ 6878 || ('s' <= (c) && (c) <= 'z')) 6879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6880#endif 6881 6882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6883int 6884main () 6885{ 6886 int i; 6887 for (i = 0; i < 256; i++) 6888 if (XOR (islower (i), ISLOWER (i)) 6889 || toupper (i) != TOUPPER (i)) 6890 return 2; 6891 return 0; 6892} 6893_ACEOF 6894rm -f conftest$ac_exeext 6895if { (ac_try="$ac_link" 6896case "(($ac_try" in 6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6898 *) ac_try_echo=$ac_try;; 6899esac 6900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6901$as_echo "$ac_try_echo") >&5 6902 (eval "$ac_link") 2>&5 6903 ac_status=$? 6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6906 { (case "(($ac_try" in 6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6908 *) ac_try_echo=$ac_try;; 6909esac 6910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6911$as_echo "$ac_try_echo") >&5 6912 (eval "$ac_try") 2>&5 6913 ac_status=$? 6914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6915 (exit $ac_status); }; }; then 6916 : 6917else 6918 $as_echo "$as_me: program exited with status $ac_status" >&5 6919$as_echo "$as_me: failed program was:" >&5 6920sed 's/^/| /' conftest.$ac_ext >&5 6921 6922( exit $ac_status ) 6923ac_cv_header_stdc=no 6924fi 6925rm -rf conftest.dSYM 6926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6927fi 6928 6929 6930fi 6931fi 6932{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6933$as_echo "$ac_cv_header_stdc" >&6; } 6934if test $ac_cv_header_stdc = yes; then 6935 6936cat >>confdefs.h <<\_ACEOF 6937#define STDC_HEADERS 1 6938_ACEOF 6939 6940fi 6941 6942# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6953 inttypes.h stdint.h unistd.h 6954do 6955as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6956{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6957$as_echo_n "checking for $ac_header... " >&6; } 6958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6959 $as_echo_n "(cached) " >&6 6960else 6961 cat >conftest.$ac_ext <<_ACEOF 6962/* confdefs.h. */ 6963_ACEOF 6964cat confdefs.h >>conftest.$ac_ext 6965cat >>conftest.$ac_ext <<_ACEOF 6966/* end confdefs.h. */ 6967$ac_includes_default 6968 6969#include <$ac_header> 6970_ACEOF 6971rm -f conftest.$ac_objext 6972if { (ac_try="$ac_compile" 6973case "(($ac_try" in 6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6975 *) ac_try_echo=$ac_try;; 6976esac 6977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6978$as_echo "$ac_try_echo") >&5 6979 (eval "$ac_compile") 2>conftest.er1 6980 ac_status=$? 6981 grep -v '^ *+' conftest.er1 >conftest.err 6982 rm -f conftest.er1 6983 cat conftest.err >&5 6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6985 (exit $ac_status); } && { 6986 test -z "$ac_c_werror_flag" || 6987 test ! -s conftest.err 6988 } && test -s conftest.$ac_objext; then 6989 eval "$as_ac_Header=yes" 6990else 6991 $as_echo "$as_me: failed program was:" >&5 6992sed 's/^/| /' conftest.$ac_ext >&5 6993 6994 eval "$as_ac_Header=no" 6995fi 6996 6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6998fi 6999ac_res=`eval 'as_val=${'$as_ac_Header'} 7000 $as_echo "$as_val"'` 7001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7002$as_echo "$ac_res" >&6; } 7003as_val=`eval 'as_val=${'$as_ac_Header'} 7004 $as_echo "$as_val"'` 7005 if test "x$as_val" = x""yes; then 7006 cat >>confdefs.h <<_ACEOF 7007#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7008_ACEOF 7009 7010fi 7011 7012done 7013 7014 7015 7016for ac_header in dlfcn.h 7017do 7018as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7019{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7020$as_echo_n "checking for $ac_header... " >&6; } 7021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7022 $as_echo_n "(cached) " >&6 7023else 7024 cat >conftest.$ac_ext <<_ACEOF 7025/* confdefs.h. */ 7026_ACEOF 7027cat confdefs.h >>conftest.$ac_ext 7028cat >>conftest.$ac_ext <<_ACEOF 7029/* end confdefs.h. */ 7030$ac_includes_default 7031 7032#include <$ac_header> 7033_ACEOF 7034rm -f conftest.$ac_objext 7035if { (ac_try="$ac_compile" 7036case "(($ac_try" in 7037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7038 *) ac_try_echo=$ac_try;; 7039esac 7040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7041$as_echo "$ac_try_echo") >&5 7042 (eval "$ac_compile") 2>conftest.er1 7043 ac_status=$? 7044 grep -v '^ *+' conftest.er1 >conftest.err 7045 rm -f conftest.er1 7046 cat conftest.err >&5 7047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7048 (exit $ac_status); } && { 7049 test -z "$ac_c_werror_flag" || 7050 test ! -s conftest.err 7051 } && test -s conftest.$ac_objext; then 7052 eval "$as_ac_Header=yes" 7053else 7054 $as_echo "$as_me: failed program was:" >&5 7055sed 's/^/| /' conftest.$ac_ext >&5 7056 7057 eval "$as_ac_Header=no" 7058fi 7059 7060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7061fi 7062ac_res=`eval 'as_val=${'$as_ac_Header'} 7063 $as_echo "$as_val"'` 7064 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7065$as_echo "$ac_res" >&6; } 7066as_val=`eval 'as_val=${'$as_ac_Header'} 7067 $as_echo "$as_val"'` 7068 if test "x$as_val" = x""yes; then 7069 cat >>confdefs.h <<_ACEOF 7070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7071_ACEOF 7072 7073fi 7074 7075done 7076 7077 7078 7079# Set options 7080 7081 7082 7083 enable_dlopen=no 7084 7085 7086 enable_win32_dll=no 7087 7088 7089 # Check whether --enable-shared was given. 7090if test "${enable_shared+set}" = set; then 7091 enableval=$enable_shared; p=${PACKAGE-default} 7092 case $enableval in 7093 yes) enable_shared=yes ;; 7094 no) enable_shared=no ;; 7095 *) 7096 enable_shared=no 7097 # Look at the argument we got. We use all the common list separators. 7098 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7099 for pkg in $enableval; do 7100 IFS="$lt_save_ifs" 7101 if test "X$pkg" = "X$p"; then 7102 enable_shared=yes 7103 fi 7104 done 7105 IFS="$lt_save_ifs" 7106 ;; 7107 esac 7108else 7109 enable_shared=yes 7110fi 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122# Check whether --with-pic was given. 7123if test "${with_pic+set}" = set; then 7124 withval=$with_pic; pic_mode="$withval" 7125else 7126 pic_mode=default 7127fi 7128 7129 7130test -z "$pic_mode" && pic_mode=default 7131 7132 7133 7134 7135 7136 7137 7138 # Check whether --enable-fast-install was given. 7139if test "${enable_fast_install+set}" = set; then 7140 enableval=$enable_fast_install; p=${PACKAGE-default} 7141 case $enableval in 7142 yes) enable_fast_install=yes ;; 7143 no) enable_fast_install=no ;; 7144 *) 7145 enable_fast_install=no 7146 # Look at the argument we got. We use all the common list separators. 7147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7148 for pkg in $enableval; do 7149 IFS="$lt_save_ifs" 7150 if test "X$pkg" = "X$p"; then 7151 enable_fast_install=yes 7152 fi 7153 done 7154 IFS="$lt_save_ifs" 7155 ;; 7156 esac 7157else 7158 enable_fast_install=yes 7159fi 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171# This can be used to rebuild libtool when needed 7172LIBTOOL_DEPS="$ltmain" 7173 7174# Always use our own libtool. 7175LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201test -z "$LN_S" && LN_S="ln -s" 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216if test -n "${ZSH_VERSION+set}" ; then 7217 setopt NO_GLOB_SUBST 7218fi 7219 7220{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7221$as_echo_n "checking for objdir... " >&6; } 7222if test "${lt_cv_objdir+set}" = set; then 7223 $as_echo_n "(cached) " >&6 7224else 7225 rm -f .libs 2>/dev/null 7226mkdir .libs 2>/dev/null 7227if test -d .libs; then 7228 lt_cv_objdir=.libs 7229else 7230 # MS-DOS does not allow filenames that begin with a dot. 7231 lt_cv_objdir=_libs 7232fi 7233rmdir .libs 2>/dev/null 7234fi 7235{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7236$as_echo "$lt_cv_objdir" >&6; } 7237objdir=$lt_cv_objdir 7238 7239 7240 7241 7242 7243cat >>confdefs.h <<_ACEOF 7244#define LT_OBJDIR "$lt_cv_objdir/" 7245_ACEOF 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263case $host_os in 7264aix3*) 7265 # AIX sometimes has problems with the GCC collect2 program. For some 7266 # reason, if we set the COLLECT_NAMES environment variable, the problems 7267 # vanish in a puff of smoke. 7268 if test "X${COLLECT_NAMES+set}" != Xset; then 7269 COLLECT_NAMES= 7270 export COLLECT_NAMES 7271 fi 7272 ;; 7273esac 7274 7275# Sed substitution that helps us do robust quoting. It backslashifies 7276# metacharacters that are still active within double-quoted strings. 7277sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7278 7279# Same as above, but do not quote variable references. 7280double_quote_subst='s/\(["`\\]\)/\\\1/g' 7281 7282# Sed substitution to delay expansion of an escaped shell variable in a 7283# double_quote_subst'ed string. 7284delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7285 7286# Sed substitution to delay expansion of an escaped single quote. 7287delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7288 7289# Sed substitution to avoid accidental globbing in evaled expressions 7290no_glob_subst='s/\*/\\\*/g' 7291 7292# Global variables: 7293ofile=libtool 7294can_build_shared=yes 7295 7296# All known linkers require a `.a' archive for static linking (except MSVC, 7297# which needs '.lib'). 7298libext=a 7299 7300with_gnu_ld="$lt_cv_prog_gnu_ld" 7301 7302old_CC="$CC" 7303old_CFLAGS="$CFLAGS" 7304 7305# Set sane defaults for various variables 7306test -z "$CC" && CC=cc 7307test -z "$LTCC" && LTCC=$CC 7308test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7309test -z "$LD" && LD=ld 7310test -z "$ac_objext" && ac_objext=o 7311 7312for cc_temp in $compiler""; do 7313 case $cc_temp in 7314 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7315 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7316 \-*) ;; 7317 *) break;; 7318 esac 7319done 7320cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7321 7322 7323# Only perform the check for file, if the check method requires it 7324test -z "$MAGIC_CMD" && MAGIC_CMD=file 7325case $deplibs_check_method in 7326file_magic*) 7327 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7328 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7329$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7330if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7331 $as_echo_n "(cached) " >&6 7332else 7333 case $MAGIC_CMD in 7334[\\/*] | ?:[\\/]*) 7335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7336 ;; 7337*) 7338 lt_save_MAGIC_CMD="$MAGIC_CMD" 7339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7341 for ac_dir in $ac_dummy; do 7342 IFS="$lt_save_ifs" 7343 test -z "$ac_dir" && ac_dir=. 7344 if test -f $ac_dir/${ac_tool_prefix}file; then 7345 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7346 if test -n "$file_magic_test_file"; then 7347 case $deplibs_check_method in 7348 "file_magic "*) 7349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7352 $EGREP "$file_magic_regex" > /dev/null; then 7353 : 7354 else 7355 cat <<_LT_EOF 1>&2 7356 7357*** Warning: the command libtool uses to detect shared libraries, 7358*** $file_magic_cmd, produces output that libtool cannot recognize. 7359*** The result is that libtool may fail to recognize shared libraries 7360*** as such. This will affect the creation of libtool libraries that 7361*** depend on shared libraries, but programs linked with such libtool 7362*** libraries will work regardless of this problem. Nevertheless, you 7363*** may want to report the problem to your system manager and/or to 7364*** bug-libtool@gnu.org 7365 7366_LT_EOF 7367 fi ;; 7368 esac 7369 fi 7370 break 7371 fi 7372 done 7373 IFS="$lt_save_ifs" 7374 MAGIC_CMD="$lt_save_MAGIC_CMD" 7375 ;; 7376esac 7377fi 7378 7379MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7380if test -n "$MAGIC_CMD"; then 7381 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7382$as_echo "$MAGIC_CMD" >&6; } 7383else 7384 { $as_echo "$as_me:$LINENO: result: no" >&5 7385$as_echo "no" >&6; } 7386fi 7387 7388 7389 7390 7391 7392if test -z "$lt_cv_path_MAGIC_CMD"; then 7393 if test -n "$ac_tool_prefix"; then 7394 { $as_echo "$as_me:$LINENO: checking for file" >&5 7395$as_echo_n "checking for file... " >&6; } 7396if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7397 $as_echo_n "(cached) " >&6 7398else 7399 case $MAGIC_CMD in 7400[\\/*] | ?:[\\/]*) 7401 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7402 ;; 7403*) 7404 lt_save_MAGIC_CMD="$MAGIC_CMD" 7405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7406 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7407 for ac_dir in $ac_dummy; do 7408 IFS="$lt_save_ifs" 7409 test -z "$ac_dir" && ac_dir=. 7410 if test -f $ac_dir/file; then 7411 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7412 if test -n "$file_magic_test_file"; then 7413 case $deplibs_check_method in 7414 "file_magic "*) 7415 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7417 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7418 $EGREP "$file_magic_regex" > /dev/null; then 7419 : 7420 else 7421 cat <<_LT_EOF 1>&2 7422 7423*** Warning: the command libtool uses to detect shared libraries, 7424*** $file_magic_cmd, produces output that libtool cannot recognize. 7425*** The result is that libtool may fail to recognize shared libraries 7426*** as such. This will affect the creation of libtool libraries that 7427*** depend on shared libraries, but programs linked with such libtool 7428*** libraries will work regardless of this problem. Nevertheless, you 7429*** may want to report the problem to your system manager and/or to 7430*** bug-libtool@gnu.org 7431 7432_LT_EOF 7433 fi ;; 7434 esac 7435 fi 7436 break 7437 fi 7438 done 7439 IFS="$lt_save_ifs" 7440 MAGIC_CMD="$lt_save_MAGIC_CMD" 7441 ;; 7442esac 7443fi 7444 7445MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7446if test -n "$MAGIC_CMD"; then 7447 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7448$as_echo "$MAGIC_CMD" >&6; } 7449else 7450 { $as_echo "$as_me:$LINENO: result: no" >&5 7451$as_echo "no" >&6; } 7452fi 7453 7454 7455 else 7456 MAGIC_CMD=: 7457 fi 7458fi 7459 7460 fi 7461 ;; 7462esac 7463 7464# Use C for the default configuration in the libtool script 7465 7466lt_save_CC="$CC" 7467ac_ext=c 7468ac_cpp='$CPP $CPPFLAGS' 7469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7471ac_compiler_gnu=$ac_cv_c_compiler_gnu 7472 7473 7474# Source file extension for C test sources. 7475ac_ext=c 7476 7477# Object file extension for compiled C test sources. 7478objext=o 7479objext=$objext 7480 7481# Code to be used in simple compile tests 7482lt_simple_compile_test_code="int some_variable = 0;" 7483 7484# Code to be used in simple link tests 7485lt_simple_link_test_code='int main(){return(0);}' 7486 7487 7488 7489 7490 7491 7492 7493# If no C compiler was specified, use CC. 7494LTCC=${LTCC-"$CC"} 7495 7496# If no C compiler flags were specified, use CFLAGS. 7497LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7498 7499# Allow CC to be a program name with arguments. 7500compiler=$CC 7501 7502# Save the default compiler, since it gets overwritten when the other 7503# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7504compiler_DEFAULT=$CC 7505 7506# save warnings/boilerplate of simple test code 7507ac_outfile=conftest.$ac_objext 7508echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7509eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7510_lt_compiler_boilerplate=`cat conftest.err` 7511$RM conftest* 7512 7513ac_outfile=conftest.$ac_objext 7514echo "$lt_simple_link_test_code" >conftest.$ac_ext 7515eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7516_lt_linker_boilerplate=`cat conftest.err` 7517$RM -r conftest* 7518 7519 7520if test -n "$compiler"; then 7521 7522lt_prog_compiler_no_builtin_flag= 7523 7524if test "$GCC" = yes; then 7525 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7526 7527 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7528$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7529if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7530 $as_echo_n "(cached) " >&6 7531else 7532 lt_cv_prog_compiler_rtti_exceptions=no 7533 ac_outfile=conftest.$ac_objext 7534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7535 lt_compiler_flag="-fno-rtti -fno-exceptions" 7536 # Insert the option either (1) after the last *FLAGS variable, or 7537 # (2) before a word containing "conftest.", or (3) at the end. 7538 # Note that $ac_compile itself does not contain backslashes and begins 7539 # with a dollar sign (not a hyphen), so the echo should work correctly. 7540 # The option is referenced via a variable to avoid confusing sed. 7541 lt_compile=`echo "$ac_compile" | $SED \ 7542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7544 -e 's:$: $lt_compiler_flag:'` 7545 (eval echo "\"\$as_me:7545: $lt_compile\"" >&5) 7546 (eval "$lt_compile" 2>conftest.err) 7547 ac_status=$? 7548 cat conftest.err >&5 7549 echo "$as_me:7549: \$? = $ac_status" >&5 7550 if (exit $ac_status) && test -s "$ac_outfile"; then 7551 # The compiler can only warn and ignore the option if not recognized 7552 # So say no if there are warnings other than the usual output. 7553 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7555 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7556 lt_cv_prog_compiler_rtti_exceptions=yes 7557 fi 7558 fi 7559 $RM conftest* 7560 7561fi 7562{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7563$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7564 7565if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7566 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7567else 7568 : 7569fi 7570 7571fi 7572 7573 7574 7575 7576 7577 7578 lt_prog_compiler_wl= 7579lt_prog_compiler_pic= 7580lt_prog_compiler_static= 7581 7582{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7583$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7584 7585 if test "$GCC" = yes; then 7586 lt_prog_compiler_wl='-Wl,' 7587 lt_prog_compiler_static='-static' 7588 7589 case $host_os in 7590 aix*) 7591 # All AIX code is PIC. 7592 if test "$host_cpu" = ia64; then 7593 # AIX 5 now supports IA64 processor 7594 lt_prog_compiler_static='-Bstatic' 7595 fi 7596 ;; 7597 7598 amigaos*) 7599 case $host_cpu in 7600 powerpc) 7601 # see comment about AmigaOS4 .so support 7602 lt_prog_compiler_pic='-fPIC' 7603 ;; 7604 m68k) 7605 # FIXME: we need at least 68020 code to build shared libraries, but 7606 # adding the `-m68020' flag to GCC prevents building anything better, 7607 # like `-m68040'. 7608 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7609 ;; 7610 esac 7611 ;; 7612 7613 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7614 # PIC is the default for these OSes. 7615 ;; 7616 7617 mingw* | cygwin* | pw32* | os2* | cegcc*) 7618 # This hack is so that the source file can tell whether it is being 7619 # built for inclusion in a dll (and should export symbols for example). 7620 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7621 # (--disable-auto-import) libraries 7622 lt_prog_compiler_pic='-DDLL_EXPORT' 7623 ;; 7624 7625 darwin* | rhapsody*) 7626 # PIC is the default on this platform 7627 # Common symbols not allowed in MH_DYLIB files 7628 lt_prog_compiler_pic='-fno-common' 7629 ;; 7630 7631 hpux*) 7632 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7633 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7634 # sets the default TLS model and affects inlining. 7635 case $host_cpu in 7636 hppa*64*) 7637 # +Z the default 7638 ;; 7639 *) 7640 lt_prog_compiler_pic='-fPIC' 7641 ;; 7642 esac 7643 ;; 7644 7645 interix[3-9]*) 7646 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7647 # Instead, we relocate shared libraries at runtime. 7648 ;; 7649 7650 msdosdjgpp*) 7651 # Just because we use GCC doesn't mean we suddenly get shared libraries 7652 # on systems that don't support them. 7653 lt_prog_compiler_can_build_shared=no 7654 enable_shared=no 7655 ;; 7656 7657 *nto* | *qnx*) 7658 # QNX uses GNU C++, but need to define -shared option too, otherwise 7659 # it will coredump. 7660 lt_prog_compiler_pic='-fPIC -shared' 7661 ;; 7662 7663 sysv4*MP*) 7664 if test -d /usr/nec; then 7665 lt_prog_compiler_pic=-Kconform_pic 7666 fi 7667 ;; 7668 7669 *) 7670 lt_prog_compiler_pic='-fPIC' 7671 ;; 7672 esac 7673 else 7674 # PORTME Check for flag to pass linker flags through the system compiler. 7675 case $host_os in 7676 aix*) 7677 lt_prog_compiler_wl='-Wl,' 7678 if test "$host_cpu" = ia64; then 7679 # AIX 5 now supports IA64 processor 7680 lt_prog_compiler_static='-Bstatic' 7681 else 7682 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7683 fi 7684 ;; 7685 7686 mingw* | cygwin* | pw32* | os2* | cegcc*) 7687 # This hack is so that the source file can tell whether it is being 7688 # built for inclusion in a dll (and should export symbols for example). 7689 lt_prog_compiler_pic='-DDLL_EXPORT' 7690 ;; 7691 7692 hpux9* | hpux10* | hpux11*) 7693 lt_prog_compiler_wl='-Wl,' 7694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7695 # not for PA HP-UX. 7696 case $host_cpu in 7697 hppa*64*|ia64*) 7698 # +Z the default 7699 ;; 7700 *) 7701 lt_prog_compiler_pic='+Z' 7702 ;; 7703 esac 7704 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7705 lt_prog_compiler_static='${wl}-a ${wl}archive' 7706 ;; 7707 7708 irix5* | irix6* | nonstopux*) 7709 lt_prog_compiler_wl='-Wl,' 7710 # PIC (with -KPIC) is the default. 7711 lt_prog_compiler_static='-non_shared' 7712 ;; 7713 7714 linux* | k*bsd*-gnu) 7715 case $cc_basename in 7716 # old Intel for x86_64 which still supported -KPIC. 7717 ecc*) 7718 lt_prog_compiler_wl='-Wl,' 7719 lt_prog_compiler_pic='-KPIC' 7720 lt_prog_compiler_static='-static' 7721 ;; 7722 # icc used to be incompatible with GCC. 7723 # ICC 10 doesn't accept -KPIC any more. 7724 icc* | ifort*) 7725 lt_prog_compiler_wl='-Wl,' 7726 lt_prog_compiler_pic='-fPIC' 7727 lt_prog_compiler_static='-static' 7728 ;; 7729 # Lahey Fortran 8.1. 7730 lf95*) 7731 lt_prog_compiler_wl='-Wl,' 7732 lt_prog_compiler_pic='--shared' 7733 lt_prog_compiler_static='--static' 7734 ;; 7735 pgcc* | pgf77* | pgf90* | pgf95*) 7736 # Portland Group compilers (*not* the Pentium gcc compiler, 7737 # which looks to be a dead project) 7738 lt_prog_compiler_wl='-Wl,' 7739 lt_prog_compiler_pic='-fpic' 7740 lt_prog_compiler_static='-Bstatic' 7741 ;; 7742 ccc*) 7743 lt_prog_compiler_wl='-Wl,' 7744 # All Alpha code is PIC. 7745 lt_prog_compiler_static='-non_shared' 7746 ;; 7747 xl*) 7748 # IBM XL C 8.0/Fortran 10.1 on PPC 7749 lt_prog_compiler_wl='-Wl,' 7750 lt_prog_compiler_pic='-qpic' 7751 lt_prog_compiler_static='-qstaticlink' 7752 ;; 7753 *) 7754 case `$CC -V 2>&1 | sed 5q` in 7755 *Sun\ C*) 7756 # Sun C 5.9 7757 lt_prog_compiler_pic='-KPIC' 7758 lt_prog_compiler_static='-Bstatic' 7759 lt_prog_compiler_wl='-Wl,' 7760 ;; 7761 *Sun\ F*) 7762 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7763 lt_prog_compiler_pic='-KPIC' 7764 lt_prog_compiler_static='-Bstatic' 7765 lt_prog_compiler_wl='' 7766 ;; 7767 esac 7768 ;; 7769 esac 7770 ;; 7771 7772 newsos6) 7773 lt_prog_compiler_pic='-KPIC' 7774 lt_prog_compiler_static='-Bstatic' 7775 ;; 7776 7777 *nto* | *qnx*) 7778 # QNX uses GNU C++, but need to define -shared option too, otherwise 7779 # it will coredump. 7780 lt_prog_compiler_pic='-fPIC -shared' 7781 ;; 7782 7783 osf3* | osf4* | osf5*) 7784 lt_prog_compiler_wl='-Wl,' 7785 # All OSF/1 code is PIC. 7786 lt_prog_compiler_static='-non_shared' 7787 ;; 7788 7789 rdos*) 7790 lt_prog_compiler_static='-non_shared' 7791 ;; 7792 7793 solaris*) 7794 lt_prog_compiler_pic='-KPIC' 7795 lt_prog_compiler_static='-Bstatic' 7796 case $cc_basename in 7797 f77* | f90* | f95*) 7798 lt_prog_compiler_wl='-Qoption ld ';; 7799 *) 7800 lt_prog_compiler_wl='-Wl,';; 7801 esac 7802 ;; 7803 7804 sunos4*) 7805 lt_prog_compiler_wl='-Qoption ld ' 7806 lt_prog_compiler_pic='-PIC' 7807 lt_prog_compiler_static='-Bstatic' 7808 ;; 7809 7810 sysv4 | sysv4.2uw2* | sysv4.3*) 7811 lt_prog_compiler_wl='-Wl,' 7812 lt_prog_compiler_pic='-KPIC' 7813 lt_prog_compiler_static='-Bstatic' 7814 ;; 7815 7816 sysv4*MP*) 7817 if test -d /usr/nec ;then 7818 lt_prog_compiler_pic='-Kconform_pic' 7819 lt_prog_compiler_static='-Bstatic' 7820 fi 7821 ;; 7822 7823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7824 lt_prog_compiler_wl='-Wl,' 7825 lt_prog_compiler_pic='-KPIC' 7826 lt_prog_compiler_static='-Bstatic' 7827 ;; 7828 7829 unicos*) 7830 lt_prog_compiler_wl='-Wl,' 7831 lt_prog_compiler_can_build_shared=no 7832 ;; 7833 7834 uts4*) 7835 lt_prog_compiler_pic='-pic' 7836 lt_prog_compiler_static='-Bstatic' 7837 ;; 7838 7839 *) 7840 lt_prog_compiler_can_build_shared=no 7841 ;; 7842 esac 7843 fi 7844 7845case $host_os in 7846 # For platforms which do not support PIC, -DPIC is meaningless: 7847 *djgpp*) 7848 lt_prog_compiler_pic= 7849 ;; 7850 *) 7851 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7852 ;; 7853esac 7854{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7855$as_echo "$lt_prog_compiler_pic" >&6; } 7856 7857 7858 7859 7860 7861 7862# 7863# Check to make sure the PIC flag actually works. 7864# 7865if test -n "$lt_prog_compiler_pic"; then 7866 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7867$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7868if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7869 $as_echo_n "(cached) " >&6 7870else 7871 lt_cv_prog_compiler_pic_works=no 7872 ac_outfile=conftest.$ac_objext 7873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7874 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7875 # Insert the option either (1) after the last *FLAGS variable, or 7876 # (2) before a word containing "conftest.", or (3) at the end. 7877 # Note that $ac_compile itself does not contain backslashes and begins 7878 # with a dollar sign (not a hyphen), so the echo should work correctly. 7879 # The option is referenced via a variable to avoid confusing sed. 7880 lt_compile=`echo "$ac_compile" | $SED \ 7881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7883 -e 's:$: $lt_compiler_flag:'` 7884 (eval echo "\"\$as_me:7884: $lt_compile\"" >&5) 7885 (eval "$lt_compile" 2>conftest.err) 7886 ac_status=$? 7887 cat conftest.err >&5 7888 echo "$as_me:7888: \$? = $ac_status" >&5 7889 if (exit $ac_status) && test -s "$ac_outfile"; then 7890 # The compiler can only warn and ignore the option if not recognized 7891 # So say no if there are warnings other than the usual output. 7892 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7894 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7895 lt_cv_prog_compiler_pic_works=yes 7896 fi 7897 fi 7898 $RM conftest* 7899 7900fi 7901{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7902$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7903 7904if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7905 case $lt_prog_compiler_pic in 7906 "" | " "*) ;; 7907 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7908 esac 7909else 7910 lt_prog_compiler_pic= 7911 lt_prog_compiler_can_build_shared=no 7912fi 7913 7914fi 7915 7916 7917 7918 7919 7920 7921# 7922# Check to make sure the static flag actually works. 7923# 7924wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7925{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7926$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7927if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7928 $as_echo_n "(cached) " >&6 7929else 7930 lt_cv_prog_compiler_static_works=no 7931 save_LDFLAGS="$LDFLAGS" 7932 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7933 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7935 # The linker can only warn and ignore the option if not recognized 7936 # So say no if there are warnings 7937 if test -s conftest.err; then 7938 # Append any errors to the config.log. 7939 cat conftest.err 1>&5 7940 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7942 if diff conftest.exp conftest.er2 >/dev/null; then 7943 lt_cv_prog_compiler_static_works=yes 7944 fi 7945 else 7946 lt_cv_prog_compiler_static_works=yes 7947 fi 7948 fi 7949 $RM -r conftest* 7950 LDFLAGS="$save_LDFLAGS" 7951 7952fi 7953{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7954$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7955 7956if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7957 : 7958else 7959 lt_prog_compiler_static= 7960fi 7961 7962 7963 7964 7965 7966 7967 7968 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7969$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7970if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7971 $as_echo_n "(cached) " >&6 7972else 7973 lt_cv_prog_compiler_c_o=no 7974 $RM -r conftest 2>/dev/null 7975 mkdir conftest 7976 cd conftest 7977 mkdir out 7978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7979 7980 lt_compiler_flag="-o out/conftest2.$ac_objext" 7981 # Insert the option either (1) after the last *FLAGS variable, or 7982 # (2) before a word containing "conftest.", or (3) at the end. 7983 # Note that $ac_compile itself does not contain backslashes and begins 7984 # with a dollar sign (not a hyphen), so the echo should work correctly. 7985 lt_compile=`echo "$ac_compile" | $SED \ 7986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7988 -e 's:$: $lt_compiler_flag:'` 7989 (eval echo "\"\$as_me:7989: $lt_compile\"" >&5) 7990 (eval "$lt_compile" 2>out/conftest.err) 7991 ac_status=$? 7992 cat out/conftest.err >&5 7993 echo "$as_me:7993: \$? = $ac_status" >&5 7994 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7995 then 7996 # The compiler can only warn and ignore the option if not recognized 7997 # So say no if there are warnings 7998 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8001 lt_cv_prog_compiler_c_o=yes 8002 fi 8003 fi 8004 chmod u+w . 2>&5 8005 $RM conftest* 8006 # SGI C++ compiler will create directory out/ii_files/ for 8007 # template instantiation 8008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8009 $RM out/* && rmdir out 8010 cd .. 8011 $RM -r conftest 8012 $RM conftest* 8013 8014fi 8015{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8016$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8017 8018 8019 8020 8021 8022 8023 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8024$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8025if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8026 $as_echo_n "(cached) " >&6 8027else 8028 lt_cv_prog_compiler_c_o=no 8029 $RM -r conftest 2>/dev/null 8030 mkdir conftest 8031 cd conftest 8032 mkdir out 8033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8034 8035 lt_compiler_flag="-o out/conftest2.$ac_objext" 8036 # Insert the option either (1) after the last *FLAGS variable, or 8037 # (2) before a word containing "conftest.", or (3) at the end. 8038 # Note that $ac_compile itself does not contain backslashes and begins 8039 # with a dollar sign (not a hyphen), so the echo should work correctly. 8040 lt_compile=`echo "$ac_compile" | $SED \ 8041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8043 -e 's:$: $lt_compiler_flag:'` 8044 (eval echo "\"\$as_me:8044: $lt_compile\"" >&5) 8045 (eval "$lt_compile" 2>out/conftest.err) 8046 ac_status=$? 8047 cat out/conftest.err >&5 8048 echo "$as_me:8048: \$? = $ac_status" >&5 8049 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8050 then 8051 # The compiler can only warn and ignore the option if not recognized 8052 # So say no if there are warnings 8053 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8056 lt_cv_prog_compiler_c_o=yes 8057 fi 8058 fi 8059 chmod u+w . 2>&5 8060 $RM conftest* 8061 # SGI C++ compiler will create directory out/ii_files/ for 8062 # template instantiation 8063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8064 $RM out/* && rmdir out 8065 cd .. 8066 $RM -r conftest 8067 $RM conftest* 8068 8069fi 8070{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8071$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8072 8073 8074 8075 8076hard_links="nottested" 8077if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8078 # do not overwrite the value of need_locks provided by the user 8079 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8080$as_echo_n "checking if we can lock with hard links... " >&6; } 8081 hard_links=yes 8082 $RM conftest* 8083 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8084 touch conftest.a 8085 ln conftest.a conftest.b 2>&5 || hard_links=no 8086 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8087 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8088$as_echo "$hard_links" >&6; } 8089 if test "$hard_links" = no; then 8090 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8091$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8092 need_locks=warn 8093 fi 8094else 8095 need_locks=no 8096fi 8097 8098 8099 8100 8101 8102 8103 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8104$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8105 8106 runpath_var= 8107 allow_undefined_flag= 8108 always_export_symbols=no 8109 archive_cmds= 8110 archive_expsym_cmds= 8111 compiler_needs_object=no 8112 enable_shared_with_static_runtimes=no 8113 export_dynamic_flag_spec= 8114 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8115 hardcode_automatic=no 8116 hardcode_direct=no 8117 hardcode_direct_absolute=no 8118 hardcode_libdir_flag_spec= 8119 hardcode_libdir_flag_spec_ld= 8120 hardcode_libdir_separator= 8121 hardcode_minus_L=no 8122 hardcode_shlibpath_var=unsupported 8123 inherit_rpath=no 8124 link_all_deplibs=unknown 8125 module_cmds= 8126 module_expsym_cmds= 8127 old_archive_from_new_cmds= 8128 old_archive_from_expsyms_cmds= 8129 thread_safe_flag_spec= 8130 whole_archive_flag_spec= 8131 # include_expsyms should be a list of space-separated symbols to be *always* 8132 # included in the symbol list 8133 include_expsyms= 8134 # exclude_expsyms can be an extended regexp of symbols to exclude 8135 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8136 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8137 # as well as any symbol that contains `d'. 8138 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8140 # platforms (ab)use it in PIC code, but their linkers get confused if 8141 # the symbol is explicitly referenced. Since portable code cannot 8142 # rely on this symbol name, it's probably fine to never include it in 8143 # preloaded symbol tables. 8144 # Exclude shared library initialization/finalization symbols. 8145 extract_expsyms_cmds= 8146 8147 case $host_os in 8148 cygwin* | mingw* | pw32* | cegcc*) 8149 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8150 # When not using gcc, we currently assume that we are using 8151 # Microsoft Visual C++. 8152 if test "$GCC" != yes; then 8153 with_gnu_ld=no 8154 fi 8155 ;; 8156 interix*) 8157 # we just hope/assume this is gcc and not c89 (= MSVC++) 8158 with_gnu_ld=yes 8159 ;; 8160 openbsd*) 8161 with_gnu_ld=no 8162 ;; 8163 esac 8164 8165 ld_shlibs=yes 8166 if test "$with_gnu_ld" = yes; then 8167 # If archive_cmds runs LD, not CC, wlarc should be empty 8168 wlarc='${wl}' 8169 8170 # Set some defaults for GNU ld with shared library support. These 8171 # are reset later if shared libraries are not supported. Putting them 8172 # here allows them to be overridden if necessary. 8173 runpath_var=LD_RUN_PATH 8174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8175 export_dynamic_flag_spec='${wl}--export-dynamic' 8176 # ancient GNU ld didn't support --whole-archive et. al. 8177 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8178 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8179 else 8180 whole_archive_flag_spec= 8181 fi 8182 supports_anon_versioning=no 8183 case `$LD -v 2>&1` in 8184 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8185 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8186 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8187 *\ 2.11.*) ;; # other 2.11 versions 8188 *) supports_anon_versioning=yes ;; 8189 esac 8190 8191 # See if GNU ld supports shared libraries. 8192 case $host_os in 8193 aix[3-9]*) 8194 # On AIX/PPC, the GNU linker is very broken 8195 if test "$host_cpu" != ia64; then 8196 ld_shlibs=no 8197 cat <<_LT_EOF 1>&2 8198 8199*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8200*** to be unable to reliably create shared libraries on AIX. 8201*** Therefore, libtool is disabling shared libraries support. If you 8202*** really care for shared libraries, you may want to modify your PATH 8203*** so that a non-GNU linker is found, and then restart. 8204 8205_LT_EOF 8206 fi 8207 ;; 8208 8209 amigaos*) 8210 case $host_cpu in 8211 powerpc) 8212 # see comment about AmigaOS4 .so support 8213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8214 archive_expsym_cmds='' 8215 ;; 8216 m68k) 8217 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)' 8218 hardcode_libdir_flag_spec='-L$libdir' 8219 hardcode_minus_L=yes 8220 ;; 8221 esac 8222 ;; 8223 8224 beos*) 8225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8226 allow_undefined_flag=unsupported 8227 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8228 # support --undefined. This deserves some investigation. FIXME 8229 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8230 else 8231 ld_shlibs=no 8232 fi 8233 ;; 8234 8235 cygwin* | mingw* | pw32* | cegcc*) 8236 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8237 # as there is no search path for DLLs. 8238 hardcode_libdir_flag_spec='-L$libdir' 8239 allow_undefined_flag=unsupported 8240 always_export_symbols=no 8241 enable_shared_with_static_runtimes=yes 8242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8243 8244 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8246 # If the export-symbols file already is a .def file (1st line 8247 # is EXPORTS), use it as is; otherwise, prepend... 8248 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8249 cp $export_symbols $output_objdir/$soname.def; 8250 else 8251 echo EXPORTS > $output_objdir/$soname.def; 8252 cat $export_symbols >> $output_objdir/$soname.def; 8253 fi~ 8254 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8255 else 8256 ld_shlibs=no 8257 fi 8258 ;; 8259 8260 interix[3-9]*) 8261 hardcode_direct=no 8262 hardcode_shlibpath_var=no 8263 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8264 export_dynamic_flag_spec='${wl}-E' 8265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8266 # Instead, shared libraries are loaded at an image base (0x10000000 by 8267 # default) and relocated if they conflict, which is a slow very memory 8268 # consuming and fragmenting process. To avoid this, we pick a random, 8269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8270 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8272 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' 8273 ;; 8274 8275 gnu* | linux* | tpf* | k*bsd*-gnu) 8276 tmp_diet=no 8277 if test "$host_os" = linux-dietlibc; then 8278 case $cc_basename in 8279 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8280 esac 8281 fi 8282 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8283 && test "$tmp_diet" = no 8284 then 8285 tmp_addflag= 8286 tmp_sharedflag='-shared' 8287 case $cc_basename,$host_cpu in 8288 pgcc*) # Portland Group C compiler 8289 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' 8290 tmp_addflag=' $pic_flag' 8291 ;; 8292 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8293 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' 8294 tmp_addflag=' $pic_flag -Mnomain' ;; 8295 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8296 tmp_addflag=' -i_dynamic' ;; 8297 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8298 tmp_addflag=' -i_dynamic -nofor_main' ;; 8299 ifc* | ifort*) # Intel Fortran compiler 8300 tmp_addflag=' -nofor_main' ;; 8301 lf95*) # Lahey Fortran 8.1 8302 whole_archive_flag_spec= 8303 tmp_sharedflag='--shared' ;; 8304 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8305 tmp_sharedflag='-qmkshrobj' 8306 tmp_addflag= ;; 8307 esac 8308 case `$CC -V 2>&1 | sed 5q` in 8309 *Sun\ C*) # Sun C 5.9 8310 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' 8311 compiler_needs_object=yes 8312 tmp_sharedflag='-G' ;; 8313 *Sun\ F*) # Sun Fortran 8.3 8314 tmp_sharedflag='-G' ;; 8315 esac 8316 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8317 8318 if test "x$supports_anon_versioning" = xyes; then 8319 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8321 echo "local: *; };" >> $output_objdir/$libname.ver~ 8322 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8323 fi 8324 8325 case $cc_basename in 8326 xlf*) 8327 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8328 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8329 hardcode_libdir_flag_spec= 8330 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8331 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8332 if test "x$supports_anon_versioning" = xyes; then 8333 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8334 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8335 echo "local: *; };" >> $output_objdir/$libname.ver~ 8336 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8337 fi 8338 ;; 8339 esac 8340 else 8341 ld_shlibs=no 8342 fi 8343 ;; 8344 8345 netbsd*) 8346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8347 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8348 wlarc= 8349 else 8350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8352 fi 8353 ;; 8354 8355 solaris*) 8356 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8357 ld_shlibs=no 8358 cat <<_LT_EOF 1>&2 8359 8360*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8361*** create shared libraries on Solaris systems. Therefore, libtool 8362*** is disabling shared libraries support. We urge you to upgrade GNU 8363*** binutils to release 2.9.1 or newer. Another option is to modify 8364*** your PATH or compiler configuration so that the native linker is 8365*** used, and then restart. 8366 8367_LT_EOF 8368 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8371 else 8372 ld_shlibs=no 8373 fi 8374 ;; 8375 8376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8377 case `$LD -v 2>&1` in 8378 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8379 ld_shlibs=no 8380 cat <<_LT_EOF 1>&2 8381 8382*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8383*** reliably create shared libraries on SCO systems. Therefore, libtool 8384*** is disabling shared libraries support. We urge you to upgrade GNU 8385*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8386*** your PATH or compiler configuration so that the native linker is 8387*** used, and then restart. 8388 8389_LT_EOF 8390 ;; 8391 *) 8392 # For security reasons, it is highly recommended that you always 8393 # use absolute paths for naming shared libraries, and exclude the 8394 # DT_RUNPATH tag from executables and libraries. But doing so 8395 # requires that you compile everything twice, which is a pain. 8396 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8400 else 8401 ld_shlibs=no 8402 fi 8403 ;; 8404 esac 8405 ;; 8406 8407 sunos4*) 8408 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8409 wlarc= 8410 hardcode_direct=yes 8411 hardcode_shlibpath_var=no 8412 ;; 8413 8414 *) 8415 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8418 else 8419 ld_shlibs=no 8420 fi 8421 ;; 8422 esac 8423 8424 if test "$ld_shlibs" = no; then 8425 runpath_var= 8426 hardcode_libdir_flag_spec= 8427 export_dynamic_flag_spec= 8428 whole_archive_flag_spec= 8429 fi 8430 else 8431 # PORTME fill in a description of your system's linker (not GNU ld) 8432 case $host_os in 8433 aix3*) 8434 allow_undefined_flag=unsupported 8435 always_export_symbols=yes 8436 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' 8437 # Note: this linker hardcodes the directories in LIBPATH if there 8438 # are no directories specified by -L. 8439 hardcode_minus_L=yes 8440 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8441 # Neither direct hardcoding nor static linking is supported with a 8442 # broken collect2. 8443 hardcode_direct=unsupported 8444 fi 8445 ;; 8446 8447 aix[4-9]*) 8448 if test "$host_cpu" = ia64; then 8449 # On IA64, the linker does run time linking by default, so we don't 8450 # have to do anything special. 8451 aix_use_runtimelinking=no 8452 exp_sym_flag='-Bexport' 8453 no_entry_flag="" 8454 else 8455 # If we're using GNU nm, then we don't want the "-C" option. 8456 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8457 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8458 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' 8459 else 8460 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' 8461 fi 8462 aix_use_runtimelinking=no 8463 8464 # Test if we are trying to use run time linking or normal 8465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8466 # need to do runtime linking. 8467 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8468 for ld_flag in $LDFLAGS; do 8469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8470 aix_use_runtimelinking=yes 8471 break 8472 fi 8473 done 8474 ;; 8475 esac 8476 8477 exp_sym_flag='-bexport' 8478 no_entry_flag='-bnoentry' 8479 fi 8480 8481 # When large executables or shared objects are built, AIX ld can 8482 # have problems creating the table of contents. If linking a library 8483 # or program results in "error TOC overflow" add -mminimal-toc to 8484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8486 8487 archive_cmds='' 8488 hardcode_direct=yes 8489 hardcode_direct_absolute=yes 8490 hardcode_libdir_separator=':' 8491 link_all_deplibs=yes 8492 file_list_spec='${wl}-f,' 8493 8494 if test "$GCC" = yes; then 8495 case $host_os in aix4.[012]|aix4.[012].*) 8496 # We only want to do this on AIX 4.2 and lower, the check 8497 # below for broken collect2 doesn't work under 4.3+ 8498 collect2name=`${CC} -print-prog-name=collect2` 8499 if test -f "$collect2name" && 8500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8501 then 8502 # We have reworked collect2 8503 : 8504 else 8505 # We have old collect2 8506 hardcode_direct=unsupported 8507 # It fails to find uninstalled libraries when the uninstalled 8508 # path is not listed in the libpath. Setting hardcode_minus_L 8509 # to unsupported forces relinking 8510 hardcode_minus_L=yes 8511 hardcode_libdir_flag_spec='-L$libdir' 8512 hardcode_libdir_separator= 8513 fi 8514 ;; 8515 esac 8516 shared_flag='-shared' 8517 if test "$aix_use_runtimelinking" = yes; then 8518 shared_flag="$shared_flag "'${wl}-G' 8519 fi 8520 else 8521 # not using gcc 8522 if test "$host_cpu" = ia64; then 8523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8524 # chokes on -Wl,-G. The following line is correct: 8525 shared_flag='-G' 8526 else 8527 if test "$aix_use_runtimelinking" = yes; then 8528 shared_flag='${wl}-G' 8529 else 8530 shared_flag='${wl}-bM:SRE' 8531 fi 8532 fi 8533 fi 8534 8535 export_dynamic_flag_spec='${wl}-bexpall' 8536 # It seems that -bexpall does not export symbols beginning with 8537 # underscore (_), so it is better to generate a list of symbols to export. 8538 always_export_symbols=yes 8539 if test "$aix_use_runtimelinking" = yes; then 8540 # Warning - without using the other runtime loading flags (-brtl), 8541 # -berok will link without error, but may produce a broken library. 8542 allow_undefined_flag='-berok' 8543 # Determine the default libpath from the value encoded in an 8544 # empty executable. 8545 cat >conftest.$ac_ext <<_ACEOF 8546/* confdefs.h. */ 8547_ACEOF 8548cat confdefs.h >>conftest.$ac_ext 8549cat >>conftest.$ac_ext <<_ACEOF 8550/* end confdefs.h. */ 8551 8552int 8553main () 8554{ 8555 8556 ; 8557 return 0; 8558} 8559_ACEOF 8560rm -f conftest.$ac_objext conftest$ac_exeext 8561if { (ac_try="$ac_link" 8562case "(($ac_try" in 8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8564 *) ac_try_echo=$ac_try;; 8565esac 8566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8567$as_echo "$ac_try_echo") >&5 8568 (eval "$ac_link") 2>conftest.er1 8569 ac_status=$? 8570 grep -v '^ *+' conftest.er1 >conftest.err 8571 rm -f conftest.er1 8572 cat conftest.err >&5 8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8574 (exit $ac_status); } && { 8575 test -z "$ac_c_werror_flag" || 8576 test ! -s conftest.err 8577 } && test -s conftest$ac_exeext && { 8578 test "$cross_compiling" = yes || 8579 $as_test_x conftest$ac_exeext 8580 }; then 8581 8582lt_aix_libpath_sed=' 8583 /Import File Strings/,/^$/ { 8584 /^0/ { 8585 s/^0 *\(.*\)$/\1/ 8586 p 8587 } 8588 }' 8589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8590# Check for a 64-bit object if we didn't find anything. 8591if test -z "$aix_libpath"; then 8592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8593fi 8594else 8595 $as_echo "$as_me: failed program was:" >&5 8596sed 's/^/| /' conftest.$ac_ext >&5 8597 8598 8599fi 8600 8601rm -rf conftest.dSYM 8602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8603 conftest$ac_exeext conftest.$ac_ext 8604if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8605 8606 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8607 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" 8608 else 8609 if test "$host_cpu" = ia64; then 8610 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8611 allow_undefined_flag="-z nodefs" 8612 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" 8613 else 8614 # Determine the default libpath from the value encoded in an 8615 # empty executable. 8616 cat >conftest.$ac_ext <<_ACEOF 8617/* confdefs.h. */ 8618_ACEOF 8619cat confdefs.h >>conftest.$ac_ext 8620cat >>conftest.$ac_ext <<_ACEOF 8621/* end confdefs.h. */ 8622 8623int 8624main () 8625{ 8626 8627 ; 8628 return 0; 8629} 8630_ACEOF 8631rm -f conftest.$ac_objext conftest$ac_exeext 8632if { (ac_try="$ac_link" 8633case "(($ac_try" in 8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8635 *) ac_try_echo=$ac_try;; 8636esac 8637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8638$as_echo "$ac_try_echo") >&5 8639 (eval "$ac_link") 2>conftest.er1 8640 ac_status=$? 8641 grep -v '^ *+' conftest.er1 >conftest.err 8642 rm -f conftest.er1 8643 cat conftest.err >&5 8644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8645 (exit $ac_status); } && { 8646 test -z "$ac_c_werror_flag" || 8647 test ! -s conftest.err 8648 } && test -s conftest$ac_exeext && { 8649 test "$cross_compiling" = yes || 8650 $as_test_x conftest$ac_exeext 8651 }; then 8652 8653lt_aix_libpath_sed=' 8654 /Import File Strings/,/^$/ { 8655 /^0/ { 8656 s/^0 *\(.*\)$/\1/ 8657 p 8658 } 8659 }' 8660aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8661# Check for a 64-bit object if we didn't find anything. 8662if test -z "$aix_libpath"; then 8663 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8664fi 8665else 8666 $as_echo "$as_me: failed program was:" >&5 8667sed 's/^/| /' conftest.$ac_ext >&5 8668 8669 8670fi 8671 8672rm -rf conftest.dSYM 8673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8674 conftest$ac_exeext conftest.$ac_ext 8675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8676 8677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8678 # Warning - without using the other run time loading flags, 8679 # -berok will link without error, but may produce a broken library. 8680 no_undefined_flag=' ${wl}-bernotok' 8681 allow_undefined_flag=' ${wl}-berok' 8682 # Exported symbols can be pulled into shared objects from archives 8683 whole_archive_flag_spec='$convenience' 8684 archive_cmds_need_lc=yes 8685 # This is similar to how AIX traditionally builds its shared libraries. 8686 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' 8687 fi 8688 fi 8689 ;; 8690 8691 amigaos*) 8692 case $host_cpu in 8693 powerpc) 8694 # see comment about AmigaOS4 .so support 8695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8696 archive_expsym_cmds='' 8697 ;; 8698 m68k) 8699 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)' 8700 hardcode_libdir_flag_spec='-L$libdir' 8701 hardcode_minus_L=yes 8702 ;; 8703 esac 8704 ;; 8705 8706 bsdi[45]*) 8707 export_dynamic_flag_spec=-rdynamic 8708 ;; 8709 8710 cygwin* | mingw* | pw32* | cegcc*) 8711 # When not using gcc, we currently assume that we are using 8712 # Microsoft Visual C++. 8713 # hardcode_libdir_flag_spec is actually meaningless, as there is 8714 # no search path for DLLs. 8715 hardcode_libdir_flag_spec=' ' 8716 allow_undefined_flag=unsupported 8717 # Tell ltmain to make .lib files, not .a files. 8718 libext=lib 8719 # Tell ltmain to make .dll files, not .so files. 8720 shrext_cmds=".dll" 8721 # FIXME: Setting linknames here is a bad hack. 8722 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8723 # The linker will automatically build a .lib file if we build a DLL. 8724 old_archive_from_new_cmds='true' 8725 # FIXME: Should let the user specify the lib program. 8726 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8727 fix_srcfile_path='`cygpath -w "$srcfile"`' 8728 enable_shared_with_static_runtimes=yes 8729 ;; 8730 8731 darwin* | rhapsody*) 8732 8733 8734 archive_cmds_need_lc=no 8735 hardcode_direct=no 8736 hardcode_automatic=yes 8737 hardcode_shlibpath_var=unsupported 8738 whole_archive_flag_spec='' 8739 link_all_deplibs=yes 8740 allow_undefined_flag="$_lt_dar_allow_undefined" 8741 case $cc_basename in 8742 ifort*) _lt_dar_can_shared=yes ;; 8743 *) _lt_dar_can_shared=$GCC ;; 8744 esac 8745 if test "$_lt_dar_can_shared" = "yes"; then 8746 output_verbose_link_cmd=echo 8747 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8748 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8749 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}" 8750 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}" 8751 8752 else 8753 ld_shlibs=no 8754 fi 8755 8756 ;; 8757 8758 dgux*) 8759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8760 hardcode_libdir_flag_spec='-L$libdir' 8761 hardcode_shlibpath_var=no 8762 ;; 8763 8764 freebsd1*) 8765 ld_shlibs=no 8766 ;; 8767 8768 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8769 # support. Future versions do this automatically, but an explicit c++rt0.o 8770 # does not break anything, and helps significantly (at the cost of a little 8771 # extra space). 8772 freebsd2.2*) 8773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8774 hardcode_libdir_flag_spec='-R$libdir' 8775 hardcode_direct=yes 8776 hardcode_shlibpath_var=no 8777 ;; 8778 8779 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8780 freebsd2*) 8781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8782 hardcode_direct=yes 8783 hardcode_minus_L=yes 8784 hardcode_shlibpath_var=no 8785 ;; 8786 8787 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8788 freebsd* | dragonfly*) 8789 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8790 hardcode_libdir_flag_spec='-R$libdir' 8791 hardcode_direct=yes 8792 hardcode_shlibpath_var=no 8793 ;; 8794 8795 hpux9*) 8796 if test "$GCC" = yes; then 8797 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' 8798 else 8799 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' 8800 fi 8801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8802 hardcode_libdir_separator=: 8803 hardcode_direct=yes 8804 8805 # hardcode_minus_L: Not really in the search PATH, 8806 # but as the default location of the library. 8807 hardcode_minus_L=yes 8808 export_dynamic_flag_spec='${wl}-E' 8809 ;; 8810 8811 hpux10*) 8812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8813 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8814 else 8815 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8816 fi 8817 if test "$with_gnu_ld" = no; then 8818 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8819 hardcode_libdir_flag_spec_ld='+b $libdir' 8820 hardcode_libdir_separator=: 8821 hardcode_direct=yes 8822 hardcode_direct_absolute=yes 8823 export_dynamic_flag_spec='${wl}-E' 8824 # hardcode_minus_L: Not really in the search PATH, 8825 # but as the default location of the library. 8826 hardcode_minus_L=yes 8827 fi 8828 ;; 8829 8830 hpux11*) 8831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8832 case $host_cpu in 8833 hppa*64*) 8834 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8835 ;; 8836 ia64*) 8837 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8838 ;; 8839 *) 8840 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8841 ;; 8842 esac 8843 else 8844 case $host_cpu in 8845 hppa*64*) 8846 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8847 ;; 8848 ia64*) 8849 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8850 ;; 8851 *) 8852 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8853 ;; 8854 esac 8855 fi 8856 if test "$with_gnu_ld" = no; then 8857 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8858 hardcode_libdir_separator=: 8859 8860 case $host_cpu in 8861 hppa*64*|ia64*) 8862 hardcode_direct=no 8863 hardcode_shlibpath_var=no 8864 ;; 8865 *) 8866 hardcode_direct=yes 8867 hardcode_direct_absolute=yes 8868 export_dynamic_flag_spec='${wl}-E' 8869 8870 # hardcode_minus_L: Not really in the search PATH, 8871 # but as the default location of the library. 8872 hardcode_minus_L=yes 8873 ;; 8874 esac 8875 fi 8876 ;; 8877 8878 irix5* | irix6* | nonstopux*) 8879 if test "$GCC" = yes; then 8880 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' 8881 # Try to use the -exported_symbol ld option, if it does not 8882 # work, assume that -exports_file does not work either and 8883 # implicitly export all symbols. 8884 save_LDFLAGS="$LDFLAGS" 8885 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8886 cat >conftest.$ac_ext <<_ACEOF 8887int foo(void) {} 8888_ACEOF 8889rm -f conftest.$ac_objext conftest$ac_exeext 8890if { (ac_try="$ac_link" 8891case "(($ac_try" in 8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8893 *) ac_try_echo=$ac_try;; 8894esac 8895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8896$as_echo "$ac_try_echo") >&5 8897 (eval "$ac_link") 2>conftest.er1 8898 ac_status=$? 8899 grep -v '^ *+' conftest.er1 >conftest.err 8900 rm -f conftest.er1 8901 cat conftest.err >&5 8902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8903 (exit $ac_status); } && { 8904 test -z "$ac_c_werror_flag" || 8905 test ! -s conftest.err 8906 } && test -s conftest$ac_exeext && { 8907 test "$cross_compiling" = yes || 8908 $as_test_x conftest$ac_exeext 8909 }; then 8910 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' 8911 8912else 8913 $as_echo "$as_me: failed program was:" >&5 8914sed 's/^/| /' conftest.$ac_ext >&5 8915 8916 8917fi 8918 8919rm -rf conftest.dSYM 8920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8921 conftest$ac_exeext conftest.$ac_ext 8922 LDFLAGS="$save_LDFLAGS" 8923 else 8924 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' 8925 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' 8926 fi 8927 archive_cmds_need_lc='no' 8928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8929 hardcode_libdir_separator=: 8930 inherit_rpath=yes 8931 link_all_deplibs=yes 8932 ;; 8933 8934 netbsd*) 8935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8937 else 8938 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8939 fi 8940 hardcode_libdir_flag_spec='-R$libdir' 8941 hardcode_direct=yes 8942 hardcode_shlibpath_var=no 8943 ;; 8944 8945 newsos6) 8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8947 hardcode_direct=yes 8948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8949 hardcode_libdir_separator=: 8950 hardcode_shlibpath_var=no 8951 ;; 8952 8953 *nto* | *qnx*) 8954 ;; 8955 8956 openbsd*) 8957 if test -f /usr/libexec/ld.so; then 8958 hardcode_direct=yes 8959 hardcode_shlibpath_var=no 8960 hardcode_direct_absolute=yes 8961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8963 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8965 export_dynamic_flag_spec='${wl}-E' 8966 else 8967 case $host_os in 8968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8970 hardcode_libdir_flag_spec='-R$libdir' 8971 ;; 8972 *) 8973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8975 ;; 8976 esac 8977 fi 8978 else 8979 ld_shlibs=no 8980 fi 8981 ;; 8982 8983 os2*) 8984 hardcode_libdir_flag_spec='-L$libdir' 8985 hardcode_minus_L=yes 8986 allow_undefined_flag=unsupported 8987 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' 8988 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8989 ;; 8990 8991 osf3*) 8992 if test "$GCC" = yes; then 8993 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8994 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' 8995 else 8996 allow_undefined_flag=' -expect_unresolved \*' 8997 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' 8998 fi 8999 archive_cmds_need_lc='no' 9000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9001 hardcode_libdir_separator=: 9002 ;; 9003 9004 osf4* | osf5*) # as osf3* with the addition of -msym flag 9005 if test "$GCC" = yes; then 9006 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9007 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' 9008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9009 else 9010 allow_undefined_flag=' -expect_unresolved \*' 9011 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' 9012 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~ 9013 $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' 9014 9015 # Both c and cxx compiler support -rpath directly 9016 hardcode_libdir_flag_spec='-rpath $libdir' 9017 fi 9018 archive_cmds_need_lc='no' 9019 hardcode_libdir_separator=: 9020 ;; 9021 9022 solaris*) 9023 no_undefined_flag=' -z defs' 9024 if test "$GCC" = yes; then 9025 wlarc='${wl}' 9026 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9028 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9029 else 9030 case `$CC -V 2>&1` in 9031 *"Compilers 5.0"*) 9032 wlarc='' 9033 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9036 ;; 9037 *) 9038 wlarc='${wl}' 9039 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9041 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9042 ;; 9043 esac 9044 fi 9045 hardcode_libdir_flag_spec='-R$libdir' 9046 hardcode_shlibpath_var=no 9047 case $host_os in 9048 solaris2.[0-5] | solaris2.[0-5].*) ;; 9049 *) 9050 # The compiler driver will combine and reorder linker options, 9051 # but understands `-z linker_flag'. GCC discards it without `$wl', 9052 # but is careful enough not to reorder. 9053 # Supported since Solaris 2.6 (maybe 2.5.1?) 9054 if test "$GCC" = yes; then 9055 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9056 else 9057 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9058 fi 9059 ;; 9060 esac 9061 link_all_deplibs=yes 9062 ;; 9063 9064 sunos4*) 9065 if test "x$host_vendor" = xsequent; then 9066 # Use $CC to link under sequent, because it throws in some extra .o 9067 # files that make .init and .fini sections work. 9068 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9069 else 9070 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9071 fi 9072 hardcode_libdir_flag_spec='-L$libdir' 9073 hardcode_direct=yes 9074 hardcode_minus_L=yes 9075 hardcode_shlibpath_var=no 9076 ;; 9077 9078 sysv4) 9079 case $host_vendor in 9080 sni) 9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9082 hardcode_direct=yes # is this really true??? 9083 ;; 9084 siemens) 9085 ## LD is ld it makes a PLAMLIB 9086 ## CC just makes a GrossModule. 9087 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9088 reload_cmds='$CC -r -o $output$reload_objs' 9089 hardcode_direct=no 9090 ;; 9091 motorola) 9092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9093 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9094 ;; 9095 esac 9096 runpath_var='LD_RUN_PATH' 9097 hardcode_shlibpath_var=no 9098 ;; 9099 9100 sysv4.3*) 9101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9102 hardcode_shlibpath_var=no 9103 export_dynamic_flag_spec='-Bexport' 9104 ;; 9105 9106 sysv4*MP*) 9107 if test -d /usr/nec; then 9108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9109 hardcode_shlibpath_var=no 9110 runpath_var=LD_RUN_PATH 9111 hardcode_runpath_var=yes 9112 ld_shlibs=yes 9113 fi 9114 ;; 9115 9116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9117 no_undefined_flag='${wl}-z,text' 9118 archive_cmds_need_lc=no 9119 hardcode_shlibpath_var=no 9120 runpath_var='LD_RUN_PATH' 9121 9122 if test "$GCC" = yes; then 9123 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9124 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9125 else 9126 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9127 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9128 fi 9129 ;; 9130 9131 sysv5* | sco3.2v5* | sco5v6*) 9132 # Note: We can NOT use -z defs as we might desire, because we do not 9133 # link with -lc, and that would cause any symbols used from libc to 9134 # always be unresolved, which means just about no library would 9135 # ever link correctly. If we're not using GNU ld we use -z text 9136 # though, which does catch some bad symbols but isn't as heavy-handed 9137 # as -z defs. 9138 no_undefined_flag='${wl}-z,text' 9139 allow_undefined_flag='${wl}-z,nodefs' 9140 archive_cmds_need_lc=no 9141 hardcode_shlibpath_var=no 9142 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9143 hardcode_libdir_separator=':' 9144 link_all_deplibs=yes 9145 export_dynamic_flag_spec='${wl}-Bexport' 9146 runpath_var='LD_RUN_PATH' 9147 9148 if test "$GCC" = yes; then 9149 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9150 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9151 else 9152 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9153 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9154 fi 9155 ;; 9156 9157 uts4*) 9158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9159 hardcode_libdir_flag_spec='-L$libdir' 9160 hardcode_shlibpath_var=no 9161 ;; 9162 9163 *) 9164 ld_shlibs=no 9165 ;; 9166 esac 9167 9168 if test x$host_vendor = xsni; then 9169 case $host in 9170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9171 export_dynamic_flag_spec='${wl}-Blargedynsym' 9172 ;; 9173 esac 9174 fi 9175 fi 9176 9177{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9178$as_echo "$ld_shlibs" >&6; } 9179test "$ld_shlibs" = no && can_build_shared=no 9180 9181with_gnu_ld=$with_gnu_ld 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197# 9198# Do we need to explicitly link libc? 9199# 9200case "x$archive_cmds_need_lc" in 9201x|xyes) 9202 # Assume -lc should be added 9203 archive_cmds_need_lc=yes 9204 9205 if test "$enable_shared" = yes && test "$GCC" = yes; then 9206 case $archive_cmds in 9207 *'~'*) 9208 # FIXME: we may have to deal with multi-command sequences. 9209 ;; 9210 '$CC '*) 9211 # Test whether the compiler implicitly links with -lc since on some 9212 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9213 # to ld, don't add -lc before -lgcc. 9214 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9215$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9216 $RM conftest* 9217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9218 9219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9220 (eval $ac_compile) 2>&5 9221 ac_status=$? 9222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9223 (exit $ac_status); } 2>conftest.err; then 9224 soname=conftest 9225 lib=conftest 9226 libobjs=conftest.$ac_objext 9227 deplibs= 9228 wl=$lt_prog_compiler_wl 9229 pic_flag=$lt_prog_compiler_pic 9230 compiler_flags=-v 9231 linker_flags=-v 9232 verstring= 9233 output_objdir=. 9234 libname=conftest 9235 lt_save_allow_undefined_flag=$allow_undefined_flag 9236 allow_undefined_flag= 9237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9238 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9239 ac_status=$? 9240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9241 (exit $ac_status); } 9242 then 9243 archive_cmds_need_lc=no 9244 else 9245 archive_cmds_need_lc=yes 9246 fi 9247 allow_undefined_flag=$lt_save_allow_undefined_flag 9248 else 9249 cat conftest.err 1>&5 9250 fi 9251 $RM conftest* 9252 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9253$as_echo "$archive_cmds_need_lc" >&6; } 9254 ;; 9255 esac 9256 fi 9257 ;; 9258esac 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9417$as_echo_n "checking dynamic linker characteristics... " >&6; } 9418 9419if test "$GCC" = yes; then 9420 case $host_os in 9421 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9422 *) lt_awk_arg="/^libraries:/" ;; 9423 esac 9424 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9425 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9426 # if the path contains ";" then we assume it to be the separator 9427 # otherwise default to the standard path separator (i.e. ":") - it is 9428 # assumed that no part of a normal pathname contains ";" but that should 9429 # okay in the real world where ";" in dirpaths is itself problematic. 9430 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9431 else 9432 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9433 fi 9434 # Ok, now we have the path, separated by spaces, we can step through it 9435 # and add multilib dir if necessary. 9436 lt_tmp_lt_search_path_spec= 9437 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9438 for lt_sys_path in $lt_search_path_spec; do 9439 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9440 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9441 else 9442 test -d "$lt_sys_path" && \ 9443 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9444 fi 9445 done 9446 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9447BEGIN {RS=" "; FS="/|\n";} { 9448 lt_foo=""; 9449 lt_count=0; 9450 for (lt_i = NF; lt_i > 0; lt_i--) { 9451 if ($lt_i != "" && $lt_i != ".") { 9452 if ($lt_i == "..") { 9453 lt_count++; 9454 } else { 9455 if (lt_count == 0) { 9456 lt_foo="/" $lt_i lt_foo; 9457 } else { 9458 lt_count--; 9459 } 9460 } 9461 } 9462 } 9463 if (lt_foo != "") { lt_freq[lt_foo]++; } 9464 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9465}'` 9466 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9467else 9468 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9469fi 9470library_names_spec= 9471libname_spec='lib$name' 9472soname_spec= 9473shrext_cmds=".so" 9474postinstall_cmds= 9475postuninstall_cmds= 9476finish_cmds= 9477finish_eval= 9478shlibpath_var= 9479shlibpath_overrides_runpath=unknown 9480version_type=none 9481dynamic_linker="$host_os ld.so" 9482sys_lib_dlsearch_path_spec="/lib /usr/lib" 9483need_lib_prefix=unknown 9484hardcode_into_libs=no 9485 9486# when you set need_version to no, make sure it does not cause -set_version 9487# flags to be left without arguments 9488need_version=unknown 9489 9490case $host_os in 9491aix3*) 9492 version_type=linux 9493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9494 shlibpath_var=LIBPATH 9495 9496 # AIX 3 has no versioning support, so we append a major version to the name. 9497 soname_spec='${libname}${release}${shared_ext}$major' 9498 ;; 9499 9500aix[4-9]*) 9501 version_type=linux 9502 need_lib_prefix=no 9503 need_version=no 9504 hardcode_into_libs=yes 9505 if test "$host_cpu" = ia64; then 9506 # AIX 5 supports IA64 9507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9508 shlibpath_var=LD_LIBRARY_PATH 9509 else 9510 # With GCC up to 2.95.x, collect2 would create an import file 9511 # for dependence libraries. The import file would start with 9512 # the line `#! .'. This would cause the generated library to 9513 # depend on `.', always an invalid library. This was fixed in 9514 # development snapshots of GCC prior to 3.0. 9515 case $host_os in 9516 aix4 | aix4.[01] | aix4.[01].*) 9517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9518 echo ' yes ' 9519 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9520 : 9521 else 9522 can_build_shared=no 9523 fi 9524 ;; 9525 esac 9526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9527 # soname into executable. Probably we can add versioning support to 9528 # collect2, so additional links can be useful in future. 9529 if test "$aix_use_runtimelinking" = yes; then 9530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9531 # instead of lib<name>.a to let people know that these are not 9532 # typical AIX shared libraries. 9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9534 else 9535 # We preserve .a as extension for shared libraries through AIX4.2 9536 # and later when we are not doing run time linking. 9537 library_names_spec='${libname}${release}.a $libname.a' 9538 soname_spec='${libname}${release}${shared_ext}$major' 9539 fi 9540 shlibpath_var=LIBPATH 9541 fi 9542 ;; 9543 9544amigaos*) 9545 case $host_cpu in 9546 powerpc) 9547 # Since July 2007 AmigaOS4 officially supports .so libraries. 9548 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9550 ;; 9551 m68k) 9552 library_names_spec='$libname.ixlibrary $libname.a' 9553 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9554 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' 9555 ;; 9556 esac 9557 ;; 9558 9559beos*) 9560 library_names_spec='${libname}${shared_ext}' 9561 dynamic_linker="$host_os ld.so" 9562 shlibpath_var=LIBRARY_PATH 9563 ;; 9564 9565bsdi[45]*) 9566 version_type=linux 9567 need_version=no 9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9569 soname_spec='${libname}${release}${shared_ext}$major' 9570 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9571 shlibpath_var=LD_LIBRARY_PATH 9572 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9573 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9574 # the default ld.so.conf also contains /usr/contrib/lib and 9575 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9576 # libtool to hard-code these into programs 9577 ;; 9578 9579cygwin* | mingw* | pw32* | cegcc*) 9580 version_type=windows 9581 shrext_cmds=".dll" 9582 need_version=no 9583 need_lib_prefix=no 9584 9585 case $GCC,$host_os in 9586 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9587 library_names_spec='$libname.dll.a' 9588 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9589 postinstall_cmds='base_file=`basename \${file}`~ 9590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9591 dldir=$destdir/`dirname \$dlpath`~ 9592 test -d \$dldir || mkdir -p \$dldir~ 9593 $install_prog $dir/$dlname \$dldir/$dlname~ 9594 chmod a+x \$dldir/$dlname~ 9595 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9596 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9597 fi' 9598 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9599 dlpath=$dir/\$dldll~ 9600 $RM \$dlpath' 9601 shlibpath_overrides_runpath=yes 9602 9603 case $host_os in 9604 cygwin*) 9605 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9606 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9607 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9608 ;; 9609 mingw* | cegcc*) 9610 # MinGW DLLs use traditional 'lib' prefix 9611 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9612 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9613 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9614 # It is most probably a Windows format PATH printed by 9615 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9616 # path with ; separators, and with drive letters. We can handle the 9617 # drive letters (cygwin fileutils understands them), so leave them, 9618 # especially as we might pass files found there to a mingw objdump, 9619 # which wouldn't understand a cygwinified path. Ahh. 9620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9621 else 9622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9623 fi 9624 ;; 9625 pw32*) 9626 # pw32 DLLs use 'pw' prefix rather than 'lib' 9627 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9628 ;; 9629 esac 9630 ;; 9631 9632 *) 9633 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9634 ;; 9635 esac 9636 dynamic_linker='Win32 ld.exe' 9637 # FIXME: first we should search . and the directory the executable is in 9638 shlibpath_var=PATH 9639 ;; 9640 9641darwin* | rhapsody*) 9642 dynamic_linker="$host_os dyld" 9643 version_type=darwin 9644 need_lib_prefix=no 9645 need_version=no 9646 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9647 soname_spec='${libname}${release}${major}$shared_ext' 9648 shlibpath_overrides_runpath=yes 9649 shlibpath_var=DYLD_LIBRARY_PATH 9650 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9651 9652 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9654 ;; 9655 9656dgux*) 9657 version_type=linux 9658 need_lib_prefix=no 9659 need_version=no 9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9661 soname_spec='${libname}${release}${shared_ext}$major' 9662 shlibpath_var=LD_LIBRARY_PATH 9663 ;; 9664 9665freebsd1*) 9666 dynamic_linker=no 9667 ;; 9668 9669freebsd* | dragonfly*) 9670 # DragonFly does not have aout. When/if they implement a new 9671 # versioning mechanism, adjust this. 9672 if test -x /usr/bin/objformat; then 9673 objformat=`/usr/bin/objformat` 9674 else 9675 case $host_os in 9676 freebsd[123]*) objformat=aout ;; 9677 *) objformat=elf ;; 9678 esac 9679 fi 9680 version_type=freebsd-$objformat 9681 case $version_type in 9682 freebsd-elf*) 9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9684 need_version=no 9685 need_lib_prefix=no 9686 ;; 9687 freebsd-*) 9688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9689 need_version=yes 9690 ;; 9691 esac 9692 shlibpath_var=LD_LIBRARY_PATH 9693 case $host_os in 9694 freebsd2*) 9695 shlibpath_overrides_runpath=yes 9696 ;; 9697 freebsd3.[01]* | freebsdelf3.[01]*) 9698 shlibpath_overrides_runpath=yes 9699 hardcode_into_libs=yes 9700 ;; 9701 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9702 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9703 shlibpath_overrides_runpath=no 9704 hardcode_into_libs=yes 9705 ;; 9706 *) # from 4.6 on, and DragonFly 9707 shlibpath_overrides_runpath=yes 9708 hardcode_into_libs=yes 9709 ;; 9710 esac 9711 ;; 9712 9713gnu*) 9714 version_type=linux 9715 need_lib_prefix=no 9716 need_version=no 9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9718 soname_spec='${libname}${release}${shared_ext}$major' 9719 shlibpath_var=LD_LIBRARY_PATH 9720 hardcode_into_libs=yes 9721 ;; 9722 9723hpux9* | hpux10* | hpux11*) 9724 # Give a soname corresponding to the major version so that dld.sl refuses to 9725 # link against other versions. 9726 version_type=sunos 9727 need_lib_prefix=no 9728 need_version=no 9729 case $host_cpu in 9730 ia64*) 9731 shrext_cmds='.so' 9732 hardcode_into_libs=yes 9733 dynamic_linker="$host_os dld.so" 9734 shlibpath_var=LD_LIBRARY_PATH 9735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9737 soname_spec='${libname}${release}${shared_ext}$major' 9738 if test "X$HPUX_IA64_MODE" = X32; then 9739 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9740 else 9741 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9742 fi 9743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9744 ;; 9745 hppa*64*) 9746 shrext_cmds='.sl' 9747 hardcode_into_libs=yes 9748 dynamic_linker="$host_os dld.sl" 9749 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9752 soname_spec='${libname}${release}${shared_ext}$major' 9753 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9755 ;; 9756 *) 9757 shrext_cmds='.sl' 9758 dynamic_linker="$host_os dld.sl" 9759 shlibpath_var=SHLIB_PATH 9760 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9762 soname_spec='${libname}${release}${shared_ext}$major' 9763 ;; 9764 esac 9765 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9766 postinstall_cmds='chmod 555 $lib' 9767 ;; 9768 9769interix[3-9]*) 9770 version_type=linux 9771 need_lib_prefix=no 9772 need_version=no 9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9774 soname_spec='${libname}${release}${shared_ext}$major' 9775 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9776 shlibpath_var=LD_LIBRARY_PATH 9777 shlibpath_overrides_runpath=no 9778 hardcode_into_libs=yes 9779 ;; 9780 9781irix5* | irix6* | nonstopux*) 9782 case $host_os in 9783 nonstopux*) version_type=nonstopux ;; 9784 *) 9785 if test "$lt_cv_prog_gnu_ld" = yes; then 9786 version_type=linux 9787 else 9788 version_type=irix 9789 fi ;; 9790 esac 9791 need_lib_prefix=no 9792 need_version=no 9793 soname_spec='${libname}${release}${shared_ext}$major' 9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9795 case $host_os in 9796 irix5* | nonstopux*) 9797 libsuff= shlibsuff= 9798 ;; 9799 *) 9800 case $LD in # libtool.m4 will add one of these switches to LD 9801 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9802 libsuff= shlibsuff= libmagic=32-bit;; 9803 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9804 libsuff=32 shlibsuff=N32 libmagic=N32;; 9805 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9806 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9807 *) libsuff= shlibsuff= libmagic=never-match;; 9808 esac 9809 ;; 9810 esac 9811 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9812 shlibpath_overrides_runpath=no 9813 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9814 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9815 hardcode_into_libs=yes 9816 ;; 9817 9818# No shared lib support for Linux oldld, aout, or coff. 9819linux*oldld* | linux*aout* | linux*coff*) 9820 dynamic_linker=no 9821 ;; 9822 9823# This must be Linux ELF. 9824linux* | k*bsd*-gnu) 9825 version_type=linux 9826 need_lib_prefix=no 9827 need_version=no 9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9829 soname_spec='${libname}${release}${shared_ext}$major' 9830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9831 shlibpath_var=LD_LIBRARY_PATH 9832 shlibpath_overrides_runpath=no 9833 # Some binutils ld are patched to set DT_RUNPATH 9834 save_LDFLAGS=$LDFLAGS 9835 save_libdir=$libdir 9836 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9837 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9838 cat >conftest.$ac_ext <<_ACEOF 9839/* confdefs.h. */ 9840_ACEOF 9841cat confdefs.h >>conftest.$ac_ext 9842cat >>conftest.$ac_ext <<_ACEOF 9843/* end confdefs.h. */ 9844 9845int 9846main () 9847{ 9848 9849 ; 9850 return 0; 9851} 9852_ACEOF 9853rm -f conftest.$ac_objext conftest$ac_exeext 9854if { (ac_try="$ac_link" 9855case "(($ac_try" in 9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9857 *) ac_try_echo=$ac_try;; 9858esac 9859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9860$as_echo "$ac_try_echo") >&5 9861 (eval "$ac_link") 2>conftest.er1 9862 ac_status=$? 9863 grep -v '^ *+' conftest.er1 >conftest.err 9864 rm -f conftest.er1 9865 cat conftest.err >&5 9866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9867 (exit $ac_status); } && { 9868 test -z "$ac_c_werror_flag" || 9869 test ! -s conftest.err 9870 } && test -s conftest$ac_exeext && { 9871 test "$cross_compiling" = yes || 9872 $as_test_x conftest$ac_exeext 9873 }; then 9874 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9875 shlibpath_overrides_runpath=yes 9876fi 9877 9878else 9879 $as_echo "$as_me: failed program was:" >&5 9880sed 's/^/| /' conftest.$ac_ext >&5 9881 9882 9883fi 9884 9885rm -rf conftest.dSYM 9886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9887 conftest$ac_exeext conftest.$ac_ext 9888 LDFLAGS=$save_LDFLAGS 9889 libdir=$save_libdir 9890 9891 # This implies no fast_install, which is unacceptable. 9892 # Some rework will be needed to allow for fast_install 9893 # before this can be enabled. 9894 hardcode_into_libs=yes 9895 9896 # Add ABI-specific directories to the system library path. 9897 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9898 9899 # Append ld.so.conf contents to the search path 9900 if test -f /etc/ld.so.conf; then 9901 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' ' '` 9902 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9903 fi 9904 9905 # We used to test for /lib/ld.so.1 and disable shared libraries on 9906 # powerpc, because MkLinux only supported shared libraries with the 9907 # GNU dynamic linker. Since this was broken with cross compilers, 9908 # most powerpc-linux boxes support dynamic linking these days and 9909 # people can always --disable-shared, the test was removed, and we 9910 # assume the GNU/Linux dynamic linker is in use. 9911 dynamic_linker='GNU/Linux ld.so' 9912 ;; 9913 9914netbsd*) 9915 version_type=sunos 9916 need_lib_prefix=no 9917 need_version=no 9918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9921 dynamic_linker='NetBSD (a.out) ld.so' 9922 else 9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9924 soname_spec='${libname}${release}${shared_ext}$major' 9925 dynamic_linker='NetBSD ld.elf_so' 9926 fi 9927 shlibpath_var=LD_LIBRARY_PATH 9928 shlibpath_overrides_runpath=yes 9929 hardcode_into_libs=yes 9930 ;; 9931 9932newsos6) 9933 version_type=linux 9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9935 shlibpath_var=LD_LIBRARY_PATH 9936 shlibpath_overrides_runpath=yes 9937 ;; 9938 9939*nto* | *qnx*) 9940 version_type=qnx 9941 need_lib_prefix=no 9942 need_version=no 9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9944 soname_spec='${libname}${release}${shared_ext}$major' 9945 shlibpath_var=LD_LIBRARY_PATH 9946 shlibpath_overrides_runpath=no 9947 hardcode_into_libs=yes 9948 dynamic_linker='ldqnx.so' 9949 ;; 9950 9951openbsd*) 9952 version_type=sunos 9953 sys_lib_dlsearch_path_spec="/usr/lib" 9954 need_lib_prefix=no 9955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9956 case $host_os in 9957 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9958 *) need_version=no ;; 9959 esac 9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9962 shlibpath_var=LD_LIBRARY_PATH 9963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9964 case $host_os in 9965 openbsd2.[89] | openbsd2.[89].*) 9966 shlibpath_overrides_runpath=no 9967 ;; 9968 *) 9969 shlibpath_overrides_runpath=yes 9970 ;; 9971 esac 9972 else 9973 shlibpath_overrides_runpath=yes 9974 fi 9975 ;; 9976 9977os2*) 9978 libname_spec='$name' 9979 shrext_cmds=".dll" 9980 need_lib_prefix=no 9981 library_names_spec='$libname${shared_ext} $libname.a' 9982 dynamic_linker='OS/2 ld.exe' 9983 shlibpath_var=LIBPATH 9984 ;; 9985 9986osf3* | osf4* | osf5*) 9987 version_type=osf 9988 need_lib_prefix=no 9989 need_version=no 9990 soname_spec='${libname}${release}${shared_ext}$major' 9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9992 shlibpath_var=LD_LIBRARY_PATH 9993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9995 ;; 9996 9997rdos*) 9998 dynamic_linker=no 9999 ;; 10000 10001solaris*) 10002 version_type=linux 10003 need_lib_prefix=no 10004 need_version=no 10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10006 soname_spec='${libname}${release}${shared_ext}$major' 10007 shlibpath_var=LD_LIBRARY_PATH 10008 shlibpath_overrides_runpath=yes 10009 hardcode_into_libs=yes 10010 # ldd complains unless libraries are executable 10011 postinstall_cmds='chmod +x $lib' 10012 ;; 10013 10014sunos4*) 10015 version_type=sunos 10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10018 shlibpath_var=LD_LIBRARY_PATH 10019 shlibpath_overrides_runpath=yes 10020 if test "$with_gnu_ld" = yes; then 10021 need_lib_prefix=no 10022 fi 10023 need_version=yes 10024 ;; 10025 10026sysv4 | sysv4.3*) 10027 version_type=linux 10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10029 soname_spec='${libname}${release}${shared_ext}$major' 10030 shlibpath_var=LD_LIBRARY_PATH 10031 case $host_vendor in 10032 sni) 10033 shlibpath_overrides_runpath=no 10034 need_lib_prefix=no 10035 runpath_var=LD_RUN_PATH 10036 ;; 10037 siemens) 10038 need_lib_prefix=no 10039 ;; 10040 motorola) 10041 need_lib_prefix=no 10042 need_version=no 10043 shlibpath_overrides_runpath=no 10044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10045 ;; 10046 esac 10047 ;; 10048 10049sysv4*MP*) 10050 if test -d /usr/nec ;then 10051 version_type=linux 10052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10053 soname_spec='$libname${shared_ext}.$major' 10054 shlibpath_var=LD_LIBRARY_PATH 10055 fi 10056 ;; 10057 10058sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10059 version_type=freebsd-elf 10060 need_lib_prefix=no 10061 need_version=no 10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10063 soname_spec='${libname}${release}${shared_ext}$major' 10064 shlibpath_var=LD_LIBRARY_PATH 10065 shlibpath_overrides_runpath=yes 10066 hardcode_into_libs=yes 10067 if test "$with_gnu_ld" = yes; then 10068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10069 else 10070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10071 case $host_os in 10072 sco3.2v5*) 10073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10074 ;; 10075 esac 10076 fi 10077 sys_lib_dlsearch_path_spec='/usr/lib' 10078 ;; 10079 10080tpf*) 10081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10082 version_type=linux 10083 need_lib_prefix=no 10084 need_version=no 10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10086 shlibpath_var=LD_LIBRARY_PATH 10087 shlibpath_overrides_runpath=no 10088 hardcode_into_libs=yes 10089 ;; 10090 10091uts4*) 10092 version_type=linux 10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10094 soname_spec='${libname}${release}${shared_ext}$major' 10095 shlibpath_var=LD_LIBRARY_PATH 10096 ;; 10097 10098*) 10099 dynamic_linker=no 10100 ;; 10101esac 10102{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10103$as_echo "$dynamic_linker" >&6; } 10104test "$dynamic_linker" = no && can_build_shared=no 10105 10106variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10107if test "$GCC" = yes; then 10108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10109fi 10110 10111if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10112 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10113fi 10114if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10115 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10116fi 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 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10205$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10206hardcode_action= 10207if test -n "$hardcode_libdir_flag_spec" || 10208 test -n "$runpath_var" || 10209 test "X$hardcode_automatic" = "Xyes" ; then 10210 10211 # We can hardcode non-existent directories. 10212 if test "$hardcode_direct" != no && 10213 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10214 # have to relink, otherwise we might link with an installed library 10215 # when we should be linking with a yet-to-be-installed one 10216 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10217 test "$hardcode_minus_L" != no; then 10218 # Linking always hardcodes the temporary library directory. 10219 hardcode_action=relink 10220 else 10221 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10222 hardcode_action=immediate 10223 fi 10224else 10225 # We cannot hardcode anything, or else we can only hardcode existing 10226 # directories. 10227 hardcode_action=unsupported 10228fi 10229{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10230$as_echo "$hardcode_action" >&6; } 10231 10232if test "$hardcode_action" = relink || 10233 test "$inherit_rpath" = yes; then 10234 # Fast installation is not supported 10235 enable_fast_install=no 10236elif test "$shlibpath_overrides_runpath" = yes || 10237 test "$enable_shared" = no; then 10238 # Fast installation is not necessary 10239 enable_fast_install=needless 10240fi 10241 10242 10243 10244 10245 10246 10247 if test "x$enable_dlopen" != xyes; then 10248 enable_dlopen=unknown 10249 enable_dlopen_self=unknown 10250 enable_dlopen_self_static=unknown 10251else 10252 lt_cv_dlopen=no 10253 lt_cv_dlopen_libs= 10254 10255 case $host_os in 10256 beos*) 10257 lt_cv_dlopen="load_add_on" 10258 lt_cv_dlopen_libs= 10259 lt_cv_dlopen_self=yes 10260 ;; 10261 10262 mingw* | pw32* | cegcc*) 10263 lt_cv_dlopen="LoadLibrary" 10264 lt_cv_dlopen_libs= 10265 ;; 10266 10267 cygwin*) 10268 lt_cv_dlopen="dlopen" 10269 lt_cv_dlopen_libs= 10270 ;; 10271 10272 darwin*) 10273 # if libdl is installed we need to link against it 10274 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10275$as_echo_n "checking for dlopen in -ldl... " >&6; } 10276if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10277 $as_echo_n "(cached) " >&6 10278else 10279 ac_check_lib_save_LIBS=$LIBS 10280LIBS="-ldl $LIBS" 10281cat >conftest.$ac_ext <<_ACEOF 10282/* confdefs.h. */ 10283_ACEOF 10284cat confdefs.h >>conftest.$ac_ext 10285cat >>conftest.$ac_ext <<_ACEOF 10286/* end confdefs.h. */ 10287 10288/* Override any GCC internal prototype to avoid an error. 10289 Use char because int might match the return type of a GCC 10290 builtin and then its argument prototype would still apply. */ 10291#ifdef __cplusplus 10292extern "C" 10293#endif 10294char dlopen (); 10295int 10296main () 10297{ 10298return dlopen (); 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303rm -f conftest.$ac_objext conftest$ac_exeext 10304if { (ac_try="$ac_link" 10305case "(($ac_try" in 10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10307 *) ac_try_echo=$ac_try;; 10308esac 10309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10310$as_echo "$ac_try_echo") >&5 10311 (eval "$ac_link") 2>conftest.er1 10312 ac_status=$? 10313 grep -v '^ *+' conftest.er1 >conftest.err 10314 rm -f conftest.er1 10315 cat conftest.err >&5 10316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10317 (exit $ac_status); } && { 10318 test -z "$ac_c_werror_flag" || 10319 test ! -s conftest.err 10320 } && test -s conftest$ac_exeext && { 10321 test "$cross_compiling" = yes || 10322 $as_test_x conftest$ac_exeext 10323 }; then 10324 ac_cv_lib_dl_dlopen=yes 10325else 10326 $as_echo "$as_me: failed program was:" >&5 10327sed 's/^/| /' conftest.$ac_ext >&5 10328 10329 ac_cv_lib_dl_dlopen=no 10330fi 10331 10332rm -rf conftest.dSYM 10333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10334 conftest$ac_exeext conftest.$ac_ext 10335LIBS=$ac_check_lib_save_LIBS 10336fi 10337{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10338$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10339if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10341else 10342 10343 lt_cv_dlopen="dyld" 10344 lt_cv_dlopen_libs= 10345 lt_cv_dlopen_self=yes 10346 10347fi 10348 10349 ;; 10350 10351 *) 10352 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10353$as_echo_n "checking for shl_load... " >&6; } 10354if test "${ac_cv_func_shl_load+set}" = set; then 10355 $as_echo_n "(cached) " >&6 10356else 10357 cat >conftest.$ac_ext <<_ACEOF 10358/* confdefs.h. */ 10359_ACEOF 10360cat confdefs.h >>conftest.$ac_ext 10361cat >>conftest.$ac_ext <<_ACEOF 10362/* end confdefs.h. */ 10363/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10364 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10365#define shl_load innocuous_shl_load 10366 10367/* System header to define __stub macros and hopefully few prototypes, 10368 which can conflict with char shl_load (); below. 10369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10370 <limits.h> exists even on freestanding compilers. */ 10371 10372#ifdef __STDC__ 10373# include <limits.h> 10374#else 10375# include <assert.h> 10376#endif 10377 10378#undef shl_load 10379 10380/* Override any GCC internal prototype to avoid an error. 10381 Use char because int might match the return type of a GCC 10382 builtin and then its argument prototype would still apply. */ 10383#ifdef __cplusplus 10384extern "C" 10385#endif 10386char shl_load (); 10387/* The GNU C library defines this for functions which it implements 10388 to always fail with ENOSYS. Some functions are actually named 10389 something starting with __ and the normal name is an alias. */ 10390#if defined __stub_shl_load || defined __stub___shl_load 10391choke me 10392#endif 10393 10394int 10395main () 10396{ 10397return shl_load (); 10398 ; 10399 return 0; 10400} 10401_ACEOF 10402rm -f conftest.$ac_objext conftest$ac_exeext 10403if { (ac_try="$ac_link" 10404case "(($ac_try" in 10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10406 *) ac_try_echo=$ac_try;; 10407esac 10408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10409$as_echo "$ac_try_echo") >&5 10410 (eval "$ac_link") 2>conftest.er1 10411 ac_status=$? 10412 grep -v '^ *+' conftest.er1 >conftest.err 10413 rm -f conftest.er1 10414 cat conftest.err >&5 10415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10416 (exit $ac_status); } && { 10417 test -z "$ac_c_werror_flag" || 10418 test ! -s conftest.err 10419 } && test -s conftest$ac_exeext && { 10420 test "$cross_compiling" = yes || 10421 $as_test_x conftest$ac_exeext 10422 }; then 10423 ac_cv_func_shl_load=yes 10424else 10425 $as_echo "$as_me: failed program was:" >&5 10426sed 's/^/| /' conftest.$ac_ext >&5 10427 10428 ac_cv_func_shl_load=no 10429fi 10430 10431rm -rf conftest.dSYM 10432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10433 conftest$ac_exeext conftest.$ac_ext 10434fi 10435{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10436$as_echo "$ac_cv_func_shl_load" >&6; } 10437if test "x$ac_cv_func_shl_load" = x""yes; then 10438 lt_cv_dlopen="shl_load" 10439else 10440 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10441$as_echo_n "checking for shl_load in -ldld... " >&6; } 10442if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10443 $as_echo_n "(cached) " >&6 10444else 10445 ac_check_lib_save_LIBS=$LIBS 10446LIBS="-ldld $LIBS" 10447cat >conftest.$ac_ext <<_ACEOF 10448/* confdefs.h. */ 10449_ACEOF 10450cat confdefs.h >>conftest.$ac_ext 10451cat >>conftest.$ac_ext <<_ACEOF 10452/* end confdefs.h. */ 10453 10454/* Override any GCC internal prototype to avoid an error. 10455 Use char because int might match the return type of a GCC 10456 builtin and then its argument prototype would still apply. */ 10457#ifdef __cplusplus 10458extern "C" 10459#endif 10460char shl_load (); 10461int 10462main () 10463{ 10464return shl_load (); 10465 ; 10466 return 0; 10467} 10468_ACEOF 10469rm -f conftest.$ac_objext conftest$ac_exeext 10470if { (ac_try="$ac_link" 10471case "(($ac_try" in 10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10473 *) ac_try_echo=$ac_try;; 10474esac 10475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10476$as_echo "$ac_try_echo") >&5 10477 (eval "$ac_link") 2>conftest.er1 10478 ac_status=$? 10479 grep -v '^ *+' conftest.er1 >conftest.err 10480 rm -f conftest.er1 10481 cat conftest.err >&5 10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10483 (exit $ac_status); } && { 10484 test -z "$ac_c_werror_flag" || 10485 test ! -s conftest.err 10486 } && test -s conftest$ac_exeext && { 10487 test "$cross_compiling" = yes || 10488 $as_test_x conftest$ac_exeext 10489 }; then 10490 ac_cv_lib_dld_shl_load=yes 10491else 10492 $as_echo "$as_me: failed program was:" >&5 10493sed 's/^/| /' conftest.$ac_ext >&5 10494 10495 ac_cv_lib_dld_shl_load=no 10496fi 10497 10498rm -rf conftest.dSYM 10499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10500 conftest$ac_exeext conftest.$ac_ext 10501LIBS=$ac_check_lib_save_LIBS 10502fi 10503{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10504$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10505if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10506 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10507else 10508 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10509$as_echo_n "checking for dlopen... " >&6; } 10510if test "${ac_cv_func_dlopen+set}" = set; then 10511 $as_echo_n "(cached) " >&6 10512else 10513 cat >conftest.$ac_ext <<_ACEOF 10514/* confdefs.h. */ 10515_ACEOF 10516cat confdefs.h >>conftest.$ac_ext 10517cat >>conftest.$ac_ext <<_ACEOF 10518/* end confdefs.h. */ 10519/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10520 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10521#define dlopen innocuous_dlopen 10522 10523/* System header to define __stub macros and hopefully few prototypes, 10524 which can conflict with char dlopen (); below. 10525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10526 <limits.h> exists even on freestanding compilers. */ 10527 10528#ifdef __STDC__ 10529# include <limits.h> 10530#else 10531# include <assert.h> 10532#endif 10533 10534#undef dlopen 10535 10536/* Override any GCC internal prototype to avoid an error. 10537 Use char because int might match the return type of a GCC 10538 builtin and then its argument prototype would still apply. */ 10539#ifdef __cplusplus 10540extern "C" 10541#endif 10542char dlopen (); 10543/* The GNU C library defines this for functions which it implements 10544 to always fail with ENOSYS. Some functions are actually named 10545 something starting with __ and the normal name is an alias. */ 10546#if defined __stub_dlopen || defined __stub___dlopen 10547choke me 10548#endif 10549 10550int 10551main () 10552{ 10553return dlopen (); 10554 ; 10555 return 0; 10556} 10557_ACEOF 10558rm -f conftest.$ac_objext conftest$ac_exeext 10559if { (ac_try="$ac_link" 10560case "(($ac_try" in 10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10562 *) ac_try_echo=$ac_try;; 10563esac 10564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10565$as_echo "$ac_try_echo") >&5 10566 (eval "$ac_link") 2>conftest.er1 10567 ac_status=$? 10568 grep -v '^ *+' conftest.er1 >conftest.err 10569 rm -f conftest.er1 10570 cat conftest.err >&5 10571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10572 (exit $ac_status); } && { 10573 test -z "$ac_c_werror_flag" || 10574 test ! -s conftest.err 10575 } && test -s conftest$ac_exeext && { 10576 test "$cross_compiling" = yes || 10577 $as_test_x conftest$ac_exeext 10578 }; then 10579 ac_cv_func_dlopen=yes 10580else 10581 $as_echo "$as_me: failed program was:" >&5 10582sed 's/^/| /' conftest.$ac_ext >&5 10583 10584 ac_cv_func_dlopen=no 10585fi 10586 10587rm -rf conftest.dSYM 10588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10589 conftest$ac_exeext conftest.$ac_ext 10590fi 10591{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10592$as_echo "$ac_cv_func_dlopen" >&6; } 10593if test "x$ac_cv_func_dlopen" = x""yes; then 10594 lt_cv_dlopen="dlopen" 10595else 10596 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10597$as_echo_n "checking for dlopen in -ldl... " >&6; } 10598if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10599 $as_echo_n "(cached) " >&6 10600else 10601 ac_check_lib_save_LIBS=$LIBS 10602LIBS="-ldl $LIBS" 10603cat >conftest.$ac_ext <<_ACEOF 10604/* confdefs.h. */ 10605_ACEOF 10606cat confdefs.h >>conftest.$ac_ext 10607cat >>conftest.$ac_ext <<_ACEOF 10608/* end confdefs.h. */ 10609 10610/* Override any GCC internal prototype to avoid an error. 10611 Use char because int might match the return type of a GCC 10612 builtin and then its argument prototype would still apply. */ 10613#ifdef __cplusplus 10614extern "C" 10615#endif 10616char dlopen (); 10617int 10618main () 10619{ 10620return dlopen (); 10621 ; 10622 return 0; 10623} 10624_ACEOF 10625rm -f conftest.$ac_objext conftest$ac_exeext 10626if { (ac_try="$ac_link" 10627case "(($ac_try" in 10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10629 *) ac_try_echo=$ac_try;; 10630esac 10631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10632$as_echo "$ac_try_echo") >&5 10633 (eval "$ac_link") 2>conftest.er1 10634 ac_status=$? 10635 grep -v '^ *+' conftest.er1 >conftest.err 10636 rm -f conftest.er1 10637 cat conftest.err >&5 10638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10639 (exit $ac_status); } && { 10640 test -z "$ac_c_werror_flag" || 10641 test ! -s conftest.err 10642 } && test -s conftest$ac_exeext && { 10643 test "$cross_compiling" = yes || 10644 $as_test_x conftest$ac_exeext 10645 }; then 10646 ac_cv_lib_dl_dlopen=yes 10647else 10648 $as_echo "$as_me: failed program was:" >&5 10649sed 's/^/| /' conftest.$ac_ext >&5 10650 10651 ac_cv_lib_dl_dlopen=no 10652fi 10653 10654rm -rf conftest.dSYM 10655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10656 conftest$ac_exeext conftest.$ac_ext 10657LIBS=$ac_check_lib_save_LIBS 10658fi 10659{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10660$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10661if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10663else 10664 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10665$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10666if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10667 $as_echo_n "(cached) " >&6 10668else 10669 ac_check_lib_save_LIBS=$LIBS 10670LIBS="-lsvld $LIBS" 10671cat >conftest.$ac_ext <<_ACEOF 10672/* confdefs.h. */ 10673_ACEOF 10674cat confdefs.h >>conftest.$ac_ext 10675cat >>conftest.$ac_ext <<_ACEOF 10676/* end confdefs.h. */ 10677 10678/* Override any GCC internal prototype to avoid an error. 10679 Use char because int might match the return type of a GCC 10680 builtin and then its argument prototype would still apply. */ 10681#ifdef __cplusplus 10682extern "C" 10683#endif 10684char dlopen (); 10685int 10686main () 10687{ 10688return dlopen (); 10689 ; 10690 return 0; 10691} 10692_ACEOF 10693rm -f conftest.$ac_objext conftest$ac_exeext 10694if { (ac_try="$ac_link" 10695case "(($ac_try" in 10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10697 *) ac_try_echo=$ac_try;; 10698esac 10699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10700$as_echo "$ac_try_echo") >&5 10701 (eval "$ac_link") 2>conftest.er1 10702 ac_status=$? 10703 grep -v '^ *+' conftest.er1 >conftest.err 10704 rm -f conftest.er1 10705 cat conftest.err >&5 10706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10707 (exit $ac_status); } && { 10708 test -z "$ac_c_werror_flag" || 10709 test ! -s conftest.err 10710 } && test -s conftest$ac_exeext && { 10711 test "$cross_compiling" = yes || 10712 $as_test_x conftest$ac_exeext 10713 }; then 10714 ac_cv_lib_svld_dlopen=yes 10715else 10716 $as_echo "$as_me: failed program was:" >&5 10717sed 's/^/| /' conftest.$ac_ext >&5 10718 10719 ac_cv_lib_svld_dlopen=no 10720fi 10721 10722rm -rf conftest.dSYM 10723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10724 conftest$ac_exeext conftest.$ac_ext 10725LIBS=$ac_check_lib_save_LIBS 10726fi 10727{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10728$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10729if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10731else 10732 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10733$as_echo_n "checking for dld_link in -ldld... " >&6; } 10734if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10735 $as_echo_n "(cached) " >&6 10736else 10737 ac_check_lib_save_LIBS=$LIBS 10738LIBS="-ldld $LIBS" 10739cat >conftest.$ac_ext <<_ACEOF 10740/* confdefs.h. */ 10741_ACEOF 10742cat confdefs.h >>conftest.$ac_ext 10743cat >>conftest.$ac_ext <<_ACEOF 10744/* end confdefs.h. */ 10745 10746/* Override any GCC internal prototype to avoid an error. 10747 Use char because int might match the return type of a GCC 10748 builtin and then its argument prototype would still apply. */ 10749#ifdef __cplusplus 10750extern "C" 10751#endif 10752char dld_link (); 10753int 10754main () 10755{ 10756return dld_link (); 10757 ; 10758 return 0; 10759} 10760_ACEOF 10761rm -f conftest.$ac_objext conftest$ac_exeext 10762if { (ac_try="$ac_link" 10763case "(($ac_try" in 10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10765 *) ac_try_echo=$ac_try;; 10766esac 10767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10768$as_echo "$ac_try_echo") >&5 10769 (eval "$ac_link") 2>conftest.er1 10770 ac_status=$? 10771 grep -v '^ *+' conftest.er1 >conftest.err 10772 rm -f conftest.er1 10773 cat conftest.err >&5 10774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10775 (exit $ac_status); } && { 10776 test -z "$ac_c_werror_flag" || 10777 test ! -s conftest.err 10778 } && test -s conftest$ac_exeext && { 10779 test "$cross_compiling" = yes || 10780 $as_test_x conftest$ac_exeext 10781 }; then 10782 ac_cv_lib_dld_dld_link=yes 10783else 10784 $as_echo "$as_me: failed program was:" >&5 10785sed 's/^/| /' conftest.$ac_ext >&5 10786 10787 ac_cv_lib_dld_dld_link=no 10788fi 10789 10790rm -rf conftest.dSYM 10791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10792 conftest$ac_exeext conftest.$ac_ext 10793LIBS=$ac_check_lib_save_LIBS 10794fi 10795{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10796$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10797if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10798 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10799fi 10800 10801 10802fi 10803 10804 10805fi 10806 10807 10808fi 10809 10810 10811fi 10812 10813 10814fi 10815 10816 ;; 10817 esac 10818 10819 if test "x$lt_cv_dlopen" != xno; then 10820 enable_dlopen=yes 10821 else 10822 enable_dlopen=no 10823 fi 10824 10825 case $lt_cv_dlopen in 10826 dlopen) 10827 save_CPPFLAGS="$CPPFLAGS" 10828 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10829 10830 save_LDFLAGS="$LDFLAGS" 10831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10832 10833 save_LIBS="$LIBS" 10834 LIBS="$lt_cv_dlopen_libs $LIBS" 10835 10836 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10837$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10838if test "${lt_cv_dlopen_self+set}" = set; then 10839 $as_echo_n "(cached) " >&6 10840else 10841 if test "$cross_compiling" = yes; then : 10842 lt_cv_dlopen_self=cross 10843else 10844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10845 lt_status=$lt_dlunknown 10846 cat > conftest.$ac_ext <<_LT_EOF 10847#line 10847 "configure" 10848#include "confdefs.h" 10849 10850#if HAVE_DLFCN_H 10851#include <dlfcn.h> 10852#endif 10853 10854#include <stdio.h> 10855 10856#ifdef RTLD_GLOBAL 10857# define LT_DLGLOBAL RTLD_GLOBAL 10858#else 10859# ifdef DL_GLOBAL 10860# define LT_DLGLOBAL DL_GLOBAL 10861# else 10862# define LT_DLGLOBAL 0 10863# endif 10864#endif 10865 10866/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10867 find out it does not work in some platform. */ 10868#ifndef LT_DLLAZY_OR_NOW 10869# ifdef RTLD_LAZY 10870# define LT_DLLAZY_OR_NOW RTLD_LAZY 10871# else 10872# ifdef DL_LAZY 10873# define LT_DLLAZY_OR_NOW DL_LAZY 10874# else 10875# ifdef RTLD_NOW 10876# define LT_DLLAZY_OR_NOW RTLD_NOW 10877# else 10878# ifdef DL_NOW 10879# define LT_DLLAZY_OR_NOW DL_NOW 10880# else 10881# define LT_DLLAZY_OR_NOW 0 10882# endif 10883# endif 10884# endif 10885# endif 10886#endif 10887 10888void fnord() { int i=42;} 10889int main () 10890{ 10891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10892 int status = $lt_dlunknown; 10893 10894 if (self) 10895 { 10896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10897 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10898 /* dlclose (self); */ 10899 } 10900 else 10901 puts (dlerror ()); 10902 10903 return status; 10904} 10905_LT_EOF 10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10907 (eval $ac_link) 2>&5 10908 ac_status=$? 10909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10910 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10911 (./conftest; exit; ) >&5 2>/dev/null 10912 lt_status=$? 10913 case x$lt_status in 10914 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10915 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10916 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10917 esac 10918 else : 10919 # compilation failed 10920 lt_cv_dlopen_self=no 10921 fi 10922fi 10923rm -fr conftest* 10924 10925 10926fi 10927{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10928$as_echo "$lt_cv_dlopen_self" >&6; } 10929 10930 if test "x$lt_cv_dlopen_self" = xyes; then 10931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10932 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10933$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10934if test "${lt_cv_dlopen_self_static+set}" = set; then 10935 $as_echo_n "(cached) " >&6 10936else 10937 if test "$cross_compiling" = yes; then : 10938 lt_cv_dlopen_self_static=cross 10939else 10940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10941 lt_status=$lt_dlunknown 10942 cat > conftest.$ac_ext <<_LT_EOF 10943#line 10943 "configure" 10944#include "confdefs.h" 10945 10946#if HAVE_DLFCN_H 10947#include <dlfcn.h> 10948#endif 10949 10950#include <stdio.h> 10951 10952#ifdef RTLD_GLOBAL 10953# define LT_DLGLOBAL RTLD_GLOBAL 10954#else 10955# ifdef DL_GLOBAL 10956# define LT_DLGLOBAL DL_GLOBAL 10957# else 10958# define LT_DLGLOBAL 0 10959# endif 10960#endif 10961 10962/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10963 find out it does not work in some platform. */ 10964#ifndef LT_DLLAZY_OR_NOW 10965# ifdef RTLD_LAZY 10966# define LT_DLLAZY_OR_NOW RTLD_LAZY 10967# else 10968# ifdef DL_LAZY 10969# define LT_DLLAZY_OR_NOW DL_LAZY 10970# else 10971# ifdef RTLD_NOW 10972# define LT_DLLAZY_OR_NOW RTLD_NOW 10973# else 10974# ifdef DL_NOW 10975# define LT_DLLAZY_OR_NOW DL_NOW 10976# else 10977# define LT_DLLAZY_OR_NOW 0 10978# endif 10979# endif 10980# endif 10981# endif 10982#endif 10983 10984void fnord() { int i=42;} 10985int main () 10986{ 10987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10988 int status = $lt_dlunknown; 10989 10990 if (self) 10991 { 10992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10993 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10994 /* dlclose (self); */ 10995 } 10996 else 10997 puts (dlerror ()); 10998 10999 return status; 11000} 11001_LT_EOF 11002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11003 (eval $ac_link) 2>&5 11004 ac_status=$? 11005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11006 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11007 (./conftest; exit; ) >&5 2>/dev/null 11008 lt_status=$? 11009 case x$lt_status in 11010 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11011 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11012 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11013 esac 11014 else : 11015 # compilation failed 11016 lt_cv_dlopen_self_static=no 11017 fi 11018fi 11019rm -fr conftest* 11020 11021 11022fi 11023{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11024$as_echo "$lt_cv_dlopen_self_static" >&6; } 11025 fi 11026 11027 CPPFLAGS="$save_CPPFLAGS" 11028 LDFLAGS="$save_LDFLAGS" 11029 LIBS="$save_LIBS" 11030 ;; 11031 esac 11032 11033 case $lt_cv_dlopen_self in 11034 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11035 *) enable_dlopen_self=unknown ;; 11036 esac 11037 11038 case $lt_cv_dlopen_self_static in 11039 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11040 *) enable_dlopen_self_static=unknown ;; 11041 esac 11042fi 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060striplib= 11061old_striplib= 11062{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11063$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11064if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11065 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11066 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11067 { $as_echo "$as_me:$LINENO: result: yes" >&5 11068$as_echo "yes" >&6; } 11069else 11070# FIXME - insert some real tests, host_os isn't really good enough 11071 case $host_os in 11072 darwin*) 11073 if test -n "$STRIP" ; then 11074 striplib="$STRIP -x" 11075 old_striplib="$STRIP -S" 11076 { $as_echo "$as_me:$LINENO: result: yes" >&5 11077$as_echo "yes" >&6; } 11078 else 11079 { $as_echo "$as_me:$LINENO: result: no" >&5 11080$as_echo "no" >&6; } 11081 fi 11082 ;; 11083 *) 11084 { $as_echo "$as_me:$LINENO: result: no" >&5 11085$as_echo "no" >&6; } 11086 ;; 11087 esac 11088fi 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 # Report which library types will actually be built 11102 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11103$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11104 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11105$as_echo "$can_build_shared" >&6; } 11106 11107 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11108$as_echo_n "checking whether to build shared libraries... " >&6; } 11109 test "$can_build_shared" = "no" && enable_shared=no 11110 11111 # On AIX, shared libraries and static libraries use the same namespace, and 11112 # are all built from PIC. 11113 case $host_os in 11114 aix3*) 11115 test "$enable_shared" = yes && enable_static=no 11116 if test -n "$RANLIB"; then 11117 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11118 postinstall_cmds='$RANLIB $lib' 11119 fi 11120 ;; 11121 11122 aix[4-9]*) 11123 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11124 test "$enable_shared" = yes && enable_static=no 11125 fi 11126 ;; 11127 esac 11128 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11129$as_echo "$enable_shared" >&6; } 11130 11131 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11132$as_echo_n "checking whether to build static libraries... " >&6; } 11133 # Make sure either enable_shared or enable_static is yes. 11134 test "$enable_shared" = yes || enable_static=yes 11135 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11136$as_echo "$enable_static" >&6; } 11137 11138 11139 11140 11141fi 11142ac_ext=c 11143ac_cpp='$CPP $CPPFLAGS' 11144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11146ac_compiler_gnu=$ac_cv_c_compiler_gnu 11147 11148CC="$lt_save_CC" 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 ac_config_commands="$ac_config_commands libtool" 11163 11164 11165 11166 11167# Only expand once: 11168 11169 11170ac_ext=c 11171ac_cpp='$CPP $CPPFLAGS' 11172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11174ac_compiler_gnu=$ac_cv_c_compiler_gnu 11175if test -n "$ac_tool_prefix"; then 11176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11177set dummy ${ac_tool_prefix}gcc; ac_word=$2 11178{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11179$as_echo_n "checking for $ac_word... " >&6; } 11180if test "${ac_cv_prog_CC+set}" = set; then 11181 $as_echo_n "(cached) " >&6 11182else 11183 if test -n "$CC"; then 11184 ac_cv_prog_CC="$CC" # Let the user override the test. 11185else 11186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11187for as_dir in $PATH 11188do 11189 IFS=$as_save_IFS 11190 test -z "$as_dir" && as_dir=. 11191 for ac_exec_ext in '' $ac_executable_extensions; do 11192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11193 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11195 break 2 11196 fi 11197done 11198done 11199IFS=$as_save_IFS 11200 11201fi 11202fi 11203CC=$ac_cv_prog_CC 11204if test -n "$CC"; then 11205 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11206$as_echo "$CC" >&6; } 11207else 11208 { $as_echo "$as_me:$LINENO: result: no" >&5 11209$as_echo "no" >&6; } 11210fi 11211 11212 11213fi 11214if test -z "$ac_cv_prog_CC"; then 11215 ac_ct_CC=$CC 11216 # Extract the first word of "gcc", so it can be a program name with args. 11217set dummy gcc; ac_word=$2 11218{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11219$as_echo_n "checking for $ac_word... " >&6; } 11220if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11221 $as_echo_n "(cached) " >&6 11222else 11223 if test -n "$ac_ct_CC"; then 11224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11225else 11226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11227for as_dir in $PATH 11228do 11229 IFS=$as_save_IFS 11230 test -z "$as_dir" && as_dir=. 11231 for ac_exec_ext in '' $ac_executable_extensions; do 11232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11233 ac_cv_prog_ac_ct_CC="gcc" 11234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11235 break 2 11236 fi 11237done 11238done 11239IFS=$as_save_IFS 11240 11241fi 11242fi 11243ac_ct_CC=$ac_cv_prog_ac_ct_CC 11244if test -n "$ac_ct_CC"; then 11245 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11246$as_echo "$ac_ct_CC" >&6; } 11247else 11248 { $as_echo "$as_me:$LINENO: result: no" >&5 11249$as_echo "no" >&6; } 11250fi 11251 11252 if test "x$ac_ct_CC" = x; then 11253 CC="" 11254 else 11255 case $cross_compiling:$ac_tool_warned in 11256yes:) 11257{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11259ac_tool_warned=yes ;; 11260esac 11261 CC=$ac_ct_CC 11262 fi 11263else 11264 CC="$ac_cv_prog_CC" 11265fi 11266 11267if test -z "$CC"; then 11268 if test -n "$ac_tool_prefix"; then 11269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11270set dummy ${ac_tool_prefix}cc; ac_word=$2 11271{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11272$as_echo_n "checking for $ac_word... " >&6; } 11273if test "${ac_cv_prog_CC+set}" = set; then 11274 $as_echo_n "(cached) " >&6 11275else 11276 if test -n "$CC"; then 11277 ac_cv_prog_CC="$CC" # Let the user override the test. 11278else 11279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11280for as_dir in $PATH 11281do 11282 IFS=$as_save_IFS 11283 test -z "$as_dir" && as_dir=. 11284 for ac_exec_ext in '' $ac_executable_extensions; do 11285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11286 ac_cv_prog_CC="${ac_tool_prefix}cc" 11287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11288 break 2 11289 fi 11290done 11291done 11292IFS=$as_save_IFS 11293 11294fi 11295fi 11296CC=$ac_cv_prog_CC 11297if test -n "$CC"; then 11298 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11299$as_echo "$CC" >&6; } 11300else 11301 { $as_echo "$as_me:$LINENO: result: no" >&5 11302$as_echo "no" >&6; } 11303fi 11304 11305 11306 fi 11307fi 11308if test -z "$CC"; then 11309 # Extract the first word of "cc", so it can be a program name with args. 11310set dummy cc; ac_word=$2 11311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11312$as_echo_n "checking for $ac_word... " >&6; } 11313if test "${ac_cv_prog_CC+set}" = set; then 11314 $as_echo_n "(cached) " >&6 11315else 11316 if test -n "$CC"; then 11317 ac_cv_prog_CC="$CC" # Let the user override the test. 11318else 11319 ac_prog_rejected=no 11320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11321for as_dir in $PATH 11322do 11323 IFS=$as_save_IFS 11324 test -z "$as_dir" && as_dir=. 11325 for ac_exec_ext in '' $ac_executable_extensions; do 11326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11327 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11328 ac_prog_rejected=yes 11329 continue 11330 fi 11331 ac_cv_prog_CC="cc" 11332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11333 break 2 11334 fi 11335done 11336done 11337IFS=$as_save_IFS 11338 11339if test $ac_prog_rejected = yes; then 11340 # We found a bogon in the path, so make sure we never use it. 11341 set dummy $ac_cv_prog_CC 11342 shift 11343 if test $# != 0; then 11344 # We chose a different compiler from the bogus one. 11345 # However, it has the same basename, so the bogon will be chosen 11346 # first if we set CC to just the basename; use the full file name. 11347 shift 11348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11349 fi 11350fi 11351fi 11352fi 11353CC=$ac_cv_prog_CC 11354if test -n "$CC"; then 11355 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11356$as_echo "$CC" >&6; } 11357else 11358 { $as_echo "$as_me:$LINENO: result: no" >&5 11359$as_echo "no" >&6; } 11360fi 11361 11362 11363fi 11364if test -z "$CC"; then 11365 if test -n "$ac_tool_prefix"; then 11366 for ac_prog in cl.exe 11367 do 11368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11369set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11371$as_echo_n "checking for $ac_word... " >&6; } 11372if test "${ac_cv_prog_CC+set}" = set; then 11373 $as_echo_n "(cached) " >&6 11374else 11375 if test -n "$CC"; then 11376 ac_cv_prog_CC="$CC" # Let the user override the test. 11377else 11378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11379for as_dir in $PATH 11380do 11381 IFS=$as_save_IFS 11382 test -z "$as_dir" && as_dir=. 11383 for ac_exec_ext in '' $ac_executable_extensions; do 11384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11387 break 2 11388 fi 11389done 11390done 11391IFS=$as_save_IFS 11392 11393fi 11394fi 11395CC=$ac_cv_prog_CC 11396if test -n "$CC"; then 11397 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11398$as_echo "$CC" >&6; } 11399else 11400 { $as_echo "$as_me:$LINENO: result: no" >&5 11401$as_echo "no" >&6; } 11402fi 11403 11404 11405 test -n "$CC" && break 11406 done 11407fi 11408if test -z "$CC"; then 11409 ac_ct_CC=$CC 11410 for ac_prog in cl.exe 11411do 11412 # Extract the first word of "$ac_prog", so it can be a program name with args. 11413set dummy $ac_prog; ac_word=$2 11414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11415$as_echo_n "checking for $ac_word... " >&6; } 11416if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11417 $as_echo_n "(cached) " >&6 11418else 11419 if test -n "$ac_ct_CC"; then 11420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11421else 11422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11423for as_dir in $PATH 11424do 11425 IFS=$as_save_IFS 11426 test -z "$as_dir" && as_dir=. 11427 for ac_exec_ext in '' $ac_executable_extensions; do 11428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11429 ac_cv_prog_ac_ct_CC="$ac_prog" 11430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11431 break 2 11432 fi 11433done 11434done 11435IFS=$as_save_IFS 11436 11437fi 11438fi 11439ac_ct_CC=$ac_cv_prog_ac_ct_CC 11440if test -n "$ac_ct_CC"; then 11441 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11442$as_echo "$ac_ct_CC" >&6; } 11443else 11444 { $as_echo "$as_me:$LINENO: result: no" >&5 11445$as_echo "no" >&6; } 11446fi 11447 11448 11449 test -n "$ac_ct_CC" && break 11450done 11451 11452 if test "x$ac_ct_CC" = x; then 11453 CC="" 11454 else 11455 case $cross_compiling:$ac_tool_warned in 11456yes:) 11457{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11459ac_tool_warned=yes ;; 11460esac 11461 CC=$ac_ct_CC 11462 fi 11463fi 11464 11465fi 11466 11467 11468test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11470{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 11471See \`config.log' for more details." >&5 11472$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 11473See \`config.log' for more details." >&2;} 11474 { (exit 1); exit 1; }; }; } 11475 11476# Provide some information about the compiler. 11477$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 11478set X $ac_compile 11479ac_compiler=$2 11480{ (ac_try="$ac_compiler --version >&5" 11481case "(($ac_try" in 11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11483 *) ac_try_echo=$ac_try;; 11484esac 11485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11486$as_echo "$ac_try_echo") >&5 11487 (eval "$ac_compiler --version >&5") 2>&5 11488 ac_status=$? 11489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11490 (exit $ac_status); } 11491{ (ac_try="$ac_compiler -v >&5" 11492case "(($ac_try" in 11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11494 *) ac_try_echo=$ac_try;; 11495esac 11496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11497$as_echo "$ac_try_echo") >&5 11498 (eval "$ac_compiler -v >&5") 2>&5 11499 ac_status=$? 11500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11501 (exit $ac_status); } 11502{ (ac_try="$ac_compiler -V >&5" 11503case "(($ac_try" in 11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11505 *) ac_try_echo=$ac_try;; 11506esac 11507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11508$as_echo "$ac_try_echo") >&5 11509 (eval "$ac_compiler -V >&5") 2>&5 11510 ac_status=$? 11511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11512 (exit $ac_status); } 11513 11514{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 11515$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11516if test "${ac_cv_c_compiler_gnu+set}" = set; then 11517 $as_echo_n "(cached) " >&6 11518else 11519 cat >conftest.$ac_ext <<_ACEOF 11520/* confdefs.h. */ 11521_ACEOF 11522cat confdefs.h >>conftest.$ac_ext 11523cat >>conftest.$ac_ext <<_ACEOF 11524/* end confdefs.h. */ 11525 11526int 11527main () 11528{ 11529#ifndef __GNUC__ 11530 choke me 11531#endif 11532 11533 ; 11534 return 0; 11535} 11536_ACEOF 11537rm -f conftest.$ac_objext 11538if { (ac_try="$ac_compile" 11539case "(($ac_try" in 11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11541 *) ac_try_echo=$ac_try;; 11542esac 11543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11544$as_echo "$ac_try_echo") >&5 11545 (eval "$ac_compile") 2>conftest.er1 11546 ac_status=$? 11547 grep -v '^ *+' conftest.er1 >conftest.err 11548 rm -f conftest.er1 11549 cat conftest.err >&5 11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11551 (exit $ac_status); } && { 11552 test -z "$ac_c_werror_flag" || 11553 test ! -s conftest.err 11554 } && test -s conftest.$ac_objext; then 11555 ac_compiler_gnu=yes 11556else 11557 $as_echo "$as_me: failed program was:" >&5 11558sed 's/^/| /' conftest.$ac_ext >&5 11559 11560 ac_compiler_gnu=no 11561fi 11562 11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11564ac_cv_c_compiler_gnu=$ac_compiler_gnu 11565 11566fi 11567{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 11568$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11569if test $ac_compiler_gnu = yes; then 11570 GCC=yes 11571else 11572 GCC= 11573fi 11574ac_test_CFLAGS=${CFLAGS+set} 11575ac_save_CFLAGS=$CFLAGS 11576{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 11577$as_echo_n "checking whether $CC accepts -g... " >&6; } 11578if test "${ac_cv_prog_cc_g+set}" = set; then 11579 $as_echo_n "(cached) " >&6 11580else 11581 ac_save_c_werror_flag=$ac_c_werror_flag 11582 ac_c_werror_flag=yes 11583 ac_cv_prog_cc_g=no 11584 CFLAGS="-g" 11585 cat >conftest.$ac_ext <<_ACEOF 11586/* confdefs.h. */ 11587_ACEOF 11588cat confdefs.h >>conftest.$ac_ext 11589cat >>conftest.$ac_ext <<_ACEOF 11590/* end confdefs.h. */ 11591 11592int 11593main () 11594{ 11595 11596 ; 11597 return 0; 11598} 11599_ACEOF 11600rm -f conftest.$ac_objext 11601if { (ac_try="$ac_compile" 11602case "(($ac_try" in 11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11604 *) ac_try_echo=$ac_try;; 11605esac 11606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11607$as_echo "$ac_try_echo") >&5 11608 (eval "$ac_compile") 2>conftest.er1 11609 ac_status=$? 11610 grep -v '^ *+' conftest.er1 >conftest.err 11611 rm -f conftest.er1 11612 cat conftest.err >&5 11613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11614 (exit $ac_status); } && { 11615 test -z "$ac_c_werror_flag" || 11616 test ! -s conftest.err 11617 } && test -s conftest.$ac_objext; then 11618 ac_cv_prog_cc_g=yes 11619else 11620 $as_echo "$as_me: failed program was:" >&5 11621sed 's/^/| /' conftest.$ac_ext >&5 11622 11623 CFLAGS="" 11624 cat >conftest.$ac_ext <<_ACEOF 11625/* confdefs.h. */ 11626_ACEOF 11627cat confdefs.h >>conftest.$ac_ext 11628cat >>conftest.$ac_ext <<_ACEOF 11629/* end confdefs.h. */ 11630 11631int 11632main () 11633{ 11634 11635 ; 11636 return 0; 11637} 11638_ACEOF 11639rm -f conftest.$ac_objext 11640if { (ac_try="$ac_compile" 11641case "(($ac_try" in 11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11643 *) ac_try_echo=$ac_try;; 11644esac 11645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11646$as_echo "$ac_try_echo") >&5 11647 (eval "$ac_compile") 2>conftest.er1 11648 ac_status=$? 11649 grep -v '^ *+' conftest.er1 >conftest.err 11650 rm -f conftest.er1 11651 cat conftest.err >&5 11652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11653 (exit $ac_status); } && { 11654 test -z "$ac_c_werror_flag" || 11655 test ! -s conftest.err 11656 } && test -s conftest.$ac_objext; then 11657 : 11658else 11659 $as_echo "$as_me: failed program was:" >&5 11660sed 's/^/| /' conftest.$ac_ext >&5 11661 11662 ac_c_werror_flag=$ac_save_c_werror_flag 11663 CFLAGS="-g" 11664 cat >conftest.$ac_ext <<_ACEOF 11665/* confdefs.h. */ 11666_ACEOF 11667cat confdefs.h >>conftest.$ac_ext 11668cat >>conftest.$ac_ext <<_ACEOF 11669/* end confdefs.h. */ 11670 11671int 11672main () 11673{ 11674 11675 ; 11676 return 0; 11677} 11678_ACEOF 11679rm -f conftest.$ac_objext 11680if { (ac_try="$ac_compile" 11681case "(($ac_try" in 11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11683 *) ac_try_echo=$ac_try;; 11684esac 11685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11686$as_echo "$ac_try_echo") >&5 11687 (eval "$ac_compile") 2>conftest.er1 11688 ac_status=$? 11689 grep -v '^ *+' conftest.er1 >conftest.err 11690 rm -f conftest.er1 11691 cat conftest.err >&5 11692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11693 (exit $ac_status); } && { 11694 test -z "$ac_c_werror_flag" || 11695 test ! -s conftest.err 11696 } && test -s conftest.$ac_objext; then 11697 ac_cv_prog_cc_g=yes 11698else 11699 $as_echo "$as_me: failed program was:" >&5 11700sed 's/^/| /' conftest.$ac_ext >&5 11701 11702 11703fi 11704 11705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11706fi 11707 11708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11709fi 11710 11711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11712 ac_c_werror_flag=$ac_save_c_werror_flag 11713fi 11714{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 11715$as_echo "$ac_cv_prog_cc_g" >&6; } 11716if test "$ac_test_CFLAGS" = set; then 11717 CFLAGS=$ac_save_CFLAGS 11718elif test $ac_cv_prog_cc_g = yes; then 11719 if test "$GCC" = yes; then 11720 CFLAGS="-g -O2" 11721 else 11722 CFLAGS="-g" 11723 fi 11724else 11725 if test "$GCC" = yes; then 11726 CFLAGS="-O2" 11727 else 11728 CFLAGS= 11729 fi 11730fi 11731{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 11732$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11733if test "${ac_cv_prog_cc_c89+set}" = set; then 11734 $as_echo_n "(cached) " >&6 11735else 11736 ac_cv_prog_cc_c89=no 11737ac_save_CC=$CC 11738cat >conftest.$ac_ext <<_ACEOF 11739/* confdefs.h. */ 11740_ACEOF 11741cat confdefs.h >>conftest.$ac_ext 11742cat >>conftest.$ac_ext <<_ACEOF 11743/* end confdefs.h. */ 11744#include <stdarg.h> 11745#include <stdio.h> 11746#include <sys/types.h> 11747#include <sys/stat.h> 11748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11749struct buf { int x; }; 11750FILE * (*rcsopen) (struct buf *, struct stat *, int); 11751static char *e (p, i) 11752 char **p; 11753 int i; 11754{ 11755 return p[i]; 11756} 11757static char *f (char * (*g) (char **, int), char **p, ...) 11758{ 11759 char *s; 11760 va_list v; 11761 va_start (v,p); 11762 s = g (p, va_arg (v,int)); 11763 va_end (v); 11764 return s; 11765} 11766 11767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11768 function prototypes and stuff, but not '\xHH' hex character constants. 11769 These don't provoke an error unfortunately, instead are silently treated 11770 as 'x'. The following induces an error, until -std is added to get 11771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11772 array size at least. It's necessary to write '\x00'==0 to get something 11773 that's true only with -std. */ 11774int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11775 11776/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11777 inside strings and character constants. */ 11778#define FOO(x) 'x' 11779int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11780 11781int test (int i, double x); 11782struct s1 {int (*f) (int a);}; 11783struct s2 {int (*f) (double a);}; 11784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11785int argc; 11786char **argv; 11787int 11788main () 11789{ 11790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11791 ; 11792 return 0; 11793} 11794_ACEOF 11795for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11797do 11798 CC="$ac_save_CC $ac_arg" 11799 rm -f conftest.$ac_objext 11800if { (ac_try="$ac_compile" 11801case "(($ac_try" in 11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11803 *) ac_try_echo=$ac_try;; 11804esac 11805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11806$as_echo "$ac_try_echo") >&5 11807 (eval "$ac_compile") 2>conftest.er1 11808 ac_status=$? 11809 grep -v '^ *+' conftest.er1 >conftest.err 11810 rm -f conftest.er1 11811 cat conftest.err >&5 11812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11813 (exit $ac_status); } && { 11814 test -z "$ac_c_werror_flag" || 11815 test ! -s conftest.err 11816 } && test -s conftest.$ac_objext; then 11817 ac_cv_prog_cc_c89=$ac_arg 11818else 11819 $as_echo "$as_me: failed program was:" >&5 11820sed 's/^/| /' conftest.$ac_ext >&5 11821 11822 11823fi 11824 11825rm -f core conftest.err conftest.$ac_objext 11826 test "x$ac_cv_prog_cc_c89" != "xno" && break 11827done 11828rm -f conftest.$ac_ext 11829CC=$ac_save_CC 11830 11831fi 11832# AC_CACHE_VAL 11833case "x$ac_cv_prog_cc_c89" in 11834 x) 11835 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11836$as_echo "none needed" >&6; } ;; 11837 xno) 11838 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11839$as_echo "unsupported" >&6; } ;; 11840 *) 11841 CC="$CC $ac_cv_prog_cc_c89" 11842 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 11843$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11844esac 11845 11846 11847ac_ext=c 11848ac_cpp='$CPP $CPPFLAGS' 11849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11851ac_compiler_gnu=$ac_cv_c_compiler_gnu 11852 11853depcc="$CC" am_compiler_list= 11854 11855{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 11856$as_echo_n "checking dependency style of $depcc... " >&6; } 11857if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 11858 $as_echo_n "(cached) " >&6 11859else 11860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11861 # We make a subdir and do the tests there. Otherwise we can end up 11862 # making bogus files that we don't know about and never remove. For 11863 # instance it was reported that on HP-UX the gcc test will end up 11864 # making a dummy file named `D' -- because `-MD' means `put the output 11865 # in D'. 11866 mkdir conftest.dir 11867 # Copy depcomp to subdir because otherwise we won't find it if we're 11868 # using a relative directory. 11869 cp "$am_depcomp" conftest.dir 11870 cd conftest.dir 11871 # We will build objects and dependencies in a subdirectory because 11872 # it helps to detect inapplicable dependency modes. For instance 11873 # both Tru64's cc and ICC support -MD to output dependencies as a 11874 # side effect of compilation, but ICC will put the dependencies in 11875 # the current directory while Tru64 will put them in the object 11876 # directory. 11877 mkdir sub 11878 11879 am_cv_CC_dependencies_compiler_type=none 11880 if test "$am_compiler_list" = ""; then 11881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11882 fi 11883 am__universal=false 11884 case " $depcc " in #( 11885 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11886 esac 11887 11888 for depmode in $am_compiler_list; do 11889 # Setup a source with many dependencies, because some compilers 11890 # like to wrap large dependency lists on column 80 (with \), and 11891 # we should not choose a depcomp mode which is confused by this. 11892 # 11893 # We need to recreate these files for each test, as the compiler may 11894 # overwrite some of them when testing with obscure command lines. 11895 # This happens at least with the AIX C compiler. 11896 : > sub/conftest.c 11897 for i in 1 2 3 4 5 6; do 11898 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11899 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11900 # Solaris 8's {/usr,}/bin/sh. 11901 touch sub/conftst$i.h 11902 done 11903 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11904 11905 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11906 # mode. It turns out that the SunPro C++ compiler does not properly 11907 # handle `-M -o', and we need to detect this. Also, some Intel 11908 # versions had trouble with output in subdirs 11909 am__obj=sub/conftest.${OBJEXT-o} 11910 am__minus_obj="-o $am__obj" 11911 case $depmode in 11912 gcc) 11913 # This depmode causes a compiler race in universal mode. 11914 test "$am__universal" = false || continue 11915 ;; 11916 nosideeffect) 11917 # after this tag, mechanisms are not by side-effect, so they'll 11918 # only be used when explicitly requested 11919 if test "x$enable_dependency_tracking" = xyes; then 11920 continue 11921 else 11922 break 11923 fi 11924 ;; 11925 msvisualcpp | msvcmsys) 11926 # This compiler won't grok `-c -o', but also, the minuso test has 11927 # not run yet. These depmodes are late enough in the game, and 11928 # so weak that their functioning should not be impacted. 11929 am__obj=conftest.${OBJEXT-o} 11930 am__minus_obj= 11931 ;; 11932 none) break ;; 11933 esac 11934 if depmode=$depmode \ 11935 source=sub/conftest.c object=$am__obj \ 11936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11937 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11938 >/dev/null 2>conftest.err && 11939 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11940 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11941 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11942 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11943 # icc doesn't choke on unknown options, it will just issue warnings 11944 # or remarks (even with -Werror). So we grep stderr for any message 11945 # that says an option was ignored or not supported. 11946 # When given -MP, icc 7.0 and 7.1 complain thusly: 11947 # icc: Command line warning: ignoring option '-M'; no argument required 11948 # The diagnosis changed in icc 8.0: 11949 # icc: Command line remark: option '-MP' not supported 11950 if (grep 'ignoring option' conftest.err || 11951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11952 am_cv_CC_dependencies_compiler_type=$depmode 11953 break 11954 fi 11955 fi 11956 done 11957 11958 cd .. 11959 rm -rf conftest.dir 11960else 11961 am_cv_CC_dependencies_compiler_type=none 11962fi 11963 11964fi 11965{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 11966$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11967CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11968 11969 if 11970 test "x$enable_dependency_tracking" != xno \ 11971 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11972 am__fastdepCC_TRUE= 11973 am__fastdepCC_FALSE='#' 11974else 11975 am__fastdepCC_TRUE='#' 11976 am__fastdepCC_FALSE= 11977fi 11978 11979 11980 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 11981$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11982if test "${ac_cv_prog_cc_c99+set}" = set; then 11983 $as_echo_n "(cached) " >&6 11984else 11985 ac_cv_prog_cc_c99=no 11986ac_save_CC=$CC 11987cat >conftest.$ac_ext <<_ACEOF 11988/* confdefs.h. */ 11989_ACEOF 11990cat confdefs.h >>conftest.$ac_ext 11991cat >>conftest.$ac_ext <<_ACEOF 11992/* end confdefs.h. */ 11993#include <stdarg.h> 11994#include <stdbool.h> 11995#include <stdlib.h> 11996#include <wchar.h> 11997#include <stdio.h> 11998 11999// Check varargs macros. These examples are taken from C99 6.10.3.5. 12000#define debug(...) fprintf (stderr, __VA_ARGS__) 12001#define showlist(...) puts (#__VA_ARGS__) 12002#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12003static void 12004test_varargs_macros (void) 12005{ 12006 int x = 1234; 12007 int y = 5678; 12008 debug ("Flag"); 12009 debug ("X = %d\n", x); 12010 showlist (The first, second, and third items.); 12011 report (x>y, "x is %d but y is %d", x, y); 12012} 12013 12014// Check long long types. 12015#define BIG64 18446744073709551615ull 12016#define BIG32 4294967295ul 12017#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12018#if !BIG_OK 12019 your preprocessor is broken; 12020#endif 12021#if BIG_OK 12022#else 12023 your preprocessor is broken; 12024#endif 12025static long long int bignum = -9223372036854775807LL; 12026static unsigned long long int ubignum = BIG64; 12027 12028struct incomplete_array 12029{ 12030 int datasize; 12031 double data[]; 12032}; 12033 12034struct named_init { 12035 int number; 12036 const wchar_t *name; 12037 double average; 12038}; 12039 12040typedef const char *ccp; 12041 12042static inline int 12043test_restrict (ccp restrict text) 12044{ 12045 // See if C++-style comments work. 12046 // Iterate through items via the restricted pointer. 12047 // Also check for declarations in for loops. 12048 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12049 continue; 12050 return 0; 12051} 12052 12053// Check varargs and va_copy. 12054static void 12055test_varargs (const char *format, ...) 12056{ 12057 va_list args; 12058 va_start (args, format); 12059 va_list args_copy; 12060 va_copy (args_copy, args); 12061 12062 const char *str; 12063 int number; 12064 float fnumber; 12065 12066 while (*format) 12067 { 12068 switch (*format++) 12069 { 12070 case 's': // string 12071 str = va_arg (args_copy, const char *); 12072 break; 12073 case 'd': // int 12074 number = va_arg (args_copy, int); 12075 break; 12076 case 'f': // float 12077 fnumber = va_arg (args_copy, double); 12078 break; 12079 default: 12080 break; 12081 } 12082 } 12083 va_end (args_copy); 12084 va_end (args); 12085} 12086 12087int 12088main () 12089{ 12090 12091 // Check bool. 12092 _Bool success = false; 12093 12094 // Check restrict. 12095 if (test_restrict ("String literal") == 0) 12096 success = true; 12097 char *restrict newvar = "Another string"; 12098 12099 // Check varargs. 12100 test_varargs ("s, d' f .", "string", 65, 34.234); 12101 test_varargs_macros (); 12102 12103 // Check flexible array members. 12104 struct incomplete_array *ia = 12105 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12106 ia->datasize = 10; 12107 for (int i = 0; i < ia->datasize; ++i) 12108 ia->data[i] = i * 1.234; 12109 12110 // Check named initializers. 12111 struct named_init ni = { 12112 .number = 34, 12113 .name = L"Test wide string", 12114 .average = 543.34343, 12115 }; 12116 12117 ni.number = 58; 12118 12119 int dynamic_array[ni.number]; 12120 dynamic_array[ni.number - 1] = 543; 12121 12122 // work around unused variable warnings 12123 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12124 || dynamic_array[ni.number - 1] != 543); 12125 12126 ; 12127 return 0; 12128} 12129_ACEOF 12130for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 12131do 12132 CC="$ac_save_CC $ac_arg" 12133 rm -f conftest.$ac_objext 12134if { (ac_try="$ac_compile" 12135case "(($ac_try" in 12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12137 *) ac_try_echo=$ac_try;; 12138esac 12139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12140$as_echo "$ac_try_echo") >&5 12141 (eval "$ac_compile") 2>conftest.er1 12142 ac_status=$? 12143 grep -v '^ *+' conftest.er1 >conftest.err 12144 rm -f conftest.er1 12145 cat conftest.err >&5 12146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12147 (exit $ac_status); } && { 12148 test -z "$ac_c_werror_flag" || 12149 test ! -s conftest.err 12150 } && test -s conftest.$ac_objext; then 12151 ac_cv_prog_cc_c99=$ac_arg 12152else 12153 $as_echo "$as_me: failed program was:" >&5 12154sed 's/^/| /' conftest.$ac_ext >&5 12155 12156 12157fi 12158 12159rm -f core conftest.err conftest.$ac_objext 12160 test "x$ac_cv_prog_cc_c99" != "xno" && break 12161done 12162rm -f conftest.$ac_ext 12163CC=$ac_save_CC 12164 12165fi 12166# AC_CACHE_VAL 12167case "x$ac_cv_prog_cc_c99" in 12168 x) 12169 { $as_echo "$as_me:$LINENO: result: none needed" >&5 12170$as_echo "none needed" >&6; } ;; 12171 xno) 12172 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 12173$as_echo "unsupported" >&6; } ;; 12174 *) 12175 CC="$CC $ac_cv_prog_cc_c99" 12176 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 12177$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12178esac 12179 12180 12181 12182 12183 12184 12185if test "x$GCC" = xyes ; then 12186 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 12187-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 12188-Wbad-function-cast" 12189 case `$CC -dumpversion` in 12190 3.4.* | 4.*) 12191 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 12192 ;; 12193 esac 12194else 12195 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 12196$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 12197if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 12198 $as_echo_n "(cached) " >&6 12199else 12200 cat >conftest.$ac_ext <<_ACEOF 12201/* confdefs.h. */ 12202_ACEOF 12203cat confdefs.h >>conftest.$ac_ext 12204cat >>conftest.$ac_ext <<_ACEOF 12205/* end confdefs.h. */ 12206$ac_includes_default 12207int 12208main () 12209{ 12210#ifndef __SUNPRO_C 12211 (void) __SUNPRO_C; 12212#endif 12213 12214 ; 12215 return 0; 12216} 12217_ACEOF 12218rm -f conftest.$ac_objext 12219if { (ac_try="$ac_compile" 12220case "(($ac_try" in 12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12222 *) ac_try_echo=$ac_try;; 12223esac 12224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12225$as_echo "$ac_try_echo") >&5 12226 (eval "$ac_compile") 2>conftest.er1 12227 ac_status=$? 12228 grep -v '^ *+' conftest.er1 >conftest.err 12229 rm -f conftest.er1 12230 cat conftest.err >&5 12231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12232 (exit $ac_status); } && { 12233 test -z "$ac_c_werror_flag" || 12234 test ! -s conftest.err 12235 } && test -s conftest.$ac_objext; then 12236 ac_cv_have_decl___SUNPRO_C=yes 12237else 12238 $as_echo "$as_me: failed program was:" >&5 12239sed 's/^/| /' conftest.$ac_ext >&5 12240 12241 ac_cv_have_decl___SUNPRO_C=no 12242fi 12243 12244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12245fi 12246{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 12247$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 12248if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 12249 SUNCC="yes" 12250else 12251 SUNCC="no" 12252fi 12253 12254 if test "x$SUNCC" = "xyes"; then 12255 CWARNFLAGS="-v" 12256 fi 12257fi 12258 12259# Check whether --enable-silent-rules was given. 12260if test "${enable_silent_rules+set}" = set; then 12261 enableval=$enable_silent_rules; 12262fi 12263 12264case $enable_silent_rules in 12265yes) AM_DEFAULT_VERBOSITY=0;; 12266no) AM_DEFAULT_VERBOSITY=1;; 12267*) AM_DEFAULT_VERBOSITY=0;; 12268esac 12269AM_BACKSLASH='\' 12270 12271 12272 12273 12274 12275 12276 12277# Check whether --enable-strict-compilation was given. 12278if test "${enable_strict_compilation+set}" = set; then 12279 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 12280else 12281 STRICT_COMPILE=no 12282fi 12283 12284if test "x$STRICT_COMPILE" = "xyes"; then 12285 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 12286$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 12287if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 12288 $as_echo_n "(cached) " >&6 12289else 12290 cat >conftest.$ac_ext <<_ACEOF 12291/* confdefs.h. */ 12292_ACEOF 12293cat confdefs.h >>conftest.$ac_ext 12294cat >>conftest.$ac_ext <<_ACEOF 12295/* end confdefs.h. */ 12296$ac_includes_default 12297int 12298main () 12299{ 12300#ifndef __SUNPRO_C 12301 (void) __SUNPRO_C; 12302#endif 12303 12304 ; 12305 return 0; 12306} 12307_ACEOF 12308rm -f conftest.$ac_objext 12309if { (ac_try="$ac_compile" 12310case "(($ac_try" in 12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12312 *) ac_try_echo=$ac_try;; 12313esac 12314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12315$as_echo "$ac_try_echo") >&5 12316 (eval "$ac_compile") 2>conftest.er1 12317 ac_status=$? 12318 grep -v '^ *+' conftest.er1 >conftest.err 12319 rm -f conftest.er1 12320 cat conftest.err >&5 12321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12322 (exit $ac_status); } && { 12323 test -z "$ac_c_werror_flag" || 12324 test ! -s conftest.err 12325 } && test -s conftest.$ac_objext; then 12326 ac_cv_have_decl___SUNPRO_C=yes 12327else 12328 $as_echo "$as_me: failed program was:" >&5 12329sed 's/^/| /' conftest.$ac_ext >&5 12330 12331 ac_cv_have_decl___SUNPRO_C=no 12332fi 12333 12334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12335fi 12336{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 12337$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 12338if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 12339 SUNCC="yes" 12340else 12341 SUNCC="no" 12342fi 12343 12344 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 12345$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 12346if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 12347 $as_echo_n "(cached) " >&6 12348else 12349 cat >conftest.$ac_ext <<_ACEOF 12350/* confdefs.h. */ 12351_ACEOF 12352cat confdefs.h >>conftest.$ac_ext 12353cat >>conftest.$ac_ext <<_ACEOF 12354/* end confdefs.h. */ 12355$ac_includes_default 12356int 12357main () 12358{ 12359#ifndef __INTEL_COMPILER 12360 (void) __INTEL_COMPILER; 12361#endif 12362 12363 ; 12364 return 0; 12365} 12366_ACEOF 12367rm -f conftest.$ac_objext 12368if { (ac_try="$ac_compile" 12369case "(($ac_try" in 12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12371 *) ac_try_echo=$ac_try;; 12372esac 12373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12374$as_echo "$ac_try_echo") >&5 12375 (eval "$ac_compile") 2>conftest.er1 12376 ac_status=$? 12377 grep -v '^ *+' conftest.er1 >conftest.err 12378 rm -f conftest.er1 12379 cat conftest.err >&5 12380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12381 (exit $ac_status); } && { 12382 test -z "$ac_c_werror_flag" || 12383 test ! -s conftest.err 12384 } && test -s conftest.$ac_objext; then 12385 ac_cv_have_decl___INTEL_COMPILER=yes 12386else 12387 $as_echo "$as_me: failed program was:" >&5 12388sed 's/^/| /' conftest.$ac_ext >&5 12389 12390 ac_cv_have_decl___INTEL_COMPILER=no 12391fi 12392 12393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12394fi 12395{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 12396$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 12397if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 12398 INTELCC="yes" 12399else 12400 INTELCC="no" 12401fi 12402 12403 if test "x$GCC" = xyes ; then 12404 STRICT_CFLAGS="-pedantic -Werror" 12405 elif test "x$SUNCC" = "xyes"; then 12406 STRICT_CFLAGS="-errwarn" 12407 elif test "x$INTELCC" = "xyes"; then 12408 STRICT_CFLAGS="-Werror" 12409 fi 12410fi 12411CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12412 12413 12414 12415 12416# Check whether --with-release-version was given. 12417if test "${with_release_version+set}" = set; then 12418 withval=$with_release_version; RELEASE_VERSION="$withval" 12419else 12420 RELEASE_VERSION="" 12421fi 12422 12423 if test "x$RELEASE_VERSION" != "x"; then 12424 PACKAGE="$PACKAGE-$RELEASE_VERSION" 12425 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 12426 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 12427$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 12428 fi 12429 12430cat >>confdefs.h <<_ACEOF 12431#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12432_ACEOF 12433 12434 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12435 if test "x$PVM" = "x"; then 12436 PVM="0" 12437 fi 12438 12439cat >>confdefs.h <<_ACEOF 12440#define PACKAGE_VERSION_MINOR $PVM 12441_ACEOF 12442 12443 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12444 if test "x$PVP" = "x"; then 12445 PVP="0" 12446 fi 12447 12448cat >>confdefs.h <<_ACEOF 12449#define PACKAGE_VERSION_PATCHLEVEL $PVP 12450_ACEOF 12451 12452 12453 12454CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 12455mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 12456echo 'git directory not found: installing possibly empty changelog.' >&2)" 12457 12458distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 12459 12460 12461 12462 12463 12464if test x$APP_MAN_SUFFIX = x ; then 12465 APP_MAN_SUFFIX=1 12466fi 12467if test x$APP_MAN_DIR = x ; then 12468 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12469fi 12470 12471if test x$LIB_MAN_SUFFIX = x ; then 12472 LIB_MAN_SUFFIX=3 12473fi 12474if test x$LIB_MAN_DIR = x ; then 12475 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12476fi 12477 12478if test x$FILE_MAN_SUFFIX = x ; then 12479 case $host_os in 12480 solaris*) FILE_MAN_SUFFIX=4 ;; 12481 *) FILE_MAN_SUFFIX=5 ;; 12482 esac 12483fi 12484if test x$FILE_MAN_DIR = x ; then 12485 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12486fi 12487 12488if test x$MISC_MAN_SUFFIX = x ; then 12489 case $host_os in 12490 solaris*) MISC_MAN_SUFFIX=5 ;; 12491 *) MISC_MAN_SUFFIX=7 ;; 12492 esac 12493fi 12494if test x$MISC_MAN_DIR = x ; then 12495 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12496fi 12497 12498if test x$DRIVER_MAN_SUFFIX = x ; then 12499 case $host_os in 12500 solaris*) DRIVER_MAN_SUFFIX=7 ;; 12501 *) DRIVER_MAN_SUFFIX=4 ;; 12502 esac 12503fi 12504if test x$DRIVER_MAN_DIR = x ; then 12505 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12506fi 12507 12508if test x$ADMIN_MAN_SUFFIX = x ; then 12509 case $host_os in 12510 solaris*) ADMIN_MAN_SUFFIX=1m ;; 12511 *) ADMIN_MAN_SUFFIX=8 ;; 12512 esac 12513fi 12514if test x$ADMIN_MAN_DIR = x ; then 12515 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12516fi 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538# Check whether --with-xorg-module-dir was given. 12539if test "${with_xorg_module_dir+set}" = set; then 12540 withval=$with_xorg_module_dir; moduledir="$withval" 12541else 12542 moduledir="$libdir/xorg/modules" 12543fi 12544 12545inputdir=${moduledir}/input 12546 12547 12548# Checks for extensions 12549 12550 SAVE_CFLAGS="$CFLAGS" 12551 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12552 cat >conftest.$ac_ext <<_ACEOF 12553/* confdefs.h. */ 12554_ACEOF 12555cat confdefs.h >>conftest.$ac_ext 12556cat >>conftest.$ac_ext <<_ACEOF 12557/* end confdefs.h. */ 12558 12559#include "xorg-server.h" 12560#if !defined RANDR 12561#error RANDR not defined 12562#endif 12563 12564int 12565main () 12566{ 12567 12568 ; 12569 return 0; 12570} 12571_ACEOF 12572rm -f conftest.$ac_objext 12573if { (ac_try="$ac_compile" 12574case "(($ac_try" in 12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12576 *) ac_try_echo=$ac_try;; 12577esac 12578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12579$as_echo "$ac_try_echo") >&5 12580 (eval "$ac_compile") 2>conftest.er1 12581 ac_status=$? 12582 grep -v '^ *+' conftest.er1 >conftest.err 12583 rm -f conftest.er1 12584 cat conftest.err >&5 12585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12586 (exit $ac_status); } && { 12587 test -z "$ac_c_werror_flag" || 12588 test ! -s conftest.err 12589 } && test -s conftest.$ac_objext; then 12590 _EXT_CHECK=yes 12591else 12592 $as_echo "$as_me: failed program was:" >&5 12593sed 's/^/| /' conftest.$ac_ext >&5 12594 12595 _EXT_CHECK=no 12596fi 12597 12598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12599 CFLAGS="$SAVE_CFLAGS" 12600 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 12601$as_echo_n "checking if RANDR is defined... " >&6; } 12602 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12603$as_echo "$_EXT_CHECK" >&6; } 12604 if test "$_EXT_CHECK" != no; then 12605 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12606 fi 12607 12608 12609 SAVE_CFLAGS="$CFLAGS" 12610 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12611 cat >conftest.$ac_ext <<_ACEOF 12612/* confdefs.h. */ 12613_ACEOF 12614cat confdefs.h >>conftest.$ac_ext 12615cat >>conftest.$ac_ext <<_ACEOF 12616/* end confdefs.h. */ 12617 12618#include "xorg-server.h" 12619#if !defined XINPUT 12620#error XINPUT not defined 12621#endif 12622 12623int 12624main () 12625{ 12626 12627 ; 12628 return 0; 12629} 12630_ACEOF 12631rm -f conftest.$ac_objext 12632if { (ac_try="$ac_compile" 12633case "(($ac_try" in 12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12635 *) ac_try_echo=$ac_try;; 12636esac 12637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12638$as_echo "$ac_try_echo") >&5 12639 (eval "$ac_compile") 2>conftest.er1 12640 ac_status=$? 12641 grep -v '^ *+' conftest.er1 >conftest.err 12642 rm -f conftest.er1 12643 cat conftest.err >&5 12644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12645 (exit $ac_status); } && { 12646 test -z "$ac_c_werror_flag" || 12647 test ! -s conftest.err 12648 } && test -s conftest.$ac_objext; then 12649 _EXT_CHECK=yes 12650else 12651 $as_echo "$as_me: failed program was:" >&5 12652sed 's/^/| /' conftest.$ac_ext >&5 12653 12654 _EXT_CHECK=no 12655fi 12656 12657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12658 CFLAGS="$SAVE_CFLAGS" 12659 { $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5 12660$as_echo_n "checking if XINPUT is defined... " >&6; } 12661 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12662$as_echo "$_EXT_CHECK" >&6; } 12663 if test "$_EXT_CHECK" != no; then 12664 REQUIRED_MODULES="$REQUIRED_MODULES inputproto" 12665 fi 12666 12667 12668# Checks for pkg-config packages 12669 12670 12671if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12672 if test -n "$ac_tool_prefix"; then 12673 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12674set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12675{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12676$as_echo_n "checking for $ac_word... " >&6; } 12677if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12678 $as_echo_n "(cached) " >&6 12679else 12680 case $PKG_CONFIG in 12681 [\\/]* | ?:[\\/]*) 12682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12683 ;; 12684 *) 12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12686for as_dir in $PATH 12687do 12688 IFS=$as_save_IFS 12689 test -z "$as_dir" && as_dir=. 12690 for ac_exec_ext in '' $ac_executable_extensions; do 12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12694 break 2 12695 fi 12696done 12697done 12698IFS=$as_save_IFS 12699 12700 ;; 12701esac 12702fi 12703PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12704if test -n "$PKG_CONFIG"; then 12705 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12706$as_echo "$PKG_CONFIG" >&6; } 12707else 12708 { $as_echo "$as_me:$LINENO: result: no" >&5 12709$as_echo "no" >&6; } 12710fi 12711 12712 12713fi 12714if test -z "$ac_cv_path_PKG_CONFIG"; then 12715 ac_pt_PKG_CONFIG=$PKG_CONFIG 12716 # Extract the first word of "pkg-config", so it can be a program name with args. 12717set dummy pkg-config; ac_word=$2 12718{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12719$as_echo_n "checking for $ac_word... " >&6; } 12720if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12721 $as_echo_n "(cached) " >&6 12722else 12723 case $ac_pt_PKG_CONFIG in 12724 [\\/]* | ?:[\\/]*) 12725 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12726 ;; 12727 *) 12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12729for as_dir in $PATH 12730do 12731 IFS=$as_save_IFS 12732 test -z "$as_dir" && as_dir=. 12733 for ac_exec_ext in '' $ac_executable_extensions; do 12734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12735 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12737 break 2 12738 fi 12739done 12740done 12741IFS=$as_save_IFS 12742 12743 ;; 12744esac 12745fi 12746ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12747if test -n "$ac_pt_PKG_CONFIG"; then 12748 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12749$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12750else 12751 { $as_echo "$as_me:$LINENO: result: no" >&5 12752$as_echo "no" >&6; } 12753fi 12754 12755 if test "x$ac_pt_PKG_CONFIG" = x; then 12756 PKG_CONFIG="" 12757 else 12758 case $cross_compiling:$ac_tool_warned in 12759yes:) 12760{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12762ac_tool_warned=yes ;; 12763esac 12764 PKG_CONFIG=$ac_pt_PKG_CONFIG 12765 fi 12766else 12767 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12768fi 12769 12770fi 12771if test -n "$PKG_CONFIG"; then 12772 _pkg_min_version=0.9.0 12773 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12774$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12775 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12776 { $as_echo "$as_me:$LINENO: result: yes" >&5 12777$as_echo "yes" >&6; } 12778 else 12779 { $as_echo "$as_me:$LINENO: result: no" >&5 12780$as_echo "no" >&6; } 12781 PKG_CONFIG="" 12782 fi 12783 12784fi 12785 12786pkg_failed=no 12787{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12788$as_echo_n "checking for XORG... " >&6; } 12789 12790if test -n "$XORG_CFLAGS"; then 12791 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12792 elif test -n "$PKG_CONFIG"; then 12793 if test -n "$PKG_CONFIG" && \ 12794 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5.99.901 xproto \$REQUIRED_MODULES\"") >&5 12795 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5.99.901 xproto $REQUIRED_MODULES") 2>&5 12796 ac_status=$? 12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12798 (exit $ac_status); }; then 12799 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.5.99.901 xproto $REQUIRED_MODULES" 2>/dev/null` 12800else 12801 pkg_failed=yes 12802fi 12803 else 12804 pkg_failed=untried 12805fi 12806if test -n "$XORG_LIBS"; then 12807 pkg_cv_XORG_LIBS="$XORG_LIBS" 12808 elif test -n "$PKG_CONFIG"; then 12809 if test -n "$PKG_CONFIG" && \ 12810 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5.99.901 xproto \$REQUIRED_MODULES\"") >&5 12811 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5.99.901 xproto $REQUIRED_MODULES") 2>&5 12812 ac_status=$? 12813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12814 (exit $ac_status); }; then 12815 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.5.99.901 xproto $REQUIRED_MODULES" 2>/dev/null` 12816else 12817 pkg_failed=yes 12818fi 12819 else 12820 pkg_failed=untried 12821fi 12822 12823 12824 12825if test $pkg_failed = yes; then 12826 12827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12828 _pkg_short_errors_supported=yes 12829else 12830 _pkg_short_errors_supported=no 12831fi 12832 if test $_pkg_short_errors_supported = yes; then 12833 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.5.99.901 xproto $REQUIRED_MODULES" 2>&1` 12834 else 12835 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.5.99.901 xproto $REQUIRED_MODULES" 2>&1` 12836 fi 12837 # Put the nasty error message in config.log where it belongs 12838 echo "$XORG_PKG_ERRORS" >&5 12839 12840 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.5.99.901 xproto $REQUIRED_MODULES) were not met: 12841 12842$XORG_PKG_ERRORS 12843 12844Consider adjusting the PKG_CONFIG_PATH environment variable if you 12845installed software in a non-standard prefix. 12846 12847Alternatively, you may set the environment variables XORG_CFLAGS 12848and XORG_LIBS to avoid the need to call pkg-config. 12849See the pkg-config man page for more details. 12850" >&5 12851$as_echo "$as_me: error: Package requirements (xorg-server >= 1.5.99.901 xproto $REQUIRED_MODULES) were not met: 12852 12853$XORG_PKG_ERRORS 12854 12855Consider adjusting the PKG_CONFIG_PATH environment variable if you 12856installed software in a non-standard prefix. 12857 12858Alternatively, you may set the environment variables XORG_CFLAGS 12859and XORG_LIBS to avoid the need to call pkg-config. 12860See the pkg-config man page for more details. 12861" >&2;} 12862 { (exit 1); exit 1; }; } 12863elif test $pkg_failed = untried; then 12864 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12866{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12867is in your PATH or set the PKG_CONFIG environment variable to the full 12868path to pkg-config. 12869 12870Alternatively, you may set the environment variables XORG_CFLAGS 12871and XORG_LIBS to avoid the need to call pkg-config. 12872See the pkg-config man page for more details. 12873 12874To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12875See \`config.log' for more details." >&5 12876$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12877is in your PATH or set the PKG_CONFIG environment variable to the full 12878path to pkg-config. 12879 12880Alternatively, you may set the environment variables XORG_CFLAGS 12881and XORG_LIBS to avoid the need to call pkg-config. 12882See the pkg-config man page for more details. 12883 12884To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12885See \`config.log' for more details." >&2;} 12886 { (exit 1); exit 1; }; }; } 12887else 12888 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12889 XORG_LIBS=$pkg_cv_XORG_LIBS 12890 { $as_echo "$as_me:$LINENO: result: yes" >&5 12891$as_echo "yes" >&6; } 12892 : 12893fi 12894sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 12895 12896# Checks for libraries. 12897 12898# Checks for header files. 12899{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12900$as_echo_n "checking for ANSI C header files... " >&6; } 12901if test "${ac_cv_header_stdc+set}" = set; then 12902 $as_echo_n "(cached) " >&6 12903else 12904 cat >conftest.$ac_ext <<_ACEOF 12905/* confdefs.h. */ 12906_ACEOF 12907cat confdefs.h >>conftest.$ac_ext 12908cat >>conftest.$ac_ext <<_ACEOF 12909/* end confdefs.h. */ 12910#include <stdlib.h> 12911#include <stdarg.h> 12912#include <string.h> 12913#include <float.h> 12914 12915int 12916main () 12917{ 12918 12919 ; 12920 return 0; 12921} 12922_ACEOF 12923rm -f conftest.$ac_objext 12924if { (ac_try="$ac_compile" 12925case "(($ac_try" in 12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12927 *) ac_try_echo=$ac_try;; 12928esac 12929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12930$as_echo "$ac_try_echo") >&5 12931 (eval "$ac_compile") 2>conftest.er1 12932 ac_status=$? 12933 grep -v '^ *+' conftest.er1 >conftest.err 12934 rm -f conftest.er1 12935 cat conftest.err >&5 12936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12937 (exit $ac_status); } && { 12938 test -z "$ac_c_werror_flag" || 12939 test ! -s conftest.err 12940 } && test -s conftest.$ac_objext; then 12941 ac_cv_header_stdc=yes 12942else 12943 $as_echo "$as_me: failed program was:" >&5 12944sed 's/^/| /' conftest.$ac_ext >&5 12945 12946 ac_cv_header_stdc=no 12947fi 12948 12949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12950 12951if test $ac_cv_header_stdc = yes; then 12952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12953 cat >conftest.$ac_ext <<_ACEOF 12954/* confdefs.h. */ 12955_ACEOF 12956cat confdefs.h >>conftest.$ac_ext 12957cat >>conftest.$ac_ext <<_ACEOF 12958/* end confdefs.h. */ 12959#include <string.h> 12960 12961_ACEOF 12962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12963 $EGREP "memchr" >/dev/null 2>&1; then 12964 : 12965else 12966 ac_cv_header_stdc=no 12967fi 12968rm -f conftest* 12969 12970fi 12971 12972if test $ac_cv_header_stdc = yes; then 12973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 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#include <stdlib.h> 12981 12982_ACEOF 12983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12984 $EGREP "free" >/dev/null 2>&1; then 12985 : 12986else 12987 ac_cv_header_stdc=no 12988fi 12989rm -f conftest* 12990 12991fi 12992 12993if test $ac_cv_header_stdc = yes; then 12994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12995 if test "$cross_compiling" = yes; then 12996 : 12997else 12998 cat >conftest.$ac_ext <<_ACEOF 12999/* confdefs.h. */ 13000_ACEOF 13001cat confdefs.h >>conftest.$ac_ext 13002cat >>conftest.$ac_ext <<_ACEOF 13003/* end confdefs.h. */ 13004#include <ctype.h> 13005#include <stdlib.h> 13006#if ((' ' & 0x0FF) == 0x020) 13007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13009#else 13010# define ISLOWER(c) \ 13011 (('a' <= (c) && (c) <= 'i') \ 13012 || ('j' <= (c) && (c) <= 'r') \ 13013 || ('s' <= (c) && (c) <= 'z')) 13014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13015#endif 13016 13017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13018int 13019main () 13020{ 13021 int i; 13022 for (i = 0; i < 256; i++) 13023 if (XOR (islower (i), ISLOWER (i)) 13024 || toupper (i) != TOUPPER (i)) 13025 return 2; 13026 return 0; 13027} 13028_ACEOF 13029rm -f conftest$ac_exeext 13030if { (ac_try="$ac_link" 13031case "(($ac_try" in 13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13033 *) ac_try_echo=$ac_try;; 13034esac 13035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13036$as_echo "$ac_try_echo") >&5 13037 (eval "$ac_link") 2>&5 13038 ac_status=$? 13039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13041 { (case "(($ac_try" in 13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13043 *) ac_try_echo=$ac_try;; 13044esac 13045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13046$as_echo "$ac_try_echo") >&5 13047 (eval "$ac_try") 2>&5 13048 ac_status=$? 13049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13050 (exit $ac_status); }; }; then 13051 : 13052else 13053 $as_echo "$as_me: program exited with status $ac_status" >&5 13054$as_echo "$as_me: failed program was:" >&5 13055sed 's/^/| /' conftest.$ac_ext >&5 13056 13057( exit $ac_status ) 13058ac_cv_header_stdc=no 13059fi 13060rm -rf conftest.dSYM 13061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13062fi 13063 13064 13065fi 13066fi 13067{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 13068$as_echo "$ac_cv_header_stdc" >&6; } 13069if test $ac_cv_header_stdc = yes; then 13070 13071cat >>confdefs.h <<\_ACEOF 13072#define STDC_HEADERS 1 13073_ACEOF 13074 13075fi 13076 13077 13078# Work out which OS mouse driver we need to build 13079case $host_os in 13080 linux*) 13081 OS_MOUSE_NAME=lnx 13082 ;; 13083 freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*) 13084 OS_MOUSE_NAME=bsd 13085 ;; 13086 solaris*) 13087 OS_MOUSE_NAME=sun 13088 ;; 13089 gnu*) 13090 OS_MOUSE_NAME=hurd 13091 ;; 13092esac 13093 13094 13095 13096 13097# Allow checking code with lint, sparse, etc. 13098 13099# Check whether --with-lint was given. 13100if test "${with_lint+set}" = set; then 13101 withval=$with_lint; use_lint=$withval 13102else 13103 use_lint=no 13104fi 13105 13106if test "x$use_lint" = "xyes" ; then 13107 LINT="lint" 13108else 13109 LINT="$use_lint" 13110fi 13111if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 13112 case $LINT in 13113 lint|*/lint) 13114 case $host_os in 13115 solaris*) 13116 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 13117 ;; 13118 esac 13119 ;; 13120 esac 13121fi 13122 13123 13124 13125 if test x$LINT != xno; then 13126 LINT_TRUE= 13127 LINT_FALSE='#' 13128else 13129 LINT_TRUE='#' 13130 LINT_FALSE= 13131fi 13132 13133 13134 13135 13136if test x$XORG_SGML_PATH = x ; then 13137 XORG_SGML_PATH=$prefix/share/sgml 13138fi 13139HAVE_DEFS_ENT= 13140 13141if test x"$cross_compiling" = x"yes" ; then 13142 HAVE_DEFS_ENT=no 13143else 13144 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh` 13145{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5 13146$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; } 13147if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13148 $as_echo_n "(cached) " >&6 13149else 13150 test "$cross_compiling" = yes && 13151 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13152$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13153 { (exit 1); exit 1; }; } 13154if test -r "$XORG_SGML_PATH/X11/defs.ent"; then 13155 eval "$as_ac_File=yes" 13156else 13157 eval "$as_ac_File=no" 13158fi 13159fi 13160ac_res=`eval 'as_val=${'$as_ac_File'} 13161 $as_echo "$as_val"'` 13162 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13163$as_echo "$ac_res" >&6; } 13164as_val=`eval 'as_val=${'$as_ac_File'} 13165 $as_echo "$as_val"'` 13166 if test "x$as_val" = x""yes; then 13167 HAVE_DEFS_ENT=yes 13168fi 13169 13170fi 13171 13172# Extract the first word of "linuxdoc", so it can be a program name with args. 13173set dummy linuxdoc; ac_word=$2 13174{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13175$as_echo_n "checking for $ac_word... " >&6; } 13176if test "${ac_cv_path_LINUXDOC+set}" = set; then 13177 $as_echo_n "(cached) " >&6 13178else 13179 case $LINUXDOC in 13180 [\\/]* | ?:[\\/]*) 13181 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 13182 ;; 13183 *) 13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13185for as_dir in $PATH 13186do 13187 IFS=$as_save_IFS 13188 test -z "$as_dir" && as_dir=. 13189 for ac_exec_ext in '' $ac_executable_extensions; do 13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13191 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 13192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13193 break 2 13194 fi 13195done 13196done 13197IFS=$as_save_IFS 13198 13199 ;; 13200esac 13201fi 13202LINUXDOC=$ac_cv_path_LINUXDOC 13203if test -n "$LINUXDOC"; then 13204 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5 13205$as_echo "$LINUXDOC" >&6; } 13206else 13207 { $as_echo "$as_me:$LINENO: result: no" >&5 13208$as_echo "no" >&6; } 13209fi 13210 13211 13212# Extract the first word of "ps2pdf", so it can be a program name with args. 13213set dummy ps2pdf; ac_word=$2 13214{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13215$as_echo_n "checking for $ac_word... " >&6; } 13216if test "${ac_cv_path_PS2PDF+set}" = set; then 13217 $as_echo_n "(cached) " >&6 13218else 13219 case $PS2PDF in 13220 [\\/]* | ?:[\\/]*) 13221 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 13222 ;; 13223 *) 13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13225for as_dir in $PATH 13226do 13227 IFS=$as_save_IFS 13228 test -z "$as_dir" && as_dir=. 13229 for ac_exec_ext in '' $ac_executable_extensions; do 13230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13231 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 13232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13233 break 2 13234 fi 13235done 13236done 13237IFS=$as_save_IFS 13238 13239 ;; 13240esac 13241fi 13242PS2PDF=$ac_cv_path_PS2PDF 13243if test -n "$PS2PDF"; then 13244 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5 13245$as_echo "$PS2PDF" >&6; } 13246else 13247 { $as_echo "$as_me:$LINENO: result: no" >&5 13248$as_echo "no" >&6; } 13249fi 13250 13251 13252 13253{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5 13254$as_echo_n "checking Whether to build documentation... " >&6; } 13255 13256if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 13257 BUILDDOC=yes 13258else 13259 BUILDDOC=no 13260fi 13261 13262 if test x$BUILDDOC = xyes; then 13263 BUILD_LINUXDOC_TRUE= 13264 BUILD_LINUXDOC_FALSE='#' 13265else 13266 BUILD_LINUXDOC_TRUE='#' 13267 BUILD_LINUXDOC_FALSE= 13268fi 13269 13270 13271{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5 13272$as_echo "$BUILDDOC" >&6; } 13273 13274{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 13275$as_echo_n "checking Whether to build pdf documentation... " >&6; } 13276 13277if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 13278 BUILDPDFDOC=yes 13279else 13280 BUILDPDFDOC=no 13281fi 13282 13283 if test x$BUILDPDFDOC = xyes; then 13284 BUILD_PDFDOC_TRUE= 13285 BUILD_PDFDOC_FALSE='#' 13286else 13287 BUILD_PDFDOC_TRUE='#' 13288 BUILD_PDFDOC_FALSE= 13289fi 13290 13291 13292{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 13293$as_echo "$BUILDPDFDOC" >&6; } 13294 13295MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 13296MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 13297MAKE_PDF="$PS2PDF" 13298MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 13299 13300 13301 13302 13303 13304 13305 13306ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 13307 13308cat >confcache <<\_ACEOF 13309# This file is a shell script that caches the results of configure 13310# tests run on this system so they can be shared between configure 13311# scripts and configure runs, see configure's option --config-cache. 13312# It is not useful on other systems. If it contains results you don't 13313# want to keep, you may remove or edit it. 13314# 13315# config.status only pays attention to the cache file if you give it 13316# the --recheck option to rerun configure. 13317# 13318# `ac_cv_env_foo' variables (set or unset) will be overridden when 13319# loading this file, other *unset* `ac_cv_foo' will be assigned the 13320# following values. 13321 13322_ACEOF 13323 13324# The following way of writing the cache mishandles newlines in values, 13325# but we know of no workaround that is simple, portable, and efficient. 13326# So, we kill variables containing newlines. 13327# Ultrix sh set writes to stderr and can't be redirected directly, 13328# and sets the high bit in the cache file unless we assign to the vars. 13329( 13330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13331 eval ac_val=\$$ac_var 13332 case $ac_val in #( 13333 *${as_nl}*) 13334 case $ac_var in #( 13335 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13336$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13337 esac 13338 case $ac_var in #( 13339 _ | IFS | as_nl) ;; #( 13340 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13341 *) $as_unset $ac_var ;; 13342 esac ;; 13343 esac 13344 done 13345 13346 (set) 2>&1 | 13347 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13348 *${as_nl}ac_space=\ *) 13349 # `set' does not quote correctly, so add quotes (double-quote 13350 # substitution turns \\\\ into \\, and sed turns \\ into \). 13351 sed -n \ 13352 "s/'/'\\\\''/g; 13353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13354 ;; #( 13355 *) 13356 # `set' quotes correctly as required by POSIX, so do not add quotes. 13357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13358 ;; 13359 esac | 13360 sort 13361) | 13362 sed ' 13363 /^ac_cv_env_/b end 13364 t clear 13365 :clear 13366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13367 t end 13368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13369 :end' >>confcache 13370if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13371 if test -w "$cache_file"; then 13372 test "x$cache_file" != "x/dev/null" && 13373 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13374$as_echo "$as_me: updating cache $cache_file" >&6;} 13375 cat confcache >$cache_file 13376 else 13377 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13378$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13379 fi 13380fi 13381rm -f confcache 13382 13383test "x$prefix" = xNONE && prefix=$ac_default_prefix 13384# Let make expand exec_prefix. 13385test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13386 13387DEFS=-DHAVE_CONFIG_H 13388 13389ac_libobjs= 13390ac_ltlibobjs= 13391for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13392 # 1. Remove the extension, and $U if already installed. 13393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13394 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13396 # will be set to the directory where LIBOBJS objects are built. 13397 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13398 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13399done 13400LIBOBJS=$ac_libobjs 13401 13402LTLIBOBJS=$ac_ltlibobjs 13403 13404 13405 if test -n "$EXEEXT"; then 13406 am__EXEEXT_TRUE= 13407 am__EXEEXT_FALSE='#' 13408else 13409 am__EXEEXT_TRUE='#' 13410 am__EXEEXT_FALSE= 13411fi 13412 13413if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13414 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13415Usually this means the macro was only invoked conditionally." >&5 13416$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13417Usually this means the macro was only invoked conditionally." >&2;} 13418 { (exit 1); exit 1; }; } 13419fi 13420if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13421 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13422Usually this means the macro was only invoked conditionally." >&5 13423$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13424Usually this means the macro was only invoked conditionally." >&2;} 13425 { (exit 1); exit 1; }; } 13426fi 13427if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13428 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13429Usually this means the macro was only invoked conditionally." >&5 13430$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13431Usually this means the macro was only invoked conditionally." >&2;} 13432 { (exit 1); exit 1; }; } 13433fi 13434if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13435 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13436Usually this means the macro was only invoked conditionally." >&5 13437$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13438Usually this means the macro was only invoked conditionally." >&2;} 13439 { (exit 1); exit 1; }; } 13440fi 13441if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 13442 { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 13443Usually this means the macro was only invoked conditionally." >&5 13444$as_echo "$as_me: error: conditional \"LINT\" was never defined. 13445Usually this means the macro was only invoked conditionally." >&2;} 13446 { (exit 1); exit 1; }; } 13447fi 13448if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 13449 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 13450Usually this means the macro was only invoked conditionally." >&5 13451$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 13452Usually this means the macro was only invoked conditionally." >&2;} 13453 { (exit 1); exit 1; }; } 13454fi 13455if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 13456 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 13457Usually this means the macro was only invoked conditionally." >&5 13458$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 13459Usually this means the macro was only invoked conditionally." >&2;} 13460 { (exit 1); exit 1; }; } 13461fi 13462 13463: ${CONFIG_STATUS=./config.status} 13464ac_write_fail=0 13465ac_clean_files_save=$ac_clean_files 13466ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13467{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13468$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13469cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13470#! $SHELL 13471# Generated by $as_me. 13472# Run this file to recreate the current configuration. 13473# Compiler output produced by configure, useful for debugging 13474# configure, is in config.log if it exists. 13475 13476debug=false 13477ac_cs_recheck=false 13478ac_cs_silent=false 13479SHELL=\${CONFIG_SHELL-$SHELL} 13480_ACEOF 13481 13482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13483## --------------------- ## 13484## M4sh Initialization. ## 13485## --------------------- ## 13486 13487# Be more Bourne compatible 13488DUALCASE=1; export DUALCASE # for MKS sh 13489if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13490 emulate sh 13491 NULLCMD=: 13492 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13493 # is contrary to our usage. Disable this feature. 13494 alias -g '${1+"$@"}'='"$@"' 13495 setopt NO_GLOB_SUBST 13496else 13497 case `(set -o) 2>/dev/null` in 13498 *posix*) set -o posix ;; 13499esac 13500 13501fi 13502 13503 13504 13505 13506# PATH needs CR 13507# Avoid depending upon Character Ranges. 13508as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13509as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13510as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13511as_cr_digits='0123456789' 13512as_cr_alnum=$as_cr_Letters$as_cr_digits 13513 13514as_nl=' 13515' 13516export as_nl 13517# Printing a long string crashes Solaris 7 /usr/bin/printf. 13518as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13519as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13520as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13521if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13522 as_echo='printf %s\n' 13523 as_echo_n='printf %s' 13524else 13525 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13526 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13527 as_echo_n='/usr/ucb/echo -n' 13528 else 13529 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13530 as_echo_n_body='eval 13531 arg=$1; 13532 case $arg in 13533 *"$as_nl"*) 13534 expr "X$arg" : "X\\(.*\\)$as_nl"; 13535 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13536 esac; 13537 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13538 ' 13539 export as_echo_n_body 13540 as_echo_n='sh -c $as_echo_n_body as_echo' 13541 fi 13542 export as_echo_body 13543 as_echo='sh -c $as_echo_body as_echo' 13544fi 13545 13546# The user is always right. 13547if test "${PATH_SEPARATOR+set}" != set; then 13548 PATH_SEPARATOR=: 13549 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13550 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13551 PATH_SEPARATOR=';' 13552 } 13553fi 13554 13555# Support unset when possible. 13556if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13557 as_unset=unset 13558else 13559 as_unset=false 13560fi 13561 13562 13563# IFS 13564# We need space, tab and new line, in precisely that order. Quoting is 13565# there to prevent editors from complaining about space-tab. 13566# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13567# splitting by setting IFS to empty value.) 13568IFS=" "" $as_nl" 13569 13570# Find who we are. Look in the path if we contain no directory separator. 13571case $0 in 13572 *[\\/]* ) as_myself=$0 ;; 13573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13574for as_dir in $PATH 13575do 13576 IFS=$as_save_IFS 13577 test -z "$as_dir" && as_dir=. 13578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13579done 13580IFS=$as_save_IFS 13581 13582 ;; 13583esac 13584# We did not find ourselves, most probably we were run as `sh COMMAND' 13585# in which case we are not to be found in the path. 13586if test "x$as_myself" = x; then 13587 as_myself=$0 13588fi 13589if test ! -f "$as_myself"; then 13590 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13591 { (exit 1); exit 1; } 13592fi 13593 13594# Work around bugs in pre-3.0 UWIN ksh. 13595for as_var in ENV MAIL MAILPATH 13596do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13597done 13598PS1='$ ' 13599PS2='> ' 13600PS4='+ ' 13601 13602# NLS nuisances. 13603LC_ALL=C 13604export LC_ALL 13605LANGUAGE=C 13606export LANGUAGE 13607 13608# Required to use basename. 13609if expr a : '\(a\)' >/dev/null 2>&1 && 13610 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13611 as_expr=expr 13612else 13613 as_expr=false 13614fi 13615 13616if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13617 as_basename=basename 13618else 13619 as_basename=false 13620fi 13621 13622 13623# Name of the executable. 13624as_me=`$as_basename -- "$0" || 13625$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13626 X"$0" : 'X\(//\)$' \| \ 13627 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13628$as_echo X/"$0" | 13629 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13630 s//\1/ 13631 q 13632 } 13633 /^X\/\(\/\/\)$/{ 13634 s//\1/ 13635 q 13636 } 13637 /^X\/\(\/\).*/{ 13638 s//\1/ 13639 q 13640 } 13641 s/.*/./; q'` 13642 13643# CDPATH. 13644$as_unset CDPATH 13645 13646 13647 13648 as_lineno_1=$LINENO 13649 as_lineno_2=$LINENO 13650 test "x$as_lineno_1" != "x$as_lineno_2" && 13651 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13652 13653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13654 # uniformly replaced by the line number. The first 'sed' inserts a 13655 # line-number line after each line using $LINENO; the second 'sed' 13656 # does the real work. The second script uses 'N' to pair each 13657 # line-number line with the line containing $LINENO, and appends 13658 # trailing '-' during substitution so that $LINENO is not a special 13659 # case at line end. 13660 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13661 # scripts with optimization help from Paolo Bonzini. Blame Lee 13662 # E. McMahon (1931-1989) for sed's syntax. :-) 13663 sed -n ' 13664 p 13665 /[$]LINENO/= 13666 ' <$as_myself | 13667 sed ' 13668 s/[$]LINENO.*/&-/ 13669 t lineno 13670 b 13671 :lineno 13672 N 13673 :loop 13674 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13675 t loop 13676 s/-\n.*// 13677 ' >$as_me.lineno && 13678 chmod +x "$as_me.lineno" || 13679 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13680 { (exit 1); exit 1; }; } 13681 13682 # Don't try to exec as it changes $[0], causing all sort of problems 13683 # (the dirname of $[0] is not the place where we might find the 13684 # original and so on. Autoconf is especially sensitive to this). 13685 . "./$as_me.lineno" 13686 # Exit status is that of the last command. 13687 exit 13688} 13689 13690 13691if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13692 as_dirname=dirname 13693else 13694 as_dirname=false 13695fi 13696 13697ECHO_C= ECHO_N= ECHO_T= 13698case `echo -n x` in 13699-n*) 13700 case `echo 'x\c'` in 13701 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13702 *) ECHO_C='\c';; 13703 esac;; 13704*) 13705 ECHO_N='-n';; 13706esac 13707if expr a : '\(a\)' >/dev/null 2>&1 && 13708 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13709 as_expr=expr 13710else 13711 as_expr=false 13712fi 13713 13714rm -f conf$$ conf$$.exe conf$$.file 13715if test -d conf$$.dir; then 13716 rm -f conf$$.dir/conf$$.file 13717else 13718 rm -f conf$$.dir 13719 mkdir conf$$.dir 2>/dev/null 13720fi 13721if (echo >conf$$.file) 2>/dev/null; then 13722 if ln -s conf$$.file conf$$ 2>/dev/null; then 13723 as_ln_s='ln -s' 13724 # ... but there are two gotchas: 13725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13727 # In both cases, we have to default to `cp -p'. 13728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13729 as_ln_s='cp -p' 13730 elif ln conf$$.file conf$$ 2>/dev/null; then 13731 as_ln_s=ln 13732 else 13733 as_ln_s='cp -p' 13734 fi 13735else 13736 as_ln_s='cp -p' 13737fi 13738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13739rmdir conf$$.dir 2>/dev/null 13740 13741if mkdir -p . 2>/dev/null; then 13742 as_mkdir_p=: 13743else 13744 test -d ./-p && rmdir ./-p 13745 as_mkdir_p=false 13746fi 13747 13748if test -x / >/dev/null 2>&1; then 13749 as_test_x='test -x' 13750else 13751 if ls -dL / >/dev/null 2>&1; then 13752 as_ls_L_option=L 13753 else 13754 as_ls_L_option= 13755 fi 13756 as_test_x=' 13757 eval sh -c '\'' 13758 if test -d "$1"; then 13759 test -d "$1/."; 13760 else 13761 case $1 in 13762 -*)set "./$1";; 13763 esac; 13764 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13765 ???[sx]*):;;*)false;;esac;fi 13766 '\'' sh 13767 ' 13768fi 13769as_executable_p=$as_test_x 13770 13771# Sed expression to map a string onto a valid CPP name. 13772as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13773 13774# Sed expression to map a string onto a valid variable name. 13775as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13776 13777 13778exec 6>&1 13779 13780# Save the log message, to keep $[0] and so on meaningful, and to 13781# report actual input values of CONFIG_FILES etc. instead of their 13782# values after options handling. 13783ac_log=" 13784This file was extended by xf86-input-mouse $as_me 1.5.0, which was 13785generated by GNU Autoconf 2.63. Invocation command line was 13786 13787 CONFIG_FILES = $CONFIG_FILES 13788 CONFIG_HEADERS = $CONFIG_HEADERS 13789 CONFIG_LINKS = $CONFIG_LINKS 13790 CONFIG_COMMANDS = $CONFIG_COMMANDS 13791 $ $0 $@ 13792 13793on `(hostname || uname -n) 2>/dev/null | sed 1q` 13794" 13795 13796_ACEOF 13797 13798case $ac_config_files in *" 13799"*) set x $ac_config_files; shift; ac_config_files=$*;; 13800esac 13801 13802case $ac_config_headers in *" 13803"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13804esac 13805 13806 13807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13808# Files that config.status was made for. 13809config_files="$ac_config_files" 13810config_headers="$ac_config_headers" 13811config_commands="$ac_config_commands" 13812 13813_ACEOF 13814 13815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13816ac_cs_usage="\ 13817\`$as_me' instantiates files from templates according to the 13818current configuration. 13819 13820Usage: $0 [OPTION]... [FILE]... 13821 13822 -h, --help print this help, then exit 13823 -V, --version print version number and configuration settings, then exit 13824 -q, --quiet, --silent 13825 do not print progress messages 13826 -d, --debug don't remove temporary files 13827 --recheck update $as_me by reconfiguring in the same conditions 13828 --file=FILE[:TEMPLATE] 13829 instantiate the configuration file FILE 13830 --header=FILE[:TEMPLATE] 13831 instantiate the configuration header FILE 13832 13833Configuration files: 13834$config_files 13835 13836Configuration headers: 13837$config_headers 13838 13839Configuration commands: 13840$config_commands 13841 13842Report bugs to <bug-autoconf@gnu.org>." 13843 13844_ACEOF 13845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13846ac_cs_version="\\ 13847xf86-input-mouse config.status 1.5.0 13848configured by $0, generated by GNU Autoconf 2.63, 13849 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13850 13851Copyright (C) 2008 Free Software Foundation, Inc. 13852This config.status script is free software; the Free Software Foundation 13853gives unlimited permission to copy, distribute and modify it." 13854 13855ac_pwd='$ac_pwd' 13856srcdir='$srcdir' 13857INSTALL='$INSTALL' 13858MKDIR_P='$MKDIR_P' 13859AWK='$AWK' 13860test -n "\$AWK" || AWK=awk 13861_ACEOF 13862 13863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13864# The default lists apply if the user does not specify any file. 13865ac_need_defaults=: 13866while test $# != 0 13867do 13868 case $1 in 13869 --*=*) 13870 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13871 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13872 ac_shift=: 13873 ;; 13874 *) 13875 ac_option=$1 13876 ac_optarg=$2 13877 ac_shift=shift 13878 ;; 13879 esac 13880 13881 case $ac_option in 13882 # Handling of the options. 13883 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13884 ac_cs_recheck=: ;; 13885 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13886 $as_echo "$ac_cs_version"; exit ;; 13887 --debug | --debu | --deb | --de | --d | -d ) 13888 debug=: ;; 13889 --file | --fil | --fi | --f ) 13890 $ac_shift 13891 case $ac_optarg in 13892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13893 esac 13894 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13895 ac_need_defaults=false;; 13896 --header | --heade | --head | --hea ) 13897 $ac_shift 13898 case $ac_optarg in 13899 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13900 esac 13901 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13902 ac_need_defaults=false;; 13903 --he | --h) 13904 # Conflict between --help and --header 13905 { $as_echo "$as_me: error: ambiguous option: $1 13906Try \`$0 --help' for more information." >&2 13907 { (exit 1); exit 1; }; };; 13908 --help | --hel | -h ) 13909 $as_echo "$ac_cs_usage"; exit ;; 13910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13911 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13912 ac_cs_silent=: ;; 13913 13914 # This is an error. 13915 -*) { $as_echo "$as_me: error: unrecognized option: $1 13916Try \`$0 --help' for more information." >&2 13917 { (exit 1); exit 1; }; } ;; 13918 13919 *) ac_config_targets="$ac_config_targets $1" 13920 ac_need_defaults=false ;; 13921 13922 esac 13923 shift 13924done 13925 13926ac_configure_extra_args= 13927 13928if $ac_cs_silent; then 13929 exec 6>/dev/null 13930 ac_configure_extra_args="$ac_configure_extra_args --silent" 13931fi 13932 13933_ACEOF 13934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13935if \$ac_cs_recheck; then 13936 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13937 shift 13938 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13939 CONFIG_SHELL='$SHELL' 13940 export CONFIG_SHELL 13941 exec "\$@" 13942fi 13943 13944_ACEOF 13945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13946exec 5>>config.log 13947{ 13948 echo 13949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13950## Running $as_me. ## 13951_ASBOX 13952 $as_echo "$ac_log" 13953} >&5 13954 13955_ACEOF 13956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13957# 13958# INIT-COMMANDS 13959# 13960AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13961 13962 13963# The HP-UX ksh and POSIX shell print the target directory to stdout 13964# if CDPATH is set. 13965(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13966 13967sed_quote_subst='$sed_quote_subst' 13968double_quote_subst='$double_quote_subst' 13969delay_variable_subst='$delay_variable_subst' 13970enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13971macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13972macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13973enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13974pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13975enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13976host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13977host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13978host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13979build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13980build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13981build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13982SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13983Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13984GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13985EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13986FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13987LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13988NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13989LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13990max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13991ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13992exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13993lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13994lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13995lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13996reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13997reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13998OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13999deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14000file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14001AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14002AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14003STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14004RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14005old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14006old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14007old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14008CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14009CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14010compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14011GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14012lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14013lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14014lt_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"`' 14015lt_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"`' 14016objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14017SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14018ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14019MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14020lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14021lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14022lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14023lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14024lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14025need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14026DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14027NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14028LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14029OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14030OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14031libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14032shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14033extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14034archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14035enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14036export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14037whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14038compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14039old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14040old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14041archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14042archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14043module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14044module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14045with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14046allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14047no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14048hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14049hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14050hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14051hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14052hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14053hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14054hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14055hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14056inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14057link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14058fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14059always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14060export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14061exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14062include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14063prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14064file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14065variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14066need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14067need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14068version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14069runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14070shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14071shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14072libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14073library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14074soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14075postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14076postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14077finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14078finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14079hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14080sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14081sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14082hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14083enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14084enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14085enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14086old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14087striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14088 14089LTCC='$LTCC' 14090LTCFLAGS='$LTCFLAGS' 14091compiler='$compiler_DEFAULT' 14092 14093# Quote evaled strings. 14094for var in SED \ 14095GREP \ 14096EGREP \ 14097FGREP \ 14098LD \ 14099NM \ 14100LN_S \ 14101lt_SP2NL \ 14102lt_NL2SP \ 14103reload_flag \ 14104OBJDUMP \ 14105deplibs_check_method \ 14106file_magic_cmd \ 14107AR \ 14108AR_FLAGS \ 14109STRIP \ 14110RANLIB \ 14111CC \ 14112CFLAGS \ 14113compiler \ 14114lt_cv_sys_global_symbol_pipe \ 14115lt_cv_sys_global_symbol_to_cdecl \ 14116lt_cv_sys_global_symbol_to_c_name_address \ 14117lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14118SHELL \ 14119ECHO \ 14120lt_prog_compiler_no_builtin_flag \ 14121lt_prog_compiler_wl \ 14122lt_prog_compiler_pic \ 14123lt_prog_compiler_static \ 14124lt_cv_prog_compiler_c_o \ 14125need_locks \ 14126DSYMUTIL \ 14127NMEDIT \ 14128LIPO \ 14129OTOOL \ 14130OTOOL64 \ 14131shrext_cmds \ 14132export_dynamic_flag_spec \ 14133whole_archive_flag_spec \ 14134compiler_needs_object \ 14135with_gnu_ld \ 14136allow_undefined_flag \ 14137no_undefined_flag \ 14138hardcode_libdir_flag_spec \ 14139hardcode_libdir_flag_spec_ld \ 14140hardcode_libdir_separator \ 14141fix_srcfile_path \ 14142exclude_expsyms \ 14143include_expsyms \ 14144file_list_spec \ 14145variables_saved_for_relink \ 14146libname_spec \ 14147library_names_spec \ 14148soname_spec \ 14149finish_eval \ 14150old_striplib \ 14151striplib; do 14152 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14153 *[\\\\\\\`\\"\\\$]*) 14154 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14155 ;; 14156 *) 14157 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14158 ;; 14159 esac 14160done 14161 14162# Double-quote double-evaled strings. 14163for var in reload_cmds \ 14164old_postinstall_cmds \ 14165old_postuninstall_cmds \ 14166old_archive_cmds \ 14167extract_expsyms_cmds \ 14168old_archive_from_new_cmds \ 14169old_archive_from_expsyms_cmds \ 14170archive_cmds \ 14171archive_expsym_cmds \ 14172module_cmds \ 14173module_expsym_cmds \ 14174export_symbols_cmds \ 14175prelink_cmds \ 14176postinstall_cmds \ 14177postuninstall_cmds \ 14178finish_cmds \ 14179sys_lib_search_path_spec \ 14180sys_lib_dlsearch_path_spec; do 14181 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14182 *[\\\\\\\`\\"\\\$]*) 14183 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14184 ;; 14185 *) 14186 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14187 ;; 14188 esac 14189done 14190 14191# Fix-up fallback echo if it was mangled by the above quoting rules. 14192case \$lt_ECHO in 14193*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14194 ;; 14195esac 14196 14197ac_aux_dir='$ac_aux_dir' 14198xsi_shell='$xsi_shell' 14199lt_shell_append='$lt_shell_append' 14200 14201# See if we are running on zsh, and set the options which allow our 14202# commands through without removal of \ escapes INIT. 14203if test -n "\${ZSH_VERSION+set}" ; then 14204 setopt NO_GLOB_SUBST 14205fi 14206 14207 14208 PACKAGE='$PACKAGE' 14209 VERSION='$VERSION' 14210 TIMESTAMP='$TIMESTAMP' 14211 RM='$RM' 14212 ofile='$ofile' 14213 14214 14215 14216 14217_ACEOF 14218 14219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14220 14221# Handling of arguments. 14222for ac_config_target in $ac_config_targets 14223do 14224 case $ac_config_target in 14225 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14226 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14227 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14228 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14229 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14230 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14231 14232 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14233$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14234 { (exit 1); exit 1; }; };; 14235 esac 14236done 14237 14238 14239# If the user did not use the arguments to specify the items to instantiate, 14240# then the envvar interface is used. Set only those that are not. 14241# We use the long form for the default assignment because of an extremely 14242# bizarre bug on SunOS 4.1.3. 14243if $ac_need_defaults; then 14244 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14245 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14246 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14247fi 14248 14249# Have a temporary directory for convenience. Make it in the build tree 14250# simply because there is no reason against having it here, and in addition, 14251# creating and moving files from /tmp can sometimes cause problems. 14252# Hook for its removal unless debugging. 14253# Note that there is a small window in which the directory will not be cleaned: 14254# after its creation but before its name has been assigned to `$tmp'. 14255$debug || 14256{ 14257 tmp= 14258 trap 'exit_status=$? 14259 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14260' 0 14261 trap '{ (exit 1); exit 1; }' 1 2 13 15 14262} 14263# Create a (secure) tmp directory for tmp files. 14264 14265{ 14266 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14267 test -n "$tmp" && test -d "$tmp" 14268} || 14269{ 14270 tmp=./conf$$-$RANDOM 14271 (umask 077 && mkdir "$tmp") 14272} || 14273{ 14274 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14275 { (exit 1); exit 1; } 14276} 14277 14278# Set up the scripts for CONFIG_FILES section. 14279# No need to generate them if there are no CONFIG_FILES. 14280# This happens for instance with `./config.status config.h'. 14281if test -n "$CONFIG_FILES"; then 14282 14283 14284ac_cr=' 14285' 14286ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14287if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14288 ac_cs_awk_cr='\\r' 14289else 14290 ac_cs_awk_cr=$ac_cr 14291fi 14292 14293echo 'BEGIN {' >"$tmp/subs1.awk" && 14294_ACEOF 14295 14296 14297{ 14298 echo "cat >conf$$subs.awk <<_ACEOF" && 14299 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14300 echo "_ACEOF" 14301} >conf$$subs.sh || 14302 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14303$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14304 { (exit 1); exit 1; }; } 14305ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14306ac_delim='%!_!# ' 14307for ac_last_try in false false false false false :; do 14308 . ./conf$$subs.sh || 14309 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14310$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14311 { (exit 1); exit 1; }; } 14312 14313 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14314 if test $ac_delim_n = $ac_delim_num; then 14315 break 14316 elif $ac_last_try; then 14317 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14318$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14319 { (exit 1); exit 1; }; } 14320 else 14321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14322 fi 14323done 14324rm -f conf$$subs.sh 14325 14326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14327cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14328_ACEOF 14329sed -n ' 14330h 14331s/^/S["/; s/!.*/"]=/ 14332p 14333g 14334s/^[^!]*!// 14335:repl 14336t repl 14337s/'"$ac_delim"'$// 14338t delim 14339:nl 14340h 14341s/\(.\{148\}\).*/\1/ 14342t more1 14343s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14344p 14345n 14346b repl 14347:more1 14348s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14349p 14350g 14351s/.\{148\}// 14352t nl 14353:delim 14354h 14355s/\(.\{148\}\).*/\1/ 14356t more2 14357s/["\\]/\\&/g; s/^/"/; s/$/"/ 14358p 14359b 14360:more2 14361s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14362p 14363g 14364s/.\{148\}// 14365t delim 14366' <conf$$subs.awk | sed ' 14367/^[^""]/{ 14368 N 14369 s/\n// 14370} 14371' >>$CONFIG_STATUS || ac_write_fail=1 14372rm -f conf$$subs.awk 14373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14374_ACAWK 14375cat >>"\$tmp/subs1.awk" <<_ACAWK && 14376 for (key in S) S_is_set[key] = 1 14377 FS = "" 14378 14379} 14380{ 14381 line = $ 0 14382 nfields = split(line, field, "@") 14383 substed = 0 14384 len = length(field[1]) 14385 for (i = 2; i < nfields; i++) { 14386 key = field[i] 14387 keylen = length(key) 14388 if (S_is_set[key]) { 14389 value = S[key] 14390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14391 len += length(value) + length(field[++i]) 14392 substed = 1 14393 } else 14394 len += 1 + keylen 14395 } 14396 14397 print line 14398} 14399 14400_ACAWK 14401_ACEOF 14402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14405else 14406 cat 14407fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14408 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14409$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14410 { (exit 1); exit 1; }; } 14411_ACEOF 14412 14413# VPATH may cause trouble with some makes, so we remove $(srcdir), 14414# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14415# trailing colons and then remove the whole line if VPATH becomes empty 14416# (actually we leave an empty line to preserve line numbers). 14417if test "x$srcdir" = x.; then 14418 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14419s/:*\$(srcdir):*/:/ 14420s/:*\${srcdir}:*/:/ 14421s/:*@srcdir@:*/:/ 14422s/^\([^=]*=[ ]*\):*/\1/ 14423s/:*$// 14424s/^[^=]*=[ ]*$// 14425}' 14426fi 14427 14428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14429fi # test -n "$CONFIG_FILES" 14430 14431# Set up the scripts for CONFIG_HEADERS section. 14432# No need to generate them if there are no CONFIG_HEADERS. 14433# This happens for instance with `./config.status Makefile'. 14434if test -n "$CONFIG_HEADERS"; then 14435cat >"$tmp/defines.awk" <<\_ACAWK || 14436BEGIN { 14437_ACEOF 14438 14439# Transform confdefs.h into an awk script `defines.awk', embedded as 14440# here-document in config.status, that substitutes the proper values into 14441# config.h.in to produce config.h. 14442 14443# Create a delimiter string that does not exist in confdefs.h, to ease 14444# handling of long lines. 14445ac_delim='%!_!# ' 14446for ac_last_try in false false :; do 14447 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14448 if test -z "$ac_t"; then 14449 break 14450 elif $ac_last_try; then 14451 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14452$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14453 { (exit 1); exit 1; }; } 14454 else 14455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14456 fi 14457done 14458 14459# For the awk script, D is an array of macro values keyed by name, 14460# likewise P contains macro parameters if any. Preserve backslash 14461# newline sequences. 14462 14463ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14464sed -n ' 14465s/.\{148\}/&'"$ac_delim"'/g 14466t rset 14467:rset 14468s/^[ ]*#[ ]*define[ ][ ]*/ / 14469t def 14470d 14471:def 14472s/\\$// 14473t bsnl 14474s/["\\]/\\&/g 14475s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14476D["\1"]=" \3"/p 14477s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14478d 14479:bsnl 14480s/["\\]/\\&/g 14481s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14482D["\1"]=" \3\\\\\\n"\\/p 14483t cont 14484s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14485t cont 14486d 14487:cont 14488n 14489s/.\{148\}/&'"$ac_delim"'/g 14490t clear 14491:clear 14492s/\\$// 14493t bsnlc 14494s/["\\]/\\&/g; s/^/"/; s/$/"/p 14495d 14496:bsnlc 14497s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14498b cont 14499' <confdefs.h | sed ' 14500s/'"$ac_delim"'/"\\\ 14501"/g' >>$CONFIG_STATUS || ac_write_fail=1 14502 14503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14504 for (key in D) D_is_set[key] = 1 14505 FS = "" 14506} 14507/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14508 line = \$ 0 14509 split(line, arg, " ") 14510 if (arg[1] == "#") { 14511 defundef = arg[2] 14512 mac1 = arg[3] 14513 } else { 14514 defundef = substr(arg[1], 2) 14515 mac1 = arg[2] 14516 } 14517 split(mac1, mac2, "(") #) 14518 macro = mac2[1] 14519 prefix = substr(line, 1, index(line, defundef) - 1) 14520 if (D_is_set[macro]) { 14521 # Preserve the white space surrounding the "#". 14522 print prefix "define", macro P[macro] D[macro] 14523 next 14524 } else { 14525 # Replace #undef with comments. This is necessary, for example, 14526 # in the case of _POSIX_SOURCE, which is predefined and required 14527 # on some systems where configure will not decide to define it. 14528 if (defundef == "undef") { 14529 print "/*", prefix defundef, macro, "*/" 14530 next 14531 } 14532 } 14533} 14534{ print } 14535_ACAWK 14536_ACEOF 14537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14538 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14539$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14540 { (exit 1); exit 1; }; } 14541fi # test -n "$CONFIG_HEADERS" 14542 14543 14544eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14545shift 14546for ac_tag 14547do 14548 case $ac_tag in 14549 :[FHLC]) ac_mode=$ac_tag; continue;; 14550 esac 14551 case $ac_mode$ac_tag in 14552 :[FHL]*:*);; 14553 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14554$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14555 { (exit 1); exit 1; }; };; 14556 :[FH]-) ac_tag=-:-;; 14557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14558 esac 14559 ac_save_IFS=$IFS 14560 IFS=: 14561 set x $ac_tag 14562 IFS=$ac_save_IFS 14563 shift 14564 ac_file=$1 14565 shift 14566 14567 case $ac_mode in 14568 :L) ac_source=$1;; 14569 :[FH]) 14570 ac_file_inputs= 14571 for ac_f 14572 do 14573 case $ac_f in 14574 -) ac_f="$tmp/stdin";; 14575 *) # Look for the file first in the build tree, then in the source tree 14576 # (if the path is not absolute). The absolute path cannot be DOS-style, 14577 # because $ac_f cannot contain `:'. 14578 test -f "$ac_f" || 14579 case $ac_f in 14580 [\\/$]*) false;; 14581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14582 esac || 14583 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14584$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14585 { (exit 1); exit 1; }; };; 14586 esac 14587 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14588 ac_file_inputs="$ac_file_inputs '$ac_f'" 14589 done 14590 14591 # Let's still pretend it is `configure' which instantiates (i.e., don't 14592 # use $as_me), people would be surprised to read: 14593 # /* config.h. Generated by config.status. */ 14594 configure_input='Generated from '` 14595 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14596 `' by configure.' 14597 if test x"$ac_file" != x-; then 14598 configure_input="$ac_file. $configure_input" 14599 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14600$as_echo "$as_me: creating $ac_file" >&6;} 14601 fi 14602 # Neutralize special characters interpreted by sed in replacement strings. 14603 case $configure_input in #( 14604 *\&* | *\|* | *\\* ) 14605 ac_sed_conf_input=`$as_echo "$configure_input" | 14606 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14607 *) ac_sed_conf_input=$configure_input;; 14608 esac 14609 14610 case $ac_tag in 14611 *:-:* | *:-) cat >"$tmp/stdin" \ 14612 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14613$as_echo "$as_me: error: could not create $ac_file" >&2;} 14614 { (exit 1); exit 1; }; } ;; 14615 esac 14616 ;; 14617 esac 14618 14619 ac_dir=`$as_dirname -- "$ac_file" || 14620$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14621 X"$ac_file" : 'X\(//\)[^/]' \| \ 14622 X"$ac_file" : 'X\(//\)$' \| \ 14623 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14624$as_echo X"$ac_file" | 14625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14626 s//\1/ 14627 q 14628 } 14629 /^X\(\/\/\)[^/].*/{ 14630 s//\1/ 14631 q 14632 } 14633 /^X\(\/\/\)$/{ 14634 s//\1/ 14635 q 14636 } 14637 /^X\(\/\).*/{ 14638 s//\1/ 14639 q 14640 } 14641 s/.*/./; q'` 14642 { as_dir="$ac_dir" 14643 case $as_dir in #( 14644 -*) as_dir=./$as_dir;; 14645 esac 14646 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14647 as_dirs= 14648 while :; do 14649 case $as_dir in #( 14650 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14651 *) as_qdir=$as_dir;; 14652 esac 14653 as_dirs="'$as_qdir' $as_dirs" 14654 as_dir=`$as_dirname -- "$as_dir" || 14655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14656 X"$as_dir" : 'X\(//\)[^/]' \| \ 14657 X"$as_dir" : 'X\(//\)$' \| \ 14658 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14659$as_echo X"$as_dir" | 14660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14661 s//\1/ 14662 q 14663 } 14664 /^X\(\/\/\)[^/].*/{ 14665 s//\1/ 14666 q 14667 } 14668 /^X\(\/\/\)$/{ 14669 s//\1/ 14670 q 14671 } 14672 /^X\(\/\).*/{ 14673 s//\1/ 14674 q 14675 } 14676 s/.*/./; q'` 14677 test -d "$as_dir" && break 14678 done 14679 test -z "$as_dirs" || eval "mkdir $as_dirs" 14680 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14681$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14682 { (exit 1); exit 1; }; }; } 14683 ac_builddir=. 14684 14685case "$ac_dir" in 14686.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14687*) 14688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14689 # A ".." for each directory in $ac_dir_suffix. 14690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14691 case $ac_top_builddir_sub in 14692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14694 esac ;; 14695esac 14696ac_abs_top_builddir=$ac_pwd 14697ac_abs_builddir=$ac_pwd$ac_dir_suffix 14698# for backward compatibility: 14699ac_top_builddir=$ac_top_build_prefix 14700 14701case $srcdir in 14702 .) # We are building in place. 14703 ac_srcdir=. 14704 ac_top_srcdir=$ac_top_builddir_sub 14705 ac_abs_top_srcdir=$ac_pwd ;; 14706 [\\/]* | ?:[\\/]* ) # Absolute name. 14707 ac_srcdir=$srcdir$ac_dir_suffix; 14708 ac_top_srcdir=$srcdir 14709 ac_abs_top_srcdir=$srcdir ;; 14710 *) # Relative name. 14711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14712 ac_top_srcdir=$ac_top_build_prefix$srcdir 14713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14714esac 14715ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14716 14717 14718 case $ac_mode in 14719 :F) 14720 # 14721 # CONFIG_FILE 14722 # 14723 14724 case $INSTALL in 14725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14726 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14727 esac 14728 ac_MKDIR_P=$MKDIR_P 14729 case $MKDIR_P in 14730 [\\/$]* | ?:[\\/]* ) ;; 14731 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14732 esac 14733_ACEOF 14734 14735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14736# If the template does not know about datarootdir, expand it. 14737# FIXME: This hack should be removed a few years after 2.60. 14738ac_datarootdir_hack=; ac_datarootdir_seen= 14739 14740ac_sed_dataroot=' 14741/datarootdir/ { 14742 p 14743 q 14744} 14745/@datadir@/p 14746/@docdir@/p 14747/@infodir@/p 14748/@localedir@/p 14749/@mandir@/p 14750' 14751case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14752*datarootdir*) ac_datarootdir_seen=yes;; 14753*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14754 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14755$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14756_ACEOF 14757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14758 ac_datarootdir_hack=' 14759 s&@datadir@&$datadir&g 14760 s&@docdir@&$docdir&g 14761 s&@infodir@&$infodir&g 14762 s&@localedir@&$localedir&g 14763 s&@mandir@&$mandir&g 14764 s&\\\${datarootdir}&$datarootdir&g' ;; 14765esac 14766_ACEOF 14767 14768# Neutralize VPATH when `$srcdir' = `.'. 14769# Shell code in configure.ac might set extrasub. 14770# FIXME: do we really want to maintain this feature? 14771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14772ac_sed_extra="$ac_vpsub 14773$extrasub 14774_ACEOF 14775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14776:t 14777/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14778s|@configure_input@|$ac_sed_conf_input|;t t 14779s&@top_builddir@&$ac_top_builddir_sub&;t t 14780s&@top_build_prefix@&$ac_top_build_prefix&;t t 14781s&@srcdir@&$ac_srcdir&;t t 14782s&@abs_srcdir@&$ac_abs_srcdir&;t t 14783s&@top_srcdir@&$ac_top_srcdir&;t t 14784s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14785s&@builddir@&$ac_builddir&;t t 14786s&@abs_builddir@&$ac_abs_builddir&;t t 14787s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14788s&@INSTALL@&$ac_INSTALL&;t t 14789s&@MKDIR_P@&$ac_MKDIR_P&;t t 14790$ac_datarootdir_hack 14791" 14792eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14793 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14794$as_echo "$as_me: error: could not create $ac_file" >&2;} 14795 { (exit 1); exit 1; }; } 14796 14797test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14798 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14799 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14800 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14801which seems to be undefined. Please make sure it is defined." >&5 14802$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14803which seems to be undefined. Please make sure it is defined." >&2;} 14804 14805 rm -f "$tmp/stdin" 14806 case $ac_file in 14807 -) cat "$tmp/out" && rm -f "$tmp/out";; 14808 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14809 esac \ 14810 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14811$as_echo "$as_me: error: could not create $ac_file" >&2;} 14812 { (exit 1); exit 1; }; } 14813 ;; 14814 :H) 14815 # 14816 # CONFIG_HEADER 14817 # 14818 if test x"$ac_file" != x-; then 14819 { 14820 $as_echo "/* $configure_input */" \ 14821 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14822 } >"$tmp/config.h" \ 14823 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14824$as_echo "$as_me: error: could not create $ac_file" >&2;} 14825 { (exit 1); exit 1; }; } 14826 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14827 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14828$as_echo "$as_me: $ac_file is unchanged" >&6;} 14829 else 14830 rm -f "$ac_file" 14831 mv "$tmp/config.h" "$ac_file" \ 14832 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14833$as_echo "$as_me: error: could not create $ac_file" >&2;} 14834 { (exit 1); exit 1; }; } 14835 fi 14836 else 14837 $as_echo "/* $configure_input */" \ 14838 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14839 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14840$as_echo "$as_me: error: could not create -" >&2;} 14841 { (exit 1); exit 1; }; } 14842 fi 14843# Compute "$ac_file"'s index in $config_headers. 14844_am_arg="$ac_file" 14845_am_stamp_count=1 14846for _am_header in $config_headers :; do 14847 case $_am_header in 14848 $_am_arg | $_am_arg:* ) 14849 break ;; 14850 * ) 14851 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14852 esac 14853done 14854echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14855$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14856 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14857 X"$_am_arg" : 'X\(//\)$' \| \ 14858 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14859$as_echo X"$_am_arg" | 14860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14861 s//\1/ 14862 q 14863 } 14864 /^X\(\/\/\)[^/].*/{ 14865 s//\1/ 14866 q 14867 } 14868 /^X\(\/\/\)$/{ 14869 s//\1/ 14870 q 14871 } 14872 /^X\(\/\).*/{ 14873 s//\1/ 14874 q 14875 } 14876 s/.*/./; q'`/stamp-h$_am_stamp_count 14877 ;; 14878 14879 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14880$as_echo "$as_me: executing $ac_file commands" >&6;} 14881 ;; 14882 esac 14883 14884 14885 case $ac_file$ac_mode in 14886 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14887 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14888 # are listed without --file. Let's play safe and only enable the eval 14889 # if we detect the quoting. 14890 case $CONFIG_FILES in 14891 *\'*) eval set x "$CONFIG_FILES" ;; 14892 *) set x $CONFIG_FILES ;; 14893 esac 14894 shift 14895 for mf 14896 do 14897 # Strip MF so we end up with the name of the file. 14898 mf=`echo "$mf" | sed -e 's/:.*$//'` 14899 # Check whether this is an Automake generated Makefile or not. 14900 # We used to match only the files named `Makefile.in', but 14901 # some people rename them; so instead we look at the file content. 14902 # Grep'ing the first line is not enough: some people post-process 14903 # each Makefile.in and add a new line on top of each file to say so. 14904 # Grep'ing the whole file is not good either: AIX grep has a line 14905 # limit of 2048, but all sed's we know have understand at least 4000. 14906 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14907 dirpart=`$as_dirname -- "$mf" || 14908$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14909 X"$mf" : 'X\(//\)[^/]' \| \ 14910 X"$mf" : 'X\(//\)$' \| \ 14911 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14912$as_echo X"$mf" | 14913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14914 s//\1/ 14915 q 14916 } 14917 /^X\(\/\/\)[^/].*/{ 14918 s//\1/ 14919 q 14920 } 14921 /^X\(\/\/\)$/{ 14922 s//\1/ 14923 q 14924 } 14925 /^X\(\/\).*/{ 14926 s//\1/ 14927 q 14928 } 14929 s/.*/./; q'` 14930 else 14931 continue 14932 fi 14933 # Extract the definition of DEPDIR, am__include, and am__quote 14934 # from the Makefile without running `make'. 14935 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14936 test -z "$DEPDIR" && continue 14937 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14938 test -z "am__include" && continue 14939 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14940 # When using ansi2knr, U may be empty or an underscore; expand it 14941 U=`sed -n 's/^U = //p' < "$mf"` 14942 # Find all dependency output files, they are included files with 14943 # $(DEPDIR) in their names. We invoke sed twice because it is the 14944 # simplest approach to changing $(DEPDIR) to its actual value in the 14945 # expansion. 14946 for file in `sed -n " 14947 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14948 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14949 # Make sure the directory exists. 14950 test -f "$dirpart/$file" && continue 14951 fdir=`$as_dirname -- "$file" || 14952$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14953 X"$file" : 'X\(//\)[^/]' \| \ 14954 X"$file" : 'X\(//\)$' \| \ 14955 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14956$as_echo X"$file" | 14957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14958 s//\1/ 14959 q 14960 } 14961 /^X\(\/\/\)[^/].*/{ 14962 s//\1/ 14963 q 14964 } 14965 /^X\(\/\/\)$/{ 14966 s//\1/ 14967 q 14968 } 14969 /^X\(\/\).*/{ 14970 s//\1/ 14971 q 14972 } 14973 s/.*/./; q'` 14974 { as_dir=$dirpart/$fdir 14975 case $as_dir in #( 14976 -*) as_dir=./$as_dir;; 14977 esac 14978 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14979 as_dirs= 14980 while :; do 14981 case $as_dir in #( 14982 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14983 *) as_qdir=$as_dir;; 14984 esac 14985 as_dirs="'$as_qdir' $as_dirs" 14986 as_dir=`$as_dirname -- "$as_dir" || 14987$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14988 X"$as_dir" : 'X\(//\)[^/]' \| \ 14989 X"$as_dir" : 'X\(//\)$' \| \ 14990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14991$as_echo X"$as_dir" | 14992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14993 s//\1/ 14994 q 14995 } 14996 /^X\(\/\/\)[^/].*/{ 14997 s//\1/ 14998 q 14999 } 15000 /^X\(\/\/\)$/{ 15001 s//\1/ 15002 q 15003 } 15004 /^X\(\/\).*/{ 15005 s//\1/ 15006 q 15007 } 15008 s/.*/./; q'` 15009 test -d "$as_dir" && break 15010 done 15011 test -z "$as_dirs" || eval "mkdir $as_dirs" 15012 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15013$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15014 { (exit 1); exit 1; }; }; } 15015 # echo "creating $dirpart/$file" 15016 echo '# dummy' > "$dirpart/$file" 15017 done 15018 done 15019} 15020 ;; 15021 "libtool":C) 15022 15023 # See if we are running on zsh, and set the options which allow our 15024 # commands through without removal of \ escapes. 15025 if test -n "${ZSH_VERSION+set}" ; then 15026 setopt NO_GLOB_SUBST 15027 fi 15028 15029 cfgfile="${ofile}T" 15030 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15031 $RM "$cfgfile" 15032 15033 cat <<_LT_EOF >> "$cfgfile" 15034#! $SHELL 15035 15036# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15037# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15038# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15039# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15040# 15041# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15042# 2006, 2007, 2008 Free Software Foundation, Inc. 15043# Written by Gordon Matzigkeit, 1996 15044# 15045# This file is part of GNU Libtool. 15046# 15047# GNU Libtool is free software; you can redistribute it and/or 15048# modify it under the terms of the GNU General Public License as 15049# published by the Free Software Foundation; either version 2 of 15050# the License, or (at your option) any later version. 15051# 15052# As a special exception to the GNU General Public License, 15053# if you distribute this file as part of a program or library that 15054# is built using GNU Libtool, you may include this file under the 15055# same distribution terms that you use for the rest of that program. 15056# 15057# GNU Libtool is distributed in the hope that it will be useful, 15058# but WITHOUT ANY WARRANTY; without even the implied warranty of 15059# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15060# GNU General Public License for more details. 15061# 15062# You should have received a copy of the GNU General Public License 15063# along with GNU Libtool; see the file COPYING. If not, a copy 15064# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15065# obtained by writing to the Free Software Foundation, Inc., 15066# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15067 15068 15069# The names of the tagged configurations supported by this script. 15070available_tags="" 15071 15072# ### BEGIN LIBTOOL CONFIG 15073 15074# Whether or not to build static libraries. 15075build_old_libs=$enable_static 15076 15077# Which release of libtool.m4 was used? 15078macro_version=$macro_version 15079macro_revision=$macro_revision 15080 15081# Whether or not to build shared libraries. 15082build_libtool_libs=$enable_shared 15083 15084# What type of objects to build. 15085pic_mode=$pic_mode 15086 15087# Whether or not to optimize for fast installation. 15088fast_install=$enable_fast_install 15089 15090# The host system. 15091host_alias=$host_alias 15092host=$host 15093host_os=$host_os 15094 15095# The build system. 15096build_alias=$build_alias 15097build=$build 15098build_os=$build_os 15099 15100# A sed program that does not truncate output. 15101SED=$lt_SED 15102 15103# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15104Xsed="\$SED -e 1s/^X//" 15105 15106# A grep program that handles long lines. 15107GREP=$lt_GREP 15108 15109# An ERE matcher. 15110EGREP=$lt_EGREP 15111 15112# A literal string matcher. 15113FGREP=$lt_FGREP 15114 15115# A BSD- or MS-compatible name lister. 15116NM=$lt_NM 15117 15118# Whether we need soft or hard links. 15119LN_S=$lt_LN_S 15120 15121# What is the maximum length of a command? 15122max_cmd_len=$max_cmd_len 15123 15124# Object file suffix (normally "o"). 15125objext=$ac_objext 15126 15127# Executable file suffix (normally ""). 15128exeext=$exeext 15129 15130# whether the shell understands "unset". 15131lt_unset=$lt_unset 15132 15133# turn spaces into newlines. 15134SP2NL=$lt_lt_SP2NL 15135 15136# turn newlines into spaces. 15137NL2SP=$lt_lt_NL2SP 15138 15139# How to create reloadable object files. 15140reload_flag=$lt_reload_flag 15141reload_cmds=$lt_reload_cmds 15142 15143# An object symbol dumper. 15144OBJDUMP=$lt_OBJDUMP 15145 15146# Method to check whether dependent libraries are shared objects. 15147deplibs_check_method=$lt_deplibs_check_method 15148 15149# Command to use when deplibs_check_method == "file_magic". 15150file_magic_cmd=$lt_file_magic_cmd 15151 15152# The archiver. 15153AR=$lt_AR 15154AR_FLAGS=$lt_AR_FLAGS 15155 15156# A symbol stripping program. 15157STRIP=$lt_STRIP 15158 15159# Commands used to install an old-style archive. 15160RANLIB=$lt_RANLIB 15161old_postinstall_cmds=$lt_old_postinstall_cmds 15162old_postuninstall_cmds=$lt_old_postuninstall_cmds 15163 15164# A C compiler. 15165LTCC=$lt_CC 15166 15167# LTCC compiler flags. 15168LTCFLAGS=$lt_CFLAGS 15169 15170# Take the output of nm and produce a listing of raw symbols and C names. 15171global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15172 15173# Transform the output of nm in a proper C declaration. 15174global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15175 15176# Transform the output of nm in a C name address pair. 15177global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15178 15179# Transform the output of nm in a C name address pair when lib prefix is needed. 15180global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15181 15182# The name of the directory that contains temporary libtool files. 15183objdir=$objdir 15184 15185# Shell to use when invoking shell scripts. 15186SHELL=$lt_SHELL 15187 15188# An echo program that does not interpret backslashes. 15189ECHO=$lt_ECHO 15190 15191# Used to examine libraries when file_magic_cmd begins with "file". 15192MAGIC_CMD=$MAGIC_CMD 15193 15194# Must we lock files when doing compilation? 15195need_locks=$lt_need_locks 15196 15197# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15198DSYMUTIL=$lt_DSYMUTIL 15199 15200# Tool to change global to local symbols on Mac OS X. 15201NMEDIT=$lt_NMEDIT 15202 15203# Tool to manipulate fat objects and archives on Mac OS X. 15204LIPO=$lt_LIPO 15205 15206# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15207OTOOL=$lt_OTOOL 15208 15209# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15210OTOOL64=$lt_OTOOL64 15211 15212# Old archive suffix (normally "a"). 15213libext=$libext 15214 15215# Shared library suffix (normally ".so"). 15216shrext_cmds=$lt_shrext_cmds 15217 15218# The commands to extract the exported symbol list from a shared archive. 15219extract_expsyms_cmds=$lt_extract_expsyms_cmds 15220 15221# Variables whose values should be saved in libtool wrapper scripts and 15222# restored at link time. 15223variables_saved_for_relink=$lt_variables_saved_for_relink 15224 15225# Do we need the "lib" prefix for modules? 15226need_lib_prefix=$need_lib_prefix 15227 15228# Do we need a version for libraries? 15229need_version=$need_version 15230 15231# Library versioning type. 15232version_type=$version_type 15233 15234# Shared library runtime path variable. 15235runpath_var=$runpath_var 15236 15237# Shared library path variable. 15238shlibpath_var=$shlibpath_var 15239 15240# Is shlibpath searched before the hard-coded library search path? 15241shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15242 15243# Format of library name prefix. 15244libname_spec=$lt_libname_spec 15245 15246# List of archive names. First name is the real one, the rest are links. 15247# The last name is the one that the linker finds with -lNAME 15248library_names_spec=$lt_library_names_spec 15249 15250# The coded name of the library, if different from the real name. 15251soname_spec=$lt_soname_spec 15252 15253# Command to use after installation of a shared archive. 15254postinstall_cmds=$lt_postinstall_cmds 15255 15256# Command to use after uninstallation of a shared archive. 15257postuninstall_cmds=$lt_postuninstall_cmds 15258 15259# Commands used to finish a libtool library installation in a directory. 15260finish_cmds=$lt_finish_cmds 15261 15262# As "finish_cmds", except a single script fragment to be evaled but 15263# not shown. 15264finish_eval=$lt_finish_eval 15265 15266# Whether we should hardcode library paths into libraries. 15267hardcode_into_libs=$hardcode_into_libs 15268 15269# Compile-time system search path for libraries. 15270sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15271 15272# Run-time system search path for libraries. 15273sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15274 15275# Whether dlopen is supported. 15276dlopen_support=$enable_dlopen 15277 15278# Whether dlopen of programs is supported. 15279dlopen_self=$enable_dlopen_self 15280 15281# Whether dlopen of statically linked programs is supported. 15282dlopen_self_static=$enable_dlopen_self_static 15283 15284# Commands to strip libraries. 15285old_striplib=$lt_old_striplib 15286striplib=$lt_striplib 15287 15288 15289# The linker used to build libraries. 15290LD=$lt_LD 15291 15292# Commands used to build an old-style archive. 15293old_archive_cmds=$lt_old_archive_cmds 15294 15295# A language specific compiler. 15296CC=$lt_compiler 15297 15298# Is the compiler the GNU compiler? 15299with_gcc=$GCC 15300 15301# Compiler flag to turn off builtin functions. 15302no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15303 15304# How to pass a linker flag through the compiler. 15305wl=$lt_lt_prog_compiler_wl 15306 15307# Additional compiler flags for building library objects. 15308pic_flag=$lt_lt_prog_compiler_pic 15309 15310# Compiler flag to prevent dynamic linking. 15311link_static_flag=$lt_lt_prog_compiler_static 15312 15313# Does compiler simultaneously support -c and -o options? 15314compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15315 15316# Whether or not to add -lc for building shared libraries. 15317build_libtool_need_lc=$archive_cmds_need_lc 15318 15319# Whether or not to disallow shared libs when runtime libs are static. 15320allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15321 15322# Compiler flag to allow reflexive dlopens. 15323export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15324 15325# Compiler flag to generate shared objects directly from archives. 15326whole_archive_flag_spec=$lt_whole_archive_flag_spec 15327 15328# Whether the compiler copes with passing no objects directly. 15329compiler_needs_object=$lt_compiler_needs_object 15330 15331# Create an old-style archive from a shared archive. 15332old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15333 15334# Create a temporary old-style archive to link instead of a shared archive. 15335old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15336 15337# Commands used to build a shared archive. 15338archive_cmds=$lt_archive_cmds 15339archive_expsym_cmds=$lt_archive_expsym_cmds 15340 15341# Commands used to build a loadable module if different from building 15342# a shared archive. 15343module_cmds=$lt_module_cmds 15344module_expsym_cmds=$lt_module_expsym_cmds 15345 15346# Whether we are building with GNU ld or not. 15347with_gnu_ld=$lt_with_gnu_ld 15348 15349# Flag that allows shared libraries with undefined symbols to be built. 15350allow_undefined_flag=$lt_allow_undefined_flag 15351 15352# Flag that enforces no undefined symbols. 15353no_undefined_flag=$lt_no_undefined_flag 15354 15355# Flag to hardcode \$libdir into a binary during linking. 15356# This must work even if \$libdir does not exist 15357hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15358 15359# If ld is used when linking, flag to hardcode \$libdir into a binary 15360# during linking. This must work even if \$libdir does not exist. 15361hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15362 15363# Whether we need a single "-rpath" flag with a separated argument. 15364hardcode_libdir_separator=$lt_hardcode_libdir_separator 15365 15366# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15367# DIR into the resulting binary. 15368hardcode_direct=$hardcode_direct 15369 15370# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15371# DIR into the resulting binary and the resulting library dependency is 15372# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15373# library is relocated. 15374hardcode_direct_absolute=$hardcode_direct_absolute 15375 15376# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15377# into the resulting binary. 15378hardcode_minus_L=$hardcode_minus_L 15379 15380# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15381# into the resulting binary. 15382hardcode_shlibpath_var=$hardcode_shlibpath_var 15383 15384# Set to "yes" if building a shared library automatically hardcodes DIR 15385# into the library and all subsequent libraries and executables linked 15386# against it. 15387hardcode_automatic=$hardcode_automatic 15388 15389# Set to yes if linker adds runtime paths of dependent libraries 15390# to runtime path list. 15391inherit_rpath=$inherit_rpath 15392 15393# Whether libtool must link a program against all its dependency libraries. 15394link_all_deplibs=$link_all_deplibs 15395 15396# Fix the shell variable \$srcfile for the compiler. 15397fix_srcfile_path=$lt_fix_srcfile_path 15398 15399# Set to "yes" if exported symbols are required. 15400always_export_symbols=$always_export_symbols 15401 15402# The commands to list exported symbols. 15403export_symbols_cmds=$lt_export_symbols_cmds 15404 15405# Symbols that should not be listed in the preloaded symbols. 15406exclude_expsyms=$lt_exclude_expsyms 15407 15408# Symbols that must always be exported. 15409include_expsyms=$lt_include_expsyms 15410 15411# Commands necessary for linking programs (against libraries) with templates. 15412prelink_cmds=$lt_prelink_cmds 15413 15414# Specify filename containing input files. 15415file_list_spec=$lt_file_list_spec 15416 15417# How to hardcode a shared library path into an executable. 15418hardcode_action=$hardcode_action 15419 15420# ### END LIBTOOL CONFIG 15421 15422_LT_EOF 15423 15424 case $host_os in 15425 aix3*) 15426 cat <<\_LT_EOF >> "$cfgfile" 15427# AIX sometimes has problems with the GCC collect2 program. For some 15428# reason, if we set the COLLECT_NAMES environment variable, the problems 15429# vanish in a puff of smoke. 15430if test "X${COLLECT_NAMES+set}" != Xset; then 15431 COLLECT_NAMES= 15432 export COLLECT_NAMES 15433fi 15434_LT_EOF 15435 ;; 15436 esac 15437 15438 15439ltmain="$ac_aux_dir/ltmain.sh" 15440 15441 15442 # We use sed instead of cat because bash on DJGPP gets confused if 15443 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15444 # text mode, it properly converts lines to CR/LF. This bash problem 15445 # is reportedly fixed, but why not run on old versions too? 15446 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15447 || (rm -f "$cfgfile"; exit 1) 15448 15449 case $xsi_shell in 15450 yes) 15451 cat << \_LT_EOF >> "$cfgfile" 15452 15453# func_dirname file append nondir_replacement 15454# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15455# otherwise set result to NONDIR_REPLACEMENT. 15456func_dirname () 15457{ 15458 case ${1} in 15459 */*) func_dirname_result="${1%/*}${2}" ;; 15460 * ) func_dirname_result="${3}" ;; 15461 esac 15462} 15463 15464# func_basename file 15465func_basename () 15466{ 15467 func_basename_result="${1##*/}" 15468} 15469 15470# func_dirname_and_basename file append nondir_replacement 15471# perform func_basename and func_dirname in a single function 15472# call: 15473# dirname: Compute the dirname of FILE. If nonempty, 15474# add APPEND to the result, otherwise set result 15475# to NONDIR_REPLACEMENT. 15476# value returned in "$func_dirname_result" 15477# basename: Compute filename of FILE. 15478# value retuned in "$func_basename_result" 15479# Implementation must be kept synchronized with func_dirname 15480# and func_basename. For efficiency, we do not delegate to 15481# those functions but instead duplicate the functionality here. 15482func_dirname_and_basename () 15483{ 15484 case ${1} in 15485 */*) func_dirname_result="${1%/*}${2}" ;; 15486 * ) func_dirname_result="${3}" ;; 15487 esac 15488 func_basename_result="${1##*/}" 15489} 15490 15491# func_stripname prefix suffix name 15492# strip PREFIX and SUFFIX off of NAME. 15493# PREFIX and SUFFIX must not contain globbing or regex special 15494# characters, hashes, percent signs, but SUFFIX may contain a leading 15495# dot (in which case that matches only a dot). 15496func_stripname () 15497{ 15498 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15499 # positional parameters, so assign one to ordinary parameter first. 15500 func_stripname_result=${3} 15501 func_stripname_result=${func_stripname_result#"${1}"} 15502 func_stripname_result=${func_stripname_result%"${2}"} 15503} 15504 15505# func_opt_split 15506func_opt_split () 15507{ 15508 func_opt_split_opt=${1%%=*} 15509 func_opt_split_arg=${1#*=} 15510} 15511 15512# func_lo2o object 15513func_lo2o () 15514{ 15515 case ${1} in 15516 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15517 *) func_lo2o_result=${1} ;; 15518 esac 15519} 15520 15521# func_xform libobj-or-source 15522func_xform () 15523{ 15524 func_xform_result=${1%.*}.lo 15525} 15526 15527# func_arith arithmetic-term... 15528func_arith () 15529{ 15530 func_arith_result=$(( $* )) 15531} 15532 15533# func_len string 15534# STRING may not start with a hyphen. 15535func_len () 15536{ 15537 func_len_result=${#1} 15538} 15539 15540_LT_EOF 15541 ;; 15542 *) # Bourne compatible functions. 15543 cat << \_LT_EOF >> "$cfgfile" 15544 15545# func_dirname file append nondir_replacement 15546# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15547# otherwise set result to NONDIR_REPLACEMENT. 15548func_dirname () 15549{ 15550 # Extract subdirectory from the argument. 15551 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15552 if test "X$func_dirname_result" = "X${1}"; then 15553 func_dirname_result="${3}" 15554 else 15555 func_dirname_result="$func_dirname_result${2}" 15556 fi 15557} 15558 15559# func_basename file 15560func_basename () 15561{ 15562 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15563} 15564 15565 15566# func_stripname prefix suffix name 15567# strip PREFIX and SUFFIX off of NAME. 15568# PREFIX and SUFFIX must not contain globbing or regex special 15569# characters, hashes, percent signs, but SUFFIX may contain a leading 15570# dot (in which case that matches only a dot). 15571# func_strip_suffix prefix name 15572func_stripname () 15573{ 15574 case ${2} in 15575 .*) func_stripname_result=`$ECHO "X${3}" \ 15576 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15577 *) func_stripname_result=`$ECHO "X${3}" \ 15578 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15579 esac 15580} 15581 15582# sed scripts: 15583my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15584my_sed_long_arg='1s/^-[^=]*=//' 15585 15586# func_opt_split 15587func_opt_split () 15588{ 15589 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15590 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15591} 15592 15593# func_lo2o object 15594func_lo2o () 15595{ 15596 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15597} 15598 15599# func_xform libobj-or-source 15600func_xform () 15601{ 15602 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15603} 15604 15605# func_arith arithmetic-term... 15606func_arith () 15607{ 15608 func_arith_result=`expr "$@"` 15609} 15610 15611# func_len string 15612# STRING may not start with a hyphen. 15613func_len () 15614{ 15615 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15616} 15617 15618_LT_EOF 15619esac 15620 15621case $lt_shell_append in 15622 yes) 15623 cat << \_LT_EOF >> "$cfgfile" 15624 15625# func_append var value 15626# Append VALUE to the end of shell variable VAR. 15627func_append () 15628{ 15629 eval "$1+=\$2" 15630} 15631_LT_EOF 15632 ;; 15633 *) 15634 cat << \_LT_EOF >> "$cfgfile" 15635 15636# func_append var value 15637# Append VALUE to the end of shell variable VAR. 15638func_append () 15639{ 15640 eval "$1=\$$1\$2" 15641} 15642 15643_LT_EOF 15644 ;; 15645 esac 15646 15647 15648 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15649 || (rm -f "$cfgfile"; exit 1) 15650 15651 mv -f "$cfgfile" "$ofile" || 15652 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15653 chmod +x "$ofile" 15654 15655 ;; 15656 15657 esac 15658done # for ac_tag 15659 15660 15661{ (exit 0); exit 0; } 15662_ACEOF 15663chmod +x $CONFIG_STATUS 15664ac_clean_files=$ac_clean_files_save 15665 15666test $ac_write_fail = 0 || 15667 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15668$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15669 { (exit 1); exit 1; }; } 15670 15671 15672# configure is writing to config.log, and then calls config.status. 15673# config.status does its own redirection, appending to config.log. 15674# Unfortunately, on DOS this fails, as config.log is still kept open 15675# by configure, so config.status won't be able to write to it; its 15676# output is simply discarded. So we exec the FD to /dev/null, 15677# effectively closing config.log, so it can be properly (re)opened and 15678# appended to by config.status. When coming back to configure, we 15679# need to make the FD available again. 15680if test "$no_create" != yes; then 15681 ac_cs_success=: 15682 ac_config_status_args= 15683 test "$silent" = yes && 15684 ac_config_status_args="$ac_config_status_args --quiet" 15685 exec 5>/dev/null 15686 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15687 exec 5>>config.log 15688 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15689 # would make configure fail if this is the last instruction. 15690 $ac_cs_success || { (exit 1); exit 1; } 15691fi 15692if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15693 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15694$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15695fi 15696 15697