1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574 575# Check that we are running under the correct shell. 576SHELL=${CONFIG_SHELL-/bin/sh} 577 578case X$lt_ECHO in 579X*--fallback-echo) 580 # Remove one level of quotation (which was required for Make). 581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 582 ;; 583esac 584 585ECHO=${lt_ECHO-echo} 586if test "X$1" = X--no-reexec; then 587 # Discard the --no-reexec flag, and continue. 588 shift 589elif test "X$1" = X--fallback-echo; then 590 # Avoid inline document here, it may be left over 591 : 592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 593 # Yippee, $ECHO works! 594 : 595else 596 # Restart under the correct shell. 597 exec $SHELL "$0" --no-reexec ${1+"$@"} 598fi 599 600if test "X$1" = X--fallback-echo; then 601 # used as fallback echo 602 shift 603 cat <<_LT_EOF 604$* 605_LT_EOF 606 exit 0 607fi 608 609# The HP-UX ksh and POSIX shell print the target directory to stdout 610# if CDPATH is set. 611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 612 613if test -z "$lt_ECHO"; then 614 if test "X${echo_test_string+set}" != Xset; then 615 # find a string as large as possible, as long as the shell can cope with it 616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 618 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 620 then 621 break 622 fi 623 done 624 fi 625 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 : 630 else 631 # The Solaris, AIX, and Digital Unix default echo programs unquote 632 # backslashes. This makes it impossible to quote backslashes using 633 # echo "$something" | sed 's/\\/\\\\/g' 634 # 635 # So, first we look for a working echo in the user's PATH. 636 637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 638 for dir in $PATH /usr/ucb; do 639 IFS="$lt_save_ifs" 640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$dir/echo" 645 break 646 fi 647 done 648 IFS="$lt_save_ifs" 649 650 if test "X$ECHO" = Xecho; then 651 # We didn't find a better echo, so look for alternatives. 652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 654 test "X$echo_testing_string" = "X$echo_test_string"; then 655 # This shell has a builtin print -r that does the trick. 656 ECHO='print -r' 657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 658 test "X$CONFIG_SHELL" != X/bin/ksh; then 659 # If we have ksh, try running configure again with it. 660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 661 export ORIGINAL_CONFIG_SHELL 662 CONFIG_SHELL=/bin/ksh 663 export CONFIG_SHELL 664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 665 else 666 # Try using printf. 667 ECHO='printf %s\n' 668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 670 test "X$echo_testing_string" = "X$echo_test_string"; then 671 # Cool, printf works 672 : 673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 674 test "X$echo_testing_string" = 'X\t' && 675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 676 test "X$echo_testing_string" = "X$echo_test_string"; then 677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 678 export CONFIG_SHELL 679 SHELL="$CONFIG_SHELL" 680 export SHELL 681 ECHO="$CONFIG_SHELL $0 --fallback-echo" 682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 683 test "X$echo_testing_string" = 'X\t' && 684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 685 test "X$echo_testing_string" = "X$echo_test_string"; then 686 ECHO="$CONFIG_SHELL $0 --fallback-echo" 687 else 688 # maybe with a smaller string... 689 prev=: 690 691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 693 then 694 break 695 fi 696 prev="$cmd" 697 done 698 699 if test "$prev" != 'sed 50q "$0"'; then 700 echo_test_string=`eval $prev` 701 export echo_test_string 702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 703 else 704 # Oops. We lost completely, so just stick with echo. 705 ECHO=echo 706 fi 707 fi 708 fi 709 fi 710 fi 711fi 712 713# Copy echo and quote the copy suitably for passing to libtool from 714# the Makefile, instead of quoting the original, which is used later. 715lt_ECHO=$ECHO 716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 718fi 719 720 721 722 723exec 7<&0 </dev/null 6>&1 724 725# Name of the host. 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 727# so uname gets run too. 728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 729 730# 731# Initializations. 732# 733ac_default_prefix=/usr/local 734ac_clean_files= 735ac_config_libobj_dir=. 736LIBOBJS= 737cross_compiling=no 738subdirs= 739MFLAGS= 740MAKEFLAGS= 741SHELL=${CONFIG_SHELL-/bin/sh} 742 743# Identity of this package. 744PACKAGE_NAME= 745PACKAGE_TARNAME= 746PACKAGE_VERSION= 747PACKAGE_STRING= 748PACKAGE_BUGREPORT= 749 750ac_unique_file="src/libfishsound/fishsound.c" 751# Factoring default headers for most tests. 752ac_includes_default="\ 753#include <stdio.h> 754#ifdef HAVE_SYS_TYPES_H 755# include <sys/types.h> 756#endif 757#ifdef HAVE_SYS_STAT_H 758# include <sys/stat.h> 759#endif 760#ifdef STDC_HEADERS 761# include <stdlib.h> 762# include <stddef.h> 763#else 764# ifdef HAVE_STDLIB_H 765# include <stdlib.h> 766# endif 767#endif 768#ifdef HAVE_STRING_H 769# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 770# include <memory.h> 771# endif 772# include <string.h> 773#endif 774#ifdef HAVE_STRINGS_H 775# include <strings.h> 776#endif 777#ifdef HAVE_INTTYPES_H 778# include <inttypes.h> 779#endif 780#ifdef HAVE_STDINT_H 781# include <stdint.h> 782#endif 783#ifdef HAVE_UNISTD_H 784# include <unistd.h> 785#endif" 786 787ac_subst_vars='DOCDIR 788BINDIR 789INCLUDEDIR 790LIBDIR 791LTLIBOBJS 792LIBOBJS 793fishsound_pkgdeps 794SHARED_VERSION_INFO 795SHLIB_VERSION_ARG 796HAVE_LIBSNDFILE1_FALSE 797HAVE_LIBSNDFILE1_TRUE 798SNDFILE_LIBS 799SNDFILE_CFLAGS 800HAVE_OGGZ_FALSE 801HAVE_OGGZ_TRUE 802OGGZ_LIBS 803OGGZ_CFLAGS 804HAVE_FLAC_FALSE 805HAVE_FLAC_TRUE 806FLAC_LIBS 807FLAC_CFLAGS 808HAVE_SPEEX_FALSE 809HAVE_SPEEX_TRUE 810SPEEX_LIBS 811SPEEX_CFLAGS 812HAVE_VORBISENC_FALSE 813HAVE_VORBISENC_TRUE 814HAVE_VORBIS_FALSE 815HAVE_VORBIS_TRUE 816VORBISENC_LIBS 817VORBISENC_CFLAGS 818VORBIS_LIBS 819VORBIS_CFLAGS 820PKG_CONFIG 821FS_ENCODE_FALSE 822FS_ENCODE_TRUE 823FS_DECODE_FALSE 824FS_DECODE_TRUE 825VALGRIND_ENVIRONMENT 826HAVE_VALGRIND 827HAVE_DOXYGEN_FALSE 828HAVE_DOXYGEN_TRUE 829HAVE_DOXYGEN 830HAVE_PKG_CONFIG 831ACLOCAL_AMFLAGS 832OTOOL64 833OTOOL 834LIPO 835NMEDIT 836DSYMUTIL 837lt_ECHO 838RANLIB 839AR 840OBJDUMP 841LN_S 842NM 843ac_ct_DUMPBIN 844DUMPBIN 845LD 846FGREP 847EGREP 848GREP 849SED 850LIBTOOL 851CPP 852am__fastdepCC_FALSE 853am__fastdepCC_TRUE 854CCDEPMODE 855AMDEPBACKSLASH 856AMDEP_FALSE 857AMDEP_TRUE 858am__quote 859am__include 860DEPDIR 861OBJEXT 862EXEEXT 863ac_ct_CC 864CPPFLAGS 865LDFLAGS 866CFLAGS 867CC 868am__untar 869am__tar 870AMTAR 871am__leading_dot 872SET_MAKE 873AWK 874mkdir_p 875MKDIR_P 876INSTALL_STRIP_PROGRAM 877STRIP 878install_sh 879MAKEINFO 880AUTOHEADER 881AUTOMAKE 882AUTOCONF 883ACLOCAL 884VERSION 885PACKAGE 886CYGPATH_W 887am__isrc 888INSTALL_DATA 889INSTALL_SCRIPT 890INSTALL_PROGRAM 891target_os 892target_vendor 893target_cpu 894target 895host_os 896host_vendor 897host_cpu 898host 899build_os 900build_vendor 901build_cpu 902build 903target_alias 904host_alias 905build_alias 906LIBS 907ECHO_T 908ECHO_N 909ECHO_C 910DEFS 911mandir 912localedir 913libdir 914psdir 915pdfdir 916dvidir 917htmldir 918infodir 919docdir 920oldincludedir 921includedir 922localstatedir 923sharedstatedir 924sysconfdir 925datadir 926datarootdir 927libexecdir 928sbindir 929bindir 930program_transform_name 931prefix 932exec_prefix 933PACKAGE_BUGREPORT 934PACKAGE_STRING 935PACKAGE_VERSION 936PACKAGE_TARNAME 937PACKAGE_NAME 938PATH_SEPARATOR 939SHELL' 940ac_subst_files='' 941ac_user_opts=' 942enable_option_checking 943enable_dependency_tracking 944enable_shared 945enable_static 946with_pic 947enable_fast_install 948with_gnu_ld 949enable_libtool_lock 950enable_valgrind_testing 951enable_experimental 952enable_decode 953enable_encode 954enable_vorbis 955enable_speex 956enable_flac 957enable_gcc_werror 958' 959 ac_precious_vars='build_alias 960host_alias 961target_alias 962CC 963CFLAGS 964LDFLAGS 965LIBS 966CPPFLAGS 967CPP 968PKG_CONFIG 969VORBIS_CFLAGS 970VORBIS_LIBS 971VORBISENC_CFLAGS 972VORBISENC_LIBS 973SPEEX_CFLAGS 974SPEEX_LIBS 975FLAC_CFLAGS 976FLAC_LIBS 977OGGZ_CFLAGS 978OGGZ_LIBS 979SNDFILE_CFLAGS 980SNDFILE_LIBS' 981 982 983# Initialize some variables set by options. 984ac_init_help= 985ac_init_version=false 986ac_unrecognized_opts= 987ac_unrecognized_sep= 988# The variables have the same names as the options, with 989# dashes changed to underlines. 990cache_file=/dev/null 991exec_prefix=NONE 992no_create= 993no_recursion= 994prefix=NONE 995program_prefix=NONE 996program_suffix=NONE 997program_transform_name=s,x,x, 998silent= 999site= 1000srcdir= 1001verbose= 1002x_includes=NONE 1003x_libraries=NONE 1004 1005# Installation directory options. 1006# These are left unexpanded so users can "make install exec_prefix=/foo" 1007# and all the variables that are supposed to be based on exec_prefix 1008# by default will actually change. 1009# Use braces instead of parens because sh, perl, etc. also accept them. 1010# (The list follows the same order as the GNU Coding Standards.) 1011bindir='${exec_prefix}/bin' 1012sbindir='${exec_prefix}/sbin' 1013libexecdir='${exec_prefix}/libexec' 1014datarootdir='${prefix}/share' 1015datadir='${datarootdir}' 1016sysconfdir='${prefix}/etc' 1017sharedstatedir='${prefix}/com' 1018localstatedir='${prefix}/var' 1019includedir='${prefix}/include' 1020oldincludedir='/usr/include' 1021docdir='${datarootdir}/doc/${PACKAGE}' 1022infodir='${datarootdir}/info' 1023htmldir='${docdir}' 1024dvidir='${docdir}' 1025pdfdir='${docdir}' 1026psdir='${docdir}' 1027libdir='${exec_prefix}/lib' 1028localedir='${datarootdir}/locale' 1029mandir='${datarootdir}/man' 1030 1031ac_prev= 1032ac_dashdash= 1033for ac_option 1034do 1035 # If the previous option needs an argument, assign it. 1036 if test -n "$ac_prev"; then 1037 eval $ac_prev=\$ac_option 1038 ac_prev= 1039 continue 1040 fi 1041 1042 case $ac_option in 1043 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1044 *) ac_optarg=yes ;; 1045 esac 1046 1047 # Accept the important Cygnus configure options, so we can diagnose typos. 1048 1049 case $ac_dashdash$ac_option in 1050 --) 1051 ac_dashdash=yes ;; 1052 1053 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1054 ac_prev=bindir ;; 1055 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1056 bindir=$ac_optarg ;; 1057 1058 -build | --build | --buil | --bui | --bu) 1059 ac_prev=build_alias ;; 1060 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1061 build_alias=$ac_optarg ;; 1062 1063 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1064 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1065 ac_prev=cache_file ;; 1066 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1067 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1068 cache_file=$ac_optarg ;; 1069 1070 --config-cache | -C) 1071 cache_file=config.cache ;; 1072 1073 -datadir | --datadir | --datadi | --datad) 1074 ac_prev=datadir ;; 1075 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1076 datadir=$ac_optarg ;; 1077 1078 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1079 | --dataroo | --dataro | --datar) 1080 ac_prev=datarootdir ;; 1081 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1082 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1083 datarootdir=$ac_optarg ;; 1084 1085 -disable-* | --disable-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1090 { (exit 1); exit 1; }; } 1091 ac_useropt_orig=$ac_useropt 1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1093 case $ac_user_opts in 1094 *" 1095"enable_$ac_useropt" 1096"*) ;; 1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1098 ac_unrecognized_sep=', ';; 1099 esac 1100 eval enable_$ac_useropt=no ;; 1101 1102 -docdir | --docdir | --docdi | --doc | --do) 1103 ac_prev=docdir ;; 1104 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1105 docdir=$ac_optarg ;; 1106 1107 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1108 ac_prev=dvidir ;; 1109 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1110 dvidir=$ac_optarg ;; 1111 1112 -enable-* | --enable-*) 1113 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1114 # Reject names that are not valid shell variable names. 1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1116 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1117 { (exit 1); exit 1; }; } 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"enable_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval enable_$ac_useropt=\$ac_optarg ;; 1128 1129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1131 | --exec | --exe | --ex) 1132 ac_prev=exec_prefix ;; 1133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1135 | --exec=* | --exe=* | --ex=*) 1136 exec_prefix=$ac_optarg ;; 1137 1138 -gas | --gas | --ga | --g) 1139 # Obsolete; use --with-gas. 1140 with_gas=yes ;; 1141 1142 -help | --help | --hel | --he | -h) 1143 ac_init_help=long ;; 1144 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1145 ac_init_help=recursive ;; 1146 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1147 ac_init_help=short ;; 1148 1149 -host | --host | --hos | --ho) 1150 ac_prev=host_alias ;; 1151 -host=* | --host=* | --hos=* | --ho=*) 1152 host_alias=$ac_optarg ;; 1153 1154 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1155 ac_prev=htmldir ;; 1156 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1157 | --ht=*) 1158 htmldir=$ac_optarg ;; 1159 1160 -includedir | --includedir | --includedi | --included | --include \ 1161 | --includ | --inclu | --incl | --inc) 1162 ac_prev=includedir ;; 1163 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1164 | --includ=* | --inclu=* | --incl=* | --inc=*) 1165 includedir=$ac_optarg ;; 1166 1167 -infodir | --infodir | --infodi | --infod | --info | --inf) 1168 ac_prev=infodir ;; 1169 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1170 infodir=$ac_optarg ;; 1171 1172 -libdir | --libdir | --libdi | --libd) 1173 ac_prev=libdir ;; 1174 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1175 libdir=$ac_optarg ;; 1176 1177 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1178 | --libexe | --libex | --libe) 1179 ac_prev=libexecdir ;; 1180 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1181 | --libexe=* | --libex=* | --libe=*) 1182 libexecdir=$ac_optarg ;; 1183 1184 -localedir | --localedir | --localedi | --localed | --locale) 1185 ac_prev=localedir ;; 1186 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1187 localedir=$ac_optarg ;; 1188 1189 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1190 | --localstate | --localstat | --localsta | --localst | --locals) 1191 ac_prev=localstatedir ;; 1192 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1193 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1194 localstatedir=$ac_optarg ;; 1195 1196 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1197 ac_prev=mandir ;; 1198 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1199 mandir=$ac_optarg ;; 1200 1201 -nfp | --nfp | --nf) 1202 # Obsolete; use --without-fp. 1203 with_fp=no ;; 1204 1205 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1206 | --no-cr | --no-c | -n) 1207 no_create=yes ;; 1208 1209 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1210 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1211 no_recursion=yes ;; 1212 1213 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1214 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1215 | --oldin | --oldi | --old | --ol | --o) 1216 ac_prev=oldincludedir ;; 1217 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1218 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1219 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1220 oldincludedir=$ac_optarg ;; 1221 1222 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1223 ac_prev=prefix ;; 1224 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1225 prefix=$ac_optarg ;; 1226 1227 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1228 | --program-pre | --program-pr | --program-p) 1229 ac_prev=program_prefix ;; 1230 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1231 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1232 program_prefix=$ac_optarg ;; 1233 1234 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1235 | --program-suf | --program-su | --program-s) 1236 ac_prev=program_suffix ;; 1237 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1238 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1239 program_suffix=$ac_optarg ;; 1240 1241 -program-transform-name | --program-transform-name \ 1242 | --program-transform-nam | --program-transform-na \ 1243 | --program-transform-n | --program-transform- \ 1244 | --program-transform | --program-transfor \ 1245 | --program-transfo | --program-transf \ 1246 | --program-trans | --program-tran \ 1247 | --progr-tra | --program-tr | --program-t) 1248 ac_prev=program_transform_name ;; 1249 -program-transform-name=* | --program-transform-name=* \ 1250 | --program-transform-nam=* | --program-transform-na=* \ 1251 | --program-transform-n=* | --program-transform-=* \ 1252 | --program-transform=* | --program-transfor=* \ 1253 | --program-transfo=* | --program-transf=* \ 1254 | --program-trans=* | --program-tran=* \ 1255 | --progr-tra=* | --program-tr=* | --program-t=*) 1256 program_transform_name=$ac_optarg ;; 1257 1258 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1259 ac_prev=pdfdir ;; 1260 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1261 pdfdir=$ac_optarg ;; 1262 1263 -psdir | --psdir | --psdi | --psd | --ps) 1264 ac_prev=psdir ;; 1265 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1266 psdir=$ac_optarg ;; 1267 1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1269 | -silent | --silent | --silen | --sile | --sil) 1270 silent=yes ;; 1271 1272 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1273 ac_prev=sbindir ;; 1274 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1275 | --sbi=* | --sb=*) 1276 sbindir=$ac_optarg ;; 1277 1278 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1279 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1280 | --sharedst | --shareds | --shared | --share | --shar \ 1281 | --sha | --sh) 1282 ac_prev=sharedstatedir ;; 1283 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1284 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1285 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1286 | --sha=* | --sh=*) 1287 sharedstatedir=$ac_optarg ;; 1288 1289 -site | --site | --sit) 1290 ac_prev=site ;; 1291 -site=* | --site=* | --sit=*) 1292 site=$ac_optarg ;; 1293 1294 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1295 ac_prev=srcdir ;; 1296 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1297 srcdir=$ac_optarg ;; 1298 1299 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1300 | --syscon | --sysco | --sysc | --sys | --sy) 1301 ac_prev=sysconfdir ;; 1302 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1303 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1304 sysconfdir=$ac_optarg ;; 1305 1306 -target | --target | --targe | --targ | --tar | --ta | --t) 1307 ac_prev=target_alias ;; 1308 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1309 target_alias=$ac_optarg ;; 1310 1311 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1312 verbose=yes ;; 1313 1314 -version | --version | --versio | --versi | --vers | -V) 1315 ac_init_version=: ;; 1316 1317 -with-* | --with-*) 1318 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1319 # Reject names that are not valid shell variable names. 1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1321 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1322 { (exit 1); exit 1; }; } 1323 ac_useropt_orig=$ac_useropt 1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1325 case $ac_user_opts in 1326 *" 1327"with_$ac_useropt" 1328"*) ;; 1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1330 ac_unrecognized_sep=', ';; 1331 esac 1332 eval with_$ac_useropt=\$ac_optarg ;; 1333 1334 -without-* | --without-*) 1335 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1336 # Reject names that are not valid shell variable names. 1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1338 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1339 { (exit 1); exit 1; }; } 1340 ac_useropt_orig=$ac_useropt 1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1342 case $ac_user_opts in 1343 *" 1344"with_$ac_useropt" 1345"*) ;; 1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1347 ac_unrecognized_sep=', ';; 1348 esac 1349 eval with_$ac_useropt=no ;; 1350 1351 --x) 1352 # Obsolete; use --with-x. 1353 with_x=yes ;; 1354 1355 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1356 | --x-incl | --x-inc | --x-in | --x-i) 1357 ac_prev=x_includes ;; 1358 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1359 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1360 x_includes=$ac_optarg ;; 1361 1362 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1363 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1364 ac_prev=x_libraries ;; 1365 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1366 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1367 x_libraries=$ac_optarg ;; 1368 1369 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1370Try \`$0 --help' for more information." >&2 1371 { (exit 1); exit 1; }; } 1372 ;; 1373 1374 *=*) 1375 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1376 # Reject names that are not valid shell variable names. 1377 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1378 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1379 { (exit 1); exit 1; }; } 1380 eval $ac_envvar=\$ac_optarg 1381 export $ac_envvar ;; 1382 1383 *) 1384 # FIXME: should be removed in autoconf 3.0. 1385 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1386 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1387 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1388 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1389 ;; 1390 1391 esac 1392done 1393 1394if test -n "$ac_prev"; then 1395 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1396 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1397 { (exit 1); exit 1; }; } 1398fi 1399 1400if test -n "$ac_unrecognized_opts"; then 1401 case $enable_option_checking in 1402 no) ;; 1403 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1404 { (exit 1); exit 1; }; } ;; 1405 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1406 esac 1407fi 1408 1409# Check all directory arguments for consistency. 1410for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1411 datadir sysconfdir sharedstatedir localstatedir includedir \ 1412 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1413 libdir localedir mandir 1414do 1415 eval ac_val=\$$ac_var 1416 # Remove trailing slashes. 1417 case $ac_val in 1418 */ ) 1419 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1420 eval $ac_var=\$ac_val;; 1421 esac 1422 # Be sure to have absolute directory names. 1423 case $ac_val in 1424 [\\/$]* | ?:[\\/]* ) continue;; 1425 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1426 esac 1427 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1428 { (exit 1); exit 1; }; } 1429done 1430 1431# There might be people who depend on the old broken behavior: `$host' 1432# used to hold the argument of --host etc. 1433# FIXME: To remove some day. 1434build=$build_alias 1435host=$host_alias 1436target=$target_alias 1437 1438# FIXME: To remove some day. 1439if test "x$host_alias" != x; then 1440 if test "x$build_alias" = x; then 1441 cross_compiling=maybe 1442 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1443 If a cross compiler is detected then cross compile mode will be used." >&2 1444 elif test "x$build_alias" != "x$host_alias"; then 1445 cross_compiling=yes 1446 fi 1447fi 1448 1449ac_tool_prefix= 1450test -n "$host_alias" && ac_tool_prefix=$host_alias- 1451 1452test "$silent" = yes && exec 6>/dev/null 1453 1454 1455ac_pwd=`pwd` && test -n "$ac_pwd" && 1456ac_ls_di=`ls -di .` && 1457ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1458 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1459 { (exit 1); exit 1; }; } 1460test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1461 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1462 { (exit 1); exit 1; }; } 1463 1464 1465# Find the source files, if location was not specified. 1466if test -z "$srcdir"; then 1467 ac_srcdir_defaulted=yes 1468 # Try the directory containing this script, then the parent directory. 1469 ac_confdir=`$as_dirname -- "$as_myself" || 1470$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1471 X"$as_myself" : 'X\(//\)[^/]' \| \ 1472 X"$as_myself" : 'X\(//\)$' \| \ 1473 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1474$as_echo X"$as_myself" | 1475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1476 s//\1/ 1477 q 1478 } 1479 /^X\(\/\/\)[^/].*/{ 1480 s//\1/ 1481 q 1482 } 1483 /^X\(\/\/\)$/{ 1484 s//\1/ 1485 q 1486 } 1487 /^X\(\/\).*/{ 1488 s//\1/ 1489 q 1490 } 1491 s/.*/./; q'` 1492 srcdir=$ac_confdir 1493 if test ! -r "$srcdir/$ac_unique_file"; then 1494 srcdir=.. 1495 fi 1496else 1497 ac_srcdir_defaulted=no 1498fi 1499if test ! -r "$srcdir/$ac_unique_file"; then 1500 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1501 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1502 { (exit 1); exit 1; }; } 1503fi 1504ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1505ac_abs_confdir=`( 1506 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1507 { (exit 1); exit 1; }; } 1508 pwd)` 1509# When building in place, set srcdir=. 1510if test "$ac_abs_confdir" = "$ac_pwd"; then 1511 srcdir=. 1512fi 1513# Remove unnecessary trailing slashes from srcdir. 1514# Double slashes in file names in object file debugging info 1515# mess up M-x gdb in Emacs. 1516case $srcdir in 1517*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1518esac 1519for ac_var in $ac_precious_vars; do 1520 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1521 eval ac_env_${ac_var}_value=\$${ac_var} 1522 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1523 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1524done 1525 1526# 1527# Report the --help message. 1528# 1529if test "$ac_init_help" = "long"; then 1530 # Omit some internal or obsolete options to make the list less imposing. 1531 # This message is too long to be a string in the A/UX 3.1 sh. 1532 cat <<_ACEOF 1533\`configure' configures this package to adapt to many kinds of systems. 1534 1535Usage: $0 [OPTION]... [VAR=VALUE]... 1536 1537To assign environment variables (e.g., CC, CFLAGS...), specify them as 1538VAR=VALUE. See below for descriptions of some of the useful variables. 1539 1540Defaults for the options are specified in brackets. 1541 1542Configuration: 1543 -h, --help display this help and exit 1544 --help=short display options specific to this package 1545 --help=recursive display the short help of all the included packages 1546 -V, --version display version information and exit 1547 -q, --quiet, --silent do not print \`checking...' messages 1548 --cache-file=FILE cache test results in FILE [disabled] 1549 -C, --config-cache alias for \`--cache-file=config.cache' 1550 -n, --no-create do not create output files 1551 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1552 1553Installation directories: 1554 --prefix=PREFIX install architecture-independent files in PREFIX 1555 [$ac_default_prefix] 1556 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1557 [PREFIX] 1558 1559By default, \`make install' will install all the files in 1560\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1561an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1562for instance \`--prefix=\$HOME'. 1563 1564For better control, use the options below. 1565 1566Fine tuning of the installation directories: 1567 --bindir=DIR user executables [EPREFIX/bin] 1568 --sbindir=DIR system admin executables [EPREFIX/sbin] 1569 --libexecdir=DIR program executables [EPREFIX/libexec] 1570 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1571 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1572 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1573 --libdir=DIR object code libraries [EPREFIX/lib] 1574 --includedir=DIR C header files [PREFIX/include] 1575 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1578 --infodir=DIR info documentation [DATAROOTDIR/info] 1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1580 --mandir=DIR man documentation [DATAROOTDIR/man] 1581 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1582 --htmldir=DIR html documentation [DOCDIR] 1583 --dvidir=DIR dvi documentation [DOCDIR] 1584 --pdfdir=DIR pdf documentation [DOCDIR] 1585 --psdir=DIR ps documentation [DOCDIR] 1586_ACEOF 1587 1588 cat <<\_ACEOF 1589 1590Program names: 1591 --program-prefix=PREFIX prepend PREFIX to installed program names 1592 --program-suffix=SUFFIX append SUFFIX to installed program names 1593 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1594 1595System types: 1596 --build=BUILD configure for building on BUILD [guessed] 1597 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1598 --target=TARGET configure for building compilers for TARGET [HOST] 1599_ACEOF 1600fi 1601 1602if test -n "$ac_init_help"; then 1603 1604 cat <<\_ACEOF 1605 1606Optional Features: 1607 --disable-option-checking ignore unrecognized --enable/--with options 1608 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1609 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1610 --disable-dependency-tracking speeds up one-time build 1611 --enable-dependency-tracking do not reject slow dependency extractors 1612 --enable-shared[=PKGS] build shared libraries [default=yes] 1613 --enable-static[=PKGS] build static libraries [default=yes] 1614 --enable-fast-install[=PKGS] 1615 optimize for fast installation [default=yes] 1616 --disable-libtool-lock avoid locking (might break parallel builds) 1617 --enable-valgrind-testing 1618 enable running of tests inside Valgrind 1619 --enable-experimental enable building of experimental code 1620 --disable-decode disable building of decoding support 1621 --disable-encode disable building of encoding support 1622 --disable-vorbis disable building of Vorbis codec support 1623 --disable-speex disable building of Speex codec support 1624 --disable-flac disable building of Flac codec support 1625 --enable-gcc-werror enable -Werror in all Makefiles 1626 1627Optional Packages: 1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1630 --with-pic try to use only PIC/non-PIC objects [default=use 1631 both] 1632 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1633 1634Some influential environment variables: 1635 CC C compiler command 1636 CFLAGS C compiler flags 1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1638 nonstandard directory <lib dir> 1639 LIBS libraries to pass to the linker, e.g. -l<library> 1640 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1641 you have headers in a nonstandard directory <include dir> 1642 CPP C preprocessor 1643 PKG_CONFIG path to pkg-config utility 1644 VORBIS_CFLAGS 1645 C compiler flags for VORBIS, overriding pkg-config 1646 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config 1647 VORBISENC_CFLAGS 1648 C compiler flags for VORBISENC, overriding pkg-config 1649 VORBISENC_LIBS 1650 linker flags for VORBISENC, overriding pkg-config 1651 SPEEX_CFLAGS 1652 C compiler flags for SPEEX, overriding pkg-config 1653 SPEEX_LIBS linker flags for SPEEX, overriding pkg-config 1654 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config 1655 FLAC_LIBS linker flags for FLAC, overriding pkg-config 1656 OGGZ_CFLAGS C compiler flags for OGGZ, overriding pkg-config 1657 OGGZ_LIBS linker flags for OGGZ, overriding pkg-config 1658 SNDFILE_CFLAGS 1659 C compiler flags for SNDFILE, overriding pkg-config 1660 SNDFILE_LIBS 1661 linker flags for SNDFILE, overriding pkg-config 1662 1663Use these variables to override the choices made by `configure' or to help 1664it to find libraries and programs with nonstandard names/locations. 1665 1666_ACEOF 1667ac_status=$? 1668fi 1669 1670if test "$ac_init_help" = "recursive"; then 1671 # If there are subdirs, report their specific --help. 1672 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1673 test -d "$ac_dir" || 1674 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1675 continue 1676 ac_builddir=. 1677 1678case "$ac_dir" in 1679.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1680*) 1681 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1682 # A ".." for each directory in $ac_dir_suffix. 1683 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1684 case $ac_top_builddir_sub in 1685 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1686 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1687 esac ;; 1688esac 1689ac_abs_top_builddir=$ac_pwd 1690ac_abs_builddir=$ac_pwd$ac_dir_suffix 1691# for backward compatibility: 1692ac_top_builddir=$ac_top_build_prefix 1693 1694case $srcdir in 1695 .) # We are building in place. 1696 ac_srcdir=. 1697 ac_top_srcdir=$ac_top_builddir_sub 1698 ac_abs_top_srcdir=$ac_pwd ;; 1699 [\\/]* | ?:[\\/]* ) # Absolute name. 1700 ac_srcdir=$srcdir$ac_dir_suffix; 1701 ac_top_srcdir=$srcdir 1702 ac_abs_top_srcdir=$srcdir ;; 1703 *) # Relative name. 1704 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1705 ac_top_srcdir=$ac_top_build_prefix$srcdir 1706 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1707esac 1708ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1709 1710 cd "$ac_dir" || { ac_status=$?; continue; } 1711 # Check for guested configure. 1712 if test -f "$ac_srcdir/configure.gnu"; then 1713 echo && 1714 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1715 elif test -f "$ac_srcdir/configure"; then 1716 echo && 1717 $SHELL "$ac_srcdir/configure" --help=recursive 1718 else 1719 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1720 fi || ac_status=$? 1721 cd "$ac_pwd" || { ac_status=$?; break; } 1722 done 1723fi 1724 1725test -n "$ac_init_help" && exit $ac_status 1726if $ac_init_version; then 1727 cat <<\_ACEOF 1728configure 1729generated by GNU Autoconf 2.63 1730 1731Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17322002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1733This configure script is free software; the Free Software Foundation 1734gives unlimited permission to copy, distribute and modify it. 1735_ACEOF 1736 exit 1737fi 1738cat >config.log <<_ACEOF 1739This file contains any messages produced by compilers while 1740running configure, to aid debugging if configure makes a mistake. 1741 1742It was created by $as_me, which was 1743generated by GNU Autoconf 2.63. Invocation command line was 1744 1745 $ $0 $@ 1746 1747_ACEOF 1748exec 5>>config.log 1749{ 1750cat <<_ASUNAME 1751## --------- ## 1752## Platform. ## 1753## --------- ## 1754 1755hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1756uname -m = `(uname -m) 2>/dev/null || echo unknown` 1757uname -r = `(uname -r) 2>/dev/null || echo unknown` 1758uname -s = `(uname -s) 2>/dev/null || echo unknown` 1759uname -v = `(uname -v) 2>/dev/null || echo unknown` 1760 1761/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1762/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1763 1764/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1765/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1766/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1767/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1768/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1769/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1770/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1771 1772_ASUNAME 1773 1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1775for as_dir in $PATH 1776do 1777 IFS=$as_save_IFS 1778 test -z "$as_dir" && as_dir=. 1779 $as_echo "PATH: $as_dir" 1780done 1781IFS=$as_save_IFS 1782 1783} >&5 1784 1785cat >&5 <<_ACEOF 1786 1787 1788## ----------- ## 1789## Core tests. ## 1790## ----------- ## 1791 1792_ACEOF 1793 1794 1795# Keep a trace of the command line. 1796# Strip out --no-create and --no-recursion so they do not pile up. 1797# Strip out --silent because we don't want to record it for future runs. 1798# Also quote any args containing shell meta-characters. 1799# Make two passes to allow for proper duplicate-argument suppression. 1800ac_configure_args= 1801ac_configure_args0= 1802ac_configure_args1= 1803ac_must_keep_next=false 1804for ac_pass in 1 2 1805do 1806 for ac_arg 1807 do 1808 case $ac_arg in 1809 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1811 | -silent | --silent | --silen | --sile | --sil) 1812 continue ;; 1813 *\'*) 1814 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1815 esac 1816 case $ac_pass in 1817 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1818 2) 1819 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1820 if test $ac_must_keep_next = true; then 1821 ac_must_keep_next=false # Got value, back to normal. 1822 else 1823 case $ac_arg in 1824 *=* | --config-cache | -C | -disable-* | --disable-* \ 1825 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1826 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1827 | -with-* | --with-* | -without-* | --without-* | --x) 1828 case "$ac_configure_args0 " in 1829 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1830 esac 1831 ;; 1832 -* ) ac_must_keep_next=true ;; 1833 esac 1834 fi 1835 ac_configure_args="$ac_configure_args '$ac_arg'" 1836 ;; 1837 esac 1838 done 1839done 1840$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1841$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1842 1843# When interrupted or exit'd, cleanup temporary files, and complete 1844# config.log. We remove comments because anyway the quotes in there 1845# would cause problems or look ugly. 1846# WARNING: Use '\'' to represent an apostrophe within the trap. 1847# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1848trap 'exit_status=$? 1849 # Save into config.log some information that might help in debugging. 1850 { 1851 echo 1852 1853 cat <<\_ASBOX 1854## ---------------- ## 1855## Cache variables. ## 1856## ---------------- ## 1857_ASBOX 1858 echo 1859 # The following way of writing the cache mishandles newlines in values, 1860( 1861 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1862 eval ac_val=\$$ac_var 1863 case $ac_val in #( 1864 *${as_nl}*) 1865 case $ac_var in #( 1866 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1867$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1868 esac 1869 case $ac_var in #( 1870 _ | IFS | as_nl) ;; #( 1871 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1872 *) $as_unset $ac_var ;; 1873 esac ;; 1874 esac 1875 done 1876 (set) 2>&1 | 1877 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1878 *${as_nl}ac_space=\ *) 1879 sed -n \ 1880 "s/'\''/'\''\\\\'\'''\''/g; 1881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1882 ;; #( 1883 *) 1884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1885 ;; 1886 esac | 1887 sort 1888) 1889 echo 1890 1891 cat <<\_ASBOX 1892## ----------------- ## 1893## Output variables. ## 1894## ----------------- ## 1895_ASBOX 1896 echo 1897 for ac_var in $ac_subst_vars 1898 do 1899 eval ac_val=\$$ac_var 1900 case $ac_val in 1901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1902 esac 1903 $as_echo "$ac_var='\''$ac_val'\''" 1904 done | sort 1905 echo 1906 1907 if test -n "$ac_subst_files"; then 1908 cat <<\_ASBOX 1909## ------------------- ## 1910## File substitutions. ## 1911## ------------------- ## 1912_ASBOX 1913 echo 1914 for ac_var in $ac_subst_files 1915 do 1916 eval ac_val=\$$ac_var 1917 case $ac_val in 1918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1919 esac 1920 $as_echo "$ac_var='\''$ac_val'\''" 1921 done | sort 1922 echo 1923 fi 1924 1925 if test -s confdefs.h; then 1926 cat <<\_ASBOX 1927## ----------- ## 1928## confdefs.h. ## 1929## ----------- ## 1930_ASBOX 1931 echo 1932 cat confdefs.h 1933 echo 1934 fi 1935 test "$ac_signal" != 0 && 1936 $as_echo "$as_me: caught signal $ac_signal" 1937 $as_echo "$as_me: exit $exit_status" 1938 } >&5 1939 rm -f core *.core core.conftest.* && 1940 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1941 exit $exit_status 1942' 0 1943for ac_signal in 1 2 13 15; do 1944 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1945done 1946ac_signal=0 1947 1948# confdefs.h avoids OS command line length limits that DEFS can exceed. 1949rm -f -r conftest* confdefs.h 1950 1951# Predefined preprocessor variables. 1952 1953cat >>confdefs.h <<_ACEOF 1954#define PACKAGE_NAME "$PACKAGE_NAME" 1955_ACEOF 1956 1957 1958cat >>confdefs.h <<_ACEOF 1959#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1960_ACEOF 1961 1962 1963cat >>confdefs.h <<_ACEOF 1964#define PACKAGE_VERSION "$PACKAGE_VERSION" 1965_ACEOF 1966 1967 1968cat >>confdefs.h <<_ACEOF 1969#define PACKAGE_STRING "$PACKAGE_STRING" 1970_ACEOF 1971 1972 1973cat >>confdefs.h <<_ACEOF 1974#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1975_ACEOF 1976 1977 1978# Let the site file select an alternate cache file if it wants to. 1979# Prefer an explicitly selected file to automatically selected ones. 1980ac_site_file1=NONE 1981ac_site_file2=NONE 1982if test -n "$CONFIG_SITE"; then 1983 ac_site_file1=$CONFIG_SITE 1984elif test "x$prefix" != xNONE; then 1985 ac_site_file1=$prefix/share/config.site 1986 ac_site_file2=$prefix/etc/config.site 1987else 1988 ac_site_file1=$ac_default_prefix/share/config.site 1989 ac_site_file2=$ac_default_prefix/etc/config.site 1990fi 1991for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1992do 1993 test "x$ac_site_file" = xNONE && continue 1994 if test -r "$ac_site_file"; then 1995 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1996$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1997 sed 's/^/| /' "$ac_site_file" >&5 1998 . "$ac_site_file" 1999 fi 2000done 2001 2002if test -r "$cache_file"; then 2003 # Some versions of bash will fail to source /dev/null (special 2004 # files actually), so we avoid doing that. 2005 if test -f "$cache_file"; then 2006 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2007$as_echo "$as_me: loading cache $cache_file" >&6;} 2008 case $cache_file in 2009 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2010 *) . "./$cache_file";; 2011 esac 2012 fi 2013else 2014 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2015$as_echo "$as_me: creating cache $cache_file" >&6;} 2016 >$cache_file 2017fi 2018 2019# Check that the precious variables saved in the cache have kept the same 2020# value. 2021ac_cache_corrupted=false 2022for ac_var in $ac_precious_vars; do 2023 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2024 eval ac_new_set=\$ac_env_${ac_var}_set 2025 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2026 eval ac_new_val=\$ac_env_${ac_var}_value 2027 case $ac_old_set,$ac_new_set in 2028 set,) 2029 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2030$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2031 ac_cache_corrupted=: ;; 2032 ,set) 2033 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2034$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2035 ac_cache_corrupted=: ;; 2036 ,);; 2037 *) 2038 if test "x$ac_old_val" != "x$ac_new_val"; then 2039 # differences in whitespace do not lead to failure. 2040 ac_old_val_w=`echo x $ac_old_val` 2041 ac_new_val_w=`echo x $ac_new_val` 2042 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2043 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2044$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2045 ac_cache_corrupted=: 2046 else 2047 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2048$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2049 eval $ac_var=\$ac_old_val 2050 fi 2051 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2052$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2053 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2054$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2055 fi;; 2056 esac 2057 # Pass precious variables to config.status. 2058 if test "$ac_new_set" = set; then 2059 case $ac_new_val in 2060 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2061 *) ac_arg=$ac_var=$ac_new_val ;; 2062 esac 2063 case " $ac_configure_args " in 2064 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2065 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2066 esac 2067 fi 2068done 2069if $ac_cache_corrupted; then 2070 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2072 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2073$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2074 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2075$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2076 { (exit 1); exit 1; }; } 2077fi 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095ac_ext=c 2096ac_cpp='$CPP $CPPFLAGS' 2097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2099ac_compiler_gnu=$ac_cv_c_compiler_gnu 2100 2101 2102 2103 2104 2105 2106ac_aux_dir= 2107for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2108 if 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/install.sh"; then 2113 ac_aux_dir=$ac_dir 2114 ac_install_sh="$ac_aux_dir/install.sh -c" 2115 break 2116 elif test -f "$ac_dir/shtool"; then 2117 ac_aux_dir=$ac_dir 2118 ac_install_sh="$ac_aux_dir/shtool install -c" 2119 break 2120 fi 2121done 2122if test -z "$ac_aux_dir"; then 2123 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2124$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2125 { (exit 1); exit 1; }; } 2126fi 2127 2128# These three variables are undocumented and unsupported, 2129# and are intended to be withdrawn in a future Autoconf release. 2130# They can cause serious problems if a builder's source tree is in a directory 2131# whose full name contains unusual characters. 2132ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2133ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2134ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2135 2136 2137# Make sure we can run config.sub. 2138$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2139 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2140$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2141 { (exit 1); exit 1; }; } 2142 2143{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2144$as_echo_n "checking build system type... " >&6; } 2145if test "${ac_cv_build+set}" = set; then 2146 $as_echo_n "(cached) " >&6 2147else 2148 ac_build_alias=$build_alias 2149test "x$ac_build_alias" = x && 2150 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2151test "x$ac_build_alias" = x && 2152 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2153$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2154 { (exit 1); exit 1; }; } 2155ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2156 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2157$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2158 { (exit 1); exit 1; }; } 2159 2160fi 2161{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2162$as_echo "$ac_cv_build" >&6; } 2163case $ac_cv_build in 2164*-*-*) ;; 2165*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2166$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2167 { (exit 1); exit 1; }; };; 2168esac 2169build=$ac_cv_build 2170ac_save_IFS=$IFS; IFS='-' 2171set x $ac_cv_build 2172shift 2173build_cpu=$1 2174build_vendor=$2 2175shift; shift 2176# Remember, the first character of IFS is used to create $*, 2177# except with old shells: 2178build_os=$* 2179IFS=$ac_save_IFS 2180case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2181 2182 2183{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2184$as_echo_n "checking host system type... " >&6; } 2185if test "${ac_cv_host+set}" = set; then 2186 $as_echo_n "(cached) " >&6 2187else 2188 if test "x$host_alias" = x; then 2189 ac_cv_host=$ac_cv_build 2190else 2191 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2192 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2193$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2194 { (exit 1); exit 1; }; } 2195fi 2196 2197fi 2198{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2199$as_echo "$ac_cv_host" >&6; } 2200case $ac_cv_host in 2201*-*-*) ;; 2202*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2203$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2204 { (exit 1); exit 1; }; };; 2205esac 2206host=$ac_cv_host 2207ac_save_IFS=$IFS; IFS='-' 2208set x $ac_cv_host 2209shift 2210host_cpu=$1 2211host_vendor=$2 2212shift; shift 2213# Remember, the first character of IFS is used to create $*, 2214# except with old shells: 2215host_os=$* 2216IFS=$ac_save_IFS 2217case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2218 2219 2220{ $as_echo "$as_me:$LINENO: checking target system type" >&5 2221$as_echo_n "checking target system type... " >&6; } 2222if test "${ac_cv_target+set}" = set; then 2223 $as_echo_n "(cached) " >&6 2224else 2225 if test "x$target_alias" = x; then 2226 ac_cv_target=$ac_cv_host 2227else 2228 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2229 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2230$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2231 { (exit 1); exit 1; }; } 2232fi 2233 2234fi 2235{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2236$as_echo "$ac_cv_target" >&6; } 2237case $ac_cv_target in 2238*-*-*) ;; 2239*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2240$as_echo "$as_me: error: invalid value of canonical target" >&2;} 2241 { (exit 1); exit 1; }; };; 2242esac 2243target=$ac_cv_target 2244ac_save_IFS=$IFS; IFS='-' 2245set x $ac_cv_target 2246shift 2247target_cpu=$1 2248target_vendor=$2 2249shift; shift 2250# Remember, the first character of IFS is used to create $*, 2251# except with old shells: 2252target_os=$* 2253IFS=$ac_save_IFS 2254case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2255 2256 2257# The aliases save the names the user supplied, while $host etc. 2258# will get canonicalized. 2259test -n "$target_alias" && 2260 test "$program_prefix$program_suffix$program_transform_name" = \ 2261 NONENONEs,x,x, && 2262 program_prefix=${target_alias}- 2263 2264am__api_version='1.10' 2265 2266# Find a good install program. We prefer a C program (faster), 2267# so one script is as good as another. But avoid the broken or 2268# incompatible versions: 2269# SysV /etc/install, /usr/sbin/install 2270# SunOS /usr/etc/install 2271# IRIX /sbin/install 2272# AIX /bin/install 2273# AmigaOS /C/install, which installs bootblocks on floppy discs 2274# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2275# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2276# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2277# OS/2's system install, which has a completely different semantic 2278# ./install, which can be erroneously created by make from ./install.sh. 2279# Reject install programs that cannot install multiple files. 2280{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2281$as_echo_n "checking for a BSD-compatible install... " >&6; } 2282if test -z "$INSTALL"; then 2283if test "${ac_cv_path_install+set}" = set; then 2284 $as_echo_n "(cached) " >&6 2285else 2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2287for as_dir in $PATH 2288do 2289 IFS=$as_save_IFS 2290 test -z "$as_dir" && as_dir=. 2291 # Account for people who put trailing slashes in PATH elements. 2292case $as_dir/ in 2293 ./ | .// | /cC/* | \ 2294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2295 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2296 /usr/ucb/* ) ;; 2297 *) 2298 # OSF1 and SCO ODT 3.0 have their own names for install. 2299 # Don't use installbsd from OSF since it installs stuff as root 2300 # by default. 2301 for ac_prog in ginstall scoinst install; do 2302 for ac_exec_ext in '' $ac_executable_extensions; do 2303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2304 if test $ac_prog = install && 2305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2306 # AIX install. It has an incompatible calling convention. 2307 : 2308 elif test $ac_prog = install && 2309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2310 # program-specific install script used by HP pwplus--don't use. 2311 : 2312 else 2313 rm -rf conftest.one conftest.two conftest.dir 2314 echo one > conftest.one 2315 echo two > conftest.two 2316 mkdir conftest.dir 2317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2318 test -s conftest.one && test -s conftest.two && 2319 test -s conftest.dir/conftest.one && 2320 test -s conftest.dir/conftest.two 2321 then 2322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2323 break 3 2324 fi 2325 fi 2326 fi 2327 done 2328 done 2329 ;; 2330esac 2331 2332done 2333IFS=$as_save_IFS 2334 2335rm -rf conftest.one conftest.two conftest.dir 2336 2337fi 2338 if test "${ac_cv_path_install+set}" = set; then 2339 INSTALL=$ac_cv_path_install 2340 else 2341 # As a last resort, use the slow shell script. Don't cache a 2342 # value for INSTALL within a source directory, because that will 2343 # break other packages using the cache if that directory is 2344 # removed, or if the value is a relative name. 2345 INSTALL=$ac_install_sh 2346 fi 2347fi 2348{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2349$as_echo "$INSTALL" >&6; } 2350 2351# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2352# It thinks the first close brace ends the variable substitution. 2353test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2354 2355test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2356 2357test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2358 2359{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2360$as_echo_n "checking whether build environment is sane... " >&6; } 2361# Just in case 2362sleep 1 2363echo timestamp > conftest.file 2364# Do `set' in a subshell so we don't clobber the current shell's 2365# arguments. Must try -L first in case configure is actually a 2366# symlink; some systems play weird games with the mod time of symlinks 2367# (eg FreeBSD returns the mod time of the symlink's containing 2368# directory). 2369if ( 2370 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2371 if test "$*" = "X"; then 2372 # -L didn't work. 2373 set X `ls -t $srcdir/configure conftest.file` 2374 fi 2375 rm -f conftest.file 2376 if test "$*" != "X $srcdir/configure conftest.file" \ 2377 && test "$*" != "X conftest.file $srcdir/configure"; then 2378 2379 # If neither matched, then we have a broken ls. This can happen 2380 # if, for instance, CONFIG_SHELL is bash and it inherits a 2381 # broken ls alias from the environment. This has actually 2382 # happened. Such a system could not be considered "sane". 2383 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2384alias in your environment" >&5 2385$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2386alias in your environment" >&2;} 2387 { (exit 1); exit 1; }; } 2388 fi 2389 2390 test "$2" = conftest.file 2391 ) 2392then 2393 # Ok. 2394 : 2395else 2396 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2397Check your system clock" >&5 2398$as_echo "$as_me: error: newly created file is older than distributed files! 2399Check your system clock" >&2;} 2400 { (exit 1); exit 1; }; } 2401fi 2402{ $as_echo "$as_me:$LINENO: result: yes" >&5 2403$as_echo "yes" >&6; } 2404test "$program_prefix" != NONE && 2405 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2406# Use a double $ so make ignores it. 2407test "$program_suffix" != NONE && 2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2409# Double any \ or $. 2410# By default was `s,x,x', remove it if useless. 2411ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2412program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2413 2414# expand $ac_aux_dir to an absolute path 2415am_aux_dir=`cd $ac_aux_dir && pwd` 2416 2417test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2418# Use eval to expand $SHELL 2419if eval "$MISSING --run true"; then 2420 am_missing_run="$MISSING --run " 2421else 2422 am_missing_run= 2423 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2424$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2425fi 2426 2427{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2428$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2429if test -z "$MKDIR_P"; then 2430 if test "${ac_cv_path_mkdir+set}" = set; then 2431 $as_echo_n "(cached) " >&6 2432else 2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2434for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2435do 2436 IFS=$as_save_IFS 2437 test -z "$as_dir" && as_dir=. 2438 for ac_prog in mkdir gmkdir; do 2439 for ac_exec_ext in '' $ac_executable_extensions; do 2440 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2441 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2442 'mkdir (GNU coreutils) '* | \ 2443 'mkdir (coreutils) '* | \ 2444 'mkdir (fileutils) '4.1*) 2445 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2446 break 3;; 2447 esac 2448 done 2449 done 2450done 2451IFS=$as_save_IFS 2452 2453fi 2454 2455 if test "${ac_cv_path_mkdir+set}" = set; then 2456 MKDIR_P="$ac_cv_path_mkdir -p" 2457 else 2458 # As a last resort, use the slow shell script. Don't cache a 2459 # value for MKDIR_P within a source directory, because that will 2460 # break other packages using the cache if that directory is 2461 # removed, or if the value is a relative name. 2462 test -d ./--version && rmdir ./--version 2463 MKDIR_P="$ac_install_sh -d" 2464 fi 2465fi 2466{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2467$as_echo "$MKDIR_P" >&6; } 2468 2469mkdir_p="$MKDIR_P" 2470case $mkdir_p in 2471 [\\/$]* | ?:[\\/]*) ;; 2472 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2473esac 2474 2475for ac_prog in gawk mawk nawk awk 2476do 2477 # Extract the first word of "$ac_prog", so it can be a program name with args. 2478set dummy $ac_prog; ac_word=$2 2479{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2480$as_echo_n "checking for $ac_word... " >&6; } 2481if test "${ac_cv_prog_AWK+set}" = set; then 2482 $as_echo_n "(cached) " >&6 2483else 2484 if test -n "$AWK"; then 2485 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2486else 2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2488for as_dir in $PATH 2489do 2490 IFS=$as_save_IFS 2491 test -z "$as_dir" && as_dir=. 2492 for ac_exec_ext in '' $ac_executable_extensions; do 2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2494 ac_cv_prog_AWK="$ac_prog" 2495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2496 break 2 2497 fi 2498done 2499done 2500IFS=$as_save_IFS 2501 2502fi 2503fi 2504AWK=$ac_cv_prog_AWK 2505if test -n "$AWK"; then 2506 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2507$as_echo "$AWK" >&6; } 2508else 2509 { $as_echo "$as_me:$LINENO: result: no" >&5 2510$as_echo "no" >&6; } 2511fi 2512 2513 2514 test -n "$AWK" && break 2515done 2516 2517{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2518$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2519set x ${MAKE-make} 2520ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2521if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2522 $as_echo_n "(cached) " >&6 2523else 2524 cat >conftest.make <<\_ACEOF 2525SHELL = /bin/sh 2526all: 2527 @echo '@@@%%%=$(MAKE)=@@@%%%' 2528_ACEOF 2529# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2530case `${MAKE-make} -f conftest.make 2>/dev/null` in 2531 *@@@%%%=?*=@@@%%%*) 2532 eval ac_cv_prog_make_${ac_make}_set=yes;; 2533 *) 2534 eval ac_cv_prog_make_${ac_make}_set=no;; 2535esac 2536rm -f conftest.make 2537fi 2538if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2539 { $as_echo "$as_me:$LINENO: result: yes" >&5 2540$as_echo "yes" >&6; } 2541 SET_MAKE= 2542else 2543 { $as_echo "$as_me:$LINENO: result: no" >&5 2544$as_echo "no" >&6; } 2545 SET_MAKE="MAKE=${MAKE-make}" 2546fi 2547 2548rm -rf .tst 2>/dev/null 2549mkdir .tst 2>/dev/null 2550if test -d .tst; then 2551 am__leading_dot=. 2552else 2553 am__leading_dot=_ 2554fi 2555rmdir .tst 2>/dev/null 2556 2557if test "`cd $srcdir && pwd`" != "`pwd`"; then 2558 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2559 # is not polluted with repeated "-I." 2560 am__isrc=' -I$(srcdir)' 2561 # test to see if srcdir already configured 2562 if test -f $srcdir/config.status; then 2563 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2564$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2565 { (exit 1); exit 1; }; } 2566 fi 2567fi 2568 2569# test whether we have cygpath 2570if test -z "$CYGPATH_W"; then 2571 if (cygpath --version) >/dev/null 2>/dev/null; then 2572 CYGPATH_W='cygpath -w' 2573 else 2574 CYGPATH_W=echo 2575 fi 2576fi 2577 2578 2579# Define the identity of the package. 2580 PACKAGE=libfishsound 2581 VERSION=1.0.0 2582 2583 2584cat >>confdefs.h <<_ACEOF 2585#define PACKAGE "$PACKAGE" 2586_ACEOF 2587 2588 2589cat >>confdefs.h <<_ACEOF 2590#define VERSION "$VERSION" 2591_ACEOF 2592 2593# Some tools Automake needs. 2594 2595ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2596 2597 2598AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2599 2600 2601AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2602 2603 2604AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2605 2606 2607MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2608 2609install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2610 2611# Installed binaries are usually stripped using `strip' when the user 2612# run `make install-strip'. However `strip' might not be the right 2613# tool to use in cross-compilation environments, therefore Automake 2614# will honor the `STRIP' environment variable to overrule this program. 2615if test "$cross_compiling" != no; then 2616 if test -n "$ac_tool_prefix"; then 2617 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2618set dummy ${ac_tool_prefix}strip; ac_word=$2 2619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2620$as_echo_n "checking for $ac_word... " >&6; } 2621if test "${ac_cv_prog_STRIP+set}" = set; then 2622 $as_echo_n "(cached) " >&6 2623else 2624 if test -n "$STRIP"; then 2625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2626else 2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2628for as_dir in $PATH 2629do 2630 IFS=$as_save_IFS 2631 test -z "$as_dir" && as_dir=. 2632 for ac_exec_ext in '' $ac_executable_extensions; do 2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2634 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2636 break 2 2637 fi 2638done 2639done 2640IFS=$as_save_IFS 2641 2642fi 2643fi 2644STRIP=$ac_cv_prog_STRIP 2645if test -n "$STRIP"; then 2646 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2647$as_echo "$STRIP" >&6; } 2648else 2649 { $as_echo "$as_me:$LINENO: result: no" >&5 2650$as_echo "no" >&6; } 2651fi 2652 2653 2654fi 2655if test -z "$ac_cv_prog_STRIP"; then 2656 ac_ct_STRIP=$STRIP 2657 # Extract the first word of "strip", so it can be a program name with args. 2658set dummy strip; ac_word=$2 2659{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2660$as_echo_n "checking for $ac_word... " >&6; } 2661if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2662 $as_echo_n "(cached) " >&6 2663else 2664 if test -n "$ac_ct_STRIP"; then 2665 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2666else 2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 test -z "$as_dir" && as_dir=. 2672 for ac_exec_ext in '' $ac_executable_extensions; do 2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2674 ac_cv_prog_ac_ct_STRIP="strip" 2675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2676 break 2 2677 fi 2678done 2679done 2680IFS=$as_save_IFS 2681 2682fi 2683fi 2684ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2685if test -n "$ac_ct_STRIP"; then 2686 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2687$as_echo "$ac_ct_STRIP" >&6; } 2688else 2689 { $as_echo "$as_me:$LINENO: result: no" >&5 2690$as_echo "no" >&6; } 2691fi 2692 2693 if test "x$ac_ct_STRIP" = x; then 2694 STRIP=":" 2695 else 2696 case $cross_compiling:$ac_tool_warned in 2697yes:) 2698{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2700ac_tool_warned=yes ;; 2701esac 2702 STRIP=$ac_ct_STRIP 2703 fi 2704else 2705 STRIP="$ac_cv_prog_STRIP" 2706fi 2707 2708fi 2709INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2710 2711# We need awk for the "check" target. The system "awk" is bad on 2712# some platforms. 2713# Always define AMTAR for backward compatibility. 2714 2715AMTAR=${AMTAR-"${am_missing_run}tar"} 2716 2717am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2718 2719 2720 2721 2722 2723ac_config_headers="$ac_config_headers config.h" 2724 2725 2726################################################################################ 2727# Set the shared versioning info, according to section 6.3 of the libtool info # 2728# pages. CURRENT:REVISION:AGE must be updated immediately before each release: # 2729# # 2730# * If the library source code has changed at all since the last # 2731# update, then increment REVISION (`C:R:A' becomes `C:r+1:A'). # 2732# # 2733# * If any interfaces have been added, removed, or changed since the # 2734# last update, increment CURRENT, and set REVISION to 0. # 2735# # 2736# * If any interfaces have been added since the last public release, # 2737# then increment AGE. # 2738# # 2739# * If any interfaces have been removed since the last public release, # 2740# then set AGE to 0. # 2741# # 2742################################################################################ 2743SHARED_VERSION_INFO="4:0:3" 2744SHLIB_VERSION_ARG="" 2745 2746# Checks for programs. 2747ac_ext=c 2748ac_cpp='$CPP $CPPFLAGS' 2749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2751ac_compiler_gnu=$ac_cv_c_compiler_gnu 2752if test -n "$ac_tool_prefix"; then 2753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2754set dummy ${ac_tool_prefix}gcc; ac_word=$2 2755{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2756$as_echo_n "checking for $ac_word... " >&6; } 2757if test "${ac_cv_prog_CC+set}" = set; then 2758 $as_echo_n "(cached) " >&6 2759else 2760 if test -n "$CC"; then 2761 ac_cv_prog_CC="$CC" # Let the user override the test. 2762else 2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2764for as_dir in $PATH 2765do 2766 IFS=$as_save_IFS 2767 test -z "$as_dir" && as_dir=. 2768 for ac_exec_ext in '' $ac_executable_extensions; do 2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2770 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2772 break 2 2773 fi 2774done 2775done 2776IFS=$as_save_IFS 2777 2778fi 2779fi 2780CC=$ac_cv_prog_CC 2781if test -n "$CC"; then 2782 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2783$as_echo "$CC" >&6; } 2784else 2785 { $as_echo "$as_me:$LINENO: result: no" >&5 2786$as_echo "no" >&6; } 2787fi 2788 2789 2790fi 2791if test -z "$ac_cv_prog_CC"; then 2792 ac_ct_CC=$CC 2793 # Extract the first word of "gcc", so it can be a program name with args. 2794set dummy gcc; ac_word=$2 2795{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2796$as_echo_n "checking for $ac_word... " >&6; } 2797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2798 $as_echo_n "(cached) " >&6 2799else 2800 if test -n "$ac_ct_CC"; then 2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2802else 2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804for as_dir in $PATH 2805do 2806 IFS=$as_save_IFS 2807 test -z "$as_dir" && as_dir=. 2808 for ac_exec_ext in '' $ac_executable_extensions; do 2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2810 ac_cv_prog_ac_ct_CC="gcc" 2811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814done 2815done 2816IFS=$as_save_IFS 2817 2818fi 2819fi 2820ac_ct_CC=$ac_cv_prog_ac_ct_CC 2821if test -n "$ac_ct_CC"; then 2822 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2823$as_echo "$ac_ct_CC" >&6; } 2824else 2825 { $as_echo "$as_me:$LINENO: result: no" >&5 2826$as_echo "no" >&6; } 2827fi 2828 2829 if test "x$ac_ct_CC" = x; then 2830 CC="" 2831 else 2832 case $cross_compiling:$ac_tool_warned in 2833yes:) 2834{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2836ac_tool_warned=yes ;; 2837esac 2838 CC=$ac_ct_CC 2839 fi 2840else 2841 CC="$ac_cv_prog_CC" 2842fi 2843 2844if test -z "$CC"; then 2845 if test -n "$ac_tool_prefix"; then 2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2847set dummy ${ac_tool_prefix}cc; ac_word=$2 2848{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2849$as_echo_n "checking for $ac_word... " >&6; } 2850if test "${ac_cv_prog_CC+set}" = set; then 2851 $as_echo_n "(cached) " >&6 2852else 2853 if test -n "$CC"; then 2854 ac_cv_prog_CC="$CC" # Let the user override the test. 2855else 2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857for as_dir in $PATH 2858do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2863 ac_cv_prog_CC="${ac_tool_prefix}cc" 2864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867done 2868done 2869IFS=$as_save_IFS 2870 2871fi 2872fi 2873CC=$ac_cv_prog_CC 2874if test -n "$CC"; then 2875 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2876$as_echo "$CC" >&6; } 2877else 2878 { $as_echo "$as_me:$LINENO: result: no" >&5 2879$as_echo "no" >&6; } 2880fi 2881 2882 2883 fi 2884fi 2885if test -z "$CC"; then 2886 # Extract the first word of "cc", so it can be a program name with args. 2887set dummy cc; ac_word=$2 2888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if test "${ac_cv_prog_CC+set}" = set; then 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$CC"; then 2894 ac_cv_prog_CC="$CC" # Let the user override the test. 2895else 2896 ac_prog_rejected=no 2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898for as_dir in $PATH 2899do 2900 IFS=$as_save_IFS 2901 test -z "$as_dir" && as_dir=. 2902 for ac_exec_ext in '' $ac_executable_extensions; do 2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2905 ac_prog_rejected=yes 2906 continue 2907 fi 2908 ac_cv_prog_CC="cc" 2909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912done 2913done 2914IFS=$as_save_IFS 2915 2916if test $ac_prog_rejected = yes; then 2917 # We found a bogon in the path, so make sure we never use it. 2918 set dummy $ac_cv_prog_CC 2919 shift 2920 if test $# != 0; then 2921 # We chose a different compiler from the bogus one. 2922 # However, it has the same basename, so the bogon will be chosen 2923 # first if we set CC to just the basename; use the full file name. 2924 shift 2925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2926 fi 2927fi 2928fi 2929fi 2930CC=$ac_cv_prog_CC 2931if test -n "$CC"; then 2932 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2933$as_echo "$CC" >&6; } 2934else 2935 { $as_echo "$as_me:$LINENO: result: no" >&5 2936$as_echo "no" >&6; } 2937fi 2938 2939 2940fi 2941if test -z "$CC"; then 2942 if test -n "$ac_tool_prefix"; then 2943 for ac_prog in cl.exe 2944 do 2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2946set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2947{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2948$as_echo_n "checking for $ac_word... " >&6; } 2949if test "${ac_cv_prog_CC+set}" = set; then 2950 $as_echo_n "(cached) " >&6 2951else 2952 if test -n "$CC"; then 2953 ac_cv_prog_CC="$CC" # Let the user override the test. 2954else 2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956for as_dir in $PATH 2957do 2958 IFS=$as_save_IFS 2959 test -z "$as_dir" && as_dir=. 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2964 break 2 2965 fi 2966done 2967done 2968IFS=$as_save_IFS 2969 2970fi 2971fi 2972CC=$ac_cv_prog_CC 2973if test -n "$CC"; then 2974 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2975$as_echo "$CC" >&6; } 2976else 2977 { $as_echo "$as_me:$LINENO: result: no" >&5 2978$as_echo "no" >&6; } 2979fi 2980 2981 2982 test -n "$CC" && break 2983 done 2984fi 2985if test -z "$CC"; then 2986 ac_ct_CC=$CC 2987 for ac_prog in cl.exe 2988do 2989 # Extract the first word of "$ac_prog", so it can be a program name with args. 2990set dummy $ac_prog; ac_word=$2 2991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2992$as_echo_n "checking for $ac_word... " >&6; } 2993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2994 $as_echo_n "(cached) " >&6 2995else 2996 if test -n "$ac_ct_CC"; then 2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 test -z "$as_dir" && as_dir=. 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3006 ac_cv_prog_ac_ct_CC="$ac_prog" 3007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011done 3012IFS=$as_save_IFS 3013 3014fi 3015fi 3016ac_ct_CC=$ac_cv_prog_ac_ct_CC 3017if test -n "$ac_ct_CC"; then 3018 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3019$as_echo "$ac_ct_CC" >&6; } 3020else 3021 { $as_echo "$as_me:$LINENO: result: no" >&5 3022$as_echo "no" >&6; } 3023fi 3024 3025 3026 test -n "$ac_ct_CC" && break 3027done 3028 3029 if test "x$ac_ct_CC" = x; then 3030 CC="" 3031 else 3032 case $cross_compiling:$ac_tool_warned in 3033yes:) 3034{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3036ac_tool_warned=yes ;; 3037esac 3038 CC=$ac_ct_CC 3039 fi 3040fi 3041 3042fi 3043 3044 3045test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3047{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3048See \`config.log' for more details." >&5 3049$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3050See \`config.log' for more details." >&2;} 3051 { (exit 1); exit 1; }; }; } 3052 3053# Provide some information about the compiler. 3054$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3055set X $ac_compile 3056ac_compiler=$2 3057{ (ac_try="$ac_compiler --version >&5" 3058case "(($ac_try" in 3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3060 *) ac_try_echo=$ac_try;; 3061esac 3062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3063$as_echo "$ac_try_echo") >&5 3064 (eval "$ac_compiler --version >&5") 2>&5 3065 ac_status=$? 3066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 (exit $ac_status); } 3068{ (ac_try="$ac_compiler -v >&5" 3069case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072esac 3073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3074$as_echo "$ac_try_echo") >&5 3075 (eval "$ac_compiler -v >&5") 2>&5 3076 ac_status=$? 3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3078 (exit $ac_status); } 3079{ (ac_try="$ac_compiler -V >&5" 3080case "(($ac_try" in 3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082 *) ac_try_echo=$ac_try;; 3083esac 3084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3085$as_echo "$ac_try_echo") >&5 3086 (eval "$ac_compiler -V >&5") 2>&5 3087 ac_status=$? 3088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } 3090 3091cat >conftest.$ac_ext <<_ACEOF 3092/* confdefs.h. */ 3093_ACEOF 3094cat confdefs.h >>conftest.$ac_ext 3095cat >>conftest.$ac_ext <<_ACEOF 3096/* end confdefs.h. */ 3097 3098int 3099main () 3100{ 3101 3102 ; 3103 return 0; 3104} 3105_ACEOF 3106ac_clean_files_save=$ac_clean_files 3107ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3108# Try to create an executable without -o first, disregard a.out. 3109# It will help us diagnose broken compilers, and finding out an intuition 3110# of exeext. 3111{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3112$as_echo_n "checking for C compiler default output file name... " >&6; } 3113ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3114 3115# The possible output files: 3116ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3117 3118ac_rmfiles= 3119for ac_file in $ac_files 3120do 3121 case $ac_file in 3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3123 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3124 esac 3125done 3126rm -f $ac_rmfiles 3127 3128if { (ac_try="$ac_link_default" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3134$as_echo "$ac_try_echo") >&5 3135 (eval "$ac_link_default") 2>&5 3136 ac_status=$? 3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 (exit $ac_status); }; then 3139 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3140# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3141# in a Makefile. We should not override ac_cv_exeext if it was cached, 3142# so that the user can short-circuit this test for compilers unknown to 3143# Autoconf. 3144for ac_file in $ac_files '' 3145do 3146 test -f "$ac_file" || continue 3147 case $ac_file in 3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3149 ;; 3150 [ab].out ) 3151 # We found the default executable, but exeext='' is most 3152 # certainly right. 3153 break;; 3154 *.* ) 3155 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3156 then :; else 3157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3158 fi 3159 # We set ac_cv_exeext here because the later test for it is not 3160 # safe: cross compilers may not add the suffix if given an `-o' 3161 # argument, so we may need to know it at that point already. 3162 # Even if this section looks crufty: it has the advantage of 3163 # actually working. 3164 break;; 3165 * ) 3166 break;; 3167 esac 3168done 3169test "$ac_cv_exeext" = no && ac_cv_exeext= 3170 3171else 3172 ac_file='' 3173fi 3174 3175{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3176$as_echo "$ac_file" >&6; } 3177if test -z "$ac_file"; then 3178 $as_echo "$as_me: failed program was:" >&5 3179sed 's/^/| /' conftest.$ac_ext >&5 3180 3181{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3183{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3184See \`config.log' for more details." >&5 3185$as_echo "$as_me: error: C compiler cannot create executables 3186See \`config.log' for more details." >&2;} 3187 { (exit 77); exit 77; }; }; } 3188fi 3189 3190ac_exeext=$ac_cv_exeext 3191 3192# Check that the compiler produces executables we can run. If not, either 3193# the compiler is broken, or we cross compile. 3194{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3195$as_echo_n "checking whether the C compiler works... " >&6; } 3196# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3197# If not cross compiling, check that we can run a simple program. 3198if test "$cross_compiling" != yes; then 3199 if { ac_try='./$ac_file' 3200 { (case "(($ac_try" in 3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3202 *) ac_try_echo=$ac_try;; 3203esac 3204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3205$as_echo "$ac_try_echo") >&5 3206 (eval "$ac_try") 2>&5 3207 ac_status=$? 3208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3209 (exit $ac_status); }; }; then 3210 cross_compiling=no 3211 else 3212 if test "$cross_compiling" = maybe; then 3213 cross_compiling=yes 3214 else 3215 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3217{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3218If you meant to cross compile, use \`--host'. 3219See \`config.log' for more details." >&5 3220$as_echo "$as_me: error: cannot run C compiled programs. 3221If you meant to cross compile, use \`--host'. 3222See \`config.log' for more details." >&2;} 3223 { (exit 1); exit 1; }; }; } 3224 fi 3225 fi 3226fi 3227{ $as_echo "$as_me:$LINENO: result: yes" >&5 3228$as_echo "yes" >&6; } 3229 3230rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3231ac_clean_files=$ac_clean_files_save 3232# Check that the compiler produces executables we can run. If not, either 3233# the compiler is broken, or we cross compile. 3234{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3235$as_echo_n "checking whether we are cross compiling... " >&6; } 3236{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3237$as_echo "$cross_compiling" >&6; } 3238 3239{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3240$as_echo_n "checking for suffix of executables... " >&6; } 3241if { (ac_try="$ac_link" 3242case "(($ac_try" in 3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3244 *) ac_try_echo=$ac_try;; 3245esac 3246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3247$as_echo "$ac_try_echo") >&5 3248 (eval "$ac_link") 2>&5 3249 ac_status=$? 3250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3251 (exit $ac_status); }; then 3252 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3253# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3254# work properly (i.e., refer to `conftest.exe'), while it won't with 3255# `rm'. 3256for ac_file in conftest.exe conftest conftest.*; do 3257 test -f "$ac_file" || continue 3258 case $ac_file in 3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3261 break;; 3262 * ) break;; 3263 esac 3264done 3265else 3266 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3268{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3269See \`config.log' for more details." >&5 3270$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3271See \`config.log' for more details." >&2;} 3272 { (exit 1); exit 1; }; }; } 3273fi 3274 3275rm -f conftest$ac_cv_exeext 3276{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3277$as_echo "$ac_cv_exeext" >&6; } 3278 3279rm -f conftest.$ac_ext 3280EXEEXT=$ac_cv_exeext 3281ac_exeext=$EXEEXT 3282{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3283$as_echo_n "checking for suffix of object files... " >&6; } 3284if test "${ac_cv_objext+set}" = set; then 3285 $as_echo_n "(cached) " >&6 3286else 3287 cat >conftest.$ac_ext <<_ACEOF 3288/* confdefs.h. */ 3289_ACEOF 3290cat confdefs.h >>conftest.$ac_ext 3291cat >>conftest.$ac_ext <<_ACEOF 3292/* end confdefs.h. */ 3293 3294int 3295main () 3296{ 3297 3298 ; 3299 return 0; 3300} 3301_ACEOF 3302rm -f conftest.o conftest.obj 3303if { (ac_try="$ac_compile" 3304case "(($ac_try" in 3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3306 *) ac_try_echo=$ac_try;; 3307esac 3308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3309$as_echo "$ac_try_echo") >&5 3310 (eval "$ac_compile") 2>&5 3311 ac_status=$? 3312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3313 (exit $ac_status); }; then 3314 for ac_file in conftest.o conftest.obj conftest.*; do 3315 test -f "$ac_file" || continue; 3316 case $ac_file in 3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3319 break;; 3320 esac 3321done 3322else 3323 $as_echo "$as_me: failed program was:" >&5 3324sed 's/^/| /' conftest.$ac_ext >&5 3325 3326{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3328{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3329See \`config.log' for more details." >&5 3330$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3331See \`config.log' for more details." >&2;} 3332 { (exit 1); exit 1; }; }; } 3333fi 3334 3335rm -f conftest.$ac_cv_objext conftest.$ac_ext 3336fi 3337{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3338$as_echo "$ac_cv_objext" >&6; } 3339OBJEXT=$ac_cv_objext 3340ac_objext=$OBJEXT 3341{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3342$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3343if test "${ac_cv_c_compiler_gnu+set}" = set; then 3344 $as_echo_n "(cached) " >&6 3345else 3346 cat >conftest.$ac_ext <<_ACEOF 3347/* confdefs.h. */ 3348_ACEOF 3349cat confdefs.h >>conftest.$ac_ext 3350cat >>conftest.$ac_ext <<_ACEOF 3351/* end confdefs.h. */ 3352 3353int 3354main () 3355{ 3356#ifndef __GNUC__ 3357 choke me 3358#endif 3359 3360 ; 3361 return 0; 3362} 3363_ACEOF 3364rm -f conftest.$ac_objext 3365if { (ac_try="$ac_compile" 3366case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3371$as_echo "$ac_try_echo") >&5 3372 (eval "$ac_compile") 2>conftest.er1 3373 ac_status=$? 3374 grep -v '^ *+' conftest.er1 >conftest.err 3375 rm -f conftest.er1 3376 cat conftest.err >&5 3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3378 (exit $ac_status); } && { 3379 test -z "$ac_c_werror_flag" || 3380 test ! -s conftest.err 3381 } && test -s conftest.$ac_objext; then 3382 ac_compiler_gnu=yes 3383else 3384 $as_echo "$as_me: failed program was:" >&5 3385sed 's/^/| /' conftest.$ac_ext >&5 3386 3387 ac_compiler_gnu=no 3388fi 3389 3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3391ac_cv_c_compiler_gnu=$ac_compiler_gnu 3392 3393fi 3394{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3395$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3396if test $ac_compiler_gnu = yes; then 3397 GCC=yes 3398else 3399 GCC= 3400fi 3401ac_test_CFLAGS=${CFLAGS+set} 3402ac_save_CFLAGS=$CFLAGS 3403{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3404$as_echo_n "checking whether $CC accepts -g... " >&6; } 3405if test "${ac_cv_prog_cc_g+set}" = set; then 3406 $as_echo_n "(cached) " >&6 3407else 3408 ac_save_c_werror_flag=$ac_c_werror_flag 3409 ac_c_werror_flag=yes 3410 ac_cv_prog_cc_g=no 3411 CFLAGS="-g" 3412 cat >conftest.$ac_ext <<_ACEOF 3413/* confdefs.h. */ 3414_ACEOF 3415cat confdefs.h >>conftest.$ac_ext 3416cat >>conftest.$ac_ext <<_ACEOF 3417/* end confdefs.h. */ 3418 3419int 3420main () 3421{ 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427rm -f conftest.$ac_objext 3428if { (ac_try="$ac_compile" 3429case "(($ac_try" in 3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3431 *) ac_try_echo=$ac_try;; 3432esac 3433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3434$as_echo "$ac_try_echo") >&5 3435 (eval "$ac_compile") 2>conftest.er1 3436 ac_status=$? 3437 grep -v '^ *+' conftest.er1 >conftest.err 3438 rm -f conftest.er1 3439 cat conftest.err >&5 3440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); } && { 3442 test -z "$ac_c_werror_flag" || 3443 test ! -s conftest.err 3444 } && test -s conftest.$ac_objext; then 3445 ac_cv_prog_cc_g=yes 3446else 3447 $as_echo "$as_me: failed program was:" >&5 3448sed 's/^/| /' conftest.$ac_ext >&5 3449 3450 CFLAGS="" 3451 cat >conftest.$ac_ext <<_ACEOF 3452/* confdefs.h. */ 3453_ACEOF 3454cat confdefs.h >>conftest.$ac_ext 3455cat >>conftest.$ac_ext <<_ACEOF 3456/* end confdefs.h. */ 3457 3458int 3459main () 3460{ 3461 3462 ; 3463 return 0; 3464} 3465_ACEOF 3466rm -f conftest.$ac_objext 3467if { (ac_try="$ac_compile" 3468case "(($ac_try" in 3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3470 *) ac_try_echo=$ac_try;; 3471esac 3472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3473$as_echo "$ac_try_echo") >&5 3474 (eval "$ac_compile") 2>conftest.er1 3475 ac_status=$? 3476 grep -v '^ *+' conftest.er1 >conftest.err 3477 rm -f conftest.er1 3478 cat conftest.err >&5 3479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); } && { 3481 test -z "$ac_c_werror_flag" || 3482 test ! -s conftest.err 3483 } && test -s conftest.$ac_objext; then 3484 : 3485else 3486 $as_echo "$as_me: failed program was:" >&5 3487sed 's/^/| /' conftest.$ac_ext >&5 3488 3489 ac_c_werror_flag=$ac_save_c_werror_flag 3490 CFLAGS="-g" 3491 cat >conftest.$ac_ext <<_ACEOF 3492/* confdefs.h. */ 3493_ACEOF 3494cat confdefs.h >>conftest.$ac_ext 3495cat >>conftest.$ac_ext <<_ACEOF 3496/* end confdefs.h. */ 3497 3498int 3499main () 3500{ 3501 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506rm -f conftest.$ac_objext 3507if { (ac_try="$ac_compile" 3508case "(($ac_try" in 3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3510 *) ac_try_echo=$ac_try;; 3511esac 3512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3513$as_echo "$ac_try_echo") >&5 3514 (eval "$ac_compile") 2>conftest.er1 3515 ac_status=$? 3516 grep -v '^ *+' conftest.er1 >conftest.err 3517 rm -f conftest.er1 3518 cat conftest.err >&5 3519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3520 (exit $ac_status); } && { 3521 test -z "$ac_c_werror_flag" || 3522 test ! -s conftest.err 3523 } && test -s conftest.$ac_objext; then 3524 ac_cv_prog_cc_g=yes 3525else 3526 $as_echo "$as_me: failed program was:" >&5 3527sed 's/^/| /' conftest.$ac_ext >&5 3528 3529 3530fi 3531 3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3533fi 3534 3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3536fi 3537 3538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3539 ac_c_werror_flag=$ac_save_c_werror_flag 3540fi 3541{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3542$as_echo "$ac_cv_prog_cc_g" >&6; } 3543if test "$ac_test_CFLAGS" = set; then 3544 CFLAGS=$ac_save_CFLAGS 3545elif test $ac_cv_prog_cc_g = yes; then 3546 if test "$GCC" = yes; then 3547 CFLAGS="-g -O2" 3548 else 3549 CFLAGS="-g" 3550 fi 3551else 3552 if test "$GCC" = yes; then 3553 CFLAGS="-O2" 3554 else 3555 CFLAGS= 3556 fi 3557fi 3558{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3559$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3560if test "${ac_cv_prog_cc_c89+set}" = set; then 3561 $as_echo_n "(cached) " >&6 3562else 3563 ac_cv_prog_cc_c89=no 3564ac_save_CC=$CC 3565cat >conftest.$ac_ext <<_ACEOF 3566/* confdefs.h. */ 3567_ACEOF 3568cat confdefs.h >>conftest.$ac_ext 3569cat >>conftest.$ac_ext <<_ACEOF 3570/* end confdefs.h. */ 3571#include <stdarg.h> 3572#include <stdio.h> 3573#include <sys/types.h> 3574#include <sys/stat.h> 3575/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3576struct buf { int x; }; 3577FILE * (*rcsopen) (struct buf *, struct stat *, int); 3578static char *e (p, i) 3579 char **p; 3580 int i; 3581{ 3582 return p[i]; 3583} 3584static char *f (char * (*g) (char **, int), char **p, ...) 3585{ 3586 char *s; 3587 va_list v; 3588 va_start (v,p); 3589 s = g (p, va_arg (v,int)); 3590 va_end (v); 3591 return s; 3592} 3593 3594/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3595 function prototypes and stuff, but not '\xHH' hex character constants. 3596 These don't provoke an error unfortunately, instead are silently treated 3597 as 'x'. The following induces an error, until -std is added to get 3598 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3599 array size at least. It's necessary to write '\x00'==0 to get something 3600 that's true only with -std. */ 3601int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3602 3603/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3604 inside strings and character constants. */ 3605#define FOO(x) 'x' 3606int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3607 3608int test (int i, double x); 3609struct s1 {int (*f) (int a);}; 3610struct s2 {int (*f) (double a);}; 3611int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3612int argc; 3613char **argv; 3614int 3615main () 3616{ 3617return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3618 ; 3619 return 0; 3620} 3621_ACEOF 3622for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3623 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3624do 3625 CC="$ac_save_CC $ac_arg" 3626 rm -f conftest.$ac_objext 3627if { (ac_try="$ac_compile" 3628case "(($ac_try" in 3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3630 *) ac_try_echo=$ac_try;; 3631esac 3632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3633$as_echo "$ac_try_echo") >&5 3634 (eval "$ac_compile") 2>conftest.er1 3635 ac_status=$? 3636 grep -v '^ *+' conftest.er1 >conftest.err 3637 rm -f conftest.er1 3638 cat conftest.err >&5 3639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3640 (exit $ac_status); } && { 3641 test -z "$ac_c_werror_flag" || 3642 test ! -s conftest.err 3643 } && test -s conftest.$ac_objext; then 3644 ac_cv_prog_cc_c89=$ac_arg 3645else 3646 $as_echo "$as_me: failed program was:" >&5 3647sed 's/^/| /' conftest.$ac_ext >&5 3648 3649 3650fi 3651 3652rm -f core conftest.err conftest.$ac_objext 3653 test "x$ac_cv_prog_cc_c89" != "xno" && break 3654done 3655rm -f conftest.$ac_ext 3656CC=$ac_save_CC 3657 3658fi 3659# AC_CACHE_VAL 3660case "x$ac_cv_prog_cc_c89" in 3661 x) 3662 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3663$as_echo "none needed" >&6; } ;; 3664 xno) 3665 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3666$as_echo "unsupported" >&6; } ;; 3667 *) 3668 CC="$CC $ac_cv_prog_cc_c89" 3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3670$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3671esac 3672 3673 3674ac_ext=c 3675ac_cpp='$CPP $CPPFLAGS' 3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3678ac_compiler_gnu=$ac_cv_c_compiler_gnu 3679DEPDIR="${am__leading_dot}deps" 3680 3681ac_config_commands="$ac_config_commands depfiles" 3682 3683 3684am_make=${MAKE-make} 3685cat > confinc << 'END' 3686am__doit: 3687 @echo done 3688.PHONY: am__doit 3689END 3690# If we don't find an include directive, just comment out the code. 3691{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3692$as_echo_n "checking for style of include used by $am_make... " >&6; } 3693am__include="#" 3694am__quote= 3695_am_result=none 3696# First try GNU make style include. 3697echo "include confinc" > confmf 3698# We grep out `Entering directory' and `Leaving directory' 3699# messages which can occur if `w' ends up in MAKEFLAGS. 3700# In particular we don't look at `^make:' because GNU make might 3701# be invoked under some other name (usually "gmake"), in which 3702# case it prints its new name instead of `make'. 3703if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3704 am__include=include 3705 am__quote= 3706 _am_result=GNU 3707fi 3708# Now try BSD make style include. 3709if test "$am__include" = "#"; then 3710 echo '.include "confinc"' > confmf 3711 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3712 am__include=.include 3713 am__quote="\"" 3714 _am_result=BSD 3715 fi 3716fi 3717 3718 3719{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3720$as_echo "$_am_result" >&6; } 3721rm -f confinc confmf 3722 3723# Check whether --enable-dependency-tracking was given. 3724if test "${enable_dependency_tracking+set}" = set; then 3725 enableval=$enable_dependency_tracking; 3726fi 3727 3728if test "x$enable_dependency_tracking" != xno; then 3729 am_depcomp="$ac_aux_dir/depcomp" 3730 AMDEPBACKSLASH='\' 3731fi 3732 if test "x$enable_dependency_tracking" != xno; then 3733 AMDEP_TRUE= 3734 AMDEP_FALSE='#' 3735else 3736 AMDEP_TRUE='#' 3737 AMDEP_FALSE= 3738fi 3739 3740 3741 3742depcc="$CC" am_compiler_list= 3743 3744{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3745$as_echo_n "checking dependency style of $depcc... " >&6; } 3746if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3747 $as_echo_n "(cached) " >&6 3748else 3749 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3750 # We make a subdir and do the tests there. Otherwise we can end up 3751 # making bogus files that we don't know about and never remove. For 3752 # instance it was reported that on HP-UX the gcc test will end up 3753 # making a dummy file named `D' -- because `-MD' means `put the output 3754 # in D'. 3755 mkdir conftest.dir 3756 # Copy depcomp to subdir because otherwise we won't find it if we're 3757 # using a relative directory. 3758 cp "$am_depcomp" conftest.dir 3759 cd conftest.dir 3760 # We will build objects and dependencies in a subdirectory because 3761 # it helps to detect inapplicable dependency modes. For instance 3762 # both Tru64's cc and ICC support -MD to output dependencies as a 3763 # side effect of compilation, but ICC will put the dependencies in 3764 # the current directory while Tru64 will put them in the object 3765 # directory. 3766 mkdir sub 3767 3768 am_cv_CC_dependencies_compiler_type=none 3769 if test "$am_compiler_list" = ""; then 3770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3771 fi 3772 for depmode in $am_compiler_list; do 3773 # Setup a source with many dependencies, because some compilers 3774 # like to wrap large dependency lists on column 80 (with \), and 3775 # we should not choose a depcomp mode which is confused by this. 3776 # 3777 # We need to recreate these files for each test, as the compiler may 3778 # overwrite some of them when testing with obscure command lines. 3779 # This happens at least with the AIX C compiler. 3780 : > sub/conftest.c 3781 for i in 1 2 3 4 5 6; do 3782 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3783 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3784 # Solaris 8's {/usr,}/bin/sh. 3785 touch sub/conftst$i.h 3786 done 3787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3788 3789 case $depmode in 3790 nosideeffect) 3791 # after this tag, mechanisms are not by side-effect, so they'll 3792 # only be used when explicitly requested 3793 if test "x$enable_dependency_tracking" = xyes; then 3794 continue 3795 else 3796 break 3797 fi 3798 ;; 3799 none) break ;; 3800 esac 3801 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3802 # mode. It turns out that the SunPro C++ compiler does not properly 3803 # handle `-M -o', and we need to detect this. 3804 if depmode=$depmode \ 3805 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3807 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3808 >/dev/null 2>conftest.err && 3809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3811 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3813 # icc doesn't choke on unknown options, it will just issue warnings 3814 # or remarks (even with -Werror). So we grep stderr for any message 3815 # that says an option was ignored or not supported. 3816 # When given -MP, icc 7.0 and 7.1 complain thusly: 3817 # icc: Command line warning: ignoring option '-M'; no argument required 3818 # The diagnosis changed in icc 8.0: 3819 # icc: Command line remark: option '-MP' not supported 3820 if (grep 'ignoring option' conftest.err || 3821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3822 am_cv_CC_dependencies_compiler_type=$depmode 3823 break 3824 fi 3825 fi 3826 done 3827 3828 cd .. 3829 rm -rf conftest.dir 3830else 3831 am_cv_CC_dependencies_compiler_type=none 3832fi 3833 3834fi 3835{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3836$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3837CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3838 3839 if 3840 test "x$enable_dependency_tracking" != xno \ 3841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3842 am__fastdepCC_TRUE= 3843 am__fastdepCC_FALSE='#' 3844else 3845 am__fastdepCC_TRUE='#' 3846 am__fastdepCC_FALSE= 3847fi 3848 3849 3850ac_ext=c 3851ac_cpp='$CPP $CPPFLAGS' 3852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3854ac_compiler_gnu=$ac_cv_c_compiler_gnu 3855{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3856$as_echo_n "checking how to run the C preprocessor... " >&6; } 3857# On Suns, sometimes $CPP names a directory. 3858if test -n "$CPP" && test -d "$CPP"; then 3859 CPP= 3860fi 3861if test -z "$CPP"; then 3862 if test "${ac_cv_prog_CPP+set}" = set; then 3863 $as_echo_n "(cached) " >&6 3864else 3865 # Double quotes because CPP needs to be expanded 3866 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3867 do 3868 ac_preproc_ok=false 3869for ac_c_preproc_warn_flag in '' yes 3870do 3871 # Use a header file that comes with gcc, so configuring glibc 3872 # with a fresh cross-compiler works. 3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3874 # <limits.h> exists even on freestanding compilers. 3875 # On the NeXT, cc -E runs the code through the compiler's parser, 3876 # not just through cpp. "Syntax error" is here to catch this case. 3877 cat >conftest.$ac_ext <<_ACEOF 3878/* confdefs.h. */ 3879_ACEOF 3880cat confdefs.h >>conftest.$ac_ext 3881cat >>conftest.$ac_ext <<_ACEOF 3882/* end confdefs.h. */ 3883#ifdef __STDC__ 3884# include <limits.h> 3885#else 3886# include <assert.h> 3887#endif 3888 Syntax error 3889_ACEOF 3890if { (ac_try="$ac_cpp conftest.$ac_ext" 3891case "(($ac_try" in 3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3893 *) ac_try_echo=$ac_try;; 3894esac 3895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3896$as_echo "$ac_try_echo") >&5 3897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3898 ac_status=$? 3899 grep -v '^ *+' conftest.er1 >conftest.err 3900 rm -f conftest.er1 3901 cat conftest.err >&5 3902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3903 (exit $ac_status); } >/dev/null && { 3904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3905 test ! -s conftest.err 3906 }; then 3907 : 3908else 3909 $as_echo "$as_me: failed program was:" >&5 3910sed 's/^/| /' conftest.$ac_ext >&5 3911 3912 # Broken: fails on valid input. 3913continue 3914fi 3915 3916rm -f conftest.err conftest.$ac_ext 3917 3918 # OK, works on sane cases. Now check whether nonexistent headers 3919 # can be detected and how. 3920 cat >conftest.$ac_ext <<_ACEOF 3921/* confdefs.h. */ 3922_ACEOF 3923cat confdefs.h >>conftest.$ac_ext 3924cat >>conftest.$ac_ext <<_ACEOF 3925/* end confdefs.h. */ 3926#include <ac_nonexistent.h> 3927_ACEOF 3928if { (ac_try="$ac_cpp conftest.$ac_ext" 3929case "(($ac_try" in 3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3931 *) ac_try_echo=$ac_try;; 3932esac 3933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3934$as_echo "$ac_try_echo") >&5 3935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3936 ac_status=$? 3937 grep -v '^ *+' conftest.er1 >conftest.err 3938 rm -f conftest.er1 3939 cat conftest.err >&5 3940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3941 (exit $ac_status); } >/dev/null && { 3942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3943 test ! -s conftest.err 3944 }; then 3945 # Broken: success on invalid input. 3946continue 3947else 3948 $as_echo "$as_me: failed program was:" >&5 3949sed 's/^/| /' conftest.$ac_ext >&5 3950 3951 # Passes both tests. 3952ac_preproc_ok=: 3953break 3954fi 3955 3956rm -f conftest.err conftest.$ac_ext 3957 3958done 3959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3960rm -f conftest.err conftest.$ac_ext 3961if $ac_preproc_ok; then 3962 break 3963fi 3964 3965 done 3966 ac_cv_prog_CPP=$CPP 3967 3968fi 3969 CPP=$ac_cv_prog_CPP 3970else 3971 ac_cv_prog_CPP=$CPP 3972fi 3973{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3974$as_echo "$CPP" >&6; } 3975ac_preproc_ok=false 3976for ac_c_preproc_warn_flag in '' yes 3977do 3978 # Use a header file that comes with gcc, so configuring glibc 3979 # with a fresh cross-compiler works. 3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3981 # <limits.h> exists even on freestanding compilers. 3982 # On the NeXT, cc -E runs the code through the compiler's parser, 3983 # not just through cpp. "Syntax error" is here to catch this case. 3984 cat >conftest.$ac_ext <<_ACEOF 3985/* confdefs.h. */ 3986_ACEOF 3987cat confdefs.h >>conftest.$ac_ext 3988cat >>conftest.$ac_ext <<_ACEOF 3989/* end confdefs.h. */ 3990#ifdef __STDC__ 3991# include <limits.h> 3992#else 3993# include <assert.h> 3994#endif 3995 Syntax error 3996_ACEOF 3997if { (ac_try="$ac_cpp conftest.$ac_ext" 3998case "(($ac_try" in 3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4000 *) ac_try_echo=$ac_try;; 4001esac 4002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4003$as_echo "$ac_try_echo") >&5 4004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4005 ac_status=$? 4006 grep -v '^ *+' conftest.er1 >conftest.err 4007 rm -f conftest.er1 4008 cat conftest.err >&5 4009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4010 (exit $ac_status); } >/dev/null && { 4011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4012 test ! -s conftest.err 4013 }; then 4014 : 4015else 4016 $as_echo "$as_me: failed program was:" >&5 4017sed 's/^/| /' conftest.$ac_ext >&5 4018 4019 # Broken: fails on valid input. 4020continue 4021fi 4022 4023rm -f conftest.err conftest.$ac_ext 4024 4025 # OK, works on sane cases. Now check whether nonexistent headers 4026 # can be detected and how. 4027 cat >conftest.$ac_ext <<_ACEOF 4028/* confdefs.h. */ 4029_ACEOF 4030cat confdefs.h >>conftest.$ac_ext 4031cat >>conftest.$ac_ext <<_ACEOF 4032/* end confdefs.h. */ 4033#include <ac_nonexistent.h> 4034_ACEOF 4035if { (ac_try="$ac_cpp conftest.$ac_ext" 4036case "(($ac_try" in 4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4038 *) ac_try_echo=$ac_try;; 4039esac 4040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4041$as_echo "$ac_try_echo") >&5 4042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4043 ac_status=$? 4044 grep -v '^ *+' conftest.er1 >conftest.err 4045 rm -f conftest.er1 4046 cat conftest.err >&5 4047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4048 (exit $ac_status); } >/dev/null && { 4049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4050 test ! -s conftest.err 4051 }; then 4052 # Broken: success on invalid input. 4053continue 4054else 4055 $as_echo "$as_me: failed program was:" >&5 4056sed 's/^/| /' conftest.$ac_ext >&5 4057 4058 # Passes both tests. 4059ac_preproc_ok=: 4060break 4061fi 4062 4063rm -f conftest.err conftest.$ac_ext 4064 4065done 4066# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4067rm -f conftest.err conftest.$ac_ext 4068if $ac_preproc_ok; then 4069 : 4070else 4071 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4073{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4074See \`config.log' for more details." >&5 4075$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4076See \`config.log' for more details." >&2;} 4077 { (exit 1); exit 1; }; }; } 4078fi 4079 4080ac_ext=c 4081ac_cpp='$CPP $CPPFLAGS' 4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4084ac_compiler_gnu=$ac_cv_c_compiler_gnu 4085 4086# Find a good install program. We prefer a C program (faster), 4087# so one script is as good as another. But avoid the broken or 4088# incompatible versions: 4089# SysV /etc/install, /usr/sbin/install 4090# SunOS /usr/etc/install 4091# IRIX /sbin/install 4092# AIX /bin/install 4093# AmigaOS /C/install, which installs bootblocks on floppy discs 4094# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4095# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4096# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4097# OS/2's system install, which has a completely different semantic 4098# ./install, which can be erroneously created by make from ./install.sh. 4099# Reject install programs that cannot install multiple files. 4100{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4101$as_echo_n "checking for a BSD-compatible install... " >&6; } 4102if test -z "$INSTALL"; then 4103if test "${ac_cv_path_install+set}" = set; then 4104 $as_echo_n "(cached) " >&6 4105else 4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4107for as_dir in $PATH 4108do 4109 IFS=$as_save_IFS 4110 test -z "$as_dir" && as_dir=. 4111 # Account for people who put trailing slashes in PATH elements. 4112case $as_dir/ in 4113 ./ | .// | /cC/* | \ 4114 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4115 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4116 /usr/ucb/* ) ;; 4117 *) 4118 # OSF1 and SCO ODT 3.0 have their own names for install. 4119 # Don't use installbsd from OSF since it installs stuff as root 4120 # by default. 4121 for ac_prog in ginstall scoinst install; do 4122 for ac_exec_ext in '' $ac_executable_extensions; do 4123 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4124 if test $ac_prog = install && 4125 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4126 # AIX install. It has an incompatible calling convention. 4127 : 4128 elif test $ac_prog = install && 4129 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4130 # program-specific install script used by HP pwplus--don't use. 4131 : 4132 else 4133 rm -rf conftest.one conftest.two conftest.dir 4134 echo one > conftest.one 4135 echo two > conftest.two 4136 mkdir conftest.dir 4137 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4138 test -s conftest.one && test -s conftest.two && 4139 test -s conftest.dir/conftest.one && 4140 test -s conftest.dir/conftest.two 4141 then 4142 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4143 break 3 4144 fi 4145 fi 4146 fi 4147 done 4148 done 4149 ;; 4150esac 4151 4152done 4153IFS=$as_save_IFS 4154 4155rm -rf conftest.one conftest.two conftest.dir 4156 4157fi 4158 if test "${ac_cv_path_install+set}" = set; then 4159 INSTALL=$ac_cv_path_install 4160 else 4161 # As a last resort, use the slow shell script. Don't cache a 4162 # value for INSTALL within a source directory, because that will 4163 # break other packages using the cache if that directory is 4164 # removed, or if the value is a relative name. 4165 INSTALL=$ac_install_sh 4166 fi 4167fi 4168{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 4169$as_echo "$INSTALL" >&6; } 4170 4171# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4172# It thinks the first close brace ends the variable substitution. 4173test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4174 4175test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4176 4177test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4178 4179case `pwd` in 4180 *\ * | *\ *) 4181 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4182$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4183esac 4184 4185 4186 4187macro_version='2.2.6' 4188macro_revision='1.3012' 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202ltmain="$ac_aux_dir/ltmain.sh" 4203 4204{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4205$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4206if test "${ac_cv_path_SED+set}" = set; then 4207 $as_echo_n "(cached) " >&6 4208else 4209 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4210 for ac_i in 1 2 3 4 5 6 7; do 4211 ac_script="$ac_script$as_nl$ac_script" 4212 done 4213 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4214 $as_unset ac_script || ac_script= 4215 if test -z "$SED"; then 4216 ac_path_SED_found=false 4217 # Loop through the user's path and test for each of PROGNAME-LIST 4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4219for as_dir in $PATH 4220do 4221 IFS=$as_save_IFS 4222 test -z "$as_dir" && as_dir=. 4223 for ac_prog in sed gsed; do 4224 for ac_exec_ext in '' $ac_executable_extensions; do 4225 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4226 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4227# Check for GNU ac_path_SED and select it if it is found. 4228 # Check for GNU $ac_path_SED 4229case `"$ac_path_SED" --version 2>&1` in 4230*GNU*) 4231 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4232*) 4233 ac_count=0 4234 $as_echo_n 0123456789 >"conftest.in" 4235 while : 4236 do 4237 cat "conftest.in" "conftest.in" >"conftest.tmp" 4238 mv "conftest.tmp" "conftest.in" 4239 cp "conftest.in" "conftest.nl" 4240 $as_echo '' >> "conftest.nl" 4241 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4243 ac_count=`expr $ac_count + 1` 4244 if test $ac_count -gt ${ac_path_SED_max-0}; then 4245 # Best one so far, save it but keep looking for a better one 4246 ac_cv_path_SED="$ac_path_SED" 4247 ac_path_SED_max=$ac_count 4248 fi 4249 # 10*(2^10) chars as input seems more than enough 4250 test $ac_count -gt 10 && break 4251 done 4252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4253esac 4254 4255 $ac_path_SED_found && break 3 4256 done 4257 done 4258done 4259IFS=$as_save_IFS 4260 if test -z "$ac_cv_path_SED"; then 4261 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4262$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4263 { (exit 1); exit 1; }; } 4264 fi 4265else 4266 ac_cv_path_SED=$SED 4267fi 4268 4269fi 4270{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4271$as_echo "$ac_cv_path_SED" >&6; } 4272 SED="$ac_cv_path_SED" 4273 rm -f conftest.sed 4274 4275test -z "$SED" && SED=sed 4276Xsed="$SED -e 1s/^X//" 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4289$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4290if test "${ac_cv_path_GREP+set}" = set; then 4291 $as_echo_n "(cached) " >&6 4292else 4293 if test -z "$GREP"; then 4294 ac_path_GREP_found=false 4295 # Loop through the user's path and test for each of PROGNAME-LIST 4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4297for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4298do 4299 IFS=$as_save_IFS 4300 test -z "$as_dir" && as_dir=. 4301 for ac_prog in grep ggrep; do 4302 for ac_exec_ext in '' $ac_executable_extensions; do 4303 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4305# Check for GNU ac_path_GREP and select it if it is found. 4306 # Check for GNU $ac_path_GREP 4307case `"$ac_path_GREP" --version 2>&1` in 4308*GNU*) 4309 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4310*) 4311 ac_count=0 4312 $as_echo_n 0123456789 >"conftest.in" 4313 while : 4314 do 4315 cat "conftest.in" "conftest.in" >"conftest.tmp" 4316 mv "conftest.tmp" "conftest.in" 4317 cp "conftest.in" "conftest.nl" 4318 $as_echo 'GREP' >> "conftest.nl" 4319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4321 ac_count=`expr $ac_count + 1` 4322 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4323 # Best one so far, save it but keep looking for a better one 4324 ac_cv_path_GREP="$ac_path_GREP" 4325 ac_path_GREP_max=$ac_count 4326 fi 4327 # 10*(2^10) chars as input seems more than enough 4328 test $ac_count -gt 10 && break 4329 done 4330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4331esac 4332 4333 $ac_path_GREP_found && break 3 4334 done 4335 done 4336done 4337IFS=$as_save_IFS 4338 if test -z "$ac_cv_path_GREP"; then 4339 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4340$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4341 { (exit 1); exit 1; }; } 4342 fi 4343else 4344 ac_cv_path_GREP=$GREP 4345fi 4346 4347fi 4348{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4349$as_echo "$ac_cv_path_GREP" >&6; } 4350 GREP="$ac_cv_path_GREP" 4351 4352 4353{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4354$as_echo_n "checking for egrep... " >&6; } 4355if test "${ac_cv_path_EGREP+set}" = set; then 4356 $as_echo_n "(cached) " >&6 4357else 4358 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4359 then ac_cv_path_EGREP="$GREP -E" 4360 else 4361 if test -z "$EGREP"; then 4362 ac_path_EGREP_found=false 4363 # Loop through the user's path and test for each of PROGNAME-LIST 4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4366do 4367 IFS=$as_save_IFS 4368 test -z "$as_dir" && as_dir=. 4369 for ac_prog in egrep; do 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4372 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4373# Check for GNU ac_path_EGREP and select it if it is found. 4374 # Check for GNU $ac_path_EGREP 4375case `"$ac_path_EGREP" --version 2>&1` in 4376*GNU*) 4377 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4378*) 4379 ac_count=0 4380 $as_echo_n 0123456789 >"conftest.in" 4381 while : 4382 do 4383 cat "conftest.in" "conftest.in" >"conftest.tmp" 4384 mv "conftest.tmp" "conftest.in" 4385 cp "conftest.in" "conftest.nl" 4386 $as_echo 'EGREP' >> "conftest.nl" 4387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4389 ac_count=`expr $ac_count + 1` 4390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4391 # Best one so far, save it but keep looking for a better one 4392 ac_cv_path_EGREP="$ac_path_EGREP" 4393 ac_path_EGREP_max=$ac_count 4394 fi 4395 # 10*(2^10) chars as input seems more than enough 4396 test $ac_count -gt 10 && break 4397 done 4398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4399esac 4400 4401 $ac_path_EGREP_found && break 3 4402 done 4403 done 4404done 4405IFS=$as_save_IFS 4406 if test -z "$ac_cv_path_EGREP"; then 4407 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4408$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4409 { (exit 1); exit 1; }; } 4410 fi 4411else 4412 ac_cv_path_EGREP=$EGREP 4413fi 4414 4415 fi 4416fi 4417{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4418$as_echo "$ac_cv_path_EGREP" >&6; } 4419 EGREP="$ac_cv_path_EGREP" 4420 4421 4422{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4423$as_echo_n "checking for fgrep... " >&6; } 4424if test "${ac_cv_path_FGREP+set}" = set; then 4425 $as_echo_n "(cached) " >&6 4426else 4427 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4428 then ac_cv_path_FGREP="$GREP -F" 4429 else 4430 if test -z "$FGREP"; then 4431 ac_path_FGREP_found=false 4432 # Loop through the user's path and test for each of PROGNAME-LIST 4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4435do 4436 IFS=$as_save_IFS 4437 test -z "$as_dir" && as_dir=. 4438 for ac_prog in fgrep; do 4439 for ac_exec_ext in '' $ac_executable_extensions; do 4440 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4441 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4442# Check for GNU ac_path_FGREP and select it if it is found. 4443 # Check for GNU $ac_path_FGREP 4444case `"$ac_path_FGREP" --version 2>&1` in 4445*GNU*) 4446 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4447*) 4448 ac_count=0 4449 $as_echo_n 0123456789 >"conftest.in" 4450 while : 4451 do 4452 cat "conftest.in" "conftest.in" >"conftest.tmp" 4453 mv "conftest.tmp" "conftest.in" 4454 cp "conftest.in" "conftest.nl" 4455 $as_echo 'FGREP' >> "conftest.nl" 4456 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4458 ac_count=`expr $ac_count + 1` 4459 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4460 # Best one so far, save it but keep looking for a better one 4461 ac_cv_path_FGREP="$ac_path_FGREP" 4462 ac_path_FGREP_max=$ac_count 4463 fi 4464 # 10*(2^10) chars as input seems more than enough 4465 test $ac_count -gt 10 && break 4466 done 4467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4468esac 4469 4470 $ac_path_FGREP_found && break 3 4471 done 4472 done 4473done 4474IFS=$as_save_IFS 4475 if test -z "$ac_cv_path_FGREP"; then 4476 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4477$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4478 { (exit 1); exit 1; }; } 4479 fi 4480else 4481 ac_cv_path_FGREP=$FGREP 4482fi 4483 4484 fi 4485fi 4486{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4487$as_echo "$ac_cv_path_FGREP" >&6; } 4488 FGREP="$ac_cv_path_FGREP" 4489 4490 4491test -z "$GREP" && GREP=grep 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511# Check whether --with-gnu-ld was given. 4512if test "${with_gnu_ld+set}" = set; then 4513 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4514else 4515 with_gnu_ld=no 4516fi 4517 4518ac_prog=ld 4519if test "$GCC" = yes; then 4520 # Check if gcc -print-prog-name=ld gives a path. 4521 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4522$as_echo_n "checking for ld used by $CC... " >&6; } 4523 case $host in 4524 *-*-mingw*) 4525 # gcc leaves a trailing carriage return which upsets mingw 4526 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4527 *) 4528 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4529 esac 4530 case $ac_prog in 4531 # Accept absolute paths. 4532 [\\/]* | ?:[\\/]*) 4533 re_direlt='/[^/][^/]*/\.\./' 4534 # Canonicalize the pathname of ld 4535 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4536 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4537 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4538 done 4539 test -z "$LD" && LD="$ac_prog" 4540 ;; 4541 "") 4542 # If it fails, then pretend we aren't using GCC. 4543 ac_prog=ld 4544 ;; 4545 *) 4546 # If it is relative, then search for the first ld in PATH. 4547 with_gnu_ld=unknown 4548 ;; 4549 esac 4550elif test "$with_gnu_ld" = yes; then 4551 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4552$as_echo_n "checking for GNU ld... " >&6; } 4553else 4554 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4555$as_echo_n "checking for non-GNU ld... " >&6; } 4556fi 4557if test "${lt_cv_path_LD+set}" = set; then 4558 $as_echo_n "(cached) " >&6 4559else 4560 if test -z "$LD"; then 4561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4562 for ac_dir in $PATH; do 4563 IFS="$lt_save_ifs" 4564 test -z "$ac_dir" && ac_dir=. 4565 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4566 lt_cv_path_LD="$ac_dir/$ac_prog" 4567 # Check to see if the program is GNU ld. I'd rather use --version, 4568 # but apparently some variants of GNU ld only accept -v. 4569 # Break only if it was the GNU/non-GNU ld that we prefer. 4570 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4571 *GNU* | *'with BFD'*) 4572 test "$with_gnu_ld" != no && break 4573 ;; 4574 *) 4575 test "$with_gnu_ld" != yes && break 4576 ;; 4577 esac 4578 fi 4579 done 4580 IFS="$lt_save_ifs" 4581else 4582 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4583fi 4584fi 4585 4586LD="$lt_cv_path_LD" 4587if test -n "$LD"; then 4588 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4589$as_echo "$LD" >&6; } 4590else 4591 { $as_echo "$as_me:$LINENO: result: no" >&5 4592$as_echo "no" >&6; } 4593fi 4594test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4595$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4596 { (exit 1); exit 1; }; } 4597{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4598$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4599if test "${lt_cv_prog_gnu_ld+set}" = set; then 4600 $as_echo_n "(cached) " >&6 4601else 4602 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4603case `$LD -v 2>&1 </dev/null` in 4604*GNU* | *'with BFD'*) 4605 lt_cv_prog_gnu_ld=yes 4606 ;; 4607*) 4608 lt_cv_prog_gnu_ld=no 4609 ;; 4610esac 4611fi 4612{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4613$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4614with_gnu_ld=$lt_cv_prog_gnu_ld 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4625$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4626if test "${lt_cv_path_NM+set}" = set; then 4627 $as_echo_n "(cached) " >&6 4628else 4629 if test -n "$NM"; then 4630 # Let the user override the test. 4631 lt_cv_path_NM="$NM" 4632else 4633 lt_nm_to_check="${ac_tool_prefix}nm" 4634 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4635 lt_nm_to_check="$lt_nm_to_check nm" 4636 fi 4637 for lt_tmp_nm in $lt_nm_to_check; do 4638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4639 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4640 IFS="$lt_save_ifs" 4641 test -z "$ac_dir" && ac_dir=. 4642 tmp_nm="$ac_dir/$lt_tmp_nm" 4643 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4644 # Check to see if the nm accepts a BSD-compat flag. 4645 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4646 # nm: unknown option "B" ignored 4647 # Tru64's nm complains that /dev/null is an invalid object file 4648 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4649 */dev/null* | *'Invalid file or object type'*) 4650 lt_cv_path_NM="$tmp_nm -B" 4651 break 4652 ;; 4653 *) 4654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4655 */dev/null*) 4656 lt_cv_path_NM="$tmp_nm -p" 4657 break 4658 ;; 4659 *) 4660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4661 continue # so that we can try to find one that supports BSD flags 4662 ;; 4663 esac 4664 ;; 4665 esac 4666 fi 4667 done 4668 IFS="$lt_save_ifs" 4669 done 4670 : ${lt_cv_path_NM=no} 4671fi 4672fi 4673{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4674$as_echo "$lt_cv_path_NM" >&6; } 4675if test "$lt_cv_path_NM" != "no"; then 4676 NM="$lt_cv_path_NM" 4677else 4678 # Didn't find any BSD compatible name lister, look for dumpbin. 4679 if test -n "$ac_tool_prefix"; then 4680 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4681 do 4682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4683set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4684{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4685$as_echo_n "checking for $ac_word... " >&6; } 4686if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4687 $as_echo_n "(cached) " >&6 4688else 4689 if test -n "$DUMPBIN"; then 4690 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4691else 4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693for as_dir in $PATH 4694do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4699 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703done 4704done 4705IFS=$as_save_IFS 4706 4707fi 4708fi 4709DUMPBIN=$ac_cv_prog_DUMPBIN 4710if test -n "$DUMPBIN"; then 4711 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4712$as_echo "$DUMPBIN" >&6; } 4713else 4714 { $as_echo "$as_me:$LINENO: result: no" >&5 4715$as_echo "no" >&6; } 4716fi 4717 4718 4719 test -n "$DUMPBIN" && break 4720 done 4721fi 4722if test -z "$DUMPBIN"; then 4723 ac_ct_DUMPBIN=$DUMPBIN 4724 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4725do 4726 # Extract the first word of "$ac_prog", so it can be a program name with args. 4727set dummy $ac_prog; ac_word=$2 4728{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4729$as_echo_n "checking for $ac_word... " >&6; } 4730if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4731 $as_echo_n "(cached) " >&6 4732else 4733 if test -n "$ac_ct_DUMPBIN"; then 4734 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4735else 4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4737for as_dir in $PATH 4738do 4739 IFS=$as_save_IFS 4740 test -z "$as_dir" && as_dir=. 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4743 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4745 break 2 4746 fi 4747done 4748done 4749IFS=$as_save_IFS 4750 4751fi 4752fi 4753ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4754if test -n "$ac_ct_DUMPBIN"; then 4755 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4756$as_echo "$ac_ct_DUMPBIN" >&6; } 4757else 4758 { $as_echo "$as_me:$LINENO: result: no" >&5 4759$as_echo "no" >&6; } 4760fi 4761 4762 4763 test -n "$ac_ct_DUMPBIN" && break 4764done 4765 4766 if test "x$ac_ct_DUMPBIN" = x; then 4767 DUMPBIN=":" 4768 else 4769 case $cross_compiling:$ac_tool_warned in 4770yes:) 4771{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4773ac_tool_warned=yes ;; 4774esac 4775 DUMPBIN=$ac_ct_DUMPBIN 4776 fi 4777fi 4778 4779 4780 if test "$DUMPBIN" != ":"; then 4781 NM="$DUMPBIN" 4782 fi 4783fi 4784test -z "$NM" && NM=nm 4785 4786 4787 4788 4789 4790 4791{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4792$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4793if test "${lt_cv_nm_interface+set}" = set; then 4794 $as_echo_n "(cached) " >&6 4795else 4796 lt_cv_nm_interface="BSD nm" 4797 echo "int some_variable = 0;" > conftest.$ac_ext 4798 (eval echo "\"\$as_me:4798: $ac_compile\"" >&5) 4799 (eval "$ac_compile" 2>conftest.err) 4800 cat conftest.err >&5 4801 (eval echo "\"\$as_me:4801: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4802 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4803 cat conftest.err >&5 4804 (eval echo "\"\$as_me:4804: output\"" >&5) 4805 cat conftest.out >&5 4806 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4807 lt_cv_nm_interface="MS dumpbin" 4808 fi 4809 rm -f conftest* 4810fi 4811{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4812$as_echo "$lt_cv_nm_interface" >&6; } 4813 4814{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4815$as_echo_n "checking whether ln -s works... " >&6; } 4816LN_S=$as_ln_s 4817if test "$LN_S" = "ln -s"; then 4818 { $as_echo "$as_me:$LINENO: result: yes" >&5 4819$as_echo "yes" >&6; } 4820else 4821 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4822$as_echo "no, using $LN_S" >&6; } 4823fi 4824 4825# find the maximum length of command line arguments 4826{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4827$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4828if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4829 $as_echo_n "(cached) " >&6 4830else 4831 i=0 4832 teststring="ABCD" 4833 4834 case $build_os in 4835 msdosdjgpp*) 4836 # On DJGPP, this test can blow up pretty badly due to problems in libc 4837 # (any single argument exceeding 2000 bytes causes a buffer overrun 4838 # during glob expansion). Even if it were fixed, the result of this 4839 # check would be larger than it should be. 4840 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4841 ;; 4842 4843 gnu*) 4844 # Under GNU Hurd, this test is not required because there is 4845 # no limit to the length of command line arguments. 4846 # Libtool will interpret -1 as no limit whatsoever 4847 lt_cv_sys_max_cmd_len=-1; 4848 ;; 4849 4850 cygwin* | mingw* | cegcc*) 4851 # On Win9x/ME, this test blows up -- it succeeds, but takes 4852 # about 5 minutes as the teststring grows exponentially. 4853 # Worse, since 9x/ME are not pre-emptively multitasking, 4854 # you end up with a "frozen" computer, even though with patience 4855 # the test eventually succeeds (with a max line length of 256k). 4856 # Instead, let's just punt: use the minimum linelength reported by 4857 # all of the supported platforms: 8192 (on NT/2K/XP). 4858 lt_cv_sys_max_cmd_len=8192; 4859 ;; 4860 4861 amigaos*) 4862 # On AmigaOS with pdksh, this test takes hours, literally. 4863 # So we just punt and use a minimum line length of 8192. 4864 lt_cv_sys_max_cmd_len=8192; 4865 ;; 4866 4867 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4868 # This has been around since 386BSD, at least. Likely further. 4869 if test -x /sbin/sysctl; then 4870 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4871 elif test -x /usr/sbin/sysctl; then 4872 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4873 else 4874 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4875 fi 4876 # And add a safety zone 4877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4879 ;; 4880 4881 interix*) 4882 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4883 lt_cv_sys_max_cmd_len=196608 4884 ;; 4885 4886 osf*) 4887 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4888 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4889 # nice to cause kernel panics so lets avoid the loop below. 4890 # First set a reasonable default. 4891 lt_cv_sys_max_cmd_len=16384 4892 # 4893 if test -x /sbin/sysconfig; then 4894 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4895 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4896 esac 4897 fi 4898 ;; 4899 sco3.2v5*) 4900 lt_cv_sys_max_cmd_len=102400 4901 ;; 4902 sysv5* | sco5v6* | sysv4.2uw2*) 4903 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4904 if test -n "$kargmax"; then 4905 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4906 else 4907 lt_cv_sys_max_cmd_len=32768 4908 fi 4909 ;; 4910 *) 4911 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4912 if test -n "$lt_cv_sys_max_cmd_len"; then 4913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4915 else 4916 # Make teststring a little bigger before we do anything with it. 4917 # a 1K string should be a reasonable start. 4918 for i in 1 2 3 4 5 6 7 8 ; do 4919 teststring=$teststring$teststring 4920 done 4921 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4922 # If test is not a shell built-in, we'll probably end up computing a 4923 # maximum length that is only half of the actual maximum length, but 4924 # we can't tell. 4925 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4926 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4927 test $i != 17 # 1/2 MB should be enough 4928 do 4929 i=`expr $i + 1` 4930 teststring=$teststring$teststring 4931 done 4932 # Only check the string length outside the loop. 4933 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4934 teststring= 4935 # Add a significant safety factor because C++ compilers can tack on 4936 # massive amounts of additional arguments before passing them to the 4937 # linker. It appears as though 1/2 is a usable value. 4938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4939 fi 4940 ;; 4941 esac 4942 4943fi 4944 4945if test -n $lt_cv_sys_max_cmd_len ; then 4946 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4947$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4948else 4949 { $as_echo "$as_me:$LINENO: result: none" >&5 4950$as_echo "none" >&6; } 4951fi 4952max_cmd_len=$lt_cv_sys_max_cmd_len 4953 4954 4955 4956 4957 4958 4959: ${CP="cp -f"} 4960: ${MV="mv -f"} 4961: ${RM="rm -f"} 4962 4963{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4964$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4965# Try some XSI features 4966xsi_shell=no 4967( _lt_dummy="a/b/c" 4968 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4969 = c,a/b,, \ 4970 && eval 'test $(( 1 + 1 )) -eq 2 \ 4971 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4972 && xsi_shell=yes 4973{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4974$as_echo "$xsi_shell" >&6; } 4975 4976 4977{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4978$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4979lt_shell_append=no 4980( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4981 >/dev/null 2>&1 \ 4982 && lt_shell_append=yes 4983{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4984$as_echo "$lt_shell_append" >&6; } 4985 4986 4987if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4988 lt_unset=unset 4989else 4990 lt_unset=false 4991fi 4992 4993 4994 4995 4996 4997# test EBCDIC or ASCII 4998case `echo X|tr X '\101'` in 4999 A) # ASCII based system 5000 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5001 lt_SP2NL='tr \040 \012' 5002 lt_NL2SP='tr \015\012 \040\040' 5003 ;; 5004 *) # EBCDIC based system 5005 lt_SP2NL='tr \100 \n' 5006 lt_NL2SP='tr \r\n \100\100' 5007 ;; 5008esac 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5019$as_echo_n "checking for $LD option to reload object files... " >&6; } 5020if test "${lt_cv_ld_reload_flag+set}" = set; then 5021 $as_echo_n "(cached) " >&6 5022else 5023 lt_cv_ld_reload_flag='-r' 5024fi 5025{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5026$as_echo "$lt_cv_ld_reload_flag" >&6; } 5027reload_flag=$lt_cv_ld_reload_flag 5028case $reload_flag in 5029"" | " "*) ;; 5030*) reload_flag=" $reload_flag" ;; 5031esac 5032reload_cmds='$LD$reload_flag -o $output$reload_objs' 5033case $host_os in 5034 darwin*) 5035 if test "$GCC" = yes; then 5036 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5037 else 5038 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5039 fi 5040 ;; 5041esac 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051if test -n "$ac_tool_prefix"; then 5052 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5053set dummy ${ac_tool_prefix}objdump; ac_word=$2 5054{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5055$as_echo_n "checking for $ac_word... " >&6; } 5056if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5057 $as_echo_n "(cached) " >&6 5058else 5059 if test -n "$OBJDUMP"; then 5060 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5061else 5062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5063for as_dir in $PATH 5064do 5065 IFS=$as_save_IFS 5066 test -z "$as_dir" && as_dir=. 5067 for ac_exec_ext in '' $ac_executable_extensions; do 5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5069 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5071 break 2 5072 fi 5073done 5074done 5075IFS=$as_save_IFS 5076 5077fi 5078fi 5079OBJDUMP=$ac_cv_prog_OBJDUMP 5080if test -n "$OBJDUMP"; then 5081 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5082$as_echo "$OBJDUMP" >&6; } 5083else 5084 { $as_echo "$as_me:$LINENO: result: no" >&5 5085$as_echo "no" >&6; } 5086fi 5087 5088 5089fi 5090if test -z "$ac_cv_prog_OBJDUMP"; then 5091 ac_ct_OBJDUMP=$OBJDUMP 5092 # Extract the first word of "objdump", so it can be a program name with args. 5093set dummy objdump; ac_word=$2 5094{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5095$as_echo_n "checking for $ac_word... " >&6; } 5096if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5097 $as_echo_n "(cached) " >&6 5098else 5099 if test -n "$ac_ct_OBJDUMP"; then 5100 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5101else 5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5103for as_dir in $PATH 5104do 5105 IFS=$as_save_IFS 5106 test -z "$as_dir" && as_dir=. 5107 for ac_exec_ext in '' $ac_executable_extensions; do 5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5109 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5111 break 2 5112 fi 5113done 5114done 5115IFS=$as_save_IFS 5116 5117fi 5118fi 5119ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5120if test -n "$ac_ct_OBJDUMP"; then 5121 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5122$as_echo "$ac_ct_OBJDUMP" >&6; } 5123else 5124 { $as_echo "$as_me:$LINENO: result: no" >&5 5125$as_echo "no" >&6; } 5126fi 5127 5128 if test "x$ac_ct_OBJDUMP" = x; then 5129 OBJDUMP="false" 5130 else 5131 case $cross_compiling:$ac_tool_warned in 5132yes:) 5133{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5135ac_tool_warned=yes ;; 5136esac 5137 OBJDUMP=$ac_ct_OBJDUMP 5138 fi 5139else 5140 OBJDUMP="$ac_cv_prog_OBJDUMP" 5141fi 5142 5143test -z "$OBJDUMP" && OBJDUMP=objdump 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5154$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5155if test "${lt_cv_deplibs_check_method+set}" = set; then 5156 $as_echo_n "(cached) " >&6 5157else 5158 lt_cv_file_magic_cmd='$MAGIC_CMD' 5159lt_cv_file_magic_test_file= 5160lt_cv_deplibs_check_method='unknown' 5161# Need to set the preceding variable on all platforms that support 5162# interlibrary dependencies. 5163# 'none' -- dependencies not supported. 5164# `unknown' -- same as none, but documents that we really don't know. 5165# 'pass_all' -- all dependencies passed with no checks. 5166# 'test_compile' -- check by making test program. 5167# 'file_magic [[regex]]' -- check by looking for files in library path 5168# which responds to the $file_magic_cmd with a given extended regex. 5169# If you have `file' or equivalent on your system and you're not sure 5170# whether `pass_all' will *always* work, you probably want this one. 5171 5172case $host_os in 5173aix[4-9]*) 5174 lt_cv_deplibs_check_method=pass_all 5175 ;; 5176 5177beos*) 5178 lt_cv_deplibs_check_method=pass_all 5179 ;; 5180 5181bsdi[45]*) 5182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5183 lt_cv_file_magic_cmd='/usr/bin/file -L' 5184 lt_cv_file_magic_test_file=/shlib/libc.so 5185 ;; 5186 5187cygwin*) 5188 # func_win32_libid is a shell function defined in ltmain.sh 5189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5190 lt_cv_file_magic_cmd='func_win32_libid' 5191 ;; 5192 5193mingw* | pw32*) 5194 # Base MSYS/MinGW do not provide the 'file' command needed by 5195 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5196 # unless we find 'file', for example because we are cross-compiling. 5197 if ( file / ) >/dev/null 2>&1; then 5198 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5199 lt_cv_file_magic_cmd='func_win32_libid' 5200 else 5201 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5202 lt_cv_file_magic_cmd='$OBJDUMP -f' 5203 fi 5204 ;; 5205 5206cegcc) 5207 # use the weaker test based on 'objdump'. See mingw*. 5208 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5209 lt_cv_file_magic_cmd='$OBJDUMP -f' 5210 ;; 5211 5212darwin* | rhapsody*) 5213 lt_cv_deplibs_check_method=pass_all 5214 ;; 5215 5216freebsd* | dragonfly*) 5217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5218 case $host_cpu in 5219 i*86 ) 5220 # Not sure whether the presence of OpenBSD here was a mistake. 5221 # Let's accept both of them until this is cleared up. 5222 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5223 lt_cv_file_magic_cmd=/usr/bin/file 5224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5225 ;; 5226 esac 5227 else 5228 lt_cv_deplibs_check_method=pass_all 5229 fi 5230 ;; 5231 5232gnu*) 5233 lt_cv_deplibs_check_method=pass_all 5234 ;; 5235 5236hpux10.20* | hpux11*) 5237 lt_cv_file_magic_cmd=/usr/bin/file 5238 case $host_cpu in 5239 ia64*) 5240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5241 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5242 ;; 5243 hppa*64*) 5244 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]' 5245 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5246 ;; 5247 *) 5248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5249 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5250 ;; 5251 esac 5252 ;; 5253 5254interix[3-9]*) 5255 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5257 ;; 5258 5259irix5* | irix6* | nonstopux*) 5260 case $LD in 5261 *-32|*"-32 ") libmagic=32-bit;; 5262 *-n32|*"-n32 ") libmagic=N32;; 5263 *-64|*"-64 ") libmagic=64-bit;; 5264 *) libmagic=never-match;; 5265 esac 5266 lt_cv_deplibs_check_method=pass_all 5267 ;; 5268 5269# This must be Linux ELF. 5270linux* | k*bsd*-gnu) 5271 lt_cv_deplibs_check_method=pass_all 5272 ;; 5273 5274netbsd* | netbsdelf*-gnu) 5275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5277 else 5278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5279 fi 5280 ;; 5281 5282newos6*) 5283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5284 lt_cv_file_magic_cmd=/usr/bin/file 5285 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5286 ;; 5287 5288*nto* | *qnx*) 5289 lt_cv_deplibs_check_method=pass_all 5290 ;; 5291 5292openbsd*) 5293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5295 else 5296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5297 fi 5298 ;; 5299 5300osf3* | osf4* | osf5*) 5301 lt_cv_deplibs_check_method=pass_all 5302 ;; 5303 5304rdos*) 5305 lt_cv_deplibs_check_method=pass_all 5306 ;; 5307 5308solaris*) 5309 lt_cv_deplibs_check_method=pass_all 5310 ;; 5311 5312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5313 lt_cv_deplibs_check_method=pass_all 5314 ;; 5315 5316sysv4 | sysv4.3*) 5317 case $host_vendor in 5318 motorola) 5319 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]' 5320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5321 ;; 5322 ncr) 5323 lt_cv_deplibs_check_method=pass_all 5324 ;; 5325 sequent) 5326 lt_cv_file_magic_cmd='/bin/file' 5327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5328 ;; 5329 sni) 5330 lt_cv_file_magic_cmd='/bin/file' 5331 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5332 lt_cv_file_magic_test_file=/lib/libc.so 5333 ;; 5334 siemens) 5335 lt_cv_deplibs_check_method=pass_all 5336 ;; 5337 pc) 5338 lt_cv_deplibs_check_method=pass_all 5339 ;; 5340 esac 5341 ;; 5342 5343tpf*) 5344 lt_cv_deplibs_check_method=pass_all 5345 ;; 5346esac 5347 5348fi 5349{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5350$as_echo "$lt_cv_deplibs_check_method" >&6; } 5351file_magic_cmd=$lt_cv_file_magic_cmd 5352deplibs_check_method=$lt_cv_deplibs_check_method 5353test -z "$deplibs_check_method" && deplibs_check_method=unknown 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366if test -n "$ac_tool_prefix"; then 5367 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5368set dummy ${ac_tool_prefix}ar; ac_word=$2 5369{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5370$as_echo_n "checking for $ac_word... " >&6; } 5371if test "${ac_cv_prog_AR+set}" = set; then 5372 $as_echo_n "(cached) " >&6 5373else 5374 if test -n "$AR"; then 5375 ac_cv_prog_AR="$AR" # Let the user override the test. 5376else 5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5378for as_dir in $PATH 5379do 5380 IFS=$as_save_IFS 5381 test -z "$as_dir" && as_dir=. 5382 for ac_exec_ext in '' $ac_executable_extensions; do 5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5384 ac_cv_prog_AR="${ac_tool_prefix}ar" 5385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5386 break 2 5387 fi 5388done 5389done 5390IFS=$as_save_IFS 5391 5392fi 5393fi 5394AR=$ac_cv_prog_AR 5395if test -n "$AR"; then 5396 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5397$as_echo "$AR" >&6; } 5398else 5399 { $as_echo "$as_me:$LINENO: result: no" >&5 5400$as_echo "no" >&6; } 5401fi 5402 5403 5404fi 5405if test -z "$ac_cv_prog_AR"; then 5406 ac_ct_AR=$AR 5407 # Extract the first word of "ar", so it can be a program name with args. 5408set dummy ar; ac_word=$2 5409{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5410$as_echo_n "checking for $ac_word... " >&6; } 5411if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5412 $as_echo_n "(cached) " >&6 5413else 5414 if test -n "$ac_ct_AR"; then 5415 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5416else 5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5418for as_dir in $PATH 5419do 5420 IFS=$as_save_IFS 5421 test -z "$as_dir" && as_dir=. 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5424 ac_cv_prog_ac_ct_AR="ar" 5425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5426 break 2 5427 fi 5428done 5429done 5430IFS=$as_save_IFS 5431 5432fi 5433fi 5434ac_ct_AR=$ac_cv_prog_ac_ct_AR 5435if test -n "$ac_ct_AR"; then 5436 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5437$as_echo "$ac_ct_AR" >&6; } 5438else 5439 { $as_echo "$as_me:$LINENO: result: no" >&5 5440$as_echo "no" >&6; } 5441fi 5442 5443 if test "x$ac_ct_AR" = x; then 5444 AR="false" 5445 else 5446 case $cross_compiling:$ac_tool_warned in 5447yes:) 5448{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5450ac_tool_warned=yes ;; 5451esac 5452 AR=$ac_ct_AR 5453 fi 5454else 5455 AR="$ac_cv_prog_AR" 5456fi 5457 5458test -z "$AR" && AR=ar 5459test -z "$AR_FLAGS" && AR_FLAGS=cru 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471if test -n "$ac_tool_prefix"; then 5472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5473set dummy ${ac_tool_prefix}strip; ac_word=$2 5474{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5475$as_echo_n "checking for $ac_word... " >&6; } 5476if test "${ac_cv_prog_STRIP+set}" = set; then 5477 $as_echo_n "(cached) " >&6 5478else 5479 if test -n "$STRIP"; then 5480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5481else 5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5483for as_dir in $PATH 5484do 5485 IFS=$as_save_IFS 5486 test -z "$as_dir" && as_dir=. 5487 for ac_exec_ext in '' $ac_executable_extensions; do 5488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5489 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5491 break 2 5492 fi 5493done 5494done 5495IFS=$as_save_IFS 5496 5497fi 5498fi 5499STRIP=$ac_cv_prog_STRIP 5500if test -n "$STRIP"; then 5501 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5502$as_echo "$STRIP" >&6; } 5503else 5504 { $as_echo "$as_me:$LINENO: result: no" >&5 5505$as_echo "no" >&6; } 5506fi 5507 5508 5509fi 5510if test -z "$ac_cv_prog_STRIP"; then 5511 ac_ct_STRIP=$STRIP 5512 # Extract the first word of "strip", so it can be a program name with args. 5513set dummy strip; ac_word=$2 5514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5515$as_echo_n "checking for $ac_word... " >&6; } 5516if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5517 $as_echo_n "(cached) " >&6 5518else 5519 if test -n "$ac_ct_STRIP"; then 5520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5521else 5522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5523for as_dir in $PATH 5524do 5525 IFS=$as_save_IFS 5526 test -z "$as_dir" && as_dir=. 5527 for ac_exec_ext in '' $ac_executable_extensions; do 5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5529 ac_cv_prog_ac_ct_STRIP="strip" 5530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5531 break 2 5532 fi 5533done 5534done 5535IFS=$as_save_IFS 5536 5537fi 5538fi 5539ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5540if test -n "$ac_ct_STRIP"; then 5541 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5542$as_echo "$ac_ct_STRIP" >&6; } 5543else 5544 { $as_echo "$as_me:$LINENO: result: no" >&5 5545$as_echo "no" >&6; } 5546fi 5547 5548 if test "x$ac_ct_STRIP" = x; then 5549 STRIP=":" 5550 else 5551 case $cross_compiling:$ac_tool_warned in 5552yes:) 5553{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5555ac_tool_warned=yes ;; 5556esac 5557 STRIP=$ac_ct_STRIP 5558 fi 5559else 5560 STRIP="$ac_cv_prog_STRIP" 5561fi 5562 5563test -z "$STRIP" && STRIP=: 5564 5565 5566 5567 5568 5569 5570if test -n "$ac_tool_prefix"; then 5571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5572set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5573{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5574$as_echo_n "checking for $ac_word... " >&6; } 5575if test "${ac_cv_prog_RANLIB+set}" = set; then 5576 $as_echo_n "(cached) " >&6 5577else 5578 if test -n "$RANLIB"; then 5579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5580else 5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5582for as_dir in $PATH 5583do 5584 IFS=$as_save_IFS 5585 test -z "$as_dir" && as_dir=. 5586 for ac_exec_ext in '' $ac_executable_extensions; do 5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5590 break 2 5591 fi 5592done 5593done 5594IFS=$as_save_IFS 5595 5596fi 5597fi 5598RANLIB=$ac_cv_prog_RANLIB 5599if test -n "$RANLIB"; then 5600 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5601$as_echo "$RANLIB" >&6; } 5602else 5603 { $as_echo "$as_me:$LINENO: result: no" >&5 5604$as_echo "no" >&6; } 5605fi 5606 5607 5608fi 5609if test -z "$ac_cv_prog_RANLIB"; then 5610 ac_ct_RANLIB=$RANLIB 5611 # Extract the first word of "ranlib", so it can be a program name with args. 5612set dummy ranlib; ac_word=$2 5613{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5614$as_echo_n "checking for $ac_word... " >&6; } 5615if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5616 $as_echo_n "(cached) " >&6 5617else 5618 if test -n "$ac_ct_RANLIB"; then 5619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5620else 5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5622for as_dir in $PATH 5623do 5624 IFS=$as_save_IFS 5625 test -z "$as_dir" && as_dir=. 5626 for ac_exec_ext in '' $ac_executable_extensions; do 5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5628 ac_cv_prog_ac_ct_RANLIB="ranlib" 5629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5630 break 2 5631 fi 5632done 5633done 5634IFS=$as_save_IFS 5635 5636fi 5637fi 5638ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5639if test -n "$ac_ct_RANLIB"; then 5640 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5641$as_echo "$ac_ct_RANLIB" >&6; } 5642else 5643 { $as_echo "$as_me:$LINENO: result: no" >&5 5644$as_echo "no" >&6; } 5645fi 5646 5647 if test "x$ac_ct_RANLIB" = x; then 5648 RANLIB=":" 5649 else 5650 case $cross_compiling:$ac_tool_warned in 5651yes:) 5652{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5654ac_tool_warned=yes ;; 5655esac 5656 RANLIB=$ac_ct_RANLIB 5657 fi 5658else 5659 RANLIB="$ac_cv_prog_RANLIB" 5660fi 5661 5662test -z "$RANLIB" && RANLIB=: 5663 5664 5665 5666 5667 5668 5669# Determine commands to create old-style static archives. 5670old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5671old_postinstall_cmds='chmod 644 $oldlib' 5672old_postuninstall_cmds= 5673 5674if test -n "$RANLIB"; then 5675 case $host_os in 5676 openbsd*) 5677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5678 ;; 5679 *) 5680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5681 ;; 5682 esac 5683 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5684fi 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719# If no C compiler was specified, use CC. 5720LTCC=${LTCC-"$CC"} 5721 5722# If no C compiler flags were specified, use CFLAGS. 5723LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5724 5725# Allow CC to be a program name with arguments. 5726compiler=$CC 5727 5728 5729# Check for command to grab the raw symbol name followed by C symbol from nm. 5730{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5731$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5732if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5733 $as_echo_n "(cached) " >&6 5734else 5735 5736# These are sane defaults that work on at least a few old systems. 5737# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5738 5739# Character class describing NM global symbol codes. 5740symcode='[BCDEGRST]' 5741 5742# Regexp to match symbols that can be accessed directly from C. 5743sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5744 5745# Define system-specific variables. 5746case $host_os in 5747aix*) 5748 symcode='[BCDT]' 5749 ;; 5750cygwin* | mingw* | pw32* | cegcc*) 5751 symcode='[ABCDGISTW]' 5752 ;; 5753hpux*) 5754 if test "$host_cpu" = ia64; then 5755 symcode='[ABCDEGRST]' 5756 fi 5757 ;; 5758irix* | nonstopux*) 5759 symcode='[BCDEGRST]' 5760 ;; 5761osf*) 5762 symcode='[BCDEGQRST]' 5763 ;; 5764solaris*) 5765 symcode='[BDRT]' 5766 ;; 5767sco3.2v5*) 5768 symcode='[DT]' 5769 ;; 5770sysv4.2uw2*) 5771 symcode='[DT]' 5772 ;; 5773sysv5* | sco5v6* | unixware* | OpenUNIX*) 5774 symcode='[ABDT]' 5775 ;; 5776sysv4) 5777 symcode='[DFNSTU]' 5778 ;; 5779esac 5780 5781# If we're using GNU nm, then use its standard symbol codes. 5782case `$NM -V 2>&1` in 5783*GNU* | *'with BFD'*) 5784 symcode='[ABCDGIRSTW]' ;; 5785esac 5786 5787# Transform an extracted symbol line into a proper C declaration. 5788# Some systems (esp. on ia64) link data and code symbols differently, 5789# so use this general approach. 5790lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5791 5792# Transform an extracted symbol line into symbol name and symbol address 5793lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5794lt_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'" 5795 5796# Handle CRLF in mingw tool chain 5797opt_cr= 5798case $build_os in 5799mingw*) 5800 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5801 ;; 5802esac 5803 5804# Try without a prefix underscore, then with it. 5805for ac_symprfx in "" "_"; do 5806 5807 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5808 symxfrm="\\1 $ac_symprfx\\2 \\2" 5809 5810 # Write the raw and C identifiers. 5811 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5812 # Fake it for dumpbin and say T for any non-static function 5813 # and D for any global variable. 5814 # Also find C++ and __fastcall symbols from MSVC++, 5815 # which start with @ or ?. 5816 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5817" {last_section=section; section=\$ 3};"\ 5818" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5819" \$ 0!~/External *\|/{next};"\ 5820" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5821" {if(hide[section]) next};"\ 5822" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5823" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5824" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5825" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5826" ' prfx=^$ac_symprfx" 5827 else 5828 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5829 fi 5830 5831 # Check to see that the pipe works correctly. 5832 pipe_works=no 5833 5834 rm -f conftest* 5835 cat > conftest.$ac_ext <<_LT_EOF 5836#ifdef __cplusplus 5837extern "C" { 5838#endif 5839char nm_test_var; 5840void nm_test_func(void); 5841void nm_test_func(void){} 5842#ifdef __cplusplus 5843} 5844#endif 5845int main(){nm_test_var='a';nm_test_func();return(0);} 5846_LT_EOF 5847 5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5849 (eval $ac_compile) 2>&5 5850 ac_status=$? 5851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5852 (exit $ac_status); }; then 5853 # Now try to grab the symbols. 5854 nlist=conftest.nm 5855 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5856 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5857 ac_status=$? 5858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5859 (exit $ac_status); } && test -s "$nlist"; then 5860 # Try sorting and uniquifying the output. 5861 if sort "$nlist" | uniq > "$nlist"T; then 5862 mv -f "$nlist"T "$nlist" 5863 else 5864 rm -f "$nlist"T 5865 fi 5866 5867 # Make sure that we snagged all the symbols we need. 5868 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5869 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5870 cat <<_LT_EOF > conftest.$ac_ext 5871#ifdef __cplusplus 5872extern "C" { 5873#endif 5874 5875_LT_EOF 5876 # Now generate the symbol file. 5877 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5878 5879 cat <<_LT_EOF >> conftest.$ac_ext 5880 5881/* The mapping between symbol names and symbols. */ 5882const struct { 5883 const char *name; 5884 void *address; 5885} 5886lt__PROGRAM__LTX_preloaded_symbols[] = 5887{ 5888 { "@PROGRAM@", (void *) 0 }, 5889_LT_EOF 5890 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5891 cat <<\_LT_EOF >> conftest.$ac_ext 5892 {0, (void *) 0} 5893}; 5894 5895/* This works around a problem in FreeBSD linker */ 5896#ifdef FREEBSD_WORKAROUND 5897static const void *lt_preloaded_setup() { 5898 return lt__PROGRAM__LTX_preloaded_symbols; 5899} 5900#endif 5901 5902#ifdef __cplusplus 5903} 5904#endif 5905_LT_EOF 5906 # Now try linking the two files. 5907 mv conftest.$ac_objext conftstm.$ac_objext 5908 lt_save_LIBS="$LIBS" 5909 lt_save_CFLAGS="$CFLAGS" 5910 LIBS="conftstm.$ac_objext" 5911 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5913 (eval $ac_link) 2>&5 5914 ac_status=$? 5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5916 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5917 pipe_works=yes 5918 fi 5919 LIBS="$lt_save_LIBS" 5920 CFLAGS="$lt_save_CFLAGS" 5921 else 5922 echo "cannot find nm_test_func in $nlist" >&5 5923 fi 5924 else 5925 echo "cannot find nm_test_var in $nlist" >&5 5926 fi 5927 else 5928 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5929 fi 5930 else 5931 echo "$progname: failed program was:" >&5 5932 cat conftest.$ac_ext >&5 5933 fi 5934 rm -rf conftest* conftst* 5935 5936 # Do not use the global_symbol_pipe unless it works. 5937 if test "$pipe_works" = yes; then 5938 break 5939 else 5940 lt_cv_sys_global_symbol_pipe= 5941 fi 5942done 5943 5944fi 5945 5946if test -z "$lt_cv_sys_global_symbol_pipe"; then 5947 lt_cv_sys_global_symbol_to_cdecl= 5948fi 5949if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5950 { $as_echo "$as_me:$LINENO: result: failed" >&5 5951$as_echo "failed" >&6; } 5952else 5953 { $as_echo "$as_me:$LINENO: result: ok" >&5 5954$as_echo "ok" >&6; } 5955fi 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979# Check whether --enable-libtool-lock was given. 5980if test "${enable_libtool_lock+set}" = set; then 5981 enableval=$enable_libtool_lock; 5982fi 5983 5984test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5985 5986# Some flags need to be propagated to the compiler or linker for good 5987# libtool support. 5988case $host in 5989ia64-*-hpux*) 5990 # Find out which ABI we are using. 5991 echo 'int i;' > conftest.$ac_ext 5992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5993 (eval $ac_compile) 2>&5 5994 ac_status=$? 5995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5996 (exit $ac_status); }; then 5997 case `/usr/bin/file conftest.$ac_objext` in 5998 *ELF-32*) 5999 HPUX_IA64_MODE="32" 6000 ;; 6001 *ELF-64*) 6002 HPUX_IA64_MODE="64" 6003 ;; 6004 esac 6005 fi 6006 rm -rf conftest* 6007 ;; 6008*-*-irix6*) 6009 # Find out which ABI we are using. 6010 echo '#line 6010 "configure"' > conftest.$ac_ext 6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6012 (eval $ac_compile) 2>&5 6013 ac_status=$? 6014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6015 (exit $ac_status); }; then 6016 if test "$lt_cv_prog_gnu_ld" = yes; then 6017 case `/usr/bin/file conftest.$ac_objext` in 6018 *32-bit*) 6019 LD="${LD-ld} -melf32bsmip" 6020 ;; 6021 *N32*) 6022 LD="${LD-ld} -melf32bmipn32" 6023 ;; 6024 *64-bit*) 6025 LD="${LD-ld} -melf64bmip" 6026 ;; 6027 esac 6028 else 6029 case `/usr/bin/file conftest.$ac_objext` in 6030 *32-bit*) 6031 LD="${LD-ld} -32" 6032 ;; 6033 *N32*) 6034 LD="${LD-ld} -n32" 6035 ;; 6036 *64-bit*) 6037 LD="${LD-ld} -64" 6038 ;; 6039 esac 6040 fi 6041 fi 6042 rm -rf conftest* 6043 ;; 6044 6045x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6046s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6047 # Find out which ABI we are using. 6048 echo 'int i;' > conftest.$ac_ext 6049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6050 (eval $ac_compile) 2>&5 6051 ac_status=$? 6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6053 (exit $ac_status); }; then 6054 case `/usr/bin/file conftest.o` in 6055 *32-bit*) 6056 case $host in 6057 x86_64-*kfreebsd*-gnu) 6058 LD="${LD-ld} -m elf_i386_fbsd" 6059 ;; 6060 x86_64-*linux*) 6061 LD="${LD-ld} -m elf_i386" 6062 ;; 6063 ppc64-*linux*|powerpc64-*linux*) 6064 LD="${LD-ld} -m elf32ppclinux" 6065 ;; 6066 s390x-*linux*) 6067 LD="${LD-ld} -m elf_s390" 6068 ;; 6069 sparc64-*linux*) 6070 LD="${LD-ld} -m elf32_sparc" 6071 ;; 6072 esac 6073 ;; 6074 *64-bit*) 6075 case $host in 6076 x86_64-*kfreebsd*-gnu) 6077 LD="${LD-ld} -m elf_x86_64_fbsd" 6078 ;; 6079 x86_64-*linux*) 6080 LD="${LD-ld} -m elf_x86_64" 6081 ;; 6082 ppc*-*linux*|powerpc*-*linux*) 6083 LD="${LD-ld} -m elf64ppc" 6084 ;; 6085 s390*-*linux*|s390*-*tpf*) 6086 LD="${LD-ld} -m elf64_s390" 6087 ;; 6088 sparc*-*linux*) 6089 LD="${LD-ld} -m elf64_sparc" 6090 ;; 6091 esac 6092 ;; 6093 esac 6094 fi 6095 rm -rf conftest* 6096 ;; 6097 6098*-*-sco3.2v5*) 6099 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6100 SAVE_CFLAGS="$CFLAGS" 6101 CFLAGS="$CFLAGS -belf" 6102 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6103$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6104if test "${lt_cv_cc_needs_belf+set}" = set; then 6105 $as_echo_n "(cached) " >&6 6106else 6107 ac_ext=c 6108ac_cpp='$CPP $CPPFLAGS' 6109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6111ac_compiler_gnu=$ac_cv_c_compiler_gnu 6112 6113 cat >conftest.$ac_ext <<_ACEOF 6114/* confdefs.h. */ 6115_ACEOF 6116cat confdefs.h >>conftest.$ac_ext 6117cat >>conftest.$ac_ext <<_ACEOF 6118/* end confdefs.h. */ 6119 6120int 6121main () 6122{ 6123 6124 ; 6125 return 0; 6126} 6127_ACEOF 6128rm -f conftest.$ac_objext conftest$ac_exeext 6129if { (ac_try="$ac_link" 6130case "(($ac_try" in 6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6132 *) ac_try_echo=$ac_try;; 6133esac 6134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6135$as_echo "$ac_try_echo") >&5 6136 (eval "$ac_link") 2>conftest.er1 6137 ac_status=$? 6138 grep -v '^ *+' conftest.er1 >conftest.err 6139 rm -f conftest.er1 6140 cat conftest.err >&5 6141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6142 (exit $ac_status); } && { 6143 test -z "$ac_c_werror_flag" || 6144 test ! -s conftest.err 6145 } && test -s conftest$ac_exeext && { 6146 test "$cross_compiling" = yes || 6147 $as_test_x conftest$ac_exeext 6148 }; then 6149 lt_cv_cc_needs_belf=yes 6150else 6151 $as_echo "$as_me: failed program was:" >&5 6152sed 's/^/| /' conftest.$ac_ext >&5 6153 6154 lt_cv_cc_needs_belf=no 6155fi 6156 6157rm -rf conftest.dSYM 6158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6159 conftest$ac_exeext conftest.$ac_ext 6160 ac_ext=c 6161ac_cpp='$CPP $CPPFLAGS' 6162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6164ac_compiler_gnu=$ac_cv_c_compiler_gnu 6165 6166fi 6167{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6168$as_echo "$lt_cv_cc_needs_belf" >&6; } 6169 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6170 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6171 CFLAGS="$SAVE_CFLAGS" 6172 fi 6173 ;; 6174sparc*-*solaris*) 6175 # Find out which ABI we are using. 6176 echo 'int i;' > conftest.$ac_ext 6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6178 (eval $ac_compile) 2>&5 6179 ac_status=$? 6180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6181 (exit $ac_status); }; then 6182 case `/usr/bin/file conftest.o` in 6183 *64-bit*) 6184 case $lt_cv_prog_gnu_ld in 6185 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6186 *) 6187 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6188 LD="${LD-ld} -64" 6189 fi 6190 ;; 6191 esac 6192 ;; 6193 esac 6194 fi 6195 rm -rf conftest* 6196 ;; 6197esac 6198 6199need_locks="$enable_libtool_lock" 6200 6201 6202 case $host_os in 6203 rhapsody* | darwin*) 6204 if test -n "$ac_tool_prefix"; then 6205 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6206set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6208$as_echo_n "checking for $ac_word... " >&6; } 6209if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6210 $as_echo_n "(cached) " >&6 6211else 6212 if test -n "$DSYMUTIL"; then 6213 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6214else 6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6216for as_dir in $PATH 6217do 6218 IFS=$as_save_IFS 6219 test -z "$as_dir" && as_dir=. 6220 for ac_exec_ext in '' $ac_executable_extensions; do 6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6222 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6224 break 2 6225 fi 6226done 6227done 6228IFS=$as_save_IFS 6229 6230fi 6231fi 6232DSYMUTIL=$ac_cv_prog_DSYMUTIL 6233if test -n "$DSYMUTIL"; then 6234 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6235$as_echo "$DSYMUTIL" >&6; } 6236else 6237 { $as_echo "$as_me:$LINENO: result: no" >&5 6238$as_echo "no" >&6; } 6239fi 6240 6241 6242fi 6243if test -z "$ac_cv_prog_DSYMUTIL"; then 6244 ac_ct_DSYMUTIL=$DSYMUTIL 6245 # Extract the first word of "dsymutil", so it can be a program name with args. 6246set dummy dsymutil; ac_word=$2 6247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6248$as_echo_n "checking for $ac_word... " >&6; } 6249if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6250 $as_echo_n "(cached) " >&6 6251else 6252 if test -n "$ac_ct_DSYMUTIL"; then 6253 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6254else 6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6256for as_dir in $PATH 6257do 6258 IFS=$as_save_IFS 6259 test -z "$as_dir" && as_dir=. 6260 for ac_exec_ext in '' $ac_executable_extensions; do 6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6262 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6264 break 2 6265 fi 6266done 6267done 6268IFS=$as_save_IFS 6269 6270fi 6271fi 6272ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6273if test -n "$ac_ct_DSYMUTIL"; then 6274 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6275$as_echo "$ac_ct_DSYMUTIL" >&6; } 6276else 6277 { $as_echo "$as_me:$LINENO: result: no" >&5 6278$as_echo "no" >&6; } 6279fi 6280 6281 if test "x$ac_ct_DSYMUTIL" = x; then 6282 DSYMUTIL=":" 6283 else 6284 case $cross_compiling:$ac_tool_warned in 6285yes:) 6286{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6288ac_tool_warned=yes ;; 6289esac 6290 DSYMUTIL=$ac_ct_DSYMUTIL 6291 fi 6292else 6293 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6294fi 6295 6296 if test -n "$ac_tool_prefix"; then 6297 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6298set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6299{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6300$as_echo_n "checking for $ac_word... " >&6; } 6301if test "${ac_cv_prog_NMEDIT+set}" = set; then 6302 $as_echo_n "(cached) " >&6 6303else 6304 if test -n "$NMEDIT"; then 6305 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6306else 6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6308for as_dir in $PATH 6309do 6310 IFS=$as_save_IFS 6311 test -z "$as_dir" && as_dir=. 6312 for ac_exec_ext in '' $ac_executable_extensions; do 6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6314 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6316 break 2 6317 fi 6318done 6319done 6320IFS=$as_save_IFS 6321 6322fi 6323fi 6324NMEDIT=$ac_cv_prog_NMEDIT 6325if test -n "$NMEDIT"; then 6326 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6327$as_echo "$NMEDIT" >&6; } 6328else 6329 { $as_echo "$as_me:$LINENO: result: no" >&5 6330$as_echo "no" >&6; } 6331fi 6332 6333 6334fi 6335if test -z "$ac_cv_prog_NMEDIT"; then 6336 ac_ct_NMEDIT=$NMEDIT 6337 # Extract the first word of "nmedit", so it can be a program name with args. 6338set dummy nmedit; ac_word=$2 6339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$ac_ct_NMEDIT"; then 6345 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6354 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6365if test -n "$ac_ct_NMEDIT"; then 6366 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6367$as_echo "$ac_ct_NMEDIT" >&6; } 6368else 6369 { $as_echo "$as_me:$LINENO: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 if test "x$ac_ct_NMEDIT" = x; then 6374 NMEDIT=":" 6375 else 6376 case $cross_compiling:$ac_tool_warned in 6377yes:) 6378{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6380ac_tool_warned=yes ;; 6381esac 6382 NMEDIT=$ac_ct_NMEDIT 6383 fi 6384else 6385 NMEDIT="$ac_cv_prog_NMEDIT" 6386fi 6387 6388 if test -n "$ac_tool_prefix"; then 6389 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6390set dummy ${ac_tool_prefix}lipo; ac_word=$2 6391{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6392$as_echo_n "checking for $ac_word... " >&6; } 6393if test "${ac_cv_prog_LIPO+set}" = set; then 6394 $as_echo_n "(cached) " >&6 6395else 6396 if test -n "$LIPO"; then 6397 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6398else 6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6400for as_dir in $PATH 6401do 6402 IFS=$as_save_IFS 6403 test -z "$as_dir" && as_dir=. 6404 for ac_exec_ext in '' $ac_executable_extensions; do 6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6406 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6408 break 2 6409 fi 6410done 6411done 6412IFS=$as_save_IFS 6413 6414fi 6415fi 6416LIPO=$ac_cv_prog_LIPO 6417if test -n "$LIPO"; then 6418 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6419$as_echo "$LIPO" >&6; } 6420else 6421 { $as_echo "$as_me:$LINENO: result: no" >&5 6422$as_echo "no" >&6; } 6423fi 6424 6425 6426fi 6427if test -z "$ac_cv_prog_LIPO"; then 6428 ac_ct_LIPO=$LIPO 6429 # Extract the first word of "lipo", so it can be a program name with args. 6430set dummy lipo; ac_word=$2 6431{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6432$as_echo_n "checking for $ac_word... " >&6; } 6433if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6434 $as_echo_n "(cached) " >&6 6435else 6436 if test -n "$ac_ct_LIPO"; then 6437 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6438else 6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440for as_dir in $PATH 6441do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6446 ac_cv_prog_ac_ct_LIPO="lipo" 6447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6448 break 2 6449 fi 6450done 6451done 6452IFS=$as_save_IFS 6453 6454fi 6455fi 6456ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6457if test -n "$ac_ct_LIPO"; then 6458 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6459$as_echo "$ac_ct_LIPO" >&6; } 6460else 6461 { $as_echo "$as_me:$LINENO: result: no" >&5 6462$as_echo "no" >&6; } 6463fi 6464 6465 if test "x$ac_ct_LIPO" = x; then 6466 LIPO=":" 6467 else 6468 case $cross_compiling:$ac_tool_warned in 6469yes:) 6470{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6472ac_tool_warned=yes ;; 6473esac 6474 LIPO=$ac_ct_LIPO 6475 fi 6476else 6477 LIPO="$ac_cv_prog_LIPO" 6478fi 6479 6480 if test -n "$ac_tool_prefix"; then 6481 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6482set dummy ${ac_tool_prefix}otool; ac_word=$2 6483{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6484$as_echo_n "checking for $ac_word... " >&6; } 6485if test "${ac_cv_prog_OTOOL+set}" = set; then 6486 $as_echo_n "(cached) " >&6 6487else 6488 if test -n "$OTOOL"; then 6489 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6490else 6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492for as_dir in $PATH 6493do 6494 IFS=$as_save_IFS 6495 test -z "$as_dir" && as_dir=. 6496 for ac_exec_ext in '' $ac_executable_extensions; do 6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6498 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6500 break 2 6501 fi 6502done 6503done 6504IFS=$as_save_IFS 6505 6506fi 6507fi 6508OTOOL=$ac_cv_prog_OTOOL 6509if test -n "$OTOOL"; then 6510 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6511$as_echo "$OTOOL" >&6; } 6512else 6513 { $as_echo "$as_me:$LINENO: result: no" >&5 6514$as_echo "no" >&6; } 6515fi 6516 6517 6518fi 6519if test -z "$ac_cv_prog_OTOOL"; then 6520 ac_ct_OTOOL=$OTOOL 6521 # Extract the first word of "otool", so it can be a program name with args. 6522set dummy otool; ac_word=$2 6523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6524$as_echo_n "checking for $ac_word... " >&6; } 6525if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6526 $as_echo_n "(cached) " >&6 6527else 6528 if test -n "$ac_ct_OTOOL"; then 6529 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6530else 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6538 ac_cv_prog_ac_ct_OTOOL="otool" 6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543done 6544IFS=$as_save_IFS 6545 6546fi 6547fi 6548ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6549if test -n "$ac_ct_OTOOL"; then 6550 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6551$as_echo "$ac_ct_OTOOL" >&6; } 6552else 6553 { $as_echo "$as_me:$LINENO: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 if test "x$ac_ct_OTOOL" = x; then 6558 OTOOL=":" 6559 else 6560 case $cross_compiling:$ac_tool_warned in 6561yes:) 6562{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6564ac_tool_warned=yes ;; 6565esac 6566 OTOOL=$ac_ct_OTOOL 6567 fi 6568else 6569 OTOOL="$ac_cv_prog_OTOOL" 6570fi 6571 6572 if test -n "$ac_tool_prefix"; then 6573 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6574set dummy ${ac_tool_prefix}otool64; ac_word=$2 6575{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6576$as_echo_n "checking for $ac_word... " >&6; } 6577if test "${ac_cv_prog_OTOOL64+set}" = set; then 6578 $as_echo_n "(cached) " >&6 6579else 6580 if test -n "$OTOOL64"; then 6581 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6582else 6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6584for as_dir in $PATH 6585do 6586 IFS=$as_save_IFS 6587 test -z "$as_dir" && as_dir=. 6588 for ac_exec_ext in '' $ac_executable_extensions; do 6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6590 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6592 break 2 6593 fi 6594done 6595done 6596IFS=$as_save_IFS 6597 6598fi 6599fi 6600OTOOL64=$ac_cv_prog_OTOOL64 6601if test -n "$OTOOL64"; then 6602 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6603$as_echo "$OTOOL64" >&6; } 6604else 6605 { $as_echo "$as_me:$LINENO: result: no" >&5 6606$as_echo "no" >&6; } 6607fi 6608 6609 6610fi 6611if test -z "$ac_cv_prog_OTOOL64"; then 6612 ac_ct_OTOOL64=$OTOOL64 6613 # Extract the first word of "otool64", so it can be a program name with args. 6614set dummy otool64; ac_word=$2 6615{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6616$as_echo_n "checking for $ac_word... " >&6; } 6617if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6618 $as_echo_n "(cached) " >&6 6619else 6620 if test -n "$ac_ct_OTOOL64"; then 6621 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6622else 6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6630 ac_cv_prog_ac_ct_OTOOL64="otool64" 6631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634done 6635done 6636IFS=$as_save_IFS 6637 6638fi 6639fi 6640ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6641if test -n "$ac_ct_OTOOL64"; then 6642 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6643$as_echo "$ac_ct_OTOOL64" >&6; } 6644else 6645 { $as_echo "$as_me:$LINENO: result: no" >&5 6646$as_echo "no" >&6; } 6647fi 6648 6649 if test "x$ac_ct_OTOOL64" = x; then 6650 OTOOL64=":" 6651 else 6652 case $cross_compiling:$ac_tool_warned in 6653yes:) 6654{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6656ac_tool_warned=yes ;; 6657esac 6658 OTOOL64=$ac_ct_OTOOL64 6659 fi 6660else 6661 OTOOL64="$ac_cv_prog_OTOOL64" 6662fi 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6691$as_echo_n "checking for -single_module linker flag... " >&6; } 6692if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6693 $as_echo_n "(cached) " >&6 6694else 6695 lt_cv_apple_cc_single_mod=no 6696 if test -z "${LT_MULTI_MODULE}"; then 6697 # By default we will add the -single_module flag. You can override 6698 # by either setting the environment variable LT_MULTI_MODULE 6699 # non-empty at configure time, or by adding -multi_module to the 6700 # link flags. 6701 rm -rf libconftest.dylib* 6702 echo "int foo(void){return 1;}" > conftest.c 6703 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6704-dynamiclib -Wl,-single_module conftest.c" >&5 6705 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6706 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6707 _lt_result=$? 6708 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6709 lt_cv_apple_cc_single_mod=yes 6710 else 6711 cat conftest.err >&5 6712 fi 6713 rm -rf libconftest.dylib* 6714 rm -f conftest.* 6715 fi 6716fi 6717{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6718$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6719 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6720$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6721if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6722 $as_echo_n "(cached) " >&6 6723else 6724 lt_cv_ld_exported_symbols_list=no 6725 save_LDFLAGS=$LDFLAGS 6726 echo "_main" > conftest.sym 6727 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6728 cat >conftest.$ac_ext <<_ACEOF 6729/* confdefs.h. */ 6730_ACEOF 6731cat confdefs.h >>conftest.$ac_ext 6732cat >>conftest.$ac_ext <<_ACEOF 6733/* end confdefs.h. */ 6734 6735int 6736main () 6737{ 6738 6739 ; 6740 return 0; 6741} 6742_ACEOF 6743rm -f conftest.$ac_objext conftest$ac_exeext 6744if { (ac_try="$ac_link" 6745case "(($ac_try" in 6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6747 *) ac_try_echo=$ac_try;; 6748esac 6749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6750$as_echo "$ac_try_echo") >&5 6751 (eval "$ac_link") 2>conftest.er1 6752 ac_status=$? 6753 grep -v '^ *+' conftest.er1 >conftest.err 6754 rm -f conftest.er1 6755 cat conftest.err >&5 6756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6757 (exit $ac_status); } && { 6758 test -z "$ac_c_werror_flag" || 6759 test ! -s conftest.err 6760 } && test -s conftest$ac_exeext && { 6761 test "$cross_compiling" = yes || 6762 $as_test_x conftest$ac_exeext 6763 }; then 6764 lt_cv_ld_exported_symbols_list=yes 6765else 6766 $as_echo "$as_me: failed program was:" >&5 6767sed 's/^/| /' conftest.$ac_ext >&5 6768 6769 lt_cv_ld_exported_symbols_list=no 6770fi 6771 6772rm -rf conftest.dSYM 6773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6774 conftest$ac_exeext conftest.$ac_ext 6775 LDFLAGS="$save_LDFLAGS" 6776 6777fi 6778{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6779$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6780 case $host_os in 6781 rhapsody* | darwin1.[012]) 6782 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6783 darwin1.*) 6784 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6785 darwin*) # darwin 5.x on 6786 # if running on 10.5 or later, the deployment target defaults 6787 # to the OS version, if on x86, and 10.4, the deployment 6788 # target defaults to 10.4. Don't you love it? 6789 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6790 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6791 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6792 10.[012]*) 6793 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6794 10.*) 6795 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6796 esac 6797 ;; 6798 esac 6799 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6800 _lt_dar_single_mod='$single_module' 6801 fi 6802 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6803 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6804 else 6805 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6806 fi 6807 if test "$DSYMUTIL" != ":"; then 6808 _lt_dsymutil='~$DSYMUTIL $lib || :' 6809 else 6810 _lt_dsymutil= 6811 fi 6812 ;; 6813 esac 6814 6815 6816{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6817$as_echo_n "checking for ANSI C header files... " >&6; } 6818if test "${ac_cv_header_stdc+set}" = set; then 6819 $as_echo_n "(cached) " >&6 6820else 6821 cat >conftest.$ac_ext <<_ACEOF 6822/* confdefs.h. */ 6823_ACEOF 6824cat confdefs.h >>conftest.$ac_ext 6825cat >>conftest.$ac_ext <<_ACEOF 6826/* end confdefs.h. */ 6827#include <stdlib.h> 6828#include <stdarg.h> 6829#include <string.h> 6830#include <float.h> 6831 6832int 6833main () 6834{ 6835 6836 ; 6837 return 0; 6838} 6839_ACEOF 6840rm -f conftest.$ac_objext 6841if { (ac_try="$ac_compile" 6842case "(($ac_try" in 6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6844 *) ac_try_echo=$ac_try;; 6845esac 6846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6847$as_echo "$ac_try_echo") >&5 6848 (eval "$ac_compile") 2>conftest.er1 6849 ac_status=$? 6850 grep -v '^ *+' conftest.er1 >conftest.err 6851 rm -f conftest.er1 6852 cat conftest.err >&5 6853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6854 (exit $ac_status); } && { 6855 test -z "$ac_c_werror_flag" || 6856 test ! -s conftest.err 6857 } && test -s conftest.$ac_objext; then 6858 ac_cv_header_stdc=yes 6859else 6860 $as_echo "$as_me: failed program was:" >&5 6861sed 's/^/| /' conftest.$ac_ext >&5 6862 6863 ac_cv_header_stdc=no 6864fi 6865 6866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6867 6868if test $ac_cv_header_stdc = yes; then 6869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6870 cat >conftest.$ac_ext <<_ACEOF 6871/* confdefs.h. */ 6872_ACEOF 6873cat confdefs.h >>conftest.$ac_ext 6874cat >>conftest.$ac_ext <<_ACEOF 6875/* end confdefs.h. */ 6876#include <string.h> 6877 6878_ACEOF 6879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6880 $EGREP "memchr" >/dev/null 2>&1; then 6881 : 6882else 6883 ac_cv_header_stdc=no 6884fi 6885rm -f conftest* 6886 6887fi 6888 6889if test $ac_cv_header_stdc = yes; then 6890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6891 cat >conftest.$ac_ext <<_ACEOF 6892/* confdefs.h. */ 6893_ACEOF 6894cat confdefs.h >>conftest.$ac_ext 6895cat >>conftest.$ac_ext <<_ACEOF 6896/* end confdefs.h. */ 6897#include <stdlib.h> 6898 6899_ACEOF 6900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6901 $EGREP "free" >/dev/null 2>&1; then 6902 : 6903else 6904 ac_cv_header_stdc=no 6905fi 6906rm -f conftest* 6907 6908fi 6909 6910if test $ac_cv_header_stdc = yes; then 6911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6912 if test "$cross_compiling" = yes; then 6913 : 6914else 6915 cat >conftest.$ac_ext <<_ACEOF 6916/* confdefs.h. */ 6917_ACEOF 6918cat confdefs.h >>conftest.$ac_ext 6919cat >>conftest.$ac_ext <<_ACEOF 6920/* end confdefs.h. */ 6921#include <ctype.h> 6922#include <stdlib.h> 6923#if ((' ' & 0x0FF) == 0x020) 6924# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6925# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6926#else 6927# define ISLOWER(c) \ 6928 (('a' <= (c) && (c) <= 'i') \ 6929 || ('j' <= (c) && (c) <= 'r') \ 6930 || ('s' <= (c) && (c) <= 'z')) 6931# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6932#endif 6933 6934#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6935int 6936main () 6937{ 6938 int i; 6939 for (i = 0; i < 256; i++) 6940 if (XOR (islower (i), ISLOWER (i)) 6941 || toupper (i) != TOUPPER (i)) 6942 return 2; 6943 return 0; 6944} 6945_ACEOF 6946rm -f conftest$ac_exeext 6947if { (ac_try="$ac_link" 6948case "(($ac_try" in 6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6950 *) ac_try_echo=$ac_try;; 6951esac 6952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6953$as_echo "$ac_try_echo") >&5 6954 (eval "$ac_link") 2>&5 6955 ac_status=$? 6956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6958 { (case "(($ac_try" in 6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6960 *) ac_try_echo=$ac_try;; 6961esac 6962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6963$as_echo "$ac_try_echo") >&5 6964 (eval "$ac_try") 2>&5 6965 ac_status=$? 6966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6967 (exit $ac_status); }; }; then 6968 : 6969else 6970 $as_echo "$as_me: program exited with status $ac_status" >&5 6971$as_echo "$as_me: failed program was:" >&5 6972sed 's/^/| /' conftest.$ac_ext >&5 6973 6974( exit $ac_status ) 6975ac_cv_header_stdc=no 6976fi 6977rm -rf conftest.dSYM 6978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6979fi 6980 6981 6982fi 6983fi 6984{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6985$as_echo "$ac_cv_header_stdc" >&6; } 6986if test $ac_cv_header_stdc = yes; then 6987 6988cat >>confdefs.h <<\_ACEOF 6989#define STDC_HEADERS 1 6990_ACEOF 6991 6992fi 6993 6994# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7005 inttypes.h stdint.h unistd.h 7006do 7007as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7008{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7009$as_echo_n "checking for $ac_header... " >&6; } 7010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7011 $as_echo_n "(cached) " >&6 7012else 7013 cat >conftest.$ac_ext <<_ACEOF 7014/* confdefs.h. */ 7015_ACEOF 7016cat confdefs.h >>conftest.$ac_ext 7017cat >>conftest.$ac_ext <<_ACEOF 7018/* end confdefs.h. */ 7019$ac_includes_default 7020 7021#include <$ac_header> 7022_ACEOF 7023rm -f conftest.$ac_objext 7024if { (ac_try="$ac_compile" 7025case "(($ac_try" in 7026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7027 *) ac_try_echo=$ac_try;; 7028esac 7029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7030$as_echo "$ac_try_echo") >&5 7031 (eval "$ac_compile") 2>conftest.er1 7032 ac_status=$? 7033 grep -v '^ *+' conftest.er1 >conftest.err 7034 rm -f conftest.er1 7035 cat conftest.err >&5 7036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7037 (exit $ac_status); } && { 7038 test -z "$ac_c_werror_flag" || 7039 test ! -s conftest.err 7040 } && test -s conftest.$ac_objext; then 7041 eval "$as_ac_Header=yes" 7042else 7043 $as_echo "$as_me: failed program was:" >&5 7044sed 's/^/| /' conftest.$ac_ext >&5 7045 7046 eval "$as_ac_Header=no" 7047fi 7048 7049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7050fi 7051ac_res=`eval 'as_val=${'$as_ac_Header'} 7052 $as_echo "$as_val"'` 7053 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7054$as_echo "$ac_res" >&6; } 7055as_val=`eval 'as_val=${'$as_ac_Header'} 7056 $as_echo "$as_val"'` 7057 if test "x$as_val" = x""yes; then 7058 cat >>confdefs.h <<_ACEOF 7059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7060_ACEOF 7061 7062fi 7063 7064done 7065 7066 7067 7068for ac_header in dlfcn.h 7069do 7070as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7071{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7072$as_echo_n "checking for $ac_header... " >&6; } 7073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7074 $as_echo_n "(cached) " >&6 7075else 7076 cat >conftest.$ac_ext <<_ACEOF 7077/* confdefs.h. */ 7078_ACEOF 7079cat confdefs.h >>conftest.$ac_ext 7080cat >>conftest.$ac_ext <<_ACEOF 7081/* end confdefs.h. */ 7082$ac_includes_default 7083 7084#include <$ac_header> 7085_ACEOF 7086rm -f conftest.$ac_objext 7087if { (ac_try="$ac_compile" 7088case "(($ac_try" in 7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7090 *) ac_try_echo=$ac_try;; 7091esac 7092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7093$as_echo "$ac_try_echo") >&5 7094 (eval "$ac_compile") 2>conftest.er1 7095 ac_status=$? 7096 grep -v '^ *+' conftest.er1 >conftest.err 7097 rm -f conftest.er1 7098 cat conftest.err >&5 7099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7100 (exit $ac_status); } && { 7101 test -z "$ac_c_werror_flag" || 7102 test ! -s conftest.err 7103 } && test -s conftest.$ac_objext; then 7104 eval "$as_ac_Header=yes" 7105else 7106 $as_echo "$as_me: failed program was:" >&5 7107sed 's/^/| /' conftest.$ac_ext >&5 7108 7109 eval "$as_ac_Header=no" 7110fi 7111 7112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7113fi 7114ac_res=`eval 'as_val=${'$as_ac_Header'} 7115 $as_echo "$as_val"'` 7116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7117$as_echo "$ac_res" >&6; } 7118as_val=`eval 'as_val=${'$as_ac_Header'} 7119 $as_echo "$as_val"'` 7120 if test "x$as_val" = x""yes; then 7121 cat >>confdefs.h <<_ACEOF 7122#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7123_ACEOF 7124 7125fi 7126 7127done 7128 7129 7130 7131# Set options 7132 7133 7134 7135 enable_dlopen=no 7136 7137 7138 enable_win32_dll=no 7139 7140 7141 # Check whether --enable-shared was given. 7142if test "${enable_shared+set}" = set; then 7143 enableval=$enable_shared; p=${PACKAGE-default} 7144 case $enableval in 7145 yes) enable_shared=yes ;; 7146 no) enable_shared=no ;; 7147 *) 7148 enable_shared=no 7149 # Look at the argument we got. We use all the common list separators. 7150 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7151 for pkg in $enableval; do 7152 IFS="$lt_save_ifs" 7153 if test "X$pkg" = "X$p"; then 7154 enable_shared=yes 7155 fi 7156 done 7157 IFS="$lt_save_ifs" 7158 ;; 7159 esac 7160else 7161 enable_shared=yes 7162fi 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 # Check whether --enable-static was given. 7173if test "${enable_static+set}" = set; then 7174 enableval=$enable_static; p=${PACKAGE-default} 7175 case $enableval in 7176 yes) enable_static=yes ;; 7177 no) enable_static=no ;; 7178 *) 7179 enable_static=no 7180 # Look at the argument we got. We use all the common list separators. 7181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7182 for pkg in $enableval; do 7183 IFS="$lt_save_ifs" 7184 if test "X$pkg" = "X$p"; then 7185 enable_static=yes 7186 fi 7187 done 7188 IFS="$lt_save_ifs" 7189 ;; 7190 esac 7191else 7192 enable_static=yes 7193fi 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204# Check whether --with-pic was given. 7205if test "${with_pic+set}" = set; then 7206 withval=$with_pic; pic_mode="$withval" 7207else 7208 pic_mode=default 7209fi 7210 7211 7212test -z "$pic_mode" && pic_mode=default 7213 7214 7215 7216 7217 7218 7219 7220 # Check whether --enable-fast-install was given. 7221if test "${enable_fast_install+set}" = set; then 7222 enableval=$enable_fast_install; p=${PACKAGE-default} 7223 case $enableval in 7224 yes) enable_fast_install=yes ;; 7225 no) enable_fast_install=no ;; 7226 *) 7227 enable_fast_install=no 7228 # Look at the argument we got. We use all the common list separators. 7229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7230 for pkg in $enableval; do 7231 IFS="$lt_save_ifs" 7232 if test "X$pkg" = "X$p"; then 7233 enable_fast_install=yes 7234 fi 7235 done 7236 IFS="$lt_save_ifs" 7237 ;; 7238 esac 7239else 7240 enable_fast_install=yes 7241fi 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253# This can be used to rebuild libtool when needed 7254LIBTOOL_DEPS="$ltmain" 7255 7256# Always use our own libtool. 7257LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283test -z "$LN_S" && LN_S="ln -s" 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298if test -n "${ZSH_VERSION+set}" ; then 7299 setopt NO_GLOB_SUBST 7300fi 7301 7302{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7303$as_echo_n "checking for objdir... " >&6; } 7304if test "${lt_cv_objdir+set}" = set; then 7305 $as_echo_n "(cached) " >&6 7306else 7307 rm -f .libs 2>/dev/null 7308mkdir .libs 2>/dev/null 7309if test -d .libs; then 7310 lt_cv_objdir=.libs 7311else 7312 # MS-DOS does not allow filenames that begin with a dot. 7313 lt_cv_objdir=_libs 7314fi 7315rmdir .libs 2>/dev/null 7316fi 7317{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7318$as_echo "$lt_cv_objdir" >&6; } 7319objdir=$lt_cv_objdir 7320 7321 7322 7323 7324 7325cat >>confdefs.h <<_ACEOF 7326#define LT_OBJDIR "$lt_cv_objdir/" 7327_ACEOF 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345case $host_os in 7346aix3*) 7347 # AIX sometimes has problems with the GCC collect2 program. For some 7348 # reason, if we set the COLLECT_NAMES environment variable, the problems 7349 # vanish in a puff of smoke. 7350 if test "X${COLLECT_NAMES+set}" != Xset; then 7351 COLLECT_NAMES= 7352 export COLLECT_NAMES 7353 fi 7354 ;; 7355esac 7356 7357# Sed substitution that helps us do robust quoting. It backslashifies 7358# metacharacters that are still active within double-quoted strings. 7359sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7360 7361# Same as above, but do not quote variable references. 7362double_quote_subst='s/\(["`\\]\)/\\\1/g' 7363 7364# Sed substitution to delay expansion of an escaped shell variable in a 7365# double_quote_subst'ed string. 7366delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7367 7368# Sed substitution to delay expansion of an escaped single quote. 7369delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7370 7371# Sed substitution to avoid accidental globbing in evaled expressions 7372no_glob_subst='s/\*/\\\*/g' 7373 7374# Global variables: 7375ofile=libtool 7376can_build_shared=yes 7377 7378# All known linkers require a `.a' archive for static linking (except MSVC, 7379# which needs '.lib'). 7380libext=a 7381 7382with_gnu_ld="$lt_cv_prog_gnu_ld" 7383 7384old_CC="$CC" 7385old_CFLAGS="$CFLAGS" 7386 7387# Set sane defaults for various variables 7388test -z "$CC" && CC=cc 7389test -z "$LTCC" && LTCC=$CC 7390test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7391test -z "$LD" && LD=ld 7392test -z "$ac_objext" && ac_objext=o 7393 7394for cc_temp in $compiler""; do 7395 case $cc_temp in 7396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7398 \-*) ;; 7399 *) break;; 7400 esac 7401done 7402cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7403 7404 7405# Only perform the check for file, if the check method requires it 7406test -z "$MAGIC_CMD" && MAGIC_CMD=file 7407case $deplibs_check_method in 7408file_magic*) 7409 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7410 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7411$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7412if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7413 $as_echo_n "(cached) " >&6 7414else 7415 case $MAGIC_CMD in 7416[\\/*] | ?:[\\/]*) 7417 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7418 ;; 7419*) 7420 lt_save_MAGIC_CMD="$MAGIC_CMD" 7421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7422 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7423 for ac_dir in $ac_dummy; do 7424 IFS="$lt_save_ifs" 7425 test -z "$ac_dir" && ac_dir=. 7426 if test -f $ac_dir/${ac_tool_prefix}file; then 7427 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7428 if test -n "$file_magic_test_file"; then 7429 case $deplibs_check_method in 7430 "file_magic "*) 7431 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7432 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7433 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7434 $EGREP "$file_magic_regex" > /dev/null; then 7435 : 7436 else 7437 cat <<_LT_EOF 1>&2 7438 7439*** Warning: the command libtool uses to detect shared libraries, 7440*** $file_magic_cmd, produces output that libtool cannot recognize. 7441*** The result is that libtool may fail to recognize shared libraries 7442*** as such. This will affect the creation of libtool libraries that 7443*** depend on shared libraries, but programs linked with such libtool 7444*** libraries will work regardless of this problem. Nevertheless, you 7445*** may want to report the problem to your system manager and/or to 7446*** bug-libtool@gnu.org 7447 7448_LT_EOF 7449 fi ;; 7450 esac 7451 fi 7452 break 7453 fi 7454 done 7455 IFS="$lt_save_ifs" 7456 MAGIC_CMD="$lt_save_MAGIC_CMD" 7457 ;; 7458esac 7459fi 7460 7461MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7462if test -n "$MAGIC_CMD"; then 7463 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7464$as_echo "$MAGIC_CMD" >&6; } 7465else 7466 { $as_echo "$as_me:$LINENO: result: no" >&5 7467$as_echo "no" >&6; } 7468fi 7469 7470 7471 7472 7473 7474if test -z "$lt_cv_path_MAGIC_CMD"; then 7475 if test -n "$ac_tool_prefix"; then 7476 { $as_echo "$as_me:$LINENO: checking for file" >&5 7477$as_echo_n "checking for file... " >&6; } 7478if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7479 $as_echo_n "(cached) " >&6 7480else 7481 case $MAGIC_CMD in 7482[\\/*] | ?:[\\/]*) 7483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7484 ;; 7485*) 7486 lt_save_MAGIC_CMD="$MAGIC_CMD" 7487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7488 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7489 for ac_dir in $ac_dummy; do 7490 IFS="$lt_save_ifs" 7491 test -z "$ac_dir" && ac_dir=. 7492 if test -f $ac_dir/file; then 7493 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7494 if test -n "$file_magic_test_file"; then 7495 case $deplibs_check_method in 7496 "file_magic "*) 7497 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7499 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7500 $EGREP "$file_magic_regex" > /dev/null; then 7501 : 7502 else 7503 cat <<_LT_EOF 1>&2 7504 7505*** Warning: the command libtool uses to detect shared libraries, 7506*** $file_magic_cmd, produces output that libtool cannot recognize. 7507*** The result is that libtool may fail to recognize shared libraries 7508*** as such. This will affect the creation of libtool libraries that 7509*** depend on shared libraries, but programs linked with such libtool 7510*** libraries will work regardless of this problem. Nevertheless, you 7511*** may want to report the problem to your system manager and/or to 7512*** bug-libtool@gnu.org 7513 7514_LT_EOF 7515 fi ;; 7516 esac 7517 fi 7518 break 7519 fi 7520 done 7521 IFS="$lt_save_ifs" 7522 MAGIC_CMD="$lt_save_MAGIC_CMD" 7523 ;; 7524esac 7525fi 7526 7527MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7528if test -n "$MAGIC_CMD"; then 7529 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7530$as_echo "$MAGIC_CMD" >&6; } 7531else 7532 { $as_echo "$as_me:$LINENO: result: no" >&5 7533$as_echo "no" >&6; } 7534fi 7535 7536 7537 else 7538 MAGIC_CMD=: 7539 fi 7540fi 7541 7542 fi 7543 ;; 7544esac 7545 7546# Use C for the default configuration in the libtool script 7547 7548lt_save_CC="$CC" 7549ac_ext=c 7550ac_cpp='$CPP $CPPFLAGS' 7551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7553ac_compiler_gnu=$ac_cv_c_compiler_gnu 7554 7555 7556# Source file extension for C test sources. 7557ac_ext=c 7558 7559# Object file extension for compiled C test sources. 7560objext=o 7561objext=$objext 7562 7563# Code to be used in simple compile tests 7564lt_simple_compile_test_code="int some_variable = 0;" 7565 7566# Code to be used in simple link tests 7567lt_simple_link_test_code='int main(){return(0);}' 7568 7569 7570 7571 7572 7573 7574 7575# If no C compiler was specified, use CC. 7576LTCC=${LTCC-"$CC"} 7577 7578# If no C compiler flags were specified, use CFLAGS. 7579LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7580 7581# Allow CC to be a program name with arguments. 7582compiler=$CC 7583 7584# Save the default compiler, since it gets overwritten when the other 7585# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7586compiler_DEFAULT=$CC 7587 7588# save warnings/boilerplate of simple test code 7589ac_outfile=conftest.$ac_objext 7590echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7591eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7592_lt_compiler_boilerplate=`cat conftest.err` 7593$RM conftest* 7594 7595ac_outfile=conftest.$ac_objext 7596echo "$lt_simple_link_test_code" >conftest.$ac_ext 7597eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7598_lt_linker_boilerplate=`cat conftest.err` 7599$RM -r conftest* 7600 7601 7602if test -n "$compiler"; then 7603 7604lt_prog_compiler_no_builtin_flag= 7605 7606if test "$GCC" = yes; then 7607 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7608 7609 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7610$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7611if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7612 $as_echo_n "(cached) " >&6 7613else 7614 lt_cv_prog_compiler_rtti_exceptions=no 7615 ac_outfile=conftest.$ac_objext 7616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7617 lt_compiler_flag="-fno-rtti -fno-exceptions" 7618 # Insert the option either (1) after the last *FLAGS variable, or 7619 # (2) before a word containing "conftest.", or (3) at the end. 7620 # Note that $ac_compile itself does not contain backslashes and begins 7621 # with a dollar sign (not a hyphen), so the echo should work correctly. 7622 # The option is referenced via a variable to avoid confusing sed. 7623 lt_compile=`echo "$ac_compile" | $SED \ 7624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7626 -e 's:$: $lt_compiler_flag:'` 7627 (eval echo "\"\$as_me:7627: $lt_compile\"" >&5) 7628 (eval "$lt_compile" 2>conftest.err) 7629 ac_status=$? 7630 cat conftest.err >&5 7631 echo "$as_me:7631: \$? = $ac_status" >&5 7632 if (exit $ac_status) && test -s "$ac_outfile"; then 7633 # The compiler can only warn and ignore the option if not recognized 7634 # So say no if there are warnings other than the usual output. 7635 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7638 lt_cv_prog_compiler_rtti_exceptions=yes 7639 fi 7640 fi 7641 $RM conftest* 7642 7643fi 7644{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7645$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7646 7647if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7648 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7649else 7650 : 7651fi 7652 7653fi 7654 7655 7656 7657 7658 7659 7660 lt_prog_compiler_wl= 7661lt_prog_compiler_pic= 7662lt_prog_compiler_static= 7663 7664{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7665$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7666 7667 if test "$GCC" = yes; then 7668 lt_prog_compiler_wl='-Wl,' 7669 lt_prog_compiler_static='-static' 7670 7671 case $host_os in 7672 aix*) 7673 # All AIX code is PIC. 7674 if test "$host_cpu" = ia64; then 7675 # AIX 5 now supports IA64 processor 7676 lt_prog_compiler_static='-Bstatic' 7677 fi 7678 ;; 7679 7680 amigaos*) 7681 case $host_cpu in 7682 powerpc) 7683 # see comment about AmigaOS4 .so support 7684 lt_prog_compiler_pic='-fPIC' 7685 ;; 7686 m68k) 7687 # FIXME: we need at least 68020 code to build shared libraries, but 7688 # adding the `-m68020' flag to GCC prevents building anything better, 7689 # like `-m68040'. 7690 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7691 ;; 7692 esac 7693 ;; 7694 7695 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7696 # PIC is the default for these OSes. 7697 ;; 7698 7699 mingw* | cygwin* | pw32* | os2* | cegcc*) 7700 # This hack is so that the source file can tell whether it is being 7701 # built for inclusion in a dll (and should export symbols for example). 7702 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7703 # (--disable-auto-import) libraries 7704 lt_prog_compiler_pic='-DDLL_EXPORT' 7705 ;; 7706 7707 darwin* | rhapsody*) 7708 # PIC is the default on this platform 7709 # Common symbols not allowed in MH_DYLIB files 7710 lt_prog_compiler_pic='-fno-common' 7711 ;; 7712 7713 hpux*) 7714 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7715 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7716 # sets the default TLS model and affects inlining. 7717 case $host_cpu in 7718 hppa*64*) 7719 # +Z the default 7720 ;; 7721 *) 7722 lt_prog_compiler_pic='-fPIC' 7723 ;; 7724 esac 7725 ;; 7726 7727 interix[3-9]*) 7728 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7729 # Instead, we relocate shared libraries at runtime. 7730 ;; 7731 7732 msdosdjgpp*) 7733 # Just because we use GCC doesn't mean we suddenly get shared libraries 7734 # on systems that don't support them. 7735 lt_prog_compiler_can_build_shared=no 7736 enable_shared=no 7737 ;; 7738 7739 *nto* | *qnx*) 7740 # QNX uses GNU C++, but need to define -shared option too, otherwise 7741 # it will coredump. 7742 lt_prog_compiler_pic='-fPIC -shared' 7743 ;; 7744 7745 sysv4*MP*) 7746 if test -d /usr/nec; then 7747 lt_prog_compiler_pic=-Kconform_pic 7748 fi 7749 ;; 7750 7751 *) 7752 lt_prog_compiler_pic='-fPIC' 7753 ;; 7754 esac 7755 else 7756 # PORTME Check for flag to pass linker flags through the system compiler. 7757 case $host_os in 7758 aix*) 7759 lt_prog_compiler_wl='-Wl,' 7760 if test "$host_cpu" = ia64; then 7761 # AIX 5 now supports IA64 processor 7762 lt_prog_compiler_static='-Bstatic' 7763 else 7764 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7765 fi 7766 ;; 7767 7768 mingw* | cygwin* | pw32* | os2* | cegcc*) 7769 # This hack is so that the source file can tell whether it is being 7770 # built for inclusion in a dll (and should export symbols for example). 7771 lt_prog_compiler_pic='-DDLL_EXPORT' 7772 ;; 7773 7774 hpux9* | hpux10* | hpux11*) 7775 lt_prog_compiler_wl='-Wl,' 7776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7777 # not for PA HP-UX. 7778 case $host_cpu in 7779 hppa*64*|ia64*) 7780 # +Z the default 7781 ;; 7782 *) 7783 lt_prog_compiler_pic='+Z' 7784 ;; 7785 esac 7786 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7787 lt_prog_compiler_static='${wl}-a ${wl}archive' 7788 ;; 7789 7790 irix5* | irix6* | nonstopux*) 7791 lt_prog_compiler_wl='-Wl,' 7792 # PIC (with -KPIC) is the default. 7793 lt_prog_compiler_static='-non_shared' 7794 ;; 7795 7796 linux* | k*bsd*-gnu) 7797 case $cc_basename in 7798 # old Intel for x86_64 which still supported -KPIC. 7799 ecc*) 7800 lt_prog_compiler_wl='-Wl,' 7801 lt_prog_compiler_pic='-KPIC' 7802 lt_prog_compiler_static='-static' 7803 ;; 7804 # icc used to be incompatible with GCC. 7805 # ICC 10 doesn't accept -KPIC any more. 7806 icc* | ifort*) 7807 lt_prog_compiler_wl='-Wl,' 7808 lt_prog_compiler_pic='-fPIC' 7809 lt_prog_compiler_static='-static' 7810 ;; 7811 # Lahey Fortran 8.1. 7812 lf95*) 7813 lt_prog_compiler_wl='-Wl,' 7814 lt_prog_compiler_pic='--shared' 7815 lt_prog_compiler_static='--static' 7816 ;; 7817 pgcc* | pgf77* | pgf90* | pgf95*) 7818 # Portland Group compilers (*not* the Pentium gcc compiler, 7819 # which looks to be a dead project) 7820 lt_prog_compiler_wl='-Wl,' 7821 lt_prog_compiler_pic='-fpic' 7822 lt_prog_compiler_static='-Bstatic' 7823 ;; 7824 ccc*) 7825 lt_prog_compiler_wl='-Wl,' 7826 # All Alpha code is PIC. 7827 lt_prog_compiler_static='-non_shared' 7828 ;; 7829 xl*) 7830 # IBM XL C 8.0/Fortran 10.1 on PPC 7831 lt_prog_compiler_wl='-Wl,' 7832 lt_prog_compiler_pic='-qpic' 7833 lt_prog_compiler_static='-qstaticlink' 7834 ;; 7835 *) 7836 case `$CC -V 2>&1 | sed 5q` in 7837 *Sun\ C*) 7838 # Sun C 5.9 7839 lt_prog_compiler_pic='-KPIC' 7840 lt_prog_compiler_static='-Bstatic' 7841 lt_prog_compiler_wl='-Wl,' 7842 ;; 7843 *Sun\ F*) 7844 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7845 lt_prog_compiler_pic='-KPIC' 7846 lt_prog_compiler_static='-Bstatic' 7847 lt_prog_compiler_wl='' 7848 ;; 7849 esac 7850 ;; 7851 esac 7852 ;; 7853 7854 newsos6) 7855 lt_prog_compiler_pic='-KPIC' 7856 lt_prog_compiler_static='-Bstatic' 7857 ;; 7858 7859 *nto* | *qnx*) 7860 # QNX uses GNU C++, but need to define -shared option too, otherwise 7861 # it will coredump. 7862 lt_prog_compiler_pic='-fPIC -shared' 7863 ;; 7864 7865 osf3* | osf4* | osf5*) 7866 lt_prog_compiler_wl='-Wl,' 7867 # All OSF/1 code is PIC. 7868 lt_prog_compiler_static='-non_shared' 7869 ;; 7870 7871 rdos*) 7872 lt_prog_compiler_static='-non_shared' 7873 ;; 7874 7875 solaris*) 7876 lt_prog_compiler_pic='-KPIC' 7877 lt_prog_compiler_static='-Bstatic' 7878 case $cc_basename in 7879 f77* | f90* | f95*) 7880 lt_prog_compiler_wl='-Qoption ld ';; 7881 *) 7882 lt_prog_compiler_wl='-Wl,';; 7883 esac 7884 ;; 7885 7886 sunos4*) 7887 lt_prog_compiler_wl='-Qoption ld ' 7888 lt_prog_compiler_pic='-PIC' 7889 lt_prog_compiler_static='-Bstatic' 7890 ;; 7891 7892 sysv4 | sysv4.2uw2* | sysv4.3*) 7893 lt_prog_compiler_wl='-Wl,' 7894 lt_prog_compiler_pic='-KPIC' 7895 lt_prog_compiler_static='-Bstatic' 7896 ;; 7897 7898 sysv4*MP*) 7899 if test -d /usr/nec ;then 7900 lt_prog_compiler_pic='-Kconform_pic' 7901 lt_prog_compiler_static='-Bstatic' 7902 fi 7903 ;; 7904 7905 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7906 lt_prog_compiler_wl='-Wl,' 7907 lt_prog_compiler_pic='-KPIC' 7908 lt_prog_compiler_static='-Bstatic' 7909 ;; 7910 7911 unicos*) 7912 lt_prog_compiler_wl='-Wl,' 7913 lt_prog_compiler_can_build_shared=no 7914 ;; 7915 7916 uts4*) 7917 lt_prog_compiler_pic='-pic' 7918 lt_prog_compiler_static='-Bstatic' 7919 ;; 7920 7921 *) 7922 lt_prog_compiler_can_build_shared=no 7923 ;; 7924 esac 7925 fi 7926 7927case $host_os in 7928 # For platforms which do not support PIC, -DPIC is meaningless: 7929 *djgpp*) 7930 lt_prog_compiler_pic= 7931 ;; 7932 *) 7933 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7934 ;; 7935esac 7936{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7937$as_echo "$lt_prog_compiler_pic" >&6; } 7938 7939 7940 7941 7942 7943 7944# 7945# Check to make sure the PIC flag actually works. 7946# 7947if test -n "$lt_prog_compiler_pic"; then 7948 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7949$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7950if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7951 $as_echo_n "(cached) " >&6 7952else 7953 lt_cv_prog_compiler_pic_works=no 7954 ac_outfile=conftest.$ac_objext 7955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7956 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7957 # Insert the option either (1) after the last *FLAGS variable, or 7958 # (2) before a word containing "conftest.", or (3) at the end. 7959 # Note that $ac_compile itself does not contain backslashes and begins 7960 # with a dollar sign (not a hyphen), so the echo should work correctly. 7961 # The option is referenced via a variable to avoid confusing sed. 7962 lt_compile=`echo "$ac_compile" | $SED \ 7963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7965 -e 's:$: $lt_compiler_flag:'` 7966 (eval echo "\"\$as_me:7966: $lt_compile\"" >&5) 7967 (eval "$lt_compile" 2>conftest.err) 7968 ac_status=$? 7969 cat conftest.err >&5 7970 echo "$as_me:7970: \$? = $ac_status" >&5 7971 if (exit $ac_status) && test -s "$ac_outfile"; then 7972 # The compiler can only warn and ignore the option if not recognized 7973 # So say no if there are warnings other than the usual output. 7974 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7976 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7977 lt_cv_prog_compiler_pic_works=yes 7978 fi 7979 fi 7980 $RM conftest* 7981 7982fi 7983{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7984$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7985 7986if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7987 case $lt_prog_compiler_pic in 7988 "" | " "*) ;; 7989 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7990 esac 7991else 7992 lt_prog_compiler_pic= 7993 lt_prog_compiler_can_build_shared=no 7994fi 7995 7996fi 7997 7998 7999 8000 8001 8002 8003# 8004# Check to make sure the static flag actually works. 8005# 8006wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8007{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8008$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8009if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8010 $as_echo_n "(cached) " >&6 8011else 8012 lt_cv_prog_compiler_static_works=no 8013 save_LDFLAGS="$LDFLAGS" 8014 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8015 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8017 # The linker can only warn and ignore the option if not recognized 8018 # So say no if there are warnings 8019 if test -s conftest.err; then 8020 # Append any errors to the config.log. 8021 cat conftest.err 1>&5 8022 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8024 if diff conftest.exp conftest.er2 >/dev/null; then 8025 lt_cv_prog_compiler_static_works=yes 8026 fi 8027 else 8028 lt_cv_prog_compiler_static_works=yes 8029 fi 8030 fi 8031 $RM -r conftest* 8032 LDFLAGS="$save_LDFLAGS" 8033 8034fi 8035{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8036$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8037 8038if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8039 : 8040else 8041 lt_prog_compiler_static= 8042fi 8043 8044 8045 8046 8047 8048 8049 8050 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8051$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8052if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8053 $as_echo_n "(cached) " >&6 8054else 8055 lt_cv_prog_compiler_c_o=no 8056 $RM -r conftest 2>/dev/null 8057 mkdir conftest 8058 cd conftest 8059 mkdir out 8060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8061 8062 lt_compiler_flag="-o out/conftest2.$ac_objext" 8063 # Insert the option either (1) after the last *FLAGS variable, or 8064 # (2) before a word containing "conftest.", or (3) at the end. 8065 # Note that $ac_compile itself does not contain backslashes and begins 8066 # with a dollar sign (not a hyphen), so the echo should work correctly. 8067 lt_compile=`echo "$ac_compile" | $SED \ 8068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8070 -e 's:$: $lt_compiler_flag:'` 8071 (eval echo "\"\$as_me:8071: $lt_compile\"" >&5) 8072 (eval "$lt_compile" 2>out/conftest.err) 8073 ac_status=$? 8074 cat out/conftest.err >&5 8075 echo "$as_me:8075: \$? = $ac_status" >&5 8076 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8077 then 8078 # The compiler can only warn and ignore the option if not recognized 8079 # So say no if there are warnings 8080 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8081 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8082 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8083 lt_cv_prog_compiler_c_o=yes 8084 fi 8085 fi 8086 chmod u+w . 2>&5 8087 $RM conftest* 8088 # SGI C++ compiler will create directory out/ii_files/ for 8089 # template instantiation 8090 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8091 $RM out/* && rmdir out 8092 cd .. 8093 $RM -r conftest 8094 $RM conftest* 8095 8096fi 8097{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8098$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8099 8100 8101 8102 8103 8104 8105 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8106$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8107if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8108 $as_echo_n "(cached) " >&6 8109else 8110 lt_cv_prog_compiler_c_o=no 8111 $RM -r conftest 2>/dev/null 8112 mkdir conftest 8113 cd conftest 8114 mkdir out 8115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8116 8117 lt_compiler_flag="-o out/conftest2.$ac_objext" 8118 # Insert the option either (1) after the last *FLAGS variable, or 8119 # (2) before a word containing "conftest.", or (3) at the end. 8120 # Note that $ac_compile itself does not contain backslashes and begins 8121 # with a dollar sign (not a hyphen), so the echo should work correctly. 8122 lt_compile=`echo "$ac_compile" | $SED \ 8123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8125 -e 's:$: $lt_compiler_flag:'` 8126 (eval echo "\"\$as_me:8126: $lt_compile\"" >&5) 8127 (eval "$lt_compile" 2>out/conftest.err) 8128 ac_status=$? 8129 cat out/conftest.err >&5 8130 echo "$as_me:8130: \$? = $ac_status" >&5 8131 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8132 then 8133 # The compiler can only warn and ignore the option if not recognized 8134 # So say no if there are warnings 8135 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8138 lt_cv_prog_compiler_c_o=yes 8139 fi 8140 fi 8141 chmod u+w . 2>&5 8142 $RM conftest* 8143 # SGI C++ compiler will create directory out/ii_files/ for 8144 # template instantiation 8145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8146 $RM out/* && rmdir out 8147 cd .. 8148 $RM -r conftest 8149 $RM conftest* 8150 8151fi 8152{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8153$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8154 8155 8156 8157 8158hard_links="nottested" 8159if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8160 # do not overwrite the value of need_locks provided by the user 8161 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8162$as_echo_n "checking if we can lock with hard links... " >&6; } 8163 hard_links=yes 8164 $RM conftest* 8165 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8166 touch conftest.a 8167 ln conftest.a conftest.b 2>&5 || hard_links=no 8168 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8169 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8170$as_echo "$hard_links" >&6; } 8171 if test "$hard_links" = no; then 8172 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8173$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8174 need_locks=warn 8175 fi 8176else 8177 need_locks=no 8178fi 8179 8180 8181 8182 8183 8184 8185 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8186$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8187 8188 runpath_var= 8189 allow_undefined_flag= 8190 always_export_symbols=no 8191 archive_cmds= 8192 archive_expsym_cmds= 8193 compiler_needs_object=no 8194 enable_shared_with_static_runtimes=no 8195 export_dynamic_flag_spec= 8196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8197 hardcode_automatic=no 8198 hardcode_direct=no 8199 hardcode_direct_absolute=no 8200 hardcode_libdir_flag_spec= 8201 hardcode_libdir_flag_spec_ld= 8202 hardcode_libdir_separator= 8203 hardcode_minus_L=no 8204 hardcode_shlibpath_var=unsupported 8205 inherit_rpath=no 8206 link_all_deplibs=unknown 8207 module_cmds= 8208 module_expsym_cmds= 8209 old_archive_from_new_cmds= 8210 old_archive_from_expsyms_cmds= 8211 thread_safe_flag_spec= 8212 whole_archive_flag_spec= 8213 # include_expsyms should be a list of space-separated symbols to be *always* 8214 # included in the symbol list 8215 include_expsyms= 8216 # exclude_expsyms can be an extended regexp of symbols to exclude 8217 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8218 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8219 # as well as any symbol that contains `d'. 8220 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8221 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8222 # platforms (ab)use it in PIC code, but their linkers get confused if 8223 # the symbol is explicitly referenced. Since portable code cannot 8224 # rely on this symbol name, it's probably fine to never include it in 8225 # preloaded symbol tables. 8226 # Exclude shared library initialization/finalization symbols. 8227 extract_expsyms_cmds= 8228 8229 case $host_os in 8230 cygwin* | mingw* | pw32* | cegcc*) 8231 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8232 # When not using gcc, we currently assume that we are using 8233 # Microsoft Visual C++. 8234 if test "$GCC" != yes; then 8235 with_gnu_ld=no 8236 fi 8237 ;; 8238 interix*) 8239 # we just hope/assume this is gcc and not c89 (= MSVC++) 8240 with_gnu_ld=yes 8241 ;; 8242 openbsd*) 8243 with_gnu_ld=no 8244 ;; 8245 esac 8246 8247 ld_shlibs=yes 8248 if test "$with_gnu_ld" = yes; then 8249 # If archive_cmds runs LD, not CC, wlarc should be empty 8250 wlarc='${wl}' 8251 8252 # Set some defaults for GNU ld with shared library support. These 8253 # are reset later if shared libraries are not supported. Putting them 8254 # here allows them to be overridden if necessary. 8255 runpath_var=LD_RUN_PATH 8256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8257 export_dynamic_flag_spec='${wl}--export-dynamic' 8258 # ancient GNU ld didn't support --whole-archive et. al. 8259 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8260 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8261 else 8262 whole_archive_flag_spec= 8263 fi 8264 supports_anon_versioning=no 8265 case `$LD -v 2>&1` in 8266 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8267 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8268 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8269 *\ 2.11.*) ;; # other 2.11 versions 8270 *) supports_anon_versioning=yes ;; 8271 esac 8272 8273 # See if GNU ld supports shared libraries. 8274 case $host_os in 8275 aix[3-9]*) 8276 # On AIX/PPC, the GNU linker is very broken 8277 if test "$host_cpu" != ia64; then 8278 ld_shlibs=no 8279 cat <<_LT_EOF 1>&2 8280 8281*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8282*** to be unable to reliably create shared libraries on AIX. 8283*** Therefore, libtool is disabling shared libraries support. If you 8284*** really care for shared libraries, you may want to modify your PATH 8285*** so that a non-GNU linker is found, and then restart. 8286 8287_LT_EOF 8288 fi 8289 ;; 8290 8291 amigaos*) 8292 case $host_cpu in 8293 powerpc) 8294 # see comment about AmigaOS4 .so support 8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8296 archive_expsym_cmds='' 8297 ;; 8298 m68k) 8299 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)' 8300 hardcode_libdir_flag_spec='-L$libdir' 8301 hardcode_minus_L=yes 8302 ;; 8303 esac 8304 ;; 8305 8306 beos*) 8307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8308 allow_undefined_flag=unsupported 8309 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8310 # support --undefined. This deserves some investigation. FIXME 8311 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8312 else 8313 ld_shlibs=no 8314 fi 8315 ;; 8316 8317 cygwin* | mingw* | pw32* | cegcc*) 8318 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8319 # as there is no search path for DLLs. 8320 hardcode_libdir_flag_spec='-L$libdir' 8321 allow_undefined_flag=unsupported 8322 always_export_symbols=no 8323 enable_shared_with_static_runtimes=yes 8324 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8325 8326 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8328 # If the export-symbols file already is a .def file (1st line 8329 # is EXPORTS), use it as is; otherwise, prepend... 8330 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8331 cp $export_symbols $output_objdir/$soname.def; 8332 else 8333 echo EXPORTS > $output_objdir/$soname.def; 8334 cat $export_symbols >> $output_objdir/$soname.def; 8335 fi~ 8336 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8337 else 8338 ld_shlibs=no 8339 fi 8340 ;; 8341 8342 interix[3-9]*) 8343 hardcode_direct=no 8344 hardcode_shlibpath_var=no 8345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8346 export_dynamic_flag_spec='${wl}-E' 8347 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8348 # Instead, shared libraries are loaded at an image base (0x10000000 by 8349 # default) and relocated if they conflict, which is a slow very memory 8350 # consuming and fragmenting process. To avoid this, we pick a random, 8351 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8352 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8354 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' 8355 ;; 8356 8357 gnu* | linux* | tpf* | k*bsd*-gnu) 8358 tmp_diet=no 8359 if test "$host_os" = linux-dietlibc; then 8360 case $cc_basename in 8361 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8362 esac 8363 fi 8364 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8365 && test "$tmp_diet" = no 8366 then 8367 tmp_addflag= 8368 tmp_sharedflag='-shared' 8369 case $cc_basename,$host_cpu in 8370 pgcc*) # Portland Group C compiler 8371 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' 8372 tmp_addflag=' $pic_flag' 8373 ;; 8374 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8375 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' 8376 tmp_addflag=' $pic_flag -Mnomain' ;; 8377 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8378 tmp_addflag=' -i_dynamic' ;; 8379 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8380 tmp_addflag=' -i_dynamic -nofor_main' ;; 8381 ifc* | ifort*) # Intel Fortran compiler 8382 tmp_addflag=' -nofor_main' ;; 8383 lf95*) # Lahey Fortran 8.1 8384 whole_archive_flag_spec= 8385 tmp_sharedflag='--shared' ;; 8386 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8387 tmp_sharedflag='-qmkshrobj' 8388 tmp_addflag= ;; 8389 esac 8390 case `$CC -V 2>&1 | sed 5q` in 8391 *Sun\ C*) # Sun C 5.9 8392 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' 8393 compiler_needs_object=yes 8394 tmp_sharedflag='-G' ;; 8395 *Sun\ F*) # Sun Fortran 8.3 8396 tmp_sharedflag='-G' ;; 8397 esac 8398 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8399 8400 if test "x$supports_anon_versioning" = xyes; then 8401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8403 echo "local: *; };" >> $output_objdir/$libname.ver~ 8404 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8405 fi 8406 8407 case $cc_basename in 8408 xlf*) 8409 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8410 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8411 hardcode_libdir_flag_spec= 8412 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8413 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8414 if test "x$supports_anon_versioning" = xyes; then 8415 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8416 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8417 echo "local: *; };" >> $output_objdir/$libname.ver~ 8418 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8419 fi 8420 ;; 8421 esac 8422 else 8423 ld_shlibs=no 8424 fi 8425 ;; 8426 8427 netbsd* | netbsdelf*-gnu) 8428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8429 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8430 wlarc= 8431 else 8432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8433 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8434 fi 8435 ;; 8436 8437 solaris*) 8438 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8439 ld_shlibs=no 8440 cat <<_LT_EOF 1>&2 8441 8442*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8443*** create shared libraries on Solaris systems. Therefore, libtool 8444*** is disabling shared libraries support. We urge you to upgrade GNU 8445*** binutils to release 2.9.1 or newer. Another option is to modify 8446*** your PATH or compiler configuration so that the native linker is 8447*** used, and then restart. 8448 8449_LT_EOF 8450 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8453 else 8454 ld_shlibs=no 8455 fi 8456 ;; 8457 8458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8459 case `$LD -v 2>&1` in 8460 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8461 ld_shlibs=no 8462 cat <<_LT_EOF 1>&2 8463 8464*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8465*** reliably create shared libraries on SCO systems. Therefore, libtool 8466*** is disabling shared libraries support. We urge you to upgrade GNU 8467*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8468*** your PATH or compiler configuration so that the native linker is 8469*** used, and then restart. 8470 8471_LT_EOF 8472 ;; 8473 *) 8474 # For security reasons, it is highly recommended that you always 8475 # use absolute paths for naming shared libraries, and exclude the 8476 # DT_RUNPATH tag from executables and libraries. But doing so 8477 # requires that you compile everything twice, which is a pain. 8478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8482 else 8483 ld_shlibs=no 8484 fi 8485 ;; 8486 esac 8487 ;; 8488 8489 sunos4*) 8490 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8491 wlarc= 8492 hardcode_direct=yes 8493 hardcode_shlibpath_var=no 8494 ;; 8495 8496 *) 8497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8500 else 8501 ld_shlibs=no 8502 fi 8503 ;; 8504 esac 8505 8506 if test "$ld_shlibs" = no; then 8507 runpath_var= 8508 hardcode_libdir_flag_spec= 8509 export_dynamic_flag_spec= 8510 whole_archive_flag_spec= 8511 fi 8512 else 8513 # PORTME fill in a description of your system's linker (not GNU ld) 8514 case $host_os in 8515 aix3*) 8516 allow_undefined_flag=unsupported 8517 always_export_symbols=yes 8518 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' 8519 # Note: this linker hardcodes the directories in LIBPATH if there 8520 # are no directories specified by -L. 8521 hardcode_minus_L=yes 8522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8523 # Neither direct hardcoding nor static linking is supported with a 8524 # broken collect2. 8525 hardcode_direct=unsupported 8526 fi 8527 ;; 8528 8529 aix[4-9]*) 8530 if test "$host_cpu" = ia64; then 8531 # On IA64, the linker does run time linking by default, so we don't 8532 # have to do anything special. 8533 aix_use_runtimelinking=no 8534 exp_sym_flag='-Bexport' 8535 no_entry_flag="" 8536 else 8537 # If we're using GNU nm, then we don't want the "-C" option. 8538 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8540 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' 8541 else 8542 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' 8543 fi 8544 aix_use_runtimelinking=no 8545 8546 # Test if we are trying to use run time linking or normal 8547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8548 # need to do runtime linking. 8549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8550 for ld_flag in $LDFLAGS; do 8551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8552 aix_use_runtimelinking=yes 8553 break 8554 fi 8555 done 8556 ;; 8557 esac 8558 8559 exp_sym_flag='-bexport' 8560 no_entry_flag='-bnoentry' 8561 fi 8562 8563 # When large executables or shared objects are built, AIX ld can 8564 # have problems creating the table of contents. If linking a library 8565 # or program results in "error TOC overflow" add -mminimal-toc to 8566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8568 8569 archive_cmds='' 8570 hardcode_direct=yes 8571 hardcode_direct_absolute=yes 8572 hardcode_libdir_separator=':' 8573 link_all_deplibs=yes 8574 file_list_spec='${wl}-f,' 8575 8576 if test "$GCC" = yes; then 8577 case $host_os in aix4.[012]|aix4.[012].*) 8578 # We only want to do this on AIX 4.2 and lower, the check 8579 # below for broken collect2 doesn't work under 4.3+ 8580 collect2name=`${CC} -print-prog-name=collect2` 8581 if test -f "$collect2name" && 8582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8583 then 8584 # We have reworked collect2 8585 : 8586 else 8587 # We have old collect2 8588 hardcode_direct=unsupported 8589 # It fails to find uninstalled libraries when the uninstalled 8590 # path is not listed in the libpath. Setting hardcode_minus_L 8591 # to unsupported forces relinking 8592 hardcode_minus_L=yes 8593 hardcode_libdir_flag_spec='-L$libdir' 8594 hardcode_libdir_separator= 8595 fi 8596 ;; 8597 esac 8598 shared_flag='-shared' 8599 if test "$aix_use_runtimelinking" = yes; then 8600 shared_flag="$shared_flag "'${wl}-G' 8601 fi 8602 link_all_deplibs=no 8603 else 8604 # not using gcc 8605 if test "$host_cpu" = ia64; then 8606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8607 # chokes on -Wl,-G. The following line is correct: 8608 shared_flag='-G' 8609 else 8610 if test "$aix_use_runtimelinking" = yes; then 8611 shared_flag='${wl}-G' 8612 else 8613 shared_flag='${wl}-bM:SRE' 8614 fi 8615 fi 8616 fi 8617 8618 export_dynamic_flag_spec='${wl}-bexpall' 8619 # It seems that -bexpall does not export symbols beginning with 8620 # underscore (_), so it is better to generate a list of symbols to export. 8621 always_export_symbols=yes 8622 if test "$aix_use_runtimelinking" = yes; then 8623 # Warning - without using the other runtime loading flags (-brtl), 8624 # -berok will link without error, but may produce a broken library. 8625 allow_undefined_flag='-berok' 8626 # Determine the default libpath from the value encoded in an 8627 # empty executable. 8628 cat >conftest.$ac_ext <<_ACEOF 8629/* confdefs.h. */ 8630_ACEOF 8631cat confdefs.h >>conftest.$ac_ext 8632cat >>conftest.$ac_ext <<_ACEOF 8633/* end confdefs.h. */ 8634 8635int 8636main () 8637{ 8638 8639 ; 8640 return 0; 8641} 8642_ACEOF 8643rm -f conftest.$ac_objext conftest$ac_exeext 8644if { (ac_try="$ac_link" 8645case "(($ac_try" in 8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8647 *) ac_try_echo=$ac_try;; 8648esac 8649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8650$as_echo "$ac_try_echo") >&5 8651 (eval "$ac_link") 2>conftest.er1 8652 ac_status=$? 8653 grep -v '^ *+' conftest.er1 >conftest.err 8654 rm -f conftest.er1 8655 cat conftest.err >&5 8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8657 (exit $ac_status); } && { 8658 test -z "$ac_c_werror_flag" || 8659 test ! -s conftest.err 8660 } && test -s conftest$ac_exeext && { 8661 test "$cross_compiling" = yes || 8662 $as_test_x conftest$ac_exeext 8663 }; then 8664 8665lt_aix_libpath_sed=' 8666 /Import File Strings/,/^$/ { 8667 /^0/ { 8668 s/^0 *\(.*\)$/\1/ 8669 p 8670 } 8671 }' 8672aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8673# Check for a 64-bit object if we didn't find anything. 8674if test -z "$aix_libpath"; then 8675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8676fi 8677else 8678 $as_echo "$as_me: failed program was:" >&5 8679sed 's/^/| /' conftest.$ac_ext >&5 8680 8681 8682fi 8683 8684rm -rf conftest.dSYM 8685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8686 conftest$ac_exeext conftest.$ac_ext 8687if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8688 8689 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8690 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" 8691 else 8692 if test "$host_cpu" = ia64; then 8693 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8694 allow_undefined_flag="-z nodefs" 8695 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" 8696 else 8697 # Determine the default libpath from the value encoded in an 8698 # empty executable. 8699 cat >conftest.$ac_ext <<_ACEOF 8700/* confdefs.h. */ 8701_ACEOF 8702cat confdefs.h >>conftest.$ac_ext 8703cat >>conftest.$ac_ext <<_ACEOF 8704/* end confdefs.h. */ 8705 8706int 8707main () 8708{ 8709 8710 ; 8711 return 0; 8712} 8713_ACEOF 8714rm -f conftest.$ac_objext conftest$ac_exeext 8715if { (ac_try="$ac_link" 8716case "(($ac_try" in 8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8718 *) ac_try_echo=$ac_try;; 8719esac 8720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8721$as_echo "$ac_try_echo") >&5 8722 (eval "$ac_link") 2>conftest.er1 8723 ac_status=$? 8724 grep -v '^ *+' conftest.er1 >conftest.err 8725 rm -f conftest.er1 8726 cat conftest.err >&5 8727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8728 (exit $ac_status); } && { 8729 test -z "$ac_c_werror_flag" || 8730 test ! -s conftest.err 8731 } && test -s conftest$ac_exeext && { 8732 test "$cross_compiling" = yes || 8733 $as_test_x conftest$ac_exeext 8734 }; then 8735 8736lt_aix_libpath_sed=' 8737 /Import File Strings/,/^$/ { 8738 /^0/ { 8739 s/^0 *\(.*\)$/\1/ 8740 p 8741 } 8742 }' 8743aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8744# Check for a 64-bit object if we didn't find anything. 8745if test -z "$aix_libpath"; then 8746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8747fi 8748else 8749 $as_echo "$as_me: failed program was:" >&5 8750sed 's/^/| /' conftest.$ac_ext >&5 8751 8752 8753fi 8754 8755rm -rf conftest.dSYM 8756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8757 conftest$ac_exeext conftest.$ac_ext 8758if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8759 8760 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8761 # Warning - without using the other run time loading flags, 8762 # -berok will link without error, but may produce a broken library. 8763 no_undefined_flag=' ${wl}-bernotok' 8764 allow_undefined_flag=' ${wl}-berok' 8765 # Exported symbols can be pulled into shared objects from archives 8766 whole_archive_flag_spec='$convenience' 8767 archive_cmds_need_lc=yes 8768 # This is similar to how AIX traditionally builds its shared libraries. 8769 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' 8770 fi 8771 fi 8772 ;; 8773 8774 amigaos*) 8775 case $host_cpu in 8776 powerpc) 8777 # see comment about AmigaOS4 .so support 8778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8779 archive_expsym_cmds='' 8780 ;; 8781 m68k) 8782 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)' 8783 hardcode_libdir_flag_spec='-L$libdir' 8784 hardcode_minus_L=yes 8785 ;; 8786 esac 8787 ;; 8788 8789 bsdi[45]*) 8790 export_dynamic_flag_spec=-rdynamic 8791 ;; 8792 8793 cygwin* | mingw* | pw32* | cegcc*) 8794 # When not using gcc, we currently assume that we are using 8795 # Microsoft Visual C++. 8796 # hardcode_libdir_flag_spec is actually meaningless, as there is 8797 # no search path for DLLs. 8798 hardcode_libdir_flag_spec=' ' 8799 allow_undefined_flag=unsupported 8800 # Tell ltmain to make .lib files, not .a files. 8801 libext=lib 8802 # Tell ltmain to make .dll files, not .so files. 8803 shrext_cmds=".dll" 8804 # FIXME: Setting linknames here is a bad hack. 8805 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8806 # The linker will automatically build a .lib file if we build a DLL. 8807 old_archive_from_new_cmds='true' 8808 # FIXME: Should let the user specify the lib program. 8809 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8810 fix_srcfile_path='`cygpath -w "$srcfile"`' 8811 enable_shared_with_static_runtimes=yes 8812 ;; 8813 8814 darwin* | rhapsody*) 8815 8816 8817 archive_cmds_need_lc=no 8818 hardcode_direct=no 8819 hardcode_automatic=yes 8820 hardcode_shlibpath_var=unsupported 8821 whole_archive_flag_spec='' 8822 link_all_deplibs=yes 8823 allow_undefined_flag="$_lt_dar_allow_undefined" 8824 case $cc_basename in 8825 ifort*) _lt_dar_can_shared=yes ;; 8826 *) _lt_dar_can_shared=$GCC ;; 8827 esac 8828 if test "$_lt_dar_can_shared" = "yes"; then 8829 output_verbose_link_cmd=echo 8830 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8831 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8832 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}" 8833 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}" 8834 8835 else 8836 ld_shlibs=no 8837 fi 8838 8839 ;; 8840 8841 dgux*) 8842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8843 hardcode_libdir_flag_spec='-L$libdir' 8844 hardcode_shlibpath_var=no 8845 ;; 8846 8847 freebsd1*) 8848 ld_shlibs=no 8849 ;; 8850 8851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8852 # support. Future versions do this automatically, but an explicit c++rt0.o 8853 # does not break anything, and helps significantly (at the cost of a little 8854 # extra space). 8855 freebsd2.2*) 8856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8857 hardcode_libdir_flag_spec='-R$libdir' 8858 hardcode_direct=yes 8859 hardcode_shlibpath_var=no 8860 ;; 8861 8862 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8863 freebsd2*) 8864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8865 hardcode_direct=yes 8866 hardcode_minus_L=yes 8867 hardcode_shlibpath_var=no 8868 ;; 8869 8870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8871 freebsd* | dragonfly*) 8872 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8873 hardcode_libdir_flag_spec='-R$libdir' 8874 hardcode_direct=yes 8875 hardcode_shlibpath_var=no 8876 ;; 8877 8878 hpux9*) 8879 if test "$GCC" = yes; then 8880 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' 8881 else 8882 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' 8883 fi 8884 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8885 hardcode_libdir_separator=: 8886 hardcode_direct=yes 8887 8888 # hardcode_minus_L: Not really in the search PATH, 8889 # but as the default location of the library. 8890 hardcode_minus_L=yes 8891 export_dynamic_flag_spec='${wl}-E' 8892 ;; 8893 8894 hpux10*) 8895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8896 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8897 else 8898 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8899 fi 8900 if test "$with_gnu_ld" = no; then 8901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8902 hardcode_libdir_flag_spec_ld='+b $libdir' 8903 hardcode_libdir_separator=: 8904 hardcode_direct=yes 8905 hardcode_direct_absolute=yes 8906 export_dynamic_flag_spec='${wl}-E' 8907 # hardcode_minus_L: Not really in the search PATH, 8908 # but as the default location of the library. 8909 hardcode_minus_L=yes 8910 fi 8911 ;; 8912 8913 hpux11*) 8914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8915 case $host_cpu in 8916 hppa*64*) 8917 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8918 ;; 8919 ia64*) 8920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8921 ;; 8922 *) 8923 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8924 ;; 8925 esac 8926 else 8927 case $host_cpu in 8928 hppa*64*) 8929 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8930 ;; 8931 ia64*) 8932 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8933 ;; 8934 *) 8935 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8936 ;; 8937 esac 8938 fi 8939 if test "$with_gnu_ld" = no; then 8940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8941 hardcode_libdir_separator=: 8942 8943 case $host_cpu in 8944 hppa*64*|ia64*) 8945 hardcode_direct=no 8946 hardcode_shlibpath_var=no 8947 ;; 8948 *) 8949 hardcode_direct=yes 8950 hardcode_direct_absolute=yes 8951 export_dynamic_flag_spec='${wl}-E' 8952 8953 # hardcode_minus_L: Not really in the search PATH, 8954 # but as the default location of the library. 8955 hardcode_minus_L=yes 8956 ;; 8957 esac 8958 fi 8959 ;; 8960 8961 irix5* | irix6* | nonstopux*) 8962 if test "$GCC" = yes; then 8963 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' 8964 # Try to use the -exported_symbol ld option, if it does not 8965 # work, assume that -exports_file does not work either and 8966 # implicitly export all symbols. 8967 save_LDFLAGS="$LDFLAGS" 8968 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8969 cat >conftest.$ac_ext <<_ACEOF 8970int foo(void) {} 8971_ACEOF 8972rm -f conftest.$ac_objext conftest$ac_exeext 8973if { (ac_try="$ac_link" 8974case "(($ac_try" in 8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8976 *) ac_try_echo=$ac_try;; 8977esac 8978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8979$as_echo "$ac_try_echo") >&5 8980 (eval "$ac_link") 2>conftest.er1 8981 ac_status=$? 8982 grep -v '^ *+' conftest.er1 >conftest.err 8983 rm -f conftest.er1 8984 cat conftest.err >&5 8985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8986 (exit $ac_status); } && { 8987 test -z "$ac_c_werror_flag" || 8988 test ! -s conftest.err 8989 } && test -s conftest$ac_exeext && { 8990 test "$cross_compiling" = yes || 8991 $as_test_x conftest$ac_exeext 8992 }; then 8993 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' 8994 8995else 8996 $as_echo "$as_me: failed program was:" >&5 8997sed 's/^/| /' conftest.$ac_ext >&5 8998 8999 9000fi 9001 9002rm -rf conftest.dSYM 9003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9004 conftest$ac_exeext conftest.$ac_ext 9005 LDFLAGS="$save_LDFLAGS" 9006 else 9007 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' 9008 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' 9009 fi 9010 archive_cmds_need_lc='no' 9011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9012 hardcode_libdir_separator=: 9013 inherit_rpath=yes 9014 link_all_deplibs=yes 9015 ;; 9016 9017 netbsd* | netbsdelf*-gnu) 9018 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9020 else 9021 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9022 fi 9023 hardcode_libdir_flag_spec='-R$libdir' 9024 hardcode_direct=yes 9025 hardcode_shlibpath_var=no 9026 ;; 9027 9028 newsos6) 9029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9030 hardcode_direct=yes 9031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9032 hardcode_libdir_separator=: 9033 hardcode_shlibpath_var=no 9034 ;; 9035 9036 *nto* | *qnx*) 9037 ;; 9038 9039 openbsd*) 9040 if test -f /usr/libexec/ld.so; then 9041 hardcode_direct=yes 9042 hardcode_shlibpath_var=no 9043 hardcode_direct_absolute=yes 9044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9045 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9046 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9047 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9048 export_dynamic_flag_spec='${wl}-E' 9049 else 9050 case $host_os in 9051 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9053 hardcode_libdir_flag_spec='-R$libdir' 9054 ;; 9055 *) 9056 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9057 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9058 ;; 9059 esac 9060 fi 9061 else 9062 ld_shlibs=no 9063 fi 9064 ;; 9065 9066 os2*) 9067 hardcode_libdir_flag_spec='-L$libdir' 9068 hardcode_minus_L=yes 9069 allow_undefined_flag=unsupported 9070 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' 9071 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9072 ;; 9073 9074 osf3*) 9075 if test "$GCC" = yes; then 9076 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9077 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' 9078 else 9079 allow_undefined_flag=' -expect_unresolved \*' 9080 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' 9081 fi 9082 archive_cmds_need_lc='no' 9083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9084 hardcode_libdir_separator=: 9085 ;; 9086 9087 osf4* | osf5*) # as osf3* with the addition of -msym flag 9088 if test "$GCC" = yes; then 9089 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9090 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' 9091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9092 else 9093 allow_undefined_flag=' -expect_unresolved \*' 9094 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' 9095 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~ 9096 $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' 9097 9098 # Both c and cxx compiler support -rpath directly 9099 hardcode_libdir_flag_spec='-rpath $libdir' 9100 fi 9101 archive_cmds_need_lc='no' 9102 hardcode_libdir_separator=: 9103 ;; 9104 9105 solaris*) 9106 no_undefined_flag=' -z defs' 9107 if test "$GCC" = yes; then 9108 wlarc='${wl}' 9109 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9110 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9111 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9112 else 9113 case `$CC -V 2>&1` in 9114 *"Compilers 5.0"*) 9115 wlarc='' 9116 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9117 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9118 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9119 ;; 9120 *) 9121 wlarc='${wl}' 9122 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9123 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9124 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9125 ;; 9126 esac 9127 fi 9128 hardcode_libdir_flag_spec='-R$libdir' 9129 hardcode_shlibpath_var=no 9130 case $host_os in 9131 solaris2.[0-5] | solaris2.[0-5].*) ;; 9132 *) 9133 # The compiler driver will combine and reorder linker options, 9134 # but understands `-z linker_flag'. GCC discards it without `$wl', 9135 # but is careful enough not to reorder. 9136 # Supported since Solaris 2.6 (maybe 2.5.1?) 9137 if test "$GCC" = yes; then 9138 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9139 else 9140 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9141 fi 9142 ;; 9143 esac 9144 link_all_deplibs=yes 9145 ;; 9146 9147 sunos4*) 9148 if test "x$host_vendor" = xsequent; then 9149 # Use $CC to link under sequent, because it throws in some extra .o 9150 # files that make .init and .fini sections work. 9151 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9152 else 9153 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9154 fi 9155 hardcode_libdir_flag_spec='-L$libdir' 9156 hardcode_direct=yes 9157 hardcode_minus_L=yes 9158 hardcode_shlibpath_var=no 9159 ;; 9160 9161 sysv4) 9162 case $host_vendor in 9163 sni) 9164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9165 hardcode_direct=yes # is this really true??? 9166 ;; 9167 siemens) 9168 ## LD is ld it makes a PLAMLIB 9169 ## CC just makes a GrossModule. 9170 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9171 reload_cmds='$CC -r -o $output$reload_objs' 9172 hardcode_direct=no 9173 ;; 9174 motorola) 9175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9176 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9177 ;; 9178 esac 9179 runpath_var='LD_RUN_PATH' 9180 hardcode_shlibpath_var=no 9181 ;; 9182 9183 sysv4.3*) 9184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9185 hardcode_shlibpath_var=no 9186 export_dynamic_flag_spec='-Bexport' 9187 ;; 9188 9189 sysv4*MP*) 9190 if test -d /usr/nec; then 9191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9192 hardcode_shlibpath_var=no 9193 runpath_var=LD_RUN_PATH 9194 hardcode_runpath_var=yes 9195 ld_shlibs=yes 9196 fi 9197 ;; 9198 9199 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9200 no_undefined_flag='${wl}-z,text' 9201 archive_cmds_need_lc=no 9202 hardcode_shlibpath_var=no 9203 runpath_var='LD_RUN_PATH' 9204 9205 if test "$GCC" = yes; then 9206 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9207 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9208 else 9209 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9210 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9211 fi 9212 ;; 9213 9214 sysv5* | sco3.2v5* | sco5v6*) 9215 # Note: We can NOT use -z defs as we might desire, because we do not 9216 # link with -lc, and that would cause any symbols used from libc to 9217 # always be unresolved, which means just about no library would 9218 # ever link correctly. If we're not using GNU ld we use -z text 9219 # though, which does catch some bad symbols but isn't as heavy-handed 9220 # as -z defs. 9221 no_undefined_flag='${wl}-z,text' 9222 allow_undefined_flag='${wl}-z,nodefs' 9223 archive_cmds_need_lc=no 9224 hardcode_shlibpath_var=no 9225 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9226 hardcode_libdir_separator=':' 9227 link_all_deplibs=yes 9228 export_dynamic_flag_spec='${wl}-Bexport' 9229 runpath_var='LD_RUN_PATH' 9230 9231 if test "$GCC" = yes; then 9232 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9233 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9234 else 9235 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9236 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9237 fi 9238 ;; 9239 9240 uts4*) 9241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9242 hardcode_libdir_flag_spec='-L$libdir' 9243 hardcode_shlibpath_var=no 9244 ;; 9245 9246 *) 9247 ld_shlibs=no 9248 ;; 9249 esac 9250 9251 if test x$host_vendor = xsni; then 9252 case $host in 9253 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9254 export_dynamic_flag_spec='${wl}-Blargedynsym' 9255 ;; 9256 esac 9257 fi 9258 fi 9259 9260{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9261$as_echo "$ld_shlibs" >&6; } 9262test "$ld_shlibs" = no && can_build_shared=no 9263 9264with_gnu_ld=$with_gnu_ld 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280# 9281# Do we need to explicitly link libc? 9282# 9283case "x$archive_cmds_need_lc" in 9284x|xyes) 9285 # Assume -lc should be added 9286 archive_cmds_need_lc=yes 9287 9288 if test "$enable_shared" = yes && test "$GCC" = yes; then 9289 case $archive_cmds in 9290 *'~'*) 9291 # FIXME: we may have to deal with multi-command sequences. 9292 ;; 9293 '$CC '*) 9294 # Test whether the compiler implicitly links with -lc since on some 9295 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9296 # to ld, don't add -lc before -lgcc. 9297 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9298$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9299 $RM conftest* 9300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9301 9302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9303 (eval $ac_compile) 2>&5 9304 ac_status=$? 9305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9306 (exit $ac_status); } 2>conftest.err; then 9307 soname=conftest 9308 lib=conftest 9309 libobjs=conftest.$ac_objext 9310 deplibs= 9311 wl=$lt_prog_compiler_wl 9312 pic_flag=$lt_prog_compiler_pic 9313 compiler_flags=-v 9314 linker_flags=-v 9315 verstring= 9316 output_objdir=. 9317 libname=conftest 9318 lt_save_allow_undefined_flag=$allow_undefined_flag 9319 allow_undefined_flag= 9320 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9321 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9322 ac_status=$? 9323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9324 (exit $ac_status); } 9325 then 9326 archive_cmds_need_lc=no 9327 else 9328 archive_cmds_need_lc=yes 9329 fi 9330 allow_undefined_flag=$lt_save_allow_undefined_flag 9331 else 9332 cat conftest.err 1>&5 9333 fi 9334 $RM conftest* 9335 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9336$as_echo "$archive_cmds_need_lc" >&6; } 9337 ;; 9338 esac 9339 fi 9340 ;; 9341esac 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 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9500$as_echo_n "checking dynamic linker characteristics... " >&6; } 9501 9502if test "$GCC" = yes; then 9503 case $host_os in 9504 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9505 *) lt_awk_arg="/^libraries:/" ;; 9506 esac 9507 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9508 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9509 # if the path contains ";" then we assume it to be the separator 9510 # otherwise default to the standard path separator (i.e. ":") - it is 9511 # assumed that no part of a normal pathname contains ";" but that should 9512 # okay in the real world where ";" in dirpaths is itself problematic. 9513 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9514 else 9515 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9516 fi 9517 # Ok, now we have the path, separated by spaces, we can step through it 9518 # and add multilib dir if necessary. 9519 lt_tmp_lt_search_path_spec= 9520 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9521 for lt_sys_path in $lt_search_path_spec; do 9522 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9523 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9524 else 9525 test -d "$lt_sys_path" && \ 9526 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9527 fi 9528 done 9529 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9530BEGIN {RS=" "; FS="/|\n";} { 9531 lt_foo=""; 9532 lt_count=0; 9533 for (lt_i = NF; lt_i > 0; lt_i--) { 9534 if ($lt_i != "" && $lt_i != ".") { 9535 if ($lt_i == "..") { 9536 lt_count++; 9537 } else { 9538 if (lt_count == 0) { 9539 lt_foo="/" $lt_i lt_foo; 9540 } else { 9541 lt_count--; 9542 } 9543 } 9544 } 9545 } 9546 if (lt_foo != "") { lt_freq[lt_foo]++; } 9547 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9548}'` 9549 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9550else 9551 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9552fi 9553library_names_spec= 9554libname_spec='lib$name' 9555soname_spec= 9556shrext_cmds=".so" 9557postinstall_cmds= 9558postuninstall_cmds= 9559finish_cmds= 9560finish_eval= 9561shlibpath_var= 9562shlibpath_overrides_runpath=unknown 9563version_type=none 9564dynamic_linker="$host_os ld.so" 9565sys_lib_dlsearch_path_spec="/lib /usr/lib" 9566need_lib_prefix=unknown 9567hardcode_into_libs=no 9568 9569# when you set need_version to no, make sure it does not cause -set_version 9570# flags to be left without arguments 9571need_version=unknown 9572 9573case $host_os in 9574aix3*) 9575 version_type=linux 9576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9577 shlibpath_var=LIBPATH 9578 9579 # AIX 3 has no versioning support, so we append a major version to the name. 9580 soname_spec='${libname}${release}${shared_ext}$major' 9581 ;; 9582 9583aix[4-9]*) 9584 version_type=linux 9585 need_lib_prefix=no 9586 need_version=no 9587 hardcode_into_libs=yes 9588 if test "$host_cpu" = ia64; then 9589 # AIX 5 supports IA64 9590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9591 shlibpath_var=LD_LIBRARY_PATH 9592 else 9593 # With GCC up to 2.95.x, collect2 would create an import file 9594 # for dependence libraries. The import file would start with 9595 # the line `#! .'. This would cause the generated library to 9596 # depend on `.', always an invalid library. This was fixed in 9597 # development snapshots of GCC prior to 3.0. 9598 case $host_os in 9599 aix4 | aix4.[01] | aix4.[01].*) 9600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9601 echo ' yes ' 9602 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9603 : 9604 else 9605 can_build_shared=no 9606 fi 9607 ;; 9608 esac 9609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9610 # soname into executable. Probably we can add versioning support to 9611 # collect2, so additional links can be useful in future. 9612 if test "$aix_use_runtimelinking" = yes; then 9613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9614 # instead of lib<name>.a to let people know that these are not 9615 # typical AIX shared libraries. 9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9617 else 9618 # We preserve .a as extension for shared libraries through AIX4.2 9619 # and later when we are not doing run time linking. 9620 library_names_spec='${libname}${release}.a $libname.a' 9621 soname_spec='${libname}${release}${shared_ext}$major' 9622 fi 9623 shlibpath_var=LIBPATH 9624 fi 9625 ;; 9626 9627amigaos*) 9628 case $host_cpu in 9629 powerpc) 9630 # Since July 2007 AmigaOS4 officially supports .so libraries. 9631 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9633 ;; 9634 m68k) 9635 library_names_spec='$libname.ixlibrary $libname.a' 9636 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9637 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' 9638 ;; 9639 esac 9640 ;; 9641 9642beos*) 9643 library_names_spec='${libname}${shared_ext}' 9644 dynamic_linker="$host_os ld.so" 9645 shlibpath_var=LIBRARY_PATH 9646 ;; 9647 9648bsdi[45]*) 9649 version_type=linux 9650 need_version=no 9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9652 soname_spec='${libname}${release}${shared_ext}$major' 9653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9654 shlibpath_var=LD_LIBRARY_PATH 9655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9657 # the default ld.so.conf also contains /usr/contrib/lib and 9658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9659 # libtool to hard-code these into programs 9660 ;; 9661 9662cygwin* | mingw* | pw32* | cegcc*) 9663 version_type=windows 9664 shrext_cmds=".dll" 9665 need_version=no 9666 need_lib_prefix=no 9667 9668 case $GCC,$host_os in 9669 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9670 library_names_spec='$libname.dll.a' 9671 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9672 postinstall_cmds='base_file=`basename \${file}`~ 9673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9674 dldir=$destdir/`dirname \$dlpath`~ 9675 test -d \$dldir || mkdir -p \$dldir~ 9676 $install_prog $dir/$dlname \$dldir/$dlname~ 9677 chmod a+x \$dldir/$dlname~ 9678 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9679 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9680 fi' 9681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9682 dlpath=$dir/\$dldll~ 9683 $RM \$dlpath' 9684 shlibpath_overrides_runpath=yes 9685 9686 case $host_os in 9687 cygwin*) 9688 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9690 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9691 ;; 9692 mingw* | cegcc*) 9693 # MinGW DLLs use traditional 'lib' prefix 9694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9695 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9696 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9697 # It is most probably a Windows format PATH printed by 9698 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9699 # path with ; separators, and with drive letters. We can handle the 9700 # drive letters (cygwin fileutils understands them), so leave them, 9701 # especially as we might pass files found there to a mingw objdump, 9702 # which wouldn't understand a cygwinified path. Ahh. 9703 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9704 else 9705 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9706 fi 9707 ;; 9708 pw32*) 9709 # pw32 DLLs use 'pw' prefix rather than 'lib' 9710 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9711 ;; 9712 esac 9713 ;; 9714 9715 *) 9716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9717 ;; 9718 esac 9719 dynamic_linker='Win32 ld.exe' 9720 # FIXME: first we should search . and the directory the executable is in 9721 shlibpath_var=PATH 9722 ;; 9723 9724darwin* | rhapsody*) 9725 dynamic_linker="$host_os dyld" 9726 version_type=darwin 9727 need_lib_prefix=no 9728 need_version=no 9729 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9730 soname_spec='${libname}${release}${major}$shared_ext' 9731 shlibpath_overrides_runpath=yes 9732 shlibpath_var=DYLD_LIBRARY_PATH 9733 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9734 9735 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9737 ;; 9738 9739dgux*) 9740 version_type=linux 9741 need_lib_prefix=no 9742 need_version=no 9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9744 soname_spec='${libname}${release}${shared_ext}$major' 9745 shlibpath_var=LD_LIBRARY_PATH 9746 ;; 9747 9748freebsd1*) 9749 dynamic_linker=no 9750 ;; 9751 9752freebsd* | dragonfly*) 9753 # DragonFly does not have aout. When/if they implement a new 9754 # versioning mechanism, adjust this. 9755 if test -x /usr/bin/objformat; then 9756 objformat=`/usr/bin/objformat` 9757 else 9758 case $host_os in 9759 freebsd[123]*) objformat=aout ;; 9760 *) objformat=elf ;; 9761 esac 9762 fi 9763 version_type=freebsd-$objformat 9764 case $version_type in 9765 freebsd-elf*) 9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9767 need_version=no 9768 need_lib_prefix=no 9769 ;; 9770 freebsd-*) 9771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9772 need_version=yes 9773 ;; 9774 esac 9775 shlibpath_var=LD_LIBRARY_PATH 9776 case $host_os in 9777 freebsd2*) 9778 shlibpath_overrides_runpath=yes 9779 ;; 9780 freebsd3.[01]* | freebsdelf3.[01]*) 9781 shlibpath_overrides_runpath=yes 9782 hardcode_into_libs=yes 9783 ;; 9784 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9785 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9786 shlibpath_overrides_runpath=no 9787 hardcode_into_libs=yes 9788 ;; 9789 *) # from 4.6 on, and DragonFly 9790 shlibpath_overrides_runpath=yes 9791 hardcode_into_libs=yes 9792 ;; 9793 esac 9794 ;; 9795 9796gnu*) 9797 version_type=linux 9798 need_lib_prefix=no 9799 need_version=no 9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9801 soname_spec='${libname}${release}${shared_ext}$major' 9802 shlibpath_var=LD_LIBRARY_PATH 9803 hardcode_into_libs=yes 9804 ;; 9805 9806hpux9* | hpux10* | hpux11*) 9807 # Give a soname corresponding to the major version so that dld.sl refuses to 9808 # link against other versions. 9809 version_type=sunos 9810 need_lib_prefix=no 9811 need_version=no 9812 case $host_cpu in 9813 ia64*) 9814 shrext_cmds='.so' 9815 hardcode_into_libs=yes 9816 dynamic_linker="$host_os dld.so" 9817 shlibpath_var=LD_LIBRARY_PATH 9818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9820 soname_spec='${libname}${release}${shared_ext}$major' 9821 if test "X$HPUX_IA64_MODE" = X32; then 9822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9823 else 9824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9825 fi 9826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9827 ;; 9828 hppa*64*) 9829 shrext_cmds='.sl' 9830 hardcode_into_libs=yes 9831 dynamic_linker="$host_os dld.sl" 9832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9835 soname_spec='${libname}${release}${shared_ext}$major' 9836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9838 ;; 9839 *) 9840 shrext_cmds='.sl' 9841 dynamic_linker="$host_os dld.sl" 9842 shlibpath_var=SHLIB_PATH 9843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9845 soname_spec='${libname}${release}${shared_ext}$major' 9846 ;; 9847 esac 9848 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9849 postinstall_cmds='chmod 555 $lib' 9850 ;; 9851 9852interix[3-9]*) 9853 version_type=linux 9854 need_lib_prefix=no 9855 need_version=no 9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9857 soname_spec='${libname}${release}${shared_ext}$major' 9858 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9859 shlibpath_var=LD_LIBRARY_PATH 9860 shlibpath_overrides_runpath=no 9861 hardcode_into_libs=yes 9862 ;; 9863 9864irix5* | irix6* | nonstopux*) 9865 case $host_os in 9866 nonstopux*) version_type=nonstopux ;; 9867 *) 9868 if test "$lt_cv_prog_gnu_ld" = yes; then 9869 version_type=linux 9870 else 9871 version_type=irix 9872 fi ;; 9873 esac 9874 need_lib_prefix=no 9875 need_version=no 9876 soname_spec='${libname}${release}${shared_ext}$major' 9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9878 case $host_os in 9879 irix5* | nonstopux*) 9880 libsuff= shlibsuff= 9881 ;; 9882 *) 9883 case $LD in # libtool.m4 will add one of these switches to LD 9884 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9885 libsuff= shlibsuff= libmagic=32-bit;; 9886 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9887 libsuff=32 shlibsuff=N32 libmagic=N32;; 9888 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9889 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9890 *) libsuff= shlibsuff= libmagic=never-match;; 9891 esac 9892 ;; 9893 esac 9894 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9895 shlibpath_overrides_runpath=no 9896 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9897 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9898 hardcode_into_libs=yes 9899 ;; 9900 9901# No shared lib support for Linux oldld, aout, or coff. 9902linux*oldld* | linux*aout* | linux*coff*) 9903 dynamic_linker=no 9904 ;; 9905 9906# This must be Linux ELF. 9907linux* | k*bsd*-gnu) 9908 version_type=linux 9909 need_lib_prefix=no 9910 need_version=no 9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9912 soname_spec='${libname}${release}${shared_ext}$major' 9913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9914 shlibpath_var=LD_LIBRARY_PATH 9915 shlibpath_overrides_runpath=no 9916 # Some binutils ld are patched to set DT_RUNPATH 9917 save_LDFLAGS=$LDFLAGS 9918 save_libdir=$libdir 9919 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9920 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9921 cat >conftest.$ac_ext <<_ACEOF 9922/* confdefs.h. */ 9923_ACEOF 9924cat confdefs.h >>conftest.$ac_ext 9925cat >>conftest.$ac_ext <<_ACEOF 9926/* end confdefs.h. */ 9927 9928int 9929main () 9930{ 9931 9932 ; 9933 return 0; 9934} 9935_ACEOF 9936rm -f conftest.$ac_objext conftest$ac_exeext 9937if { (ac_try="$ac_link" 9938case "(($ac_try" in 9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9940 *) ac_try_echo=$ac_try;; 9941esac 9942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9943$as_echo "$ac_try_echo") >&5 9944 (eval "$ac_link") 2>conftest.er1 9945 ac_status=$? 9946 grep -v '^ *+' conftest.er1 >conftest.err 9947 rm -f conftest.er1 9948 cat conftest.err >&5 9949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9950 (exit $ac_status); } && { 9951 test -z "$ac_c_werror_flag" || 9952 test ! -s conftest.err 9953 } && test -s conftest$ac_exeext && { 9954 test "$cross_compiling" = yes || 9955 $as_test_x conftest$ac_exeext 9956 }; then 9957 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9958 shlibpath_overrides_runpath=yes 9959fi 9960 9961else 9962 $as_echo "$as_me: failed program was:" >&5 9963sed 's/^/| /' conftest.$ac_ext >&5 9964 9965 9966fi 9967 9968rm -rf conftest.dSYM 9969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9970 conftest$ac_exeext conftest.$ac_ext 9971 LDFLAGS=$save_LDFLAGS 9972 libdir=$save_libdir 9973 9974 # This implies no fast_install, which is unacceptable. 9975 # Some rework will be needed to allow for fast_install 9976 # before this can be enabled. 9977 hardcode_into_libs=yes 9978 9979 # Append ld.so.conf contents to the search path 9980 if test -f /etc/ld.so.conf; then 9981 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' ' '` 9982 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9983 fi 9984 9985 # We used to test for /lib/ld.so.1 and disable shared libraries on 9986 # powerpc, because MkLinux only supported shared libraries with the 9987 # GNU dynamic linker. Since this was broken with cross compilers, 9988 # most powerpc-linux boxes support dynamic linking these days and 9989 # people can always --disable-shared, the test was removed, and we 9990 # assume the GNU/Linux dynamic linker is in use. 9991 dynamic_linker='GNU/Linux ld.so' 9992 ;; 9993 9994netbsdelf*-gnu) 9995 version_type=linux 9996 need_lib_prefix=no 9997 need_version=no 9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9999 soname_spec='${libname}${release}${shared_ext}$major' 10000 shlibpath_var=LD_LIBRARY_PATH 10001 shlibpath_overrides_runpath=no 10002 hardcode_into_libs=yes 10003 dynamic_linker='NetBSD ld.elf_so' 10004 ;; 10005 10006netbsd*) 10007 version_type=sunos 10008 need_lib_prefix=no 10009 need_version=no 10010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10013 dynamic_linker='NetBSD (a.out) ld.so' 10014 else 10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10016 soname_spec='${libname}${release}${shared_ext}$major' 10017 dynamic_linker='NetBSD ld.elf_so' 10018 fi 10019 shlibpath_var=LD_LIBRARY_PATH 10020 shlibpath_overrides_runpath=yes 10021 hardcode_into_libs=yes 10022 ;; 10023 10024newsos6) 10025 version_type=linux 10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10027 shlibpath_var=LD_LIBRARY_PATH 10028 shlibpath_overrides_runpath=yes 10029 ;; 10030 10031*nto* | *qnx*) 10032 version_type=qnx 10033 need_lib_prefix=no 10034 need_version=no 10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10036 soname_spec='${libname}${release}${shared_ext}$major' 10037 shlibpath_var=LD_LIBRARY_PATH 10038 shlibpath_overrides_runpath=no 10039 hardcode_into_libs=yes 10040 dynamic_linker='ldqnx.so' 10041 ;; 10042 10043openbsd*) 10044 version_type=sunos 10045 sys_lib_dlsearch_path_spec="/usr/lib" 10046 need_lib_prefix=no 10047 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10048 case $host_os in 10049 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10050 *) need_version=no ;; 10051 esac 10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10054 shlibpath_var=LD_LIBRARY_PATH 10055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10056 case $host_os in 10057 openbsd2.[89] | openbsd2.[89].*) 10058 shlibpath_overrides_runpath=no 10059 ;; 10060 *) 10061 shlibpath_overrides_runpath=yes 10062 ;; 10063 esac 10064 else 10065 shlibpath_overrides_runpath=yes 10066 fi 10067 ;; 10068 10069os2*) 10070 libname_spec='$name' 10071 shrext_cmds=".dll" 10072 need_lib_prefix=no 10073 library_names_spec='$libname${shared_ext} $libname.a' 10074 dynamic_linker='OS/2 ld.exe' 10075 shlibpath_var=LIBPATH 10076 ;; 10077 10078osf3* | osf4* | osf5*) 10079 version_type=osf 10080 need_lib_prefix=no 10081 need_version=no 10082 soname_spec='${libname}${release}${shared_ext}$major' 10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10084 shlibpath_var=LD_LIBRARY_PATH 10085 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10086 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10087 ;; 10088 10089rdos*) 10090 dynamic_linker=no 10091 ;; 10092 10093solaris*) 10094 version_type=linux 10095 need_lib_prefix=no 10096 need_version=no 10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10098 soname_spec='${libname}${release}${shared_ext}$major' 10099 shlibpath_var=LD_LIBRARY_PATH 10100 shlibpath_overrides_runpath=yes 10101 hardcode_into_libs=yes 10102 # ldd complains unless libraries are executable 10103 postinstall_cmds='chmod +x $lib' 10104 ;; 10105 10106sunos4*) 10107 version_type=sunos 10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10109 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10110 shlibpath_var=LD_LIBRARY_PATH 10111 shlibpath_overrides_runpath=yes 10112 if test "$with_gnu_ld" = yes; then 10113 need_lib_prefix=no 10114 fi 10115 need_version=yes 10116 ;; 10117 10118sysv4 | sysv4.3*) 10119 version_type=linux 10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10121 soname_spec='${libname}${release}${shared_ext}$major' 10122 shlibpath_var=LD_LIBRARY_PATH 10123 case $host_vendor in 10124 sni) 10125 shlibpath_overrides_runpath=no 10126 need_lib_prefix=no 10127 runpath_var=LD_RUN_PATH 10128 ;; 10129 siemens) 10130 need_lib_prefix=no 10131 ;; 10132 motorola) 10133 need_lib_prefix=no 10134 need_version=no 10135 shlibpath_overrides_runpath=no 10136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10137 ;; 10138 esac 10139 ;; 10140 10141sysv4*MP*) 10142 if test -d /usr/nec ;then 10143 version_type=linux 10144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10145 soname_spec='$libname${shared_ext}.$major' 10146 shlibpath_var=LD_LIBRARY_PATH 10147 fi 10148 ;; 10149 10150sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10151 version_type=freebsd-elf 10152 need_lib_prefix=no 10153 need_version=no 10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10155 soname_spec='${libname}${release}${shared_ext}$major' 10156 shlibpath_var=LD_LIBRARY_PATH 10157 shlibpath_overrides_runpath=yes 10158 hardcode_into_libs=yes 10159 if test "$with_gnu_ld" = yes; then 10160 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10161 else 10162 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10163 case $host_os in 10164 sco3.2v5*) 10165 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10166 ;; 10167 esac 10168 fi 10169 sys_lib_dlsearch_path_spec='/usr/lib' 10170 ;; 10171 10172tpf*) 10173 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10174 version_type=linux 10175 need_lib_prefix=no 10176 need_version=no 10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10178 shlibpath_var=LD_LIBRARY_PATH 10179 shlibpath_overrides_runpath=no 10180 hardcode_into_libs=yes 10181 ;; 10182 10183uts4*) 10184 version_type=linux 10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10186 soname_spec='${libname}${release}${shared_ext}$major' 10187 shlibpath_var=LD_LIBRARY_PATH 10188 ;; 10189 10190*) 10191 dynamic_linker=no 10192 ;; 10193esac 10194{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10195$as_echo "$dynamic_linker" >&6; } 10196test "$dynamic_linker" = no && can_build_shared=no 10197 10198variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10199if test "$GCC" = yes; then 10200 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10201fi 10202 10203if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10204 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10205fi 10206if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10207 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10208fi 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10297$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10298hardcode_action= 10299if test -n "$hardcode_libdir_flag_spec" || 10300 test -n "$runpath_var" || 10301 test "X$hardcode_automatic" = "Xyes" ; then 10302 10303 # We can hardcode non-existent directories. 10304 if test "$hardcode_direct" != no && 10305 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10306 # have to relink, otherwise we might link with an installed library 10307 # when we should be linking with a yet-to-be-installed one 10308 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10309 test "$hardcode_minus_L" != no; then 10310 # Linking always hardcodes the temporary library directory. 10311 hardcode_action=relink 10312 else 10313 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10314 hardcode_action=immediate 10315 fi 10316else 10317 # We cannot hardcode anything, or else we can only hardcode existing 10318 # directories. 10319 hardcode_action=unsupported 10320fi 10321{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10322$as_echo "$hardcode_action" >&6; } 10323 10324if test "$hardcode_action" = relink || 10325 test "$inherit_rpath" = yes; then 10326 # Fast installation is not supported 10327 enable_fast_install=no 10328elif test "$shlibpath_overrides_runpath" = yes || 10329 test "$enable_shared" = no; then 10330 # Fast installation is not necessary 10331 enable_fast_install=needless 10332fi 10333 10334 10335 10336 10337 10338 10339 if test "x$enable_dlopen" != xyes; then 10340 enable_dlopen=unknown 10341 enable_dlopen_self=unknown 10342 enable_dlopen_self_static=unknown 10343else 10344 lt_cv_dlopen=no 10345 lt_cv_dlopen_libs= 10346 10347 case $host_os in 10348 beos*) 10349 lt_cv_dlopen="load_add_on" 10350 lt_cv_dlopen_libs= 10351 lt_cv_dlopen_self=yes 10352 ;; 10353 10354 mingw* | pw32* | cegcc*) 10355 lt_cv_dlopen="LoadLibrary" 10356 lt_cv_dlopen_libs= 10357 ;; 10358 10359 cygwin*) 10360 lt_cv_dlopen="dlopen" 10361 lt_cv_dlopen_libs= 10362 ;; 10363 10364 darwin*) 10365 # if libdl is installed we need to link against it 10366 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10367$as_echo_n "checking for dlopen in -ldl... " >&6; } 10368if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10369 $as_echo_n "(cached) " >&6 10370else 10371 ac_check_lib_save_LIBS=$LIBS 10372LIBS="-ldl $LIBS" 10373cat >conftest.$ac_ext <<_ACEOF 10374/* confdefs.h. */ 10375_ACEOF 10376cat confdefs.h >>conftest.$ac_ext 10377cat >>conftest.$ac_ext <<_ACEOF 10378/* end confdefs.h. */ 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 dlopen (); 10387int 10388main () 10389{ 10390return dlopen (); 10391 ; 10392 return 0; 10393} 10394_ACEOF 10395rm -f conftest.$ac_objext conftest$ac_exeext 10396if { (ac_try="$ac_link" 10397case "(($ac_try" in 10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10399 *) ac_try_echo=$ac_try;; 10400esac 10401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10402$as_echo "$ac_try_echo") >&5 10403 (eval "$ac_link") 2>conftest.er1 10404 ac_status=$? 10405 grep -v '^ *+' conftest.er1 >conftest.err 10406 rm -f conftest.er1 10407 cat conftest.err >&5 10408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10409 (exit $ac_status); } && { 10410 test -z "$ac_c_werror_flag" || 10411 test ! -s conftest.err 10412 } && test -s conftest$ac_exeext && { 10413 test "$cross_compiling" = yes || 10414 $as_test_x conftest$ac_exeext 10415 }; then 10416 ac_cv_lib_dl_dlopen=yes 10417else 10418 $as_echo "$as_me: failed program was:" >&5 10419sed 's/^/| /' conftest.$ac_ext >&5 10420 10421 ac_cv_lib_dl_dlopen=no 10422fi 10423 10424rm -rf conftest.dSYM 10425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10426 conftest$ac_exeext conftest.$ac_ext 10427LIBS=$ac_check_lib_save_LIBS 10428fi 10429{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10430$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10431if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10433else 10434 10435 lt_cv_dlopen="dyld" 10436 lt_cv_dlopen_libs= 10437 lt_cv_dlopen_self=yes 10438 10439fi 10440 10441 ;; 10442 10443 *) 10444 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10445$as_echo_n "checking for shl_load... " >&6; } 10446if test "${ac_cv_func_shl_load+set}" = set; then 10447 $as_echo_n "(cached) " >&6 10448else 10449 cat >conftest.$ac_ext <<_ACEOF 10450/* confdefs.h. */ 10451_ACEOF 10452cat confdefs.h >>conftest.$ac_ext 10453cat >>conftest.$ac_ext <<_ACEOF 10454/* end confdefs.h. */ 10455/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10456 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10457#define shl_load innocuous_shl_load 10458 10459/* System header to define __stub macros and hopefully few prototypes, 10460 which can conflict with char shl_load (); below. 10461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10462 <limits.h> exists even on freestanding compilers. */ 10463 10464#ifdef __STDC__ 10465# include <limits.h> 10466#else 10467# include <assert.h> 10468#endif 10469 10470#undef shl_load 10471 10472/* Override any GCC internal prototype to avoid an error. 10473 Use char because int might match the return type of a GCC 10474 builtin and then its argument prototype would still apply. */ 10475#ifdef __cplusplus 10476extern "C" 10477#endif 10478char shl_load (); 10479/* The GNU C library defines this for functions which it implements 10480 to always fail with ENOSYS. Some functions are actually named 10481 something starting with __ and the normal name is an alias. */ 10482#if defined __stub_shl_load || defined __stub___shl_load 10483choke me 10484#endif 10485 10486int 10487main () 10488{ 10489return shl_load (); 10490 ; 10491 return 0; 10492} 10493_ACEOF 10494rm -f conftest.$ac_objext conftest$ac_exeext 10495if { (ac_try="$ac_link" 10496case "(($ac_try" in 10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10498 *) ac_try_echo=$ac_try;; 10499esac 10500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10501$as_echo "$ac_try_echo") >&5 10502 (eval "$ac_link") 2>conftest.er1 10503 ac_status=$? 10504 grep -v '^ *+' conftest.er1 >conftest.err 10505 rm -f conftest.er1 10506 cat conftest.err >&5 10507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10508 (exit $ac_status); } && { 10509 test -z "$ac_c_werror_flag" || 10510 test ! -s conftest.err 10511 } && test -s conftest$ac_exeext && { 10512 test "$cross_compiling" = yes || 10513 $as_test_x conftest$ac_exeext 10514 }; then 10515 ac_cv_func_shl_load=yes 10516else 10517 $as_echo "$as_me: failed program was:" >&5 10518sed 's/^/| /' conftest.$ac_ext >&5 10519 10520 ac_cv_func_shl_load=no 10521fi 10522 10523rm -rf conftest.dSYM 10524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10525 conftest$ac_exeext conftest.$ac_ext 10526fi 10527{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10528$as_echo "$ac_cv_func_shl_load" >&6; } 10529if test "x$ac_cv_func_shl_load" = x""yes; then 10530 lt_cv_dlopen="shl_load" 10531else 10532 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10533$as_echo_n "checking for shl_load in -ldld... " >&6; } 10534if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10535 $as_echo_n "(cached) " >&6 10536else 10537 ac_check_lib_save_LIBS=$LIBS 10538LIBS="-ldld $LIBS" 10539cat >conftest.$ac_ext <<_ACEOF 10540/* confdefs.h. */ 10541_ACEOF 10542cat confdefs.h >>conftest.$ac_ext 10543cat >>conftest.$ac_ext <<_ACEOF 10544/* end confdefs.h. */ 10545 10546/* Override any GCC internal prototype to avoid an error. 10547 Use char because int might match the return type of a GCC 10548 builtin and then its argument prototype would still apply. */ 10549#ifdef __cplusplus 10550extern "C" 10551#endif 10552char shl_load (); 10553int 10554main () 10555{ 10556return shl_load (); 10557 ; 10558 return 0; 10559} 10560_ACEOF 10561rm -f conftest.$ac_objext conftest$ac_exeext 10562if { (ac_try="$ac_link" 10563case "(($ac_try" in 10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10565 *) ac_try_echo=$ac_try;; 10566esac 10567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10568$as_echo "$ac_try_echo") >&5 10569 (eval "$ac_link") 2>conftest.er1 10570 ac_status=$? 10571 grep -v '^ *+' conftest.er1 >conftest.err 10572 rm -f conftest.er1 10573 cat conftest.err >&5 10574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10575 (exit $ac_status); } && { 10576 test -z "$ac_c_werror_flag" || 10577 test ! -s conftest.err 10578 } && test -s conftest$ac_exeext && { 10579 test "$cross_compiling" = yes || 10580 $as_test_x conftest$ac_exeext 10581 }; then 10582 ac_cv_lib_dld_shl_load=yes 10583else 10584 $as_echo "$as_me: failed program was:" >&5 10585sed 's/^/| /' conftest.$ac_ext >&5 10586 10587 ac_cv_lib_dld_shl_load=no 10588fi 10589 10590rm -rf conftest.dSYM 10591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10592 conftest$ac_exeext conftest.$ac_ext 10593LIBS=$ac_check_lib_save_LIBS 10594fi 10595{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10596$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10597if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10598 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10599else 10600 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10601$as_echo_n "checking for dlopen... " >&6; } 10602if test "${ac_cv_func_dlopen+set}" = set; then 10603 $as_echo_n "(cached) " >&6 10604else 10605 cat >conftest.$ac_ext <<_ACEOF 10606/* confdefs.h. */ 10607_ACEOF 10608cat confdefs.h >>conftest.$ac_ext 10609cat >>conftest.$ac_ext <<_ACEOF 10610/* end confdefs.h. */ 10611/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10612 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10613#define dlopen innocuous_dlopen 10614 10615/* System header to define __stub macros and hopefully few prototypes, 10616 which can conflict with char dlopen (); below. 10617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10618 <limits.h> exists even on freestanding compilers. */ 10619 10620#ifdef __STDC__ 10621# include <limits.h> 10622#else 10623# include <assert.h> 10624#endif 10625 10626#undef dlopen 10627 10628/* Override any GCC internal prototype to avoid an error. 10629 Use char because int might match the return type of a GCC 10630 builtin and then its argument prototype would still apply. */ 10631#ifdef __cplusplus 10632extern "C" 10633#endif 10634char dlopen (); 10635/* The GNU C library defines this for functions which it implements 10636 to always fail with ENOSYS. Some functions are actually named 10637 something starting with __ and the normal name is an alias. */ 10638#if defined __stub_dlopen || defined __stub___dlopen 10639choke me 10640#endif 10641 10642int 10643main () 10644{ 10645return dlopen (); 10646 ; 10647 return 0; 10648} 10649_ACEOF 10650rm -f conftest.$ac_objext conftest$ac_exeext 10651if { (ac_try="$ac_link" 10652case "(($ac_try" in 10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10654 *) ac_try_echo=$ac_try;; 10655esac 10656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10657$as_echo "$ac_try_echo") >&5 10658 (eval "$ac_link") 2>conftest.er1 10659 ac_status=$? 10660 grep -v '^ *+' conftest.er1 >conftest.err 10661 rm -f conftest.er1 10662 cat conftest.err >&5 10663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10664 (exit $ac_status); } && { 10665 test -z "$ac_c_werror_flag" || 10666 test ! -s conftest.err 10667 } && test -s conftest$ac_exeext && { 10668 test "$cross_compiling" = yes || 10669 $as_test_x conftest$ac_exeext 10670 }; then 10671 ac_cv_func_dlopen=yes 10672else 10673 $as_echo "$as_me: failed program was:" >&5 10674sed 's/^/| /' conftest.$ac_ext >&5 10675 10676 ac_cv_func_dlopen=no 10677fi 10678 10679rm -rf conftest.dSYM 10680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10681 conftest$ac_exeext conftest.$ac_ext 10682fi 10683{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10684$as_echo "$ac_cv_func_dlopen" >&6; } 10685if test "x$ac_cv_func_dlopen" = x""yes; then 10686 lt_cv_dlopen="dlopen" 10687else 10688 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10689$as_echo_n "checking for dlopen in -ldl... " >&6; } 10690if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10691 $as_echo_n "(cached) " >&6 10692else 10693 ac_check_lib_save_LIBS=$LIBS 10694LIBS="-ldl $LIBS" 10695cat >conftest.$ac_ext <<_ACEOF 10696/* confdefs.h. */ 10697_ACEOF 10698cat confdefs.h >>conftest.$ac_ext 10699cat >>conftest.$ac_ext <<_ACEOF 10700/* end confdefs.h. */ 10701 10702/* Override any GCC internal prototype to avoid an error. 10703 Use char because int might match the return type of a GCC 10704 builtin and then its argument prototype would still apply. */ 10705#ifdef __cplusplus 10706extern "C" 10707#endif 10708char dlopen (); 10709int 10710main () 10711{ 10712return dlopen (); 10713 ; 10714 return 0; 10715} 10716_ACEOF 10717rm -f conftest.$ac_objext conftest$ac_exeext 10718if { (ac_try="$ac_link" 10719case "(($ac_try" in 10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10721 *) ac_try_echo=$ac_try;; 10722esac 10723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10724$as_echo "$ac_try_echo") >&5 10725 (eval "$ac_link") 2>conftest.er1 10726 ac_status=$? 10727 grep -v '^ *+' conftest.er1 >conftest.err 10728 rm -f conftest.er1 10729 cat conftest.err >&5 10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10731 (exit $ac_status); } && { 10732 test -z "$ac_c_werror_flag" || 10733 test ! -s conftest.err 10734 } && test -s conftest$ac_exeext && { 10735 test "$cross_compiling" = yes || 10736 $as_test_x conftest$ac_exeext 10737 }; then 10738 ac_cv_lib_dl_dlopen=yes 10739else 10740 $as_echo "$as_me: failed program was:" >&5 10741sed 's/^/| /' conftest.$ac_ext >&5 10742 10743 ac_cv_lib_dl_dlopen=no 10744fi 10745 10746rm -rf conftest.dSYM 10747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10748 conftest$ac_exeext conftest.$ac_ext 10749LIBS=$ac_check_lib_save_LIBS 10750fi 10751{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10752$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10753if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10755else 10756 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10757$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10758if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10759 $as_echo_n "(cached) " >&6 10760else 10761 ac_check_lib_save_LIBS=$LIBS 10762LIBS="-lsvld $LIBS" 10763cat >conftest.$ac_ext <<_ACEOF 10764/* confdefs.h. */ 10765_ACEOF 10766cat confdefs.h >>conftest.$ac_ext 10767cat >>conftest.$ac_ext <<_ACEOF 10768/* end confdefs.h. */ 10769 10770/* Override any GCC internal prototype to avoid an error. 10771 Use char because int might match the return type of a GCC 10772 builtin and then its argument prototype would still apply. */ 10773#ifdef __cplusplus 10774extern "C" 10775#endif 10776char dlopen (); 10777int 10778main () 10779{ 10780return dlopen (); 10781 ; 10782 return 0; 10783} 10784_ACEOF 10785rm -f conftest.$ac_objext conftest$ac_exeext 10786if { (ac_try="$ac_link" 10787case "(($ac_try" in 10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10789 *) ac_try_echo=$ac_try;; 10790esac 10791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10792$as_echo "$ac_try_echo") >&5 10793 (eval "$ac_link") 2>conftest.er1 10794 ac_status=$? 10795 grep -v '^ *+' conftest.er1 >conftest.err 10796 rm -f conftest.er1 10797 cat conftest.err >&5 10798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10799 (exit $ac_status); } && { 10800 test -z "$ac_c_werror_flag" || 10801 test ! -s conftest.err 10802 } && test -s conftest$ac_exeext && { 10803 test "$cross_compiling" = yes || 10804 $as_test_x conftest$ac_exeext 10805 }; then 10806 ac_cv_lib_svld_dlopen=yes 10807else 10808 $as_echo "$as_me: failed program was:" >&5 10809sed 's/^/| /' conftest.$ac_ext >&5 10810 10811 ac_cv_lib_svld_dlopen=no 10812fi 10813 10814rm -rf conftest.dSYM 10815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10816 conftest$ac_exeext conftest.$ac_ext 10817LIBS=$ac_check_lib_save_LIBS 10818fi 10819{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10820$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10821if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10823else 10824 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10825$as_echo_n "checking for dld_link in -ldld... " >&6; } 10826if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10827 $as_echo_n "(cached) " >&6 10828else 10829 ac_check_lib_save_LIBS=$LIBS 10830LIBS="-ldld $LIBS" 10831cat >conftest.$ac_ext <<_ACEOF 10832/* confdefs.h. */ 10833_ACEOF 10834cat confdefs.h >>conftest.$ac_ext 10835cat >>conftest.$ac_ext <<_ACEOF 10836/* end confdefs.h. */ 10837 10838/* Override any GCC internal prototype to avoid an error. 10839 Use char because int might match the return type of a GCC 10840 builtin and then its argument prototype would still apply. */ 10841#ifdef __cplusplus 10842extern "C" 10843#endif 10844char dld_link (); 10845int 10846main () 10847{ 10848return dld_link (); 10849 ; 10850 return 0; 10851} 10852_ACEOF 10853rm -f conftest.$ac_objext conftest$ac_exeext 10854if { (ac_try="$ac_link" 10855case "(($ac_try" in 10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10857 *) ac_try_echo=$ac_try;; 10858esac 10859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10860$as_echo "$ac_try_echo") >&5 10861 (eval "$ac_link") 2>conftest.er1 10862 ac_status=$? 10863 grep -v '^ *+' conftest.er1 >conftest.err 10864 rm -f conftest.er1 10865 cat conftest.err >&5 10866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10867 (exit $ac_status); } && { 10868 test -z "$ac_c_werror_flag" || 10869 test ! -s conftest.err 10870 } && test -s conftest$ac_exeext && { 10871 test "$cross_compiling" = yes || 10872 $as_test_x conftest$ac_exeext 10873 }; then 10874 ac_cv_lib_dld_dld_link=yes 10875else 10876 $as_echo "$as_me: failed program was:" >&5 10877sed 's/^/| /' conftest.$ac_ext >&5 10878 10879 ac_cv_lib_dld_dld_link=no 10880fi 10881 10882rm -rf conftest.dSYM 10883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10884 conftest$ac_exeext conftest.$ac_ext 10885LIBS=$ac_check_lib_save_LIBS 10886fi 10887{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10888$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10889if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10890 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10891fi 10892 10893 10894fi 10895 10896 10897fi 10898 10899 10900fi 10901 10902 10903fi 10904 10905 10906fi 10907 10908 ;; 10909 esac 10910 10911 if test "x$lt_cv_dlopen" != xno; then 10912 enable_dlopen=yes 10913 else 10914 enable_dlopen=no 10915 fi 10916 10917 case $lt_cv_dlopen in 10918 dlopen) 10919 save_CPPFLAGS="$CPPFLAGS" 10920 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10921 10922 save_LDFLAGS="$LDFLAGS" 10923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10924 10925 save_LIBS="$LIBS" 10926 LIBS="$lt_cv_dlopen_libs $LIBS" 10927 10928 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10929$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10930if test "${lt_cv_dlopen_self+set}" = set; then 10931 $as_echo_n "(cached) " >&6 10932else 10933 if test "$cross_compiling" = yes; then : 10934 lt_cv_dlopen_self=cross 10935else 10936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10937 lt_status=$lt_dlunknown 10938 cat > conftest.$ac_ext <<_LT_EOF 10939#line 10939 "configure" 10940#include "confdefs.h" 10941 10942#if HAVE_DLFCN_H 10943#include <dlfcn.h> 10944#endif 10945 10946#include <stdio.h> 10947 10948#ifdef RTLD_GLOBAL 10949# define LT_DLGLOBAL RTLD_GLOBAL 10950#else 10951# ifdef DL_GLOBAL 10952# define LT_DLGLOBAL DL_GLOBAL 10953# else 10954# define LT_DLGLOBAL 0 10955# endif 10956#endif 10957 10958/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10959 find out it does not work in some platform. */ 10960#ifndef LT_DLLAZY_OR_NOW 10961# ifdef RTLD_LAZY 10962# define LT_DLLAZY_OR_NOW RTLD_LAZY 10963# else 10964# ifdef DL_LAZY 10965# define LT_DLLAZY_OR_NOW DL_LAZY 10966# else 10967# ifdef RTLD_NOW 10968# define LT_DLLAZY_OR_NOW RTLD_NOW 10969# else 10970# ifdef DL_NOW 10971# define LT_DLLAZY_OR_NOW DL_NOW 10972# else 10973# define LT_DLLAZY_OR_NOW 0 10974# endif 10975# endif 10976# endif 10977# endif 10978#endif 10979 10980void fnord() { int i=42;} 10981int main () 10982{ 10983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10984 int status = $lt_dlunknown; 10985 10986 if (self) 10987 { 10988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10989 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10990 /* dlclose (self); */ 10991 } 10992 else 10993 puts (dlerror ()); 10994 10995 return status; 10996} 10997_LT_EOF 10998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10999 (eval $ac_link) 2>&5 11000 ac_status=$? 11001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11002 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11003 (./conftest; exit; ) >&5 2>/dev/null 11004 lt_status=$? 11005 case x$lt_status in 11006 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11007 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11008 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11009 esac 11010 else : 11011 # compilation failed 11012 lt_cv_dlopen_self=no 11013 fi 11014fi 11015rm -fr conftest* 11016 11017 11018fi 11019{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11020$as_echo "$lt_cv_dlopen_self" >&6; } 11021 11022 if test "x$lt_cv_dlopen_self" = xyes; then 11023 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11024 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11025$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11026if test "${lt_cv_dlopen_self_static+set}" = set; then 11027 $as_echo_n "(cached) " >&6 11028else 11029 if test "$cross_compiling" = yes; then : 11030 lt_cv_dlopen_self_static=cross 11031else 11032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11033 lt_status=$lt_dlunknown 11034 cat > conftest.$ac_ext <<_LT_EOF 11035#line 11035 "configure" 11036#include "confdefs.h" 11037 11038#if HAVE_DLFCN_H 11039#include <dlfcn.h> 11040#endif 11041 11042#include <stdio.h> 11043 11044#ifdef RTLD_GLOBAL 11045# define LT_DLGLOBAL RTLD_GLOBAL 11046#else 11047# ifdef DL_GLOBAL 11048# define LT_DLGLOBAL DL_GLOBAL 11049# else 11050# define LT_DLGLOBAL 0 11051# endif 11052#endif 11053 11054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11055 find out it does not work in some platform. */ 11056#ifndef LT_DLLAZY_OR_NOW 11057# ifdef RTLD_LAZY 11058# define LT_DLLAZY_OR_NOW RTLD_LAZY 11059# else 11060# ifdef DL_LAZY 11061# define LT_DLLAZY_OR_NOW DL_LAZY 11062# else 11063# ifdef RTLD_NOW 11064# define LT_DLLAZY_OR_NOW RTLD_NOW 11065# else 11066# ifdef DL_NOW 11067# define LT_DLLAZY_OR_NOW DL_NOW 11068# else 11069# define LT_DLLAZY_OR_NOW 0 11070# endif 11071# endif 11072# endif 11073# endif 11074#endif 11075 11076void fnord() { int i=42;} 11077int main () 11078{ 11079 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11080 int status = $lt_dlunknown; 11081 11082 if (self) 11083 { 11084 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11085 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11086 /* dlclose (self); */ 11087 } 11088 else 11089 puts (dlerror ()); 11090 11091 return status; 11092} 11093_LT_EOF 11094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11095 (eval $ac_link) 2>&5 11096 ac_status=$? 11097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11098 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11099 (./conftest; exit; ) >&5 2>/dev/null 11100 lt_status=$? 11101 case x$lt_status in 11102 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11103 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11104 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11105 esac 11106 else : 11107 # compilation failed 11108 lt_cv_dlopen_self_static=no 11109 fi 11110fi 11111rm -fr conftest* 11112 11113 11114fi 11115{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11116$as_echo "$lt_cv_dlopen_self_static" >&6; } 11117 fi 11118 11119 CPPFLAGS="$save_CPPFLAGS" 11120 LDFLAGS="$save_LDFLAGS" 11121 LIBS="$save_LIBS" 11122 ;; 11123 esac 11124 11125 case $lt_cv_dlopen_self in 11126 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11127 *) enable_dlopen_self=unknown ;; 11128 esac 11129 11130 case $lt_cv_dlopen_self_static in 11131 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11132 *) enable_dlopen_self_static=unknown ;; 11133 esac 11134fi 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152striplib= 11153old_striplib= 11154{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11155$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11156if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11157 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11158 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11159 { $as_echo "$as_me:$LINENO: result: yes" >&5 11160$as_echo "yes" >&6; } 11161else 11162# FIXME - insert some real tests, host_os isn't really good enough 11163 case $host_os in 11164 darwin*) 11165 if test -n "$STRIP" ; then 11166 striplib="$STRIP -x" 11167 old_striplib="$STRIP -S" 11168 { $as_echo "$as_me:$LINENO: result: yes" >&5 11169$as_echo "yes" >&6; } 11170 else 11171 { $as_echo "$as_me:$LINENO: result: no" >&5 11172$as_echo "no" >&6; } 11173 fi 11174 ;; 11175 *) 11176 { $as_echo "$as_me:$LINENO: result: no" >&5 11177$as_echo "no" >&6; } 11178 ;; 11179 esac 11180fi 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 # Report which library types will actually be built 11194 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11195$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11196 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11197$as_echo "$can_build_shared" >&6; } 11198 11199 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11200$as_echo_n "checking whether to build shared libraries... " >&6; } 11201 test "$can_build_shared" = "no" && enable_shared=no 11202 11203 # On AIX, shared libraries and static libraries use the same namespace, and 11204 # are all built from PIC. 11205 case $host_os in 11206 aix3*) 11207 test "$enable_shared" = yes && enable_static=no 11208 if test -n "$RANLIB"; then 11209 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11210 postinstall_cmds='$RANLIB $lib' 11211 fi 11212 ;; 11213 11214 aix[4-9]*) 11215 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11216 test "$enable_shared" = yes && enable_static=no 11217 fi 11218 ;; 11219 esac 11220 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11221$as_echo "$enable_shared" >&6; } 11222 11223 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11224$as_echo_n "checking whether to build static libraries... " >&6; } 11225 # Make sure either enable_shared or enable_static is yes. 11226 test "$enable_shared" = yes || enable_static=yes 11227 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11228$as_echo "$enable_static" >&6; } 11229 11230 11231 11232 11233fi 11234ac_ext=c 11235ac_cpp='$CPP $CPPFLAGS' 11236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11238ac_compiler_gnu=$ac_cv_c_compiler_gnu 11239 11240CC="$lt_save_CC" 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 ac_config_commands="$ac_config_commands libtool" 11255 11256 11257 11258 11259# Only expand once: 11260 11261 11262{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11263$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11264set x ${MAKE-make} 11265ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11266if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 11267 $as_echo_n "(cached) " >&6 11268else 11269 cat >conftest.make <<\_ACEOF 11270SHELL = /bin/sh 11271all: 11272 @echo '@@@%%%=$(MAKE)=@@@%%%' 11273_ACEOF 11274# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 11275case `${MAKE-make} -f conftest.make 2>/dev/null` in 11276 *@@@%%%=?*=@@@%%%*) 11277 eval ac_cv_prog_make_${ac_make}_set=yes;; 11278 *) 11279 eval ac_cv_prog_make_${ac_make}_set=no;; 11280esac 11281rm -f conftest.make 11282fi 11283if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11284 { $as_echo "$as_me:$LINENO: result: yes" >&5 11285$as_echo "yes" >&6; } 11286 SET_MAKE= 11287else 11288 { $as_echo "$as_me:$LINENO: result: no" >&5 11289$as_echo "no" >&6; } 11290 SET_MAKE="MAKE=${MAKE-make}" 11291fi 11292 11293 11294{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 11295$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11296if test "${ac_cv_c_const+set}" = set; then 11297 $as_echo_n "(cached) " >&6 11298else 11299 cat >conftest.$ac_ext <<_ACEOF 11300/* confdefs.h. */ 11301_ACEOF 11302cat confdefs.h >>conftest.$ac_ext 11303cat >>conftest.$ac_ext <<_ACEOF 11304/* end confdefs.h. */ 11305 11306int 11307main () 11308{ 11309/* FIXME: Include the comments suggested by Paul. */ 11310#ifndef __cplusplus 11311 /* Ultrix mips cc rejects this. */ 11312 typedef int charset[2]; 11313 const charset cs; 11314 /* SunOS 4.1.1 cc rejects this. */ 11315 char const *const *pcpcc; 11316 char **ppc; 11317 /* NEC SVR4.0.2 mips cc rejects this. */ 11318 struct point {int x, y;}; 11319 static struct point const zero = {0,0}; 11320 /* AIX XL C 1.02.0.0 rejects this. 11321 It does not let you subtract one const X* pointer from another in 11322 an arm of an if-expression whose if-part is not a constant 11323 expression */ 11324 const char *g = "string"; 11325 pcpcc = &g + (g ? g-g : 0); 11326 /* HPUX 7.0 cc rejects these. */ 11327 ++pcpcc; 11328 ppc = (char**) pcpcc; 11329 pcpcc = (char const *const *) ppc; 11330 { /* SCO 3.2v4 cc rejects this. */ 11331 char *t; 11332 char const *s = 0 ? (char *) 0 : (char const *) 0; 11333 11334 *t++ = 0; 11335 if (s) return 0; 11336 } 11337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11338 int x[] = {25, 17}; 11339 const int *foo = &x[0]; 11340 ++foo; 11341 } 11342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11343 typedef const int *iptr; 11344 iptr p = 0; 11345 ++p; 11346 } 11347 { /* AIX XL C 1.02.0.0 rejects this saying 11348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11349 struct s { int j; const int *ap[3]; }; 11350 struct s *b; b->j = 5; 11351 } 11352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11353 const int foo = 10; 11354 if (!foo) return 0; 11355 } 11356 return !cs[0] && !zero.x; 11357#endif 11358 11359 ; 11360 return 0; 11361} 11362_ACEOF 11363rm -f conftest.$ac_objext 11364if { (ac_try="$ac_compile" 11365case "(($ac_try" in 11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11367 *) ac_try_echo=$ac_try;; 11368esac 11369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11370$as_echo "$ac_try_echo") >&5 11371 (eval "$ac_compile") 2>conftest.er1 11372 ac_status=$? 11373 grep -v '^ *+' conftest.er1 >conftest.err 11374 rm -f conftest.er1 11375 cat conftest.err >&5 11376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11377 (exit $ac_status); } && { 11378 test -z "$ac_c_werror_flag" || 11379 test ! -s conftest.err 11380 } && test -s conftest.$ac_objext; then 11381 ac_cv_c_const=yes 11382else 11383 $as_echo "$as_me: failed program was:" >&5 11384sed 's/^/| /' conftest.$ac_ext >&5 11385 11386 ac_cv_c_const=no 11387fi 11388 11389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11390fi 11391{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 11392$as_echo "$ac_cv_c_const" >&6; } 11393if test $ac_cv_c_const = no; then 11394 11395cat >>confdefs.h <<\_ACEOF 11396#define const /**/ 11397_ACEOF 11398 11399fi 11400 11401 11402 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 11403$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11404if test "${ac_cv_c_bigendian+set}" = set; then 11405 $as_echo_n "(cached) " >&6 11406else 11407 ac_cv_c_bigendian=unknown 11408 # See if we're dealing with a universal compiler. 11409 cat >conftest.$ac_ext <<_ACEOF 11410/* confdefs.h. */ 11411_ACEOF 11412cat confdefs.h >>conftest.$ac_ext 11413cat >>conftest.$ac_ext <<_ACEOF 11414/* end confdefs.h. */ 11415#ifndef __APPLE_CC__ 11416 not a universal capable compiler 11417 #endif 11418 typedef int dummy; 11419 11420_ACEOF 11421rm -f conftest.$ac_objext 11422if { (ac_try="$ac_compile" 11423case "(($ac_try" in 11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11425 *) ac_try_echo=$ac_try;; 11426esac 11427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11428$as_echo "$ac_try_echo") >&5 11429 (eval "$ac_compile") 2>conftest.er1 11430 ac_status=$? 11431 grep -v '^ *+' conftest.er1 >conftest.err 11432 rm -f conftest.er1 11433 cat conftest.err >&5 11434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11435 (exit $ac_status); } && { 11436 test -z "$ac_c_werror_flag" || 11437 test ! -s conftest.err 11438 } && test -s conftest.$ac_objext; then 11439 11440 # Check for potential -arch flags. It is not universal unless 11441 # there are some -arch flags. Note that *ppc* also matches 11442 # ppc64. This check is also rather less than ideal. 11443 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( 11444 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; 11445 esac 11446else 11447 $as_echo "$as_me: failed program was:" >&5 11448sed 's/^/| /' conftest.$ac_ext >&5 11449 11450 11451fi 11452 11453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11454 if test $ac_cv_c_bigendian = unknown; then 11455 # See if sys/param.h defines the BYTE_ORDER macro. 11456 cat >conftest.$ac_ext <<_ACEOF 11457/* confdefs.h. */ 11458_ACEOF 11459cat confdefs.h >>conftest.$ac_ext 11460cat >>conftest.$ac_ext <<_ACEOF 11461/* end confdefs.h. */ 11462#include <sys/types.h> 11463 #include <sys/param.h> 11464 11465int 11466main () 11467{ 11468#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11469 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11470 && LITTLE_ENDIAN) 11471 bogus endian macros 11472 #endif 11473 11474 ; 11475 return 0; 11476} 11477_ACEOF 11478rm -f conftest.$ac_objext 11479if { (ac_try="$ac_compile" 11480case "(($ac_try" in 11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11482 *) ac_try_echo=$ac_try;; 11483esac 11484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11485$as_echo "$ac_try_echo") >&5 11486 (eval "$ac_compile") 2>conftest.er1 11487 ac_status=$? 11488 grep -v '^ *+' conftest.er1 >conftest.err 11489 rm -f conftest.er1 11490 cat conftest.err >&5 11491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11492 (exit $ac_status); } && { 11493 test -z "$ac_c_werror_flag" || 11494 test ! -s conftest.err 11495 } && test -s conftest.$ac_objext; then 11496 # It does; now see whether it defined to BIG_ENDIAN or not. 11497 cat >conftest.$ac_ext <<_ACEOF 11498/* confdefs.h. */ 11499_ACEOF 11500cat confdefs.h >>conftest.$ac_ext 11501cat >>conftest.$ac_ext <<_ACEOF 11502/* end confdefs.h. */ 11503#include <sys/types.h> 11504 #include <sys/param.h> 11505 11506int 11507main () 11508{ 11509#if BYTE_ORDER != BIG_ENDIAN 11510 not big endian 11511 #endif 11512 11513 ; 11514 return 0; 11515} 11516_ACEOF 11517rm -f conftest.$ac_objext 11518if { (ac_try="$ac_compile" 11519case "(($ac_try" in 11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11521 *) ac_try_echo=$ac_try;; 11522esac 11523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11524$as_echo "$ac_try_echo") >&5 11525 (eval "$ac_compile") 2>conftest.er1 11526 ac_status=$? 11527 grep -v '^ *+' conftest.er1 >conftest.err 11528 rm -f conftest.er1 11529 cat conftest.err >&5 11530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11531 (exit $ac_status); } && { 11532 test -z "$ac_c_werror_flag" || 11533 test ! -s conftest.err 11534 } && test -s conftest.$ac_objext; then 11535 ac_cv_c_bigendian=yes 11536else 11537 $as_echo "$as_me: failed program was:" >&5 11538sed 's/^/| /' conftest.$ac_ext >&5 11539 11540 ac_cv_c_bigendian=no 11541fi 11542 11543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11544else 11545 $as_echo "$as_me: failed program was:" >&5 11546sed 's/^/| /' conftest.$ac_ext >&5 11547 11548 11549fi 11550 11551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11552 fi 11553 if test $ac_cv_c_bigendian = unknown; then 11554 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11555 cat >conftest.$ac_ext <<_ACEOF 11556/* confdefs.h. */ 11557_ACEOF 11558cat confdefs.h >>conftest.$ac_ext 11559cat >>conftest.$ac_ext <<_ACEOF 11560/* end confdefs.h. */ 11561#include <limits.h> 11562 11563int 11564main () 11565{ 11566#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11567 bogus endian macros 11568 #endif 11569 11570 ; 11571 return 0; 11572} 11573_ACEOF 11574rm -f conftest.$ac_objext 11575if { (ac_try="$ac_compile" 11576case "(($ac_try" in 11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11578 *) ac_try_echo=$ac_try;; 11579esac 11580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11581$as_echo "$ac_try_echo") >&5 11582 (eval "$ac_compile") 2>conftest.er1 11583 ac_status=$? 11584 grep -v '^ *+' conftest.er1 >conftest.err 11585 rm -f conftest.er1 11586 cat conftest.err >&5 11587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11588 (exit $ac_status); } && { 11589 test -z "$ac_c_werror_flag" || 11590 test ! -s conftest.err 11591 } && test -s conftest.$ac_objext; then 11592 # It does; now see whether it defined to _BIG_ENDIAN or not. 11593 cat >conftest.$ac_ext <<_ACEOF 11594/* confdefs.h. */ 11595_ACEOF 11596cat confdefs.h >>conftest.$ac_ext 11597cat >>conftest.$ac_ext <<_ACEOF 11598/* end confdefs.h. */ 11599#include <limits.h> 11600 11601int 11602main () 11603{ 11604#ifndef _BIG_ENDIAN 11605 not big endian 11606 #endif 11607 11608 ; 11609 return 0; 11610} 11611_ACEOF 11612rm -f conftest.$ac_objext 11613if { (ac_try="$ac_compile" 11614case "(($ac_try" in 11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11616 *) ac_try_echo=$ac_try;; 11617esac 11618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11619$as_echo "$ac_try_echo") >&5 11620 (eval "$ac_compile") 2>conftest.er1 11621 ac_status=$? 11622 grep -v '^ *+' conftest.er1 >conftest.err 11623 rm -f conftest.er1 11624 cat conftest.err >&5 11625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11626 (exit $ac_status); } && { 11627 test -z "$ac_c_werror_flag" || 11628 test ! -s conftest.err 11629 } && test -s conftest.$ac_objext; then 11630 ac_cv_c_bigendian=yes 11631else 11632 $as_echo "$as_me: failed program was:" >&5 11633sed 's/^/| /' conftest.$ac_ext >&5 11634 11635 ac_cv_c_bigendian=no 11636fi 11637 11638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11639else 11640 $as_echo "$as_me: failed program was:" >&5 11641sed 's/^/| /' conftest.$ac_ext >&5 11642 11643 11644fi 11645 11646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11647 fi 11648 if test $ac_cv_c_bigendian = unknown; then 11649 # Compile a test program. 11650 if test "$cross_compiling" = yes; then 11651 # Try to guess by grepping values from an object file. 11652 cat >conftest.$ac_ext <<_ACEOF 11653/* confdefs.h. */ 11654_ACEOF 11655cat confdefs.h >>conftest.$ac_ext 11656cat >>conftest.$ac_ext <<_ACEOF 11657/* end confdefs.h. */ 11658short int ascii_mm[] = 11659 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11660 short int ascii_ii[] = 11661 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11662 int use_ascii (int i) { 11663 return ascii_mm[i] + ascii_ii[i]; 11664 } 11665 short int ebcdic_ii[] = 11666 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11667 short int ebcdic_mm[] = 11668 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11669 int use_ebcdic (int i) { 11670 return ebcdic_mm[i] + ebcdic_ii[i]; 11671 } 11672 extern int foo; 11673 11674int 11675main () 11676{ 11677return use_ascii (foo) == use_ebcdic (foo); 11678 ; 11679 return 0; 11680} 11681_ACEOF 11682rm -f conftest.$ac_objext 11683if { (ac_try="$ac_compile" 11684case "(($ac_try" in 11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11686 *) ac_try_echo=$ac_try;; 11687esac 11688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11689$as_echo "$ac_try_echo") >&5 11690 (eval "$ac_compile") 2>conftest.er1 11691 ac_status=$? 11692 grep -v '^ *+' conftest.er1 >conftest.err 11693 rm -f conftest.er1 11694 cat conftest.err >&5 11695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11696 (exit $ac_status); } && { 11697 test -z "$ac_c_werror_flag" || 11698 test ! -s conftest.err 11699 } && test -s conftest.$ac_objext; then 11700 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11701 ac_cv_c_bigendian=yes 11702 fi 11703 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11704 if test "$ac_cv_c_bigendian" = unknown; then 11705 ac_cv_c_bigendian=no 11706 else 11707 # finding both strings is unlikely to happen, but who knows? 11708 ac_cv_c_bigendian=unknown 11709 fi 11710 fi 11711else 11712 $as_echo "$as_me: failed program was:" >&5 11713sed 's/^/| /' conftest.$ac_ext >&5 11714 11715 11716fi 11717 11718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11719else 11720 cat >conftest.$ac_ext <<_ACEOF 11721/* confdefs.h. */ 11722_ACEOF 11723cat confdefs.h >>conftest.$ac_ext 11724cat >>conftest.$ac_ext <<_ACEOF 11725/* end confdefs.h. */ 11726$ac_includes_default 11727int 11728main () 11729{ 11730 11731 /* Are we little or big endian? From Harbison&Steele. */ 11732 union 11733 { 11734 long int l; 11735 char c[sizeof (long int)]; 11736 } u; 11737 u.l = 1; 11738 return u.c[sizeof (long int) - 1] == 1; 11739 11740 ; 11741 return 0; 11742} 11743_ACEOF 11744rm -f conftest$ac_exeext 11745if { (ac_try="$ac_link" 11746case "(($ac_try" in 11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11748 *) ac_try_echo=$ac_try;; 11749esac 11750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11751$as_echo "$ac_try_echo") >&5 11752 (eval "$ac_link") 2>&5 11753 ac_status=$? 11754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11756 { (case "(($ac_try" in 11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11758 *) ac_try_echo=$ac_try;; 11759esac 11760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11761$as_echo "$ac_try_echo") >&5 11762 (eval "$ac_try") 2>&5 11763 ac_status=$? 11764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11765 (exit $ac_status); }; }; then 11766 ac_cv_c_bigendian=no 11767else 11768 $as_echo "$as_me: program exited with status $ac_status" >&5 11769$as_echo "$as_me: failed program was:" >&5 11770sed 's/^/| /' conftest.$ac_ext >&5 11771 11772( exit $ac_status ) 11773ac_cv_c_bigendian=yes 11774fi 11775rm -rf conftest.dSYM 11776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11777fi 11778 11779 11780 fi 11781fi 11782{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 11783$as_echo "$ac_cv_c_bigendian" >&6; } 11784 case $ac_cv_c_bigendian in #( 11785 yes) 11786 cat >>confdefs.h <<\_ACEOF 11787#define WORDS_BIGENDIAN 1 11788_ACEOF 11789;; #( 11790 no) 11791 ;; #( 11792 universal) 11793 11794cat >>confdefs.h <<\_ACEOF 11795#define AC_APPLE_UNIVERSAL_BUILD 1 11796_ACEOF 11797 11798 ;; #( 11799 *) 11800 { { $as_echo "$as_me:$LINENO: error: unknown endianness 11801 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 11802$as_echo "$as_me: error: unknown endianness 11803 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 11804 { (exit 1); exit 1; }; } ;; 11805 esac 11806 11807 11808ACLOCAL_AMFLAGS="-I m4" 11809 11810 11811# Checks for header files. 11812 11813for ac_header in stdint.h 11814do 11815as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11817 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11818$as_echo_n "checking for $ac_header... " >&6; } 11819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11820 $as_echo_n "(cached) " >&6 11821fi 11822ac_res=`eval 'as_val=${'$as_ac_Header'} 11823 $as_echo "$as_val"'` 11824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11825$as_echo "$ac_res" >&6; } 11826else 11827 # Is the header compilable? 11828{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11829$as_echo_n "checking $ac_header usability... " >&6; } 11830cat >conftest.$ac_ext <<_ACEOF 11831/* confdefs.h. */ 11832_ACEOF 11833cat confdefs.h >>conftest.$ac_ext 11834cat >>conftest.$ac_ext <<_ACEOF 11835/* end confdefs.h. */ 11836$ac_includes_default 11837#include <$ac_header> 11838_ACEOF 11839rm -f conftest.$ac_objext 11840if { (ac_try="$ac_compile" 11841case "(($ac_try" in 11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11843 *) ac_try_echo=$ac_try;; 11844esac 11845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11846$as_echo "$ac_try_echo") >&5 11847 (eval "$ac_compile") 2>conftest.er1 11848 ac_status=$? 11849 grep -v '^ *+' conftest.er1 >conftest.err 11850 rm -f conftest.er1 11851 cat conftest.err >&5 11852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11853 (exit $ac_status); } && { 11854 test -z "$ac_c_werror_flag" || 11855 test ! -s conftest.err 11856 } && test -s conftest.$ac_objext; then 11857 ac_header_compiler=yes 11858else 11859 $as_echo "$as_me: failed program was:" >&5 11860sed 's/^/| /' conftest.$ac_ext >&5 11861 11862 ac_header_compiler=no 11863fi 11864 11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11866{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11867$as_echo "$ac_header_compiler" >&6; } 11868 11869# Is the header present? 11870{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11871$as_echo_n "checking $ac_header presence... " >&6; } 11872cat >conftest.$ac_ext <<_ACEOF 11873/* confdefs.h. */ 11874_ACEOF 11875cat confdefs.h >>conftest.$ac_ext 11876cat >>conftest.$ac_ext <<_ACEOF 11877/* end confdefs.h. */ 11878#include <$ac_header> 11879_ACEOF 11880if { (ac_try="$ac_cpp conftest.$ac_ext" 11881case "(($ac_try" in 11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11883 *) ac_try_echo=$ac_try;; 11884esac 11885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11886$as_echo "$ac_try_echo") >&5 11887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11888 ac_status=$? 11889 grep -v '^ *+' conftest.er1 >conftest.err 11890 rm -f conftest.er1 11891 cat conftest.err >&5 11892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11893 (exit $ac_status); } >/dev/null && { 11894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11895 test ! -s conftest.err 11896 }; then 11897 ac_header_preproc=yes 11898else 11899 $as_echo "$as_me: failed program was:" >&5 11900sed 's/^/| /' conftest.$ac_ext >&5 11901 11902 ac_header_preproc=no 11903fi 11904 11905rm -f conftest.err conftest.$ac_ext 11906{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11907$as_echo "$ac_header_preproc" >&6; } 11908 11909# So? What about this header? 11910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11911 yes:no: ) 11912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11913$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11915$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11916 ac_header_preproc=yes 11917 ;; 11918 no:yes:* ) 11919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11920$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11922$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11924$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11926$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11928$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11930$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11931 11932 ;; 11933esac 11934{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11935$as_echo_n "checking for $ac_header... " >&6; } 11936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11937 $as_echo_n "(cached) " >&6 11938else 11939 eval "$as_ac_Header=\$ac_header_preproc" 11940fi 11941ac_res=`eval 'as_val=${'$as_ac_Header'} 11942 $as_echo "$as_val"'` 11943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11944$as_echo "$ac_res" >&6; } 11945 11946fi 11947as_val=`eval 'as_val=${'$as_ac_Header'} 11948 $as_echo "$as_val"'` 11949 if test "x$as_val" = x""yes; then 11950 cat >>confdefs.h <<_ACEOF 11951#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11952_ACEOF 11953 11954fi 11955 11956done 11957 11958{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 11959$as_echo_n "checking for uintptr_t... " >&6; } 11960if test "${ac_cv_type_uintptr_t+set}" = set; then 11961 $as_echo_n "(cached) " >&6 11962else 11963 ac_cv_type_uintptr_t=no 11964cat >conftest.$ac_ext <<_ACEOF 11965/* confdefs.h. */ 11966_ACEOF 11967cat confdefs.h >>conftest.$ac_ext 11968cat >>conftest.$ac_ext <<_ACEOF 11969/* end confdefs.h. */ 11970$ac_includes_default 11971int 11972main () 11973{ 11974if (sizeof (uintptr_t)) 11975 return 0; 11976 ; 11977 return 0; 11978} 11979_ACEOF 11980rm -f conftest.$ac_objext 11981if { (ac_try="$ac_compile" 11982case "(($ac_try" in 11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11984 *) ac_try_echo=$ac_try;; 11985esac 11986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11987$as_echo "$ac_try_echo") >&5 11988 (eval "$ac_compile") 2>conftest.er1 11989 ac_status=$? 11990 grep -v '^ *+' conftest.er1 >conftest.err 11991 rm -f conftest.er1 11992 cat conftest.err >&5 11993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11994 (exit $ac_status); } && { 11995 test -z "$ac_c_werror_flag" || 11996 test ! -s conftest.err 11997 } && test -s conftest.$ac_objext; then 11998 cat >conftest.$ac_ext <<_ACEOF 11999/* confdefs.h. */ 12000_ACEOF 12001cat confdefs.h >>conftest.$ac_ext 12002cat >>conftest.$ac_ext <<_ACEOF 12003/* end confdefs.h. */ 12004$ac_includes_default 12005int 12006main () 12007{ 12008if (sizeof ((uintptr_t))) 12009 return 0; 12010 ; 12011 return 0; 12012} 12013_ACEOF 12014rm -f conftest.$ac_objext 12015if { (ac_try="$ac_compile" 12016case "(($ac_try" in 12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12018 *) ac_try_echo=$ac_try;; 12019esac 12020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12021$as_echo "$ac_try_echo") >&5 12022 (eval "$ac_compile") 2>conftest.er1 12023 ac_status=$? 12024 grep -v '^ *+' conftest.er1 >conftest.err 12025 rm -f conftest.er1 12026 cat conftest.err >&5 12027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12028 (exit $ac_status); } && { 12029 test -z "$ac_c_werror_flag" || 12030 test ! -s conftest.err 12031 } && test -s conftest.$ac_objext; then 12032 : 12033else 12034 $as_echo "$as_me: failed program was:" >&5 12035sed 's/^/| /' conftest.$ac_ext >&5 12036 12037 ac_cv_type_uintptr_t=yes 12038fi 12039 12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12041else 12042 $as_echo "$as_me: failed program was:" >&5 12043sed 's/^/| /' conftest.$ac_ext >&5 12044 12045 12046fi 12047 12048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12049fi 12050{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 12051$as_echo "$ac_cv_type_uintptr_t" >&6; } 12052if test "x$ac_cv_type_uintptr_t" = x""yes; then 12053 12054cat >>confdefs.h <<_ACEOF 12055#define HAVE_UINTPTR_T 1 12056_ACEOF 12057 12058 12059fi 12060 12061 12062# Check for pkg-config 12063# Extract the first word of "pkg-config", so it can be a program name with args. 12064set dummy pkg-config; ac_word=$2 12065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12066$as_echo_n "checking for $ac_word... " >&6; } 12067if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then 12068 $as_echo_n "(cached) " >&6 12069else 12070 if test -n "$HAVE_PKG_CONFIG"; then 12071 ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test. 12072else 12073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12074for as_dir in $PATH 12075do 12076 IFS=$as_save_IFS 12077 test -z "$as_dir" && as_dir=. 12078 for ac_exec_ext in '' $ac_executable_extensions; do 12079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12080 ac_cv_prog_HAVE_PKG_CONFIG="yes" 12081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12082 break 2 12083 fi 12084done 12085done 12086IFS=$as_save_IFS 12087 12088fi 12089fi 12090HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG 12091if test -n "$HAVE_PKG_CONFIG"; then 12092 { $as_echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5 12093$as_echo "$HAVE_PKG_CONFIG" >&6; } 12094else 12095 { $as_echo "$as_me:$LINENO: result: no" >&5 12096$as_echo "no" >&6; } 12097fi 12098 12099 12100 12101# Check for doxygen 12102# Extract the first word of "doxygen", so it can be a program name with args. 12103set dummy doxygen; ac_word=$2 12104{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12105$as_echo_n "checking for $ac_word... " >&6; } 12106if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then 12107 $as_echo_n "(cached) " >&6 12108else 12109 if test -n "$HAVE_DOXYGEN"; then 12110 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. 12111else 12112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12113for as_dir in $PATH 12114do 12115 IFS=$as_save_IFS 12116 test -z "$as_dir" && as_dir=. 12117 for ac_exec_ext in '' $ac_executable_extensions; do 12118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12119 ac_cv_prog_HAVE_DOXYGEN="true" 12120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12121 break 2 12122 fi 12123done 12124done 12125IFS=$as_save_IFS 12126 12127 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false" 12128fi 12129fi 12130HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN 12131if test -n "$HAVE_DOXYGEN"; then 12132 { $as_echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5 12133$as_echo "$HAVE_DOXYGEN" >&6; } 12134else 12135 { $as_echo "$as_me:$LINENO: result: no" >&5 12136$as_echo "no" >&6; } 12137fi 12138 12139 12140 if $HAVE_DOXYGEN; then 12141 HAVE_DOXYGEN_TRUE= 12142 HAVE_DOXYGEN_FALSE='#' 12143else 12144 HAVE_DOXYGEN_TRUE='#' 12145 HAVE_DOXYGEN_FALSE= 12146fi 12147 12148if test $HAVE_DOXYGEN = "false"; then 12149 { $as_echo "$as_me:$LINENO: WARNING: *** doxygen not found, docs will not be built" >&5 12150$as_echo "$as_me: WARNING: *** doxygen not found, docs will not be built" >&2;} 12151fi 12152 12153# Check for valgrind 12154VALGRIND_ENVIRONMENT="" 12155ac_enable_valgrind=no 12156# Check whether --enable-valgrind-testing was given. 12157if test "${enable_valgrind_testing+set}" = set; then 12158 enableval=$enable_valgrind_testing; ac_enable_valgrind=yes 12159else 12160 ac_enable_valgrind=no 12161fi 12162 12163 12164if test "x${ac_enable_valgrind}" = xyes ; then 12165 if test "x${enable_shared}" = xyes ; then 12166 VALGRIND_ENVIRONMENT="libtool --mode=execute " 12167 fi 12168 12169 # Extract the first word of "valgrind", so it can be a program name with args. 12170set dummy valgrind; ac_word=$2 12171{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12172$as_echo_n "checking for $ac_word... " >&6; } 12173if test "${ac_cv_prog_HAVE_VALGRIND+set}" = set; then 12174 $as_echo_n "(cached) " >&6 12175else 12176 if test -n "$HAVE_VALGRIND"; then 12177 ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test. 12178else 12179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12180for as_dir in $PATH 12181do 12182 IFS=$as_save_IFS 12183 test -z "$as_dir" && as_dir=. 12184 for ac_exec_ext in '' $ac_executable_extensions; do 12185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12186 ac_cv_prog_HAVE_VALGRIND="yes" 12187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12188 break 2 12189 fi 12190done 12191done 12192IFS=$as_save_IFS 12193 12194 test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no" 12195fi 12196fi 12197HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND 12198if test -n "$HAVE_VALGRIND"; then 12199 { $as_echo "$as_me:$LINENO: result: $HAVE_VALGRIND" >&5 12200$as_echo "$HAVE_VALGRIND" >&6; } 12201else 12202 { $as_echo "$as_me:$LINENO: result: no" >&5 12203$as_echo "no" >&6; } 12204fi 12205 12206 12207 if test "x$HAVE_VALGRIND" = xyes ; then 12208 VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100" 12209 12210 TESTS_INFO="Type 'make check' to run test suite. Tests will be run under: 12211 ${VALGRIND_ENVIRONMENT}" 12212 else 12213 TESTS_INFO="Type 'make check' to run test suite (Valgrind not found)" 12214 fi 12215else 12216 TESTS_INFO="Type 'make check' to run test suite (Valgrind testing not enabled)" 12217fi 12218 12219fishsound_config_ok=yes 12220 12221fishsound_examples="" 12222 12223fishsound_pkgdeps="" 12224 12225 12226ac_enable_experimental=no 12227# Check whether --enable-experimental was given. 12228if test "${enable_experimental+set}" = set; then 12229 enableval=$enable_experimental; ac_enable_experimental=yes 12230fi 12231 12232 12233if test "x${ac_enable_experimental}" = xyes ; then 12234 12235cat >>confdefs.h <<\_ACEOF 12236#define FS_EXPERIMENTAL /**/ 12237_ACEOF 12238 12239fi 12240 12241 12242ac_enable_decode=yes 12243# Check whether --enable-decode was given. 12244if test "${enable_decode+set}" = set; then 12245 enableval=$enable_decode; ac_enable_decode=no 12246else 12247 ac_enable_decode=yes 12248fi 12249 12250 12251if test "x${ac_enable_decode}" = xyes ; then 12252 12253cat >>confdefs.h <<\_ACEOF 12254#define FS_DECODE 1 12255_ACEOF 12256 12257else 12258 12259cat >>confdefs.h <<\_ACEOF 12260#define FS_DECODE 0 12261_ACEOF 12262 12263fi 12264 if test "x${ac_enable_decode}" = "xyes"; then 12265 FS_DECODE_TRUE= 12266 FS_DECODE_FALSE='#' 12267else 12268 FS_DECODE_TRUE='#' 12269 FS_DECODE_FALSE= 12270fi 12271 12272 12273 12274ac_enable_encode=yes 12275# Check whether --enable-encode was given. 12276if test "${enable_encode+set}" = set; then 12277 enableval=$enable_encode; ac_enable_encode=no 12278else 12279 ac_enable_encode=yes 12280fi 12281 12282 12283if test "x${ac_enable_encode}" = xyes ; then 12284 12285cat >>confdefs.h <<\_ACEOF 12286#define FS_ENCODE 1 12287_ACEOF 12288 12289else 12290 12291cat >>confdefs.h <<\_ACEOF 12292#define FS_ENCODE 0 12293_ACEOF 12294 12295fi 12296 if test "x${ac_enable_encode}" = "xyes"; then 12297 FS_ENCODE_TRUE= 12298 FS_ENCODE_FALSE='#' 12299else 12300 FS_ENCODE_TRUE='#' 12301 FS_ENCODE_FALSE= 12302fi 12303 12304 12305if test "x${ac_enable_decode}" = xno && test "x${ac_enable_encode}" = xno ; then 12306 { { $as_echo "$as_me:$LINENO: error: 12307*** 12308*** You have attempted to explicitly disable both encoding and decoding. 12309*** 12310*** If you want a fish that does nothing, try kfishd: 12311*** 12312*** http://www.verge.net.au/~horms/junk/ 12313*** 12314*** or buy a dead one from your local pet store. 12315*** 12316" >&5 12317$as_echo "$as_me: error: 12318*** 12319*** You have attempted to explicitly disable both encoding and decoding. 12320*** 12321*** If you want a fish that does nothing, try kfishd: 12322*** 12323*** http://www.verge.net.au/~horms/junk/ 12324*** 12325*** or buy a dead one from your local pet store. 12326*** 12327" >&2;} 12328 { (exit 1); exit 1; }; } 12329fi 12330 12331 12332HAVE_VORBIS=no 12333HAVE_VORBISENC=no 12334VORBIS_SUPPORT=no 12335 12336ac_enable_vorbis=yes 12337# Check whether --enable-vorbis was given. 12338if test "${enable_vorbis+set}" = set; then 12339 enableval=$enable_vorbis; ac_enable_vorbis=no 12340else 12341 ac_enable_vorbis=yes 12342fi 12343 12344 12345if test "x${ac_enable_vorbis}" = xyes ; then 12346 if test "x$HAVE_PKG_CONFIG" = "xyes" ; then 12347 12348 12349if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12350 if test -n "$ac_tool_prefix"; then 12351 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12352set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12354$as_echo_n "checking for $ac_word... " >&6; } 12355if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12356 $as_echo_n "(cached) " >&6 12357else 12358 case $PKG_CONFIG in 12359 [\\/]* | ?:[\\/]*) 12360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12361 ;; 12362 *) 12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12364for as_dir in $PATH 12365do 12366 IFS=$as_save_IFS 12367 test -z "$as_dir" && as_dir=. 12368 for ac_exec_ext in '' $ac_executable_extensions; do 12369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12370 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12372 break 2 12373 fi 12374done 12375done 12376IFS=$as_save_IFS 12377 12378 ;; 12379esac 12380fi 12381PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12382if test -n "$PKG_CONFIG"; then 12383 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12384$as_echo "$PKG_CONFIG" >&6; } 12385else 12386 { $as_echo "$as_me:$LINENO: result: no" >&5 12387$as_echo "no" >&6; } 12388fi 12389 12390 12391fi 12392if test -z "$ac_cv_path_PKG_CONFIG"; then 12393 ac_pt_PKG_CONFIG=$PKG_CONFIG 12394 # Extract the first word of "pkg-config", so it can be a program name with args. 12395set dummy pkg-config; ac_word=$2 12396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12397$as_echo_n "checking for $ac_word... " >&6; } 12398if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12399 $as_echo_n "(cached) " >&6 12400else 12401 case $ac_pt_PKG_CONFIG in 12402 [\\/]* | ?:[\\/]*) 12403 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12404 ;; 12405 *) 12406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12407for as_dir in $PATH 12408do 12409 IFS=$as_save_IFS 12410 test -z "$as_dir" && as_dir=. 12411 for ac_exec_ext in '' $ac_executable_extensions; do 12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12413 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12415 break 2 12416 fi 12417done 12418done 12419IFS=$as_save_IFS 12420 12421 ;; 12422esac 12423fi 12424ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12425if test -n "$ac_pt_PKG_CONFIG"; then 12426 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12427$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12428else 12429 { $as_echo "$as_me:$LINENO: result: no" >&5 12430$as_echo "no" >&6; } 12431fi 12432 12433 if test "x$ac_pt_PKG_CONFIG" = x; then 12434 PKG_CONFIG="" 12435 else 12436 case $cross_compiling:$ac_tool_warned in 12437yes:) 12438{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12440ac_tool_warned=yes ;; 12441esac 12442 PKG_CONFIG=$ac_pt_PKG_CONFIG 12443 fi 12444else 12445 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12446fi 12447 12448fi 12449if test -n "$PKG_CONFIG"; then 12450 _pkg_min_version=0.9.0 12451 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12452$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12453 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12454 { $as_echo "$as_me:$LINENO: result: yes" >&5 12455$as_echo "yes" >&6; } 12456 else 12457 { $as_echo "$as_me:$LINENO: result: no" >&5 12458$as_echo "no" >&6; } 12459 PKG_CONFIG="" 12460 fi 12461 12462fi 12463 12464pkg_failed=no 12465{ $as_echo "$as_me:$LINENO: checking for VORBIS" >&5 12466$as_echo_n "checking for VORBIS... " >&6; } 12467 12468if test -n "$PKG_CONFIG"; then 12469 if test -n "$VORBIS_CFLAGS"; then 12470 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS" 12471 else 12472 if test -n "$PKG_CONFIG" && \ 12473 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis\"") >&5 12474 ($PKG_CONFIG --exists --print-errors "vorbis") 2>&5 12475 ac_status=$? 12476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12477 (exit $ac_status); }; then 12478 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis" 2>/dev/null` 12479else 12480 pkg_failed=yes 12481fi 12482 fi 12483else 12484 pkg_failed=untried 12485fi 12486if test -n "$PKG_CONFIG"; then 12487 if test -n "$VORBIS_LIBS"; then 12488 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS" 12489 else 12490 if test -n "$PKG_CONFIG" && \ 12491 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis\"") >&5 12492 ($PKG_CONFIG --exists --print-errors "vorbis") 2>&5 12493 ac_status=$? 12494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12495 (exit $ac_status); }; then 12496 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis" 2>/dev/null` 12497else 12498 pkg_failed=yes 12499fi 12500 fi 12501else 12502 pkg_failed=untried 12503fi 12504 12505 12506 12507if test $pkg_failed = yes; then 12508 12509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12510 _pkg_short_errors_supported=yes 12511else 12512 _pkg_short_errors_supported=no 12513fi 12514 if test $_pkg_short_errors_supported = yes; then 12515 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis"` 12516 else 12517 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis"` 12518 fi 12519 # Put the nasty error message in config.log where it belongs 12520 echo "$VORBIS_PKG_ERRORS" >&5 12521 12522 { $as_echo "$as_me:$LINENO: result: no" >&5 12523$as_echo "no" >&6; } 12524 HAVE_VORBIS="no" 12525elif test $pkg_failed = untried; then 12526 HAVE_VORBIS="no" 12527else 12528 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS 12529 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS 12530 { $as_echo "$as_me:$LINENO: result: yes" >&5 12531$as_echo "yes" >&6; } 12532 HAVE_VORBIS="yes" 12533fi 12534 fi 12535 12536 if test "x$HAVE_VORBIS" = "xno" ; then 12537 { $as_echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5 12538$as_echo_n "checking for vorbis_info_init in -lvorbis... " >&6; } 12539if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then 12540 $as_echo_n "(cached) " >&6 12541else 12542 ac_check_lib_save_LIBS=$LIBS 12543LIBS="-lvorbis -lm -logg $LIBS" 12544cat >conftest.$ac_ext <<_ACEOF 12545/* confdefs.h. */ 12546_ACEOF 12547cat confdefs.h >>conftest.$ac_ext 12548cat >>conftest.$ac_ext <<_ACEOF 12549/* end confdefs.h. */ 12550 12551/* Override any GCC internal prototype to avoid an error. 12552 Use char because int might match the return type of a GCC 12553 builtin and then its argument prototype would still apply. */ 12554#ifdef __cplusplus 12555extern "C" 12556#endif 12557char vorbis_info_init (); 12558int 12559main () 12560{ 12561return vorbis_info_init (); 12562 ; 12563 return 0; 12564} 12565_ACEOF 12566rm -f conftest.$ac_objext conftest$ac_exeext 12567if { (ac_try="$ac_link" 12568case "(($ac_try" in 12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12570 *) ac_try_echo=$ac_try;; 12571esac 12572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12573$as_echo "$ac_try_echo") >&5 12574 (eval "$ac_link") 2>conftest.er1 12575 ac_status=$? 12576 grep -v '^ *+' conftest.er1 >conftest.err 12577 rm -f conftest.er1 12578 cat conftest.err >&5 12579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12580 (exit $ac_status); } && { 12581 test -z "$ac_c_werror_flag" || 12582 test ! -s conftest.err 12583 } && test -s conftest$ac_exeext && { 12584 test "$cross_compiling" = yes || 12585 $as_test_x conftest$ac_exeext 12586 }; then 12587 ac_cv_lib_vorbis_vorbis_info_init=yes 12588else 12589 $as_echo "$as_me: failed program was:" >&5 12590sed 's/^/| /' conftest.$ac_ext >&5 12591 12592 ac_cv_lib_vorbis_vorbis_info_init=no 12593fi 12594 12595rm -rf conftest.dSYM 12596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12597 conftest$ac_exeext conftest.$ac_ext 12598LIBS=$ac_check_lib_save_LIBS 12599fi 12600{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5 12601$as_echo "$ac_cv_lib_vorbis_vorbis_info_init" >&6; } 12602if test "x$ac_cv_lib_vorbis_vorbis_info_init" = x""yes; then 12603 HAVE_VORBIS="maybe" 12604fi 12605 12606 if test "x$HAVE_VORBIS" = xmaybe; then 12607 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then 12608 { $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5 12609$as_echo_n "checking for vorbis/codec.h... " >&6; } 12610if test "${ac_cv_header_vorbis_codec_h+set}" = set; then 12611 $as_echo_n "(cached) " >&6 12612fi 12613{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5 12614$as_echo "$ac_cv_header_vorbis_codec_h" >&6; } 12615else 12616 # Is the header compilable? 12617{ $as_echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5 12618$as_echo_n "checking vorbis/codec.h usability... " >&6; } 12619cat >conftest.$ac_ext <<_ACEOF 12620/* confdefs.h. */ 12621_ACEOF 12622cat confdefs.h >>conftest.$ac_ext 12623cat >>conftest.$ac_ext <<_ACEOF 12624/* end confdefs.h. */ 12625$ac_includes_default 12626#include <vorbis/codec.h> 12627_ACEOF 12628rm -f conftest.$ac_objext 12629if { (ac_try="$ac_compile" 12630case "(($ac_try" in 12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12632 *) ac_try_echo=$ac_try;; 12633esac 12634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12635$as_echo "$ac_try_echo") >&5 12636 (eval "$ac_compile") 2>conftest.er1 12637 ac_status=$? 12638 grep -v '^ *+' conftest.er1 >conftest.err 12639 rm -f conftest.er1 12640 cat conftest.err >&5 12641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12642 (exit $ac_status); } && { 12643 test -z "$ac_c_werror_flag" || 12644 test ! -s conftest.err 12645 } && test -s conftest.$ac_objext; then 12646 ac_header_compiler=yes 12647else 12648 $as_echo "$as_me: failed program was:" >&5 12649sed 's/^/| /' conftest.$ac_ext >&5 12650 12651 ac_header_compiler=no 12652fi 12653 12654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12655{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12656$as_echo "$ac_header_compiler" >&6; } 12657 12658# Is the header present? 12659{ $as_echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5 12660$as_echo_n "checking vorbis/codec.h presence... " >&6; } 12661cat >conftest.$ac_ext <<_ACEOF 12662/* confdefs.h. */ 12663_ACEOF 12664cat confdefs.h >>conftest.$ac_ext 12665cat >>conftest.$ac_ext <<_ACEOF 12666/* end confdefs.h. */ 12667#include <vorbis/codec.h> 12668_ACEOF 12669if { (ac_try="$ac_cpp conftest.$ac_ext" 12670case "(($ac_try" in 12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12672 *) ac_try_echo=$ac_try;; 12673esac 12674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12675$as_echo "$ac_try_echo") >&5 12676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12677 ac_status=$? 12678 grep -v '^ *+' conftest.er1 >conftest.err 12679 rm -f conftest.er1 12680 cat conftest.err >&5 12681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12682 (exit $ac_status); } >/dev/null && { 12683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12684 test ! -s conftest.err 12685 }; then 12686 ac_header_preproc=yes 12687else 12688 $as_echo "$as_me: failed program was:" >&5 12689sed 's/^/| /' conftest.$ac_ext >&5 12690 12691 ac_header_preproc=no 12692fi 12693 12694rm -f conftest.err conftest.$ac_ext 12695{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12696$as_echo "$ac_header_preproc" >&6; } 12697 12698# So? What about this header? 12699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12700 yes:no: ) 12701 { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5 12702$as_echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12703 { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5 12704$as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;} 12705 ac_header_preproc=yes 12706 ;; 12707 no:yes:* ) 12708 { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5 12709$as_echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;} 12710 { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5 12711$as_echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;} 12712 { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5 12713$as_echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;} 12714 { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5 12715$as_echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;} 12716 { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5 12717$as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;} 12718 { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5 12719$as_echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;} 12720 12721 ;; 12722esac 12723{ $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5 12724$as_echo_n "checking for vorbis/codec.h... " >&6; } 12725if test "${ac_cv_header_vorbis_codec_h+set}" = set; then 12726 $as_echo_n "(cached) " >&6 12727else 12728 ac_cv_header_vorbis_codec_h=$ac_header_preproc 12729fi 12730{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5 12731$as_echo "$ac_cv_header_vorbis_codec_h" >&6; } 12732 12733fi 12734if test "x$ac_cv_header_vorbis_codec_h" = x""yes; then 12735 HAVE_VORBIS="yes" 12736else 12737 HAVE_VORBIS="no" 12738fi 12739 12740 12741 fi 12742 if test "x$HAVE_VORBIS" = xyes ; then 12743 VORBIS_LIBS="-lvorbis -logg -lm" 12744 fi 12745 fi 12746 12747 if test "x$HAVE_VORBIS" = xyes ; then 12748 12749cat >>confdefs.h <<\_ACEOF 12750#define HAVE_VORBIS 1 12751_ACEOF 12752 12753 fishsound_pkgdeps="$fishsound_pkgdeps vorbis" 12754 else 12755 12756cat >>confdefs.h <<\_ACEOF 12757#define HAVE_VORBIS 0 12758_ACEOF 12759 12760 fi 12761 12762 if test "x${ac_enable_encode}" = xyes ; then 12763 if test "x$HAVE_PKG_CONFIG" = "xyes" ; then 12764 12765pkg_failed=no 12766{ $as_echo "$as_me:$LINENO: checking for VORBISENC" >&5 12767$as_echo_n "checking for VORBISENC... " >&6; } 12768 12769if test -n "$PKG_CONFIG"; then 12770 if test -n "$VORBISENC_CFLAGS"; then 12771 pkg_cv_VORBISENC_CFLAGS="$VORBISENC_CFLAGS" 12772 else 12773 if test -n "$PKG_CONFIG" && \ 12774 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbisenc\"") >&5 12775 ($PKG_CONFIG --exists --print-errors "vorbisenc") 2>&5 12776 ac_status=$? 12777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12778 (exit $ac_status); }; then 12779 pkg_cv_VORBISENC_CFLAGS=`$PKG_CONFIG --cflags "vorbisenc" 2>/dev/null` 12780else 12781 pkg_failed=yes 12782fi 12783 fi 12784else 12785 pkg_failed=untried 12786fi 12787if test -n "$PKG_CONFIG"; then 12788 if test -n "$VORBISENC_LIBS"; then 12789 pkg_cv_VORBISENC_LIBS="$VORBISENC_LIBS" 12790 else 12791 if test -n "$PKG_CONFIG" && \ 12792 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbisenc\"") >&5 12793 ($PKG_CONFIG --exists --print-errors "vorbisenc") 2>&5 12794 ac_status=$? 12795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12796 (exit $ac_status); }; then 12797 pkg_cv_VORBISENC_LIBS=`$PKG_CONFIG --libs "vorbisenc" 2>/dev/null` 12798else 12799 pkg_failed=yes 12800fi 12801 fi 12802else 12803 pkg_failed=untried 12804fi 12805 12806 12807 12808if test $pkg_failed = yes; then 12809 12810if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12811 _pkg_short_errors_supported=yes 12812else 12813 _pkg_short_errors_supported=no 12814fi 12815 if test $_pkg_short_errors_supported = yes; then 12816 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbisenc"` 12817 else 12818 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbisenc"` 12819 fi 12820 # Put the nasty error message in config.log where it belongs 12821 echo "$VORBISENC_PKG_ERRORS" >&5 12822 12823 { $as_echo "$as_me:$LINENO: result: no" >&5 12824$as_echo "no" >&6; } 12825 HAVE_VORBISENC="no" 12826elif test $pkg_failed = untried; then 12827 HAVE_VORBISENC="no" 12828else 12829 VORBISENC_CFLAGS=$pkg_cv_VORBISENC_CFLAGS 12830 VORBISENC_LIBS=$pkg_cv_VORBISENC_LIBS 12831 { $as_echo "$as_me:$LINENO: result: yes" >&5 12832$as_echo "yes" >&6; } 12833 HAVE_VORBISENC="yes" 12834fi 12835 fi 12836 12837 if test "x$HAVE_VORBISENC" = "xno" ; then 12838 { $as_echo "$as_me:$LINENO: checking for vorbis_encode_init in -lvorbisenc" >&5 12839$as_echo_n "checking for vorbis_encode_init in -lvorbisenc... " >&6; } 12840if test "${ac_cv_lib_vorbisenc_vorbis_encode_init+set}" = set; then 12841 $as_echo_n "(cached) " >&6 12842else 12843 ac_check_lib_save_LIBS=$LIBS 12844LIBS="-lvorbisenc -lm -logg -lvorbis $LIBS" 12845cat >conftest.$ac_ext <<_ACEOF 12846/* confdefs.h. */ 12847_ACEOF 12848cat confdefs.h >>conftest.$ac_ext 12849cat >>conftest.$ac_ext <<_ACEOF 12850/* end confdefs.h. */ 12851 12852/* Override any GCC internal prototype to avoid an error. 12853 Use char because int might match the return type of a GCC 12854 builtin and then its argument prototype would still apply. */ 12855#ifdef __cplusplus 12856extern "C" 12857#endif 12858char vorbis_encode_init (); 12859int 12860main () 12861{ 12862return vorbis_encode_init (); 12863 ; 12864 return 0; 12865} 12866_ACEOF 12867rm -f conftest.$ac_objext conftest$ac_exeext 12868if { (ac_try="$ac_link" 12869case "(($ac_try" in 12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12871 *) ac_try_echo=$ac_try;; 12872esac 12873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12874$as_echo "$ac_try_echo") >&5 12875 (eval "$ac_link") 2>conftest.er1 12876 ac_status=$? 12877 grep -v '^ *+' conftest.er1 >conftest.err 12878 rm -f conftest.er1 12879 cat conftest.err >&5 12880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12881 (exit $ac_status); } && { 12882 test -z "$ac_c_werror_flag" || 12883 test ! -s conftest.err 12884 } && test -s conftest$ac_exeext && { 12885 test "$cross_compiling" = yes || 12886 $as_test_x conftest$ac_exeext 12887 }; then 12888 ac_cv_lib_vorbisenc_vorbis_encode_init=yes 12889else 12890 $as_echo "$as_me: failed program was:" >&5 12891sed 's/^/| /' conftest.$ac_ext >&5 12892 12893 ac_cv_lib_vorbisenc_vorbis_encode_init=no 12894fi 12895 12896rm -rf conftest.dSYM 12897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12898 conftest$ac_exeext conftest.$ac_ext 12899LIBS=$ac_check_lib_save_LIBS 12900fi 12901{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisenc_vorbis_encode_init" >&5 12902$as_echo "$ac_cv_lib_vorbisenc_vorbis_encode_init" >&6; } 12903if test "x$ac_cv_lib_vorbisenc_vorbis_encode_init" = x""yes; then 12904 HAVE_VORBISENC="maybe" 12905fi 12906 12907 if test "x$HAVE_VORBISENC" = xmaybe ; then 12908 if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then 12909 { $as_echo "$as_me:$LINENO: checking for vorbis/vorbisenc.h" >&5 12910$as_echo_n "checking for vorbis/vorbisenc.h... " >&6; } 12911if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then 12912 $as_echo_n "(cached) " >&6 12913fi 12914{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisenc_h" >&5 12915$as_echo "$ac_cv_header_vorbis_vorbisenc_h" >&6; } 12916else 12917 # Is the header compilable? 12918{ $as_echo "$as_me:$LINENO: checking vorbis/vorbisenc.h usability" >&5 12919$as_echo_n "checking vorbis/vorbisenc.h usability... " >&6; } 12920cat >conftest.$ac_ext <<_ACEOF 12921/* confdefs.h. */ 12922_ACEOF 12923cat confdefs.h >>conftest.$ac_ext 12924cat >>conftest.$ac_ext <<_ACEOF 12925/* end confdefs.h. */ 12926$ac_includes_default 12927#include <vorbis/vorbisenc.h> 12928_ACEOF 12929rm -f conftest.$ac_objext 12930if { (ac_try="$ac_compile" 12931case "(($ac_try" in 12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12933 *) ac_try_echo=$ac_try;; 12934esac 12935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12936$as_echo "$ac_try_echo") >&5 12937 (eval "$ac_compile") 2>conftest.er1 12938 ac_status=$? 12939 grep -v '^ *+' conftest.er1 >conftest.err 12940 rm -f conftest.er1 12941 cat conftest.err >&5 12942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12943 (exit $ac_status); } && { 12944 test -z "$ac_c_werror_flag" || 12945 test ! -s conftest.err 12946 } && test -s conftest.$ac_objext; then 12947 ac_header_compiler=yes 12948else 12949 $as_echo "$as_me: failed program was:" >&5 12950sed 's/^/| /' conftest.$ac_ext >&5 12951 12952 ac_header_compiler=no 12953fi 12954 12955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12956{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12957$as_echo "$ac_header_compiler" >&6; } 12958 12959# Is the header present? 12960{ $as_echo "$as_me:$LINENO: checking vorbis/vorbisenc.h presence" >&5 12961$as_echo_n "checking vorbis/vorbisenc.h presence... " >&6; } 12962cat >conftest.$ac_ext <<_ACEOF 12963/* confdefs.h. */ 12964_ACEOF 12965cat confdefs.h >>conftest.$ac_ext 12966cat >>conftest.$ac_ext <<_ACEOF 12967/* end confdefs.h. */ 12968#include <vorbis/vorbisenc.h> 12969_ACEOF 12970if { (ac_try="$ac_cpp conftest.$ac_ext" 12971case "(($ac_try" in 12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12973 *) ac_try_echo=$ac_try;; 12974esac 12975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12976$as_echo "$ac_try_echo") >&5 12977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12978 ac_status=$? 12979 grep -v '^ *+' conftest.er1 >conftest.err 12980 rm -f conftest.er1 12981 cat conftest.err >&5 12982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12983 (exit $ac_status); } >/dev/null && { 12984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12985 test ! -s conftest.err 12986 }; then 12987 ac_header_preproc=yes 12988else 12989 $as_echo "$as_me: failed program was:" >&5 12990sed 's/^/| /' conftest.$ac_ext >&5 12991 12992 ac_header_preproc=no 12993fi 12994 12995rm -f conftest.err conftest.$ac_ext 12996{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12997$as_echo "$ac_header_preproc" >&6; } 12998 12999# So? What about this header? 13000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13001 yes:no: ) 13002 { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: accepted by the compiler, rejected by the preprocessor!" >&5 13003$as_echo "$as_me: WARNING: vorbis/vorbisenc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13004 { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: proceeding with the compiler's result" >&5 13005$as_echo "$as_me: WARNING: vorbis/vorbisenc.h: proceeding with the compiler's result" >&2;} 13006 ac_header_preproc=yes 13007 ;; 13008 no:yes:* ) 13009 { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: present but cannot be compiled" >&5 13010$as_echo "$as_me: WARNING: vorbis/vorbisenc.h: present but cannot be compiled" >&2;} 13011 { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: check for missing prerequisite headers?" >&5 13012$as_echo "$as_me: WARNING: vorbis/vorbisenc.h: check for missing prerequisite headers?" >&2;} 13013 { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: see the Autoconf documentation" >&5 13014$as_echo "$as_me: WARNING: vorbis/vorbisenc.h: see the Autoconf documentation" >&2;} 13015 { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: section \"Present But Cannot Be Compiled\"" >&5 13016$as_echo "$as_me: WARNING: vorbis/vorbisenc.h: section \"Present But Cannot Be Compiled\"" >&2;} 13017 { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: proceeding with the preprocessor's result" >&5 13018$as_echo "$as_me: WARNING: vorbis/vorbisenc.h: proceeding with the preprocessor's result" >&2;} 13019 { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: in the future, the compiler will take precedence" >&5 13020$as_echo "$as_me: WARNING: vorbis/vorbisenc.h: in the future, the compiler will take precedence" >&2;} 13021 13022 ;; 13023esac 13024{ $as_echo "$as_me:$LINENO: checking for vorbis/vorbisenc.h" >&5 13025$as_echo_n "checking for vorbis/vorbisenc.h... " >&6; } 13026if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then 13027 $as_echo_n "(cached) " >&6 13028else 13029 ac_cv_header_vorbis_vorbisenc_h=$ac_header_preproc 13030fi 13031{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisenc_h" >&5 13032$as_echo "$ac_cv_header_vorbis_vorbisenc_h" >&6; } 13033 13034fi 13035if test "x$ac_cv_header_vorbis_vorbisenc_h" = x""yes; then 13036 HAVE_VORBISENC="yes" 13037else 13038 HAVE_VORBISENC="no" 13039fi 13040 13041 13042 fi 13043 if test "x$HAVE_VORBISENC" = xyes ; then 13044 VORBISENC_LIBS="-lvorbisenc" 13045 fi 13046 fi 13047 13048 if test "x$HAVE_VORBISENC" = xyes ; then 13049 13050cat >>confdefs.h <<\_ACEOF 13051#define HAVE_VORBISENC 1 13052_ACEOF 13053 13054 fishsound_pkgdeps="$fishsound_pkgdeps vorbisenc" 13055 else 13056 13057cat >>confdefs.h <<\_ACEOF 13058#define HAVE_VORBISENC 0 13059_ACEOF 13060 13061 fi 13062 13063 else 13064 13065cat >>confdefs.h <<\_ACEOF 13066#define HAVE_VORBISENC 0 13067_ACEOF 13068 13069 fi 13070 13071 if test "x$HAVE_VORBIS" = "xyes" && test "x$HAVE_VORBISENC" = "xyes" ; then 13072 VORBIS_LIBS="$VORBISENC_LIBS $VORBIS_LIBS" 13073 13074 VORBIS_SUPPORT="yes" 13075 elif test "x$HAVE_VORBIS" = xyes ; then 13076 13077 VORBIS_SUPPORT="decode only" 13078 fi 13079else 13080 13081cat >>confdefs.h <<\_ACEOF 13082#define HAVE_VORBIS 0 13083_ACEOF 13084 13085 13086cat >>confdefs.h <<\_ACEOF 13087#define HAVE_VORBISENC 0 13088_ACEOF 13089 13090 VORBIS_SUPPORT="disabled" 13091fi 13092 if test "x$HAVE_VORBIS" = "xyes"; then 13093 HAVE_VORBIS_TRUE= 13094 HAVE_VORBIS_FALSE='#' 13095else 13096 HAVE_VORBIS_TRUE='#' 13097 HAVE_VORBIS_FALSE= 13098fi 13099 13100 if test "x$HAVE_VORBISENC" = "xyes"; then 13101 HAVE_VORBISENC_TRUE= 13102 HAVE_VORBISENC_FALSE='#' 13103else 13104 HAVE_VORBISENC_TRUE='#' 13105 HAVE_VORBISENC_FALSE= 13106fi 13107 13108 13109 13110HAVE_SPEEX=no 13111HAVE_SPEEX_1_1=no 13112SPEEX_SUPPORT=no 13113 13114ac_enable_speex=yes 13115# Check whether --enable-speex was given. 13116if test "${enable_speex+set}" = set; then 13117 enableval=$enable_speex; ac_enable_speex=no 13118else 13119 ac_enable_speex=yes 13120fi 13121 13122 13123if test "x${ac_enable_speex}" = xyes ; then 13124 if test "x$HAVE_PKG_CONFIG" = "xyes" ; then 13125 13126pkg_failed=no 13127{ $as_echo "$as_me:$LINENO: checking for SPEEX" >&5 13128$as_echo_n "checking for SPEEX... " >&6; } 13129 13130if test -n "$PKG_CONFIG"; then 13131 if test -n "$SPEEX_CFLAGS"; then 13132 pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS" 13133 else 13134 if test -n "$PKG_CONFIG" && \ 13135 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex\"") >&5 13136 ($PKG_CONFIG --exists --print-errors "speex") 2>&5 13137 ac_status=$? 13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13139 (exit $ac_status); }; then 13140 pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex" 2>/dev/null` 13141else 13142 pkg_failed=yes 13143fi 13144 fi 13145else 13146 pkg_failed=untried 13147fi 13148if test -n "$PKG_CONFIG"; then 13149 if test -n "$SPEEX_LIBS"; then 13150 pkg_cv_SPEEX_LIBS="$SPEEX_LIBS" 13151 else 13152 if test -n "$PKG_CONFIG" && \ 13153 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex\"") >&5 13154 ($PKG_CONFIG --exists --print-errors "speex") 2>&5 13155 ac_status=$? 13156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13157 (exit $ac_status); }; then 13158 pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex" 2>/dev/null` 13159else 13160 pkg_failed=yes 13161fi 13162 fi 13163else 13164 pkg_failed=untried 13165fi 13166 13167 13168 13169if test $pkg_failed = yes; then 13170 13171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13172 _pkg_short_errors_supported=yes 13173else 13174 _pkg_short_errors_supported=no 13175fi 13176 if test $_pkg_short_errors_supported = yes; then 13177 SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "speex"` 13178 else 13179 SPEEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "speex"` 13180 fi 13181 # Put the nasty error message in config.log where it belongs 13182 echo "$SPEEX_PKG_ERRORS" >&5 13183 13184 { $as_echo "$as_me:$LINENO: result: no" >&5 13185$as_echo "no" >&6; } 13186 HAVE_SPEEX="no" 13187elif test $pkg_failed = untried; then 13188 HAVE_SPEEX="no" 13189else 13190 SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS 13191 SPEEX_LIBS=$pkg_cv_SPEEX_LIBS 13192 { $as_echo "$as_me:$LINENO: result: yes" >&5 13193$as_echo "yes" >&6; } 13194 HAVE_SPEEX="yes" 13195fi 13196 fi 13197 13198 if test "x$HAVE_SPEEX" = "xno" ; then 13199 { $as_echo "$as_me:$LINENO: checking for speex_encoder_init in -lspeex" >&5 13200$as_echo_n "checking for speex_encoder_init in -lspeex... " >&6; } 13201if test "${ac_cv_lib_speex_speex_encoder_init+set}" = set; then 13202 $as_echo_n "(cached) " >&6 13203else 13204 ac_check_lib_save_LIBS=$LIBS 13205LIBS="-lspeex -lm $LIBS" 13206cat >conftest.$ac_ext <<_ACEOF 13207/* confdefs.h. */ 13208_ACEOF 13209cat confdefs.h >>conftest.$ac_ext 13210cat >>conftest.$ac_ext <<_ACEOF 13211/* end confdefs.h. */ 13212 13213/* Override any GCC internal prototype to avoid an error. 13214 Use char because int might match the return type of a GCC 13215 builtin and then its argument prototype would still apply. */ 13216#ifdef __cplusplus 13217extern "C" 13218#endif 13219char speex_encoder_init (); 13220int 13221main () 13222{ 13223return speex_encoder_init (); 13224 ; 13225 return 0; 13226} 13227_ACEOF 13228rm -f conftest.$ac_objext conftest$ac_exeext 13229if { (ac_try="$ac_link" 13230case "(($ac_try" in 13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13232 *) ac_try_echo=$ac_try;; 13233esac 13234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13235$as_echo "$ac_try_echo") >&5 13236 (eval "$ac_link") 2>conftest.er1 13237 ac_status=$? 13238 grep -v '^ *+' conftest.er1 >conftest.err 13239 rm -f conftest.er1 13240 cat conftest.err >&5 13241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13242 (exit $ac_status); } && { 13243 test -z "$ac_c_werror_flag" || 13244 test ! -s conftest.err 13245 } && test -s conftest$ac_exeext && { 13246 test "$cross_compiling" = yes || 13247 $as_test_x conftest$ac_exeext 13248 }; then 13249 ac_cv_lib_speex_speex_encoder_init=yes 13250else 13251 $as_echo "$as_me: failed program was:" >&5 13252sed 's/^/| /' conftest.$ac_ext >&5 13253 13254 ac_cv_lib_speex_speex_encoder_init=no 13255fi 13256 13257rm -rf conftest.dSYM 13258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13259 conftest$ac_exeext conftest.$ac_ext 13260LIBS=$ac_check_lib_save_LIBS 13261fi 13262{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_init" >&5 13263$as_echo "$ac_cv_lib_speex_speex_encoder_init" >&6; } 13264if test "x$ac_cv_lib_speex_speex_encoder_init" = x""yes; then 13265 HAVE_SPEEX="maybe" 13266fi 13267 13268 if test "x$HAVE_SPEEX" = xmaybe; then 13269 if test "${ac_cv_header_speex_h+set}" = set; then 13270 { $as_echo "$as_me:$LINENO: checking for speex.h" >&5 13271$as_echo_n "checking for speex.h... " >&6; } 13272if test "${ac_cv_header_speex_h+set}" = set; then 13273 $as_echo_n "(cached) " >&6 13274fi 13275{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_h" >&5 13276$as_echo "$ac_cv_header_speex_h" >&6; } 13277else 13278 # Is the header compilable? 13279{ $as_echo "$as_me:$LINENO: checking speex.h usability" >&5 13280$as_echo_n "checking speex.h usability... " >&6; } 13281cat >conftest.$ac_ext <<_ACEOF 13282/* confdefs.h. */ 13283_ACEOF 13284cat confdefs.h >>conftest.$ac_ext 13285cat >>conftest.$ac_ext <<_ACEOF 13286/* end confdefs.h. */ 13287$ac_includes_default 13288#include <speex.h> 13289_ACEOF 13290rm -f conftest.$ac_objext 13291if { (ac_try="$ac_compile" 13292case "(($ac_try" in 13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13294 *) ac_try_echo=$ac_try;; 13295esac 13296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13297$as_echo "$ac_try_echo") >&5 13298 (eval "$ac_compile") 2>conftest.er1 13299 ac_status=$? 13300 grep -v '^ *+' conftest.er1 >conftest.err 13301 rm -f conftest.er1 13302 cat conftest.err >&5 13303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13304 (exit $ac_status); } && { 13305 test -z "$ac_c_werror_flag" || 13306 test ! -s conftest.err 13307 } && test -s conftest.$ac_objext; then 13308 ac_header_compiler=yes 13309else 13310 $as_echo "$as_me: failed program was:" >&5 13311sed 's/^/| /' conftest.$ac_ext >&5 13312 13313 ac_header_compiler=no 13314fi 13315 13316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13317{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13318$as_echo "$ac_header_compiler" >&6; } 13319 13320# Is the header present? 13321{ $as_echo "$as_me:$LINENO: checking speex.h presence" >&5 13322$as_echo_n "checking speex.h presence... " >&6; } 13323cat >conftest.$ac_ext <<_ACEOF 13324/* confdefs.h. */ 13325_ACEOF 13326cat confdefs.h >>conftest.$ac_ext 13327cat >>conftest.$ac_ext <<_ACEOF 13328/* end confdefs.h. */ 13329#include <speex.h> 13330_ACEOF 13331if { (ac_try="$ac_cpp conftest.$ac_ext" 13332case "(($ac_try" in 13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13334 *) ac_try_echo=$ac_try;; 13335esac 13336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13337$as_echo "$ac_try_echo") >&5 13338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13339 ac_status=$? 13340 grep -v '^ *+' conftest.er1 >conftest.err 13341 rm -f conftest.er1 13342 cat conftest.err >&5 13343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13344 (exit $ac_status); } >/dev/null && { 13345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13346 test ! -s conftest.err 13347 }; then 13348 ac_header_preproc=yes 13349else 13350 $as_echo "$as_me: failed program was:" >&5 13351sed 's/^/| /' conftest.$ac_ext >&5 13352 13353 ac_header_preproc=no 13354fi 13355 13356rm -f conftest.err conftest.$ac_ext 13357{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13358$as_echo "$ac_header_preproc" >&6; } 13359 13360# So? What about this header? 13361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13362 yes:no: ) 13363 { $as_echo "$as_me:$LINENO: WARNING: speex.h: accepted by the compiler, rejected by the preprocessor!" >&5 13364$as_echo "$as_me: WARNING: speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13365 { $as_echo "$as_me:$LINENO: WARNING: speex.h: proceeding with the compiler's result" >&5 13366$as_echo "$as_me: WARNING: speex.h: proceeding with the compiler's result" >&2;} 13367 ac_header_preproc=yes 13368 ;; 13369 no:yes:* ) 13370 { $as_echo "$as_me:$LINENO: WARNING: speex.h: present but cannot be compiled" >&5 13371$as_echo "$as_me: WARNING: speex.h: present but cannot be compiled" >&2;} 13372 { $as_echo "$as_me:$LINENO: WARNING: speex.h: check for missing prerequisite headers?" >&5 13373$as_echo "$as_me: WARNING: speex.h: check for missing prerequisite headers?" >&2;} 13374 { $as_echo "$as_me:$LINENO: WARNING: speex.h: see the Autoconf documentation" >&5 13375$as_echo "$as_me: WARNING: speex.h: see the Autoconf documentation" >&2;} 13376 { $as_echo "$as_me:$LINENO: WARNING: speex.h: section \"Present But Cannot Be Compiled\"" >&5 13377$as_echo "$as_me: WARNING: speex.h: section \"Present But Cannot Be Compiled\"" >&2;} 13378 { $as_echo "$as_me:$LINENO: WARNING: speex.h: proceeding with the preprocessor's result" >&5 13379$as_echo "$as_me: WARNING: speex.h: proceeding with the preprocessor's result" >&2;} 13380 { $as_echo "$as_me:$LINENO: WARNING: speex.h: in the future, the compiler will take precedence" >&5 13381$as_echo "$as_me: WARNING: speex.h: in the future, the compiler will take precedence" >&2;} 13382 13383 ;; 13384esac 13385{ $as_echo "$as_me:$LINENO: checking for speex.h" >&5 13386$as_echo_n "checking for speex.h... " >&6; } 13387if test "${ac_cv_header_speex_h+set}" = set; then 13388 $as_echo_n "(cached) " >&6 13389else 13390 ac_cv_header_speex_h=$ac_header_preproc 13391fi 13392{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_h" >&5 13393$as_echo "$ac_cv_header_speex_h" >&6; } 13394 13395fi 13396if test "x$ac_cv_header_speex_h" = x""yes; then 13397 HAVE_SPEEX="yes" 13398else 13399 HAVE_SPEEX="no" 13400fi 13401 13402 13403 fi 13404 if test "x$HAVE_SPEEX" = "xyes" ; then 13405 SPEEX_CFLAGS="" 13406 SPEEX_LIBS="-lspeex -lm" 13407 fi 13408 fi 13409 13410 if test "x$HAVE_SPEEX" = xyes ; then 13411 13412 saved_CFLAGS="$CFLAGS" 13413 CFLAGS="$CFLAGS $SPEEX_CFLAGS" 13414 13415 { $as_echo "$as_me:$LINENO: checking for speex_decode_int in -lspeex" >&5 13416$as_echo_n "checking for speex_decode_int in -lspeex... " >&6; } 13417if test "${ac_cv_lib_speex_speex_decode_int+set}" = set; then 13418 $as_echo_n "(cached) " >&6 13419else 13420 ac_check_lib_save_LIBS=$LIBS 13421LIBS="-lspeex $SPEEX_LIBS $LIBS" 13422cat >conftest.$ac_ext <<_ACEOF 13423/* confdefs.h. */ 13424_ACEOF 13425cat confdefs.h >>conftest.$ac_ext 13426cat >>conftest.$ac_ext <<_ACEOF 13427/* end confdefs.h. */ 13428 13429/* Override any GCC internal prototype to avoid an error. 13430 Use char because int might match the return type of a GCC 13431 builtin and then its argument prototype would still apply. */ 13432#ifdef __cplusplus 13433extern "C" 13434#endif 13435char speex_decode_int (); 13436int 13437main () 13438{ 13439return speex_decode_int (); 13440 ; 13441 return 0; 13442} 13443_ACEOF 13444rm -f conftest.$ac_objext conftest$ac_exeext 13445if { (ac_try="$ac_link" 13446case "(($ac_try" in 13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13448 *) ac_try_echo=$ac_try;; 13449esac 13450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13451$as_echo "$ac_try_echo") >&5 13452 (eval "$ac_link") 2>conftest.er1 13453 ac_status=$? 13454 grep -v '^ *+' conftest.er1 >conftest.err 13455 rm -f conftest.er1 13456 cat conftest.err >&5 13457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13458 (exit $ac_status); } && { 13459 test -z "$ac_c_werror_flag" || 13460 test ! -s conftest.err 13461 } && test -s conftest$ac_exeext && { 13462 test "$cross_compiling" = yes || 13463 $as_test_x conftest$ac_exeext 13464 }; then 13465 ac_cv_lib_speex_speex_decode_int=yes 13466else 13467 $as_echo "$as_me: failed program was:" >&5 13468sed 's/^/| /' conftest.$ac_ext >&5 13469 13470 ac_cv_lib_speex_speex_decode_int=no 13471fi 13472 13473rm -rf conftest.dSYM 13474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13475 conftest$ac_exeext conftest.$ac_ext 13476LIBS=$ac_check_lib_save_LIBS 13477fi 13478{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_decode_int" >&5 13479$as_echo "$ac_cv_lib_speex_speex_decode_int" >&6; } 13480if test "x$ac_cv_lib_speex_speex_decode_int" = x""yes; then 13481 HAVE_SPEEX_1_1="yes" 13482else 13483 HAVE_SPEEX_1_1="no" 13484fi 13485 13486 if test "x$HAVE_SPEEX_1_1" = xyes ; then 13487 13488cat >>confdefs.h <<\_ACEOF 13489#define HAVE_SPEEX_1_1 1 13490_ACEOF 13491 13492 SPEEX_SUPPORT="yes (1.1.x)" 13493 13494 { $as_echo "$as_me:$LINENO: checking for speex_lib_get_mode in -lspeex" >&5 13495$as_echo_n "checking for speex_lib_get_mode in -lspeex... " >&6; } 13496if test "${ac_cv_lib_speex_speex_lib_get_mode+set}" = set; then 13497 $as_echo_n "(cached) " >&6 13498else 13499 ac_check_lib_save_LIBS=$LIBS 13500LIBS="-lspeex $SPEEX_LIBS $LIBS" 13501cat >conftest.$ac_ext <<_ACEOF 13502/* confdefs.h. */ 13503_ACEOF 13504cat confdefs.h >>conftest.$ac_ext 13505cat >>conftest.$ac_ext <<_ACEOF 13506/* end confdefs.h. */ 13507 13508/* Override any GCC internal prototype to avoid an error. 13509 Use char because int might match the return type of a GCC 13510 builtin and then its argument prototype would still apply. */ 13511#ifdef __cplusplus 13512extern "C" 13513#endif 13514char speex_lib_get_mode (); 13515int 13516main () 13517{ 13518return speex_lib_get_mode (); 13519 ; 13520 return 0; 13521} 13522_ACEOF 13523rm -f conftest.$ac_objext conftest$ac_exeext 13524if { (ac_try="$ac_link" 13525case "(($ac_try" in 13526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13527 *) ac_try_echo=$ac_try;; 13528esac 13529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13530$as_echo "$ac_try_echo") >&5 13531 (eval "$ac_link") 2>conftest.er1 13532 ac_status=$? 13533 grep -v '^ *+' conftest.er1 >conftest.err 13534 rm -f conftest.er1 13535 cat conftest.err >&5 13536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13537 (exit $ac_status); } && { 13538 test -z "$ac_c_werror_flag" || 13539 test ! -s conftest.err 13540 } && test -s conftest$ac_exeext && { 13541 test "$cross_compiling" = yes || 13542 $as_test_x conftest$ac_exeext 13543 }; then 13544 ac_cv_lib_speex_speex_lib_get_mode=yes 13545else 13546 $as_echo "$as_me: failed program was:" >&5 13547sed 's/^/| /' conftest.$ac_ext >&5 13548 13549 ac_cv_lib_speex_speex_lib_get_mode=no 13550fi 13551 13552rm -rf conftest.dSYM 13553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13554 conftest$ac_exeext conftest.$ac_ext 13555LIBS=$ac_check_lib_save_LIBS 13556fi 13557{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_lib_get_mode" >&5 13558$as_echo "$ac_cv_lib_speex_speex_lib_get_mode" >&6; } 13559if test "x$ac_cv_lib_speex_speex_lib_get_mode" = x""yes; then 13560 HAVE_SPEEX_LIB_GET_MODE="yes" 13561else 13562 HAVE_SPEEX_LIB_GET_MODE="no" 13563fi 13564 13565 if test "x$HAVE_SPEEX_LIB_GET_MODE" = xyes ; then 13566 13567cat >>confdefs.h <<\_ACEOF 13568#define HAVE_SPEEX_LIB_GET_MODE 1 13569_ACEOF 13570 13571 else 13572 13573cat >>confdefs.h <<\_ACEOF 13574#define HAVE_SPEEX_LIB_GET_MODE 0 13575_ACEOF 13576 13577 fi 13578 13579 else 13580 13581cat >>confdefs.h <<\_ACEOF 13582#define HAVE_SPEEX_1_1 0 13583_ACEOF 13584 13585 SPEEX_SUPPORT="yes (1.0.x)" 13586 fi 13587 13588 CFLAGS="$saved_CFLAGS" 13589 13590 13591cat >>confdefs.h <<\_ACEOF 13592#define HAVE_SPEEX 1 13593_ACEOF 13594 13595 13596 13597 13598 fishsound_pkgdeps="$fishsound_pkgdeps speex" 13599 else 13600 13601cat >>confdefs.h <<\_ACEOF 13602#define HAVE_SPEEX 0 13603_ACEOF 13604 13605 fi 13606else 13607 13608cat >>confdefs.h <<\_ACEOF 13609#define HAVE_SPEEX 0 13610_ACEOF 13611 13612 SPEEX_SUPPORT=disabled 13613fi 13614 if test "x$HAVE_SPEEX" = "xyes"; then 13615 HAVE_SPEEX_TRUE= 13616 HAVE_SPEEX_FALSE='#' 13617else 13618 HAVE_SPEEX_TRUE='#' 13619 HAVE_SPEEX_FALSE= 13620fi 13621 13622 13623 13624HAVE_FLAC=no 13625HAVE_FLAC_1_1_2=no 13626HAVE_FLAC_1_1_3=no 13627FLAC_SUPPORT=no 13628 13629ac_enable_flac=yes 13630# Check whether --enable-flac was given. 13631if test "${enable_flac+set}" = set; then 13632 enableval=$enable_flac; ac_enable_flac=no 13633else 13634 ac_enable_flac=yes 13635fi 13636 13637 13638if test "x${ac_enable_flac}" = xyes ; then 13639 if test "x$HAVE_PKG_CONFIG" = "xyes" ; then 13640 13641pkg_failed=no 13642{ $as_echo "$as_me:$LINENO: checking for FLAC" >&5 13643$as_echo_n "checking for FLAC... " >&6; } 13644 13645if test -n "$PKG_CONFIG"; then 13646 if test -n "$FLAC_CFLAGS"; then 13647 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS" 13648 else 13649 if test -n "$PKG_CONFIG" && \ 13650 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"flac\"") >&5 13651 ($PKG_CONFIG --exists --print-errors "flac") 2>&5 13652 ac_status=$? 13653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13654 (exit $ac_status); }; then 13655 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac" 2>/dev/null` 13656else 13657 pkg_failed=yes 13658fi 13659 fi 13660else 13661 pkg_failed=untried 13662fi 13663if test -n "$PKG_CONFIG"; then 13664 if test -n "$FLAC_LIBS"; then 13665 pkg_cv_FLAC_LIBS="$FLAC_LIBS" 13666 else 13667 if test -n "$PKG_CONFIG" && \ 13668 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"flac\"") >&5 13669 ($PKG_CONFIG --exists --print-errors "flac") 2>&5 13670 ac_status=$? 13671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13672 (exit $ac_status); }; then 13673 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac" 2>/dev/null` 13674else 13675 pkg_failed=yes 13676fi 13677 fi 13678else 13679 pkg_failed=untried 13680fi 13681 13682 13683 13684if test $pkg_failed = yes; then 13685 13686if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13687 _pkg_short_errors_supported=yes 13688else 13689 _pkg_short_errors_supported=no 13690fi 13691 if test $_pkg_short_errors_supported = yes; then 13692 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "flac"` 13693 else 13694 FLAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "flac"` 13695 fi 13696 # Put the nasty error message in config.log where it belongs 13697 echo "$FLAC_PKG_ERRORS" >&5 13698 13699 { $as_echo "$as_me:$LINENO: result: no" >&5 13700$as_echo "no" >&6; } 13701 HAVE_FLAC="no" 13702elif test $pkg_failed = untried; then 13703 HAVE_FLAC="no" 13704else 13705 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS 13706 FLAC_LIBS=$pkg_cv_FLAC_LIBS 13707 { $as_echo "$as_me:$LINENO: result: yes" >&5 13708$as_echo "yes" >&6; } 13709 HAVE_FLAC="yes" 13710fi 13711 fi 13712 13713 if test "x$HAVE_FLAC" = "xno" ; then 13714 { $as_echo "$as_me:$LINENO: checking for FLAC__stream_decoder_init in -lFLAC" >&5 13715$as_echo_n "checking for FLAC__stream_decoder_init in -lFLAC... " >&6; } 13716if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_init+set}" = set; then 13717 $as_echo_n "(cached) " >&6 13718else 13719 ac_check_lib_save_LIBS=$LIBS 13720LIBS="-lFLAC -lm -logg $LIBS" 13721cat >conftest.$ac_ext <<_ACEOF 13722/* confdefs.h. */ 13723_ACEOF 13724cat confdefs.h >>conftest.$ac_ext 13725cat >>conftest.$ac_ext <<_ACEOF 13726/* end confdefs.h. */ 13727 13728/* Override any GCC internal prototype to avoid an error. 13729 Use char because int might match the return type of a GCC 13730 builtin and then its argument prototype would still apply. */ 13731#ifdef __cplusplus 13732extern "C" 13733#endif 13734char FLAC__stream_decoder_init (); 13735int 13736main () 13737{ 13738return FLAC__stream_decoder_init (); 13739 ; 13740 return 0; 13741} 13742_ACEOF 13743rm -f conftest.$ac_objext conftest$ac_exeext 13744if { (ac_try="$ac_link" 13745case "(($ac_try" in 13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13747 *) ac_try_echo=$ac_try;; 13748esac 13749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13750$as_echo "$ac_try_echo") >&5 13751 (eval "$ac_link") 2>conftest.er1 13752 ac_status=$? 13753 grep -v '^ *+' conftest.er1 >conftest.err 13754 rm -f conftest.er1 13755 cat conftest.err >&5 13756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13757 (exit $ac_status); } && { 13758 test -z "$ac_c_werror_flag" || 13759 test ! -s conftest.err 13760 } && test -s conftest$ac_exeext && { 13761 test "$cross_compiling" = yes || 13762 $as_test_x conftest$ac_exeext 13763 }; then 13764 ac_cv_lib_FLAC_FLAC__stream_decoder_init=yes 13765else 13766 $as_echo "$as_me: failed program was:" >&5 13767sed 's/^/| /' conftest.$ac_ext >&5 13768 13769 ac_cv_lib_FLAC_FLAC__stream_decoder_init=no 13770fi 13771 13772rm -rf conftest.dSYM 13773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13774 conftest$ac_exeext conftest.$ac_ext 13775LIBS=$ac_check_lib_save_LIBS 13776fi 13777{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init" >&5 13778$as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init" >&6; } 13779if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init" = x""yes; then 13780 HAVE_FLAC="maybe" 13781fi 13782 13783 if test "x$HAVE_FLAC" = xmaybe; then 13784 if test "${ac_cv_header_FLAC_all_h+set}" = set; then 13785 { $as_echo "$as_me:$LINENO: checking for FLAC/all.h" >&5 13786$as_echo_n "checking for FLAC/all.h... " >&6; } 13787if test "${ac_cv_header_FLAC_all_h+set}" = set; then 13788 $as_echo_n "(cached) " >&6 13789fi 13790{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_all_h" >&5 13791$as_echo "$ac_cv_header_FLAC_all_h" >&6; } 13792else 13793 # Is the header compilable? 13794{ $as_echo "$as_me:$LINENO: checking FLAC/all.h usability" >&5 13795$as_echo_n "checking FLAC/all.h usability... " >&6; } 13796cat >conftest.$ac_ext <<_ACEOF 13797/* confdefs.h. */ 13798_ACEOF 13799cat confdefs.h >>conftest.$ac_ext 13800cat >>conftest.$ac_ext <<_ACEOF 13801/* end confdefs.h. */ 13802$ac_includes_default 13803#include <FLAC/all.h> 13804_ACEOF 13805rm -f conftest.$ac_objext 13806if { (ac_try="$ac_compile" 13807case "(($ac_try" in 13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13809 *) ac_try_echo=$ac_try;; 13810esac 13811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13812$as_echo "$ac_try_echo") >&5 13813 (eval "$ac_compile") 2>conftest.er1 13814 ac_status=$? 13815 grep -v '^ *+' conftest.er1 >conftest.err 13816 rm -f conftest.er1 13817 cat conftest.err >&5 13818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13819 (exit $ac_status); } && { 13820 test -z "$ac_c_werror_flag" || 13821 test ! -s conftest.err 13822 } && test -s conftest.$ac_objext; then 13823 ac_header_compiler=yes 13824else 13825 $as_echo "$as_me: failed program was:" >&5 13826sed 's/^/| /' conftest.$ac_ext >&5 13827 13828 ac_header_compiler=no 13829fi 13830 13831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13832{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13833$as_echo "$ac_header_compiler" >&6; } 13834 13835# Is the header present? 13836{ $as_echo "$as_me:$LINENO: checking FLAC/all.h presence" >&5 13837$as_echo_n "checking FLAC/all.h presence... " >&6; } 13838cat >conftest.$ac_ext <<_ACEOF 13839/* confdefs.h. */ 13840_ACEOF 13841cat confdefs.h >>conftest.$ac_ext 13842cat >>conftest.$ac_ext <<_ACEOF 13843/* end confdefs.h. */ 13844#include <FLAC/all.h> 13845_ACEOF 13846if { (ac_try="$ac_cpp conftest.$ac_ext" 13847case "(($ac_try" in 13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13849 *) ac_try_echo=$ac_try;; 13850esac 13851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13852$as_echo "$ac_try_echo") >&5 13853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13854 ac_status=$? 13855 grep -v '^ *+' conftest.er1 >conftest.err 13856 rm -f conftest.er1 13857 cat conftest.err >&5 13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13859 (exit $ac_status); } >/dev/null && { 13860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13861 test ! -s conftest.err 13862 }; then 13863 ac_header_preproc=yes 13864else 13865 $as_echo "$as_me: failed program was:" >&5 13866sed 's/^/| /' conftest.$ac_ext >&5 13867 13868 ac_header_preproc=no 13869fi 13870 13871rm -f conftest.err conftest.$ac_ext 13872{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13873$as_echo "$ac_header_preproc" >&6; } 13874 13875# So? What about this header? 13876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13877 yes:no: ) 13878 { $as_echo "$as_me:$LINENO: WARNING: FLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&5 13879$as_echo "$as_me: WARNING: FLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13880 { $as_echo "$as_me:$LINENO: WARNING: FLAC/all.h: proceeding with the compiler's result" >&5 13881$as_echo "$as_me: WARNING: FLAC/all.h: proceeding with the compiler's result" >&2;} 13882 ac_header_preproc=yes 13883 ;; 13884 no:yes:* ) 13885 { $as_echo "$as_me:$LINENO: WARNING: FLAC/all.h: present but cannot be compiled" >&5 13886$as_echo "$as_me: WARNING: FLAC/all.h: present but cannot be compiled" >&2;} 13887 { $as_echo "$as_me:$LINENO: WARNING: FLAC/all.h: check for missing prerequisite headers?" >&5 13888$as_echo "$as_me: WARNING: FLAC/all.h: check for missing prerequisite headers?" >&2;} 13889 { $as_echo "$as_me:$LINENO: WARNING: FLAC/all.h: see the Autoconf documentation" >&5 13890$as_echo "$as_me: WARNING: FLAC/all.h: see the Autoconf documentation" >&2;} 13891 { $as_echo "$as_me:$LINENO: WARNING: FLAC/all.h: section \"Present But Cannot Be Compiled\"" >&5 13892$as_echo "$as_me: WARNING: FLAC/all.h: section \"Present But Cannot Be Compiled\"" >&2;} 13893 { $as_echo "$as_me:$LINENO: WARNING: FLAC/all.h: proceeding with the preprocessor's result" >&5 13894$as_echo "$as_me: WARNING: FLAC/all.h: proceeding with the preprocessor's result" >&2;} 13895 { $as_echo "$as_me:$LINENO: WARNING: FLAC/all.h: in the future, the compiler will take precedence" >&5 13896$as_echo "$as_me: WARNING: FLAC/all.h: in the future, the compiler will take precedence" >&2;} 13897 13898 ;; 13899esac 13900{ $as_echo "$as_me:$LINENO: checking for FLAC/all.h" >&5 13901$as_echo_n "checking for FLAC/all.h... " >&6; } 13902if test "${ac_cv_header_FLAC_all_h+set}" = set; then 13903 $as_echo_n "(cached) " >&6 13904else 13905 ac_cv_header_FLAC_all_h=$ac_header_preproc 13906fi 13907{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_all_h" >&5 13908$as_echo "$ac_cv_header_FLAC_all_h" >&6; } 13909 13910fi 13911if test "x$ac_cv_header_FLAC_all_h" = x""yes; then 13912 HAVE_FLAC="yes" 13913else 13914 HAVE_FLAC="no" 13915fi 13916 13917 13918 fi 13919 if test "x$HAVE_FLAC" = "xyes" ; then 13920 FLAC_CFLAGS="" 13921 FLAC_LIBS="-lFLAC -logg -lm" 13922 fi 13923 fi 13924 13925 if test "x$HAVE_FLAC" = xyes ; then 13926 saved_CFLAGS="$CFLAGS" 13927 CFLAGS="$CFLAGS $FLAC_CFLAGS" 13928 13929 { $as_echo "$as_me:$LINENO: checking for FLAC__stream_decoder_init_stream in -lFLAC" >&5 13930$as_echo_n "checking for FLAC__stream_decoder_init_stream in -lFLAC... " >&6; } 13931if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream+set}" = set; then 13932 $as_echo_n "(cached) " >&6 13933else 13934 ac_check_lib_save_LIBS=$LIBS 13935LIBS="-lFLAC $FLAC_LIBS $LIBS" 13936cat >conftest.$ac_ext <<_ACEOF 13937/* confdefs.h. */ 13938_ACEOF 13939cat confdefs.h >>conftest.$ac_ext 13940cat >>conftest.$ac_ext <<_ACEOF 13941/* end confdefs.h. */ 13942 13943/* Override any GCC internal prototype to avoid an error. 13944 Use char because int might match the return type of a GCC 13945 builtin and then its argument prototype would still apply. */ 13946#ifdef __cplusplus 13947extern "C" 13948#endif 13949char FLAC__stream_decoder_init_stream (); 13950int 13951main () 13952{ 13953return FLAC__stream_decoder_init_stream (); 13954 ; 13955 return 0; 13956} 13957_ACEOF 13958rm -f conftest.$ac_objext conftest$ac_exeext 13959if { (ac_try="$ac_link" 13960case "(($ac_try" in 13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13962 *) ac_try_echo=$ac_try;; 13963esac 13964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13965$as_echo "$ac_try_echo") >&5 13966 (eval "$ac_link") 2>conftest.er1 13967 ac_status=$? 13968 grep -v '^ *+' conftest.er1 >conftest.err 13969 rm -f conftest.er1 13970 cat conftest.err >&5 13971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13972 (exit $ac_status); } && { 13973 test -z "$ac_c_werror_flag" || 13974 test ! -s conftest.err 13975 } && test -s conftest$ac_exeext && { 13976 test "$cross_compiling" = yes || 13977 $as_test_x conftest$ac_exeext 13978 }; then 13979 ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=yes 13980else 13981 $as_echo "$as_me: failed program was:" >&5 13982sed 's/^/| /' conftest.$ac_ext >&5 13983 13984 ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=no 13985fi 13986 13987rm -rf conftest.dSYM 13988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13989 conftest$ac_exeext conftest.$ac_ext 13990LIBS=$ac_check_lib_save_LIBS 13991fi 13992{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" >&5 13993$as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" >&6; } 13994if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" = x""yes; then 13995 HAVE_FLAC_1_1_3="yes" 13996else 13997 HAVE_FLAC_1_1_3="no" 13998fi 13999 14000 if test "x$HAVE_FLAC_1_1_3" = xyes ; then 14001 14002cat >>confdefs.h <<\_ACEOF 14003#define HAVE_FLAC_1_1_3 1 14004_ACEOF 14005 14006 FLAC_SUPPORT="yes (1.1.3)" 14007 else 14008 { $as_echo "$as_me:$LINENO: checking for FLAC__stream_decoder_init in -lFLAC" >&5 14009$as_echo_n "checking for FLAC__stream_decoder_init in -lFLAC... " >&6; } 14010if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_init+set}" = set; then 14011 $as_echo_n "(cached) " >&6 14012else 14013 ac_check_lib_save_LIBS=$LIBS 14014LIBS="-lFLAC $FLAC_LIBS $LIBS" 14015cat >conftest.$ac_ext <<_ACEOF 14016/* confdefs.h. */ 14017_ACEOF 14018cat confdefs.h >>conftest.$ac_ext 14019cat >>conftest.$ac_ext <<_ACEOF 14020/* end confdefs.h. */ 14021 14022/* Override any GCC internal prototype to avoid an error. 14023 Use char because int might match the return type of a GCC 14024 builtin and then its argument prototype would still apply. */ 14025#ifdef __cplusplus 14026extern "C" 14027#endif 14028char FLAC__stream_decoder_init (); 14029int 14030main () 14031{ 14032return FLAC__stream_decoder_init (); 14033 ; 14034 return 0; 14035} 14036_ACEOF 14037rm -f conftest.$ac_objext conftest$ac_exeext 14038if { (ac_try="$ac_link" 14039case "(($ac_try" in 14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14041 *) ac_try_echo=$ac_try;; 14042esac 14043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14044$as_echo "$ac_try_echo") >&5 14045 (eval "$ac_link") 2>conftest.er1 14046 ac_status=$? 14047 grep -v '^ *+' conftest.er1 >conftest.err 14048 rm -f conftest.er1 14049 cat conftest.err >&5 14050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14051 (exit $ac_status); } && { 14052 test -z "$ac_c_werror_flag" || 14053 test ! -s conftest.err 14054 } && test -s conftest$ac_exeext && { 14055 test "$cross_compiling" = yes || 14056 $as_test_x conftest$ac_exeext 14057 }; then 14058 ac_cv_lib_FLAC_FLAC__stream_decoder_init=yes 14059else 14060 $as_echo "$as_me: failed program was:" >&5 14061sed 's/^/| /' conftest.$ac_ext >&5 14062 14063 ac_cv_lib_FLAC_FLAC__stream_decoder_init=no 14064fi 14065 14066rm -rf conftest.dSYM 14067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14068 conftest$ac_exeext conftest.$ac_ext 14069LIBS=$ac_check_lib_save_LIBS 14070fi 14071{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init" >&5 14072$as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init" >&6; } 14073if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init" = x""yes; then 14074 HAVE_FLAC_1_1_2="yes" 14075else 14076 HAVE_FLAC_1_1_2="no" 14077fi 14078 14079 if test "x$HAVE_FLAC_1_1_2" = xyes ; then 14080 14081cat >>confdefs.h <<\_ACEOF 14082#define HAVE_FLAC_1_1_2 1 14083_ACEOF 14084 14085 FLAC_SUPPORT="yes (1.1.2)" 14086 fi 14087 fi 14088 14089 CFLAGS="$saved_CFLAGS" 14090 14091 14092cat >>confdefs.h <<\_ACEOF 14093#define HAVE_FLAC 1 14094_ACEOF 14095 14096 14097 14098 14099 fishsound_pkgdeps="$fishsound_pkgdeps flac" 14100 else 14101 14102cat >>confdefs.h <<\_ACEOF 14103#define HAVE_FLAC 0 14104_ACEOF 14105 14106 fi 14107else 14108 14109cat >>confdefs.h <<\_ACEOF 14110#define HAVE_FLAC 0 14111_ACEOF 14112 14113 FLAC_SUPPORT="disabled" 14114fi 14115 if test "x$HAVE_FLAC" = "xyes"; then 14116 HAVE_FLAC_TRUE= 14117 HAVE_FLAC_FALSE='#' 14118else 14119 HAVE_FLAC_TRUE='#' 14120 HAVE_FLAC_FALSE= 14121fi 14122 14123 14124if test "x${ac_enable_vorbis}" = xno && test "x${ac_enable_speex}" = xno && 14125test "x${ac_enable_flac}" = xno ; then 14126 { { $as_echo "$as_me:$LINENO: error: 14127*** 14128*** You have attempted to explicitly disable support for all codecs: 14129*** FLAC, Speex and Vorbis. 14130*** 14131*** If you want a fish that does nothing, try kfishd: 14132*** 14133*** http://www.verge.net.au/~horms/junk/ 14134*** 14135*** or buy a live one and let it watch television. 14136*** 14137" >&5 14138$as_echo "$as_me: error: 14139*** 14140*** You have attempted to explicitly disable support for all codecs: 14141*** FLAC, Speex and Vorbis. 14142*** 14143*** If you want a fish that does nothing, try kfishd: 14144*** 14145*** http://www.verge.net.au/~horms/junk/ 14146*** 14147*** or buy a live one and let it watch television. 14148*** 14149" >&2;} 14150 { (exit 1); exit 1; }; } 14151fi 14152 14153if test "x$HAVE_VORBIS" = "xno" && test "x$HAVE_SPEEX" = "xno" && test "x$HAVE_FLAC" = "xno" ; then 14154 fishsound_config_ok=no 14155fi 14156 14157 14158 14159if test "x$HAVE_PKG_CONFIG" = "xyes" ; then 14160 14161pkg_failed=no 14162{ $as_echo "$as_me:$LINENO: checking for OGGZ" >&5 14163$as_echo_n "checking for OGGZ... " >&6; } 14164 14165if test -n "$PKG_CONFIG"; then 14166 if test -n "$OGGZ_CFLAGS"; then 14167 pkg_cv_OGGZ_CFLAGS="$OGGZ_CFLAGS" 14168 else 14169 if test -n "$PKG_CONFIG" && \ 14170 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"oggz >= 0.5.40\"") >&5 14171 ($PKG_CONFIG --exists --print-errors "oggz >= 0.5.40") 2>&5 14172 ac_status=$? 14173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14174 (exit $ac_status); }; then 14175 pkg_cv_OGGZ_CFLAGS=`$PKG_CONFIG --cflags "oggz >= 0.5.40" 2>/dev/null` 14176else 14177 pkg_failed=yes 14178fi 14179 fi 14180else 14181 pkg_failed=untried 14182fi 14183if test -n "$PKG_CONFIG"; then 14184 if test -n "$OGGZ_LIBS"; then 14185 pkg_cv_OGGZ_LIBS="$OGGZ_LIBS" 14186 else 14187 if test -n "$PKG_CONFIG" && \ 14188 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"oggz >= 0.5.40\"") >&5 14189 ($PKG_CONFIG --exists --print-errors "oggz >= 0.5.40") 2>&5 14190 ac_status=$? 14191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14192 (exit $ac_status); }; then 14193 pkg_cv_OGGZ_LIBS=`$PKG_CONFIG --libs "oggz >= 0.5.40" 2>/dev/null` 14194else 14195 pkg_failed=yes 14196fi 14197 fi 14198else 14199 pkg_failed=untried 14200fi 14201 14202 14203 14204if test $pkg_failed = yes; then 14205 14206if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14207 _pkg_short_errors_supported=yes 14208else 14209 _pkg_short_errors_supported=no 14210fi 14211 if test $_pkg_short_errors_supported = yes; then 14212 OGGZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "oggz >= 0.5.40"` 14213 else 14214 OGGZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "oggz >= 0.5.40"` 14215 fi 14216 # Put the nasty error message in config.log where it belongs 14217 echo "$OGGZ_PKG_ERRORS" >&5 14218 14219 { $as_echo "$as_me:$LINENO: result: no" >&5 14220$as_echo "no" >&6; } 14221 HAVE_OGGZ="no" 14222elif test $pkg_failed = untried; then 14223 HAVE_OGGZ="no" 14224else 14225 OGGZ_CFLAGS=$pkg_cv_OGGZ_CFLAGS 14226 OGGZ_LIBS=$pkg_cv_OGGZ_LIBS 14227 { $as_echo "$as_me:$LINENO: result: yes" >&5 14228$as_echo "yes" >&6; } 14229 HAVE_OGGZ="yes" 14230fi 14231fi 14232 14233if test "$HAVE_OGGZ" = "yes" ; then 14234 14235cat >>confdefs.h <<\_ACEOF 14236#define HAVE_OGGZ /**/ 14237_ACEOF 14238 14239 14240else 14241 { $as_echo "$as_me:$LINENO: checking for oggz_open in -loggz" >&5 14242$as_echo_n "checking for oggz_open in -loggz... " >&6; } 14243if test "${ac_cv_lib_oggz_oggz_open+set}" = set; then 14244 $as_echo_n "(cached) " >&6 14245else 14246 ac_check_lib_save_LIBS=$LIBS 14247LIBS="-loggz $LIBS" 14248cat >conftest.$ac_ext <<_ACEOF 14249/* confdefs.h. */ 14250_ACEOF 14251cat confdefs.h >>conftest.$ac_ext 14252cat >>conftest.$ac_ext <<_ACEOF 14253/* end confdefs.h. */ 14254 14255/* Override any GCC internal prototype to avoid an error. 14256 Use char because int might match the return type of a GCC 14257 builtin and then its argument prototype would still apply. */ 14258#ifdef __cplusplus 14259extern "C" 14260#endif 14261char oggz_open (); 14262int 14263main () 14264{ 14265return oggz_open (); 14266 ; 14267 return 0; 14268} 14269_ACEOF 14270rm -f conftest.$ac_objext conftest$ac_exeext 14271if { (ac_try="$ac_link" 14272case "(($ac_try" in 14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14274 *) ac_try_echo=$ac_try;; 14275esac 14276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14277$as_echo "$ac_try_echo") >&5 14278 (eval "$ac_link") 2>conftest.er1 14279 ac_status=$? 14280 grep -v '^ *+' conftest.er1 >conftest.err 14281 rm -f conftest.er1 14282 cat conftest.err >&5 14283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14284 (exit $ac_status); } && { 14285 test -z "$ac_c_werror_flag" || 14286 test ! -s conftest.err 14287 } && test -s conftest$ac_exeext && { 14288 test "$cross_compiling" = yes || 14289 $as_test_x conftest$ac_exeext 14290 }; then 14291 ac_cv_lib_oggz_oggz_open=yes 14292else 14293 $as_echo "$as_me: failed program was:" >&5 14294sed 's/^/| /' conftest.$ac_ext >&5 14295 14296 ac_cv_lib_oggz_oggz_open=no 14297fi 14298 14299rm -rf conftest.dSYM 14300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14301 conftest$ac_exeext conftest.$ac_ext 14302LIBS=$ac_check_lib_save_LIBS 14303fi 14304{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_oggz_oggz_open" >&5 14305$as_echo "$ac_cv_lib_oggz_oggz_open" >&6; } 14306if test "x$ac_cv_lib_oggz_oggz_open" = x""yes; then 14307 OGGZ_LIBS="maybe" 14308fi 14309 14310 if test "$OGGZ_LIBS" = "maybe" ; then 14311 { { $as_echo "$as_me:$LINENO: error: 14312*** 14313*** liboggz-0.5.20 or greater seems to exist on your system, however 14314*** the pkg-config tool cannot find its build information. 14315*** 14316*** Please set your PKG_CONFIG_PATH environment variable to include the 14317*** directory in which oggz.pc was installed. For example, oggz.pc 14318*** is installed in /usr/local/lib/pkgconfig by default; if that is the 14319*** case do: 14320*** 14321*** export PKG_CONFIG_PATH=\"\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig\" 14322*** 14323*** then run this ./configure again. If you configured liboggz with a 14324*** different --prefix option, replace /usr/local above with that prefix. 14325*** 14326" >&5 14327$as_echo "$as_me: error: 14328*** 14329*** liboggz-0.5.20 or greater seems to exist on your system, however 14330*** the pkg-config tool cannot find its build information. 14331*** 14332*** Please set your PKG_CONFIG_PATH environment variable to include the 14333*** directory in which oggz.pc was installed. For example, oggz.pc 14334*** is installed in /usr/local/lib/pkgconfig by default; if that is the 14335*** case do: 14336*** 14337*** export PKG_CONFIG_PATH=\"\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig\" 14338*** 14339*** then run this ./configure again. If you configured liboggz with a 14340*** different --prefix option, replace /usr/local above with that prefix. 14341*** 14342" >&2;} 14343 { (exit 1); exit 1; }; } 14344 fi 14345fi 14346 if test "x$HAVE_OGGZ" = "xyes"; then 14347 HAVE_OGGZ_TRUE= 14348 HAVE_OGGZ_FALSE='#' 14349else 14350 HAVE_OGGZ_TRUE='#' 14351 HAVE_OGGZ_FALSE= 14352fi 14353 14354 14355 14356if test "x$HAVE_PKG_CONFIG" = "xyes" ; then 14357 14358pkg_failed=no 14359{ $as_echo "$as_me:$LINENO: checking for SNDFILE" >&5 14360$as_echo_n "checking for SNDFILE... " >&6; } 14361 14362if test -n "$PKG_CONFIG"; then 14363 if test -n "$SNDFILE_CFLAGS"; then 14364 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" 14365 else 14366 if test -n "$PKG_CONFIG" && \ 14367 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\"") >&5 14368 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5 14369 ac_status=$? 14370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14371 (exit $ac_status); }; then 14372 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.0" 2>/dev/null` 14373else 14374 pkg_failed=yes 14375fi 14376 fi 14377else 14378 pkg_failed=untried 14379fi 14380if test -n "$PKG_CONFIG"; then 14381 if test -n "$SNDFILE_LIBS"; then 14382 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" 14383 else 14384 if test -n "$PKG_CONFIG" && \ 14385 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\"") >&5 14386 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5 14387 ac_status=$? 14388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14389 (exit $ac_status); }; then 14390 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.0" 2>/dev/null` 14391else 14392 pkg_failed=yes 14393fi 14394 fi 14395else 14396 pkg_failed=untried 14397fi 14398 14399 14400 14401if test $pkg_failed = yes; then 14402 14403if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14404 _pkg_short_errors_supported=yes 14405else 14406 _pkg_short_errors_supported=no 14407fi 14408 if test $_pkg_short_errors_supported = yes; then 14409 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sndfile >= 1.0.0"` 14410 else 14411 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sndfile >= 1.0.0"` 14412 fi 14413 # Put the nasty error message in config.log where it belongs 14414 echo "$SNDFILE_PKG_ERRORS" >&5 14415 14416 { $as_echo "$as_me:$LINENO: result: no" >&5 14417$as_echo "no" >&6; } 14418 HAVE_LIBSNDFILE1="no" 14419elif test $pkg_failed = untried; then 14420 HAVE_LIBSNDFILE1="no" 14421else 14422 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS 14423 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS 14424 { $as_echo "$as_me:$LINENO: result: yes" >&5 14425$as_echo "yes" >&6; } 14426 HAVE_LIBSNDFILE1="yes" 14427fi 14428fi 14429 14430if test "x$HAVE_LIBSNDFILE1" = xyes ; then 14431 14432cat >>confdefs.h <<\_ACEOF 14433#define HAVE_LIBSNDFILE1 /**/ 14434_ACEOF 14435 14436 14437 14438fi 14439 if test "x$HAVE_LIBSNDFILE1" = "xyes"; then 14440 HAVE_LIBSNDFILE1_TRUE= 14441 HAVE_LIBSNDFILE1_FALSE='#' 14442else 14443 HAVE_LIBSNDFILE1_TRUE='#' 14444 HAVE_LIBSNDFILE1_FALSE= 14445fi 14446 14447 14448 14449# Checks for typedefs, structures, and compiler characteristics. 14450 14451if test "x$ac_cv_c_compiler_gnu" = xyes ; then 14452 CFLAGS="$CFLAGS -Wall -Wextra -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused" 14453fi 14454 14455 14456# Check whether --enable-gcc-werror was given. 14457if test "${enable_gcc_werror+set}" = set; then 14458 enableval=$enable_gcc_werror; ac_enable_gcc_werror=yes 14459else 14460 ac_enable_gcc_werror=no 14461fi 14462 14463 14464if test "x${ac_enable_gcc_werror}" = xyes ; then 14465 CFLAGS="-Werror $CFLAGS" 14466fi 14467 14468 14469case "$target_os" in 14470 linux* | solaris*|k*bsd*-gnu*|gnu*) 14471 SHLIB_VERSION_ARG="-Wl,--version-script=Version_script" 14472 ;; 14473 *) 14474 ;; 14475esac 14476 14477 14478if test $fishsound_config_ok = no ; then 14479 14480{ $as_echo "$as_me:$LINENO: result: 14481************************************************************** 14482 14483*** $PACKAGE $VERSION: Automatic configuration FAILED. 14484 14485*** The file config.log has full details. 14486 14487*** The following required libraries are missing or 14488*** misconfigured on your system: 14489" >&5 14490$as_echo " 14491************************************************************** 14492 14493*** $PACKAGE $VERSION: Automatic configuration FAILED. 14494 14495*** The file config.log has full details. 14496 14497*** The following required libraries are missing or 14498*** misconfigured on your system: 14499" >&6; } 14500 14501if test "x$HAVE_VORBIS" != xyes ; then 14502 { $as_echo "$as_me:$LINENO: result: *** libvorbis, available from http://www.vorbis.com/" >&5 14503$as_echo "*** libvorbis, available from http://www.vorbis.com/" >&6; } 14504fi 14505if test "x$HAVE_VORBIS" = xmaybe ; then 14506 { $as_echo "$as_me:$LINENO: result: Development files missing: The libvorbis and libvorbisenc library 14507 binaries seem to be installed, but building of a test program failed. 14508" >&5 14509$as_echo " Development files missing: The libvorbis and libvorbisenc library 14510 binaries seem to be installed, but building of a test program failed. 14511" >&6; } 14512fi 14513 14514if test "x$HAVE_SPEEX" != xyes ; then 14515 { $as_echo "$as_me:$LINENO: result: *** libspeex, available from http://www.speex.org/" >&5 14516$as_echo "*** libspeex, available from http://www.speex.org/" >&6; } 14517fi 14518if test "x$HAVE_SPEEX" = xmaybe ; then 14519 { $as_echo "$as_me:$LINENO: result: Development files missing: The libspeex library binary seems to be 14520 installed, but building of a test program failed. 14521" >&5 14522$as_echo " Development files missing: The libspeex library binary seems to be 14523 installed, but building of a test program failed. 14524" >&6; } 14525fi 14526 14527if test "x$HAVE_FLAC" != xyes ; then 14528 { $as_echo "$as_me:$LINENO: result: *** libFLAC, available from http://flac.sourceforge.net/" >&5 14529$as_echo "*** libFLAC, available from http://flac.sourceforge.net/" >&6; } 14530fi 14531if test "x$HAVE_FLAC" = xmaybe ; then 14532 { $as_echo "$as_me:$LINENO: result: Development files missing: The libFLAC library binary seems to be 14533 installed, but building of a test program failed. 14534" >&5 14535$as_echo " Development files missing: The libFLAC library binary seems to be 14536 installed, but building of a test program failed. 14537" >&6; } 14538fi 14539 14540{ $as_echo "$as_me:$LINENO: result: *** If you install the required libraries from source, you 14541*** need to inform the dynamic linker of their location. If 14542*** you install them in a system-wide directory such as 14543*** /usr/local (the default), you must ensure that 14544*** /usr/local/lib is listed in /etc/ld.so.conf, then run 14545*** ldconfig to update the dynamic linking system. 14546*** Alternatively, you can set your LD_LIBRARY_PATH environment 14547*** variable to include the library installation directory. 14548" >&5 14549$as_echo "*** If you install the required libraries from source, you 14550*** need to inform the dynamic linker of their location. If 14551*** you install them in a system-wide directory such as 14552*** /usr/local (the default), you must ensure that 14553*** /usr/local/lib is listed in /etc/ld.so.conf, then run 14554*** ldconfig to update the dynamic linking system. 14555*** Alternatively, you can set your LD_LIBRARY_PATH environment 14556*** variable to include the library installation directory. 14557" >&6; } 14558 14559 14560{ $as_echo "$as_me:$LINENO: result: ************************************************************** 14561" >&5 14562$as_echo "************************************************************** 14563" >&6; } 14564 14565 14566{ { $as_echo "$as_me:$LINENO: error: 14567*** 14568*** After fixing the above problems, you must run ./configure again. 14569*** 14570" >&5 14571$as_echo "$as_me: error: 14572*** 14573*** After fixing the above problems, you must run ./configure again. 14574*** 14575" >&2;} 14576 { (exit 1); exit 1; }; } 14577 14578else 14579 14580 14581 14582 14583 14584 14585if test "x$HAVE_OGGZ" = xyes ; then 14586 fishsound_examples="fishsound-identify" 14587 14588 if test "x$HAVE_LIBSNDFILE1" = xyes ; then 14589 if test "x${ac_enable_decode}" = xyes ; then 14590 fishsound_examples="$fishsound_examples fishsound-decode" 14591 fi 14592 if test "x${ac_enable_encode}" = xyes ; then 14593 fishsound_examples="$fishsound_examples fishsound-encode" 14594 fi 14595 else 14596 fishsound_examples="$fishsound_examples (fishsound-decode and fishsound-encode require libsndfile)" 14597 fi 14598else 14599 fishsound_examples="(none; liboggz and libsndfile required)" 14600fi 14601 14602ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile include/Makefile include/fishsound/Makefile src/Makefile src/libfishsound/Version_script src/libfishsound/Makefile src/tests/Makefile src/examples/Makefile fishsound.pc" 14603 14604cat >confcache <<\_ACEOF 14605# This file is a shell script that caches the results of configure 14606# tests run on this system so they can be shared between configure 14607# scripts and configure runs, see configure's option --config-cache. 14608# It is not useful on other systems. If it contains results you don't 14609# want to keep, you may remove or edit it. 14610# 14611# config.status only pays attention to the cache file if you give it 14612# the --recheck option to rerun configure. 14613# 14614# `ac_cv_env_foo' variables (set or unset) will be overridden when 14615# loading this file, other *unset* `ac_cv_foo' will be assigned the 14616# following values. 14617 14618_ACEOF 14619 14620# The following way of writing the cache mishandles newlines in values, 14621# but we know of no workaround that is simple, portable, and efficient. 14622# So, we kill variables containing newlines. 14623# Ultrix sh set writes to stderr and can't be redirected directly, 14624# and sets the high bit in the cache file unless we assign to the vars. 14625( 14626 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14627 eval ac_val=\$$ac_var 14628 case $ac_val in #( 14629 *${as_nl}*) 14630 case $ac_var in #( 14631 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 14632$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14633 esac 14634 case $ac_var in #( 14635 _ | IFS | as_nl) ;; #( 14636 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14637 *) $as_unset $ac_var ;; 14638 esac ;; 14639 esac 14640 done 14641 14642 (set) 2>&1 | 14643 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14644 *${as_nl}ac_space=\ *) 14645 # `set' does not quote correctly, so add quotes (double-quote 14646 # substitution turns \\\\ into \\, and sed turns \\ into \). 14647 sed -n \ 14648 "s/'/'\\\\''/g; 14649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14650 ;; #( 14651 *) 14652 # `set' quotes correctly as required by POSIX, so do not add quotes. 14653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14654 ;; 14655 esac | 14656 sort 14657) | 14658 sed ' 14659 /^ac_cv_env_/b end 14660 t clear 14661 :clear 14662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14663 t end 14664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14665 :end' >>confcache 14666if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14667 if test -w "$cache_file"; then 14668 test "x$cache_file" != "x/dev/null" && 14669 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 14670$as_echo "$as_me: updating cache $cache_file" >&6;} 14671 cat confcache >$cache_file 14672 else 14673 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 14674$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14675 fi 14676fi 14677rm -f confcache 14678 14679test "x$prefix" = xNONE && prefix=$ac_default_prefix 14680# Let make expand exec_prefix. 14681test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14682 14683DEFS=-DHAVE_CONFIG_H 14684 14685ac_libobjs= 14686ac_ltlibobjs= 14687for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14688 # 1. Remove the extension, and $U if already installed. 14689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14692 # will be set to the directory where LIBOBJS objects are built. 14693 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14694 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 14695done 14696LIBOBJS=$ac_libobjs 14697 14698LTLIBOBJS=$ac_ltlibobjs 14699 14700 14701if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14702 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14703Usually this means the macro was only invoked conditionally." >&5 14704$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 14705Usually this means the macro was only invoked conditionally." >&2;} 14706 { (exit 1); exit 1; }; } 14707fi 14708if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14709 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14710Usually this means the macro was only invoked conditionally." >&5 14711$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14712Usually this means the macro was only invoked conditionally." >&2;} 14713 { (exit 1); exit 1; }; } 14714fi 14715 14716if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 14717 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined. 14718Usually this means the macro was only invoked conditionally." >&5 14719$as_echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined. 14720Usually this means the macro was only invoked conditionally." >&2;} 14721 { (exit 1); exit 1; }; } 14722fi 14723if test -z "${FS_DECODE_TRUE}" && test -z "${FS_DECODE_FALSE}"; then 14724 { { $as_echo "$as_me:$LINENO: error: conditional \"FS_DECODE\" was never defined. 14725Usually this means the macro was only invoked conditionally." >&5 14726$as_echo "$as_me: error: conditional \"FS_DECODE\" was never defined. 14727Usually this means the macro was only invoked conditionally." >&2;} 14728 { (exit 1); exit 1; }; } 14729fi 14730if test -z "${FS_ENCODE_TRUE}" && test -z "${FS_ENCODE_FALSE}"; then 14731 { { $as_echo "$as_me:$LINENO: error: conditional \"FS_ENCODE\" was never defined. 14732Usually this means the macro was only invoked conditionally." >&5 14733$as_echo "$as_me: error: conditional \"FS_ENCODE\" was never defined. 14734Usually this means the macro was only invoked conditionally." >&2;} 14735 { (exit 1); exit 1; }; } 14736fi 14737if test -z "${HAVE_VORBIS_TRUE}" && test -z "${HAVE_VORBIS_FALSE}"; then 14738 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_VORBIS\" was never defined. 14739Usually this means the macro was only invoked conditionally." >&5 14740$as_echo "$as_me: error: conditional \"HAVE_VORBIS\" was never defined. 14741Usually this means the macro was only invoked conditionally." >&2;} 14742 { (exit 1); exit 1; }; } 14743fi 14744if test -z "${HAVE_VORBISENC_TRUE}" && test -z "${HAVE_VORBISENC_FALSE}"; then 14745 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_VORBISENC\" was never defined. 14746Usually this means the macro was only invoked conditionally." >&5 14747$as_echo "$as_me: error: conditional \"HAVE_VORBISENC\" was never defined. 14748Usually this means the macro was only invoked conditionally." >&2;} 14749 { (exit 1); exit 1; }; } 14750fi 14751if test -z "${HAVE_SPEEX_TRUE}" && test -z "${HAVE_SPEEX_FALSE}"; then 14752 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SPEEX\" was never defined. 14753Usually this means the macro was only invoked conditionally." >&5 14754$as_echo "$as_me: error: conditional \"HAVE_SPEEX\" was never defined. 14755Usually this means the macro was only invoked conditionally." >&2;} 14756 { (exit 1); exit 1; }; } 14757fi 14758if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then 14759 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_FLAC\" was never defined. 14760Usually this means the macro was only invoked conditionally." >&5 14761$as_echo "$as_me: error: conditional \"HAVE_FLAC\" was never defined. 14762Usually this means the macro was only invoked conditionally." >&2;} 14763 { (exit 1); exit 1; }; } 14764fi 14765if test -z "${HAVE_OGGZ_TRUE}" && test -z "${HAVE_OGGZ_FALSE}"; then 14766 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_OGGZ\" was never defined. 14767Usually this means the macro was only invoked conditionally." >&5 14768$as_echo "$as_me: error: conditional \"HAVE_OGGZ\" was never defined. 14769Usually this means the macro was only invoked conditionally." >&2;} 14770 { (exit 1); exit 1; }; } 14771fi 14772if test -z "${HAVE_LIBSNDFILE1_TRUE}" && test -z "${HAVE_LIBSNDFILE1_FALSE}"; then 14773 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSNDFILE1\" was never defined. 14774Usually this means the macro was only invoked conditionally." >&5 14775$as_echo "$as_me: error: conditional \"HAVE_LIBSNDFILE1\" was never defined. 14776Usually this means the macro was only invoked conditionally." >&2;} 14777 { (exit 1); exit 1; }; } 14778fi 14779 14780: ${CONFIG_STATUS=./config.status} 14781ac_write_fail=0 14782ac_clean_files_save=$ac_clean_files 14783ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14784{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14785$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14786cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14787#! $SHELL 14788# Generated by $as_me. 14789# Run this file to recreate the current configuration. 14790# Compiler output produced by configure, useful for debugging 14791# configure, is in config.log if it exists. 14792 14793debug=false 14794ac_cs_recheck=false 14795ac_cs_silent=false 14796SHELL=\${CONFIG_SHELL-$SHELL} 14797_ACEOF 14798 14799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14800## --------------------- ## 14801## M4sh Initialization. ## 14802## --------------------- ## 14803 14804# Be more Bourne compatible 14805DUALCASE=1; export DUALCASE # for MKS sh 14806if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14807 emulate sh 14808 NULLCMD=: 14809 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14810 # is contrary to our usage. Disable this feature. 14811 alias -g '${1+"$@"}'='"$@"' 14812 setopt NO_GLOB_SUBST 14813else 14814 case `(set -o) 2>/dev/null` in 14815 *posix*) set -o posix ;; 14816esac 14817 14818fi 14819 14820 14821 14822 14823# PATH needs CR 14824# Avoid depending upon Character Ranges. 14825as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14826as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14827as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14828as_cr_digits='0123456789' 14829as_cr_alnum=$as_cr_Letters$as_cr_digits 14830 14831as_nl=' 14832' 14833export as_nl 14834# Printing a long string crashes Solaris 7 /usr/bin/printf. 14835as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14836as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14837as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14838if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14839 as_echo='printf %s\n' 14840 as_echo_n='printf %s' 14841else 14842 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14843 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14844 as_echo_n='/usr/ucb/echo -n' 14845 else 14846 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14847 as_echo_n_body='eval 14848 arg=$1; 14849 case $arg in 14850 *"$as_nl"*) 14851 expr "X$arg" : "X\\(.*\\)$as_nl"; 14852 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14853 esac; 14854 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14855 ' 14856 export as_echo_n_body 14857 as_echo_n='sh -c $as_echo_n_body as_echo' 14858 fi 14859 export as_echo_body 14860 as_echo='sh -c $as_echo_body as_echo' 14861fi 14862 14863# The user is always right. 14864if test "${PATH_SEPARATOR+set}" != set; then 14865 PATH_SEPARATOR=: 14866 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14867 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14868 PATH_SEPARATOR=';' 14869 } 14870fi 14871 14872# Support unset when possible. 14873if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14874 as_unset=unset 14875else 14876 as_unset=false 14877fi 14878 14879 14880# IFS 14881# We need space, tab and new line, in precisely that order. Quoting is 14882# there to prevent editors from complaining about space-tab. 14883# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14884# splitting by setting IFS to empty value.) 14885IFS=" "" $as_nl" 14886 14887# Find who we are. Look in the path if we contain no directory separator. 14888case $0 in 14889 *[\\/]* ) as_myself=$0 ;; 14890 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14891for as_dir in $PATH 14892do 14893 IFS=$as_save_IFS 14894 test -z "$as_dir" && as_dir=. 14895 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14896done 14897IFS=$as_save_IFS 14898 14899 ;; 14900esac 14901# We did not find ourselves, most probably we were run as `sh COMMAND' 14902# in which case we are not to be found in the path. 14903if test "x$as_myself" = x; then 14904 as_myself=$0 14905fi 14906if test ! -f "$as_myself"; then 14907 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14908 { (exit 1); exit 1; } 14909fi 14910 14911# Work around bugs in pre-3.0 UWIN ksh. 14912for as_var in ENV MAIL MAILPATH 14913do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14914done 14915PS1='$ ' 14916PS2='> ' 14917PS4='+ ' 14918 14919# NLS nuisances. 14920LC_ALL=C 14921export LC_ALL 14922LANGUAGE=C 14923export LANGUAGE 14924 14925# Required to use basename. 14926if expr a : '\(a\)' >/dev/null 2>&1 && 14927 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14928 as_expr=expr 14929else 14930 as_expr=false 14931fi 14932 14933if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14934 as_basename=basename 14935else 14936 as_basename=false 14937fi 14938 14939 14940# Name of the executable. 14941as_me=`$as_basename -- "$0" || 14942$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14943 X"$0" : 'X\(//\)$' \| \ 14944 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14945$as_echo X/"$0" | 14946 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14947 s//\1/ 14948 q 14949 } 14950 /^X\/\(\/\/\)$/{ 14951 s//\1/ 14952 q 14953 } 14954 /^X\/\(\/\).*/{ 14955 s//\1/ 14956 q 14957 } 14958 s/.*/./; q'` 14959 14960# CDPATH. 14961$as_unset CDPATH 14962 14963 14964 14965 as_lineno_1=$LINENO 14966 as_lineno_2=$LINENO 14967 test "x$as_lineno_1" != "x$as_lineno_2" && 14968 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14969 14970 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14971 # uniformly replaced by the line number. The first 'sed' inserts a 14972 # line-number line after each line using $LINENO; the second 'sed' 14973 # does the real work. The second script uses 'N' to pair each 14974 # line-number line with the line containing $LINENO, and appends 14975 # trailing '-' during substitution so that $LINENO is not a special 14976 # case at line end. 14977 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14978 # scripts with optimization help from Paolo Bonzini. Blame Lee 14979 # E. McMahon (1931-1989) for sed's syntax. :-) 14980 sed -n ' 14981 p 14982 /[$]LINENO/= 14983 ' <$as_myself | 14984 sed ' 14985 s/[$]LINENO.*/&-/ 14986 t lineno 14987 b 14988 :lineno 14989 N 14990 :loop 14991 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14992 t loop 14993 s/-\n.*// 14994 ' >$as_me.lineno && 14995 chmod +x "$as_me.lineno" || 14996 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14997 { (exit 1); exit 1; }; } 14998 14999 # Don't try to exec as it changes $[0], causing all sort of problems 15000 # (the dirname of $[0] is not the place where we might find the 15001 # original and so on. Autoconf is especially sensitive to this). 15002 . "./$as_me.lineno" 15003 # Exit status is that of the last command. 15004 exit 15005} 15006 15007 15008if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15009 as_dirname=dirname 15010else 15011 as_dirname=false 15012fi 15013 15014ECHO_C= ECHO_N= ECHO_T= 15015case `echo -n x` in 15016-n*) 15017 case `echo 'x\c'` in 15018 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15019 *) ECHO_C='\c';; 15020 esac;; 15021*) 15022 ECHO_N='-n';; 15023esac 15024if expr a : '\(a\)' >/dev/null 2>&1 && 15025 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15026 as_expr=expr 15027else 15028 as_expr=false 15029fi 15030 15031rm -f conf$$ conf$$.exe conf$$.file 15032if test -d conf$$.dir; then 15033 rm -f conf$$.dir/conf$$.file 15034else 15035 rm -f conf$$.dir 15036 mkdir conf$$.dir 2>/dev/null 15037fi 15038if (echo >conf$$.file) 2>/dev/null; then 15039 if ln -s conf$$.file conf$$ 2>/dev/null; then 15040 as_ln_s='ln -s' 15041 # ... but there are two gotchas: 15042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15044 # In both cases, we have to default to `cp -p'. 15045 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15046 as_ln_s='cp -p' 15047 elif ln conf$$.file conf$$ 2>/dev/null; then 15048 as_ln_s=ln 15049 else 15050 as_ln_s='cp -p' 15051 fi 15052else 15053 as_ln_s='cp -p' 15054fi 15055rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15056rmdir conf$$.dir 2>/dev/null 15057 15058if mkdir -p . 2>/dev/null; then 15059 as_mkdir_p=: 15060else 15061 test -d ./-p && rmdir ./-p 15062 as_mkdir_p=false 15063fi 15064 15065if test -x / >/dev/null 2>&1; then 15066 as_test_x='test -x' 15067else 15068 if ls -dL / >/dev/null 2>&1; then 15069 as_ls_L_option=L 15070 else 15071 as_ls_L_option= 15072 fi 15073 as_test_x=' 15074 eval sh -c '\'' 15075 if test -d "$1"; then 15076 test -d "$1/."; 15077 else 15078 case $1 in 15079 -*)set "./$1";; 15080 esac; 15081 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 15082 ???[sx]*):;;*)false;;esac;fi 15083 '\'' sh 15084 ' 15085fi 15086as_executable_p=$as_test_x 15087 15088# Sed expression to map a string onto a valid CPP name. 15089as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15090 15091# Sed expression to map a string onto a valid variable name. 15092as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15093 15094 15095exec 6>&1 15096 15097# Save the log message, to keep $[0] and so on meaningful, and to 15098# report actual input values of CONFIG_FILES etc. instead of their 15099# values after options handling. 15100ac_log=" 15101This file was extended by $as_me, which was 15102generated by GNU Autoconf 2.63. Invocation command line was 15103 15104 CONFIG_FILES = $CONFIG_FILES 15105 CONFIG_HEADERS = $CONFIG_HEADERS 15106 CONFIG_LINKS = $CONFIG_LINKS 15107 CONFIG_COMMANDS = $CONFIG_COMMANDS 15108 $ $0 $@ 15109 15110on `(hostname || uname -n) 2>/dev/null | sed 1q` 15111" 15112 15113_ACEOF 15114 15115case $ac_config_files in *" 15116"*) set x $ac_config_files; shift; ac_config_files=$*;; 15117esac 15118 15119case $ac_config_headers in *" 15120"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15121esac 15122 15123 15124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15125# Files that config.status was made for. 15126config_files="$ac_config_files" 15127config_headers="$ac_config_headers" 15128config_commands="$ac_config_commands" 15129 15130_ACEOF 15131 15132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15133ac_cs_usage="\ 15134\`$as_me' instantiates files from templates according to the 15135current configuration. 15136 15137Usage: $0 [OPTION]... [FILE]... 15138 15139 -h, --help print this help, then exit 15140 -V, --version print version number and configuration settings, then exit 15141 -q, --quiet, --silent 15142 do not print progress messages 15143 -d, --debug don't remove temporary files 15144 --recheck update $as_me by reconfiguring in the same conditions 15145 --file=FILE[:TEMPLATE] 15146 instantiate the configuration file FILE 15147 --header=FILE[:TEMPLATE] 15148 instantiate the configuration header FILE 15149 15150Configuration files: 15151$config_files 15152 15153Configuration headers: 15154$config_headers 15155 15156Configuration commands: 15157$config_commands 15158 15159Report bugs to <bug-autoconf@gnu.org>." 15160 15161_ACEOF 15162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15163ac_cs_version="\\ 15164config.status 15165configured by $0, generated by GNU Autoconf 2.63, 15166 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15167 15168Copyright (C) 2008 Free Software Foundation, Inc. 15169This config.status script is free software; the Free Software Foundation 15170gives unlimited permission to copy, distribute and modify it." 15171 15172ac_pwd='$ac_pwd' 15173srcdir='$srcdir' 15174INSTALL='$INSTALL' 15175MKDIR_P='$MKDIR_P' 15176AWK='$AWK' 15177test -n "\$AWK" || AWK=awk 15178_ACEOF 15179 15180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15181# The default lists apply if the user does not specify any file. 15182ac_need_defaults=: 15183while test $# != 0 15184do 15185 case $1 in 15186 --*=*) 15187 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15188 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15189 ac_shift=: 15190 ;; 15191 *) 15192 ac_option=$1 15193 ac_optarg=$2 15194 ac_shift=shift 15195 ;; 15196 esac 15197 15198 case $ac_option in 15199 # Handling of the options. 15200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15201 ac_cs_recheck=: ;; 15202 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15203 $as_echo "$ac_cs_version"; exit ;; 15204 --debug | --debu | --deb | --de | --d | -d ) 15205 debug=: ;; 15206 --file | --fil | --fi | --f ) 15207 $ac_shift 15208 case $ac_optarg in 15209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15210 esac 15211 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 15212 ac_need_defaults=false;; 15213 --header | --heade | --head | --hea ) 15214 $ac_shift 15215 case $ac_optarg in 15216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15217 esac 15218 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 15219 ac_need_defaults=false;; 15220 --he | --h) 15221 # Conflict between --help and --header 15222 { $as_echo "$as_me: error: ambiguous option: $1 15223Try \`$0 --help' for more information." >&2 15224 { (exit 1); exit 1; }; };; 15225 --help | --hel | -h ) 15226 $as_echo "$ac_cs_usage"; exit ;; 15227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15228 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15229 ac_cs_silent=: ;; 15230 15231 # This is an error. 15232 -*) { $as_echo "$as_me: error: unrecognized option: $1 15233Try \`$0 --help' for more information." >&2 15234 { (exit 1); exit 1; }; } ;; 15235 15236 *) ac_config_targets="$ac_config_targets $1" 15237 ac_need_defaults=false ;; 15238 15239 esac 15240 shift 15241done 15242 15243ac_configure_extra_args= 15244 15245if $ac_cs_silent; then 15246 exec 6>/dev/null 15247 ac_configure_extra_args="$ac_configure_extra_args --silent" 15248fi 15249 15250_ACEOF 15251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15252if \$ac_cs_recheck; then 15253 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15254 shift 15255 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15256 CONFIG_SHELL='$SHELL' 15257 export CONFIG_SHELL 15258 exec "\$@" 15259fi 15260 15261_ACEOF 15262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15263exec 5>>config.log 15264{ 15265 echo 15266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15267## Running $as_me. ## 15268_ASBOX 15269 $as_echo "$ac_log" 15270} >&5 15271 15272_ACEOF 15273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15274# 15275# INIT-COMMANDS 15276# 15277AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15278 15279 15280# The HP-UX ksh and POSIX shell print the target directory to stdout 15281# if CDPATH is set. 15282(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15283 15284sed_quote_subst='$sed_quote_subst' 15285double_quote_subst='$double_quote_subst' 15286delay_variable_subst='$delay_variable_subst' 15287macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 15288macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 15289enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 15290enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 15291pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 15292enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 15293host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 15294host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 15295host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 15296build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 15297build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 15298build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 15299SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 15300Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 15301GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 15302EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 15303FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 15304LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 15305NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 15306LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 15307max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 15308ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 15309exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 15310lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 15311lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 15312lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 15313reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 15314reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15315OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 15316deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 15317file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 15318AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 15319AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15320STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 15321RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 15322old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15323old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15324old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15325CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 15326CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15327compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 15328GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 15329lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 15330lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 15331lt_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"`' 15332lt_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"`' 15333objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 15334SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 15335ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 15336MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 15337lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 15338lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 15339lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 15340lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 15341lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 15342need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 15343DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 15344NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 15345LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 15346OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 15347OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 15348libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 15349shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15350extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15351archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 15352enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 15353export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15354whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15355compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 15356old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15357old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15358archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15359archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15360module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15361module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15362with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 15363allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15364no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15365hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15366hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 15367hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 15368hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 15369hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 15370hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 15371hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15372hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 15373inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 15374link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 15375fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 15376always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 15377export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15378exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15379include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15380prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15381file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 15382variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 15383need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 15384need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 15385version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 15386runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15387shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15388shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 15389libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15390library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 15391soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15392postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15393postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15394finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15395finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 15396hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 15397sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15398sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15399hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 15400enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 15401enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 15402enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 15403old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 15404striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 15405 15406LTCC='$LTCC' 15407LTCFLAGS='$LTCFLAGS' 15408compiler='$compiler_DEFAULT' 15409 15410# Quote evaled strings. 15411for var in SED \ 15412GREP \ 15413EGREP \ 15414FGREP \ 15415LD \ 15416NM \ 15417LN_S \ 15418lt_SP2NL \ 15419lt_NL2SP \ 15420reload_flag \ 15421OBJDUMP \ 15422deplibs_check_method \ 15423file_magic_cmd \ 15424AR \ 15425AR_FLAGS \ 15426STRIP \ 15427RANLIB \ 15428CC \ 15429CFLAGS \ 15430compiler \ 15431lt_cv_sys_global_symbol_pipe \ 15432lt_cv_sys_global_symbol_to_cdecl \ 15433lt_cv_sys_global_symbol_to_c_name_address \ 15434lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15435SHELL \ 15436ECHO \ 15437lt_prog_compiler_no_builtin_flag \ 15438lt_prog_compiler_wl \ 15439lt_prog_compiler_pic \ 15440lt_prog_compiler_static \ 15441lt_cv_prog_compiler_c_o \ 15442need_locks \ 15443DSYMUTIL \ 15444NMEDIT \ 15445LIPO \ 15446OTOOL \ 15447OTOOL64 \ 15448shrext_cmds \ 15449export_dynamic_flag_spec \ 15450whole_archive_flag_spec \ 15451compiler_needs_object \ 15452with_gnu_ld \ 15453allow_undefined_flag \ 15454no_undefined_flag \ 15455hardcode_libdir_flag_spec \ 15456hardcode_libdir_flag_spec_ld \ 15457hardcode_libdir_separator \ 15458fix_srcfile_path \ 15459exclude_expsyms \ 15460include_expsyms \ 15461file_list_spec \ 15462variables_saved_for_relink \ 15463libname_spec \ 15464library_names_spec \ 15465soname_spec \ 15466finish_eval \ 15467old_striplib \ 15468striplib; do 15469 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15470 *[\\\\\\\`\\"\\\$]*) 15471 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15472 ;; 15473 *) 15474 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15475 ;; 15476 esac 15477done 15478 15479# Double-quote double-evaled strings. 15480for var in reload_cmds \ 15481old_postinstall_cmds \ 15482old_postuninstall_cmds \ 15483old_archive_cmds \ 15484extract_expsyms_cmds \ 15485old_archive_from_new_cmds \ 15486old_archive_from_expsyms_cmds \ 15487archive_cmds \ 15488archive_expsym_cmds \ 15489module_cmds \ 15490module_expsym_cmds \ 15491export_symbols_cmds \ 15492prelink_cmds \ 15493postinstall_cmds \ 15494postuninstall_cmds \ 15495finish_cmds \ 15496sys_lib_search_path_spec \ 15497sys_lib_dlsearch_path_spec; do 15498 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15499 *[\\\\\\\`\\"\\\$]*) 15500 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15501 ;; 15502 *) 15503 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15504 ;; 15505 esac 15506done 15507 15508# Fix-up fallback echo if it was mangled by the above quoting rules. 15509case \$lt_ECHO in 15510*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 15511 ;; 15512esac 15513 15514ac_aux_dir='$ac_aux_dir' 15515xsi_shell='$xsi_shell' 15516lt_shell_append='$lt_shell_append' 15517 15518# See if we are running on zsh, and set the options which allow our 15519# commands through without removal of \ escapes INIT. 15520if test -n "\${ZSH_VERSION+set}" ; then 15521 setopt NO_GLOB_SUBST 15522fi 15523 15524 15525 PACKAGE='$PACKAGE' 15526 VERSION='$VERSION' 15527 TIMESTAMP='$TIMESTAMP' 15528 RM='$RM' 15529 ofile='$ofile' 15530 15531 15532 15533 15534_ACEOF 15535 15536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15537 15538# Handling of arguments. 15539for ac_config_target in $ac_config_targets 15540do 15541 case $ac_config_target in 15542 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15543 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15544 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15545 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15546 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 15547 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 15548 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 15549 "include/fishsound/Makefile") CONFIG_FILES="$CONFIG_FILES include/fishsound/Makefile" ;; 15550 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15551 "src/libfishsound/Version_script") CONFIG_FILES="$CONFIG_FILES src/libfishsound/Version_script" ;; 15552 "src/libfishsound/Makefile") CONFIG_FILES="$CONFIG_FILES src/libfishsound/Makefile" ;; 15553 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; 15554 "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; 15555 "fishsound.pc") CONFIG_FILES="$CONFIG_FILES fishsound.pc" ;; 15556 15557 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 15558$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15559 { (exit 1); exit 1; }; };; 15560 esac 15561done 15562 15563 15564# If the user did not use the arguments to specify the items to instantiate, 15565# then the envvar interface is used. Set only those that are not. 15566# We use the long form for the default assignment because of an extremely 15567# bizarre bug on SunOS 4.1.3. 15568if $ac_need_defaults; then 15569 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15570 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15572fi 15573 15574# Have a temporary directory for convenience. Make it in the build tree 15575# simply because there is no reason against having it here, and in addition, 15576# creating and moving files from /tmp can sometimes cause problems. 15577# Hook for its removal unless debugging. 15578# Note that there is a small window in which the directory will not be cleaned: 15579# after its creation but before its name has been assigned to `$tmp'. 15580$debug || 15581{ 15582 tmp= 15583 trap 'exit_status=$? 15584 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15585' 0 15586 trap '{ (exit 1); exit 1; }' 1 2 13 15 15587} 15588# Create a (secure) tmp directory for tmp files. 15589 15590{ 15591 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15592 test -n "$tmp" && test -d "$tmp" 15593} || 15594{ 15595 tmp=./conf$$-$RANDOM 15596 (umask 077 && mkdir "$tmp") 15597} || 15598{ 15599 $as_echo "$as_me: cannot create a temporary directory in ." >&2 15600 { (exit 1); exit 1; } 15601} 15602 15603# Set up the scripts for CONFIG_FILES section. 15604# No need to generate them if there are no CONFIG_FILES. 15605# This happens for instance with `./config.status config.h'. 15606if test -n "$CONFIG_FILES"; then 15607 15608 15609ac_cr=' 15610' 15611ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15612if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15613 ac_cs_awk_cr='\\r' 15614else 15615 ac_cs_awk_cr=$ac_cr 15616fi 15617 15618echo 'BEGIN {' >"$tmp/subs1.awk" && 15619_ACEOF 15620 15621 15622{ 15623 echo "cat >conf$$subs.awk <<_ACEOF" && 15624 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15625 echo "_ACEOF" 15626} >conf$$subs.sh || 15627 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15628$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15629 { (exit 1); exit 1; }; } 15630ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15631ac_delim='%!_!# ' 15632for ac_last_try in false false false false false :; do 15633 . ./conf$$subs.sh || 15634 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15635$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15636 { (exit 1); exit 1; }; } 15637 15638 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15639 if test $ac_delim_n = $ac_delim_num; then 15640 break 15641 elif $ac_last_try; then 15642 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15643$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15644 { (exit 1); exit 1; }; } 15645 else 15646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15647 fi 15648done 15649rm -f conf$$subs.sh 15650 15651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15652cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15653_ACEOF 15654sed -n ' 15655h 15656s/^/S["/; s/!.*/"]=/ 15657p 15658g 15659s/^[^!]*!// 15660:repl 15661t repl 15662s/'"$ac_delim"'$// 15663t delim 15664:nl 15665h 15666s/\(.\{148\}\).*/\1/ 15667t more1 15668s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15669p 15670n 15671b repl 15672:more1 15673s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15674p 15675g 15676s/.\{148\}// 15677t nl 15678:delim 15679h 15680s/\(.\{148\}\).*/\1/ 15681t more2 15682s/["\\]/\\&/g; s/^/"/; s/$/"/ 15683p 15684b 15685:more2 15686s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15687p 15688g 15689s/.\{148\}// 15690t delim 15691' <conf$$subs.awk | sed ' 15692/^[^""]/{ 15693 N 15694 s/\n// 15695} 15696' >>$CONFIG_STATUS || ac_write_fail=1 15697rm -f conf$$subs.awk 15698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15699_ACAWK 15700cat >>"\$tmp/subs1.awk" <<_ACAWK && 15701 for (key in S) S_is_set[key] = 1 15702 FS = "" 15703 15704} 15705{ 15706 line = $ 0 15707 nfields = split(line, field, "@") 15708 substed = 0 15709 len = length(field[1]) 15710 for (i = 2; i < nfields; i++) { 15711 key = field[i] 15712 keylen = length(key) 15713 if (S_is_set[key]) { 15714 value = S[key] 15715 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15716 len += length(value) + length(field[++i]) 15717 substed = 1 15718 } else 15719 len += 1 + keylen 15720 } 15721 15722 print line 15723} 15724 15725_ACAWK 15726_ACEOF 15727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15728if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15729 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15730else 15731 cat 15732fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15733 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 15734$as_echo "$as_me: error: could not setup config files machinery" >&2;} 15735 { (exit 1); exit 1; }; } 15736_ACEOF 15737 15738# VPATH may cause trouble with some makes, so we remove $(srcdir), 15739# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15740# trailing colons and then remove the whole line if VPATH becomes empty 15741# (actually we leave an empty line to preserve line numbers). 15742if test "x$srcdir" = x.; then 15743 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15744s/:*\$(srcdir):*/:/ 15745s/:*\${srcdir}:*/:/ 15746s/:*@srcdir@:*/:/ 15747s/^\([^=]*=[ ]*\):*/\1/ 15748s/:*$// 15749s/^[^=]*=[ ]*$// 15750}' 15751fi 15752 15753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15754fi # test -n "$CONFIG_FILES" 15755 15756# Set up the scripts for CONFIG_HEADERS section. 15757# No need to generate them if there are no CONFIG_HEADERS. 15758# This happens for instance with `./config.status Makefile'. 15759if test -n "$CONFIG_HEADERS"; then 15760cat >"$tmp/defines.awk" <<\_ACAWK || 15761BEGIN { 15762_ACEOF 15763 15764# Transform confdefs.h into an awk script `defines.awk', embedded as 15765# here-document in config.status, that substitutes the proper values into 15766# config.h.in to produce config.h. 15767 15768# Create a delimiter string that does not exist in confdefs.h, to ease 15769# handling of long lines. 15770ac_delim='%!_!# ' 15771for ac_last_try in false false :; do 15772 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15773 if test -z "$ac_t"; then 15774 break 15775 elif $ac_last_try; then 15776 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 15777$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 15778 { (exit 1); exit 1; }; } 15779 else 15780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15781 fi 15782done 15783 15784# For the awk script, D is an array of macro values keyed by name, 15785# likewise P contains macro parameters if any. Preserve backslash 15786# newline sequences. 15787 15788ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15789sed -n ' 15790s/.\{148\}/&'"$ac_delim"'/g 15791t rset 15792:rset 15793s/^[ ]*#[ ]*define[ ][ ]*/ / 15794t def 15795d 15796:def 15797s/\\$// 15798t bsnl 15799s/["\\]/\\&/g 15800s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15801D["\1"]=" \3"/p 15802s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15803d 15804:bsnl 15805s/["\\]/\\&/g 15806s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15807D["\1"]=" \3\\\\\\n"\\/p 15808t cont 15809s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15810t cont 15811d 15812:cont 15813n 15814s/.\{148\}/&'"$ac_delim"'/g 15815t clear 15816:clear 15817s/\\$// 15818t bsnlc 15819s/["\\]/\\&/g; s/^/"/; s/$/"/p 15820d 15821:bsnlc 15822s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15823b cont 15824' <confdefs.h | sed ' 15825s/'"$ac_delim"'/"\\\ 15826"/g' >>$CONFIG_STATUS || ac_write_fail=1 15827 15828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15829 for (key in D) D_is_set[key] = 1 15830 FS = "" 15831} 15832/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15833 line = \$ 0 15834 split(line, arg, " ") 15835 if (arg[1] == "#") { 15836 defundef = arg[2] 15837 mac1 = arg[3] 15838 } else { 15839 defundef = substr(arg[1], 2) 15840 mac1 = arg[2] 15841 } 15842 split(mac1, mac2, "(") #) 15843 macro = mac2[1] 15844 prefix = substr(line, 1, index(line, defundef) - 1) 15845 if (D_is_set[macro]) { 15846 # Preserve the white space surrounding the "#". 15847 print prefix "define", macro P[macro] D[macro] 15848 next 15849 } else { 15850 # Replace #undef with comments. This is necessary, for example, 15851 # in the case of _POSIX_SOURCE, which is predefined and required 15852 # on some systems where configure will not decide to define it. 15853 if (defundef == "undef") { 15854 print "/*", prefix defundef, macro, "*/" 15855 next 15856 } 15857 } 15858} 15859{ print } 15860_ACAWK 15861_ACEOF 15862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15863 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 15864$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 15865 { (exit 1); exit 1; }; } 15866fi # test -n "$CONFIG_HEADERS" 15867 15868 15869eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15870shift 15871for ac_tag 15872do 15873 case $ac_tag in 15874 :[FHLC]) ac_mode=$ac_tag; continue;; 15875 esac 15876 case $ac_mode$ac_tag in 15877 :[FHL]*:*);; 15878 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 15879$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 15880 { (exit 1); exit 1; }; };; 15881 :[FH]-) ac_tag=-:-;; 15882 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15883 esac 15884 ac_save_IFS=$IFS 15885 IFS=: 15886 set x $ac_tag 15887 IFS=$ac_save_IFS 15888 shift 15889 ac_file=$1 15890 shift 15891 15892 case $ac_mode in 15893 :L) ac_source=$1;; 15894 :[FH]) 15895 ac_file_inputs= 15896 for ac_f 15897 do 15898 case $ac_f in 15899 -) ac_f="$tmp/stdin";; 15900 *) # Look for the file first in the build tree, then in the source tree 15901 # (if the path is not absolute). The absolute path cannot be DOS-style, 15902 # because $ac_f cannot contain `:'. 15903 test -f "$ac_f" || 15904 case $ac_f in 15905 [\\/$]*) false;; 15906 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15907 esac || 15908 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 15909$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 15910 { (exit 1); exit 1; }; };; 15911 esac 15912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15913 ac_file_inputs="$ac_file_inputs '$ac_f'" 15914 done 15915 15916 # Let's still pretend it is `configure' which instantiates (i.e., don't 15917 # use $as_me), people would be surprised to read: 15918 # /* config.h. Generated by config.status. */ 15919 configure_input='Generated from '` 15920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15921 `' by configure.' 15922 if test x"$ac_file" != x-; then 15923 configure_input="$ac_file. $configure_input" 15924 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 15925$as_echo "$as_me: creating $ac_file" >&6;} 15926 fi 15927 # Neutralize special characters interpreted by sed in replacement strings. 15928 case $configure_input in #( 15929 *\&* | *\|* | *\\* ) 15930 ac_sed_conf_input=`$as_echo "$configure_input" | 15931 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15932 *) ac_sed_conf_input=$configure_input;; 15933 esac 15934 15935 case $ac_tag in 15936 *:-:* | *:-) cat >"$tmp/stdin" \ 15937 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15938$as_echo "$as_me: error: could not create $ac_file" >&2;} 15939 { (exit 1); exit 1; }; } ;; 15940 esac 15941 ;; 15942 esac 15943 15944 ac_dir=`$as_dirname -- "$ac_file" || 15945$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15946 X"$ac_file" : 'X\(//\)[^/]' \| \ 15947 X"$ac_file" : 'X\(//\)$' \| \ 15948 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15949$as_echo X"$ac_file" | 15950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15951 s//\1/ 15952 q 15953 } 15954 /^X\(\/\/\)[^/].*/{ 15955 s//\1/ 15956 q 15957 } 15958 /^X\(\/\/\)$/{ 15959 s//\1/ 15960 q 15961 } 15962 /^X\(\/\).*/{ 15963 s//\1/ 15964 q 15965 } 15966 s/.*/./; q'` 15967 { as_dir="$ac_dir" 15968 case $as_dir in #( 15969 -*) as_dir=./$as_dir;; 15970 esac 15971 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15972 as_dirs= 15973 while :; do 15974 case $as_dir in #( 15975 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15976 *) as_qdir=$as_dir;; 15977 esac 15978 as_dirs="'$as_qdir' $as_dirs" 15979 as_dir=`$as_dirname -- "$as_dir" || 15980$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15981 X"$as_dir" : 'X\(//\)[^/]' \| \ 15982 X"$as_dir" : 'X\(//\)$' \| \ 15983 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15984$as_echo X"$as_dir" | 15985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15986 s//\1/ 15987 q 15988 } 15989 /^X\(\/\/\)[^/].*/{ 15990 s//\1/ 15991 q 15992 } 15993 /^X\(\/\/\)$/{ 15994 s//\1/ 15995 q 15996 } 15997 /^X\(\/\).*/{ 15998 s//\1/ 15999 q 16000 } 16001 s/.*/./; q'` 16002 test -d "$as_dir" && break 16003 done 16004 test -z "$as_dirs" || eval "mkdir $as_dirs" 16005 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16006$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 16007 { (exit 1); exit 1; }; }; } 16008 ac_builddir=. 16009 16010case "$ac_dir" in 16011.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16012*) 16013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16014 # A ".." for each directory in $ac_dir_suffix. 16015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16016 case $ac_top_builddir_sub in 16017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16019 esac ;; 16020esac 16021ac_abs_top_builddir=$ac_pwd 16022ac_abs_builddir=$ac_pwd$ac_dir_suffix 16023# for backward compatibility: 16024ac_top_builddir=$ac_top_build_prefix 16025 16026case $srcdir in 16027 .) # We are building in place. 16028 ac_srcdir=. 16029 ac_top_srcdir=$ac_top_builddir_sub 16030 ac_abs_top_srcdir=$ac_pwd ;; 16031 [\\/]* | ?:[\\/]* ) # Absolute name. 16032 ac_srcdir=$srcdir$ac_dir_suffix; 16033 ac_top_srcdir=$srcdir 16034 ac_abs_top_srcdir=$srcdir ;; 16035 *) # Relative name. 16036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16037 ac_top_srcdir=$ac_top_build_prefix$srcdir 16038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16039esac 16040ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16041 16042 16043 case $ac_mode in 16044 :F) 16045 # 16046 # CONFIG_FILE 16047 # 16048 16049 case $INSTALL in 16050 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16051 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16052 esac 16053 ac_MKDIR_P=$MKDIR_P 16054 case $MKDIR_P in 16055 [\\/$]* | ?:[\\/]* ) ;; 16056 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16057 esac 16058_ACEOF 16059 16060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16061# If the template does not know about datarootdir, expand it. 16062# FIXME: This hack should be removed a few years after 2.60. 16063ac_datarootdir_hack=; ac_datarootdir_seen= 16064 16065ac_sed_dataroot=' 16066/datarootdir/ { 16067 p 16068 q 16069} 16070/@datadir@/p 16071/@docdir@/p 16072/@infodir@/p 16073/@localedir@/p 16074/@mandir@/p 16075' 16076case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16077*datarootdir*) ac_datarootdir_seen=yes;; 16078*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16079 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16080$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16081_ACEOF 16082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16083 ac_datarootdir_hack=' 16084 s&@datadir@&$datadir&g 16085 s&@docdir@&$docdir&g 16086 s&@infodir@&$infodir&g 16087 s&@localedir@&$localedir&g 16088 s&@mandir@&$mandir&g 16089 s&\\\${datarootdir}&$datarootdir&g' ;; 16090esac 16091_ACEOF 16092 16093# Neutralize VPATH when `$srcdir' = `.'. 16094# Shell code in configure.ac might set extrasub. 16095# FIXME: do we really want to maintain this feature? 16096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16097ac_sed_extra="$ac_vpsub 16098$extrasub 16099_ACEOF 16100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16101:t 16102/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16103s|@configure_input@|$ac_sed_conf_input|;t t 16104s&@top_builddir@&$ac_top_builddir_sub&;t t 16105s&@top_build_prefix@&$ac_top_build_prefix&;t t 16106s&@srcdir@&$ac_srcdir&;t t 16107s&@abs_srcdir@&$ac_abs_srcdir&;t t 16108s&@top_srcdir@&$ac_top_srcdir&;t t 16109s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16110s&@builddir@&$ac_builddir&;t t 16111s&@abs_builddir@&$ac_abs_builddir&;t t 16112s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16113s&@INSTALL@&$ac_INSTALL&;t t 16114s&@MKDIR_P@&$ac_MKDIR_P&;t t 16115$ac_datarootdir_hack 16116" 16117eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16118 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16119$as_echo "$as_me: error: could not create $ac_file" >&2;} 16120 { (exit 1); exit 1; }; } 16121 16122test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16123 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16124 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16125 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16126which seems to be undefined. Please make sure it is defined." >&5 16127$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16128which seems to be undefined. Please make sure it is defined." >&2;} 16129 16130 rm -f "$tmp/stdin" 16131 case $ac_file in 16132 -) cat "$tmp/out" && rm -f "$tmp/out";; 16133 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16134 esac \ 16135 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16136$as_echo "$as_me: error: could not create $ac_file" >&2;} 16137 { (exit 1); exit 1; }; } 16138 ;; 16139 :H) 16140 # 16141 # CONFIG_HEADER 16142 # 16143 if test x"$ac_file" != x-; then 16144 { 16145 $as_echo "/* $configure_input */" \ 16146 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16147 } >"$tmp/config.h" \ 16148 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16149$as_echo "$as_me: error: could not create $ac_file" >&2;} 16150 { (exit 1); exit 1; }; } 16151 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16152 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 16153$as_echo "$as_me: $ac_file is unchanged" >&6;} 16154 else 16155 rm -f "$ac_file" 16156 mv "$tmp/config.h" "$ac_file" \ 16157 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16158$as_echo "$as_me: error: could not create $ac_file" >&2;} 16159 { (exit 1); exit 1; }; } 16160 fi 16161 else 16162 $as_echo "/* $configure_input */" \ 16163 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16164 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 16165$as_echo "$as_me: error: could not create -" >&2;} 16166 { (exit 1); exit 1; }; } 16167 fi 16168# Compute "$ac_file"'s index in $config_headers. 16169_am_arg="$ac_file" 16170_am_stamp_count=1 16171for _am_header in $config_headers :; do 16172 case $_am_header in 16173 $_am_arg | $_am_arg:* ) 16174 break ;; 16175 * ) 16176 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16177 esac 16178done 16179echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16180$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16181 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16182 X"$_am_arg" : 'X\(//\)$' \| \ 16183 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16184$as_echo X"$_am_arg" | 16185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16186 s//\1/ 16187 q 16188 } 16189 /^X\(\/\/\)[^/].*/{ 16190 s//\1/ 16191 q 16192 } 16193 /^X\(\/\/\)$/{ 16194 s//\1/ 16195 q 16196 } 16197 /^X\(\/\).*/{ 16198 s//\1/ 16199 q 16200 } 16201 s/.*/./; q'`/stamp-h$_am_stamp_count 16202 ;; 16203 16204 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 16205$as_echo "$as_me: executing $ac_file commands" >&6;} 16206 ;; 16207 esac 16208 16209 16210 case $ac_file$ac_mode in 16211 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16212 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16213 # are listed without --file. Let's play safe and only enable the eval 16214 # if we detect the quoting. 16215 case $CONFIG_FILES in 16216 *\'*) eval set x "$CONFIG_FILES" ;; 16217 *) set x $CONFIG_FILES ;; 16218 esac 16219 shift 16220 for mf 16221 do 16222 # Strip MF so we end up with the name of the file. 16223 mf=`echo "$mf" | sed -e 's/:.*$//'` 16224 # Check whether this is an Automake generated Makefile or not. 16225 # We used to match only the files named `Makefile.in', but 16226 # some people rename them; so instead we look at the file content. 16227 # Grep'ing the first line is not enough: some people post-process 16228 # each Makefile.in and add a new line on top of each file to say so. 16229 # Grep'ing the whole file is not good either: AIX grep has a line 16230 # limit of 2048, but all sed's we know have understand at least 4000. 16231 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16232 dirpart=`$as_dirname -- "$mf" || 16233$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16234 X"$mf" : 'X\(//\)[^/]' \| \ 16235 X"$mf" : 'X\(//\)$' \| \ 16236 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16237$as_echo X"$mf" | 16238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16239 s//\1/ 16240 q 16241 } 16242 /^X\(\/\/\)[^/].*/{ 16243 s//\1/ 16244 q 16245 } 16246 /^X\(\/\/\)$/{ 16247 s//\1/ 16248 q 16249 } 16250 /^X\(\/\).*/{ 16251 s//\1/ 16252 q 16253 } 16254 s/.*/./; q'` 16255 else 16256 continue 16257 fi 16258 # Extract the definition of DEPDIR, am__include, and am__quote 16259 # from the Makefile without running `make'. 16260 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16261 test -z "$DEPDIR" && continue 16262 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16263 test -z "am__include" && continue 16264 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16265 # When using ansi2knr, U may be empty or an underscore; expand it 16266 U=`sed -n 's/^U = //p' < "$mf"` 16267 # Find all dependency output files, they are included files with 16268 # $(DEPDIR) in their names. We invoke sed twice because it is the 16269 # simplest approach to changing $(DEPDIR) to its actual value in the 16270 # expansion. 16271 for file in `sed -n " 16272 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16273 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16274 # Make sure the directory exists. 16275 test -f "$dirpart/$file" && continue 16276 fdir=`$as_dirname -- "$file" || 16277$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16278 X"$file" : 'X\(//\)[^/]' \| \ 16279 X"$file" : 'X\(//\)$' \| \ 16280 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16281$as_echo X"$file" | 16282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16283 s//\1/ 16284 q 16285 } 16286 /^X\(\/\/\)[^/].*/{ 16287 s//\1/ 16288 q 16289 } 16290 /^X\(\/\/\)$/{ 16291 s//\1/ 16292 q 16293 } 16294 /^X\(\/\).*/{ 16295 s//\1/ 16296 q 16297 } 16298 s/.*/./; q'` 16299 { as_dir=$dirpart/$fdir 16300 case $as_dir in #( 16301 -*) as_dir=./$as_dir;; 16302 esac 16303 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16304 as_dirs= 16305 while :; do 16306 case $as_dir in #( 16307 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16308 *) as_qdir=$as_dir;; 16309 esac 16310 as_dirs="'$as_qdir' $as_dirs" 16311 as_dir=`$as_dirname -- "$as_dir" || 16312$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16313 X"$as_dir" : 'X\(//\)[^/]' \| \ 16314 X"$as_dir" : 'X\(//\)$' \| \ 16315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16316$as_echo X"$as_dir" | 16317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16318 s//\1/ 16319 q 16320 } 16321 /^X\(\/\/\)[^/].*/{ 16322 s//\1/ 16323 q 16324 } 16325 /^X\(\/\/\)$/{ 16326 s//\1/ 16327 q 16328 } 16329 /^X\(\/\).*/{ 16330 s//\1/ 16331 q 16332 } 16333 s/.*/./; q'` 16334 test -d "$as_dir" && break 16335 done 16336 test -z "$as_dirs" || eval "mkdir $as_dirs" 16337 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16338$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 16339 { (exit 1); exit 1; }; }; } 16340 # echo "creating $dirpart/$file" 16341 echo '# dummy' > "$dirpart/$file" 16342 done 16343 done 16344} 16345 ;; 16346 "libtool":C) 16347 16348 # See if we are running on zsh, and set the options which allow our 16349 # commands through without removal of \ escapes. 16350 if test -n "${ZSH_VERSION+set}" ; then 16351 setopt NO_GLOB_SUBST 16352 fi 16353 16354 cfgfile="${ofile}T" 16355 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16356 $RM "$cfgfile" 16357 16358 cat <<_LT_EOF >> "$cfgfile" 16359#! $SHELL 16360 16361# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16362# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16363# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16364# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16365# 16366# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16367# 2006, 2007, 2008 Free Software Foundation, Inc. 16368# Written by Gordon Matzigkeit, 1996 16369# 16370# This file is part of GNU Libtool. 16371# 16372# GNU Libtool is free software; you can redistribute it and/or 16373# modify it under the terms of the GNU General Public License as 16374# published by the Free Software Foundation; either version 2 of 16375# the License, or (at your option) any later version. 16376# 16377# As a special exception to the GNU General Public License, 16378# if you distribute this file as part of a program or library that 16379# is built using GNU Libtool, you may include this file under the 16380# same distribution terms that you use for the rest of that program. 16381# 16382# GNU Libtool is distributed in the hope that it will be useful, 16383# but WITHOUT ANY WARRANTY; without even the implied warranty of 16384# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16385# GNU General Public License for more details. 16386# 16387# You should have received a copy of the GNU General Public License 16388# along with GNU Libtool; see the file COPYING. If not, a copy 16389# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16390# obtained by writing to the Free Software Foundation, Inc., 16391# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16392 16393 16394# The names of the tagged configurations supported by this script. 16395available_tags="" 16396 16397# ### BEGIN LIBTOOL CONFIG 16398 16399# Which release of libtool.m4 was used? 16400macro_version=$macro_version 16401macro_revision=$macro_revision 16402 16403# Whether or not to build shared libraries. 16404build_libtool_libs=$enable_shared 16405 16406# Whether or not to build static libraries. 16407build_old_libs=$enable_static 16408 16409# What type of objects to build. 16410pic_mode=$pic_mode 16411 16412# Whether or not to optimize for fast installation. 16413fast_install=$enable_fast_install 16414 16415# The host system. 16416host_alias=$host_alias 16417host=$host 16418host_os=$host_os 16419 16420# The build system. 16421build_alias=$build_alias 16422build=$build 16423build_os=$build_os 16424 16425# A sed program that does not truncate output. 16426SED=$lt_SED 16427 16428# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16429Xsed="\$SED -e 1s/^X//" 16430 16431# A grep program that handles long lines. 16432GREP=$lt_GREP 16433 16434# An ERE matcher. 16435EGREP=$lt_EGREP 16436 16437# A literal string matcher. 16438FGREP=$lt_FGREP 16439 16440# A BSD- or MS-compatible name lister. 16441NM=$lt_NM 16442 16443# Whether we need soft or hard links. 16444LN_S=$lt_LN_S 16445 16446# What is the maximum length of a command? 16447max_cmd_len=$max_cmd_len 16448 16449# Object file suffix (normally "o"). 16450objext=$ac_objext 16451 16452# Executable file suffix (normally ""). 16453exeext=$exeext 16454 16455# whether the shell understands "unset". 16456lt_unset=$lt_unset 16457 16458# turn spaces into newlines. 16459SP2NL=$lt_lt_SP2NL 16460 16461# turn newlines into spaces. 16462NL2SP=$lt_lt_NL2SP 16463 16464# How to create reloadable object files. 16465reload_flag=$lt_reload_flag 16466reload_cmds=$lt_reload_cmds 16467 16468# An object symbol dumper. 16469OBJDUMP=$lt_OBJDUMP 16470 16471# Method to check whether dependent libraries are shared objects. 16472deplibs_check_method=$lt_deplibs_check_method 16473 16474# Command to use when deplibs_check_method == "file_magic". 16475file_magic_cmd=$lt_file_magic_cmd 16476 16477# The archiver. 16478AR=$lt_AR 16479AR_FLAGS=$lt_AR_FLAGS 16480 16481# A symbol stripping program. 16482STRIP=$lt_STRIP 16483 16484# Commands used to install an old-style archive. 16485RANLIB=$lt_RANLIB 16486old_postinstall_cmds=$lt_old_postinstall_cmds 16487old_postuninstall_cmds=$lt_old_postuninstall_cmds 16488 16489# A C compiler. 16490LTCC=$lt_CC 16491 16492# LTCC compiler flags. 16493LTCFLAGS=$lt_CFLAGS 16494 16495# Take the output of nm and produce a listing of raw symbols and C names. 16496global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16497 16498# Transform the output of nm in a proper C declaration. 16499global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16500 16501# Transform the output of nm in a C name address pair. 16502global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16503 16504# Transform the output of nm in a C name address pair when lib prefix is needed. 16505global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16506 16507# The name of the directory that contains temporary libtool files. 16508objdir=$objdir 16509 16510# Shell to use when invoking shell scripts. 16511SHELL=$lt_SHELL 16512 16513# An echo program that does not interpret backslashes. 16514ECHO=$lt_ECHO 16515 16516# Used to examine libraries when file_magic_cmd begins with "file". 16517MAGIC_CMD=$MAGIC_CMD 16518 16519# Must we lock files when doing compilation? 16520need_locks=$lt_need_locks 16521 16522# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16523DSYMUTIL=$lt_DSYMUTIL 16524 16525# Tool to change global to local symbols on Mac OS X. 16526NMEDIT=$lt_NMEDIT 16527 16528# Tool to manipulate fat objects and archives on Mac OS X. 16529LIPO=$lt_LIPO 16530 16531# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16532OTOOL=$lt_OTOOL 16533 16534# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16535OTOOL64=$lt_OTOOL64 16536 16537# Old archive suffix (normally "a"). 16538libext=$libext 16539 16540# Shared library suffix (normally ".so"). 16541shrext_cmds=$lt_shrext_cmds 16542 16543# The commands to extract the exported symbol list from a shared archive. 16544extract_expsyms_cmds=$lt_extract_expsyms_cmds 16545 16546# Variables whose values should be saved in libtool wrapper scripts and 16547# restored at link time. 16548variables_saved_for_relink=$lt_variables_saved_for_relink 16549 16550# Do we need the "lib" prefix for modules? 16551need_lib_prefix=$need_lib_prefix 16552 16553# Do we need a version for libraries? 16554need_version=$need_version 16555 16556# Library versioning type. 16557version_type=$version_type 16558 16559# Shared library runtime path variable. 16560runpath_var=$runpath_var 16561 16562# Shared library path variable. 16563shlibpath_var=$shlibpath_var 16564 16565# Is shlibpath searched before the hard-coded library search path? 16566shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16567 16568# Format of library name prefix. 16569libname_spec=$lt_libname_spec 16570 16571# List of archive names. First name is the real one, the rest are links. 16572# The last name is the one that the linker finds with -lNAME 16573library_names_spec=$lt_library_names_spec 16574 16575# The coded name of the library, if different from the real name. 16576soname_spec=$lt_soname_spec 16577 16578# Command to use after installation of a shared archive. 16579postinstall_cmds=$lt_postinstall_cmds 16580 16581# Command to use after uninstallation of a shared archive. 16582postuninstall_cmds=$lt_postuninstall_cmds 16583 16584# Commands used to finish a libtool library installation in a directory. 16585finish_cmds=$lt_finish_cmds 16586 16587# As "finish_cmds", except a single script fragment to be evaled but 16588# not shown. 16589finish_eval=$lt_finish_eval 16590 16591# Whether we should hardcode library paths into libraries. 16592hardcode_into_libs=$hardcode_into_libs 16593 16594# Compile-time system search path for libraries. 16595sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16596 16597# Run-time system search path for libraries. 16598sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16599 16600# Whether dlopen is supported. 16601dlopen_support=$enable_dlopen 16602 16603# Whether dlopen of programs is supported. 16604dlopen_self=$enable_dlopen_self 16605 16606# Whether dlopen of statically linked programs is supported. 16607dlopen_self_static=$enable_dlopen_self_static 16608 16609# Commands to strip libraries. 16610old_striplib=$lt_old_striplib 16611striplib=$lt_striplib 16612 16613 16614# The linker used to build libraries. 16615LD=$lt_LD 16616 16617# Commands used to build an old-style archive. 16618old_archive_cmds=$lt_old_archive_cmds 16619 16620# A language specific compiler. 16621CC=$lt_compiler 16622 16623# Is the compiler the GNU compiler? 16624with_gcc=$GCC 16625 16626# Compiler flag to turn off builtin functions. 16627no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16628 16629# How to pass a linker flag through the compiler. 16630wl=$lt_lt_prog_compiler_wl 16631 16632# Additional compiler flags for building library objects. 16633pic_flag=$lt_lt_prog_compiler_pic 16634 16635# Compiler flag to prevent dynamic linking. 16636link_static_flag=$lt_lt_prog_compiler_static 16637 16638# Does compiler simultaneously support -c and -o options? 16639compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16640 16641# Whether or not to add -lc for building shared libraries. 16642build_libtool_need_lc=$archive_cmds_need_lc 16643 16644# Whether or not to disallow shared libs when runtime libs are static. 16645allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16646 16647# Compiler flag to allow reflexive dlopens. 16648export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16649 16650# Compiler flag to generate shared objects directly from archives. 16651whole_archive_flag_spec=$lt_whole_archive_flag_spec 16652 16653# Whether the compiler copes with passing no objects directly. 16654compiler_needs_object=$lt_compiler_needs_object 16655 16656# Create an old-style archive from a shared archive. 16657old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16658 16659# Create a temporary old-style archive to link instead of a shared archive. 16660old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16661 16662# Commands used to build a shared archive. 16663archive_cmds=$lt_archive_cmds 16664archive_expsym_cmds=$lt_archive_expsym_cmds 16665 16666# Commands used to build a loadable module if different from building 16667# a shared archive. 16668module_cmds=$lt_module_cmds 16669module_expsym_cmds=$lt_module_expsym_cmds 16670 16671# Whether we are building with GNU ld or not. 16672with_gnu_ld=$lt_with_gnu_ld 16673 16674# Flag that allows shared libraries with undefined symbols to be built. 16675allow_undefined_flag=$lt_allow_undefined_flag 16676 16677# Flag that enforces no undefined symbols. 16678no_undefined_flag=$lt_no_undefined_flag 16679 16680# Flag to hardcode \$libdir into a binary during linking. 16681# This must work even if \$libdir does not exist 16682hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16683 16684# If ld is used when linking, flag to hardcode \$libdir into a binary 16685# during linking. This must work even if \$libdir does not exist. 16686hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16687 16688# Whether we need a single "-rpath" flag with a separated argument. 16689hardcode_libdir_separator=$lt_hardcode_libdir_separator 16690 16691# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16692# DIR into the resulting binary. 16693hardcode_direct=$hardcode_direct 16694 16695# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16696# DIR into the resulting binary and the resulting library dependency is 16697# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16698# library is relocated. 16699hardcode_direct_absolute=$hardcode_direct_absolute 16700 16701# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16702# into the resulting binary. 16703hardcode_minus_L=$hardcode_minus_L 16704 16705# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16706# into the resulting binary. 16707hardcode_shlibpath_var=$hardcode_shlibpath_var 16708 16709# Set to "yes" if building a shared library automatically hardcodes DIR 16710# into the library and all subsequent libraries and executables linked 16711# against it. 16712hardcode_automatic=$hardcode_automatic 16713 16714# Set to yes if linker adds runtime paths of dependent libraries 16715# to runtime path list. 16716inherit_rpath=$inherit_rpath 16717 16718# Whether libtool must link a program against all its dependency libraries. 16719link_all_deplibs=$link_all_deplibs 16720 16721# Fix the shell variable \$srcfile for the compiler. 16722fix_srcfile_path=$lt_fix_srcfile_path 16723 16724# Set to "yes" if exported symbols are required. 16725always_export_symbols=$always_export_symbols 16726 16727# The commands to list exported symbols. 16728export_symbols_cmds=$lt_export_symbols_cmds 16729 16730# Symbols that should not be listed in the preloaded symbols. 16731exclude_expsyms=$lt_exclude_expsyms 16732 16733# Symbols that must always be exported. 16734include_expsyms=$lt_include_expsyms 16735 16736# Commands necessary for linking programs (against libraries) with templates. 16737prelink_cmds=$lt_prelink_cmds 16738 16739# Specify filename containing input files. 16740file_list_spec=$lt_file_list_spec 16741 16742# How to hardcode a shared library path into an executable. 16743hardcode_action=$hardcode_action 16744 16745# ### END LIBTOOL CONFIG 16746 16747_LT_EOF 16748 16749 case $host_os in 16750 aix3*) 16751 cat <<\_LT_EOF >> "$cfgfile" 16752# AIX sometimes has problems with the GCC collect2 program. For some 16753# reason, if we set the COLLECT_NAMES environment variable, the problems 16754# vanish in a puff of smoke. 16755if test "X${COLLECT_NAMES+set}" != Xset; then 16756 COLLECT_NAMES= 16757 export COLLECT_NAMES 16758fi 16759_LT_EOF 16760 ;; 16761 esac 16762 16763 16764ltmain="$ac_aux_dir/ltmain.sh" 16765 16766 16767 # We use sed instead of cat because bash on DJGPP gets confused if 16768 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16769 # text mode, it properly converts lines to CR/LF. This bash problem 16770 # is reportedly fixed, but why not run on old versions too? 16771 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16772 || (rm -f "$cfgfile"; exit 1) 16773 16774 case $xsi_shell in 16775 yes) 16776 cat << \_LT_EOF >> "$cfgfile" 16777 16778# func_dirname file append nondir_replacement 16779# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16780# otherwise set result to NONDIR_REPLACEMENT. 16781func_dirname () 16782{ 16783 case ${1} in 16784 */*) func_dirname_result="${1%/*}${2}" ;; 16785 * ) func_dirname_result="${3}" ;; 16786 esac 16787} 16788 16789# func_basename file 16790func_basename () 16791{ 16792 func_basename_result="${1##*/}" 16793} 16794 16795# func_dirname_and_basename file append nondir_replacement 16796# perform func_basename and func_dirname in a single function 16797# call: 16798# dirname: Compute the dirname of FILE. If nonempty, 16799# add APPEND to the result, otherwise set result 16800# to NONDIR_REPLACEMENT. 16801# value returned in "$func_dirname_result" 16802# basename: Compute filename of FILE. 16803# value retuned in "$func_basename_result" 16804# Implementation must be kept synchronized with func_dirname 16805# and func_basename. For efficiency, we do not delegate to 16806# those functions but instead duplicate the functionality here. 16807func_dirname_and_basename () 16808{ 16809 case ${1} in 16810 */*) func_dirname_result="${1%/*}${2}" ;; 16811 * ) func_dirname_result="${3}" ;; 16812 esac 16813 func_basename_result="${1##*/}" 16814} 16815 16816# func_stripname prefix suffix name 16817# strip PREFIX and SUFFIX off of NAME. 16818# PREFIX and SUFFIX must not contain globbing or regex special 16819# characters, hashes, percent signs, but SUFFIX may contain a leading 16820# dot (in which case that matches only a dot). 16821func_stripname () 16822{ 16823 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16824 # positional parameters, so assign one to ordinary parameter first. 16825 func_stripname_result=${3} 16826 func_stripname_result=${func_stripname_result#"${1}"} 16827 func_stripname_result=${func_stripname_result%"${2}"} 16828} 16829 16830# func_opt_split 16831func_opt_split () 16832{ 16833 func_opt_split_opt=${1%%=*} 16834 func_opt_split_arg=${1#*=} 16835} 16836 16837# func_lo2o object 16838func_lo2o () 16839{ 16840 case ${1} in 16841 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16842 *) func_lo2o_result=${1} ;; 16843 esac 16844} 16845 16846# func_xform libobj-or-source 16847func_xform () 16848{ 16849 func_xform_result=${1%.*}.lo 16850} 16851 16852# func_arith arithmetic-term... 16853func_arith () 16854{ 16855 func_arith_result=$(( $* )) 16856} 16857 16858# func_len string 16859# STRING may not start with a hyphen. 16860func_len () 16861{ 16862 func_len_result=${#1} 16863} 16864 16865_LT_EOF 16866 ;; 16867 *) # Bourne compatible functions. 16868 cat << \_LT_EOF >> "$cfgfile" 16869 16870# func_dirname file append nondir_replacement 16871# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16872# otherwise set result to NONDIR_REPLACEMENT. 16873func_dirname () 16874{ 16875 # Extract subdirectory from the argument. 16876 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 16877 if test "X$func_dirname_result" = "X${1}"; then 16878 func_dirname_result="${3}" 16879 else 16880 func_dirname_result="$func_dirname_result${2}" 16881 fi 16882} 16883 16884# func_basename file 16885func_basename () 16886{ 16887 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 16888} 16889 16890 16891# func_stripname prefix suffix name 16892# strip PREFIX and SUFFIX off of NAME. 16893# PREFIX and SUFFIX must not contain globbing or regex special 16894# characters, hashes, percent signs, but SUFFIX may contain a leading 16895# dot (in which case that matches only a dot). 16896# func_strip_suffix prefix name 16897func_stripname () 16898{ 16899 case ${2} in 16900 .*) func_stripname_result=`$ECHO "X${3}" \ 16901 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 16902 *) func_stripname_result=`$ECHO "X${3}" \ 16903 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 16904 esac 16905} 16906 16907# sed scripts: 16908my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16909my_sed_long_arg='1s/^-[^=]*=//' 16910 16911# func_opt_split 16912func_opt_split () 16913{ 16914 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 16915 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 16916} 16917 16918# func_lo2o object 16919func_lo2o () 16920{ 16921 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 16922} 16923 16924# func_xform libobj-or-source 16925func_xform () 16926{ 16927 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 16928} 16929 16930# func_arith arithmetic-term... 16931func_arith () 16932{ 16933 func_arith_result=`expr "$@"` 16934} 16935 16936# func_len string 16937# STRING may not start with a hyphen. 16938func_len () 16939{ 16940 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16941} 16942 16943_LT_EOF 16944esac 16945 16946case $lt_shell_append in 16947 yes) 16948 cat << \_LT_EOF >> "$cfgfile" 16949 16950# func_append var value 16951# Append VALUE to the end of shell variable VAR. 16952func_append () 16953{ 16954 eval "$1+=\$2" 16955} 16956_LT_EOF 16957 ;; 16958 *) 16959 cat << \_LT_EOF >> "$cfgfile" 16960 16961# func_append var value 16962# Append VALUE to the end of shell variable VAR. 16963func_append () 16964{ 16965 eval "$1=\$$1\$2" 16966} 16967 16968_LT_EOF 16969 ;; 16970 esac 16971 16972 16973 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16974 || (rm -f "$cfgfile"; exit 1) 16975 16976 mv -f "$cfgfile" "$ofile" || 16977 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16978 chmod +x "$ofile" 16979 16980 ;; 16981 16982 esac 16983done # for ac_tag 16984 16985 16986{ (exit 0); exit 0; } 16987_ACEOF 16988chmod +x $CONFIG_STATUS 16989ac_clean_files=$ac_clean_files_save 16990 16991test $ac_write_fail = 0 || 16992 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 16993$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 16994 { (exit 1); exit 1; }; } 16995 16996 16997# configure is writing to config.log, and then calls config.status. 16998# config.status does its own redirection, appending to config.log. 16999# Unfortunately, on DOS this fails, as config.log is still kept open 17000# by configure, so config.status won't be able to write to it; its 17001# output is simply discarded. So we exec the FD to /dev/null, 17002# effectively closing config.log, so it can be properly (re)opened and 17003# appended to by config.status. When coming back to configure, we 17004# need to make the FD available again. 17005if test "$no_create" != yes; then 17006 ac_cs_success=: 17007 ac_config_status_args= 17008 test "$silent" = yes && 17009 ac_config_status_args="$ac_config_status_args --quiet" 17010 exec 5>/dev/null 17011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17012 exec 5>>config.log 17013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17014 # would make configure fail if this is the last instruction. 17015 $ac_cs_success || { (exit 1); exit 1; } 17016fi 17017if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17018 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17019$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17020fi 17021 17022 17023 17024 EXP_VAR=LIBDIR 17025 FROM_VAR=${libdir} 17026 17027 prefix_save=$prefix 17028 exec_prefix_save=$exec_prefix 17029 17030 if test "x$prefix" = "xNONE"; then 17031 prefix="$ac_default_prefix" 17032 fi 17033 if test "x$exec_prefix" = "xNONE"; then 17034 exec_prefix=$prefix 17035 fi 17036 17037 full_var="$FROM_VAR" 17038 while true; do 17039 new_full_var="`eval echo $full_var`" 17040 if test "x$new_full_var" = "x$full_var"; then break; fi 17041 full_var=$new_full_var 17042 done 17043 17044 full_var=$new_full_var 17045 LIBDIR="$full_var" 17046 17047 17048 prefix=$prefix_save 17049 exec_prefix=$exec_prefix_save 17050 17051 17052 EXP_VAR=INCLUDEDIR 17053 FROM_VAR=${includedir} 17054 17055 prefix_save=$prefix 17056 exec_prefix_save=$exec_prefix 17057 17058 if test "x$prefix" = "xNONE"; then 17059 prefix="$ac_default_prefix" 17060 fi 17061 if test "x$exec_prefix" = "xNONE"; then 17062 exec_prefix=$prefix 17063 fi 17064 17065 full_var="$FROM_VAR" 17066 while true; do 17067 new_full_var="`eval echo $full_var`" 17068 if test "x$new_full_var" = "x$full_var"; then break; fi 17069 full_var=$new_full_var 17070 done 17071 17072 full_var=$new_full_var 17073 INCLUDEDIR="$full_var" 17074 17075 17076 prefix=$prefix_save 17077 exec_prefix=$exec_prefix_save 17078 17079 17080 EXP_VAR=BINDIR 17081 FROM_VAR=${bindir} 17082 17083 prefix_save=$prefix 17084 exec_prefix_save=$exec_prefix 17085 17086 if test "x$prefix" = "xNONE"; then 17087 prefix="$ac_default_prefix" 17088 fi 17089 if test "x$exec_prefix" = "xNONE"; then 17090 exec_prefix=$prefix 17091 fi 17092 17093 full_var="$FROM_VAR" 17094 while true; do 17095 new_full_var="`eval echo $full_var`" 17096 if test "x$new_full_var" = "x$full_var"; then break; fi 17097 full_var=$new_full_var 17098 done 17099 17100 full_var=$new_full_var 17101 BINDIR="$full_var" 17102 17103 17104 prefix=$prefix_save 17105 exec_prefix=$exec_prefix_save 17106 17107 17108 EXP_VAR=DOCDIR 17109 FROM_VAR=${datadir}/doc 17110 17111 prefix_save=$prefix 17112 exec_prefix_save=$exec_prefix 17113 17114 if test "x$prefix" = "xNONE"; then 17115 prefix="$ac_default_prefix" 17116 fi 17117 if test "x$exec_prefix" = "xNONE"; then 17118 exec_prefix=$prefix 17119 fi 17120 17121 full_var="$FROM_VAR" 17122 while true; do 17123 new_full_var="`eval echo $full_var`" 17124 if test "x$new_full_var" = "x$full_var"; then break; fi 17125 full_var=$new_full_var 17126 done 17127 17128 full_var=$new_full_var 17129 DOCDIR="$full_var" 17130 17131 17132 prefix=$prefix_save 17133 exec_prefix=$exec_prefix_save 17134 17135 17136{ $as_echo "$as_me:$LINENO: result: 17137------------------------------------------------------------------------ 17138 $PACKAGE $VERSION: Automatic configuration OK. 17139 17140 General configuration: 17141 17142 Experimental code: ........... ${ac_enable_experimental} 17143 Decoding support: ............ ${ac_enable_decode} 17144 Encoding support: ............ ${ac_enable_encode} 17145 17146 Library configuration (./src/libfishsound): 17147 17148 FLAC support: ................ $FLAC_SUPPORT 17149 Speex support: ............... $SPEEX_SUPPORT 17150 Vorbis support: .............. $VORBIS_SUPPORT 17151 17152 Example programs (./src/examples): 17153 17154 $fishsound_examples 17155 17156 Installation paths: 17157 17158 libfishsound: ................ ${LIBDIR} 17159 C header files: .............. ${INCLUDEDIR}/fishsound 17160 Documentation: ............... ${DOCDIR}/$PACKAGE 17161 17162 Building: 17163 17164 Type 'make' to compile $PACKAGE. 17165 17166 Type 'make install' to install $PACKAGE. 17167 17168 ${TESTS_INFO} 17169 17170 Example programs will be built but not installed. 17171------------------------------------------------------------------------ 17172" >&5 17173$as_echo " 17174------------------------------------------------------------------------ 17175 $PACKAGE $VERSION: Automatic configuration OK. 17176 17177 General configuration: 17178 17179 Experimental code: ........... ${ac_enable_experimental} 17180 Decoding support: ............ ${ac_enable_decode} 17181 Encoding support: ............ ${ac_enable_encode} 17182 17183 Library configuration (./src/libfishsound): 17184 17185 FLAC support: ................ $FLAC_SUPPORT 17186 Speex support: ............... $SPEEX_SUPPORT 17187 Vorbis support: .............. $VORBIS_SUPPORT 17188 17189 Example programs (./src/examples): 17190 17191 $fishsound_examples 17192 17193 Installation paths: 17194 17195 libfishsound: ................ ${LIBDIR} 17196 C header files: .............. ${INCLUDEDIR}/fishsound 17197 Documentation: ............... ${DOCDIR}/$PACKAGE 17198 17199 Building: 17200 17201 Type 'make' to compile $PACKAGE. 17202 17203 Type 'make install' to install $PACKAGE. 17204 17205 ${TESTS_INFO} 17206 17207 Example programs will be built but not installed. 17208------------------------------------------------------------------------ 17209" >&6; } 17210 17211fi 17212