1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libtheora 1.1.1. 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='libtheora' 745PACKAGE_TARNAME='libtheora' 746PACKAGE_VERSION='1.1.1' 747PACKAGE_STRING='libtheora 1.1.1' 748PACKAGE_BUGREPORT='' 749 750ac_unique_file="lib/fdct.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 793PROFILE 794DEBUG 795BUILDABLE_EXAMPLES 796GETOPT_OBJS 797THEORA_ENABLE_EXAMPLES_FALSE 798THEORA_ENABLE_EXAMPLES_TRUE 799THEORA_DISABLE_ENCODE_FALSE 800THEORA_DISABLE_ENCODE_TRUE 801THEORA_DISABLE_FLOAT_FALSE 802THEORA_DISABLE_FLOAT_TRUE 803CAIRO_LIBS 804CAIRO_CFLAGS 805PNG_LIBS 806PNG_CFLAGS 807OSS_LIBS 808SDL_LIBS 809SDL_CFLAGS 810SDL_CONFIG 811VORBISFILE_LIBS 812VORBISENC_LIBS 813VORBIS_LIBS 814VORBIS_CFLAGS 815OGG_LIBS 816OGG_CFLAGS 817PKG_CONFIG 818HAVE_PKG_CONFIG 819THEORA_LDFLAGS 820THEORAENC_LDFLAGS 821THEORADEC_LDFLAGS 822CPU_x86_32_FALSE 823CPU_x86_32_TRUE 824CPU_x86_64_FALSE 825CPU_x86_64_TRUE 826VALGRIND_ENVIRONMENT 827HAVE_VALGRIND 828BUILD_SPEC_FALSE 829BUILD_SPEC_TRUE 830HAVE_TRANSFIG 831HAVE_BIBTEX 832HAVE_PDFLATEX 833HAVE_DOXYGEN_FALSE 834HAVE_DOXYGEN_TRUE 835HAVE_DOXYGEN 836ACLOCAL_AMFLAGS 837OTOOL64 838OTOOL 839LIPO 840NMEDIT 841DSYMUTIL 842lt_ECHO 843RANLIB 844AR 845LN_S 846NM 847ac_ct_DUMPBIN 848DUMPBIN 849LD 850FGREP 851EGREP 852GREP 853SED 854LIBTOOL 855OBJDUMP 856DLLTOOL 857AS 858CPP 859CCDEPMODE 860AMDEPBACKSLASH 861AMDEP_FALSE 862AMDEP_TRUE 863am__quote 864am__include 865DEPDIR 866OBJEXT 867EXEEXT 868ac_ct_CC 869CPPFLAGS 870LDFLAGS 871CFLAGS 872CC 873THENC_LIB_AGE 874THENC_LIB_REVISION 875THENC_LIB_CURRENT 876THDEC_LIB_AGE 877THDEC_LIB_REVISION 878THDEC_LIB_CURRENT 879TH_LIB_AGE 880TH_LIB_REVISION 881TH_LIB_CURRENT 882MAINT 883MAINTAINER_MODE_FALSE 884MAINTAINER_MODE_TRUE 885SET_MAKE 886AWK 887INSTALL_STRIP_PROGRAM 888STRIP 889install_sh 890AMTAR 891MAKEINFO 892AUTOHEADER 893AUTOMAKE 894AUTOCONF 895ACLOCAL 896VERSION 897PACKAGE 898INSTALL_DATA 899INSTALL_SCRIPT 900INSTALL_PROGRAM 901target_os 902target_vendor 903target_cpu 904target 905host_os 906host_vendor 907host_cpu 908host 909build_os 910build_vendor 911build_cpu 912build 913target_alias 914host_alias 915build_alias 916LIBS 917ECHO_T 918ECHO_N 919ECHO_C 920DEFS 921mandir 922localedir 923libdir 924psdir 925pdfdir 926dvidir 927htmldir 928infodir 929docdir 930oldincludedir 931includedir 932localstatedir 933sharedstatedir 934sysconfdir 935datadir 936datarootdir 937libexecdir 938sbindir 939bindir 940program_transform_name 941prefix 942exec_prefix 943PACKAGE_BUGREPORT 944PACKAGE_STRING 945PACKAGE_VERSION 946PACKAGE_TARNAME 947PACKAGE_NAME 948PATH_SEPARATOR 949SHELL' 950ac_subst_files='' 951ac_user_opts=' 952enable_option_checking 953enable_maintainer_mode 954enable_dependency_tracking 955enable_shared 956enable_static 957with_pic 958enable_fast_install 959with_gnu_ld 960enable_libtool_lock 961enable_spec 962enable_valgrind_testing 963enable_asm 964with_ogg 965with_ogg_libraries 966with_ogg_includes 967enable_oggtest 968with_vorbis 969with_vorbis_libraries 970with_vorbis_includes 971enable_vorbistest 972with_sdl_prefix 973with_sdl_exec_prefix 974enable_sdltest 975enable_telemetry 976enable_float 977enable_encode 978enable_examples 979' 980 ac_precious_vars='build_alias 981host_alias 982target_alias 983CC 984CFLAGS 985LDFLAGS 986LIBS 987CPPFLAGS 988CPP 989PKG_CONFIG 990OGG_CFLAGS 991OGG_LIBS 992VORBIS_CFLAGS 993VORBIS_LIBS 994PNG_CFLAGS 995PNG_LIBS 996CAIRO_CFLAGS 997CAIRO_LIBS' 998 999 1000# Initialize some variables set by options. 1001ac_init_help= 1002ac_init_version=false 1003ac_unrecognized_opts= 1004ac_unrecognized_sep= 1005# The variables have the same names as the options, with 1006# dashes changed to underlines. 1007cache_file=/dev/null 1008exec_prefix=NONE 1009no_create= 1010no_recursion= 1011prefix=NONE 1012program_prefix=NONE 1013program_suffix=NONE 1014program_transform_name=s,x,x, 1015silent= 1016site= 1017srcdir= 1018verbose= 1019x_includes=NONE 1020x_libraries=NONE 1021 1022# Installation directory options. 1023# These are left unexpanded so users can "make install exec_prefix=/foo" 1024# and all the variables that are supposed to be based on exec_prefix 1025# by default will actually change. 1026# Use braces instead of parens because sh, perl, etc. also accept them. 1027# (The list follows the same order as the GNU Coding Standards.) 1028bindir='${exec_prefix}/bin' 1029sbindir='${exec_prefix}/sbin' 1030libexecdir='${exec_prefix}/libexec' 1031datarootdir='${prefix}/share' 1032datadir='${datarootdir}' 1033sysconfdir='${prefix}/etc' 1034sharedstatedir='${prefix}/com' 1035localstatedir='${prefix}/var' 1036includedir='${prefix}/include' 1037oldincludedir='/usr/include' 1038docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1039infodir='${datarootdir}/info' 1040htmldir='${docdir}' 1041dvidir='${docdir}' 1042pdfdir='${docdir}' 1043psdir='${docdir}' 1044libdir='${exec_prefix}/lib' 1045localedir='${datarootdir}/locale' 1046mandir='${datarootdir}/man' 1047 1048ac_prev= 1049ac_dashdash= 1050for ac_option 1051do 1052 # If the previous option needs an argument, assign it. 1053 if test -n "$ac_prev"; then 1054 eval $ac_prev=\$ac_option 1055 ac_prev= 1056 continue 1057 fi 1058 1059 case $ac_option in 1060 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1061 *) ac_optarg=yes ;; 1062 esac 1063 1064 # Accept the important Cygnus configure options, so we can diagnose typos. 1065 1066 case $ac_dashdash$ac_option in 1067 --) 1068 ac_dashdash=yes ;; 1069 1070 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1071 ac_prev=bindir ;; 1072 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1073 bindir=$ac_optarg ;; 1074 1075 -build | --build | --buil | --bui | --bu) 1076 ac_prev=build_alias ;; 1077 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1078 build_alias=$ac_optarg ;; 1079 1080 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1082 ac_prev=cache_file ;; 1083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1085 cache_file=$ac_optarg ;; 1086 1087 --config-cache | -C) 1088 cache_file=config.cache ;; 1089 1090 -datadir | --datadir | --datadi | --datad) 1091 ac_prev=datadir ;; 1092 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1093 datadir=$ac_optarg ;; 1094 1095 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1096 | --dataroo | --dataro | --datar) 1097 ac_prev=datarootdir ;; 1098 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1099 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1100 datarootdir=$ac_optarg ;; 1101 1102 -disable-* | --disable-*) 1103 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1104 # Reject names that are not valid shell variable names. 1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1106 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1107 { (exit 1); exit 1; }; } 1108 ac_useropt_orig=$ac_useropt 1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1110 case $ac_user_opts in 1111 *" 1112"enable_$ac_useropt" 1113"*) ;; 1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1115 ac_unrecognized_sep=', ';; 1116 esac 1117 eval enable_$ac_useropt=no ;; 1118 1119 -docdir | --docdir | --docdi | --doc | --do) 1120 ac_prev=docdir ;; 1121 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1122 docdir=$ac_optarg ;; 1123 1124 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1125 ac_prev=dvidir ;; 1126 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1127 dvidir=$ac_optarg ;; 1128 1129 -enable-* | --enable-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1134 { (exit 1); exit 1; }; } 1135 ac_useropt_orig=$ac_useropt 1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 case $ac_user_opts in 1138 *" 1139"enable_$ac_useropt" 1140"*) ;; 1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1142 ac_unrecognized_sep=', ';; 1143 esac 1144 eval enable_$ac_useropt=\$ac_optarg ;; 1145 1146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1148 | --exec | --exe | --ex) 1149 ac_prev=exec_prefix ;; 1150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1152 | --exec=* | --exe=* | --ex=*) 1153 exec_prefix=$ac_optarg ;; 1154 1155 -gas | --gas | --ga | --g) 1156 # Obsolete; use --with-gas. 1157 with_gas=yes ;; 1158 1159 -help | --help | --hel | --he | -h) 1160 ac_init_help=long ;; 1161 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1162 ac_init_help=recursive ;; 1163 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1164 ac_init_help=short ;; 1165 1166 -host | --host | --hos | --ho) 1167 ac_prev=host_alias ;; 1168 -host=* | --host=* | --hos=* | --ho=*) 1169 host_alias=$ac_optarg ;; 1170 1171 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1172 ac_prev=htmldir ;; 1173 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1174 | --ht=*) 1175 htmldir=$ac_optarg ;; 1176 1177 -includedir | --includedir | --includedi | --included | --include \ 1178 | --includ | --inclu | --incl | --inc) 1179 ac_prev=includedir ;; 1180 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1181 | --includ=* | --inclu=* | --incl=* | --inc=*) 1182 includedir=$ac_optarg ;; 1183 1184 -infodir | --infodir | --infodi | --infod | --info | --inf) 1185 ac_prev=infodir ;; 1186 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1187 infodir=$ac_optarg ;; 1188 1189 -libdir | --libdir | --libdi | --libd) 1190 ac_prev=libdir ;; 1191 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1192 libdir=$ac_optarg ;; 1193 1194 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1195 | --libexe | --libex | --libe) 1196 ac_prev=libexecdir ;; 1197 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1198 | --libexe=* | --libex=* | --libe=*) 1199 libexecdir=$ac_optarg ;; 1200 1201 -localedir | --localedir | --localedi | --localed | --locale) 1202 ac_prev=localedir ;; 1203 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1204 localedir=$ac_optarg ;; 1205 1206 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1207 | --localstate | --localstat | --localsta | --localst | --locals) 1208 ac_prev=localstatedir ;; 1209 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1210 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1211 localstatedir=$ac_optarg ;; 1212 1213 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1214 ac_prev=mandir ;; 1215 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1216 mandir=$ac_optarg ;; 1217 1218 -nfp | --nfp | --nf) 1219 # Obsolete; use --without-fp. 1220 with_fp=no ;; 1221 1222 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1223 | --no-cr | --no-c | -n) 1224 no_create=yes ;; 1225 1226 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1227 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1228 no_recursion=yes ;; 1229 1230 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1231 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1232 | --oldin | --oldi | --old | --ol | --o) 1233 ac_prev=oldincludedir ;; 1234 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1235 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1236 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1237 oldincludedir=$ac_optarg ;; 1238 1239 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1240 ac_prev=prefix ;; 1241 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1242 prefix=$ac_optarg ;; 1243 1244 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1245 | --program-pre | --program-pr | --program-p) 1246 ac_prev=program_prefix ;; 1247 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1248 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1249 program_prefix=$ac_optarg ;; 1250 1251 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1252 | --program-suf | --program-su | --program-s) 1253 ac_prev=program_suffix ;; 1254 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1255 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1256 program_suffix=$ac_optarg ;; 1257 1258 -program-transform-name | --program-transform-name \ 1259 | --program-transform-nam | --program-transform-na \ 1260 | --program-transform-n | --program-transform- \ 1261 | --program-transform | --program-transfor \ 1262 | --program-transfo | --program-transf \ 1263 | --program-trans | --program-tran \ 1264 | --progr-tra | --program-tr | --program-t) 1265 ac_prev=program_transform_name ;; 1266 -program-transform-name=* | --program-transform-name=* \ 1267 | --program-transform-nam=* | --program-transform-na=* \ 1268 | --program-transform-n=* | --program-transform-=* \ 1269 | --program-transform=* | --program-transfor=* \ 1270 | --program-transfo=* | --program-transf=* \ 1271 | --program-trans=* | --program-tran=* \ 1272 | --progr-tra=* | --program-tr=* | --program-t=*) 1273 program_transform_name=$ac_optarg ;; 1274 1275 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1276 ac_prev=pdfdir ;; 1277 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1278 pdfdir=$ac_optarg ;; 1279 1280 -psdir | --psdir | --psdi | --psd | --ps) 1281 ac_prev=psdir ;; 1282 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1283 psdir=$ac_optarg ;; 1284 1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1286 | -silent | --silent | --silen | --sile | --sil) 1287 silent=yes ;; 1288 1289 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1290 ac_prev=sbindir ;; 1291 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1292 | --sbi=* | --sb=*) 1293 sbindir=$ac_optarg ;; 1294 1295 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1296 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1297 | --sharedst | --shareds | --shared | --share | --shar \ 1298 | --sha | --sh) 1299 ac_prev=sharedstatedir ;; 1300 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1301 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1302 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1303 | --sha=* | --sh=*) 1304 sharedstatedir=$ac_optarg ;; 1305 1306 -site | --site | --sit) 1307 ac_prev=site ;; 1308 -site=* | --site=* | --sit=*) 1309 site=$ac_optarg ;; 1310 1311 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1312 ac_prev=srcdir ;; 1313 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1314 srcdir=$ac_optarg ;; 1315 1316 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1317 | --syscon | --sysco | --sysc | --sys | --sy) 1318 ac_prev=sysconfdir ;; 1319 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1320 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1321 sysconfdir=$ac_optarg ;; 1322 1323 -target | --target | --targe | --targ | --tar | --ta | --t) 1324 ac_prev=target_alias ;; 1325 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1326 target_alias=$ac_optarg ;; 1327 1328 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1329 verbose=yes ;; 1330 1331 -version | --version | --versio | --versi | --vers | -V) 1332 ac_init_version=: ;; 1333 1334 -with-* | --with-*) 1335 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 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--with-$ac_useropt_orig" 1347 ac_unrecognized_sep=', ';; 1348 esac 1349 eval with_$ac_useropt=\$ac_optarg ;; 1350 1351 -without-* | --without-*) 1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1353 # Reject names that are not valid shell variable names. 1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1355 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1356 { (exit 1); exit 1; }; } 1357 ac_useropt_orig=$ac_useropt 1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1359 case $ac_user_opts in 1360 *" 1361"with_$ac_useropt" 1362"*) ;; 1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1364 ac_unrecognized_sep=', ';; 1365 esac 1366 eval with_$ac_useropt=no ;; 1367 1368 --x) 1369 # Obsolete; use --with-x. 1370 with_x=yes ;; 1371 1372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1373 | --x-incl | --x-inc | --x-in | --x-i) 1374 ac_prev=x_includes ;; 1375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1377 x_includes=$ac_optarg ;; 1378 1379 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1381 ac_prev=x_libraries ;; 1382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1384 x_libraries=$ac_optarg ;; 1385 1386 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1387Try \`$0 --help' for more information." >&2 1388 { (exit 1); exit 1; }; } 1389 ;; 1390 1391 *=*) 1392 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1393 # Reject names that are not valid shell variable names. 1394 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1395 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1396 { (exit 1); exit 1; }; } 1397 eval $ac_envvar=\$ac_optarg 1398 export $ac_envvar ;; 1399 1400 *) 1401 # FIXME: should be removed in autoconf 3.0. 1402 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1403 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1404 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1405 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1406 ;; 1407 1408 esac 1409done 1410 1411if test -n "$ac_prev"; then 1412 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1413 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1414 { (exit 1); exit 1; }; } 1415fi 1416 1417if test -n "$ac_unrecognized_opts"; then 1418 case $enable_option_checking in 1419 no) ;; 1420 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1421 { (exit 1); exit 1; }; } ;; 1422 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1423 esac 1424fi 1425 1426# Check all directory arguments for consistency. 1427for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1428 datadir sysconfdir sharedstatedir localstatedir includedir \ 1429 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1430 libdir localedir mandir 1431do 1432 eval ac_val=\$$ac_var 1433 # Remove trailing slashes. 1434 case $ac_val in 1435 */ ) 1436 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1437 eval $ac_var=\$ac_val;; 1438 esac 1439 # Be sure to have absolute directory names. 1440 case $ac_val in 1441 [\\/$]* | ?:[\\/]* ) continue;; 1442 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1443 esac 1444 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1445 { (exit 1); exit 1; }; } 1446done 1447 1448# There might be people who depend on the old broken behavior: `$host' 1449# used to hold the argument of --host etc. 1450# FIXME: To remove some day. 1451build=$build_alias 1452host=$host_alias 1453target=$target_alias 1454 1455# FIXME: To remove some day. 1456if test "x$host_alias" != x; then 1457 if test "x$build_alias" = x; then 1458 cross_compiling=maybe 1459 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1460 If a cross compiler is detected then cross compile mode will be used." >&2 1461 elif test "x$build_alias" != "x$host_alias"; then 1462 cross_compiling=yes 1463 fi 1464fi 1465 1466ac_tool_prefix= 1467test -n "$host_alias" && ac_tool_prefix=$host_alias- 1468 1469test "$silent" = yes && exec 6>/dev/null 1470 1471 1472ac_pwd=`pwd` && test -n "$ac_pwd" && 1473ac_ls_di=`ls -di .` && 1474ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1475 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1476 { (exit 1); exit 1; }; } 1477test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1478 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1479 { (exit 1); exit 1; }; } 1480 1481 1482# Find the source files, if location was not specified. 1483if test -z "$srcdir"; then 1484 ac_srcdir_defaulted=yes 1485 # Try the directory containing this script, then the parent directory. 1486 ac_confdir=`$as_dirname -- "$as_myself" || 1487$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1488 X"$as_myself" : 'X\(//\)[^/]' \| \ 1489 X"$as_myself" : 'X\(//\)$' \| \ 1490 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1491$as_echo X"$as_myself" | 1492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1493 s//\1/ 1494 q 1495 } 1496 /^X\(\/\/\)[^/].*/{ 1497 s//\1/ 1498 q 1499 } 1500 /^X\(\/\/\)$/{ 1501 s//\1/ 1502 q 1503 } 1504 /^X\(\/\).*/{ 1505 s//\1/ 1506 q 1507 } 1508 s/.*/./; q'` 1509 srcdir=$ac_confdir 1510 if test ! -r "$srcdir/$ac_unique_file"; then 1511 srcdir=.. 1512 fi 1513else 1514 ac_srcdir_defaulted=no 1515fi 1516if test ! -r "$srcdir/$ac_unique_file"; then 1517 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1518 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1519 { (exit 1); exit 1; }; } 1520fi 1521ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1522ac_abs_confdir=`( 1523 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1524 { (exit 1); exit 1; }; } 1525 pwd)` 1526# When building in place, set srcdir=. 1527if test "$ac_abs_confdir" = "$ac_pwd"; then 1528 srcdir=. 1529fi 1530# Remove unnecessary trailing slashes from srcdir. 1531# Double slashes in file names in object file debugging info 1532# mess up M-x gdb in Emacs. 1533case $srcdir in 1534*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1535esac 1536for ac_var in $ac_precious_vars; do 1537 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1538 eval ac_env_${ac_var}_value=\$${ac_var} 1539 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1540 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1541done 1542 1543# 1544# Report the --help message. 1545# 1546if test "$ac_init_help" = "long"; then 1547 # Omit some internal or obsolete options to make the list less imposing. 1548 # This message is too long to be a string in the A/UX 3.1 sh. 1549 cat <<_ACEOF 1550\`configure' configures libtheora 1.1.1 to adapt to many kinds of systems. 1551 1552Usage: $0 [OPTION]... [VAR=VALUE]... 1553 1554To assign environment variables (e.g., CC, CFLAGS...), specify them as 1555VAR=VALUE. See below for descriptions of some of the useful variables. 1556 1557Defaults for the options are specified in brackets. 1558 1559Configuration: 1560 -h, --help display this help and exit 1561 --help=short display options specific to this package 1562 --help=recursive display the short help of all the included packages 1563 -V, --version display version information and exit 1564 -q, --quiet, --silent do not print \`checking...' messages 1565 --cache-file=FILE cache test results in FILE [disabled] 1566 -C, --config-cache alias for \`--cache-file=config.cache' 1567 -n, --no-create do not create output files 1568 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1569 1570Installation directories: 1571 --prefix=PREFIX install architecture-independent files in PREFIX 1572 [$ac_default_prefix] 1573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1574 [PREFIX] 1575 1576By default, \`make install' will install all the files in 1577\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1578an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1579for instance \`--prefix=\$HOME'. 1580 1581For better control, use the options below. 1582 1583Fine tuning of the installation directories: 1584 --bindir=DIR user executables [EPREFIX/bin] 1585 --sbindir=DIR system admin executables [EPREFIX/sbin] 1586 --libexecdir=DIR program executables [EPREFIX/libexec] 1587 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1588 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1589 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1590 --libdir=DIR object code libraries [EPREFIX/lib] 1591 --includedir=DIR C header files [PREFIX/include] 1592 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1595 --infodir=DIR info documentation [DATAROOTDIR/info] 1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1597 --mandir=DIR man documentation [DATAROOTDIR/man] 1598 --docdir=DIR documentation root [DATAROOTDIR/doc/libtheora] 1599 --htmldir=DIR html documentation [DOCDIR] 1600 --dvidir=DIR dvi documentation [DOCDIR] 1601 --pdfdir=DIR pdf documentation [DOCDIR] 1602 --psdir=DIR ps documentation [DOCDIR] 1603_ACEOF 1604 1605 cat <<\_ACEOF 1606 1607Program names: 1608 --program-prefix=PREFIX prepend PREFIX to installed program names 1609 --program-suffix=SUFFIX append SUFFIX to installed program names 1610 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1611 1612System types: 1613 --build=BUILD configure for building on BUILD [guessed] 1614 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1615 --target=TARGET configure for building compilers for TARGET [HOST] 1616_ACEOF 1617fi 1618 1619if test -n "$ac_init_help"; then 1620 case $ac_init_help in 1621 short | recursive ) echo "Configuration of libtheora 1.1.1:";; 1622 esac 1623 cat <<\_ACEOF 1624 1625Optional Features: 1626 --disable-option-checking ignore unrecognized --enable/--with options 1627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1629 --enable-maintainer-mode enable make rules and dependencies not useful 1630 (and sometimes confusing) to the casual installer 1631 --disable-dependency-tracking Speeds up one-time builds 1632 --enable-dependency-tracking Do not reject slow dependency extractors 1633 --enable-shared[=PKGS] build shared libraries [default=yes] 1634 --enable-static[=PKGS] build static libraries [default=yes] 1635 --enable-fast-install[=PKGS] 1636 optimize for fast installation [default=yes] 1637 --disable-libtool-lock avoid locking (might break parallel builds) 1638 --disable-spec do not build spec 1639 --enable-valgrind-testing enable running of tests inside Valgrind 1640 --disable-asm disable assembly optimizations 1641 --disable-oggtest Do not try to compile and run a test Ogg program 1642 --disable-vorbistest Do not try to compile and run a test Vorbis program 1643 --disable-sdltest Do not try to compile and run a test SDL program 1644 --enable-telemetry enable debugging output controls 1645 --disable-float disable use of floating point code 1646 --disable-encode disable encoding support 1647 --disable-examples disable examples 1648 1649Optional Packages: 1650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1652 --with-pic try to use only PIC/non-PIC objects [default=use 1653 both] 1654 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1655 --with-ogg=PFX Prefix where libogg is installed (optional) 1656 --with-ogg-libraries=DIR 1657 Directory where libogg library is installed 1658 (optional) 1659 --with-ogg-includes=DIR Directory where libogg header files are installed 1660 (optional) 1661 --with-vorbis=PFX Prefix where libvorbis is installed (optional) 1662 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional) 1663 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional) 1664 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1665 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1666 1667Some influential environment variables: 1668 CC C compiler command 1669 CFLAGS C compiler flags 1670 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1671 nonstandard directory <lib dir> 1672 LIBS libraries to pass to the linker, e.g. -l<library> 1673 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1674 you have headers in a nonstandard directory <include dir> 1675 CPP C preprocessor 1676 PKG_CONFIG path to pkg-config utility 1677 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config 1678 OGG_LIBS linker flags for OGG, overriding pkg-config 1679 VORBIS_CFLAGS 1680 C compiler flags for VORBIS, overriding pkg-config 1681 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config 1682 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 1683 PNG_LIBS linker flags for PNG, overriding pkg-config 1684 CAIRO_CFLAGS 1685 C compiler flags for CAIRO, overriding pkg-config 1686 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config 1687 1688Use these variables to override the choices made by `configure' or to help 1689it to find libraries and programs with nonstandard names/locations. 1690 1691_ACEOF 1692ac_status=$? 1693fi 1694 1695if test "$ac_init_help" = "recursive"; then 1696 # If there are subdirs, report their specific --help. 1697 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1698 test -d "$ac_dir" || 1699 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1700 continue 1701 ac_builddir=. 1702 1703case "$ac_dir" in 1704.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1705*) 1706 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1707 # A ".." for each directory in $ac_dir_suffix. 1708 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1709 case $ac_top_builddir_sub in 1710 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1711 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1712 esac ;; 1713esac 1714ac_abs_top_builddir=$ac_pwd 1715ac_abs_builddir=$ac_pwd$ac_dir_suffix 1716# for backward compatibility: 1717ac_top_builddir=$ac_top_build_prefix 1718 1719case $srcdir in 1720 .) # We are building in place. 1721 ac_srcdir=. 1722 ac_top_srcdir=$ac_top_builddir_sub 1723 ac_abs_top_srcdir=$ac_pwd ;; 1724 [\\/]* | ?:[\\/]* ) # Absolute name. 1725 ac_srcdir=$srcdir$ac_dir_suffix; 1726 ac_top_srcdir=$srcdir 1727 ac_abs_top_srcdir=$srcdir ;; 1728 *) # Relative name. 1729 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1730 ac_top_srcdir=$ac_top_build_prefix$srcdir 1731 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1732esac 1733ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1734 1735 cd "$ac_dir" || { ac_status=$?; continue; } 1736 # Check for guested configure. 1737 if test -f "$ac_srcdir/configure.gnu"; then 1738 echo && 1739 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1740 elif test -f "$ac_srcdir/configure"; then 1741 echo && 1742 $SHELL "$ac_srcdir/configure" --help=recursive 1743 else 1744 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1745 fi || ac_status=$? 1746 cd "$ac_pwd" || { ac_status=$?; break; } 1747 done 1748fi 1749 1750test -n "$ac_init_help" && exit $ac_status 1751if $ac_init_version; then 1752 cat <<\_ACEOF 1753libtheora configure 1.1.1 1754generated by GNU Autoconf 2.63 1755 1756Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17572002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1758This configure script is free software; the Free Software Foundation 1759gives unlimited permission to copy, distribute and modify it. 1760_ACEOF 1761 exit 1762fi 1763cat >config.log <<_ACEOF 1764This file contains any messages produced by compilers while 1765running configure, to aid debugging if configure makes a mistake. 1766 1767It was created by libtheora $as_me 1.1.1, which was 1768generated by GNU Autoconf 2.63. Invocation command line was 1769 1770 $ $0 $@ 1771 1772_ACEOF 1773exec 5>>config.log 1774{ 1775cat <<_ASUNAME 1776## --------- ## 1777## Platform. ## 1778## --------- ## 1779 1780hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1781uname -m = `(uname -m) 2>/dev/null || echo unknown` 1782uname -r = `(uname -r) 2>/dev/null || echo unknown` 1783uname -s = `(uname -s) 2>/dev/null || echo unknown` 1784uname -v = `(uname -v) 2>/dev/null || echo unknown` 1785 1786/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1787/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1788 1789/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1790/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1791/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1792/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1793/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1794/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1795/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1796 1797_ASUNAME 1798 1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1800for as_dir in $PATH 1801do 1802 IFS=$as_save_IFS 1803 test -z "$as_dir" && as_dir=. 1804 $as_echo "PATH: $as_dir" 1805done 1806IFS=$as_save_IFS 1807 1808} >&5 1809 1810cat >&5 <<_ACEOF 1811 1812 1813## ----------- ## 1814## Core tests. ## 1815## ----------- ## 1816 1817_ACEOF 1818 1819 1820# Keep a trace of the command line. 1821# Strip out --no-create and --no-recursion so they do not pile up. 1822# Strip out --silent because we don't want to record it for future runs. 1823# Also quote any args containing shell meta-characters. 1824# Make two passes to allow for proper duplicate-argument suppression. 1825ac_configure_args= 1826ac_configure_args0= 1827ac_configure_args1= 1828ac_must_keep_next=false 1829for ac_pass in 1 2 1830do 1831 for ac_arg 1832 do 1833 case $ac_arg in 1834 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1836 | -silent | --silent | --silen | --sile | --sil) 1837 continue ;; 1838 *\'*) 1839 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1840 esac 1841 case $ac_pass in 1842 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1843 2) 1844 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1845 if test $ac_must_keep_next = true; then 1846 ac_must_keep_next=false # Got value, back to normal. 1847 else 1848 case $ac_arg in 1849 *=* | --config-cache | -C | -disable-* | --disable-* \ 1850 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1851 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1852 | -with-* | --with-* | -without-* | --without-* | --x) 1853 case "$ac_configure_args0 " in 1854 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1855 esac 1856 ;; 1857 -* ) ac_must_keep_next=true ;; 1858 esac 1859 fi 1860 ac_configure_args="$ac_configure_args '$ac_arg'" 1861 ;; 1862 esac 1863 done 1864done 1865$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1866$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1867 1868# When interrupted or exit'd, cleanup temporary files, and complete 1869# config.log. We remove comments because anyway the quotes in there 1870# would cause problems or look ugly. 1871# WARNING: Use '\'' to represent an apostrophe within the trap. 1872# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1873trap 'exit_status=$? 1874 # Save into config.log some information that might help in debugging. 1875 { 1876 echo 1877 1878 cat <<\_ASBOX 1879## ---------------- ## 1880## Cache variables. ## 1881## ---------------- ## 1882_ASBOX 1883 echo 1884 # The following way of writing the cache mishandles newlines in values, 1885( 1886 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1887 eval ac_val=\$$ac_var 1888 case $ac_val in #( 1889 *${as_nl}*) 1890 case $ac_var in #( 1891 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1892$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1893 esac 1894 case $ac_var in #( 1895 _ | IFS | as_nl) ;; #( 1896 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1897 *) $as_unset $ac_var ;; 1898 esac ;; 1899 esac 1900 done 1901 (set) 2>&1 | 1902 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1903 *${as_nl}ac_space=\ *) 1904 sed -n \ 1905 "s/'\''/'\''\\\\'\'''\''/g; 1906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1907 ;; #( 1908 *) 1909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1910 ;; 1911 esac | 1912 sort 1913) 1914 echo 1915 1916 cat <<\_ASBOX 1917## ----------------- ## 1918## Output variables. ## 1919## ----------------- ## 1920_ASBOX 1921 echo 1922 for ac_var in $ac_subst_vars 1923 do 1924 eval ac_val=\$$ac_var 1925 case $ac_val in 1926 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1927 esac 1928 $as_echo "$ac_var='\''$ac_val'\''" 1929 done | sort 1930 echo 1931 1932 if test -n "$ac_subst_files"; then 1933 cat <<\_ASBOX 1934## ------------------- ## 1935## File substitutions. ## 1936## ------------------- ## 1937_ASBOX 1938 echo 1939 for ac_var in $ac_subst_files 1940 do 1941 eval ac_val=\$$ac_var 1942 case $ac_val in 1943 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1944 esac 1945 $as_echo "$ac_var='\''$ac_val'\''" 1946 done | sort 1947 echo 1948 fi 1949 1950 if test -s confdefs.h; then 1951 cat <<\_ASBOX 1952## ----------- ## 1953## confdefs.h. ## 1954## ----------- ## 1955_ASBOX 1956 echo 1957 cat confdefs.h 1958 echo 1959 fi 1960 test "$ac_signal" != 0 && 1961 $as_echo "$as_me: caught signal $ac_signal" 1962 $as_echo "$as_me: exit $exit_status" 1963 } >&5 1964 rm -f core *.core core.conftest.* && 1965 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1966 exit $exit_status 1967' 0 1968for ac_signal in 1 2 13 15; do 1969 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1970done 1971ac_signal=0 1972 1973# confdefs.h avoids OS command line length limits that DEFS can exceed. 1974rm -f -r conftest* confdefs.h 1975 1976# Predefined preprocessor variables. 1977 1978cat >>confdefs.h <<_ACEOF 1979#define PACKAGE_NAME "$PACKAGE_NAME" 1980_ACEOF 1981 1982 1983cat >>confdefs.h <<_ACEOF 1984#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1985_ACEOF 1986 1987 1988cat >>confdefs.h <<_ACEOF 1989#define PACKAGE_VERSION "$PACKAGE_VERSION" 1990_ACEOF 1991 1992 1993cat >>confdefs.h <<_ACEOF 1994#define PACKAGE_STRING "$PACKAGE_STRING" 1995_ACEOF 1996 1997 1998cat >>confdefs.h <<_ACEOF 1999#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2000_ACEOF 2001 2002 2003# Let the site file select an alternate cache file if it wants to. 2004# Prefer an explicitly selected file to automatically selected ones. 2005ac_site_file1=NONE 2006ac_site_file2=NONE 2007if test -n "$CONFIG_SITE"; then 2008 ac_site_file1=$CONFIG_SITE 2009elif test "x$prefix" != xNONE; then 2010 ac_site_file1=$prefix/share/config.site 2011 ac_site_file2=$prefix/etc/config.site 2012else 2013 ac_site_file1=$ac_default_prefix/share/config.site 2014 ac_site_file2=$ac_default_prefix/etc/config.site 2015fi 2016for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2017do 2018 test "x$ac_site_file" = xNONE && continue 2019 if test -r "$ac_site_file"; then 2020 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2021$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2022 sed 's/^/| /' "$ac_site_file" >&5 2023 . "$ac_site_file" 2024 fi 2025done 2026 2027if test -r "$cache_file"; then 2028 # Some versions of bash will fail to source /dev/null (special 2029 # files actually), so we avoid doing that. 2030 if test -f "$cache_file"; then 2031 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2032$as_echo "$as_me: loading cache $cache_file" >&6;} 2033 case $cache_file in 2034 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2035 *) . "./$cache_file";; 2036 esac 2037 fi 2038else 2039 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2040$as_echo "$as_me: creating cache $cache_file" >&6;} 2041 >$cache_file 2042fi 2043 2044# Check that the precious variables saved in the cache have kept the same 2045# value. 2046ac_cache_corrupted=false 2047for ac_var in $ac_precious_vars; do 2048 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2049 eval ac_new_set=\$ac_env_${ac_var}_set 2050 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2051 eval ac_new_val=\$ac_env_${ac_var}_value 2052 case $ac_old_set,$ac_new_set in 2053 set,) 2054 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2055$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2056 ac_cache_corrupted=: ;; 2057 ,set) 2058 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2059$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2060 ac_cache_corrupted=: ;; 2061 ,);; 2062 *) 2063 if test "x$ac_old_val" != "x$ac_new_val"; then 2064 # differences in whitespace do not lead to failure. 2065 ac_old_val_w=`echo x $ac_old_val` 2066 ac_new_val_w=`echo x $ac_new_val` 2067 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2068 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2069$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2070 ac_cache_corrupted=: 2071 else 2072 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2073$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2074 eval $ac_var=\$ac_old_val 2075 fi 2076 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2077$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2078 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2079$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2080 fi;; 2081 esac 2082 # Pass precious variables to config.status. 2083 if test "$ac_new_set" = set; then 2084 case $ac_new_val in 2085 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2086 *) ac_arg=$ac_var=$ac_new_val ;; 2087 esac 2088 case " $ac_configure_args " in 2089 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2090 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2091 esac 2092 fi 2093done 2094if $ac_cache_corrupted; then 2095 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2097 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2098$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2099 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2100$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2101 { (exit 1); exit 1; }; } 2102fi 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128ac_ext=c 2129ac_cpp='$CPP $CPPFLAGS' 2130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2132ac_compiler_gnu=$ac_cv_c_compiler_gnu 2133 2134 2135 2136ac_aux_dir= 2137for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2138 if test -f "$ac_dir/install-sh"; then 2139 ac_aux_dir=$ac_dir 2140 ac_install_sh="$ac_aux_dir/install-sh -c" 2141 break 2142 elif test -f "$ac_dir/install.sh"; then 2143 ac_aux_dir=$ac_dir 2144 ac_install_sh="$ac_aux_dir/install.sh -c" 2145 break 2146 elif test -f "$ac_dir/shtool"; then 2147 ac_aux_dir=$ac_dir 2148 ac_install_sh="$ac_aux_dir/shtool install -c" 2149 break 2150 fi 2151done 2152if test -z "$ac_aux_dir"; then 2153 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2154$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2155 { (exit 1); exit 1; }; } 2156fi 2157 2158# These three variables are undocumented and unsupported, 2159# and are intended to be withdrawn in a future Autoconf release. 2160# They can cause serious problems if a builder's source tree is in a directory 2161# whose full name contains unusual characters. 2162ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2163ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2164ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2165 2166 2167# Make sure we can run config.sub. 2168$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2169 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2170$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2171 { (exit 1); exit 1; }; } 2172 2173{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2174$as_echo_n "checking build system type... " >&6; } 2175if test "${ac_cv_build+set}" = set; then 2176 $as_echo_n "(cached) " >&6 2177else 2178 ac_build_alias=$build_alias 2179test "x$ac_build_alias" = x && 2180 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2181test "x$ac_build_alias" = x && 2182 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2183$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2184 { (exit 1); exit 1; }; } 2185ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2186 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2187$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2188 { (exit 1); exit 1; }; } 2189 2190fi 2191{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2192$as_echo "$ac_cv_build" >&6; } 2193case $ac_cv_build in 2194*-*-*) ;; 2195*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2196$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2197 { (exit 1); exit 1; }; };; 2198esac 2199build=$ac_cv_build 2200ac_save_IFS=$IFS; IFS='-' 2201set x $ac_cv_build 2202shift 2203build_cpu=$1 2204build_vendor=$2 2205shift; shift 2206# Remember, the first character of IFS is used to create $*, 2207# except with old shells: 2208build_os=$* 2209IFS=$ac_save_IFS 2210case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2211 2212 2213{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2214$as_echo_n "checking host system type... " >&6; } 2215if test "${ac_cv_host+set}" = set; then 2216 $as_echo_n "(cached) " >&6 2217else 2218 if test "x$host_alias" = x; then 2219 ac_cv_host=$ac_cv_build 2220else 2221 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2222 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2223$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2224 { (exit 1); exit 1; }; } 2225fi 2226 2227fi 2228{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2229$as_echo "$ac_cv_host" >&6; } 2230case $ac_cv_host in 2231*-*-*) ;; 2232*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2233$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2234 { (exit 1); exit 1; }; };; 2235esac 2236host=$ac_cv_host 2237ac_save_IFS=$IFS; IFS='-' 2238set x $ac_cv_host 2239shift 2240host_cpu=$1 2241host_vendor=$2 2242shift; shift 2243# Remember, the first character of IFS is used to create $*, 2244# except with old shells: 2245host_os=$* 2246IFS=$ac_save_IFS 2247case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2248 2249 2250{ $as_echo "$as_me:$LINENO: checking target system type" >&5 2251$as_echo_n "checking target system type... " >&6; } 2252if test "${ac_cv_target+set}" = set; then 2253 $as_echo_n "(cached) " >&6 2254else 2255 if test "x$target_alias" = x; then 2256 ac_cv_target=$ac_cv_host 2257else 2258 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2259 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2260$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2261 { (exit 1); exit 1; }; } 2262fi 2263 2264fi 2265{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2266$as_echo "$ac_cv_target" >&6; } 2267case $ac_cv_target in 2268*-*-*) ;; 2269*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2270$as_echo "$as_me: error: invalid value of canonical target" >&2;} 2271 { (exit 1); exit 1; }; };; 2272esac 2273target=$ac_cv_target 2274ac_save_IFS=$IFS; IFS='-' 2275set x $ac_cv_target 2276shift 2277target_cpu=$1 2278target_vendor=$2 2279shift; shift 2280# Remember, the first character of IFS is used to create $*, 2281# except with old shells: 2282target_os=$* 2283IFS=$ac_save_IFS 2284case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2285 2286 2287# The aliases save the names the user supplied, while $host etc. 2288# will get canonicalized. 2289test -n "$target_alias" && 2290 test "$program_prefix$program_suffix$program_transform_name" = \ 2291 NONENONEs,x,x, && 2292 program_prefix=${target_alias}- 2293 2294# Add the stamp file to the list of files AC keeps track of, 2295# along with our hook. 2296ac_config_headers="$ac_config_headers config.h" 2297 2298 2299 2300 2301am__api_version="1.6" 2302# Find a good install program. We prefer a C program (faster), 2303# so one script is as good as another. But avoid the broken or 2304# incompatible versions: 2305# SysV /etc/install, /usr/sbin/install 2306# SunOS /usr/etc/install 2307# IRIX /sbin/install 2308# AIX /bin/install 2309# AmigaOS /C/install, which installs bootblocks on floppy discs 2310# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2311# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2312# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2313# OS/2's system install, which has a completely different semantic 2314# ./install, which can be erroneously created by make from ./install.sh. 2315# Reject install programs that cannot install multiple files. 2316{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2317$as_echo_n "checking for a BSD-compatible install... " >&6; } 2318if test -z "$INSTALL"; then 2319if test "${ac_cv_path_install+set}" = set; then 2320 $as_echo_n "(cached) " >&6 2321else 2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2323for as_dir in $PATH 2324do 2325 IFS=$as_save_IFS 2326 test -z "$as_dir" && as_dir=. 2327 # Account for people who put trailing slashes in PATH elements. 2328case $as_dir/ in 2329 ./ | .// | /cC/* | \ 2330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2331 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2332 /usr/ucb/* ) ;; 2333 *) 2334 # OSF1 and SCO ODT 3.0 have their own names for install. 2335 # Don't use installbsd from OSF since it installs stuff as root 2336 # by default. 2337 for ac_prog in ginstall scoinst install; do 2338 for ac_exec_ext in '' $ac_executable_extensions; do 2339 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2340 if test $ac_prog = install && 2341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2342 # AIX install. It has an incompatible calling convention. 2343 : 2344 elif test $ac_prog = install && 2345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2346 # program-specific install script used by HP pwplus--don't use. 2347 : 2348 else 2349 rm -rf conftest.one conftest.two conftest.dir 2350 echo one > conftest.one 2351 echo two > conftest.two 2352 mkdir conftest.dir 2353 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2354 test -s conftest.one && test -s conftest.two && 2355 test -s conftest.dir/conftest.one && 2356 test -s conftest.dir/conftest.two 2357 then 2358 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2359 break 3 2360 fi 2361 fi 2362 fi 2363 done 2364 done 2365 ;; 2366esac 2367 2368done 2369IFS=$as_save_IFS 2370 2371rm -rf conftest.one conftest.two conftest.dir 2372 2373fi 2374 if test "${ac_cv_path_install+set}" = set; then 2375 INSTALL=$ac_cv_path_install 2376 else 2377 # As a last resort, use the slow shell script. Don't cache a 2378 # value for INSTALL within a source directory, because that will 2379 # break other packages using the cache if that directory is 2380 # removed, or if the value is a relative name. 2381 INSTALL=$ac_install_sh 2382 fi 2383fi 2384{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2385$as_echo "$INSTALL" >&6; } 2386 2387# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2388# It thinks the first close brace ends the variable substitution. 2389test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2390 2391test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2392 2393test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2394 2395{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2396$as_echo_n "checking whether build environment is sane... " >&6; } 2397# Just in case 2398sleep 1 2399echo timestamp > conftest.file 2400# Do `set' in a subshell so we don't clobber the current shell's 2401# arguments. Must try -L first in case configure is actually a 2402# symlink; some systems play weird games with the mod time of symlinks 2403# (eg FreeBSD returns the mod time of the symlink's containing 2404# directory). 2405if ( 2406 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2407 if test "$*" = "X"; then 2408 # -L didn't work. 2409 set X `ls -t $srcdir/configure conftest.file` 2410 fi 2411 rm -f conftest.file 2412 if test "$*" != "X $srcdir/configure conftest.file" \ 2413 && test "$*" != "X conftest.file $srcdir/configure"; then 2414 2415 # If neither matched, then we have a broken ls. This can happen 2416 # if, for instance, CONFIG_SHELL is bash and it inherits a 2417 # broken ls alias from the environment. This has actually 2418 # happened. Such a system could not be considered "sane". 2419 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2420alias in your environment" >&5 2421$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2422alias in your environment" >&2;} 2423 { (exit 1); exit 1; }; } 2424 fi 2425 2426 test "$2" = conftest.file 2427 ) 2428then 2429 # Ok. 2430 : 2431else 2432 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2433Check your system clock" >&5 2434$as_echo "$as_me: error: newly created file is older than distributed files! 2435Check your system clock" >&2;} 2436 { (exit 1); exit 1; }; } 2437fi 2438{ $as_echo "$as_me:$LINENO: result: yes" >&5 2439$as_echo "yes" >&6; } 2440test "$program_prefix" != NONE && 2441 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2442# Use a double $ so make ignores it. 2443test "$program_suffix" != NONE && 2444 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2445# Double any \ or $. 2446# By default was `s,x,x', remove it if useless. 2447ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2448program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2449 2450 2451# expand $ac_aux_dir to an absolute path 2452am_aux_dir=`cd $ac_aux_dir && pwd` 2453 2454test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2455# Use eval to expand $SHELL 2456if eval "$MISSING --run true"; then 2457 am_missing_run="$MISSING --run " 2458else 2459 am_missing_run= 2460 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2461$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2462fi 2463 2464for ac_prog in gawk mawk nawk awk 2465do 2466 # Extract the first word of "$ac_prog", so it can be a program name with args. 2467set dummy $ac_prog; ac_word=$2 2468{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2469$as_echo_n "checking for $ac_word... " >&6; } 2470if test "${ac_cv_prog_AWK+set}" = set; then 2471 $as_echo_n "(cached) " >&6 2472else 2473 if test -n "$AWK"; then 2474 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2475else 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477for as_dir in $PATH 2478do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 for ac_exec_ext in '' $ac_executable_extensions; do 2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2483 ac_cv_prog_AWK="$ac_prog" 2484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2485 break 2 2486 fi 2487done 2488done 2489IFS=$as_save_IFS 2490 2491fi 2492fi 2493AWK=$ac_cv_prog_AWK 2494if test -n "$AWK"; then 2495 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2496$as_echo "$AWK" >&6; } 2497else 2498 { $as_echo "$as_me:$LINENO: result: no" >&5 2499$as_echo "no" >&6; } 2500fi 2501 2502 2503 test -n "$AWK" && break 2504done 2505 2506{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2507$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2508set x ${MAKE-make} 2509ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2510if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2511 $as_echo_n "(cached) " >&6 2512else 2513 cat >conftest.make <<\_ACEOF 2514SHELL = /bin/sh 2515all: 2516 @echo '@@@%%%=$(MAKE)=@@@%%%' 2517_ACEOF 2518# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2519case `${MAKE-make} -f conftest.make 2>/dev/null` in 2520 *@@@%%%=?*=@@@%%%*) 2521 eval ac_cv_prog_make_${ac_make}_set=yes;; 2522 *) 2523 eval ac_cv_prog_make_${ac_make}_set=no;; 2524esac 2525rm -f conftest.make 2526fi 2527if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2528 { $as_echo "$as_me:$LINENO: result: yes" >&5 2529$as_echo "yes" >&6; } 2530 SET_MAKE= 2531else 2532 { $as_echo "$as_me:$LINENO: result: no" >&5 2533$as_echo "no" >&6; } 2534 SET_MAKE="MAKE=${MAKE-make}" 2535fi 2536 2537 # test to see if srcdir already configured 2538if test "`cd $srcdir && pwd`" != "`pwd`" && 2539 test -f $srcdir/config.status; then 2540 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2541$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2542 { (exit 1); exit 1; }; } 2543fi 2544 2545# Define the identity of the package. 2546 PACKAGE=libtheora 2547 VERSION=1.1.1 2548 2549 2550cat >>confdefs.h <<_ACEOF 2551#define PACKAGE "$PACKAGE" 2552_ACEOF 2553 2554 2555cat >>confdefs.h <<_ACEOF 2556#define VERSION "$VERSION" 2557_ACEOF 2558 2559# Some tools Automake needs. 2560 2561ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2562 2563 2564AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2565 2566 2567AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2568 2569 2570AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2571 2572 2573MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2574 2575 2576AMTAR=${AMTAR-"${am_missing_run}tar"} 2577 2578install_sh=${install_sh-"$am_aux_dir/install-sh"} 2579 2580# Installed binaries are usually stripped using `strip' when the user 2581# run `make install-strip'. However `strip' might not be the right 2582# tool to use in cross-compilation environments, therefore Automake 2583# will honor the `STRIP' environment variable to overrule this program. 2584if test "$cross_compiling" != no; then 2585 if test -n "$ac_tool_prefix"; then 2586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2587set dummy ${ac_tool_prefix}strip; ac_word=$2 2588{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2589$as_echo_n "checking for $ac_word... " >&6; } 2590if test "${ac_cv_prog_STRIP+set}" = set; then 2591 $as_echo_n "(cached) " >&6 2592else 2593 if test -n "$STRIP"; then 2594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2595else 2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2597for as_dir in $PATH 2598do 2599 IFS=$as_save_IFS 2600 test -z "$as_dir" && as_dir=. 2601 for ac_exec_ext in '' $ac_executable_extensions; do 2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2603 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2605 break 2 2606 fi 2607done 2608done 2609IFS=$as_save_IFS 2610 2611fi 2612fi 2613STRIP=$ac_cv_prog_STRIP 2614if test -n "$STRIP"; then 2615 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2616$as_echo "$STRIP" >&6; } 2617else 2618 { $as_echo "$as_me:$LINENO: result: no" >&5 2619$as_echo "no" >&6; } 2620fi 2621 2622 2623fi 2624if test -z "$ac_cv_prog_STRIP"; then 2625 ac_ct_STRIP=$STRIP 2626 # Extract the first word of "strip", so it can be a program name with args. 2627set dummy strip; ac_word=$2 2628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2629$as_echo_n "checking for $ac_word... " >&6; } 2630if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2631 $as_echo_n "(cached) " >&6 2632else 2633 if test -n "$ac_ct_STRIP"; then 2634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2635else 2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637for as_dir in $PATH 2638do 2639 IFS=$as_save_IFS 2640 test -z "$as_dir" && as_dir=. 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2643 ac_cv_prog_ac_ct_STRIP="strip" 2644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2645 break 2 2646 fi 2647done 2648done 2649IFS=$as_save_IFS 2650 2651fi 2652fi 2653ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2654if test -n "$ac_ct_STRIP"; then 2655 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2656$as_echo "$ac_ct_STRIP" >&6; } 2657else 2658 { $as_echo "$as_me:$LINENO: result: no" >&5 2659$as_echo "no" >&6; } 2660fi 2661 2662 if test "x$ac_ct_STRIP" = x; then 2663 STRIP=":" 2664 else 2665 case $cross_compiling:$ac_tool_warned in 2666yes:) 2667{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2669ac_tool_warned=yes ;; 2670esac 2671 STRIP=$ac_ct_STRIP 2672 fi 2673else 2674 STRIP="$ac_cv_prog_STRIP" 2675fi 2676 2677fi 2678INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2679 2680# We need awk for the "check" target. The system "awk" is bad on 2681# some platforms. 2682 2683 2684 2685{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2686$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2687 # Check whether --enable-maintainer-mode was given. 2688if test "${enable_maintainer_mode+set}" = set; then 2689 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2690else 2691 USE_MAINTAINER_MODE=no 2692fi 2693 2694 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2695$as_echo "$USE_MAINTAINER_MODE" >&6; } 2696 2697 2698if test $USE_MAINTAINER_MODE = yes; then 2699 MAINTAINER_MODE_TRUE= 2700 MAINTAINER_MODE_FALSE='#' 2701else 2702 MAINTAINER_MODE_TRUE='#' 2703 MAINTAINER_MODE_FALSE= 2704fi 2705 2706 MAINT=$MAINTAINER_MODE_TRUE 2707 2708 2709 2710 2711TH_LIB_CURRENT=3 2712TH_LIB_REVISION=10 2713TH_LIB_AGE=3 2714 2715 2716 2717 2718THDEC_LIB_CURRENT=2 2719THDEC_LIB_REVISION=4 2720THDEC_LIB_AGE=1 2721 2722 2723 2724 2725THENC_LIB_CURRENT=2 2726THENC_LIB_REVISION=2 2727THENC_LIB_AGE=1 2728 2729 2730 2731 2732THEORA_LDFLAGS="" 2733 2734 2735cflags_save="$CFLAGS" 2736ac_ext=c 2737ac_cpp='$CPP $CPPFLAGS' 2738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2740ac_compiler_gnu=$ac_cv_c_compiler_gnu 2741if test -n "$ac_tool_prefix"; then 2742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2743set dummy ${ac_tool_prefix}gcc; ac_word=$2 2744{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2745$as_echo_n "checking for $ac_word... " >&6; } 2746if test "${ac_cv_prog_CC+set}" = set; then 2747 $as_echo_n "(cached) " >&6 2748else 2749 if test -n "$CC"; then 2750 ac_cv_prog_CC="$CC" # Let the user override the test. 2751else 2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753for as_dir in $PATH 2754do 2755 IFS=$as_save_IFS 2756 test -z "$as_dir" && as_dir=. 2757 for ac_exec_ext in '' $ac_executable_extensions; do 2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2759 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2761 break 2 2762 fi 2763done 2764done 2765IFS=$as_save_IFS 2766 2767fi 2768fi 2769CC=$ac_cv_prog_CC 2770if test -n "$CC"; then 2771 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2772$as_echo "$CC" >&6; } 2773else 2774 { $as_echo "$as_me:$LINENO: result: no" >&5 2775$as_echo "no" >&6; } 2776fi 2777 2778 2779fi 2780if test -z "$ac_cv_prog_CC"; then 2781 ac_ct_CC=$CC 2782 # Extract the first word of "gcc", so it can be a program name with args. 2783set dummy gcc; ac_word=$2 2784{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2785$as_echo_n "checking for $ac_word... " >&6; } 2786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2787 $as_echo_n "(cached) " >&6 2788else 2789 if test -n "$ac_ct_CC"; then 2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2791else 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2799 ac_cv_prog_ac_ct_CC="gcc" 2800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2801 break 2 2802 fi 2803done 2804done 2805IFS=$as_save_IFS 2806 2807fi 2808fi 2809ac_ct_CC=$ac_cv_prog_ac_ct_CC 2810if test -n "$ac_ct_CC"; then 2811 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2812$as_echo "$ac_ct_CC" >&6; } 2813else 2814 { $as_echo "$as_me:$LINENO: result: no" >&5 2815$as_echo "no" >&6; } 2816fi 2817 2818 if test "x$ac_ct_CC" = x; then 2819 CC="" 2820 else 2821 case $cross_compiling:$ac_tool_warned in 2822yes:) 2823{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2825ac_tool_warned=yes ;; 2826esac 2827 CC=$ac_ct_CC 2828 fi 2829else 2830 CC="$ac_cv_prog_CC" 2831fi 2832 2833if test -z "$CC"; then 2834 if test -n "$ac_tool_prefix"; then 2835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2836set dummy ${ac_tool_prefix}cc; ac_word=$2 2837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2838$as_echo_n "checking for $ac_word... " >&6; } 2839if test "${ac_cv_prog_CC+set}" = set; then 2840 $as_echo_n "(cached) " >&6 2841else 2842 if test -n "$CC"; then 2843 ac_cv_prog_CC="$CC" # Let the user override the test. 2844else 2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846for as_dir in $PATH 2847do 2848 IFS=$as_save_IFS 2849 test -z "$as_dir" && as_dir=. 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2852 ac_cv_prog_CC="${ac_tool_prefix}cc" 2853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2854 break 2 2855 fi 2856done 2857done 2858IFS=$as_save_IFS 2859 2860fi 2861fi 2862CC=$ac_cv_prog_CC 2863if test -n "$CC"; then 2864 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2865$as_echo "$CC" >&6; } 2866else 2867 { $as_echo "$as_me:$LINENO: result: no" >&5 2868$as_echo "no" >&6; } 2869fi 2870 2871 2872 fi 2873fi 2874if test -z "$CC"; then 2875 # Extract the first word of "cc", so it can be a program name with args. 2876set dummy cc; ac_word=$2 2877{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2878$as_echo_n "checking for $ac_word... " >&6; } 2879if test "${ac_cv_prog_CC+set}" = set; then 2880 $as_echo_n "(cached) " >&6 2881else 2882 if test -n "$CC"; then 2883 ac_cv_prog_CC="$CC" # Let the user override the test. 2884else 2885 ac_prog_rejected=no 2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887for as_dir in $PATH 2888do 2889 IFS=$as_save_IFS 2890 test -z "$as_dir" && as_dir=. 2891 for ac_exec_ext in '' $ac_executable_extensions; do 2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2894 ac_prog_rejected=yes 2895 continue 2896 fi 2897 ac_cv_prog_CC="cc" 2898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2899 break 2 2900 fi 2901done 2902done 2903IFS=$as_save_IFS 2904 2905if test $ac_prog_rejected = yes; then 2906 # We found a bogon in the path, so make sure we never use it. 2907 set dummy $ac_cv_prog_CC 2908 shift 2909 if test $# != 0; then 2910 # We chose a different compiler from the bogus one. 2911 # However, it has the same basename, so the bogon will be chosen 2912 # first if we set CC to just the basename; use the full file name. 2913 shift 2914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2915 fi 2916fi 2917fi 2918fi 2919CC=$ac_cv_prog_CC 2920if test -n "$CC"; then 2921 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2922$as_echo "$CC" >&6; } 2923else 2924 { $as_echo "$as_me:$LINENO: result: no" >&5 2925$as_echo "no" >&6; } 2926fi 2927 2928 2929fi 2930if test -z "$CC"; then 2931 if test -n "$ac_tool_prefix"; then 2932 for ac_prog in cl.exe 2933 do 2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2935set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2937$as_echo_n "checking for $ac_word... " >&6; } 2938if test "${ac_cv_prog_CC+set}" = set; then 2939 $as_echo_n "(cached) " >&6 2940else 2941 if test -n "$CC"; then 2942 ac_cv_prog_CC="$CC" # Let the user override the test. 2943else 2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2945for as_dir in $PATH 2946do 2947 IFS=$as_save_IFS 2948 test -z "$as_dir" && as_dir=. 2949 for ac_exec_ext in '' $ac_executable_extensions; do 2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2953 break 2 2954 fi 2955done 2956done 2957IFS=$as_save_IFS 2958 2959fi 2960fi 2961CC=$ac_cv_prog_CC 2962if test -n "$CC"; then 2963 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2964$as_echo "$CC" >&6; } 2965else 2966 { $as_echo "$as_me:$LINENO: result: no" >&5 2967$as_echo "no" >&6; } 2968fi 2969 2970 2971 test -n "$CC" && break 2972 done 2973fi 2974if test -z "$CC"; then 2975 ac_ct_CC=$CC 2976 for ac_prog in cl.exe 2977do 2978 # Extract the first word of "$ac_prog", so it can be a program name with args. 2979set dummy $ac_prog; ac_word=$2 2980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2981$as_echo_n "checking for $ac_word... " >&6; } 2982if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2983 $as_echo_n "(cached) " >&6 2984else 2985 if test -n "$ac_ct_CC"; then 2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2987else 2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989for as_dir in $PATH 2990do 2991 IFS=$as_save_IFS 2992 test -z "$as_dir" && as_dir=. 2993 for ac_exec_ext in '' $ac_executable_extensions; do 2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2995 ac_cv_prog_ac_ct_CC="$ac_prog" 2996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2997 break 2 2998 fi 2999done 3000done 3001IFS=$as_save_IFS 3002 3003fi 3004fi 3005ac_ct_CC=$ac_cv_prog_ac_ct_CC 3006if test -n "$ac_ct_CC"; then 3007 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3008$as_echo "$ac_ct_CC" >&6; } 3009else 3010 { $as_echo "$as_me:$LINENO: result: no" >&5 3011$as_echo "no" >&6; } 3012fi 3013 3014 3015 test -n "$ac_ct_CC" && break 3016done 3017 3018 if test "x$ac_ct_CC" = x; then 3019 CC="" 3020 else 3021 case $cross_compiling:$ac_tool_warned in 3022yes:) 3023{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3025ac_tool_warned=yes ;; 3026esac 3027 CC=$ac_ct_CC 3028 fi 3029fi 3030 3031fi 3032 3033 3034test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3036{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3037See \`config.log' for more details." >&5 3038$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3039See \`config.log' for more details." >&2;} 3040 { (exit 1); exit 1; }; }; } 3041 3042# Provide some information about the compiler. 3043$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3044set X $ac_compile 3045ac_compiler=$2 3046{ (ac_try="$ac_compiler --version >&5" 3047case "(($ac_try" in 3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3049 *) ac_try_echo=$ac_try;; 3050esac 3051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3052$as_echo "$ac_try_echo") >&5 3053 (eval "$ac_compiler --version >&5") 2>&5 3054 ac_status=$? 3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); } 3057{ (ac_try="$ac_compiler -v >&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 -v >&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 3080cat >conftest.$ac_ext <<_ACEOF 3081/* confdefs.h. */ 3082_ACEOF 3083cat confdefs.h >>conftest.$ac_ext 3084cat >>conftest.$ac_ext <<_ACEOF 3085/* end confdefs.h. */ 3086 3087int 3088main () 3089{ 3090 3091 ; 3092 return 0; 3093} 3094_ACEOF 3095ac_clean_files_save=$ac_clean_files 3096ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3097# Try to create an executable without -o first, disregard a.out. 3098# It will help us diagnose broken compilers, and finding out an intuition 3099# of exeext. 3100{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3101$as_echo_n "checking for C compiler default output file name... " >&6; } 3102ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3103 3104# The possible output files: 3105ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3106 3107ac_rmfiles= 3108for ac_file in $ac_files 3109do 3110 case $ac_file in 3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3112 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3113 esac 3114done 3115rm -f $ac_rmfiles 3116 3117if { (ac_try="$ac_link_default" 3118case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3123$as_echo "$ac_try_echo") >&5 3124 (eval "$ac_link_default") 2>&5 3125 ac_status=$? 3126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); }; then 3128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3129# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3130# in a Makefile. We should not override ac_cv_exeext if it was cached, 3131# so that the user can short-circuit this test for compilers unknown to 3132# Autoconf. 3133for ac_file in $ac_files '' 3134do 3135 test -f "$ac_file" || continue 3136 case $ac_file in 3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3138 ;; 3139 [ab].out ) 3140 # We found the default executable, but exeext='' is most 3141 # certainly right. 3142 break;; 3143 *.* ) 3144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3145 then :; else 3146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3147 fi 3148 # We set ac_cv_exeext here because the later test for it is not 3149 # safe: cross compilers may not add the suffix if given an `-o' 3150 # argument, so we may need to know it at that point already. 3151 # Even if this section looks crufty: it has the advantage of 3152 # actually working. 3153 break;; 3154 * ) 3155 break;; 3156 esac 3157done 3158test "$ac_cv_exeext" = no && ac_cv_exeext= 3159 3160else 3161 ac_file='' 3162fi 3163 3164{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3165$as_echo "$ac_file" >&6; } 3166if test -z "$ac_file"; then 3167 $as_echo "$as_me: failed program was:" >&5 3168sed 's/^/| /' conftest.$ac_ext >&5 3169 3170{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3172{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3173See \`config.log' for more details." >&5 3174$as_echo "$as_me: error: C compiler cannot create executables 3175See \`config.log' for more details." >&2;} 3176 { (exit 77); exit 77; }; }; } 3177fi 3178 3179ac_exeext=$ac_cv_exeext 3180 3181# Check that the compiler produces executables we can run. If not, either 3182# the compiler is broken, or we cross compile. 3183{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3184$as_echo_n "checking whether the C compiler works... " >&6; } 3185# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3186# If not cross compiling, check that we can run a simple program. 3187if test "$cross_compiling" != yes; then 3188 if { ac_try='./$ac_file' 3189 { (case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3194$as_echo "$ac_try_echo") >&5 3195 (eval "$ac_try") 2>&5 3196 ac_status=$? 3197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); }; }; then 3199 cross_compiling=no 3200 else 3201 if test "$cross_compiling" = maybe; then 3202 cross_compiling=yes 3203 else 3204 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3206{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3207If you meant to cross compile, use \`--host'. 3208See \`config.log' for more details." >&5 3209$as_echo "$as_me: error: cannot run C compiled programs. 3210If you meant to cross compile, use \`--host'. 3211See \`config.log' for more details." >&2;} 3212 { (exit 1); exit 1; }; }; } 3213 fi 3214 fi 3215fi 3216{ $as_echo "$as_me:$LINENO: result: yes" >&5 3217$as_echo "yes" >&6; } 3218 3219rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3220ac_clean_files=$ac_clean_files_save 3221# Check that the compiler produces executables we can run. If not, either 3222# the compiler is broken, or we cross compile. 3223{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3224$as_echo_n "checking whether we are cross compiling... " >&6; } 3225{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3226$as_echo "$cross_compiling" >&6; } 3227 3228{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3229$as_echo_n "checking for suffix of executables... " >&6; } 3230if { (ac_try="$ac_link" 3231case "(($ac_try" in 3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3233 *) ac_try_echo=$ac_try;; 3234esac 3235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3236$as_echo "$ac_try_echo") >&5 3237 (eval "$ac_link") 2>&5 3238 ac_status=$? 3239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3240 (exit $ac_status); }; then 3241 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3242# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3243# work properly (i.e., refer to `conftest.exe'), while it won't with 3244# `rm'. 3245for ac_file in conftest.exe conftest conftest.*; do 3246 test -f "$ac_file" || continue 3247 case $ac_file in 3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3249 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3250 break;; 3251 * ) break;; 3252 esac 3253done 3254else 3255 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3257{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3258See \`config.log' for more details." >&5 3259$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3260See \`config.log' for more details." >&2;} 3261 { (exit 1); exit 1; }; }; } 3262fi 3263 3264rm -f conftest$ac_cv_exeext 3265{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3266$as_echo "$ac_cv_exeext" >&6; } 3267 3268rm -f conftest.$ac_ext 3269EXEEXT=$ac_cv_exeext 3270ac_exeext=$EXEEXT 3271{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3272$as_echo_n "checking for suffix of object files... " >&6; } 3273if test "${ac_cv_objext+set}" = set; then 3274 $as_echo_n "(cached) " >&6 3275else 3276 cat >conftest.$ac_ext <<_ACEOF 3277/* confdefs.h. */ 3278_ACEOF 3279cat confdefs.h >>conftest.$ac_ext 3280cat >>conftest.$ac_ext <<_ACEOF 3281/* end confdefs.h. */ 3282 3283int 3284main () 3285{ 3286 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291rm -f conftest.o conftest.obj 3292if { (ac_try="$ac_compile" 3293case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296esac 3297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3298$as_echo "$ac_try_echo") >&5 3299 (eval "$ac_compile") 2>&5 3300 ac_status=$? 3301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3302 (exit $ac_status); }; then 3303 for ac_file in conftest.o conftest.obj conftest.*; do 3304 test -f "$ac_file" || continue; 3305 case $ac_file in 3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3308 break;; 3309 esac 3310done 3311else 3312 $as_echo "$as_me: failed program was:" >&5 3313sed 's/^/| /' conftest.$ac_ext >&5 3314 3315{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3317{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3318See \`config.log' for more details." >&5 3319$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3320See \`config.log' for more details." >&2;} 3321 { (exit 1); exit 1; }; }; } 3322fi 3323 3324rm -f conftest.$ac_cv_objext conftest.$ac_ext 3325fi 3326{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3327$as_echo "$ac_cv_objext" >&6; } 3328OBJEXT=$ac_cv_objext 3329ac_objext=$OBJEXT 3330{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3332if test "${ac_cv_c_compiler_gnu+set}" = set; then 3333 $as_echo_n "(cached) " >&6 3334else 3335 cat >conftest.$ac_ext <<_ACEOF 3336/* confdefs.h. */ 3337_ACEOF 3338cat confdefs.h >>conftest.$ac_ext 3339cat >>conftest.$ac_ext <<_ACEOF 3340/* end confdefs.h. */ 3341 3342int 3343main () 3344{ 3345#ifndef __GNUC__ 3346 choke me 3347#endif 3348 3349 ; 3350 return 0; 3351} 3352_ACEOF 3353rm -f conftest.$ac_objext 3354if { (ac_try="$ac_compile" 3355case "(($ac_try" in 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3357 *) ac_try_echo=$ac_try;; 3358esac 3359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3360$as_echo "$ac_try_echo") >&5 3361 (eval "$ac_compile") 2>conftest.er1 3362 ac_status=$? 3363 grep -v '^ *+' conftest.er1 >conftest.err 3364 rm -f conftest.er1 3365 cat conftest.err >&5 3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3367 (exit $ac_status); } && { 3368 test -z "$ac_c_werror_flag" || 3369 test ! -s conftest.err 3370 } && test -s conftest.$ac_objext; then 3371 ac_compiler_gnu=yes 3372else 3373 $as_echo "$as_me: failed program was:" >&5 3374sed 's/^/| /' conftest.$ac_ext >&5 3375 3376 ac_compiler_gnu=no 3377fi 3378 3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3380ac_cv_c_compiler_gnu=$ac_compiler_gnu 3381 3382fi 3383{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3384$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3385if test $ac_compiler_gnu = yes; then 3386 GCC=yes 3387else 3388 GCC= 3389fi 3390ac_test_CFLAGS=${CFLAGS+set} 3391ac_save_CFLAGS=$CFLAGS 3392{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3393$as_echo_n "checking whether $CC accepts -g... " >&6; } 3394if test "${ac_cv_prog_cc_g+set}" = set; then 3395 $as_echo_n "(cached) " >&6 3396else 3397 ac_save_c_werror_flag=$ac_c_werror_flag 3398 ac_c_werror_flag=yes 3399 ac_cv_prog_cc_g=no 3400 CFLAGS="-g" 3401 cat >conftest.$ac_ext <<_ACEOF 3402/* confdefs.h. */ 3403_ACEOF 3404cat confdefs.h >>conftest.$ac_ext 3405cat >>conftest.$ac_ext <<_ACEOF 3406/* end confdefs.h. */ 3407 3408int 3409main () 3410{ 3411 3412 ; 3413 return 0; 3414} 3415_ACEOF 3416rm -f conftest.$ac_objext 3417if { (ac_try="$ac_compile" 3418case "(($ac_try" in 3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3420 *) ac_try_echo=$ac_try;; 3421esac 3422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3423$as_echo "$ac_try_echo") >&5 3424 (eval "$ac_compile") 2>conftest.er1 3425 ac_status=$? 3426 grep -v '^ *+' conftest.er1 >conftest.err 3427 rm -f conftest.er1 3428 cat conftest.err >&5 3429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3430 (exit $ac_status); } && { 3431 test -z "$ac_c_werror_flag" || 3432 test ! -s conftest.err 3433 } && test -s conftest.$ac_objext; then 3434 ac_cv_prog_cc_g=yes 3435else 3436 $as_echo "$as_me: failed program was:" >&5 3437sed 's/^/| /' conftest.$ac_ext >&5 3438 3439 CFLAGS="" 3440 cat >conftest.$ac_ext <<_ACEOF 3441/* confdefs.h. */ 3442_ACEOF 3443cat confdefs.h >>conftest.$ac_ext 3444cat >>conftest.$ac_ext <<_ACEOF 3445/* end confdefs.h. */ 3446 3447int 3448main () 3449{ 3450 3451 ; 3452 return 0; 3453} 3454_ACEOF 3455rm -f conftest.$ac_objext 3456if { (ac_try="$ac_compile" 3457case "(($ac_try" in 3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3459 *) ac_try_echo=$ac_try;; 3460esac 3461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3462$as_echo "$ac_try_echo") >&5 3463 (eval "$ac_compile") 2>conftest.er1 3464 ac_status=$? 3465 grep -v '^ *+' conftest.er1 >conftest.err 3466 rm -f conftest.er1 3467 cat conftest.err >&5 3468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); } && { 3470 test -z "$ac_c_werror_flag" || 3471 test ! -s conftest.err 3472 } && test -s conftest.$ac_objext; then 3473 : 3474else 3475 $as_echo "$as_me: failed program was:" >&5 3476sed 's/^/| /' conftest.$ac_ext >&5 3477 3478 ac_c_werror_flag=$ac_save_c_werror_flag 3479 CFLAGS="-g" 3480 cat >conftest.$ac_ext <<_ACEOF 3481/* confdefs.h. */ 3482_ACEOF 3483cat confdefs.h >>conftest.$ac_ext 3484cat >>conftest.$ac_ext <<_ACEOF 3485/* end confdefs.h. */ 3486 3487int 3488main () 3489{ 3490 3491 ; 3492 return 0; 3493} 3494_ACEOF 3495rm -f conftest.$ac_objext 3496if { (ac_try="$ac_compile" 3497case "(($ac_try" in 3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3499 *) ac_try_echo=$ac_try;; 3500esac 3501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3502$as_echo "$ac_try_echo") >&5 3503 (eval "$ac_compile") 2>conftest.er1 3504 ac_status=$? 3505 grep -v '^ *+' conftest.er1 >conftest.err 3506 rm -f conftest.er1 3507 cat conftest.err >&5 3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3509 (exit $ac_status); } && { 3510 test -z "$ac_c_werror_flag" || 3511 test ! -s conftest.err 3512 } && test -s conftest.$ac_objext; then 3513 ac_cv_prog_cc_g=yes 3514else 3515 $as_echo "$as_me: failed program was:" >&5 3516sed 's/^/| /' conftest.$ac_ext >&5 3517 3518 3519fi 3520 3521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3522fi 3523 3524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3525fi 3526 3527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3528 ac_c_werror_flag=$ac_save_c_werror_flag 3529fi 3530{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3531$as_echo "$ac_cv_prog_cc_g" >&6; } 3532if test "$ac_test_CFLAGS" = set; then 3533 CFLAGS=$ac_save_CFLAGS 3534elif test $ac_cv_prog_cc_g = yes; then 3535 if test "$GCC" = yes; then 3536 CFLAGS="-g -O2" 3537 else 3538 CFLAGS="-g" 3539 fi 3540else 3541 if test "$GCC" = yes; then 3542 CFLAGS="-O2" 3543 else 3544 CFLAGS= 3545 fi 3546fi 3547{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3548$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3549if test "${ac_cv_prog_cc_c89+set}" = set; then 3550 $as_echo_n "(cached) " >&6 3551else 3552 ac_cv_prog_cc_c89=no 3553ac_save_CC=$CC 3554cat >conftest.$ac_ext <<_ACEOF 3555/* confdefs.h. */ 3556_ACEOF 3557cat confdefs.h >>conftest.$ac_ext 3558cat >>conftest.$ac_ext <<_ACEOF 3559/* end confdefs.h. */ 3560#include <stdarg.h> 3561#include <stdio.h> 3562#include <sys/types.h> 3563#include <sys/stat.h> 3564/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3565struct buf { int x; }; 3566FILE * (*rcsopen) (struct buf *, struct stat *, int); 3567static char *e (p, i) 3568 char **p; 3569 int i; 3570{ 3571 return p[i]; 3572} 3573static char *f (char * (*g) (char **, int), char **p, ...) 3574{ 3575 char *s; 3576 va_list v; 3577 va_start (v,p); 3578 s = g (p, va_arg (v,int)); 3579 va_end (v); 3580 return s; 3581} 3582 3583/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3584 function prototypes and stuff, but not '\xHH' hex character constants. 3585 These don't provoke an error unfortunately, instead are silently treated 3586 as 'x'. The following induces an error, until -std is added to get 3587 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3588 array size at least. It's necessary to write '\x00'==0 to get something 3589 that's true only with -std. */ 3590int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3591 3592/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3593 inside strings and character constants. */ 3594#define FOO(x) 'x' 3595int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3596 3597int test (int i, double x); 3598struct s1 {int (*f) (int a);}; 3599struct s2 {int (*f) (double a);}; 3600int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3601int argc; 3602char **argv; 3603int 3604main () 3605{ 3606return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3607 ; 3608 return 0; 3609} 3610_ACEOF 3611for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3612 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3613do 3614 CC="$ac_save_CC $ac_arg" 3615 rm -f conftest.$ac_objext 3616if { (ac_try="$ac_compile" 3617case "(($ac_try" in 3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3619 *) ac_try_echo=$ac_try;; 3620esac 3621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3622$as_echo "$ac_try_echo") >&5 3623 (eval "$ac_compile") 2>conftest.er1 3624 ac_status=$? 3625 grep -v '^ *+' conftest.er1 >conftest.err 3626 rm -f conftest.er1 3627 cat conftest.err >&5 3628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3629 (exit $ac_status); } && { 3630 test -z "$ac_c_werror_flag" || 3631 test ! -s conftest.err 3632 } && test -s conftest.$ac_objext; then 3633 ac_cv_prog_cc_c89=$ac_arg 3634else 3635 $as_echo "$as_me: failed program was:" >&5 3636sed 's/^/| /' conftest.$ac_ext >&5 3637 3638 3639fi 3640 3641rm -f core conftest.err conftest.$ac_objext 3642 test "x$ac_cv_prog_cc_c89" != "xno" && break 3643done 3644rm -f conftest.$ac_ext 3645CC=$ac_save_CC 3646 3647fi 3648# AC_CACHE_VAL 3649case "x$ac_cv_prog_cc_c89" in 3650 x) 3651 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3652$as_echo "none needed" >&6; } ;; 3653 xno) 3654 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3655$as_echo "unsupported" >&6; } ;; 3656 *) 3657 CC="$CC $ac_cv_prog_cc_c89" 3658 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3659$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3660esac 3661 3662 3663ac_ext=c 3664ac_cpp='$CPP $CPPFLAGS' 3665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3667ac_compiler_gnu=$ac_cv_c_compiler_gnu 3668rm -f .deps 2>/dev/null 3669mkdir .deps 2>/dev/null 3670if test -d .deps; then 3671 DEPDIR=.deps 3672else 3673 # MS-DOS does not allow filenames that begin with a dot. 3674 DEPDIR=_deps 3675fi 3676rmdir .deps 2>/dev/null 3677 3678 3679ac_config_commands="$ac_config_commands depfiles" 3680 3681 3682am_make=${MAKE-make} 3683cat > confinc << 'END' 3684doit: 3685 @echo done 3686END 3687# If we don't find an include directive, just comment out the code. 3688{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3689$as_echo_n "checking for style of include used by $am_make... " >&6; } 3690am__include="#" 3691am__quote= 3692_am_result=none 3693# First try GNU make style include. 3694echo "include confinc" > confmf 3695# We grep out `Entering directory' and `Leaving directory' 3696# messages which can occur if `w' ends up in MAKEFLAGS. 3697# In particular we don't look at `^make:' because GNU make might 3698# be invoked under some other name (usually "gmake"), in which 3699# case it prints its new name instead of `make'. 3700if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 3701 am__include=include 3702 am__quote= 3703 _am_result=GNU 3704fi 3705# Now try BSD make style include. 3706if test "$am__include" = "#"; then 3707 echo '.include "confinc"' > confmf 3708 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3709 am__include=.include 3710 am__quote="\"" 3711 _am_result=BSD 3712 fi 3713fi 3714 3715 3716{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3717$as_echo "$_am_result" >&6; } 3718rm -f confinc confmf 3719 3720# Check whether --enable-dependency-tracking was given. 3721if test "${enable_dependency_tracking+set}" = set; then 3722 enableval=$enable_dependency_tracking; 3723fi 3724 3725if test "x$enable_dependency_tracking" != xno; then 3726 am_depcomp="$ac_aux_dir/depcomp" 3727 AMDEPBACKSLASH='\' 3728fi 3729 3730 3731if test "x$enable_dependency_tracking" != xno; then 3732 AMDEP_TRUE= 3733 AMDEP_FALSE='#' 3734else 3735 AMDEP_TRUE='#' 3736 AMDEP_FALSE= 3737fi 3738 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 3761 am_cv_CC_dependencies_compiler_type=none 3762 if test "$am_compiler_list" = ""; then 3763 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3764 fi 3765 for depmode in $am_compiler_list; do 3766 # We need to recreate these files for each test, as the compiler may 3767 # overwrite some of them when testing with obscure command lines. 3768 # This happens at least with the AIX C compiler. 3769 echo '#include "conftest.h"' > conftest.c 3770 echo 'int i;' > conftest.h 3771 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 3772 3773 case $depmode in 3774 nosideeffect) 3775 # after this tag, mechanisms are not by side-effect, so they'll 3776 # only be used when explicitly requested 3777 if test "x$enable_dependency_tracking" = xyes; then 3778 continue 3779 else 3780 break 3781 fi 3782 ;; 3783 none) break ;; 3784 esac 3785 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3786 # mode. It turns out that the SunPro C++ compiler does not properly 3787 # handle `-M -o', and we need to detect this. 3788 if depmode=$depmode \ 3789 source=conftest.c object=conftest.o \ 3790 depfile=conftest.Po tmpdepfile=conftest.TPo \ 3791 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 3792 grep conftest.h conftest.Po > /dev/null 2>&1 && 3793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3794 am_cv_CC_dependencies_compiler_type=$depmode 3795 break 3796 fi 3797 done 3798 3799 cd .. 3800 rm -rf conftest.dir 3801else 3802 am_cv_CC_dependencies_compiler_type=none 3803fi 3804 3805fi 3806{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3807$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3808CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3809 3810 3811ac_ext=c 3812ac_cpp='$CPP $CPPFLAGS' 3813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3815ac_compiler_gnu=$ac_cv_c_compiler_gnu 3816{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3817$as_echo_n "checking how to run the C preprocessor... " >&6; } 3818# On Suns, sometimes $CPP names a directory. 3819if test -n "$CPP" && test -d "$CPP"; then 3820 CPP= 3821fi 3822if test -z "$CPP"; then 3823 if test "${ac_cv_prog_CPP+set}" = set; then 3824 $as_echo_n "(cached) " >&6 3825else 3826 # Double quotes because CPP needs to be expanded 3827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3828 do 3829 ac_preproc_ok=false 3830for ac_c_preproc_warn_flag in '' yes 3831do 3832 # Use a header file that comes with gcc, so configuring glibc 3833 # with a fresh cross-compiler works. 3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3835 # <limits.h> exists even on freestanding compilers. 3836 # On the NeXT, cc -E runs the code through the compiler's parser, 3837 # not just through cpp. "Syntax error" is here to catch this case. 3838 cat >conftest.$ac_ext <<_ACEOF 3839/* confdefs.h. */ 3840_ACEOF 3841cat confdefs.h >>conftest.$ac_ext 3842cat >>conftest.$ac_ext <<_ACEOF 3843/* end confdefs.h. */ 3844#ifdef __STDC__ 3845# include <limits.h> 3846#else 3847# include <assert.h> 3848#endif 3849 Syntax error 3850_ACEOF 3851if { (ac_try="$ac_cpp conftest.$ac_ext" 3852case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855esac 3856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3857$as_echo "$ac_try_echo") >&5 3858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3859 ac_status=$? 3860 grep -v '^ *+' conftest.er1 >conftest.err 3861 rm -f conftest.er1 3862 cat conftest.err >&5 3863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 (exit $ac_status); } >/dev/null && { 3865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3866 test ! -s conftest.err 3867 }; then 3868 : 3869else 3870 $as_echo "$as_me: failed program was:" >&5 3871sed 's/^/| /' conftest.$ac_ext >&5 3872 3873 # Broken: fails on valid input. 3874continue 3875fi 3876 3877rm -f conftest.err conftest.$ac_ext 3878 3879 # OK, works on sane cases. Now check whether nonexistent headers 3880 # can be detected and how. 3881 cat >conftest.$ac_ext <<_ACEOF 3882/* confdefs.h. */ 3883_ACEOF 3884cat confdefs.h >>conftest.$ac_ext 3885cat >>conftest.$ac_ext <<_ACEOF 3886/* end confdefs.h. */ 3887#include <ac_nonexistent.h> 3888_ACEOF 3889if { (ac_try="$ac_cpp conftest.$ac_ext" 3890case "(($ac_try" in 3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3892 *) ac_try_echo=$ac_try;; 3893esac 3894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3895$as_echo "$ac_try_echo") >&5 3896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3897 ac_status=$? 3898 grep -v '^ *+' conftest.er1 >conftest.err 3899 rm -f conftest.er1 3900 cat conftest.err >&5 3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3902 (exit $ac_status); } >/dev/null && { 3903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3904 test ! -s conftest.err 3905 }; then 3906 # Broken: success on invalid input. 3907continue 3908else 3909 $as_echo "$as_me: failed program was:" >&5 3910sed 's/^/| /' conftest.$ac_ext >&5 3911 3912 # Passes both tests. 3913ac_preproc_ok=: 3914break 3915fi 3916 3917rm -f conftest.err conftest.$ac_ext 3918 3919done 3920# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3921rm -f conftest.err conftest.$ac_ext 3922if $ac_preproc_ok; then 3923 break 3924fi 3925 3926 done 3927 ac_cv_prog_CPP=$CPP 3928 3929fi 3930 CPP=$ac_cv_prog_CPP 3931else 3932 ac_cv_prog_CPP=$CPP 3933fi 3934{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3935$as_echo "$CPP" >&6; } 3936ac_preproc_ok=false 3937for ac_c_preproc_warn_flag in '' yes 3938do 3939 # Use a header file that comes with gcc, so configuring glibc 3940 # with a fresh cross-compiler works. 3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3942 # <limits.h> exists even on freestanding compilers. 3943 # On the NeXT, cc -E runs the code through the compiler's parser, 3944 # not just through cpp. "Syntax error" is here to catch this case. 3945 cat >conftest.$ac_ext <<_ACEOF 3946/* confdefs.h. */ 3947_ACEOF 3948cat confdefs.h >>conftest.$ac_ext 3949cat >>conftest.$ac_ext <<_ACEOF 3950/* end confdefs.h. */ 3951#ifdef __STDC__ 3952# include <limits.h> 3953#else 3954# include <assert.h> 3955#endif 3956 Syntax error 3957_ACEOF 3958if { (ac_try="$ac_cpp conftest.$ac_ext" 3959case "(($ac_try" in 3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3961 *) ac_try_echo=$ac_try;; 3962esac 3963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3964$as_echo "$ac_try_echo") >&5 3965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3966 ac_status=$? 3967 grep -v '^ *+' conftest.er1 >conftest.err 3968 rm -f conftest.er1 3969 cat conftest.err >&5 3970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3971 (exit $ac_status); } >/dev/null && { 3972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3973 test ! -s conftest.err 3974 }; then 3975 : 3976else 3977 $as_echo "$as_me: failed program was:" >&5 3978sed 's/^/| /' conftest.$ac_ext >&5 3979 3980 # Broken: fails on valid input. 3981continue 3982fi 3983 3984rm -f conftest.err conftest.$ac_ext 3985 3986 # OK, works on sane cases. Now check whether nonexistent headers 3987 # can be detected and how. 3988 cat >conftest.$ac_ext <<_ACEOF 3989/* confdefs.h. */ 3990_ACEOF 3991cat confdefs.h >>conftest.$ac_ext 3992cat >>conftest.$ac_ext <<_ACEOF 3993/* end confdefs.h. */ 3994#include <ac_nonexistent.h> 3995_ACEOF 3996if { (ac_try="$ac_cpp conftest.$ac_ext" 3997case "(($ac_try" in 3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3999 *) ac_try_echo=$ac_try;; 4000esac 4001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4002$as_echo "$ac_try_echo") >&5 4003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4004 ac_status=$? 4005 grep -v '^ *+' conftest.er1 >conftest.err 4006 rm -f conftest.er1 4007 cat conftest.err >&5 4008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4009 (exit $ac_status); } >/dev/null && { 4010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4011 test ! -s conftest.err 4012 }; then 4013 # Broken: success on invalid input. 4014continue 4015else 4016 $as_echo "$as_me: failed program was:" >&5 4017sed 's/^/| /' conftest.$ac_ext >&5 4018 4019 # Passes both tests. 4020ac_preproc_ok=: 4021break 4022fi 4023 4024rm -f conftest.err conftest.$ac_ext 4025 4026done 4027# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4028rm -f conftest.err conftest.$ac_ext 4029if $ac_preproc_ok; then 4030 : 4031else 4032 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4034{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4035See \`config.log' for more details." >&5 4036$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4037See \`config.log' for more details." >&2;} 4038 { (exit 1); exit 1; }; }; } 4039fi 4040 4041ac_ext=c 4042ac_cpp='$CPP $CPPFLAGS' 4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4045ac_compiler_gnu=$ac_cv_c_compiler_gnu 4046 4047CFLAGS="$cflags_save" 4048 4049if test "x$CC" != xcc; then 4050 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 4051$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4052else 4053 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 4054$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4055fi 4056set dummy $CC; ac_cc=`$as_echo "$2" | 4057 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4058if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 4059 $as_echo_n "(cached) " >&6 4060else 4061 cat >conftest.$ac_ext <<_ACEOF 4062/* confdefs.h. */ 4063_ACEOF 4064cat confdefs.h >>conftest.$ac_ext 4065cat >>conftest.$ac_ext <<_ACEOF 4066/* end confdefs.h. */ 4067 4068int 4069main () 4070{ 4071 4072 ; 4073 return 0; 4074} 4075_ACEOF 4076# Make sure it works both with $CC and with simple cc. 4077# We do the test twice because some compilers refuse to overwrite an 4078# existing .o file with -o, though they will create one. 4079ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4080rm -f conftest2.* 4081if { (case "(($ac_try" in 4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4083 *) ac_try_echo=$ac_try;; 4084esac 4085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4086$as_echo "$ac_try_echo") >&5 4087 (eval "$ac_try") 2>&5 4088 ac_status=$? 4089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4090 (exit $ac_status); } && 4091 test -f conftest2.$ac_objext && { (case "(($ac_try" in 4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4093 *) ac_try_echo=$ac_try;; 4094esac 4095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4096$as_echo "$ac_try_echo") >&5 4097 (eval "$ac_try") 2>&5 4098 ac_status=$? 4099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4100 (exit $ac_status); }; 4101then 4102 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4103 if test "x$CC" != xcc; then 4104 # Test first that cc exists at all. 4105 if { ac_try='cc -c conftest.$ac_ext >&5' 4106 { (case "(($ac_try" in 4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4108 *) ac_try_echo=$ac_try;; 4109esac 4110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4111$as_echo "$ac_try_echo") >&5 4112 (eval "$ac_try") 2>&5 4113 ac_status=$? 4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4115 (exit $ac_status); }; }; then 4116 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4117 rm -f conftest2.* 4118 if { (case "(($ac_try" in 4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4120 *) ac_try_echo=$ac_try;; 4121esac 4122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4123$as_echo "$ac_try_echo") >&5 4124 (eval "$ac_try") 2>&5 4125 ac_status=$? 4126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4127 (exit $ac_status); } && 4128 test -f conftest2.$ac_objext && { (case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131esac 4132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4133$as_echo "$ac_try_echo") >&5 4134 (eval "$ac_try") 2>&5 4135 ac_status=$? 4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4137 (exit $ac_status); }; 4138 then 4139 # cc works too. 4140 : 4141 else 4142 # cc exists but doesn't like -o. 4143 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4144 fi 4145 fi 4146 fi 4147else 4148 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4149fi 4150rm -f core conftest* 4151 4152fi 4153if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4154 { $as_echo "$as_me:$LINENO: result: yes" >&5 4155$as_echo "yes" >&6; } 4156else 4157 { $as_echo "$as_me:$LINENO: result: no" >&5 4158$as_echo "no" >&6; } 4159 4160cat >>confdefs.h <<\_ACEOF 4161#define NO_MINUS_C_MINUS_O 1 4162_ACEOF 4163 4164fi 4165 4166# FIXME: we rely on the cache variable name because 4167# there is no other way. 4168set dummy $CC 4169ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4170if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 4171 # Losing compiler, so override with the script. 4172 # FIXME: It is wrong to rewrite CC. 4173 # But if we don't then we get into trouble of one sort or another. 4174 # A longer-term fix would be to have automake use am__CC in this case, 4175 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4176 CC="$am_aux_dir/compile $CC" 4177fi 4178 4179enable_win32_dll=yes 4180 4181case $host in 4182*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 4183 if test -n "$ac_tool_prefix"; then 4184 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4185set dummy ${ac_tool_prefix}as; ac_word=$2 4186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4187$as_echo_n "checking for $ac_word... " >&6; } 4188if test "${ac_cv_prog_AS+set}" = set; then 4189 $as_echo_n "(cached) " >&6 4190else 4191 if test -n "$AS"; then 4192 ac_cv_prog_AS="$AS" # Let the user override the test. 4193else 4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4195for as_dir in $PATH 4196do 4197 IFS=$as_save_IFS 4198 test -z "$as_dir" && as_dir=. 4199 for ac_exec_ext in '' $ac_executable_extensions; do 4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4201 ac_cv_prog_AS="${ac_tool_prefix}as" 4202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4203 break 2 4204 fi 4205done 4206done 4207IFS=$as_save_IFS 4208 4209fi 4210fi 4211AS=$ac_cv_prog_AS 4212if test -n "$AS"; then 4213 { $as_echo "$as_me:$LINENO: result: $AS" >&5 4214$as_echo "$AS" >&6; } 4215else 4216 { $as_echo "$as_me:$LINENO: result: no" >&5 4217$as_echo "no" >&6; } 4218fi 4219 4220 4221fi 4222if test -z "$ac_cv_prog_AS"; then 4223 ac_ct_AS=$AS 4224 # Extract the first word of "as", so it can be a program name with args. 4225set dummy as; ac_word=$2 4226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4227$as_echo_n "checking for $ac_word... " >&6; } 4228if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4229 $as_echo_n "(cached) " >&6 4230else 4231 if test -n "$ac_ct_AS"; then 4232 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4233else 4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4235for as_dir in $PATH 4236do 4237 IFS=$as_save_IFS 4238 test -z "$as_dir" && as_dir=. 4239 for ac_exec_ext in '' $ac_executable_extensions; do 4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4241 ac_cv_prog_ac_ct_AS="as" 4242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4243 break 2 4244 fi 4245done 4246done 4247IFS=$as_save_IFS 4248 4249fi 4250fi 4251ac_ct_AS=$ac_cv_prog_ac_ct_AS 4252if test -n "$ac_ct_AS"; then 4253 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4254$as_echo "$ac_ct_AS" >&6; } 4255else 4256 { $as_echo "$as_me:$LINENO: result: no" >&5 4257$as_echo "no" >&6; } 4258fi 4259 4260 if test "x$ac_ct_AS" = x; then 4261 AS="false" 4262 else 4263 case $cross_compiling:$ac_tool_warned in 4264yes:) 4265{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4267ac_tool_warned=yes ;; 4268esac 4269 AS=$ac_ct_AS 4270 fi 4271else 4272 AS="$ac_cv_prog_AS" 4273fi 4274 4275 if test -n "$ac_tool_prefix"; then 4276 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4277set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4279$as_echo_n "checking for $ac_word... " >&6; } 4280if test "${ac_cv_prog_DLLTOOL+set}" = set; then 4281 $as_echo_n "(cached) " >&6 4282else 4283 if test -n "$DLLTOOL"; then 4284 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4285else 4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4287for as_dir in $PATH 4288do 4289 IFS=$as_save_IFS 4290 test -z "$as_dir" && as_dir=. 4291 for ac_exec_ext in '' $ac_executable_extensions; do 4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4293 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4295 break 2 4296 fi 4297done 4298done 4299IFS=$as_save_IFS 4300 4301fi 4302fi 4303DLLTOOL=$ac_cv_prog_DLLTOOL 4304if test -n "$DLLTOOL"; then 4305 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4306$as_echo "$DLLTOOL" >&6; } 4307else 4308 { $as_echo "$as_me:$LINENO: result: no" >&5 4309$as_echo "no" >&6; } 4310fi 4311 4312 4313fi 4314if test -z "$ac_cv_prog_DLLTOOL"; then 4315 ac_ct_DLLTOOL=$DLLTOOL 4316 # Extract the first word of "dlltool", so it can be a program name with args. 4317set dummy dlltool; ac_word=$2 4318{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4319$as_echo_n "checking for $ac_word... " >&6; } 4320if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4321 $as_echo_n "(cached) " >&6 4322else 4323 if test -n "$ac_ct_DLLTOOL"; then 4324 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4325else 4326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4327for as_dir in $PATH 4328do 4329 IFS=$as_save_IFS 4330 test -z "$as_dir" && as_dir=. 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4333 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4335 break 2 4336 fi 4337done 4338done 4339IFS=$as_save_IFS 4340 4341fi 4342fi 4343ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4344if test -n "$ac_ct_DLLTOOL"; then 4345 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4346$as_echo "$ac_ct_DLLTOOL" >&6; } 4347else 4348 { $as_echo "$as_me:$LINENO: result: no" >&5 4349$as_echo "no" >&6; } 4350fi 4351 4352 if test "x$ac_ct_DLLTOOL" = x; then 4353 DLLTOOL="false" 4354 else 4355 case $cross_compiling:$ac_tool_warned in 4356yes:) 4357{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4359ac_tool_warned=yes ;; 4360esac 4361 DLLTOOL=$ac_ct_DLLTOOL 4362 fi 4363else 4364 DLLTOOL="$ac_cv_prog_DLLTOOL" 4365fi 4366 4367 if test -n "$ac_tool_prefix"; then 4368 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4369set dummy ${ac_tool_prefix}objdump; ac_word=$2 4370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4371$as_echo_n "checking for $ac_word... " >&6; } 4372if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4373 $as_echo_n "(cached) " >&6 4374else 4375 if test -n "$OBJDUMP"; then 4376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4377else 4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4379for as_dir in $PATH 4380do 4381 IFS=$as_save_IFS 4382 test -z "$as_dir" && as_dir=. 4383 for ac_exec_ext in '' $ac_executable_extensions; do 4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4385 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4387 break 2 4388 fi 4389done 4390done 4391IFS=$as_save_IFS 4392 4393fi 4394fi 4395OBJDUMP=$ac_cv_prog_OBJDUMP 4396if test -n "$OBJDUMP"; then 4397 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4398$as_echo "$OBJDUMP" >&6; } 4399else 4400 { $as_echo "$as_me:$LINENO: result: no" >&5 4401$as_echo "no" >&6; } 4402fi 4403 4404 4405fi 4406if test -z "$ac_cv_prog_OBJDUMP"; then 4407 ac_ct_OBJDUMP=$OBJDUMP 4408 # Extract the first word of "objdump", so it can be a program name with args. 4409set dummy objdump; ac_word=$2 4410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4411$as_echo_n "checking for $ac_word... " >&6; } 4412if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4413 $as_echo_n "(cached) " >&6 4414else 4415 if test -n "$ac_ct_OBJDUMP"; then 4416 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4417else 4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4419for as_dir in $PATH 4420do 4421 IFS=$as_save_IFS 4422 test -z "$as_dir" && as_dir=. 4423 for ac_exec_ext in '' $ac_executable_extensions; do 4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4425 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4427 break 2 4428 fi 4429done 4430done 4431IFS=$as_save_IFS 4432 4433fi 4434fi 4435ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4436if test -n "$ac_ct_OBJDUMP"; then 4437 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4438$as_echo "$ac_ct_OBJDUMP" >&6; } 4439else 4440 { $as_echo "$as_me:$LINENO: result: no" >&5 4441$as_echo "no" >&6; } 4442fi 4443 4444 if test "x$ac_ct_OBJDUMP" = x; then 4445 OBJDUMP="false" 4446 else 4447 case $cross_compiling:$ac_tool_warned in 4448yes:) 4449{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4451ac_tool_warned=yes ;; 4452esac 4453 OBJDUMP=$ac_ct_OBJDUMP 4454 fi 4455else 4456 OBJDUMP="$ac_cv_prog_OBJDUMP" 4457fi 4458 4459 ;; 4460esac 4461 4462test -z "$AS" && AS=as 4463 4464 4465 4466 4467 4468test -z "$DLLTOOL" && DLLTOOL=dlltool 4469 4470 4471 4472 4473 4474test -z "$OBJDUMP" && OBJDUMP=objdump 4475 4476 4477 4478 4479 4480 4481 4482case `pwd` in 4483 *\ * | *\ *) 4484 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4485$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4486esac 4487 4488 4489 4490macro_version='2.2.6' 4491macro_revision='1.3012' 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505ltmain="$ac_aux_dir/ltmain.sh" 4506 4507{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4508$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4509if test "${ac_cv_path_SED+set}" = set; then 4510 $as_echo_n "(cached) " >&6 4511else 4512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4513 for ac_i in 1 2 3 4 5 6 7; do 4514 ac_script="$ac_script$as_nl$ac_script" 4515 done 4516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4517 $as_unset ac_script || ac_script= 4518 if test -z "$SED"; then 4519 ac_path_SED_found=false 4520 # Loop through the user's path and test for each of PROGNAME-LIST 4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4522for as_dir in $PATH 4523do 4524 IFS=$as_save_IFS 4525 test -z "$as_dir" && as_dir=. 4526 for ac_prog in sed gsed; do 4527 for ac_exec_ext in '' $ac_executable_extensions; do 4528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4529 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4530# Check for GNU ac_path_SED and select it if it is found. 4531 # Check for GNU $ac_path_SED 4532case `"$ac_path_SED" --version 2>&1` in 4533*GNU*) 4534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4535*) 4536 ac_count=0 4537 $as_echo_n 0123456789 >"conftest.in" 4538 while : 4539 do 4540 cat "conftest.in" "conftest.in" >"conftest.tmp" 4541 mv "conftest.tmp" "conftest.in" 4542 cp "conftest.in" "conftest.nl" 4543 $as_echo '' >> "conftest.nl" 4544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4546 ac_count=`expr $ac_count + 1` 4547 if test $ac_count -gt ${ac_path_SED_max-0}; then 4548 # Best one so far, save it but keep looking for a better one 4549 ac_cv_path_SED="$ac_path_SED" 4550 ac_path_SED_max=$ac_count 4551 fi 4552 # 10*(2^10) chars as input seems more than enough 4553 test $ac_count -gt 10 && break 4554 done 4555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4556esac 4557 4558 $ac_path_SED_found && break 3 4559 done 4560 done 4561done 4562IFS=$as_save_IFS 4563 if test -z "$ac_cv_path_SED"; then 4564 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4565$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4566 { (exit 1); exit 1; }; } 4567 fi 4568else 4569 ac_cv_path_SED=$SED 4570fi 4571 4572fi 4573{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4574$as_echo "$ac_cv_path_SED" >&6; } 4575 SED="$ac_cv_path_SED" 4576 rm -f conftest.sed 4577 4578test -z "$SED" && SED=sed 4579Xsed="$SED -e 1s/^X//" 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4592$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4593if test "${ac_cv_path_GREP+set}" = set; then 4594 $as_echo_n "(cached) " >&6 4595else 4596 if test -z "$GREP"; then 4597 ac_path_GREP_found=false 4598 # Loop through the user's path and test for each of PROGNAME-LIST 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_prog in grep ggrep; do 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4607 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4608# Check for GNU ac_path_GREP and select it if it is found. 4609 # Check for GNU $ac_path_GREP 4610case `"$ac_path_GREP" --version 2>&1` in 4611*GNU*) 4612 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4613*) 4614 ac_count=0 4615 $as_echo_n 0123456789 >"conftest.in" 4616 while : 4617 do 4618 cat "conftest.in" "conftest.in" >"conftest.tmp" 4619 mv "conftest.tmp" "conftest.in" 4620 cp "conftest.in" "conftest.nl" 4621 $as_echo 'GREP' >> "conftest.nl" 4622 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4624 ac_count=`expr $ac_count + 1` 4625 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4626 # Best one so far, save it but keep looking for a better one 4627 ac_cv_path_GREP="$ac_path_GREP" 4628 ac_path_GREP_max=$ac_count 4629 fi 4630 # 10*(2^10) chars as input seems more than enough 4631 test $ac_count -gt 10 && break 4632 done 4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4634esac 4635 4636 $ac_path_GREP_found && break 3 4637 done 4638 done 4639done 4640IFS=$as_save_IFS 4641 if test -z "$ac_cv_path_GREP"; then 4642 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4643$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4644 { (exit 1); exit 1; }; } 4645 fi 4646else 4647 ac_cv_path_GREP=$GREP 4648fi 4649 4650fi 4651{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4652$as_echo "$ac_cv_path_GREP" >&6; } 4653 GREP="$ac_cv_path_GREP" 4654 4655 4656{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4657$as_echo_n "checking for egrep... " >&6; } 4658if test "${ac_cv_path_EGREP+set}" = set; then 4659 $as_echo_n "(cached) " >&6 4660else 4661 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4662 then ac_cv_path_EGREP="$GREP -E" 4663 else 4664 if test -z "$EGREP"; then 4665 ac_path_EGREP_found=false 4666 # Loop through the user's path and test for each of PROGNAME-LIST 4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4668for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4669do 4670 IFS=$as_save_IFS 4671 test -z "$as_dir" && as_dir=. 4672 for ac_prog in egrep; do 4673 for ac_exec_ext in '' $ac_executable_extensions; do 4674 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4675 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4676# Check for GNU ac_path_EGREP and select it if it is found. 4677 # Check for GNU $ac_path_EGREP 4678case `"$ac_path_EGREP" --version 2>&1` in 4679*GNU*) 4680 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4681*) 4682 ac_count=0 4683 $as_echo_n 0123456789 >"conftest.in" 4684 while : 4685 do 4686 cat "conftest.in" "conftest.in" >"conftest.tmp" 4687 mv "conftest.tmp" "conftest.in" 4688 cp "conftest.in" "conftest.nl" 4689 $as_echo 'EGREP' >> "conftest.nl" 4690 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4692 ac_count=`expr $ac_count + 1` 4693 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4694 # Best one so far, save it but keep looking for a better one 4695 ac_cv_path_EGREP="$ac_path_EGREP" 4696 ac_path_EGREP_max=$ac_count 4697 fi 4698 # 10*(2^10) chars as input seems more than enough 4699 test $ac_count -gt 10 && break 4700 done 4701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4702esac 4703 4704 $ac_path_EGREP_found && break 3 4705 done 4706 done 4707done 4708IFS=$as_save_IFS 4709 if test -z "$ac_cv_path_EGREP"; then 4710 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4711$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4712 { (exit 1); exit 1; }; } 4713 fi 4714else 4715 ac_cv_path_EGREP=$EGREP 4716fi 4717 4718 fi 4719fi 4720{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4721$as_echo "$ac_cv_path_EGREP" >&6; } 4722 EGREP="$ac_cv_path_EGREP" 4723 4724 4725{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4726$as_echo_n "checking for fgrep... " >&6; } 4727if test "${ac_cv_path_FGREP+set}" = set; then 4728 $as_echo_n "(cached) " >&6 4729else 4730 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4731 then ac_cv_path_FGREP="$GREP -F" 4732 else 4733 if test -z "$FGREP"; then 4734 ac_path_FGREP_found=false 4735 # Loop through the user's path and test for each of PROGNAME-LIST 4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4738do 4739 IFS=$as_save_IFS 4740 test -z "$as_dir" && as_dir=. 4741 for ac_prog in fgrep; do 4742 for ac_exec_ext in '' $ac_executable_extensions; do 4743 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4744 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4745# Check for GNU ac_path_FGREP and select it if it is found. 4746 # Check for GNU $ac_path_FGREP 4747case `"$ac_path_FGREP" --version 2>&1` in 4748*GNU*) 4749 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4750*) 4751 ac_count=0 4752 $as_echo_n 0123456789 >"conftest.in" 4753 while : 4754 do 4755 cat "conftest.in" "conftest.in" >"conftest.tmp" 4756 mv "conftest.tmp" "conftest.in" 4757 cp "conftest.in" "conftest.nl" 4758 $as_echo 'FGREP' >> "conftest.nl" 4759 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4761 ac_count=`expr $ac_count + 1` 4762 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4763 # Best one so far, save it but keep looking for a better one 4764 ac_cv_path_FGREP="$ac_path_FGREP" 4765 ac_path_FGREP_max=$ac_count 4766 fi 4767 # 10*(2^10) chars as input seems more than enough 4768 test $ac_count -gt 10 && break 4769 done 4770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4771esac 4772 4773 $ac_path_FGREP_found && break 3 4774 done 4775 done 4776done 4777IFS=$as_save_IFS 4778 if test -z "$ac_cv_path_FGREP"; then 4779 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4780$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4781 { (exit 1); exit 1; }; } 4782 fi 4783else 4784 ac_cv_path_FGREP=$FGREP 4785fi 4786 4787 fi 4788fi 4789{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4790$as_echo "$ac_cv_path_FGREP" >&6; } 4791 FGREP="$ac_cv_path_FGREP" 4792 4793 4794test -z "$GREP" && GREP=grep 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814# Check whether --with-gnu-ld was given. 4815if test "${with_gnu_ld+set}" = set; then 4816 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4817else 4818 with_gnu_ld=no 4819fi 4820 4821ac_prog=ld 4822if test "$GCC" = yes; then 4823 # Check if gcc -print-prog-name=ld gives a path. 4824 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4825$as_echo_n "checking for ld used by $CC... " >&6; } 4826 case $host in 4827 *-*-mingw*) 4828 # gcc leaves a trailing carriage return which upsets mingw 4829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4830 *) 4831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4832 esac 4833 case $ac_prog in 4834 # Accept absolute paths. 4835 [\\/]* | ?:[\\/]*) 4836 re_direlt='/[^/][^/]*/\.\./' 4837 # Canonicalize the pathname of ld 4838 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4839 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4840 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4841 done 4842 test -z "$LD" && LD="$ac_prog" 4843 ;; 4844 "") 4845 # If it fails, then pretend we aren't using GCC. 4846 ac_prog=ld 4847 ;; 4848 *) 4849 # If it is relative, then search for the first ld in PATH. 4850 with_gnu_ld=unknown 4851 ;; 4852 esac 4853elif test "$with_gnu_ld" = yes; then 4854 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4855$as_echo_n "checking for GNU ld... " >&6; } 4856else 4857 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4858$as_echo_n "checking for non-GNU ld... " >&6; } 4859fi 4860if test "${lt_cv_path_LD+set}" = set; then 4861 $as_echo_n "(cached) " >&6 4862else 4863 if test -z "$LD"; then 4864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4865 for ac_dir in $PATH; do 4866 IFS="$lt_save_ifs" 4867 test -z "$ac_dir" && ac_dir=. 4868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4869 lt_cv_path_LD="$ac_dir/$ac_prog" 4870 # Check to see if the program is GNU ld. I'd rather use --version, 4871 # but apparently some variants of GNU ld only accept -v. 4872 # Break only if it was the GNU/non-GNU ld that we prefer. 4873 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4874 *GNU* | *'with BFD'*) 4875 test "$with_gnu_ld" != no && break 4876 ;; 4877 *) 4878 test "$with_gnu_ld" != yes && break 4879 ;; 4880 esac 4881 fi 4882 done 4883 IFS="$lt_save_ifs" 4884else 4885 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4886fi 4887fi 4888 4889LD="$lt_cv_path_LD" 4890if test -n "$LD"; then 4891 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4892$as_echo "$LD" >&6; } 4893else 4894 { $as_echo "$as_me:$LINENO: result: no" >&5 4895$as_echo "no" >&6; } 4896fi 4897test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4898$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4899 { (exit 1); exit 1; }; } 4900{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4901$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4902if test "${lt_cv_prog_gnu_ld+set}" = set; then 4903 $as_echo_n "(cached) " >&6 4904else 4905 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4906case `$LD -v 2>&1 </dev/null` in 4907*GNU* | *'with BFD'*) 4908 lt_cv_prog_gnu_ld=yes 4909 ;; 4910*) 4911 lt_cv_prog_gnu_ld=no 4912 ;; 4913esac 4914fi 4915{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4916$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4917with_gnu_ld=$lt_cv_prog_gnu_ld 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4928$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4929if test "${lt_cv_path_NM+set}" = set; then 4930 $as_echo_n "(cached) " >&6 4931else 4932 if test -n "$NM"; then 4933 # Let the user override the test. 4934 lt_cv_path_NM="$NM" 4935else 4936 lt_nm_to_check="${ac_tool_prefix}nm" 4937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4938 lt_nm_to_check="$lt_nm_to_check nm" 4939 fi 4940 for lt_tmp_nm in $lt_nm_to_check; do 4941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4943 IFS="$lt_save_ifs" 4944 test -z "$ac_dir" && ac_dir=. 4945 tmp_nm="$ac_dir/$lt_tmp_nm" 4946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4947 # Check to see if the nm accepts a BSD-compat flag. 4948 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4949 # nm: unknown option "B" ignored 4950 # Tru64's nm complains that /dev/null is an invalid object file 4951 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4952 */dev/null* | *'Invalid file or object type'*) 4953 lt_cv_path_NM="$tmp_nm -B" 4954 break 4955 ;; 4956 *) 4957 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4958 */dev/null*) 4959 lt_cv_path_NM="$tmp_nm -p" 4960 break 4961 ;; 4962 *) 4963 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4964 continue # so that we can try to find one that supports BSD flags 4965 ;; 4966 esac 4967 ;; 4968 esac 4969 fi 4970 done 4971 IFS="$lt_save_ifs" 4972 done 4973 : ${lt_cv_path_NM=no} 4974fi 4975fi 4976{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4977$as_echo "$lt_cv_path_NM" >&6; } 4978if test "$lt_cv_path_NM" != "no"; then 4979 NM="$lt_cv_path_NM" 4980else 4981 # Didn't find any BSD compatible name lister, look for dumpbin. 4982 if test -n "$ac_tool_prefix"; then 4983 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4984 do 4985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4986set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4988$as_echo_n "checking for $ac_word... " >&6; } 4989if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4990 $as_echo_n "(cached) " >&6 4991else 4992 if test -n "$DUMPBIN"; then 4993 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4994else 4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4996for as_dir in $PATH 4997do 4998 IFS=$as_save_IFS 4999 test -z "$as_dir" && as_dir=. 5000 for ac_exec_ext in '' $ac_executable_extensions; do 5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5002 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5004 break 2 5005 fi 5006done 5007done 5008IFS=$as_save_IFS 5009 5010fi 5011fi 5012DUMPBIN=$ac_cv_prog_DUMPBIN 5013if test -n "$DUMPBIN"; then 5014 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5015$as_echo "$DUMPBIN" >&6; } 5016else 5017 { $as_echo "$as_me:$LINENO: result: no" >&5 5018$as_echo "no" >&6; } 5019fi 5020 5021 5022 test -n "$DUMPBIN" && break 5023 done 5024fi 5025if test -z "$DUMPBIN"; then 5026 ac_ct_DUMPBIN=$DUMPBIN 5027 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5028do 5029 # Extract the first word of "$ac_prog", so it can be a program name with args. 5030set dummy $ac_prog; ac_word=$2 5031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5032$as_echo_n "checking for $ac_word... " >&6; } 5033if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5034 $as_echo_n "(cached) " >&6 5035else 5036 if test -n "$ac_ct_DUMPBIN"; then 5037 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5038else 5039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5040for as_dir in $PATH 5041do 5042 IFS=$as_save_IFS 5043 test -z "$as_dir" && as_dir=. 5044 for ac_exec_ext in '' $ac_executable_extensions; do 5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5046 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5048 break 2 5049 fi 5050done 5051done 5052IFS=$as_save_IFS 5053 5054fi 5055fi 5056ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5057if test -n "$ac_ct_DUMPBIN"; then 5058 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5059$as_echo "$ac_ct_DUMPBIN" >&6; } 5060else 5061 { $as_echo "$as_me:$LINENO: result: no" >&5 5062$as_echo "no" >&6; } 5063fi 5064 5065 5066 test -n "$ac_ct_DUMPBIN" && break 5067done 5068 5069 if test "x$ac_ct_DUMPBIN" = x; then 5070 DUMPBIN=":" 5071 else 5072 case $cross_compiling:$ac_tool_warned in 5073yes:) 5074{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5076ac_tool_warned=yes ;; 5077esac 5078 DUMPBIN=$ac_ct_DUMPBIN 5079 fi 5080fi 5081 5082 5083 if test "$DUMPBIN" != ":"; then 5084 NM="$DUMPBIN" 5085 fi 5086fi 5087test -z "$NM" && NM=nm 5088 5089 5090 5091 5092 5093 5094{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5095$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5096if test "${lt_cv_nm_interface+set}" = set; then 5097 $as_echo_n "(cached) " >&6 5098else 5099 lt_cv_nm_interface="BSD nm" 5100 echo "int some_variable = 0;" > conftest.$ac_ext 5101 (eval echo "\"\$as_me:5101: $ac_compile\"" >&5) 5102 (eval "$ac_compile" 2>conftest.err) 5103 cat conftest.err >&5 5104 (eval echo "\"\$as_me:5104: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5105 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5106 cat conftest.err >&5 5107 (eval echo "\"\$as_me:5107: output\"" >&5) 5108 cat conftest.out >&5 5109 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5110 lt_cv_nm_interface="MS dumpbin" 5111 fi 5112 rm -f conftest* 5113fi 5114{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5115$as_echo "$lt_cv_nm_interface" >&6; } 5116 5117{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5118$as_echo_n "checking whether ln -s works... " >&6; } 5119LN_S=$as_ln_s 5120if test "$LN_S" = "ln -s"; then 5121 { $as_echo "$as_me:$LINENO: result: yes" >&5 5122$as_echo "yes" >&6; } 5123else 5124 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5125$as_echo "no, using $LN_S" >&6; } 5126fi 5127 5128# find the maximum length of command line arguments 5129{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5130$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5131if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5132 $as_echo_n "(cached) " >&6 5133else 5134 i=0 5135 teststring="ABCD" 5136 5137 case $build_os in 5138 msdosdjgpp*) 5139 # On DJGPP, this test can blow up pretty badly due to problems in libc 5140 # (any single argument exceeding 2000 bytes causes a buffer overrun 5141 # during glob expansion). Even if it were fixed, the result of this 5142 # check would be larger than it should be. 5143 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5144 ;; 5145 5146 gnu*) 5147 # Under GNU Hurd, this test is not required because there is 5148 # no limit to the length of command line arguments. 5149 # Libtool will interpret -1 as no limit whatsoever 5150 lt_cv_sys_max_cmd_len=-1; 5151 ;; 5152 5153 cygwin* | mingw* | cegcc*) 5154 # On Win9x/ME, this test blows up -- it succeeds, but takes 5155 # about 5 minutes as the teststring grows exponentially. 5156 # Worse, since 9x/ME are not pre-emptively multitasking, 5157 # you end up with a "frozen" computer, even though with patience 5158 # the test eventually succeeds (with a max line length of 256k). 5159 # Instead, let's just punt: use the minimum linelength reported by 5160 # all of the supported platforms: 8192 (on NT/2K/XP). 5161 lt_cv_sys_max_cmd_len=8192; 5162 ;; 5163 5164 amigaos*) 5165 # On AmigaOS with pdksh, this test takes hours, literally. 5166 # So we just punt and use a minimum line length of 8192. 5167 lt_cv_sys_max_cmd_len=8192; 5168 ;; 5169 5170 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5171 # This has been around since 386BSD, at least. Likely further. 5172 if test -x /sbin/sysctl; then 5173 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5174 elif test -x /usr/sbin/sysctl; then 5175 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5176 else 5177 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5178 fi 5179 # And add a safety zone 5180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5182 ;; 5183 5184 interix*) 5185 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5186 lt_cv_sys_max_cmd_len=196608 5187 ;; 5188 5189 osf*) 5190 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5191 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5192 # nice to cause kernel panics so lets avoid the loop below. 5193 # First set a reasonable default. 5194 lt_cv_sys_max_cmd_len=16384 5195 # 5196 if test -x /sbin/sysconfig; then 5197 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5198 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5199 esac 5200 fi 5201 ;; 5202 sco3.2v5*) 5203 lt_cv_sys_max_cmd_len=102400 5204 ;; 5205 sysv5* | sco5v6* | sysv4.2uw2*) 5206 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5207 if test -n "$kargmax"; then 5208 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5209 else 5210 lt_cv_sys_max_cmd_len=32768 5211 fi 5212 ;; 5213 *) 5214 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5215 if test -n "$lt_cv_sys_max_cmd_len"; then 5216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5218 else 5219 # Make teststring a little bigger before we do anything with it. 5220 # a 1K string should be a reasonable start. 5221 for i in 1 2 3 4 5 6 7 8 ; do 5222 teststring=$teststring$teststring 5223 done 5224 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5225 # If test is not a shell built-in, we'll probably end up computing a 5226 # maximum length that is only half of the actual maximum length, but 5227 # we can't tell. 5228 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5229 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5230 test $i != 17 # 1/2 MB should be enough 5231 do 5232 i=`expr $i + 1` 5233 teststring=$teststring$teststring 5234 done 5235 # Only check the string length outside the loop. 5236 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5237 teststring= 5238 # Add a significant safety factor because C++ compilers can tack on 5239 # massive amounts of additional arguments before passing them to the 5240 # linker. It appears as though 1/2 is a usable value. 5241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5242 fi 5243 ;; 5244 esac 5245 5246fi 5247 5248if test -n $lt_cv_sys_max_cmd_len ; then 5249 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5250$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5251else 5252 { $as_echo "$as_me:$LINENO: result: none" >&5 5253$as_echo "none" >&6; } 5254fi 5255max_cmd_len=$lt_cv_sys_max_cmd_len 5256 5257 5258 5259 5260 5261 5262: ${CP="cp -f"} 5263: ${MV="mv -f"} 5264: ${RM="rm -f"} 5265 5266{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5267$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5268# Try some XSI features 5269xsi_shell=no 5270( _lt_dummy="a/b/c" 5271 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5272 = c,a/b,, \ 5273 && eval 'test $(( 1 + 1 )) -eq 2 \ 5274 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5275 && xsi_shell=yes 5276{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5277$as_echo "$xsi_shell" >&6; } 5278 5279 5280{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5281$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5282lt_shell_append=no 5283( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5284 >/dev/null 2>&1 \ 5285 && lt_shell_append=yes 5286{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5287$as_echo "$lt_shell_append" >&6; } 5288 5289 5290if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5291 lt_unset=unset 5292else 5293 lt_unset=false 5294fi 5295 5296 5297 5298 5299 5300# test EBCDIC or ASCII 5301case `echo X|tr X '\101'` in 5302 A) # ASCII based system 5303 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5304 lt_SP2NL='tr \040 \012' 5305 lt_NL2SP='tr \015\012 \040\040' 5306 ;; 5307 *) # EBCDIC based system 5308 lt_SP2NL='tr \100 \n' 5309 lt_NL2SP='tr \r\n \100\100' 5310 ;; 5311esac 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5322$as_echo_n "checking for $LD option to reload object files... " >&6; } 5323if test "${lt_cv_ld_reload_flag+set}" = set; then 5324 $as_echo_n "(cached) " >&6 5325else 5326 lt_cv_ld_reload_flag='-r' 5327fi 5328{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5329$as_echo "$lt_cv_ld_reload_flag" >&6; } 5330reload_flag=$lt_cv_ld_reload_flag 5331case $reload_flag in 5332"" | " "*) ;; 5333*) reload_flag=" $reload_flag" ;; 5334esac 5335reload_cmds='$LD$reload_flag -o $output$reload_objs' 5336case $host_os in 5337 darwin*) 5338 if test "$GCC" = yes; then 5339 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5340 else 5341 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5342 fi 5343 ;; 5344esac 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354if test -n "$ac_tool_prefix"; then 5355 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5356set dummy ${ac_tool_prefix}objdump; ac_word=$2 5357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5358$as_echo_n "checking for $ac_word... " >&6; } 5359if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5360 $as_echo_n "(cached) " >&6 5361else 5362 if test -n "$OBJDUMP"; then 5363 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5364else 5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5366for as_dir in $PATH 5367do 5368 IFS=$as_save_IFS 5369 test -z "$as_dir" && as_dir=. 5370 for ac_exec_ext in '' $ac_executable_extensions; do 5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5372 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5374 break 2 5375 fi 5376done 5377done 5378IFS=$as_save_IFS 5379 5380fi 5381fi 5382OBJDUMP=$ac_cv_prog_OBJDUMP 5383if test -n "$OBJDUMP"; then 5384 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5385$as_echo "$OBJDUMP" >&6; } 5386else 5387 { $as_echo "$as_me:$LINENO: result: no" >&5 5388$as_echo "no" >&6; } 5389fi 5390 5391 5392fi 5393if test -z "$ac_cv_prog_OBJDUMP"; then 5394 ac_ct_OBJDUMP=$OBJDUMP 5395 # Extract the first word of "objdump", so it can be a program name with args. 5396set dummy objdump; ac_word=$2 5397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5398$as_echo_n "checking for $ac_word... " >&6; } 5399if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5400 $as_echo_n "(cached) " >&6 5401else 5402 if test -n "$ac_ct_OBJDUMP"; then 5403 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5404else 5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5406for as_dir in $PATH 5407do 5408 IFS=$as_save_IFS 5409 test -z "$as_dir" && as_dir=. 5410 for ac_exec_ext in '' $ac_executable_extensions; do 5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5412 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5414 break 2 5415 fi 5416done 5417done 5418IFS=$as_save_IFS 5419 5420fi 5421fi 5422ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5423if test -n "$ac_ct_OBJDUMP"; then 5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5425$as_echo "$ac_ct_OBJDUMP" >&6; } 5426else 5427 { $as_echo "$as_me:$LINENO: result: no" >&5 5428$as_echo "no" >&6; } 5429fi 5430 5431 if test "x$ac_ct_OBJDUMP" = x; then 5432 OBJDUMP="false" 5433 else 5434 case $cross_compiling:$ac_tool_warned in 5435yes:) 5436{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5438ac_tool_warned=yes ;; 5439esac 5440 OBJDUMP=$ac_ct_OBJDUMP 5441 fi 5442else 5443 OBJDUMP="$ac_cv_prog_OBJDUMP" 5444fi 5445 5446test -z "$OBJDUMP" && OBJDUMP=objdump 5447 5448 5449 5450 5451 5452 5453{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5454$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5455if test "${lt_cv_deplibs_check_method+set}" = set; then 5456 $as_echo_n "(cached) " >&6 5457else 5458 lt_cv_file_magic_cmd='$MAGIC_CMD' 5459lt_cv_file_magic_test_file= 5460lt_cv_deplibs_check_method='unknown' 5461# Need to set the preceding variable on all platforms that support 5462# interlibrary dependencies. 5463# 'none' -- dependencies not supported. 5464# `unknown' -- same as none, but documents that we really don't know. 5465# 'pass_all' -- all dependencies passed with no checks. 5466# 'test_compile' -- check by making test program. 5467# 'file_magic [[regex]]' -- check by looking for files in library path 5468# which responds to the $file_magic_cmd with a given extended regex. 5469# If you have `file' or equivalent on your system and you're not sure 5470# whether `pass_all' will *always* work, you probably want this one. 5471 5472case $host_os in 5473aix[4-9]*) 5474 lt_cv_deplibs_check_method=pass_all 5475 ;; 5476 5477beos*) 5478 lt_cv_deplibs_check_method=pass_all 5479 ;; 5480 5481bsdi[45]*) 5482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5483 lt_cv_file_magic_cmd='/usr/bin/file -L' 5484 lt_cv_file_magic_test_file=/shlib/libc.so 5485 ;; 5486 5487cygwin*) 5488 # func_win32_libid is a shell function defined in ltmain.sh 5489 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5490 lt_cv_file_magic_cmd='func_win32_libid' 5491 ;; 5492 5493mingw* | pw32*) 5494 # Base MSYS/MinGW do not provide the 'file' command needed by 5495 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5496 # unless we find 'file', for example because we are cross-compiling. 5497 if ( file / ) >/dev/null 2>&1; then 5498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5499 lt_cv_file_magic_cmd='func_win32_libid' 5500 else 5501 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5502 lt_cv_file_magic_cmd='$OBJDUMP -f' 5503 fi 5504 ;; 5505 5506cegcc) 5507 # use the weaker test based on 'objdump'. See mingw*. 5508 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5509 lt_cv_file_magic_cmd='$OBJDUMP -f' 5510 ;; 5511 5512darwin* | rhapsody*) 5513 lt_cv_deplibs_check_method=pass_all 5514 ;; 5515 5516freebsd* | dragonfly*) 5517 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5518 case $host_cpu in 5519 i*86 ) 5520 # Not sure whether the presence of OpenBSD here was a mistake. 5521 # Let's accept both of them until this is cleared up. 5522 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5523 lt_cv_file_magic_cmd=/usr/bin/file 5524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5525 ;; 5526 esac 5527 else 5528 lt_cv_deplibs_check_method=pass_all 5529 fi 5530 ;; 5531 5532gnu*) 5533 lt_cv_deplibs_check_method=pass_all 5534 ;; 5535 5536hpux10.20* | hpux11*) 5537 lt_cv_file_magic_cmd=/usr/bin/file 5538 case $host_cpu in 5539 ia64*) 5540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5541 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5542 ;; 5543 hppa*64*) 5544 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]' 5545 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5546 ;; 5547 *) 5548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5549 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5550 ;; 5551 esac 5552 ;; 5553 5554interix[3-9]*) 5555 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5557 ;; 5558 5559irix5* | irix6* | nonstopux*) 5560 case $LD in 5561 *-32|*"-32 ") libmagic=32-bit;; 5562 *-n32|*"-n32 ") libmagic=N32;; 5563 *-64|*"-64 ") libmagic=64-bit;; 5564 *) libmagic=never-match;; 5565 esac 5566 lt_cv_deplibs_check_method=pass_all 5567 ;; 5568 5569# This must be Linux ELF. 5570linux* | k*bsd*-gnu) 5571 lt_cv_deplibs_check_method=pass_all 5572 ;; 5573 5574netbsd*) 5575 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5577 else 5578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5579 fi 5580 ;; 5581 5582newos6*) 5583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5584 lt_cv_file_magic_cmd=/usr/bin/file 5585 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5586 ;; 5587 5588*nto* | *qnx*) 5589 lt_cv_deplibs_check_method=pass_all 5590 ;; 5591 5592openbsd*) 5593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5595 else 5596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5597 fi 5598 ;; 5599 5600osf3* | osf4* | osf5*) 5601 lt_cv_deplibs_check_method=pass_all 5602 ;; 5603 5604rdos*) 5605 lt_cv_deplibs_check_method=pass_all 5606 ;; 5607 5608solaris*) 5609 lt_cv_deplibs_check_method=pass_all 5610 ;; 5611 5612sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5613 lt_cv_deplibs_check_method=pass_all 5614 ;; 5615 5616sysv4 | sysv4.3*) 5617 case $host_vendor in 5618 motorola) 5619 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]' 5620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5621 ;; 5622 ncr) 5623 lt_cv_deplibs_check_method=pass_all 5624 ;; 5625 sequent) 5626 lt_cv_file_magic_cmd='/bin/file' 5627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5628 ;; 5629 sni) 5630 lt_cv_file_magic_cmd='/bin/file' 5631 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5632 lt_cv_file_magic_test_file=/lib/libc.so 5633 ;; 5634 siemens) 5635 lt_cv_deplibs_check_method=pass_all 5636 ;; 5637 pc) 5638 lt_cv_deplibs_check_method=pass_all 5639 ;; 5640 esac 5641 ;; 5642 5643tpf*) 5644 lt_cv_deplibs_check_method=pass_all 5645 ;; 5646esac 5647 5648fi 5649{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5650$as_echo "$lt_cv_deplibs_check_method" >&6; } 5651file_magic_cmd=$lt_cv_file_magic_cmd 5652deplibs_check_method=$lt_cv_deplibs_check_method 5653test -z "$deplibs_check_method" && deplibs_check_method=unknown 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666if test -n "$ac_tool_prefix"; then 5667 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5668set dummy ${ac_tool_prefix}ar; ac_word=$2 5669{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5670$as_echo_n "checking for $ac_word... " >&6; } 5671if test "${ac_cv_prog_AR+set}" = set; then 5672 $as_echo_n "(cached) " >&6 5673else 5674 if test -n "$AR"; then 5675 ac_cv_prog_AR="$AR" # Let the user override the test. 5676else 5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5678for as_dir in $PATH 5679do 5680 IFS=$as_save_IFS 5681 test -z "$as_dir" && as_dir=. 5682 for ac_exec_ext in '' $ac_executable_extensions; do 5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5684 ac_cv_prog_AR="${ac_tool_prefix}ar" 5685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5686 break 2 5687 fi 5688done 5689done 5690IFS=$as_save_IFS 5691 5692fi 5693fi 5694AR=$ac_cv_prog_AR 5695if test -n "$AR"; then 5696 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5697$as_echo "$AR" >&6; } 5698else 5699 { $as_echo "$as_me:$LINENO: result: no" >&5 5700$as_echo "no" >&6; } 5701fi 5702 5703 5704fi 5705if test -z "$ac_cv_prog_AR"; then 5706 ac_ct_AR=$AR 5707 # Extract the first word of "ar", so it can be a program name with args. 5708set dummy ar; ac_word=$2 5709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5710$as_echo_n "checking for $ac_word... " >&6; } 5711if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5712 $as_echo_n "(cached) " >&6 5713else 5714 if test -n "$ac_ct_AR"; then 5715 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5716else 5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5718for as_dir in $PATH 5719do 5720 IFS=$as_save_IFS 5721 test -z "$as_dir" && as_dir=. 5722 for ac_exec_ext in '' $ac_executable_extensions; do 5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5724 ac_cv_prog_ac_ct_AR="ar" 5725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5726 break 2 5727 fi 5728done 5729done 5730IFS=$as_save_IFS 5731 5732fi 5733fi 5734ac_ct_AR=$ac_cv_prog_ac_ct_AR 5735if test -n "$ac_ct_AR"; then 5736 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5737$as_echo "$ac_ct_AR" >&6; } 5738else 5739 { $as_echo "$as_me:$LINENO: result: no" >&5 5740$as_echo "no" >&6; } 5741fi 5742 5743 if test "x$ac_ct_AR" = x; then 5744 AR="false" 5745 else 5746 case $cross_compiling:$ac_tool_warned in 5747yes:) 5748{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5750ac_tool_warned=yes ;; 5751esac 5752 AR=$ac_ct_AR 5753 fi 5754else 5755 AR="$ac_cv_prog_AR" 5756fi 5757 5758test -z "$AR" && AR=ar 5759test -z "$AR_FLAGS" && AR_FLAGS=cru 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771if test -n "$ac_tool_prefix"; then 5772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5773set dummy ${ac_tool_prefix}strip; ac_word=$2 5774{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5775$as_echo_n "checking for $ac_word... " >&6; } 5776if test "${ac_cv_prog_STRIP+set}" = set; then 5777 $as_echo_n "(cached) " >&6 5778else 5779 if test -n "$STRIP"; then 5780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5781else 5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5783for as_dir in $PATH 5784do 5785 IFS=$as_save_IFS 5786 test -z "$as_dir" && as_dir=. 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5789 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793done 5794done 5795IFS=$as_save_IFS 5796 5797fi 5798fi 5799STRIP=$ac_cv_prog_STRIP 5800if test -n "$STRIP"; then 5801 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5802$as_echo "$STRIP" >&6; } 5803else 5804 { $as_echo "$as_me:$LINENO: result: no" >&5 5805$as_echo "no" >&6; } 5806fi 5807 5808 5809fi 5810if test -z "$ac_cv_prog_STRIP"; then 5811 ac_ct_STRIP=$STRIP 5812 # Extract the first word of "strip", so it can be a program name with args. 5813set dummy strip; ac_word=$2 5814{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5815$as_echo_n "checking for $ac_word... " >&6; } 5816if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5817 $as_echo_n "(cached) " >&6 5818else 5819 if test -n "$ac_ct_STRIP"; then 5820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5821else 5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5823for as_dir in $PATH 5824do 5825 IFS=$as_save_IFS 5826 test -z "$as_dir" && as_dir=. 5827 for ac_exec_ext in '' $ac_executable_extensions; do 5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5829 ac_cv_prog_ac_ct_STRIP="strip" 5830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5831 break 2 5832 fi 5833done 5834done 5835IFS=$as_save_IFS 5836 5837fi 5838fi 5839ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5840if test -n "$ac_ct_STRIP"; then 5841 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5842$as_echo "$ac_ct_STRIP" >&6; } 5843else 5844 { $as_echo "$as_me:$LINENO: result: no" >&5 5845$as_echo "no" >&6; } 5846fi 5847 5848 if test "x$ac_ct_STRIP" = x; then 5849 STRIP=":" 5850 else 5851 case $cross_compiling:$ac_tool_warned in 5852yes:) 5853{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5855ac_tool_warned=yes ;; 5856esac 5857 STRIP=$ac_ct_STRIP 5858 fi 5859else 5860 STRIP="$ac_cv_prog_STRIP" 5861fi 5862 5863test -z "$STRIP" && STRIP=: 5864 5865 5866 5867 5868 5869 5870if test -n "$ac_tool_prefix"; then 5871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5872set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5873{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5874$as_echo_n "checking for $ac_word... " >&6; } 5875if test "${ac_cv_prog_RANLIB+set}" = set; then 5876 $as_echo_n "(cached) " >&6 5877else 5878 if test -n "$RANLIB"; then 5879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5880else 5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5882for as_dir in $PATH 5883do 5884 IFS=$as_save_IFS 5885 test -z "$as_dir" && as_dir=. 5886 for ac_exec_ext in '' $ac_executable_extensions; do 5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5890 break 2 5891 fi 5892done 5893done 5894IFS=$as_save_IFS 5895 5896fi 5897fi 5898RANLIB=$ac_cv_prog_RANLIB 5899if test -n "$RANLIB"; then 5900 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5901$as_echo "$RANLIB" >&6; } 5902else 5903 { $as_echo "$as_me:$LINENO: result: no" >&5 5904$as_echo "no" >&6; } 5905fi 5906 5907 5908fi 5909if test -z "$ac_cv_prog_RANLIB"; then 5910 ac_ct_RANLIB=$RANLIB 5911 # Extract the first word of "ranlib", so it can be a program name with args. 5912set dummy ranlib; ac_word=$2 5913{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5914$as_echo_n "checking for $ac_word... " >&6; } 5915if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5916 $as_echo_n "(cached) " >&6 5917else 5918 if test -n "$ac_ct_RANLIB"; then 5919 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5920else 5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5922for as_dir in $PATH 5923do 5924 IFS=$as_save_IFS 5925 test -z "$as_dir" && as_dir=. 5926 for ac_exec_ext in '' $ac_executable_extensions; do 5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5928 ac_cv_prog_ac_ct_RANLIB="ranlib" 5929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5930 break 2 5931 fi 5932done 5933done 5934IFS=$as_save_IFS 5935 5936fi 5937fi 5938ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5939if test -n "$ac_ct_RANLIB"; then 5940 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5941$as_echo "$ac_ct_RANLIB" >&6; } 5942else 5943 { $as_echo "$as_me:$LINENO: result: no" >&5 5944$as_echo "no" >&6; } 5945fi 5946 5947 if test "x$ac_ct_RANLIB" = x; then 5948 RANLIB=":" 5949 else 5950 case $cross_compiling:$ac_tool_warned in 5951yes:) 5952{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5954ac_tool_warned=yes ;; 5955esac 5956 RANLIB=$ac_ct_RANLIB 5957 fi 5958else 5959 RANLIB="$ac_cv_prog_RANLIB" 5960fi 5961 5962test -z "$RANLIB" && RANLIB=: 5963 5964 5965 5966 5967 5968 5969# Determine commands to create old-style static archives. 5970old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5971old_postinstall_cmds='chmod 644 $oldlib' 5972old_postuninstall_cmds= 5973 5974if test -n "$RANLIB"; then 5975 case $host_os in 5976 openbsd*) 5977 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5978 ;; 5979 *) 5980 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5981 ;; 5982 esac 5983 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5984fi 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019# If no C compiler was specified, use CC. 6020LTCC=${LTCC-"$CC"} 6021 6022# If no C compiler flags were specified, use CFLAGS. 6023LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6024 6025# Allow CC to be a program name with arguments. 6026compiler=$CC 6027 6028 6029# Check for command to grab the raw symbol name followed by C symbol from nm. 6030{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6031$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6032if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6033 $as_echo_n "(cached) " >&6 6034else 6035 6036# These are sane defaults that work on at least a few old systems. 6037# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6038 6039# Character class describing NM global symbol codes. 6040symcode='[BCDEGRST]' 6041 6042# Regexp to match symbols that can be accessed directly from C. 6043sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6044 6045# Define system-specific variables. 6046case $host_os in 6047aix*) 6048 symcode='[BCDT]' 6049 ;; 6050cygwin* | mingw* | pw32* | cegcc*) 6051 symcode='[ABCDGISTW]' 6052 ;; 6053hpux*) 6054 if test "$host_cpu" = ia64; then 6055 symcode='[ABCDEGRST]' 6056 fi 6057 ;; 6058irix* | nonstopux*) 6059 symcode='[BCDEGRST]' 6060 ;; 6061osf*) 6062 symcode='[BCDEGQRST]' 6063 ;; 6064solaris*) 6065 symcode='[BDRT]' 6066 ;; 6067sco3.2v5*) 6068 symcode='[DT]' 6069 ;; 6070sysv4.2uw2*) 6071 symcode='[DT]' 6072 ;; 6073sysv5* | sco5v6* | unixware* | OpenUNIX*) 6074 symcode='[ABDT]' 6075 ;; 6076sysv4) 6077 symcode='[DFNSTU]' 6078 ;; 6079esac 6080 6081# If we're using GNU nm, then use its standard symbol codes. 6082case `$NM -V 2>&1` in 6083*GNU* | *'with BFD'*) 6084 symcode='[ABCDGIRSTW]' ;; 6085esac 6086 6087# Transform an extracted symbol line into a proper C declaration. 6088# Some systems (esp. on ia64) link data and code symbols differently, 6089# so use this general approach. 6090lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6091 6092# Transform an extracted symbol line into symbol name and symbol address 6093lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6094lt_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'" 6095 6096# Handle CRLF in mingw tool chain 6097opt_cr= 6098case $build_os in 6099mingw*) 6100 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6101 ;; 6102esac 6103 6104# Try without a prefix underscore, then with it. 6105for ac_symprfx in "" "_"; do 6106 6107 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6108 symxfrm="\\1 $ac_symprfx\\2 \\2" 6109 6110 # Write the raw and C identifiers. 6111 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6112 # Fake it for dumpbin and say T for any non-static function 6113 # and D for any global variable. 6114 # Also find C++ and __fastcall symbols from MSVC++, 6115 # which start with @ or ?. 6116 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6117" {last_section=section; section=\$ 3};"\ 6118" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6119" \$ 0!~/External *\|/{next};"\ 6120" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6121" {if(hide[section]) next};"\ 6122" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6123" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6124" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6125" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6126" ' prfx=^$ac_symprfx" 6127 else 6128 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6129 fi 6130 6131 # Check to see that the pipe works correctly. 6132 pipe_works=no 6133 6134 rm -f conftest* 6135 cat > conftest.$ac_ext <<_LT_EOF 6136#ifdef __cplusplus 6137extern "C" { 6138#endif 6139char nm_test_var; 6140void nm_test_func(void); 6141void nm_test_func(void){} 6142#ifdef __cplusplus 6143} 6144#endif 6145int main(){nm_test_var='a';nm_test_func();return(0);} 6146_LT_EOF 6147 6148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6149 (eval $ac_compile) 2>&5 6150 ac_status=$? 6151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6152 (exit $ac_status); }; then 6153 # Now try to grab the symbols. 6154 nlist=conftest.nm 6155 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6156 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6157 ac_status=$? 6158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6159 (exit $ac_status); } && test -s "$nlist"; then 6160 # Try sorting and uniquifying the output. 6161 if sort "$nlist" | uniq > "$nlist"T; then 6162 mv -f "$nlist"T "$nlist" 6163 else 6164 rm -f "$nlist"T 6165 fi 6166 6167 # Make sure that we snagged all the symbols we need. 6168 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6169 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6170 cat <<_LT_EOF > conftest.$ac_ext 6171#ifdef __cplusplus 6172extern "C" { 6173#endif 6174 6175_LT_EOF 6176 # Now generate the symbol file. 6177 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6178 6179 cat <<_LT_EOF >> conftest.$ac_ext 6180 6181/* The mapping between symbol names and symbols. */ 6182const struct { 6183 const char *name; 6184 void *address; 6185} 6186lt__PROGRAM__LTX_preloaded_symbols[] = 6187{ 6188 { "@PROGRAM@", (void *) 0 }, 6189_LT_EOF 6190 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6191 cat <<\_LT_EOF >> conftest.$ac_ext 6192 {0, (void *) 0} 6193}; 6194 6195/* This works around a problem in FreeBSD linker */ 6196#ifdef FREEBSD_WORKAROUND 6197static const void *lt_preloaded_setup() { 6198 return lt__PROGRAM__LTX_preloaded_symbols; 6199} 6200#endif 6201 6202#ifdef __cplusplus 6203} 6204#endif 6205_LT_EOF 6206 # Now try linking the two files. 6207 mv conftest.$ac_objext conftstm.$ac_objext 6208 lt_save_LIBS="$LIBS" 6209 lt_save_CFLAGS="$CFLAGS" 6210 LIBS="conftstm.$ac_objext" 6211 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6213 (eval $ac_link) 2>&5 6214 ac_status=$? 6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6216 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6217 pipe_works=yes 6218 fi 6219 LIBS="$lt_save_LIBS" 6220 CFLAGS="$lt_save_CFLAGS" 6221 else 6222 echo "cannot find nm_test_func in $nlist" >&5 6223 fi 6224 else 6225 echo "cannot find nm_test_var in $nlist" >&5 6226 fi 6227 else 6228 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6229 fi 6230 else 6231 echo "$progname: failed program was:" >&5 6232 cat conftest.$ac_ext >&5 6233 fi 6234 rm -rf conftest* conftst* 6235 6236 # Do not use the global_symbol_pipe unless it works. 6237 if test "$pipe_works" = yes; then 6238 break 6239 else 6240 lt_cv_sys_global_symbol_pipe= 6241 fi 6242done 6243 6244fi 6245 6246if test -z "$lt_cv_sys_global_symbol_pipe"; then 6247 lt_cv_sys_global_symbol_to_cdecl= 6248fi 6249if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6250 { $as_echo "$as_me:$LINENO: result: failed" >&5 6251$as_echo "failed" >&6; } 6252else 6253 { $as_echo "$as_me:$LINENO: result: ok" >&5 6254$as_echo "ok" >&6; } 6255fi 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279# Check whether --enable-libtool-lock was given. 6280if test "${enable_libtool_lock+set}" = set; then 6281 enableval=$enable_libtool_lock; 6282fi 6283 6284test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6285 6286# Some flags need to be propagated to the compiler or linker for good 6287# libtool support. 6288case $host in 6289ia64-*-hpux*) 6290 # Find out which ABI we are using. 6291 echo 'int i;' > conftest.$ac_ext 6292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6293 (eval $ac_compile) 2>&5 6294 ac_status=$? 6295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6296 (exit $ac_status); }; then 6297 case `/usr/bin/file conftest.$ac_objext` in 6298 *ELF-32*) 6299 HPUX_IA64_MODE="32" 6300 ;; 6301 *ELF-64*) 6302 HPUX_IA64_MODE="64" 6303 ;; 6304 esac 6305 fi 6306 rm -rf conftest* 6307 ;; 6308*-*-irix6*) 6309 # Find out which ABI we are using. 6310 echo '#line 6310 "configure"' > conftest.$ac_ext 6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6312 (eval $ac_compile) 2>&5 6313 ac_status=$? 6314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6315 (exit $ac_status); }; then 6316 if test "$lt_cv_prog_gnu_ld" = yes; then 6317 case `/usr/bin/file conftest.$ac_objext` in 6318 *32-bit*) 6319 LD="${LD-ld} -melf32bsmip" 6320 ;; 6321 *N32*) 6322 LD="${LD-ld} -melf32bmipn32" 6323 ;; 6324 *64-bit*) 6325 LD="${LD-ld} -melf64bmip" 6326 ;; 6327 esac 6328 else 6329 case `/usr/bin/file conftest.$ac_objext` in 6330 *32-bit*) 6331 LD="${LD-ld} -32" 6332 ;; 6333 *N32*) 6334 LD="${LD-ld} -n32" 6335 ;; 6336 *64-bit*) 6337 LD="${LD-ld} -64" 6338 ;; 6339 esac 6340 fi 6341 fi 6342 rm -rf conftest* 6343 ;; 6344 6345x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6346s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6347 # Find out which ABI we are using. 6348 echo 'int i;' > conftest.$ac_ext 6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6350 (eval $ac_compile) 2>&5 6351 ac_status=$? 6352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6353 (exit $ac_status); }; then 6354 case `/usr/bin/file conftest.o` in 6355 *32-bit*) 6356 case $host in 6357 x86_64-*kfreebsd*-gnu) 6358 LD="${LD-ld} -m elf_i386_fbsd" 6359 ;; 6360 x86_64-*linux*) 6361 LD="${LD-ld} -m elf_i386" 6362 ;; 6363 ppc64-*linux*|powerpc64-*linux*) 6364 LD="${LD-ld} -m elf32ppclinux" 6365 ;; 6366 s390x-*linux*) 6367 LD="${LD-ld} -m elf_s390" 6368 ;; 6369 sparc64-*linux*) 6370 LD="${LD-ld} -m elf32_sparc" 6371 ;; 6372 esac 6373 ;; 6374 *64-bit*) 6375 case $host in 6376 x86_64-*kfreebsd*-gnu) 6377 LD="${LD-ld} -m elf_x86_64_fbsd" 6378 ;; 6379 x86_64-*linux*) 6380 LD="${LD-ld} -m elf_x86_64" 6381 ;; 6382 ppc*-*linux*|powerpc*-*linux*) 6383 LD="${LD-ld} -m elf64ppc" 6384 ;; 6385 s390*-*linux*|s390*-*tpf*) 6386 LD="${LD-ld} -m elf64_s390" 6387 ;; 6388 sparc*-*linux*) 6389 LD="${LD-ld} -m elf64_sparc" 6390 ;; 6391 esac 6392 ;; 6393 esac 6394 fi 6395 rm -rf conftest* 6396 ;; 6397 6398*-*-sco3.2v5*) 6399 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6400 SAVE_CFLAGS="$CFLAGS" 6401 CFLAGS="$CFLAGS -belf" 6402 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6403$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6404if test "${lt_cv_cc_needs_belf+set}" = set; then 6405 $as_echo_n "(cached) " >&6 6406else 6407 ac_ext=c 6408ac_cpp='$CPP $CPPFLAGS' 6409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6411ac_compiler_gnu=$ac_cv_c_compiler_gnu 6412 6413 cat >conftest.$ac_ext <<_ACEOF 6414/* confdefs.h. */ 6415_ACEOF 6416cat confdefs.h >>conftest.$ac_ext 6417cat >>conftest.$ac_ext <<_ACEOF 6418/* end confdefs.h. */ 6419 6420int 6421main () 6422{ 6423 6424 ; 6425 return 0; 6426} 6427_ACEOF 6428rm -f conftest.$ac_objext conftest$ac_exeext 6429if { (ac_try="$ac_link" 6430case "(($ac_try" in 6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6432 *) ac_try_echo=$ac_try;; 6433esac 6434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6435$as_echo "$ac_try_echo") >&5 6436 (eval "$ac_link") 2>conftest.er1 6437 ac_status=$? 6438 grep -v '^ *+' conftest.er1 >conftest.err 6439 rm -f conftest.er1 6440 cat conftest.err >&5 6441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6442 (exit $ac_status); } && { 6443 test -z "$ac_c_werror_flag" || 6444 test ! -s conftest.err 6445 } && test -s conftest$ac_exeext && { 6446 test "$cross_compiling" = yes || 6447 $as_test_x conftest$ac_exeext 6448 }; then 6449 lt_cv_cc_needs_belf=yes 6450else 6451 $as_echo "$as_me: failed program was:" >&5 6452sed 's/^/| /' conftest.$ac_ext >&5 6453 6454 lt_cv_cc_needs_belf=no 6455fi 6456 6457rm -rf conftest.dSYM 6458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6459 conftest$ac_exeext conftest.$ac_ext 6460 ac_ext=c 6461ac_cpp='$CPP $CPPFLAGS' 6462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6464ac_compiler_gnu=$ac_cv_c_compiler_gnu 6465 6466fi 6467{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6468$as_echo "$lt_cv_cc_needs_belf" >&6; } 6469 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6470 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6471 CFLAGS="$SAVE_CFLAGS" 6472 fi 6473 ;; 6474sparc*-*solaris*) 6475 # Find out which ABI we are using. 6476 echo 'int i;' > conftest.$ac_ext 6477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6478 (eval $ac_compile) 2>&5 6479 ac_status=$? 6480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6481 (exit $ac_status); }; then 6482 case `/usr/bin/file conftest.o` in 6483 *64-bit*) 6484 case $lt_cv_prog_gnu_ld in 6485 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6486 *) 6487 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6488 LD="${LD-ld} -64" 6489 fi 6490 ;; 6491 esac 6492 ;; 6493 esac 6494 fi 6495 rm -rf conftest* 6496 ;; 6497esac 6498 6499need_locks="$enable_libtool_lock" 6500 6501 6502 case $host_os in 6503 rhapsody* | darwin*) 6504 if test -n "$ac_tool_prefix"; then 6505 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6506set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6507{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6508$as_echo_n "checking for $ac_word... " >&6; } 6509if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6510 $as_echo_n "(cached) " >&6 6511else 6512 if test -n "$DSYMUTIL"; then 6513 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6514else 6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6516for as_dir in $PATH 6517do 6518 IFS=$as_save_IFS 6519 test -z "$as_dir" && as_dir=. 6520 for ac_exec_ext in '' $ac_executable_extensions; do 6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6522 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6524 break 2 6525 fi 6526done 6527done 6528IFS=$as_save_IFS 6529 6530fi 6531fi 6532DSYMUTIL=$ac_cv_prog_DSYMUTIL 6533if test -n "$DSYMUTIL"; then 6534 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6535$as_echo "$DSYMUTIL" >&6; } 6536else 6537 { $as_echo "$as_me:$LINENO: result: no" >&5 6538$as_echo "no" >&6; } 6539fi 6540 6541 6542fi 6543if test -z "$ac_cv_prog_DSYMUTIL"; then 6544 ac_ct_DSYMUTIL=$DSYMUTIL 6545 # Extract the first word of "dsymutil", so it can be a program name with args. 6546set dummy dsymutil; ac_word=$2 6547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6548$as_echo_n "checking for $ac_word... " >&6; } 6549if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6550 $as_echo_n "(cached) " >&6 6551else 6552 if test -n "$ac_ct_DSYMUTIL"; then 6553 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6554else 6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6556for as_dir in $PATH 6557do 6558 IFS=$as_save_IFS 6559 test -z "$as_dir" && as_dir=. 6560 for ac_exec_ext in '' $ac_executable_extensions; do 6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6562 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6564 break 2 6565 fi 6566done 6567done 6568IFS=$as_save_IFS 6569 6570fi 6571fi 6572ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6573if test -n "$ac_ct_DSYMUTIL"; then 6574 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6575$as_echo "$ac_ct_DSYMUTIL" >&6; } 6576else 6577 { $as_echo "$as_me:$LINENO: result: no" >&5 6578$as_echo "no" >&6; } 6579fi 6580 6581 if test "x$ac_ct_DSYMUTIL" = x; then 6582 DSYMUTIL=":" 6583 else 6584 case $cross_compiling:$ac_tool_warned in 6585yes:) 6586{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6588ac_tool_warned=yes ;; 6589esac 6590 DSYMUTIL=$ac_ct_DSYMUTIL 6591 fi 6592else 6593 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6594fi 6595 6596 if test -n "$ac_tool_prefix"; then 6597 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6598set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6599{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6600$as_echo_n "checking for $ac_word... " >&6; } 6601if test "${ac_cv_prog_NMEDIT+set}" = set; then 6602 $as_echo_n "(cached) " >&6 6603else 6604 if test -n "$NMEDIT"; then 6605 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6606else 6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6608for as_dir in $PATH 6609do 6610 IFS=$as_save_IFS 6611 test -z "$as_dir" && as_dir=. 6612 for ac_exec_ext in '' $ac_executable_extensions; do 6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6614 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6616 break 2 6617 fi 6618done 6619done 6620IFS=$as_save_IFS 6621 6622fi 6623fi 6624NMEDIT=$ac_cv_prog_NMEDIT 6625if test -n "$NMEDIT"; then 6626 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6627$as_echo "$NMEDIT" >&6; } 6628else 6629 { $as_echo "$as_me:$LINENO: result: no" >&5 6630$as_echo "no" >&6; } 6631fi 6632 6633 6634fi 6635if test -z "$ac_cv_prog_NMEDIT"; then 6636 ac_ct_NMEDIT=$NMEDIT 6637 # Extract the first word of "nmedit", so it can be a program name with args. 6638set dummy nmedit; ac_word=$2 6639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6640$as_echo_n "checking for $ac_word... " >&6; } 6641if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6642 $as_echo_n "(cached) " >&6 6643else 6644 if test -n "$ac_ct_NMEDIT"; then 6645 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6646else 6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6648for as_dir in $PATH 6649do 6650 IFS=$as_save_IFS 6651 test -z "$as_dir" && as_dir=. 6652 for ac_exec_ext in '' $ac_executable_extensions; do 6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6654 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6656 break 2 6657 fi 6658done 6659done 6660IFS=$as_save_IFS 6661 6662fi 6663fi 6664ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6665if test -n "$ac_ct_NMEDIT"; then 6666 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6667$as_echo "$ac_ct_NMEDIT" >&6; } 6668else 6669 { $as_echo "$as_me:$LINENO: result: no" >&5 6670$as_echo "no" >&6; } 6671fi 6672 6673 if test "x$ac_ct_NMEDIT" = x; then 6674 NMEDIT=":" 6675 else 6676 case $cross_compiling:$ac_tool_warned in 6677yes:) 6678{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6680ac_tool_warned=yes ;; 6681esac 6682 NMEDIT=$ac_ct_NMEDIT 6683 fi 6684else 6685 NMEDIT="$ac_cv_prog_NMEDIT" 6686fi 6687 6688 if test -n "$ac_tool_prefix"; then 6689 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6690set dummy ${ac_tool_prefix}lipo; ac_word=$2 6691{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6692$as_echo_n "checking for $ac_word... " >&6; } 6693if test "${ac_cv_prog_LIPO+set}" = set; then 6694 $as_echo_n "(cached) " >&6 6695else 6696 if test -n "$LIPO"; then 6697 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6698else 6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6700for as_dir in $PATH 6701do 6702 IFS=$as_save_IFS 6703 test -z "$as_dir" && as_dir=. 6704 for ac_exec_ext in '' $ac_executable_extensions; do 6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6706 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6708 break 2 6709 fi 6710done 6711done 6712IFS=$as_save_IFS 6713 6714fi 6715fi 6716LIPO=$ac_cv_prog_LIPO 6717if test -n "$LIPO"; then 6718 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6719$as_echo "$LIPO" >&6; } 6720else 6721 { $as_echo "$as_me:$LINENO: result: no" >&5 6722$as_echo "no" >&6; } 6723fi 6724 6725 6726fi 6727if test -z "$ac_cv_prog_LIPO"; then 6728 ac_ct_LIPO=$LIPO 6729 # Extract the first word of "lipo", so it can be a program name with args. 6730set dummy lipo; ac_word=$2 6731{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6732$as_echo_n "checking for $ac_word... " >&6; } 6733if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6734 $as_echo_n "(cached) " >&6 6735else 6736 if test -n "$ac_ct_LIPO"; then 6737 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6738else 6739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6740for as_dir in $PATH 6741do 6742 IFS=$as_save_IFS 6743 test -z "$as_dir" && as_dir=. 6744 for ac_exec_ext in '' $ac_executable_extensions; do 6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6746 ac_cv_prog_ac_ct_LIPO="lipo" 6747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6748 break 2 6749 fi 6750done 6751done 6752IFS=$as_save_IFS 6753 6754fi 6755fi 6756ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6757if test -n "$ac_ct_LIPO"; then 6758 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6759$as_echo "$ac_ct_LIPO" >&6; } 6760else 6761 { $as_echo "$as_me:$LINENO: result: no" >&5 6762$as_echo "no" >&6; } 6763fi 6764 6765 if test "x$ac_ct_LIPO" = x; then 6766 LIPO=":" 6767 else 6768 case $cross_compiling:$ac_tool_warned in 6769yes:) 6770{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6772ac_tool_warned=yes ;; 6773esac 6774 LIPO=$ac_ct_LIPO 6775 fi 6776else 6777 LIPO="$ac_cv_prog_LIPO" 6778fi 6779 6780 if test -n "$ac_tool_prefix"; then 6781 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6782set dummy ${ac_tool_prefix}otool; ac_word=$2 6783{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6784$as_echo_n "checking for $ac_word... " >&6; } 6785if test "${ac_cv_prog_OTOOL+set}" = set; then 6786 $as_echo_n "(cached) " >&6 6787else 6788 if test -n "$OTOOL"; then 6789 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6790else 6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6792for as_dir in $PATH 6793do 6794 IFS=$as_save_IFS 6795 test -z "$as_dir" && as_dir=. 6796 for ac_exec_ext in '' $ac_executable_extensions; do 6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6798 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6800 break 2 6801 fi 6802done 6803done 6804IFS=$as_save_IFS 6805 6806fi 6807fi 6808OTOOL=$ac_cv_prog_OTOOL 6809if test -n "$OTOOL"; then 6810 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6811$as_echo "$OTOOL" >&6; } 6812else 6813 { $as_echo "$as_me:$LINENO: result: no" >&5 6814$as_echo "no" >&6; } 6815fi 6816 6817 6818fi 6819if test -z "$ac_cv_prog_OTOOL"; then 6820 ac_ct_OTOOL=$OTOOL 6821 # Extract the first word of "otool", so it can be a program name with args. 6822set dummy otool; ac_word=$2 6823{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6824$as_echo_n "checking for $ac_word... " >&6; } 6825if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6826 $as_echo_n "(cached) " >&6 6827else 6828 if test -n "$ac_ct_OTOOL"; then 6829 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6830else 6831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6832for as_dir in $PATH 6833do 6834 IFS=$as_save_IFS 6835 test -z "$as_dir" && as_dir=. 6836 for ac_exec_ext in '' $ac_executable_extensions; do 6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6838 ac_cv_prog_ac_ct_OTOOL="otool" 6839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6840 break 2 6841 fi 6842done 6843done 6844IFS=$as_save_IFS 6845 6846fi 6847fi 6848ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6849if test -n "$ac_ct_OTOOL"; then 6850 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6851$as_echo "$ac_ct_OTOOL" >&6; } 6852else 6853 { $as_echo "$as_me:$LINENO: result: no" >&5 6854$as_echo "no" >&6; } 6855fi 6856 6857 if test "x$ac_ct_OTOOL" = x; then 6858 OTOOL=":" 6859 else 6860 case $cross_compiling:$ac_tool_warned in 6861yes:) 6862{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6864ac_tool_warned=yes ;; 6865esac 6866 OTOOL=$ac_ct_OTOOL 6867 fi 6868else 6869 OTOOL="$ac_cv_prog_OTOOL" 6870fi 6871 6872 if test -n "$ac_tool_prefix"; then 6873 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6874set dummy ${ac_tool_prefix}otool64; ac_word=$2 6875{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6876$as_echo_n "checking for $ac_word... " >&6; } 6877if test "${ac_cv_prog_OTOOL64+set}" = set; then 6878 $as_echo_n "(cached) " >&6 6879else 6880 if test -n "$OTOOL64"; then 6881 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6882else 6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6884for as_dir in $PATH 6885do 6886 IFS=$as_save_IFS 6887 test -z "$as_dir" && as_dir=. 6888 for ac_exec_ext in '' $ac_executable_extensions; do 6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6890 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6892 break 2 6893 fi 6894done 6895done 6896IFS=$as_save_IFS 6897 6898fi 6899fi 6900OTOOL64=$ac_cv_prog_OTOOL64 6901if test -n "$OTOOL64"; then 6902 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6903$as_echo "$OTOOL64" >&6; } 6904else 6905 { $as_echo "$as_me:$LINENO: result: no" >&5 6906$as_echo "no" >&6; } 6907fi 6908 6909 6910fi 6911if test -z "$ac_cv_prog_OTOOL64"; then 6912 ac_ct_OTOOL64=$OTOOL64 6913 # Extract the first word of "otool64", so it can be a program name with args. 6914set dummy otool64; ac_word=$2 6915{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6916$as_echo_n "checking for $ac_word... " >&6; } 6917if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6918 $as_echo_n "(cached) " >&6 6919else 6920 if test -n "$ac_ct_OTOOL64"; then 6921 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6922else 6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6924for as_dir in $PATH 6925do 6926 IFS=$as_save_IFS 6927 test -z "$as_dir" && as_dir=. 6928 for ac_exec_ext in '' $ac_executable_extensions; do 6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6930 ac_cv_prog_ac_ct_OTOOL64="otool64" 6931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6932 break 2 6933 fi 6934done 6935done 6936IFS=$as_save_IFS 6937 6938fi 6939fi 6940ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6941if test -n "$ac_ct_OTOOL64"; then 6942 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6943$as_echo "$ac_ct_OTOOL64" >&6; } 6944else 6945 { $as_echo "$as_me:$LINENO: result: no" >&5 6946$as_echo "no" >&6; } 6947fi 6948 6949 if test "x$ac_ct_OTOOL64" = x; then 6950 OTOOL64=":" 6951 else 6952 case $cross_compiling:$ac_tool_warned in 6953yes:) 6954{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6956ac_tool_warned=yes ;; 6957esac 6958 OTOOL64=$ac_ct_OTOOL64 6959 fi 6960else 6961 OTOOL64="$ac_cv_prog_OTOOL64" 6962fi 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6991$as_echo_n "checking for -single_module linker flag... " >&6; } 6992if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6993 $as_echo_n "(cached) " >&6 6994else 6995 lt_cv_apple_cc_single_mod=no 6996 if test -z "${LT_MULTI_MODULE}"; then 6997 # By default we will add the -single_module flag. You can override 6998 # by either setting the environment variable LT_MULTI_MODULE 6999 # non-empty at configure time, or by adding -multi_module to the 7000 # link flags. 7001 rm -rf libconftest.dylib* 7002 echo "int foo(void){return 1;}" > conftest.c 7003 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7004-dynamiclib -Wl,-single_module conftest.c" >&5 7005 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7006 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7007 _lt_result=$? 7008 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7009 lt_cv_apple_cc_single_mod=yes 7010 else 7011 cat conftest.err >&5 7012 fi 7013 rm -rf libconftest.dylib* 7014 rm -f conftest.* 7015 fi 7016fi 7017{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7018$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7019 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7020$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7021if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7022 $as_echo_n "(cached) " >&6 7023else 7024 lt_cv_ld_exported_symbols_list=no 7025 save_LDFLAGS=$LDFLAGS 7026 echo "_main" > conftest.sym 7027 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7028 cat >conftest.$ac_ext <<_ACEOF 7029/* confdefs.h. */ 7030_ACEOF 7031cat confdefs.h >>conftest.$ac_ext 7032cat >>conftest.$ac_ext <<_ACEOF 7033/* end confdefs.h. */ 7034 7035int 7036main () 7037{ 7038 7039 ; 7040 return 0; 7041} 7042_ACEOF 7043rm -f conftest.$ac_objext conftest$ac_exeext 7044if { (ac_try="$ac_link" 7045case "(($ac_try" in 7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7047 *) ac_try_echo=$ac_try;; 7048esac 7049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7050$as_echo "$ac_try_echo") >&5 7051 (eval "$ac_link") 2>conftest.er1 7052 ac_status=$? 7053 grep -v '^ *+' conftest.er1 >conftest.err 7054 rm -f conftest.er1 7055 cat conftest.err >&5 7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7057 (exit $ac_status); } && { 7058 test -z "$ac_c_werror_flag" || 7059 test ! -s conftest.err 7060 } && test -s conftest$ac_exeext && { 7061 test "$cross_compiling" = yes || 7062 $as_test_x conftest$ac_exeext 7063 }; then 7064 lt_cv_ld_exported_symbols_list=yes 7065else 7066 $as_echo "$as_me: failed program was:" >&5 7067sed 's/^/| /' conftest.$ac_ext >&5 7068 7069 lt_cv_ld_exported_symbols_list=no 7070fi 7071 7072rm -rf conftest.dSYM 7073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7074 conftest$ac_exeext conftest.$ac_ext 7075 LDFLAGS="$save_LDFLAGS" 7076 7077fi 7078{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7079$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7080 case $host_os in 7081 rhapsody* | darwin1.[012]) 7082 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7083 darwin1.*) 7084 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7085 darwin*) # darwin 5.x on 7086 # if running on 10.5 or later, the deployment target defaults 7087 # to the OS version, if on x86, and 10.4, the deployment 7088 # target defaults to 10.4. Don't you love it? 7089 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7090 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7091 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7092 10.[012]*) 7093 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7094 10.*) 7095 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7096 esac 7097 ;; 7098 esac 7099 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7100 _lt_dar_single_mod='$single_module' 7101 fi 7102 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7103 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7104 else 7105 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7106 fi 7107 if test "$DSYMUTIL" != ":"; then 7108 _lt_dsymutil='~$DSYMUTIL $lib || :' 7109 else 7110 _lt_dsymutil= 7111 fi 7112 ;; 7113 esac 7114 7115 7116{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7117$as_echo_n "checking for ANSI C header files... " >&6; } 7118if test "${ac_cv_header_stdc+set}" = set; then 7119 $as_echo_n "(cached) " >&6 7120else 7121 cat >conftest.$ac_ext <<_ACEOF 7122/* confdefs.h. */ 7123_ACEOF 7124cat confdefs.h >>conftest.$ac_ext 7125cat >>conftest.$ac_ext <<_ACEOF 7126/* end confdefs.h. */ 7127#include <stdlib.h> 7128#include <stdarg.h> 7129#include <string.h> 7130#include <float.h> 7131 7132int 7133main () 7134{ 7135 7136 ; 7137 return 0; 7138} 7139_ACEOF 7140rm -f conftest.$ac_objext 7141if { (ac_try="$ac_compile" 7142case "(($ac_try" in 7143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7144 *) ac_try_echo=$ac_try;; 7145esac 7146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7147$as_echo "$ac_try_echo") >&5 7148 (eval "$ac_compile") 2>conftest.er1 7149 ac_status=$? 7150 grep -v '^ *+' conftest.er1 >conftest.err 7151 rm -f conftest.er1 7152 cat conftest.err >&5 7153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7154 (exit $ac_status); } && { 7155 test -z "$ac_c_werror_flag" || 7156 test ! -s conftest.err 7157 } && test -s conftest.$ac_objext; then 7158 ac_cv_header_stdc=yes 7159else 7160 $as_echo "$as_me: failed program was:" >&5 7161sed 's/^/| /' conftest.$ac_ext >&5 7162 7163 ac_cv_header_stdc=no 7164fi 7165 7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7167 7168if test $ac_cv_header_stdc = yes; then 7169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7170 cat >conftest.$ac_ext <<_ACEOF 7171/* confdefs.h. */ 7172_ACEOF 7173cat confdefs.h >>conftest.$ac_ext 7174cat >>conftest.$ac_ext <<_ACEOF 7175/* end confdefs.h. */ 7176#include <string.h> 7177 7178_ACEOF 7179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7180 $EGREP "memchr" >/dev/null 2>&1; then 7181 : 7182else 7183 ac_cv_header_stdc=no 7184fi 7185rm -f conftest* 7186 7187fi 7188 7189if test $ac_cv_header_stdc = yes; then 7190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7191 cat >conftest.$ac_ext <<_ACEOF 7192/* confdefs.h. */ 7193_ACEOF 7194cat confdefs.h >>conftest.$ac_ext 7195cat >>conftest.$ac_ext <<_ACEOF 7196/* end confdefs.h. */ 7197#include <stdlib.h> 7198 7199_ACEOF 7200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7201 $EGREP "free" >/dev/null 2>&1; then 7202 : 7203else 7204 ac_cv_header_stdc=no 7205fi 7206rm -f conftest* 7207 7208fi 7209 7210if test $ac_cv_header_stdc = yes; then 7211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7212 if test "$cross_compiling" = yes; then 7213 : 7214else 7215 cat >conftest.$ac_ext <<_ACEOF 7216/* confdefs.h. */ 7217_ACEOF 7218cat confdefs.h >>conftest.$ac_ext 7219cat >>conftest.$ac_ext <<_ACEOF 7220/* end confdefs.h. */ 7221#include <ctype.h> 7222#include <stdlib.h> 7223#if ((' ' & 0x0FF) == 0x020) 7224# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7225# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7226#else 7227# define ISLOWER(c) \ 7228 (('a' <= (c) && (c) <= 'i') \ 7229 || ('j' <= (c) && (c) <= 'r') \ 7230 || ('s' <= (c) && (c) <= 'z')) 7231# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7232#endif 7233 7234#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7235int 7236main () 7237{ 7238 int i; 7239 for (i = 0; i < 256; i++) 7240 if (XOR (islower (i), ISLOWER (i)) 7241 || toupper (i) != TOUPPER (i)) 7242 return 2; 7243 return 0; 7244} 7245_ACEOF 7246rm -f conftest$ac_exeext 7247if { (ac_try="$ac_link" 7248case "(($ac_try" in 7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7250 *) ac_try_echo=$ac_try;; 7251esac 7252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7253$as_echo "$ac_try_echo") >&5 7254 (eval "$ac_link") 2>&5 7255 ac_status=$? 7256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7258 { (case "(($ac_try" in 7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7260 *) ac_try_echo=$ac_try;; 7261esac 7262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7263$as_echo "$ac_try_echo") >&5 7264 (eval "$ac_try") 2>&5 7265 ac_status=$? 7266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7267 (exit $ac_status); }; }; then 7268 : 7269else 7270 $as_echo "$as_me: program exited with status $ac_status" >&5 7271$as_echo "$as_me: failed program was:" >&5 7272sed 's/^/| /' conftest.$ac_ext >&5 7273 7274( exit $ac_status ) 7275ac_cv_header_stdc=no 7276fi 7277rm -rf conftest.dSYM 7278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7279fi 7280 7281 7282fi 7283fi 7284{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7285$as_echo "$ac_cv_header_stdc" >&6; } 7286if test $ac_cv_header_stdc = yes; then 7287 7288cat >>confdefs.h <<\_ACEOF 7289#define STDC_HEADERS 1 7290_ACEOF 7291 7292fi 7293 7294# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7305 inttypes.h stdint.h unistd.h 7306do 7307as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7308{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7309$as_echo_n "checking for $ac_header... " >&6; } 7310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7311 $as_echo_n "(cached) " >&6 7312else 7313 cat >conftest.$ac_ext <<_ACEOF 7314/* confdefs.h. */ 7315_ACEOF 7316cat confdefs.h >>conftest.$ac_ext 7317cat >>conftest.$ac_ext <<_ACEOF 7318/* end confdefs.h. */ 7319$ac_includes_default 7320 7321#include <$ac_header> 7322_ACEOF 7323rm -f conftest.$ac_objext 7324if { (ac_try="$ac_compile" 7325case "(($ac_try" in 7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7327 *) ac_try_echo=$ac_try;; 7328esac 7329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7330$as_echo "$ac_try_echo") >&5 7331 (eval "$ac_compile") 2>conftest.er1 7332 ac_status=$? 7333 grep -v '^ *+' conftest.er1 >conftest.err 7334 rm -f conftest.er1 7335 cat conftest.err >&5 7336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7337 (exit $ac_status); } && { 7338 test -z "$ac_c_werror_flag" || 7339 test ! -s conftest.err 7340 } && test -s conftest.$ac_objext; then 7341 eval "$as_ac_Header=yes" 7342else 7343 $as_echo "$as_me: failed program was:" >&5 7344sed 's/^/| /' conftest.$ac_ext >&5 7345 7346 eval "$as_ac_Header=no" 7347fi 7348 7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7350fi 7351ac_res=`eval 'as_val=${'$as_ac_Header'} 7352 $as_echo "$as_val"'` 7353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7354$as_echo "$ac_res" >&6; } 7355as_val=`eval 'as_val=${'$as_ac_Header'} 7356 $as_echo "$as_val"'` 7357 if test "x$as_val" = x""yes; then 7358 cat >>confdefs.h <<_ACEOF 7359#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7360_ACEOF 7361 7362fi 7363 7364done 7365 7366 7367 7368for ac_header in dlfcn.h 7369do 7370as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7371{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7372$as_echo_n "checking for $ac_header... " >&6; } 7373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7374 $as_echo_n "(cached) " >&6 7375else 7376 cat >conftest.$ac_ext <<_ACEOF 7377/* confdefs.h. */ 7378_ACEOF 7379cat confdefs.h >>conftest.$ac_ext 7380cat >>conftest.$ac_ext <<_ACEOF 7381/* end confdefs.h. */ 7382$ac_includes_default 7383 7384#include <$ac_header> 7385_ACEOF 7386rm -f conftest.$ac_objext 7387if { (ac_try="$ac_compile" 7388case "(($ac_try" in 7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7390 *) ac_try_echo=$ac_try;; 7391esac 7392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7393$as_echo "$ac_try_echo") >&5 7394 (eval "$ac_compile") 2>conftest.er1 7395 ac_status=$? 7396 grep -v '^ *+' conftest.er1 >conftest.err 7397 rm -f conftest.er1 7398 cat conftest.err >&5 7399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7400 (exit $ac_status); } && { 7401 test -z "$ac_c_werror_flag" || 7402 test ! -s conftest.err 7403 } && test -s conftest.$ac_objext; then 7404 eval "$as_ac_Header=yes" 7405else 7406 $as_echo "$as_me: failed program was:" >&5 7407sed 's/^/| /' conftest.$ac_ext >&5 7408 7409 eval "$as_ac_Header=no" 7410fi 7411 7412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7413fi 7414ac_res=`eval 'as_val=${'$as_ac_Header'} 7415 $as_echo "$as_val"'` 7416 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7417$as_echo "$ac_res" >&6; } 7418as_val=`eval 'as_val=${'$as_ac_Header'} 7419 $as_echo "$as_val"'` 7420 if test "x$as_val" = x""yes; then 7421 cat >>confdefs.h <<_ACEOF 7422#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7423_ACEOF 7424 7425fi 7426 7427done 7428 7429 7430 7431# Set options 7432 7433 7434 7435 enable_dlopen=no 7436 7437 7438 7439 # Check whether --enable-shared was given. 7440if test "${enable_shared+set}" = set; then 7441 enableval=$enable_shared; p=${PACKAGE-default} 7442 case $enableval in 7443 yes) enable_shared=yes ;; 7444 no) enable_shared=no ;; 7445 *) 7446 enable_shared=no 7447 # Look at the argument we got. We use all the common list separators. 7448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7449 for pkg in $enableval; do 7450 IFS="$lt_save_ifs" 7451 if test "X$pkg" = "X$p"; then 7452 enable_shared=yes 7453 fi 7454 done 7455 IFS="$lt_save_ifs" 7456 ;; 7457 esac 7458else 7459 enable_shared=yes 7460fi 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 # Check whether --enable-static was given. 7471if test "${enable_static+set}" = set; then 7472 enableval=$enable_static; p=${PACKAGE-default} 7473 case $enableval in 7474 yes) enable_static=yes ;; 7475 no) enable_static=no ;; 7476 *) 7477 enable_static=no 7478 # Look at the argument we got. We use all the common list separators. 7479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7480 for pkg in $enableval; do 7481 IFS="$lt_save_ifs" 7482 if test "X$pkg" = "X$p"; then 7483 enable_static=yes 7484 fi 7485 done 7486 IFS="$lt_save_ifs" 7487 ;; 7488 esac 7489else 7490 enable_static=yes 7491fi 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502# Check whether --with-pic was given. 7503if test "${with_pic+set}" = set; then 7504 withval=$with_pic; pic_mode="$withval" 7505else 7506 pic_mode=default 7507fi 7508 7509 7510test -z "$pic_mode" && pic_mode=default 7511 7512 7513 7514 7515 7516 7517 7518 # Check whether --enable-fast-install was given. 7519if test "${enable_fast_install+set}" = set; then 7520 enableval=$enable_fast_install; p=${PACKAGE-default} 7521 case $enableval in 7522 yes) enable_fast_install=yes ;; 7523 no) enable_fast_install=no ;; 7524 *) 7525 enable_fast_install=no 7526 # Look at the argument we got. We use all the common list separators. 7527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7528 for pkg in $enableval; do 7529 IFS="$lt_save_ifs" 7530 if test "X$pkg" = "X$p"; then 7531 enable_fast_install=yes 7532 fi 7533 done 7534 IFS="$lt_save_ifs" 7535 ;; 7536 esac 7537else 7538 enable_fast_install=yes 7539fi 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551# This can be used to rebuild libtool when needed 7552LIBTOOL_DEPS="$ltmain" 7553 7554# Always use our own libtool. 7555LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581test -z "$LN_S" && LN_S="ln -s" 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596if test -n "${ZSH_VERSION+set}" ; then 7597 setopt NO_GLOB_SUBST 7598fi 7599 7600{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7601$as_echo_n "checking for objdir... " >&6; } 7602if test "${lt_cv_objdir+set}" = set; then 7603 $as_echo_n "(cached) " >&6 7604else 7605 rm -f .libs 2>/dev/null 7606mkdir .libs 2>/dev/null 7607if test -d .libs; then 7608 lt_cv_objdir=.libs 7609else 7610 # MS-DOS does not allow filenames that begin with a dot. 7611 lt_cv_objdir=_libs 7612fi 7613rmdir .libs 2>/dev/null 7614fi 7615{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7616$as_echo "$lt_cv_objdir" >&6; } 7617objdir=$lt_cv_objdir 7618 7619 7620 7621 7622 7623cat >>confdefs.h <<_ACEOF 7624#define LT_OBJDIR "$lt_cv_objdir/" 7625_ACEOF 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643case $host_os in 7644aix3*) 7645 # AIX sometimes has problems with the GCC collect2 program. For some 7646 # reason, if we set the COLLECT_NAMES environment variable, the problems 7647 # vanish in a puff of smoke. 7648 if test "X${COLLECT_NAMES+set}" != Xset; then 7649 COLLECT_NAMES= 7650 export COLLECT_NAMES 7651 fi 7652 ;; 7653esac 7654 7655# Sed substitution that helps us do robust quoting. It backslashifies 7656# metacharacters that are still active within double-quoted strings. 7657sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7658 7659# Same as above, but do not quote variable references. 7660double_quote_subst='s/\(["`\\]\)/\\\1/g' 7661 7662# Sed substitution to delay expansion of an escaped shell variable in a 7663# double_quote_subst'ed string. 7664delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7665 7666# Sed substitution to delay expansion of an escaped single quote. 7667delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7668 7669# Sed substitution to avoid accidental globbing in evaled expressions 7670no_glob_subst='s/\*/\\\*/g' 7671 7672# Global variables: 7673ofile=libtool 7674can_build_shared=yes 7675 7676# All known linkers require a `.a' archive for static linking (except MSVC, 7677# which needs '.lib'). 7678libext=a 7679 7680with_gnu_ld="$lt_cv_prog_gnu_ld" 7681 7682old_CC="$CC" 7683old_CFLAGS="$CFLAGS" 7684 7685# Set sane defaults for various variables 7686test -z "$CC" && CC=cc 7687test -z "$LTCC" && LTCC=$CC 7688test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7689test -z "$LD" && LD=ld 7690test -z "$ac_objext" && ac_objext=o 7691 7692for cc_temp in $compiler""; do 7693 case $cc_temp in 7694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7696 \-*) ;; 7697 *) break;; 7698 esac 7699done 7700cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7701 7702 7703# Only perform the check for file, if the check method requires it 7704test -z "$MAGIC_CMD" && MAGIC_CMD=file 7705case $deplibs_check_method in 7706file_magic*) 7707 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7708 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7709$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7710if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7711 $as_echo_n "(cached) " >&6 7712else 7713 case $MAGIC_CMD in 7714[\\/*] | ?:[\\/]*) 7715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7716 ;; 7717*) 7718 lt_save_MAGIC_CMD="$MAGIC_CMD" 7719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7721 for ac_dir in $ac_dummy; do 7722 IFS="$lt_save_ifs" 7723 test -z "$ac_dir" && ac_dir=. 7724 if test -f $ac_dir/${ac_tool_prefix}file; then 7725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7726 if test -n "$file_magic_test_file"; then 7727 case $deplibs_check_method in 7728 "file_magic "*) 7729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7732 $EGREP "$file_magic_regex" > /dev/null; then 7733 : 7734 else 7735 cat <<_LT_EOF 1>&2 7736 7737*** Warning: the command libtool uses to detect shared libraries, 7738*** $file_magic_cmd, produces output that libtool cannot recognize. 7739*** The result is that libtool may fail to recognize shared libraries 7740*** as such. This will affect the creation of libtool libraries that 7741*** depend on shared libraries, but programs linked with such libtool 7742*** libraries will work regardless of this problem. Nevertheless, you 7743*** may want to report the problem to your system manager and/or to 7744*** bug-libtool@gnu.org 7745 7746_LT_EOF 7747 fi ;; 7748 esac 7749 fi 7750 break 7751 fi 7752 done 7753 IFS="$lt_save_ifs" 7754 MAGIC_CMD="$lt_save_MAGIC_CMD" 7755 ;; 7756esac 7757fi 7758 7759MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7760if test -n "$MAGIC_CMD"; then 7761 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7762$as_echo "$MAGIC_CMD" >&6; } 7763else 7764 { $as_echo "$as_me:$LINENO: result: no" >&5 7765$as_echo "no" >&6; } 7766fi 7767 7768 7769 7770 7771 7772if test -z "$lt_cv_path_MAGIC_CMD"; then 7773 if test -n "$ac_tool_prefix"; then 7774 { $as_echo "$as_me:$LINENO: checking for file" >&5 7775$as_echo_n "checking for file... " >&6; } 7776if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7777 $as_echo_n "(cached) " >&6 7778else 7779 case $MAGIC_CMD in 7780[\\/*] | ?:[\\/]*) 7781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7782 ;; 7783*) 7784 lt_save_MAGIC_CMD="$MAGIC_CMD" 7785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7786 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7787 for ac_dir in $ac_dummy; do 7788 IFS="$lt_save_ifs" 7789 test -z "$ac_dir" && ac_dir=. 7790 if test -f $ac_dir/file; then 7791 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7792 if test -n "$file_magic_test_file"; then 7793 case $deplibs_check_method in 7794 "file_magic "*) 7795 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7798 $EGREP "$file_magic_regex" > /dev/null; then 7799 : 7800 else 7801 cat <<_LT_EOF 1>&2 7802 7803*** Warning: the command libtool uses to detect shared libraries, 7804*** $file_magic_cmd, produces output that libtool cannot recognize. 7805*** The result is that libtool may fail to recognize shared libraries 7806*** as such. This will affect the creation of libtool libraries that 7807*** depend on shared libraries, but programs linked with such libtool 7808*** libraries will work regardless of this problem. Nevertheless, you 7809*** may want to report the problem to your system manager and/or to 7810*** bug-libtool@gnu.org 7811 7812_LT_EOF 7813 fi ;; 7814 esac 7815 fi 7816 break 7817 fi 7818 done 7819 IFS="$lt_save_ifs" 7820 MAGIC_CMD="$lt_save_MAGIC_CMD" 7821 ;; 7822esac 7823fi 7824 7825MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7826if test -n "$MAGIC_CMD"; then 7827 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7828$as_echo "$MAGIC_CMD" >&6; } 7829else 7830 { $as_echo "$as_me:$LINENO: result: no" >&5 7831$as_echo "no" >&6; } 7832fi 7833 7834 7835 else 7836 MAGIC_CMD=: 7837 fi 7838fi 7839 7840 fi 7841 ;; 7842esac 7843 7844# Use C for the default configuration in the libtool script 7845 7846lt_save_CC="$CC" 7847ac_ext=c 7848ac_cpp='$CPP $CPPFLAGS' 7849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7851ac_compiler_gnu=$ac_cv_c_compiler_gnu 7852 7853 7854# Source file extension for C test sources. 7855ac_ext=c 7856 7857# Object file extension for compiled C test sources. 7858objext=o 7859objext=$objext 7860 7861# Code to be used in simple compile tests 7862lt_simple_compile_test_code="int some_variable = 0;" 7863 7864# Code to be used in simple link tests 7865lt_simple_link_test_code='int main(){return(0);}' 7866 7867 7868 7869 7870 7871 7872 7873# If no C compiler was specified, use CC. 7874LTCC=${LTCC-"$CC"} 7875 7876# If no C compiler flags were specified, use CFLAGS. 7877LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7878 7879# Allow CC to be a program name with arguments. 7880compiler=$CC 7881 7882# Save the default compiler, since it gets overwritten when the other 7883# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7884compiler_DEFAULT=$CC 7885 7886# save warnings/boilerplate of simple test code 7887ac_outfile=conftest.$ac_objext 7888echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7889eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7890_lt_compiler_boilerplate=`cat conftest.err` 7891$RM conftest* 7892 7893ac_outfile=conftest.$ac_objext 7894echo "$lt_simple_link_test_code" >conftest.$ac_ext 7895eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7896_lt_linker_boilerplate=`cat conftest.err` 7897$RM -r conftest* 7898 7899 7900if test -n "$compiler"; then 7901 7902lt_prog_compiler_no_builtin_flag= 7903 7904if test "$GCC" = yes; then 7905 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7906 7907 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7908$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7909if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7910 $as_echo_n "(cached) " >&6 7911else 7912 lt_cv_prog_compiler_rtti_exceptions=no 7913 ac_outfile=conftest.$ac_objext 7914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7915 lt_compiler_flag="-fno-rtti -fno-exceptions" 7916 # Insert the option either (1) after the last *FLAGS variable, or 7917 # (2) before a word containing "conftest.", or (3) at the end. 7918 # Note that $ac_compile itself does not contain backslashes and begins 7919 # with a dollar sign (not a hyphen), so the echo should work correctly. 7920 # The option is referenced via a variable to avoid confusing sed. 7921 lt_compile=`echo "$ac_compile" | $SED \ 7922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7924 -e 's:$: $lt_compiler_flag:'` 7925 (eval echo "\"\$as_me:7925: $lt_compile\"" >&5) 7926 (eval "$lt_compile" 2>conftest.err) 7927 ac_status=$? 7928 cat conftest.err >&5 7929 echo "$as_me:7929: \$? = $ac_status" >&5 7930 if (exit $ac_status) && test -s "$ac_outfile"; then 7931 # The compiler can only warn and ignore the option if not recognized 7932 # So say no if there are warnings other than the usual output. 7933 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7936 lt_cv_prog_compiler_rtti_exceptions=yes 7937 fi 7938 fi 7939 $RM conftest* 7940 7941fi 7942{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7943$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7944 7945if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7947else 7948 : 7949fi 7950 7951fi 7952 7953 7954 7955 7956 7957 7958 lt_prog_compiler_wl= 7959lt_prog_compiler_pic= 7960lt_prog_compiler_static= 7961 7962{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7963$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7964 7965 if test "$GCC" = yes; then 7966 lt_prog_compiler_wl='-Wl,' 7967 lt_prog_compiler_static='-static' 7968 7969 case $host_os in 7970 aix*) 7971 # All AIX code is PIC. 7972 if test "$host_cpu" = ia64; then 7973 # AIX 5 now supports IA64 processor 7974 lt_prog_compiler_static='-Bstatic' 7975 fi 7976 ;; 7977 7978 amigaos*) 7979 case $host_cpu in 7980 powerpc) 7981 # see comment about AmigaOS4 .so support 7982 lt_prog_compiler_pic='-fPIC' 7983 ;; 7984 m68k) 7985 # FIXME: we need at least 68020 code to build shared libraries, but 7986 # adding the `-m68020' flag to GCC prevents building anything better, 7987 # like `-m68040'. 7988 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7989 ;; 7990 esac 7991 ;; 7992 7993 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7994 # PIC is the default for these OSes. 7995 ;; 7996 7997 mingw* | cygwin* | pw32* | os2* | cegcc*) 7998 # This hack is so that the source file can tell whether it is being 7999 # built for inclusion in a dll (and should export symbols for example). 8000 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8001 # (--disable-auto-import) libraries 8002 lt_prog_compiler_pic='-DDLL_EXPORT' 8003 ;; 8004 8005 darwin* | rhapsody*) 8006 # PIC is the default on this platform 8007 # Common symbols not allowed in MH_DYLIB files 8008 lt_prog_compiler_pic='-fno-common' 8009 ;; 8010 8011 hpux*) 8012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8014 # sets the default TLS model and affects inlining. 8015 case $host_cpu in 8016 hppa*64*) 8017 # +Z the default 8018 ;; 8019 *) 8020 lt_prog_compiler_pic='-fPIC' 8021 ;; 8022 esac 8023 ;; 8024 8025 interix[3-9]*) 8026 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8027 # Instead, we relocate shared libraries at runtime. 8028 ;; 8029 8030 msdosdjgpp*) 8031 # Just because we use GCC doesn't mean we suddenly get shared libraries 8032 # on systems that don't support them. 8033 lt_prog_compiler_can_build_shared=no 8034 enable_shared=no 8035 ;; 8036 8037 *nto* | *qnx*) 8038 # QNX uses GNU C++, but need to define -shared option too, otherwise 8039 # it will coredump. 8040 lt_prog_compiler_pic='-fPIC -shared' 8041 ;; 8042 8043 sysv4*MP*) 8044 if test -d /usr/nec; then 8045 lt_prog_compiler_pic=-Kconform_pic 8046 fi 8047 ;; 8048 8049 *) 8050 lt_prog_compiler_pic='-fPIC' 8051 ;; 8052 esac 8053 else 8054 # PORTME Check for flag to pass linker flags through the system compiler. 8055 case $host_os in 8056 aix*) 8057 lt_prog_compiler_wl='-Wl,' 8058 if test "$host_cpu" = ia64; then 8059 # AIX 5 now supports IA64 processor 8060 lt_prog_compiler_static='-Bstatic' 8061 else 8062 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8063 fi 8064 ;; 8065 8066 mingw* | cygwin* | pw32* | os2* | cegcc*) 8067 # This hack is so that the source file can tell whether it is being 8068 # built for inclusion in a dll (and should export symbols for example). 8069 lt_prog_compiler_pic='-DDLL_EXPORT' 8070 ;; 8071 8072 hpux9* | hpux10* | hpux11*) 8073 lt_prog_compiler_wl='-Wl,' 8074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8075 # not for PA HP-UX. 8076 case $host_cpu in 8077 hppa*64*|ia64*) 8078 # +Z the default 8079 ;; 8080 *) 8081 lt_prog_compiler_pic='+Z' 8082 ;; 8083 esac 8084 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8085 lt_prog_compiler_static='${wl}-a ${wl}archive' 8086 ;; 8087 8088 irix5* | irix6* | nonstopux*) 8089 lt_prog_compiler_wl='-Wl,' 8090 # PIC (with -KPIC) is the default. 8091 lt_prog_compiler_static='-non_shared' 8092 ;; 8093 8094 linux* | k*bsd*-gnu) 8095 case $cc_basename in 8096 # old Intel for x86_64 which still supported -KPIC. 8097 ecc*) 8098 lt_prog_compiler_wl='-Wl,' 8099 lt_prog_compiler_pic='-KPIC' 8100 lt_prog_compiler_static='-static' 8101 ;; 8102 # icc used to be incompatible with GCC. 8103 # ICC 10 doesn't accept -KPIC any more. 8104 icc* | ifort*) 8105 lt_prog_compiler_wl='-Wl,' 8106 lt_prog_compiler_pic='-fPIC' 8107 lt_prog_compiler_static='-static' 8108 ;; 8109 # Lahey Fortran 8.1. 8110 lf95*) 8111 lt_prog_compiler_wl='-Wl,' 8112 lt_prog_compiler_pic='--shared' 8113 lt_prog_compiler_static='--static' 8114 ;; 8115 pgcc* | pgf77* | pgf90* | pgf95*) 8116 # Portland Group compilers (*not* the Pentium gcc compiler, 8117 # which looks to be a dead project) 8118 lt_prog_compiler_wl='-Wl,' 8119 lt_prog_compiler_pic='-fpic' 8120 lt_prog_compiler_static='-Bstatic' 8121 ;; 8122 ccc*) 8123 lt_prog_compiler_wl='-Wl,' 8124 # All Alpha code is PIC. 8125 lt_prog_compiler_static='-non_shared' 8126 ;; 8127 xl*) 8128 # IBM XL C 8.0/Fortran 10.1 on PPC 8129 lt_prog_compiler_wl='-Wl,' 8130 lt_prog_compiler_pic='-qpic' 8131 lt_prog_compiler_static='-qstaticlink' 8132 ;; 8133 *) 8134 case `$CC -V 2>&1 | sed 5q` in 8135 *Sun\ C*) 8136 # Sun C 5.9 8137 lt_prog_compiler_pic='-KPIC' 8138 lt_prog_compiler_static='-Bstatic' 8139 lt_prog_compiler_wl='-Wl,' 8140 ;; 8141 *Sun\ F*) 8142 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8143 lt_prog_compiler_pic='-KPIC' 8144 lt_prog_compiler_static='-Bstatic' 8145 lt_prog_compiler_wl='' 8146 ;; 8147 esac 8148 ;; 8149 esac 8150 ;; 8151 8152 newsos6) 8153 lt_prog_compiler_pic='-KPIC' 8154 lt_prog_compiler_static='-Bstatic' 8155 ;; 8156 8157 *nto* | *qnx*) 8158 # QNX uses GNU C++, but need to define -shared option too, otherwise 8159 # it will coredump. 8160 lt_prog_compiler_pic='-fPIC -shared' 8161 ;; 8162 8163 osf3* | osf4* | osf5*) 8164 lt_prog_compiler_wl='-Wl,' 8165 # All OSF/1 code is PIC. 8166 lt_prog_compiler_static='-non_shared' 8167 ;; 8168 8169 rdos*) 8170 lt_prog_compiler_static='-non_shared' 8171 ;; 8172 8173 solaris*) 8174 lt_prog_compiler_pic='-KPIC' 8175 lt_prog_compiler_static='-Bstatic' 8176 case $cc_basename in 8177 f77* | f90* | f95*) 8178 lt_prog_compiler_wl='-Qoption ld ';; 8179 *) 8180 lt_prog_compiler_wl='-Wl,';; 8181 esac 8182 ;; 8183 8184 sunos4*) 8185 lt_prog_compiler_wl='-Qoption ld ' 8186 lt_prog_compiler_pic='-PIC' 8187 lt_prog_compiler_static='-Bstatic' 8188 ;; 8189 8190 sysv4 | sysv4.2uw2* | sysv4.3*) 8191 lt_prog_compiler_wl='-Wl,' 8192 lt_prog_compiler_pic='-KPIC' 8193 lt_prog_compiler_static='-Bstatic' 8194 ;; 8195 8196 sysv4*MP*) 8197 if test -d /usr/nec ;then 8198 lt_prog_compiler_pic='-Kconform_pic' 8199 lt_prog_compiler_static='-Bstatic' 8200 fi 8201 ;; 8202 8203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8204 lt_prog_compiler_wl='-Wl,' 8205 lt_prog_compiler_pic='-KPIC' 8206 lt_prog_compiler_static='-Bstatic' 8207 ;; 8208 8209 unicos*) 8210 lt_prog_compiler_wl='-Wl,' 8211 lt_prog_compiler_can_build_shared=no 8212 ;; 8213 8214 uts4*) 8215 lt_prog_compiler_pic='-pic' 8216 lt_prog_compiler_static='-Bstatic' 8217 ;; 8218 8219 *) 8220 lt_prog_compiler_can_build_shared=no 8221 ;; 8222 esac 8223 fi 8224 8225case $host_os in 8226 # For platforms which do not support PIC, -DPIC is meaningless: 8227 *djgpp*) 8228 lt_prog_compiler_pic= 8229 ;; 8230 *) 8231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8232 ;; 8233esac 8234{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8235$as_echo "$lt_prog_compiler_pic" >&6; } 8236 8237 8238 8239 8240 8241 8242# 8243# Check to make sure the PIC flag actually works. 8244# 8245if test -n "$lt_prog_compiler_pic"; then 8246 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8247$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8248if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8249 $as_echo_n "(cached) " >&6 8250else 8251 lt_cv_prog_compiler_pic_works=no 8252 ac_outfile=conftest.$ac_objext 8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8255 # Insert the option either (1) after the last *FLAGS variable, or 8256 # (2) before a word containing "conftest.", or (3) at the end. 8257 # Note that $ac_compile itself does not contain backslashes and begins 8258 # with a dollar sign (not a hyphen), so the echo should work correctly. 8259 # The option is referenced via a variable to avoid confusing sed. 8260 lt_compile=`echo "$ac_compile" | $SED \ 8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8263 -e 's:$: $lt_compiler_flag:'` 8264 (eval echo "\"\$as_me:8264: $lt_compile\"" >&5) 8265 (eval "$lt_compile" 2>conftest.err) 8266 ac_status=$? 8267 cat conftest.err >&5 8268 echo "$as_me:8268: \$? = $ac_status" >&5 8269 if (exit $ac_status) && test -s "$ac_outfile"; then 8270 # The compiler can only warn and ignore the option if not recognized 8271 # So say no if there are warnings other than the usual output. 8272 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8275 lt_cv_prog_compiler_pic_works=yes 8276 fi 8277 fi 8278 $RM conftest* 8279 8280fi 8281{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8282$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8283 8284if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8285 case $lt_prog_compiler_pic in 8286 "" | " "*) ;; 8287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8288 esac 8289else 8290 lt_prog_compiler_pic= 8291 lt_prog_compiler_can_build_shared=no 8292fi 8293 8294fi 8295 8296 8297 8298 8299 8300 8301# 8302# Check to make sure the static flag actually works. 8303# 8304wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8305{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8306$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8307if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8308 $as_echo_n "(cached) " >&6 8309else 8310 lt_cv_prog_compiler_static_works=no 8311 save_LDFLAGS="$LDFLAGS" 8312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8313 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8315 # The linker can only warn and ignore the option if not recognized 8316 # So say no if there are warnings 8317 if test -s conftest.err; then 8318 # Append any errors to the config.log. 8319 cat conftest.err 1>&5 8320 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8322 if diff conftest.exp conftest.er2 >/dev/null; then 8323 lt_cv_prog_compiler_static_works=yes 8324 fi 8325 else 8326 lt_cv_prog_compiler_static_works=yes 8327 fi 8328 fi 8329 $RM -r conftest* 8330 LDFLAGS="$save_LDFLAGS" 8331 8332fi 8333{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8334$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8335 8336if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8337 : 8338else 8339 lt_prog_compiler_static= 8340fi 8341 8342 8343 8344 8345 8346 8347 8348 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8349$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8350if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8351 $as_echo_n "(cached) " >&6 8352else 8353 lt_cv_prog_compiler_c_o=no 8354 $RM -r conftest 2>/dev/null 8355 mkdir conftest 8356 cd conftest 8357 mkdir out 8358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8359 8360 lt_compiler_flag="-o out/conftest2.$ac_objext" 8361 # Insert the option either (1) after the last *FLAGS variable, or 8362 # (2) before a word containing "conftest.", or (3) at the end. 8363 # Note that $ac_compile itself does not contain backslashes and begins 8364 # with a dollar sign (not a hyphen), so the echo should work correctly. 8365 lt_compile=`echo "$ac_compile" | $SED \ 8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8368 -e 's:$: $lt_compiler_flag:'` 8369 (eval echo "\"\$as_me:8369: $lt_compile\"" >&5) 8370 (eval "$lt_compile" 2>out/conftest.err) 8371 ac_status=$? 8372 cat out/conftest.err >&5 8373 echo "$as_me:8373: \$? = $ac_status" >&5 8374 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8375 then 8376 # The compiler can only warn and ignore the option if not recognized 8377 # So say no if there are warnings 8378 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8381 lt_cv_prog_compiler_c_o=yes 8382 fi 8383 fi 8384 chmod u+w . 2>&5 8385 $RM conftest* 8386 # SGI C++ compiler will create directory out/ii_files/ for 8387 # template instantiation 8388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8389 $RM out/* && rmdir out 8390 cd .. 8391 $RM -r conftest 8392 $RM conftest* 8393 8394fi 8395{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8396$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8397 8398 8399 8400 8401 8402 8403 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8404$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8405if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8406 $as_echo_n "(cached) " >&6 8407else 8408 lt_cv_prog_compiler_c_o=no 8409 $RM -r conftest 2>/dev/null 8410 mkdir conftest 8411 cd conftest 8412 mkdir out 8413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8414 8415 lt_compiler_flag="-o out/conftest2.$ac_objext" 8416 # Insert the option either (1) after the last *FLAGS variable, or 8417 # (2) before a word containing "conftest.", or (3) at the end. 8418 # Note that $ac_compile itself does not contain backslashes and begins 8419 # with a dollar sign (not a hyphen), so the echo should work correctly. 8420 lt_compile=`echo "$ac_compile" | $SED \ 8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8423 -e 's:$: $lt_compiler_flag:'` 8424 (eval echo "\"\$as_me:8424: $lt_compile\"" >&5) 8425 (eval "$lt_compile" 2>out/conftest.err) 8426 ac_status=$? 8427 cat out/conftest.err >&5 8428 echo "$as_me:8428: \$? = $ac_status" >&5 8429 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8430 then 8431 # The compiler can only warn and ignore the option if not recognized 8432 # So say no if there are warnings 8433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8436 lt_cv_prog_compiler_c_o=yes 8437 fi 8438 fi 8439 chmod u+w . 2>&5 8440 $RM conftest* 8441 # SGI C++ compiler will create directory out/ii_files/ for 8442 # template instantiation 8443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8444 $RM out/* && rmdir out 8445 cd .. 8446 $RM -r conftest 8447 $RM conftest* 8448 8449fi 8450{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8451$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8452 8453 8454 8455 8456hard_links="nottested" 8457if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8458 # do not overwrite the value of need_locks provided by the user 8459 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8460$as_echo_n "checking if we can lock with hard links... " >&6; } 8461 hard_links=yes 8462 $RM conftest* 8463 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8464 touch conftest.a 8465 ln conftest.a conftest.b 2>&5 || hard_links=no 8466 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8467 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8468$as_echo "$hard_links" >&6; } 8469 if test "$hard_links" = no; then 8470 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8471$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8472 need_locks=warn 8473 fi 8474else 8475 need_locks=no 8476fi 8477 8478 8479 8480 8481 8482 8483 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8484$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8485 8486 runpath_var= 8487 allow_undefined_flag= 8488 always_export_symbols=no 8489 archive_cmds= 8490 archive_expsym_cmds= 8491 compiler_needs_object=no 8492 enable_shared_with_static_runtimes=no 8493 export_dynamic_flag_spec= 8494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8495 hardcode_automatic=no 8496 hardcode_direct=no 8497 hardcode_direct_absolute=no 8498 hardcode_libdir_flag_spec= 8499 hardcode_libdir_flag_spec_ld= 8500 hardcode_libdir_separator= 8501 hardcode_minus_L=no 8502 hardcode_shlibpath_var=unsupported 8503 inherit_rpath=no 8504 link_all_deplibs=unknown 8505 module_cmds= 8506 module_expsym_cmds= 8507 old_archive_from_new_cmds= 8508 old_archive_from_expsyms_cmds= 8509 thread_safe_flag_spec= 8510 whole_archive_flag_spec= 8511 # include_expsyms should be a list of space-separated symbols to be *always* 8512 # included in the symbol list 8513 include_expsyms= 8514 # exclude_expsyms can be an extended regexp of symbols to exclude 8515 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8517 # as well as any symbol that contains `d'. 8518 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8520 # platforms (ab)use it in PIC code, but their linkers get confused if 8521 # the symbol is explicitly referenced. Since portable code cannot 8522 # rely on this symbol name, it's probably fine to never include it in 8523 # preloaded symbol tables. 8524 # Exclude shared library initialization/finalization symbols. 8525 extract_expsyms_cmds= 8526 8527 case $host_os in 8528 cygwin* | mingw* | pw32* | cegcc*) 8529 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8530 # When not using gcc, we currently assume that we are using 8531 # Microsoft Visual C++. 8532 if test "$GCC" != yes; then 8533 with_gnu_ld=no 8534 fi 8535 ;; 8536 interix*) 8537 # we just hope/assume this is gcc and not c89 (= MSVC++) 8538 with_gnu_ld=yes 8539 ;; 8540 openbsd*) 8541 with_gnu_ld=no 8542 ;; 8543 esac 8544 8545 ld_shlibs=yes 8546 if test "$with_gnu_ld" = yes; then 8547 # If archive_cmds runs LD, not CC, wlarc should be empty 8548 wlarc='${wl}' 8549 8550 # Set some defaults for GNU ld with shared library support. These 8551 # are reset later if shared libraries are not supported. Putting them 8552 # here allows them to be overridden if necessary. 8553 runpath_var=LD_RUN_PATH 8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8555 export_dynamic_flag_spec='${wl}--export-dynamic' 8556 # ancient GNU ld didn't support --whole-archive et. al. 8557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8559 else 8560 whole_archive_flag_spec= 8561 fi 8562 supports_anon_versioning=no 8563 case `$LD -v 2>&1` in 8564 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8567 *\ 2.11.*) ;; # other 2.11 versions 8568 *) supports_anon_versioning=yes ;; 8569 esac 8570 8571 # See if GNU ld supports shared libraries. 8572 case $host_os in 8573 aix[3-9]*) 8574 # On AIX/PPC, the GNU linker is very broken 8575 if test "$host_cpu" != ia64; then 8576 ld_shlibs=no 8577 cat <<_LT_EOF 1>&2 8578 8579*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8580*** to be unable to reliably create shared libraries on AIX. 8581*** Therefore, libtool is disabling shared libraries support. If you 8582*** really care for shared libraries, you may want to modify your PATH 8583*** so that a non-GNU linker is found, and then restart. 8584 8585_LT_EOF 8586 fi 8587 ;; 8588 8589 amigaos*) 8590 case $host_cpu in 8591 powerpc) 8592 # see comment about AmigaOS4 .so support 8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8594 archive_expsym_cmds='' 8595 ;; 8596 m68k) 8597 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)' 8598 hardcode_libdir_flag_spec='-L$libdir' 8599 hardcode_minus_L=yes 8600 ;; 8601 esac 8602 ;; 8603 8604 beos*) 8605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8606 allow_undefined_flag=unsupported 8607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8608 # support --undefined. This deserves some investigation. FIXME 8609 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8610 else 8611 ld_shlibs=no 8612 fi 8613 ;; 8614 8615 cygwin* | mingw* | pw32* | cegcc*) 8616 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8617 # as there is no search path for DLLs. 8618 hardcode_libdir_flag_spec='-L$libdir' 8619 allow_undefined_flag=unsupported 8620 always_export_symbols=no 8621 enable_shared_with_static_runtimes=yes 8622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8623 8624 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8626 # If the export-symbols file already is a .def file (1st line 8627 # is EXPORTS), use it as is; otherwise, prepend... 8628 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8629 cp $export_symbols $output_objdir/$soname.def; 8630 else 8631 echo EXPORTS > $output_objdir/$soname.def; 8632 cat $export_symbols >> $output_objdir/$soname.def; 8633 fi~ 8634 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8635 else 8636 ld_shlibs=no 8637 fi 8638 ;; 8639 8640 interix[3-9]*) 8641 hardcode_direct=no 8642 hardcode_shlibpath_var=no 8643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8644 export_dynamic_flag_spec='${wl}-E' 8645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8646 # Instead, shared libraries are loaded at an image base (0x10000000 by 8647 # default) and relocated if they conflict, which is a slow very memory 8648 # consuming and fragmenting process. To avoid this, we pick a random, 8649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8650 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8652 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' 8653 ;; 8654 8655 gnu* | linux* | tpf* | k*bsd*-gnu) 8656 tmp_diet=no 8657 if test "$host_os" = linux-dietlibc; then 8658 case $cc_basename in 8659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8660 esac 8661 fi 8662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8663 && test "$tmp_diet" = no 8664 then 8665 tmp_addflag= 8666 tmp_sharedflag='-shared' 8667 case $cc_basename,$host_cpu in 8668 pgcc*) # Portland Group C compiler 8669 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' 8670 tmp_addflag=' $pic_flag' 8671 ;; 8672 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8673 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' 8674 tmp_addflag=' $pic_flag -Mnomain' ;; 8675 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8676 tmp_addflag=' -i_dynamic' ;; 8677 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8678 tmp_addflag=' -i_dynamic -nofor_main' ;; 8679 ifc* | ifort*) # Intel Fortran compiler 8680 tmp_addflag=' -nofor_main' ;; 8681 lf95*) # Lahey Fortran 8.1 8682 whole_archive_flag_spec= 8683 tmp_sharedflag='--shared' ;; 8684 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8685 tmp_sharedflag='-qmkshrobj' 8686 tmp_addflag= ;; 8687 esac 8688 case `$CC -V 2>&1 | sed 5q` in 8689 *Sun\ C*) # Sun C 5.9 8690 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' 8691 compiler_needs_object=yes 8692 tmp_sharedflag='-G' ;; 8693 *Sun\ F*) # Sun Fortran 8.3 8694 tmp_sharedflag='-G' ;; 8695 esac 8696 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8697 8698 if test "x$supports_anon_versioning" = xyes; then 8699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8701 echo "local: *; };" >> $output_objdir/$libname.ver~ 8702 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8703 fi 8704 8705 case $cc_basename in 8706 xlf*) 8707 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8708 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8709 hardcode_libdir_flag_spec= 8710 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8711 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8712 if test "x$supports_anon_versioning" = xyes; then 8713 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8715 echo "local: *; };" >> $output_objdir/$libname.ver~ 8716 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8717 fi 8718 ;; 8719 esac 8720 else 8721 ld_shlibs=no 8722 fi 8723 ;; 8724 8725 netbsd*) 8726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8727 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8728 wlarc= 8729 else 8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8732 fi 8733 ;; 8734 8735 solaris*) 8736 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8737 ld_shlibs=no 8738 cat <<_LT_EOF 1>&2 8739 8740*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8741*** create shared libraries on Solaris systems. Therefore, libtool 8742*** is disabling shared libraries support. We urge you to upgrade GNU 8743*** binutils to release 2.9.1 or newer. Another option is to modify 8744*** your PATH or compiler configuration so that the native linker is 8745*** used, and then restart. 8746 8747_LT_EOF 8748 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8751 else 8752 ld_shlibs=no 8753 fi 8754 ;; 8755 8756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8757 case `$LD -v 2>&1` in 8758 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8759 ld_shlibs=no 8760 cat <<_LT_EOF 1>&2 8761 8762*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8763*** reliably create shared libraries on SCO systems. Therefore, libtool 8764*** is disabling shared libraries support. We urge you to upgrade GNU 8765*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8766*** your PATH or compiler configuration so that the native linker is 8767*** used, and then restart. 8768 8769_LT_EOF 8770 ;; 8771 *) 8772 # For security reasons, it is highly recommended that you always 8773 # use absolute paths for naming shared libraries, and exclude the 8774 # DT_RUNPATH tag from executables and libraries. But doing so 8775 # requires that you compile everything twice, which is a pain. 8776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8780 else 8781 ld_shlibs=no 8782 fi 8783 ;; 8784 esac 8785 ;; 8786 8787 sunos4*) 8788 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8789 wlarc= 8790 hardcode_direct=yes 8791 hardcode_shlibpath_var=no 8792 ;; 8793 8794 *) 8795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8798 else 8799 ld_shlibs=no 8800 fi 8801 ;; 8802 esac 8803 8804 if test "$ld_shlibs" = no; then 8805 runpath_var= 8806 hardcode_libdir_flag_spec= 8807 export_dynamic_flag_spec= 8808 whole_archive_flag_spec= 8809 fi 8810 else 8811 # PORTME fill in a description of your system's linker (not GNU ld) 8812 case $host_os in 8813 aix3*) 8814 allow_undefined_flag=unsupported 8815 always_export_symbols=yes 8816 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' 8817 # Note: this linker hardcodes the directories in LIBPATH if there 8818 # are no directories specified by -L. 8819 hardcode_minus_L=yes 8820 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8821 # Neither direct hardcoding nor static linking is supported with a 8822 # broken collect2. 8823 hardcode_direct=unsupported 8824 fi 8825 ;; 8826 8827 aix[4-9]*) 8828 if test "$host_cpu" = ia64; then 8829 # On IA64, the linker does run time linking by default, so we don't 8830 # have to do anything special. 8831 aix_use_runtimelinking=no 8832 exp_sym_flag='-Bexport' 8833 no_entry_flag="" 8834 else 8835 # If we're using GNU nm, then we don't want the "-C" option. 8836 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8837 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8838 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' 8839 else 8840 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' 8841 fi 8842 aix_use_runtimelinking=no 8843 8844 # Test if we are trying to use run time linking or normal 8845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8846 # need to do runtime linking. 8847 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8848 for ld_flag in $LDFLAGS; do 8849 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8850 aix_use_runtimelinking=yes 8851 break 8852 fi 8853 done 8854 ;; 8855 esac 8856 8857 exp_sym_flag='-bexport' 8858 no_entry_flag='-bnoentry' 8859 fi 8860 8861 # When large executables or shared objects are built, AIX ld can 8862 # have problems creating the table of contents. If linking a library 8863 # or program results in "error TOC overflow" add -mminimal-toc to 8864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8866 8867 archive_cmds='' 8868 hardcode_direct=yes 8869 hardcode_direct_absolute=yes 8870 hardcode_libdir_separator=':' 8871 link_all_deplibs=yes 8872 file_list_spec='${wl}-f,' 8873 8874 if test "$GCC" = yes; then 8875 case $host_os in aix4.[012]|aix4.[012].*) 8876 # We only want to do this on AIX 4.2 and lower, the check 8877 # below for broken collect2 doesn't work under 4.3+ 8878 collect2name=`${CC} -print-prog-name=collect2` 8879 if test -f "$collect2name" && 8880 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8881 then 8882 # We have reworked collect2 8883 : 8884 else 8885 # We have old collect2 8886 hardcode_direct=unsupported 8887 # It fails to find uninstalled libraries when the uninstalled 8888 # path is not listed in the libpath. Setting hardcode_minus_L 8889 # to unsupported forces relinking 8890 hardcode_minus_L=yes 8891 hardcode_libdir_flag_spec='-L$libdir' 8892 hardcode_libdir_separator= 8893 fi 8894 ;; 8895 esac 8896 shared_flag='-shared' 8897 if test "$aix_use_runtimelinking" = yes; then 8898 shared_flag="$shared_flag "'${wl}-G' 8899 fi 8900 else 8901 # not using gcc 8902 if test "$host_cpu" = ia64; then 8903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8904 # chokes on -Wl,-G. The following line is correct: 8905 shared_flag='-G' 8906 else 8907 if test "$aix_use_runtimelinking" = yes; then 8908 shared_flag='${wl}-G' 8909 else 8910 shared_flag='${wl}-bM:SRE' 8911 fi 8912 fi 8913 fi 8914 8915 export_dynamic_flag_spec='${wl}-bexpall' 8916 # It seems that -bexpall does not export symbols beginning with 8917 # underscore (_), so it is better to generate a list of symbols to export. 8918 always_export_symbols=yes 8919 if test "$aix_use_runtimelinking" = yes; then 8920 # Warning - without using the other runtime loading flags (-brtl), 8921 # -berok will link without error, but may produce a broken library. 8922 allow_undefined_flag='-berok' 8923 # Determine the default libpath from the value encoded in an 8924 # empty executable. 8925 cat >conftest.$ac_ext <<_ACEOF 8926/* confdefs.h. */ 8927_ACEOF 8928cat confdefs.h >>conftest.$ac_ext 8929cat >>conftest.$ac_ext <<_ACEOF 8930/* end confdefs.h. */ 8931 8932int 8933main () 8934{ 8935 8936 ; 8937 return 0; 8938} 8939_ACEOF 8940rm -f conftest.$ac_objext conftest$ac_exeext 8941if { (ac_try="$ac_link" 8942case "(($ac_try" in 8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8944 *) ac_try_echo=$ac_try;; 8945esac 8946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8947$as_echo "$ac_try_echo") >&5 8948 (eval "$ac_link") 2>conftest.er1 8949 ac_status=$? 8950 grep -v '^ *+' conftest.er1 >conftest.err 8951 rm -f conftest.er1 8952 cat conftest.err >&5 8953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8954 (exit $ac_status); } && { 8955 test -z "$ac_c_werror_flag" || 8956 test ! -s conftest.err 8957 } && test -s conftest$ac_exeext && { 8958 test "$cross_compiling" = yes || 8959 $as_test_x conftest$ac_exeext 8960 }; then 8961 8962lt_aix_libpath_sed=' 8963 /Import File Strings/,/^$/ { 8964 /^0/ { 8965 s/^0 *\(.*\)$/\1/ 8966 p 8967 } 8968 }' 8969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8970# Check for a 64-bit object if we didn't find anything. 8971if test -z "$aix_libpath"; then 8972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8973fi 8974else 8975 $as_echo "$as_me: failed program was:" >&5 8976sed 's/^/| /' conftest.$ac_ext >&5 8977 8978 8979fi 8980 8981rm -rf conftest.dSYM 8982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8983 conftest$ac_exeext conftest.$ac_ext 8984if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8985 8986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8987 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" 8988 else 8989 if test "$host_cpu" = ia64; then 8990 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8991 allow_undefined_flag="-z nodefs" 8992 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" 8993 else 8994 # Determine the default libpath from the value encoded in an 8995 # empty executable. 8996 cat >conftest.$ac_ext <<_ACEOF 8997/* confdefs.h. */ 8998_ACEOF 8999cat confdefs.h >>conftest.$ac_ext 9000cat >>conftest.$ac_ext <<_ACEOF 9001/* end confdefs.h. */ 9002 9003int 9004main () 9005{ 9006 9007 ; 9008 return 0; 9009} 9010_ACEOF 9011rm -f conftest.$ac_objext conftest$ac_exeext 9012if { (ac_try="$ac_link" 9013case "(($ac_try" in 9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9015 *) ac_try_echo=$ac_try;; 9016esac 9017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9018$as_echo "$ac_try_echo") >&5 9019 (eval "$ac_link") 2>conftest.er1 9020 ac_status=$? 9021 grep -v '^ *+' conftest.er1 >conftest.err 9022 rm -f conftest.er1 9023 cat conftest.err >&5 9024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9025 (exit $ac_status); } && { 9026 test -z "$ac_c_werror_flag" || 9027 test ! -s conftest.err 9028 } && test -s conftest$ac_exeext && { 9029 test "$cross_compiling" = yes || 9030 $as_test_x conftest$ac_exeext 9031 }; then 9032 9033lt_aix_libpath_sed=' 9034 /Import File Strings/,/^$/ { 9035 /^0/ { 9036 s/^0 *\(.*\)$/\1/ 9037 p 9038 } 9039 }' 9040aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9041# Check for a 64-bit object if we didn't find anything. 9042if test -z "$aix_libpath"; then 9043 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9044fi 9045else 9046 $as_echo "$as_me: failed program was:" >&5 9047sed 's/^/| /' conftest.$ac_ext >&5 9048 9049 9050fi 9051 9052rm -rf conftest.dSYM 9053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9054 conftest$ac_exeext conftest.$ac_ext 9055if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9056 9057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9058 # Warning - without using the other run time loading flags, 9059 # -berok will link without error, but may produce a broken library. 9060 no_undefined_flag=' ${wl}-bernotok' 9061 allow_undefined_flag=' ${wl}-berok' 9062 # Exported symbols can be pulled into shared objects from archives 9063 whole_archive_flag_spec='$convenience' 9064 archive_cmds_need_lc=yes 9065 # This is similar to how AIX traditionally builds its shared libraries. 9066 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' 9067 fi 9068 fi 9069 ;; 9070 9071 amigaos*) 9072 case $host_cpu in 9073 powerpc) 9074 # see comment about AmigaOS4 .so support 9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9076 archive_expsym_cmds='' 9077 ;; 9078 m68k) 9079 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)' 9080 hardcode_libdir_flag_spec='-L$libdir' 9081 hardcode_minus_L=yes 9082 ;; 9083 esac 9084 ;; 9085 9086 bsdi[45]*) 9087 export_dynamic_flag_spec=-rdynamic 9088 ;; 9089 9090 cygwin* | mingw* | pw32* | cegcc*) 9091 # When not using gcc, we currently assume that we are using 9092 # Microsoft Visual C++. 9093 # hardcode_libdir_flag_spec is actually meaningless, as there is 9094 # no search path for DLLs. 9095 hardcode_libdir_flag_spec=' ' 9096 allow_undefined_flag=unsupported 9097 # Tell ltmain to make .lib files, not .a files. 9098 libext=lib 9099 # Tell ltmain to make .dll files, not .so files. 9100 shrext_cmds=".dll" 9101 # FIXME: Setting linknames here is a bad hack. 9102 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9103 # The linker will automatically build a .lib file if we build a DLL. 9104 old_archive_from_new_cmds='true' 9105 # FIXME: Should let the user specify the lib program. 9106 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9107 fix_srcfile_path='`cygpath -w "$srcfile"`' 9108 enable_shared_with_static_runtimes=yes 9109 ;; 9110 9111 darwin* | rhapsody*) 9112 9113 9114 archive_cmds_need_lc=no 9115 hardcode_direct=no 9116 hardcode_automatic=yes 9117 hardcode_shlibpath_var=unsupported 9118 whole_archive_flag_spec='' 9119 link_all_deplibs=yes 9120 allow_undefined_flag="$_lt_dar_allow_undefined" 9121 case $cc_basename in 9122 ifort*) _lt_dar_can_shared=yes ;; 9123 *) _lt_dar_can_shared=$GCC ;; 9124 esac 9125 if test "$_lt_dar_can_shared" = "yes"; then 9126 output_verbose_link_cmd=echo 9127 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9128 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9129 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}" 9130 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}" 9131 9132 else 9133 ld_shlibs=no 9134 fi 9135 9136 ;; 9137 9138 dgux*) 9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9140 hardcode_libdir_flag_spec='-L$libdir' 9141 hardcode_shlibpath_var=no 9142 ;; 9143 9144 freebsd1*) 9145 ld_shlibs=no 9146 ;; 9147 9148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9149 # support. Future versions do this automatically, but an explicit c++rt0.o 9150 # does not break anything, and helps significantly (at the cost of a little 9151 # extra space). 9152 freebsd2.2*) 9153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9154 hardcode_libdir_flag_spec='-R$libdir' 9155 hardcode_direct=yes 9156 hardcode_shlibpath_var=no 9157 ;; 9158 9159 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9160 freebsd2*) 9161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9162 hardcode_direct=yes 9163 hardcode_minus_L=yes 9164 hardcode_shlibpath_var=no 9165 ;; 9166 9167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9168 freebsd* | dragonfly*) 9169 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9170 hardcode_libdir_flag_spec='-R$libdir' 9171 hardcode_direct=yes 9172 hardcode_shlibpath_var=no 9173 ;; 9174 9175 hpux9*) 9176 if test "$GCC" = yes; then 9177 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' 9178 else 9179 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' 9180 fi 9181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9182 hardcode_libdir_separator=: 9183 hardcode_direct=yes 9184 9185 # hardcode_minus_L: Not really in the search PATH, 9186 # but as the default location of the library. 9187 hardcode_minus_L=yes 9188 export_dynamic_flag_spec='${wl}-E' 9189 ;; 9190 9191 hpux10*) 9192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9193 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9194 else 9195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9196 fi 9197 if test "$with_gnu_ld" = no; then 9198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9199 hardcode_libdir_flag_spec_ld='+b $libdir' 9200 hardcode_libdir_separator=: 9201 hardcode_direct=yes 9202 hardcode_direct_absolute=yes 9203 export_dynamic_flag_spec='${wl}-E' 9204 # hardcode_minus_L: Not really in the search PATH, 9205 # but as the default location of the library. 9206 hardcode_minus_L=yes 9207 fi 9208 ;; 9209 9210 hpux11*) 9211 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9212 case $host_cpu in 9213 hppa*64*) 9214 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9215 ;; 9216 ia64*) 9217 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9218 ;; 9219 *) 9220 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9221 ;; 9222 esac 9223 else 9224 case $host_cpu in 9225 hppa*64*) 9226 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9227 ;; 9228 ia64*) 9229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9230 ;; 9231 *) 9232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9233 ;; 9234 esac 9235 fi 9236 if test "$with_gnu_ld" = no; then 9237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9238 hardcode_libdir_separator=: 9239 9240 case $host_cpu in 9241 hppa*64*|ia64*) 9242 hardcode_direct=no 9243 hardcode_shlibpath_var=no 9244 ;; 9245 *) 9246 hardcode_direct=yes 9247 hardcode_direct_absolute=yes 9248 export_dynamic_flag_spec='${wl}-E' 9249 9250 # hardcode_minus_L: Not really in the search PATH, 9251 # but as the default location of the library. 9252 hardcode_minus_L=yes 9253 ;; 9254 esac 9255 fi 9256 ;; 9257 9258 irix5* | irix6* | nonstopux*) 9259 if test "$GCC" = yes; then 9260 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' 9261 # Try to use the -exported_symbol ld option, if it does not 9262 # work, assume that -exports_file does not work either and 9263 # implicitly export all symbols. 9264 save_LDFLAGS="$LDFLAGS" 9265 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9266 cat >conftest.$ac_ext <<_ACEOF 9267int foo(void) {} 9268_ACEOF 9269rm -f conftest.$ac_objext conftest$ac_exeext 9270if { (ac_try="$ac_link" 9271case "(($ac_try" in 9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9273 *) ac_try_echo=$ac_try;; 9274esac 9275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9276$as_echo "$ac_try_echo") >&5 9277 (eval "$ac_link") 2>conftest.er1 9278 ac_status=$? 9279 grep -v '^ *+' conftest.er1 >conftest.err 9280 rm -f conftest.er1 9281 cat conftest.err >&5 9282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9283 (exit $ac_status); } && { 9284 test -z "$ac_c_werror_flag" || 9285 test ! -s conftest.err 9286 } && test -s conftest$ac_exeext && { 9287 test "$cross_compiling" = yes || 9288 $as_test_x conftest$ac_exeext 9289 }; then 9290 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' 9291 9292else 9293 $as_echo "$as_me: failed program was:" >&5 9294sed 's/^/| /' conftest.$ac_ext >&5 9295 9296 9297fi 9298 9299rm -rf conftest.dSYM 9300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9301 conftest$ac_exeext conftest.$ac_ext 9302 LDFLAGS="$save_LDFLAGS" 9303 else 9304 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' 9305 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' 9306 fi 9307 archive_cmds_need_lc='no' 9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9309 hardcode_libdir_separator=: 9310 inherit_rpath=yes 9311 link_all_deplibs=yes 9312 ;; 9313 9314 netbsd*) 9315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9317 else 9318 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9319 fi 9320 hardcode_libdir_flag_spec='-R$libdir' 9321 hardcode_direct=yes 9322 hardcode_shlibpath_var=no 9323 ;; 9324 9325 newsos6) 9326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9327 hardcode_direct=yes 9328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9329 hardcode_libdir_separator=: 9330 hardcode_shlibpath_var=no 9331 ;; 9332 9333 *nto* | *qnx*) 9334 ;; 9335 9336 openbsd*) 9337 if test -f /usr/libexec/ld.so; then 9338 hardcode_direct=yes 9339 hardcode_shlibpath_var=no 9340 hardcode_direct_absolute=yes 9341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9343 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9345 export_dynamic_flag_spec='${wl}-E' 9346 else 9347 case $host_os in 9348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9350 hardcode_libdir_flag_spec='-R$libdir' 9351 ;; 9352 *) 9353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9355 ;; 9356 esac 9357 fi 9358 else 9359 ld_shlibs=no 9360 fi 9361 ;; 9362 9363 os2*) 9364 hardcode_libdir_flag_spec='-L$libdir' 9365 hardcode_minus_L=yes 9366 allow_undefined_flag=unsupported 9367 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' 9368 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9369 ;; 9370 9371 osf3*) 9372 if test "$GCC" = yes; then 9373 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9374 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' 9375 else 9376 allow_undefined_flag=' -expect_unresolved \*' 9377 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' 9378 fi 9379 archive_cmds_need_lc='no' 9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9381 hardcode_libdir_separator=: 9382 ;; 9383 9384 osf4* | osf5*) # as osf3* with the addition of -msym flag 9385 if test "$GCC" = yes; then 9386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9387 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' 9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9389 else 9390 allow_undefined_flag=' -expect_unresolved \*' 9391 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' 9392 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~ 9393 $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' 9394 9395 # Both c and cxx compiler support -rpath directly 9396 hardcode_libdir_flag_spec='-rpath $libdir' 9397 fi 9398 archive_cmds_need_lc='no' 9399 hardcode_libdir_separator=: 9400 ;; 9401 9402 solaris*) 9403 no_undefined_flag=' -z defs' 9404 if test "$GCC" = yes; then 9405 wlarc='${wl}' 9406 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9408 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9409 else 9410 case `$CC -V 2>&1` in 9411 *"Compilers 5.0"*) 9412 wlarc='' 9413 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9416 ;; 9417 *) 9418 wlarc='${wl}' 9419 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9421 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9422 ;; 9423 esac 9424 fi 9425 hardcode_libdir_flag_spec='-R$libdir' 9426 hardcode_shlibpath_var=no 9427 case $host_os in 9428 solaris2.[0-5] | solaris2.[0-5].*) ;; 9429 *) 9430 # The compiler driver will combine and reorder linker options, 9431 # but understands `-z linker_flag'. GCC discards it without `$wl', 9432 # but is careful enough not to reorder. 9433 # Supported since Solaris 2.6 (maybe 2.5.1?) 9434 if test "$GCC" = yes; then 9435 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9436 else 9437 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9438 fi 9439 ;; 9440 esac 9441 link_all_deplibs=yes 9442 ;; 9443 9444 sunos4*) 9445 if test "x$host_vendor" = xsequent; then 9446 # Use $CC to link under sequent, because it throws in some extra .o 9447 # files that make .init and .fini sections work. 9448 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9449 else 9450 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9451 fi 9452 hardcode_libdir_flag_spec='-L$libdir' 9453 hardcode_direct=yes 9454 hardcode_minus_L=yes 9455 hardcode_shlibpath_var=no 9456 ;; 9457 9458 sysv4) 9459 case $host_vendor in 9460 sni) 9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9462 hardcode_direct=yes # is this really true??? 9463 ;; 9464 siemens) 9465 ## LD is ld it makes a PLAMLIB 9466 ## CC just makes a GrossModule. 9467 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9468 reload_cmds='$CC -r -o $output$reload_objs' 9469 hardcode_direct=no 9470 ;; 9471 motorola) 9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9473 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9474 ;; 9475 esac 9476 runpath_var='LD_RUN_PATH' 9477 hardcode_shlibpath_var=no 9478 ;; 9479 9480 sysv4.3*) 9481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9482 hardcode_shlibpath_var=no 9483 export_dynamic_flag_spec='-Bexport' 9484 ;; 9485 9486 sysv4*MP*) 9487 if test -d /usr/nec; then 9488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9489 hardcode_shlibpath_var=no 9490 runpath_var=LD_RUN_PATH 9491 hardcode_runpath_var=yes 9492 ld_shlibs=yes 9493 fi 9494 ;; 9495 9496 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9497 no_undefined_flag='${wl}-z,text' 9498 archive_cmds_need_lc=no 9499 hardcode_shlibpath_var=no 9500 runpath_var='LD_RUN_PATH' 9501 9502 if test "$GCC" = yes; then 9503 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9504 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9505 else 9506 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9507 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9508 fi 9509 ;; 9510 9511 sysv5* | sco3.2v5* | sco5v6*) 9512 # Note: We can NOT use -z defs as we might desire, because we do not 9513 # link with -lc, and that would cause any symbols used from libc to 9514 # always be unresolved, which means just about no library would 9515 # ever link correctly. If we're not using GNU ld we use -z text 9516 # though, which does catch some bad symbols but isn't as heavy-handed 9517 # as -z defs. 9518 no_undefined_flag='${wl}-z,text' 9519 allow_undefined_flag='${wl}-z,nodefs' 9520 archive_cmds_need_lc=no 9521 hardcode_shlibpath_var=no 9522 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9523 hardcode_libdir_separator=':' 9524 link_all_deplibs=yes 9525 export_dynamic_flag_spec='${wl}-Bexport' 9526 runpath_var='LD_RUN_PATH' 9527 9528 if test "$GCC" = yes; then 9529 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9530 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9531 else 9532 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9533 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9534 fi 9535 ;; 9536 9537 uts4*) 9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9539 hardcode_libdir_flag_spec='-L$libdir' 9540 hardcode_shlibpath_var=no 9541 ;; 9542 9543 *) 9544 ld_shlibs=no 9545 ;; 9546 esac 9547 9548 if test x$host_vendor = xsni; then 9549 case $host in 9550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9551 export_dynamic_flag_spec='${wl}-Blargedynsym' 9552 ;; 9553 esac 9554 fi 9555 fi 9556 9557{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9558$as_echo "$ld_shlibs" >&6; } 9559test "$ld_shlibs" = no && can_build_shared=no 9560 9561with_gnu_ld=$with_gnu_ld 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577# 9578# Do we need to explicitly link libc? 9579# 9580case "x$archive_cmds_need_lc" in 9581x|xyes) 9582 # Assume -lc should be added 9583 archive_cmds_need_lc=yes 9584 9585 if test "$enable_shared" = yes && test "$GCC" = yes; then 9586 case $archive_cmds in 9587 *'~'*) 9588 # FIXME: we may have to deal with multi-command sequences. 9589 ;; 9590 '$CC '*) 9591 # Test whether the compiler implicitly links with -lc since on some 9592 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9593 # to ld, don't add -lc before -lgcc. 9594 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9595$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9596 $RM conftest* 9597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9598 9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9600 (eval $ac_compile) 2>&5 9601 ac_status=$? 9602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9603 (exit $ac_status); } 2>conftest.err; then 9604 soname=conftest 9605 lib=conftest 9606 libobjs=conftest.$ac_objext 9607 deplibs= 9608 wl=$lt_prog_compiler_wl 9609 pic_flag=$lt_prog_compiler_pic 9610 compiler_flags=-v 9611 linker_flags=-v 9612 verstring= 9613 output_objdir=. 9614 libname=conftest 9615 lt_save_allow_undefined_flag=$allow_undefined_flag 9616 allow_undefined_flag= 9617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9618 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9619 ac_status=$? 9620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9621 (exit $ac_status); } 9622 then 9623 archive_cmds_need_lc=no 9624 else 9625 archive_cmds_need_lc=yes 9626 fi 9627 allow_undefined_flag=$lt_save_allow_undefined_flag 9628 else 9629 cat conftest.err 1>&5 9630 fi 9631 $RM conftest* 9632 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9633$as_echo "$archive_cmds_need_lc" >&6; } 9634 ;; 9635 esac 9636 fi 9637 ;; 9638esac 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9797$as_echo_n "checking dynamic linker characteristics... " >&6; } 9798 9799if test "$GCC" = yes; then 9800 case $host_os in 9801 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9802 *) lt_awk_arg="/^libraries:/" ;; 9803 esac 9804 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9805 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9806 # if the path contains ";" then we assume it to be the separator 9807 # otherwise default to the standard path separator (i.e. ":") - it is 9808 # assumed that no part of a normal pathname contains ";" but that should 9809 # okay in the real world where ";" in dirpaths is itself problematic. 9810 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9811 else 9812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9813 fi 9814 # Ok, now we have the path, separated by spaces, we can step through it 9815 # and add multilib dir if necessary. 9816 lt_tmp_lt_search_path_spec= 9817 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9818 for lt_sys_path in $lt_search_path_spec; do 9819 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9821 else 9822 test -d "$lt_sys_path" && \ 9823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9824 fi 9825 done 9826 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9827BEGIN {RS=" "; FS="/|\n";} { 9828 lt_foo=""; 9829 lt_count=0; 9830 for (lt_i = NF; lt_i > 0; lt_i--) { 9831 if ($lt_i != "" && $lt_i != ".") { 9832 if ($lt_i == "..") { 9833 lt_count++; 9834 } else { 9835 if (lt_count == 0) { 9836 lt_foo="/" $lt_i lt_foo; 9837 } else { 9838 lt_count--; 9839 } 9840 } 9841 } 9842 } 9843 if (lt_foo != "") { lt_freq[lt_foo]++; } 9844 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9845}'` 9846 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9847else 9848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9849fi 9850library_names_spec= 9851libname_spec='lib$name' 9852soname_spec= 9853shrext_cmds=".so" 9854postinstall_cmds= 9855postuninstall_cmds= 9856finish_cmds= 9857finish_eval= 9858shlibpath_var= 9859shlibpath_overrides_runpath=unknown 9860version_type=none 9861dynamic_linker="$host_os ld.so" 9862sys_lib_dlsearch_path_spec="/lib /usr/lib" 9863need_lib_prefix=unknown 9864hardcode_into_libs=no 9865 9866# when you set need_version to no, make sure it does not cause -set_version 9867# flags to be left without arguments 9868need_version=unknown 9869 9870case $host_os in 9871aix3*) 9872 version_type=linux 9873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9874 shlibpath_var=LIBPATH 9875 9876 # AIX 3 has no versioning support, so we append a major version to the name. 9877 soname_spec='${libname}${release}${shared_ext}$major' 9878 ;; 9879 9880aix[4-9]*) 9881 version_type=linux 9882 need_lib_prefix=no 9883 need_version=no 9884 hardcode_into_libs=yes 9885 if test "$host_cpu" = ia64; then 9886 # AIX 5 supports IA64 9887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9888 shlibpath_var=LD_LIBRARY_PATH 9889 else 9890 # With GCC up to 2.95.x, collect2 would create an import file 9891 # for dependence libraries. The import file would start with 9892 # the line `#! .'. This would cause the generated library to 9893 # depend on `.', always an invalid library. This was fixed in 9894 # development snapshots of GCC prior to 3.0. 9895 case $host_os in 9896 aix4 | aix4.[01] | aix4.[01].*) 9897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9898 echo ' yes ' 9899 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9900 : 9901 else 9902 can_build_shared=no 9903 fi 9904 ;; 9905 esac 9906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9907 # soname into executable. Probably we can add versioning support to 9908 # collect2, so additional links can be useful in future. 9909 if test "$aix_use_runtimelinking" = yes; then 9910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9911 # instead of lib<name>.a to let people know that these are not 9912 # typical AIX shared libraries. 9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9914 else 9915 # We preserve .a as extension for shared libraries through AIX4.2 9916 # and later when we are not doing run time linking. 9917 library_names_spec='${libname}${release}.a $libname.a' 9918 soname_spec='${libname}${release}${shared_ext}$major' 9919 fi 9920 shlibpath_var=LIBPATH 9921 fi 9922 ;; 9923 9924amigaos*) 9925 case $host_cpu in 9926 powerpc) 9927 # Since July 2007 AmigaOS4 officially supports .so libraries. 9928 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9930 ;; 9931 m68k) 9932 library_names_spec='$libname.ixlibrary $libname.a' 9933 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9934 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' 9935 ;; 9936 esac 9937 ;; 9938 9939beos*) 9940 library_names_spec='${libname}${shared_ext}' 9941 dynamic_linker="$host_os ld.so" 9942 shlibpath_var=LIBRARY_PATH 9943 ;; 9944 9945bsdi[45]*) 9946 version_type=linux 9947 need_version=no 9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9949 soname_spec='${libname}${release}${shared_ext}$major' 9950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9951 shlibpath_var=LD_LIBRARY_PATH 9952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9954 # the default ld.so.conf also contains /usr/contrib/lib and 9955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9956 # libtool to hard-code these into programs 9957 ;; 9958 9959cygwin* | mingw* | pw32* | cegcc*) 9960 version_type=windows 9961 shrext_cmds=".dll" 9962 need_version=no 9963 need_lib_prefix=no 9964 9965 case $GCC,$host_os in 9966 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9967 library_names_spec='$libname.dll.a' 9968 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9969 postinstall_cmds='base_file=`basename \${file}`~ 9970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9971 dldir=$destdir/`dirname \$dlpath`~ 9972 test -d \$dldir || mkdir -p \$dldir~ 9973 $install_prog $dir/$dlname \$dldir/$dlname~ 9974 chmod a+x \$dldir/$dlname~ 9975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9977 fi' 9978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9979 dlpath=$dir/\$dldll~ 9980 $RM \$dlpath' 9981 shlibpath_overrides_runpath=yes 9982 9983 case $host_os in 9984 cygwin*) 9985 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9988 ;; 9989 mingw* | cegcc*) 9990 # MinGW DLLs use traditional 'lib' prefix 9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9992 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9994 # It is most probably a Windows format PATH printed by 9995 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9996 # path with ; separators, and with drive letters. We can handle the 9997 # drive letters (cygwin fileutils understands them), so leave them, 9998 # especially as we might pass files found there to a mingw objdump, 9999 # which wouldn't understand a cygwinified path. Ahh. 10000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10001 else 10002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10003 fi 10004 ;; 10005 pw32*) 10006 # pw32 DLLs use 'pw' prefix rather than 'lib' 10007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10008 ;; 10009 esac 10010 ;; 10011 10012 *) 10013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10014 ;; 10015 esac 10016 dynamic_linker='Win32 ld.exe' 10017 # FIXME: first we should search . and the directory the executable is in 10018 shlibpath_var=PATH 10019 ;; 10020 10021darwin* | rhapsody*) 10022 dynamic_linker="$host_os dyld" 10023 version_type=darwin 10024 need_lib_prefix=no 10025 need_version=no 10026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10027 soname_spec='${libname}${release}${major}$shared_ext' 10028 shlibpath_overrides_runpath=yes 10029 shlibpath_var=DYLD_LIBRARY_PATH 10030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10031 10032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10034 ;; 10035 10036dgux*) 10037 version_type=linux 10038 need_lib_prefix=no 10039 need_version=no 10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10041 soname_spec='${libname}${release}${shared_ext}$major' 10042 shlibpath_var=LD_LIBRARY_PATH 10043 ;; 10044 10045freebsd1*) 10046 dynamic_linker=no 10047 ;; 10048 10049freebsd* | dragonfly*) 10050 # DragonFly does not have aout. When/if they implement a new 10051 # versioning mechanism, adjust this. 10052 if test -x /usr/bin/objformat; then 10053 objformat=`/usr/bin/objformat` 10054 else 10055 case $host_os in 10056 freebsd[123]*) objformat=aout ;; 10057 *) objformat=elf ;; 10058 esac 10059 fi 10060 version_type=freebsd-$objformat 10061 case $version_type in 10062 freebsd-elf*) 10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10064 need_version=no 10065 need_lib_prefix=no 10066 ;; 10067 freebsd-*) 10068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10069 need_version=yes 10070 ;; 10071 esac 10072 shlibpath_var=LD_LIBRARY_PATH 10073 case $host_os in 10074 freebsd2*) 10075 shlibpath_overrides_runpath=yes 10076 ;; 10077 freebsd3.[01]* | freebsdelf3.[01]*) 10078 shlibpath_overrides_runpath=yes 10079 hardcode_into_libs=yes 10080 ;; 10081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10083 shlibpath_overrides_runpath=no 10084 hardcode_into_libs=yes 10085 ;; 10086 *) # from 4.6 on, and DragonFly 10087 shlibpath_overrides_runpath=yes 10088 hardcode_into_libs=yes 10089 ;; 10090 esac 10091 ;; 10092 10093gnu*) 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 hardcode_into_libs=yes 10101 ;; 10102 10103hpux9* | hpux10* | hpux11*) 10104 # Give a soname corresponding to the major version so that dld.sl refuses to 10105 # link against other versions. 10106 version_type=sunos 10107 need_lib_prefix=no 10108 need_version=no 10109 case $host_cpu in 10110 ia64*) 10111 shrext_cmds='.so' 10112 hardcode_into_libs=yes 10113 dynamic_linker="$host_os dld.so" 10114 shlibpath_var=LD_LIBRARY_PATH 10115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10117 soname_spec='${libname}${release}${shared_ext}$major' 10118 if test "X$HPUX_IA64_MODE" = X32; then 10119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10120 else 10121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10122 fi 10123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10124 ;; 10125 hppa*64*) 10126 shrext_cmds='.sl' 10127 hardcode_into_libs=yes 10128 dynamic_linker="$host_os dld.sl" 10129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10132 soname_spec='${libname}${release}${shared_ext}$major' 10133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10135 ;; 10136 *) 10137 shrext_cmds='.sl' 10138 dynamic_linker="$host_os dld.sl" 10139 shlibpath_var=SHLIB_PATH 10140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10142 soname_spec='${libname}${release}${shared_ext}$major' 10143 ;; 10144 esac 10145 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10146 postinstall_cmds='chmod 555 $lib' 10147 ;; 10148 10149interix[3-9]*) 10150 version_type=linux 10151 need_lib_prefix=no 10152 need_version=no 10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10154 soname_spec='${libname}${release}${shared_ext}$major' 10155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10156 shlibpath_var=LD_LIBRARY_PATH 10157 shlibpath_overrides_runpath=no 10158 hardcode_into_libs=yes 10159 ;; 10160 10161irix5* | irix6* | nonstopux*) 10162 case $host_os in 10163 nonstopux*) version_type=nonstopux ;; 10164 *) 10165 if test "$lt_cv_prog_gnu_ld" = yes; then 10166 version_type=linux 10167 else 10168 version_type=irix 10169 fi ;; 10170 esac 10171 need_lib_prefix=no 10172 need_version=no 10173 soname_spec='${libname}${release}${shared_ext}$major' 10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10175 case $host_os in 10176 irix5* | nonstopux*) 10177 libsuff= shlibsuff= 10178 ;; 10179 *) 10180 case $LD in # libtool.m4 will add one of these switches to LD 10181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10182 libsuff= shlibsuff= libmagic=32-bit;; 10183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10184 libsuff=32 shlibsuff=N32 libmagic=N32;; 10185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10186 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10187 *) libsuff= shlibsuff= libmagic=never-match;; 10188 esac 10189 ;; 10190 esac 10191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10192 shlibpath_overrides_runpath=no 10193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10195 hardcode_into_libs=yes 10196 ;; 10197 10198# No shared lib support for Linux oldld, aout, or coff. 10199linux*oldld* | linux*aout* | linux*coff*) 10200 dynamic_linker=no 10201 ;; 10202 10203# This must be Linux ELF. 10204linux* | k*bsd*-gnu) 10205 version_type=linux 10206 need_lib_prefix=no 10207 need_version=no 10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10209 soname_spec='${libname}${release}${shared_ext}$major' 10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10211 shlibpath_var=LD_LIBRARY_PATH 10212 shlibpath_overrides_runpath=no 10213 # Some binutils ld are patched to set DT_RUNPATH 10214 save_LDFLAGS=$LDFLAGS 10215 save_libdir=$libdir 10216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10218 cat >conftest.$ac_ext <<_ACEOF 10219/* confdefs.h. */ 10220_ACEOF 10221cat confdefs.h >>conftest.$ac_ext 10222cat >>conftest.$ac_ext <<_ACEOF 10223/* end confdefs.h. */ 10224 10225int 10226main () 10227{ 10228 10229 ; 10230 return 0; 10231} 10232_ACEOF 10233rm -f conftest.$ac_objext conftest$ac_exeext 10234if { (ac_try="$ac_link" 10235case "(($ac_try" in 10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10237 *) ac_try_echo=$ac_try;; 10238esac 10239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10240$as_echo "$ac_try_echo") >&5 10241 (eval "$ac_link") 2>conftest.er1 10242 ac_status=$? 10243 grep -v '^ *+' conftest.er1 >conftest.err 10244 rm -f conftest.er1 10245 cat conftest.err >&5 10246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10247 (exit $ac_status); } && { 10248 test -z "$ac_c_werror_flag" || 10249 test ! -s conftest.err 10250 } && test -s conftest$ac_exeext && { 10251 test "$cross_compiling" = yes || 10252 $as_test_x conftest$ac_exeext 10253 }; then 10254 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10255 shlibpath_overrides_runpath=yes 10256fi 10257 10258else 10259 $as_echo "$as_me: failed program was:" >&5 10260sed 's/^/| /' conftest.$ac_ext >&5 10261 10262 10263fi 10264 10265rm -rf conftest.dSYM 10266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10267 conftest$ac_exeext conftest.$ac_ext 10268 LDFLAGS=$save_LDFLAGS 10269 libdir=$save_libdir 10270 10271 # This implies no fast_install, which is unacceptable. 10272 # Some rework will be needed to allow for fast_install 10273 # before this can be enabled. 10274 hardcode_into_libs=yes 10275 10276 # Add ABI-specific directories to the system library path. 10277 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10278 10279 # Append ld.so.conf contents to the search path 10280 if test -f /etc/ld.so.conf; then 10281 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' ' '` 10282 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10283 fi 10284 10285 # We used to test for /lib/ld.so.1 and disable shared libraries on 10286 # powerpc, because MkLinux only supported shared libraries with the 10287 # GNU dynamic linker. Since this was broken with cross compilers, 10288 # most powerpc-linux boxes support dynamic linking these days and 10289 # people can always --disable-shared, the test was removed, and we 10290 # assume the GNU/Linux dynamic linker is in use. 10291 dynamic_linker='GNU/Linux ld.so' 10292 ;; 10293 10294netbsd*) 10295 version_type=sunos 10296 need_lib_prefix=no 10297 need_version=no 10298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10301 dynamic_linker='NetBSD (a.out) ld.so' 10302 else 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10304 soname_spec='${libname}${release}${shared_ext}$major' 10305 dynamic_linker='NetBSD ld.elf_so' 10306 fi 10307 shlibpath_var=LD_LIBRARY_PATH 10308 shlibpath_overrides_runpath=yes 10309 hardcode_into_libs=yes 10310 ;; 10311 10312newsos6) 10313 version_type=linux 10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10315 shlibpath_var=LD_LIBRARY_PATH 10316 shlibpath_overrides_runpath=yes 10317 ;; 10318 10319*nto* | *qnx*) 10320 version_type=qnx 10321 need_lib_prefix=no 10322 need_version=no 10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10324 soname_spec='${libname}${release}${shared_ext}$major' 10325 shlibpath_var=LD_LIBRARY_PATH 10326 shlibpath_overrides_runpath=no 10327 hardcode_into_libs=yes 10328 dynamic_linker='ldqnx.so' 10329 ;; 10330 10331openbsd*) 10332 version_type=sunos 10333 sys_lib_dlsearch_path_spec="/usr/lib" 10334 need_lib_prefix=no 10335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10336 case $host_os in 10337 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10338 *) need_version=no ;; 10339 esac 10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10342 shlibpath_var=LD_LIBRARY_PATH 10343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10344 case $host_os in 10345 openbsd2.[89] | openbsd2.[89].*) 10346 shlibpath_overrides_runpath=no 10347 ;; 10348 *) 10349 shlibpath_overrides_runpath=yes 10350 ;; 10351 esac 10352 else 10353 shlibpath_overrides_runpath=yes 10354 fi 10355 ;; 10356 10357os2*) 10358 libname_spec='$name' 10359 shrext_cmds=".dll" 10360 need_lib_prefix=no 10361 library_names_spec='$libname${shared_ext} $libname.a' 10362 dynamic_linker='OS/2 ld.exe' 10363 shlibpath_var=LIBPATH 10364 ;; 10365 10366osf3* | osf4* | osf5*) 10367 version_type=osf 10368 need_lib_prefix=no 10369 need_version=no 10370 soname_spec='${libname}${release}${shared_ext}$major' 10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10372 shlibpath_var=LD_LIBRARY_PATH 10373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10375 ;; 10376 10377rdos*) 10378 dynamic_linker=no 10379 ;; 10380 10381solaris*) 10382 version_type=linux 10383 need_lib_prefix=no 10384 need_version=no 10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10386 soname_spec='${libname}${release}${shared_ext}$major' 10387 shlibpath_var=LD_LIBRARY_PATH 10388 shlibpath_overrides_runpath=yes 10389 hardcode_into_libs=yes 10390 # ldd complains unless libraries are executable 10391 postinstall_cmds='chmod +x $lib' 10392 ;; 10393 10394sunos4*) 10395 version_type=sunos 10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10398 shlibpath_var=LD_LIBRARY_PATH 10399 shlibpath_overrides_runpath=yes 10400 if test "$with_gnu_ld" = yes; then 10401 need_lib_prefix=no 10402 fi 10403 need_version=yes 10404 ;; 10405 10406sysv4 | sysv4.3*) 10407 version_type=linux 10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10409 soname_spec='${libname}${release}${shared_ext}$major' 10410 shlibpath_var=LD_LIBRARY_PATH 10411 case $host_vendor in 10412 sni) 10413 shlibpath_overrides_runpath=no 10414 need_lib_prefix=no 10415 runpath_var=LD_RUN_PATH 10416 ;; 10417 siemens) 10418 need_lib_prefix=no 10419 ;; 10420 motorola) 10421 need_lib_prefix=no 10422 need_version=no 10423 shlibpath_overrides_runpath=no 10424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10425 ;; 10426 esac 10427 ;; 10428 10429sysv4*MP*) 10430 if test -d /usr/nec ;then 10431 version_type=linux 10432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10433 soname_spec='$libname${shared_ext}.$major' 10434 shlibpath_var=LD_LIBRARY_PATH 10435 fi 10436 ;; 10437 10438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10439 version_type=freebsd-elf 10440 need_lib_prefix=no 10441 need_version=no 10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10443 soname_spec='${libname}${release}${shared_ext}$major' 10444 shlibpath_var=LD_LIBRARY_PATH 10445 shlibpath_overrides_runpath=yes 10446 hardcode_into_libs=yes 10447 if test "$with_gnu_ld" = yes; then 10448 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10449 else 10450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10451 case $host_os in 10452 sco3.2v5*) 10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10454 ;; 10455 esac 10456 fi 10457 sys_lib_dlsearch_path_spec='/usr/lib' 10458 ;; 10459 10460tpf*) 10461 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10462 version_type=linux 10463 need_lib_prefix=no 10464 need_version=no 10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10466 shlibpath_var=LD_LIBRARY_PATH 10467 shlibpath_overrides_runpath=no 10468 hardcode_into_libs=yes 10469 ;; 10470 10471uts4*) 10472 version_type=linux 10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10474 soname_spec='${libname}${release}${shared_ext}$major' 10475 shlibpath_var=LD_LIBRARY_PATH 10476 ;; 10477 10478*) 10479 dynamic_linker=no 10480 ;; 10481esac 10482{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10483$as_echo "$dynamic_linker" >&6; } 10484test "$dynamic_linker" = no && can_build_shared=no 10485 10486variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10487if test "$GCC" = yes; then 10488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10489fi 10490 10491if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10492 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10493fi 10494if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10496fi 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10585$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10586hardcode_action= 10587if test -n "$hardcode_libdir_flag_spec" || 10588 test -n "$runpath_var" || 10589 test "X$hardcode_automatic" = "Xyes" ; then 10590 10591 # We can hardcode non-existent directories. 10592 if test "$hardcode_direct" != no && 10593 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10594 # have to relink, otherwise we might link with an installed library 10595 # when we should be linking with a yet-to-be-installed one 10596 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10597 test "$hardcode_minus_L" != no; then 10598 # Linking always hardcodes the temporary library directory. 10599 hardcode_action=relink 10600 else 10601 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10602 hardcode_action=immediate 10603 fi 10604else 10605 # We cannot hardcode anything, or else we can only hardcode existing 10606 # directories. 10607 hardcode_action=unsupported 10608fi 10609{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10610$as_echo "$hardcode_action" >&6; } 10611 10612if test "$hardcode_action" = relink || 10613 test "$inherit_rpath" = yes; then 10614 # Fast installation is not supported 10615 enable_fast_install=no 10616elif test "$shlibpath_overrides_runpath" = yes || 10617 test "$enable_shared" = no; then 10618 # Fast installation is not necessary 10619 enable_fast_install=needless 10620fi 10621 10622 10623 10624 10625 10626 10627 if test "x$enable_dlopen" != xyes; then 10628 enable_dlopen=unknown 10629 enable_dlopen_self=unknown 10630 enable_dlopen_self_static=unknown 10631else 10632 lt_cv_dlopen=no 10633 lt_cv_dlopen_libs= 10634 10635 case $host_os in 10636 beos*) 10637 lt_cv_dlopen="load_add_on" 10638 lt_cv_dlopen_libs= 10639 lt_cv_dlopen_self=yes 10640 ;; 10641 10642 mingw* | pw32* | cegcc*) 10643 lt_cv_dlopen="LoadLibrary" 10644 lt_cv_dlopen_libs= 10645 ;; 10646 10647 cygwin*) 10648 lt_cv_dlopen="dlopen" 10649 lt_cv_dlopen_libs= 10650 ;; 10651 10652 darwin*) 10653 # if libdl is installed we need to link against it 10654 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10655$as_echo_n "checking for dlopen in -ldl... " >&6; } 10656if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10657 $as_echo_n "(cached) " >&6 10658else 10659 ac_check_lib_save_LIBS=$LIBS 10660LIBS="-ldl $LIBS" 10661cat >conftest.$ac_ext <<_ACEOF 10662/* confdefs.h. */ 10663_ACEOF 10664cat confdefs.h >>conftest.$ac_ext 10665cat >>conftest.$ac_ext <<_ACEOF 10666/* end confdefs.h. */ 10667 10668/* Override any GCC internal prototype to avoid an error. 10669 Use char because int might match the return type of a GCC 10670 builtin and then its argument prototype would still apply. */ 10671#ifdef __cplusplus 10672extern "C" 10673#endif 10674char dlopen (); 10675int 10676main () 10677{ 10678return dlopen (); 10679 ; 10680 return 0; 10681} 10682_ACEOF 10683rm -f conftest.$ac_objext conftest$ac_exeext 10684if { (ac_try="$ac_link" 10685case "(($ac_try" in 10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10687 *) ac_try_echo=$ac_try;; 10688esac 10689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10690$as_echo "$ac_try_echo") >&5 10691 (eval "$ac_link") 2>conftest.er1 10692 ac_status=$? 10693 grep -v '^ *+' conftest.er1 >conftest.err 10694 rm -f conftest.er1 10695 cat conftest.err >&5 10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10697 (exit $ac_status); } && { 10698 test -z "$ac_c_werror_flag" || 10699 test ! -s conftest.err 10700 } && test -s conftest$ac_exeext && { 10701 test "$cross_compiling" = yes || 10702 $as_test_x conftest$ac_exeext 10703 }; then 10704 ac_cv_lib_dl_dlopen=yes 10705else 10706 $as_echo "$as_me: failed program was:" >&5 10707sed 's/^/| /' conftest.$ac_ext >&5 10708 10709 ac_cv_lib_dl_dlopen=no 10710fi 10711 10712rm -rf conftest.dSYM 10713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10714 conftest$ac_exeext conftest.$ac_ext 10715LIBS=$ac_check_lib_save_LIBS 10716fi 10717{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10718$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10719if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10721else 10722 10723 lt_cv_dlopen="dyld" 10724 lt_cv_dlopen_libs= 10725 lt_cv_dlopen_self=yes 10726 10727fi 10728 10729 ;; 10730 10731 *) 10732 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10733$as_echo_n "checking for shl_load... " >&6; } 10734if test "${ac_cv_func_shl_load+set}" = set; then 10735 $as_echo_n "(cached) " >&6 10736else 10737 cat >conftest.$ac_ext <<_ACEOF 10738/* confdefs.h. */ 10739_ACEOF 10740cat confdefs.h >>conftest.$ac_ext 10741cat >>conftest.$ac_ext <<_ACEOF 10742/* end confdefs.h. */ 10743/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10745#define shl_load innocuous_shl_load 10746 10747/* System header to define __stub macros and hopefully few prototypes, 10748 which can conflict with char shl_load (); below. 10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10750 <limits.h> exists even on freestanding compilers. */ 10751 10752#ifdef __STDC__ 10753# include <limits.h> 10754#else 10755# include <assert.h> 10756#endif 10757 10758#undef shl_load 10759 10760/* Override any GCC internal prototype to avoid an error. 10761 Use char because int might match the return type of a GCC 10762 builtin and then its argument prototype would still apply. */ 10763#ifdef __cplusplus 10764extern "C" 10765#endif 10766char shl_load (); 10767/* The GNU C library defines this for functions which it implements 10768 to always fail with ENOSYS. Some functions are actually named 10769 something starting with __ and the normal name is an alias. */ 10770#if defined __stub_shl_load || defined __stub___shl_load 10771choke me 10772#endif 10773 10774int 10775main () 10776{ 10777return shl_load (); 10778 ; 10779 return 0; 10780} 10781_ACEOF 10782rm -f conftest.$ac_objext conftest$ac_exeext 10783if { (ac_try="$ac_link" 10784case "(($ac_try" in 10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10786 *) ac_try_echo=$ac_try;; 10787esac 10788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10789$as_echo "$ac_try_echo") >&5 10790 (eval "$ac_link") 2>conftest.er1 10791 ac_status=$? 10792 grep -v '^ *+' conftest.er1 >conftest.err 10793 rm -f conftest.er1 10794 cat conftest.err >&5 10795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10796 (exit $ac_status); } && { 10797 test -z "$ac_c_werror_flag" || 10798 test ! -s conftest.err 10799 } && test -s conftest$ac_exeext && { 10800 test "$cross_compiling" = yes || 10801 $as_test_x conftest$ac_exeext 10802 }; then 10803 ac_cv_func_shl_load=yes 10804else 10805 $as_echo "$as_me: failed program was:" >&5 10806sed 's/^/| /' conftest.$ac_ext >&5 10807 10808 ac_cv_func_shl_load=no 10809fi 10810 10811rm -rf conftest.dSYM 10812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10813 conftest$ac_exeext conftest.$ac_ext 10814fi 10815{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10816$as_echo "$ac_cv_func_shl_load" >&6; } 10817if test "x$ac_cv_func_shl_load" = x""yes; then 10818 lt_cv_dlopen="shl_load" 10819else 10820 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10821$as_echo_n "checking for shl_load in -ldld... " >&6; } 10822if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10823 $as_echo_n "(cached) " >&6 10824else 10825 ac_check_lib_save_LIBS=$LIBS 10826LIBS="-ldld $LIBS" 10827cat >conftest.$ac_ext <<_ACEOF 10828/* confdefs.h. */ 10829_ACEOF 10830cat confdefs.h >>conftest.$ac_ext 10831cat >>conftest.$ac_ext <<_ACEOF 10832/* end confdefs.h. */ 10833 10834/* Override any GCC internal prototype to avoid an error. 10835 Use char because int might match the return type of a GCC 10836 builtin and then its argument prototype would still apply. */ 10837#ifdef __cplusplus 10838extern "C" 10839#endif 10840char shl_load (); 10841int 10842main () 10843{ 10844return shl_load (); 10845 ; 10846 return 0; 10847} 10848_ACEOF 10849rm -f conftest.$ac_objext conftest$ac_exeext 10850if { (ac_try="$ac_link" 10851case "(($ac_try" in 10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10853 *) ac_try_echo=$ac_try;; 10854esac 10855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10856$as_echo "$ac_try_echo") >&5 10857 (eval "$ac_link") 2>conftest.er1 10858 ac_status=$? 10859 grep -v '^ *+' conftest.er1 >conftest.err 10860 rm -f conftest.er1 10861 cat conftest.err >&5 10862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10863 (exit $ac_status); } && { 10864 test -z "$ac_c_werror_flag" || 10865 test ! -s conftest.err 10866 } && test -s conftest$ac_exeext && { 10867 test "$cross_compiling" = yes || 10868 $as_test_x conftest$ac_exeext 10869 }; then 10870 ac_cv_lib_dld_shl_load=yes 10871else 10872 $as_echo "$as_me: failed program was:" >&5 10873sed 's/^/| /' conftest.$ac_ext >&5 10874 10875 ac_cv_lib_dld_shl_load=no 10876fi 10877 10878rm -rf conftest.dSYM 10879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10880 conftest$ac_exeext conftest.$ac_ext 10881LIBS=$ac_check_lib_save_LIBS 10882fi 10883{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10884$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10885if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10886 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10887else 10888 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10889$as_echo_n "checking for dlopen... " >&6; } 10890if test "${ac_cv_func_dlopen+set}" = set; then 10891 $as_echo_n "(cached) " >&6 10892else 10893 cat >conftest.$ac_ext <<_ACEOF 10894/* confdefs.h. */ 10895_ACEOF 10896cat confdefs.h >>conftest.$ac_ext 10897cat >>conftest.$ac_ext <<_ACEOF 10898/* end confdefs.h. */ 10899/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10900 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10901#define dlopen innocuous_dlopen 10902 10903/* System header to define __stub macros and hopefully few prototypes, 10904 which can conflict with char dlopen (); below. 10905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10906 <limits.h> exists even on freestanding compilers. */ 10907 10908#ifdef __STDC__ 10909# include <limits.h> 10910#else 10911# include <assert.h> 10912#endif 10913 10914#undef dlopen 10915 10916/* Override any GCC internal prototype to avoid an error. 10917 Use char because int might match the return type of a GCC 10918 builtin and then its argument prototype would still apply. */ 10919#ifdef __cplusplus 10920extern "C" 10921#endif 10922char dlopen (); 10923/* The GNU C library defines this for functions which it implements 10924 to always fail with ENOSYS. Some functions are actually named 10925 something starting with __ and the normal name is an alias. */ 10926#if defined __stub_dlopen || defined __stub___dlopen 10927choke me 10928#endif 10929 10930int 10931main () 10932{ 10933return dlopen (); 10934 ; 10935 return 0; 10936} 10937_ACEOF 10938rm -f conftest.$ac_objext conftest$ac_exeext 10939if { (ac_try="$ac_link" 10940case "(($ac_try" in 10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10942 *) ac_try_echo=$ac_try;; 10943esac 10944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10945$as_echo "$ac_try_echo") >&5 10946 (eval "$ac_link") 2>conftest.er1 10947 ac_status=$? 10948 grep -v '^ *+' conftest.er1 >conftest.err 10949 rm -f conftest.er1 10950 cat conftest.err >&5 10951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10952 (exit $ac_status); } && { 10953 test -z "$ac_c_werror_flag" || 10954 test ! -s conftest.err 10955 } && test -s conftest$ac_exeext && { 10956 test "$cross_compiling" = yes || 10957 $as_test_x conftest$ac_exeext 10958 }; then 10959 ac_cv_func_dlopen=yes 10960else 10961 $as_echo "$as_me: failed program was:" >&5 10962sed 's/^/| /' conftest.$ac_ext >&5 10963 10964 ac_cv_func_dlopen=no 10965fi 10966 10967rm -rf conftest.dSYM 10968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10969 conftest$ac_exeext conftest.$ac_ext 10970fi 10971{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10972$as_echo "$ac_cv_func_dlopen" >&6; } 10973if test "x$ac_cv_func_dlopen" = x""yes; then 10974 lt_cv_dlopen="dlopen" 10975else 10976 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10977$as_echo_n "checking for dlopen in -ldl... " >&6; } 10978if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10979 $as_echo_n "(cached) " >&6 10980else 10981 ac_check_lib_save_LIBS=$LIBS 10982LIBS="-ldl $LIBS" 10983cat >conftest.$ac_ext <<_ACEOF 10984/* confdefs.h. */ 10985_ACEOF 10986cat confdefs.h >>conftest.$ac_ext 10987cat >>conftest.$ac_ext <<_ACEOF 10988/* end confdefs.h. */ 10989 10990/* Override any GCC internal prototype to avoid an error. 10991 Use char because int might match the return type of a GCC 10992 builtin and then its argument prototype would still apply. */ 10993#ifdef __cplusplus 10994extern "C" 10995#endif 10996char dlopen (); 10997int 10998main () 10999{ 11000return dlopen (); 11001 ; 11002 return 0; 11003} 11004_ACEOF 11005rm -f conftest.$ac_objext conftest$ac_exeext 11006if { (ac_try="$ac_link" 11007case "(($ac_try" in 11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11009 *) ac_try_echo=$ac_try;; 11010esac 11011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11012$as_echo "$ac_try_echo") >&5 11013 (eval "$ac_link") 2>conftest.er1 11014 ac_status=$? 11015 grep -v '^ *+' conftest.er1 >conftest.err 11016 rm -f conftest.er1 11017 cat conftest.err >&5 11018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11019 (exit $ac_status); } && { 11020 test -z "$ac_c_werror_flag" || 11021 test ! -s conftest.err 11022 } && test -s conftest$ac_exeext && { 11023 test "$cross_compiling" = yes || 11024 $as_test_x conftest$ac_exeext 11025 }; then 11026 ac_cv_lib_dl_dlopen=yes 11027else 11028 $as_echo "$as_me: failed program was:" >&5 11029sed 's/^/| /' conftest.$ac_ext >&5 11030 11031 ac_cv_lib_dl_dlopen=no 11032fi 11033 11034rm -rf conftest.dSYM 11035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11036 conftest$ac_exeext conftest.$ac_ext 11037LIBS=$ac_check_lib_save_LIBS 11038fi 11039{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11040$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11041if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11043else 11044 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11045$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11046if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11047 $as_echo_n "(cached) " >&6 11048else 11049 ac_check_lib_save_LIBS=$LIBS 11050LIBS="-lsvld $LIBS" 11051cat >conftest.$ac_ext <<_ACEOF 11052/* confdefs.h. */ 11053_ACEOF 11054cat confdefs.h >>conftest.$ac_ext 11055cat >>conftest.$ac_ext <<_ACEOF 11056/* end confdefs.h. */ 11057 11058/* Override any GCC internal prototype to avoid an error. 11059 Use char because int might match the return type of a GCC 11060 builtin and then its argument prototype would still apply. */ 11061#ifdef __cplusplus 11062extern "C" 11063#endif 11064char dlopen (); 11065int 11066main () 11067{ 11068return dlopen (); 11069 ; 11070 return 0; 11071} 11072_ACEOF 11073rm -f conftest.$ac_objext conftest$ac_exeext 11074if { (ac_try="$ac_link" 11075case "(($ac_try" in 11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11077 *) ac_try_echo=$ac_try;; 11078esac 11079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11080$as_echo "$ac_try_echo") >&5 11081 (eval "$ac_link") 2>conftest.er1 11082 ac_status=$? 11083 grep -v '^ *+' conftest.er1 >conftest.err 11084 rm -f conftest.er1 11085 cat conftest.err >&5 11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11087 (exit $ac_status); } && { 11088 test -z "$ac_c_werror_flag" || 11089 test ! -s conftest.err 11090 } && test -s conftest$ac_exeext && { 11091 test "$cross_compiling" = yes || 11092 $as_test_x conftest$ac_exeext 11093 }; then 11094 ac_cv_lib_svld_dlopen=yes 11095else 11096 $as_echo "$as_me: failed program was:" >&5 11097sed 's/^/| /' conftest.$ac_ext >&5 11098 11099 ac_cv_lib_svld_dlopen=no 11100fi 11101 11102rm -rf conftest.dSYM 11103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11104 conftest$ac_exeext conftest.$ac_ext 11105LIBS=$ac_check_lib_save_LIBS 11106fi 11107{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11108$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11109if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11111else 11112 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11113$as_echo_n "checking for dld_link in -ldld... " >&6; } 11114if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11115 $as_echo_n "(cached) " >&6 11116else 11117 ac_check_lib_save_LIBS=$LIBS 11118LIBS="-ldld $LIBS" 11119cat >conftest.$ac_ext <<_ACEOF 11120/* confdefs.h. */ 11121_ACEOF 11122cat confdefs.h >>conftest.$ac_ext 11123cat >>conftest.$ac_ext <<_ACEOF 11124/* end confdefs.h. */ 11125 11126/* Override any GCC internal prototype to avoid an error. 11127 Use char because int might match the return type of a GCC 11128 builtin and then its argument prototype would still apply. */ 11129#ifdef __cplusplus 11130extern "C" 11131#endif 11132char dld_link (); 11133int 11134main () 11135{ 11136return dld_link (); 11137 ; 11138 return 0; 11139} 11140_ACEOF 11141rm -f conftest.$ac_objext conftest$ac_exeext 11142if { (ac_try="$ac_link" 11143case "(($ac_try" in 11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11145 *) ac_try_echo=$ac_try;; 11146esac 11147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11148$as_echo "$ac_try_echo") >&5 11149 (eval "$ac_link") 2>conftest.er1 11150 ac_status=$? 11151 grep -v '^ *+' conftest.er1 >conftest.err 11152 rm -f conftest.er1 11153 cat conftest.err >&5 11154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11155 (exit $ac_status); } && { 11156 test -z "$ac_c_werror_flag" || 11157 test ! -s conftest.err 11158 } && test -s conftest$ac_exeext && { 11159 test "$cross_compiling" = yes || 11160 $as_test_x conftest$ac_exeext 11161 }; then 11162 ac_cv_lib_dld_dld_link=yes 11163else 11164 $as_echo "$as_me: failed program was:" >&5 11165sed 's/^/| /' conftest.$ac_ext >&5 11166 11167 ac_cv_lib_dld_dld_link=no 11168fi 11169 11170rm -rf conftest.dSYM 11171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11172 conftest$ac_exeext conftest.$ac_ext 11173LIBS=$ac_check_lib_save_LIBS 11174fi 11175{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11176$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11177if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11179fi 11180 11181 11182fi 11183 11184 11185fi 11186 11187 11188fi 11189 11190 11191fi 11192 11193 11194fi 11195 11196 ;; 11197 esac 11198 11199 if test "x$lt_cv_dlopen" != xno; then 11200 enable_dlopen=yes 11201 else 11202 enable_dlopen=no 11203 fi 11204 11205 case $lt_cv_dlopen in 11206 dlopen) 11207 save_CPPFLAGS="$CPPFLAGS" 11208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11209 11210 save_LDFLAGS="$LDFLAGS" 11211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11212 11213 save_LIBS="$LIBS" 11214 LIBS="$lt_cv_dlopen_libs $LIBS" 11215 11216 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11217$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11218if test "${lt_cv_dlopen_self+set}" = set; then 11219 $as_echo_n "(cached) " >&6 11220else 11221 if test "$cross_compiling" = yes; then : 11222 lt_cv_dlopen_self=cross 11223else 11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11225 lt_status=$lt_dlunknown 11226 cat > conftest.$ac_ext <<_LT_EOF 11227#line 11227 "configure" 11228#include "confdefs.h" 11229 11230#if HAVE_DLFCN_H 11231#include <dlfcn.h> 11232#endif 11233 11234#include <stdio.h> 11235 11236#ifdef RTLD_GLOBAL 11237# define LT_DLGLOBAL RTLD_GLOBAL 11238#else 11239# ifdef DL_GLOBAL 11240# define LT_DLGLOBAL DL_GLOBAL 11241# else 11242# define LT_DLGLOBAL 0 11243# endif 11244#endif 11245 11246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11247 find out it does not work in some platform. */ 11248#ifndef LT_DLLAZY_OR_NOW 11249# ifdef RTLD_LAZY 11250# define LT_DLLAZY_OR_NOW RTLD_LAZY 11251# else 11252# ifdef DL_LAZY 11253# define LT_DLLAZY_OR_NOW DL_LAZY 11254# else 11255# ifdef RTLD_NOW 11256# define LT_DLLAZY_OR_NOW RTLD_NOW 11257# else 11258# ifdef DL_NOW 11259# define LT_DLLAZY_OR_NOW DL_NOW 11260# else 11261# define LT_DLLAZY_OR_NOW 0 11262# endif 11263# endif 11264# endif 11265# endif 11266#endif 11267 11268void fnord() { int i=42;} 11269int main () 11270{ 11271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11272 int status = $lt_dlunknown; 11273 11274 if (self) 11275 { 11276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11278 /* dlclose (self); */ 11279 } 11280 else 11281 puts (dlerror ()); 11282 11283 return status; 11284} 11285_LT_EOF 11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11287 (eval $ac_link) 2>&5 11288 ac_status=$? 11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11291 (./conftest; exit; ) >&5 2>/dev/null 11292 lt_status=$? 11293 case x$lt_status in 11294 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11295 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11296 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11297 esac 11298 else : 11299 # compilation failed 11300 lt_cv_dlopen_self=no 11301 fi 11302fi 11303rm -fr conftest* 11304 11305 11306fi 11307{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11308$as_echo "$lt_cv_dlopen_self" >&6; } 11309 11310 if test "x$lt_cv_dlopen_self" = xyes; then 11311 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11312 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11313$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11314if test "${lt_cv_dlopen_self_static+set}" = set; then 11315 $as_echo_n "(cached) " >&6 11316else 11317 if test "$cross_compiling" = yes; then : 11318 lt_cv_dlopen_self_static=cross 11319else 11320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11321 lt_status=$lt_dlunknown 11322 cat > conftest.$ac_ext <<_LT_EOF 11323#line 11323 "configure" 11324#include "confdefs.h" 11325 11326#if HAVE_DLFCN_H 11327#include <dlfcn.h> 11328#endif 11329 11330#include <stdio.h> 11331 11332#ifdef RTLD_GLOBAL 11333# define LT_DLGLOBAL RTLD_GLOBAL 11334#else 11335# ifdef DL_GLOBAL 11336# define LT_DLGLOBAL DL_GLOBAL 11337# else 11338# define LT_DLGLOBAL 0 11339# endif 11340#endif 11341 11342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11343 find out it does not work in some platform. */ 11344#ifndef LT_DLLAZY_OR_NOW 11345# ifdef RTLD_LAZY 11346# define LT_DLLAZY_OR_NOW RTLD_LAZY 11347# else 11348# ifdef DL_LAZY 11349# define LT_DLLAZY_OR_NOW DL_LAZY 11350# else 11351# ifdef RTLD_NOW 11352# define LT_DLLAZY_OR_NOW RTLD_NOW 11353# else 11354# ifdef DL_NOW 11355# define LT_DLLAZY_OR_NOW DL_NOW 11356# else 11357# define LT_DLLAZY_OR_NOW 0 11358# endif 11359# endif 11360# endif 11361# endif 11362#endif 11363 11364void fnord() { int i=42;} 11365int main () 11366{ 11367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11368 int status = $lt_dlunknown; 11369 11370 if (self) 11371 { 11372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11374 /* dlclose (self); */ 11375 } 11376 else 11377 puts (dlerror ()); 11378 11379 return status; 11380} 11381_LT_EOF 11382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11383 (eval $ac_link) 2>&5 11384 ac_status=$? 11385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11387 (./conftest; exit; ) >&5 2>/dev/null 11388 lt_status=$? 11389 case x$lt_status in 11390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11392 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11393 esac 11394 else : 11395 # compilation failed 11396 lt_cv_dlopen_self_static=no 11397 fi 11398fi 11399rm -fr conftest* 11400 11401 11402fi 11403{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11404$as_echo "$lt_cv_dlopen_self_static" >&6; } 11405 fi 11406 11407 CPPFLAGS="$save_CPPFLAGS" 11408 LDFLAGS="$save_LDFLAGS" 11409 LIBS="$save_LIBS" 11410 ;; 11411 esac 11412 11413 case $lt_cv_dlopen_self in 11414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11415 *) enable_dlopen_self=unknown ;; 11416 esac 11417 11418 case $lt_cv_dlopen_self_static in 11419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11420 *) enable_dlopen_self_static=unknown ;; 11421 esac 11422fi 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440striplib= 11441old_striplib= 11442{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11443$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11444if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11445 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11446 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11447 { $as_echo "$as_me:$LINENO: result: yes" >&5 11448$as_echo "yes" >&6; } 11449else 11450# FIXME - insert some real tests, host_os isn't really good enough 11451 case $host_os in 11452 darwin*) 11453 if test -n "$STRIP" ; then 11454 striplib="$STRIP -x" 11455 old_striplib="$STRIP -S" 11456 { $as_echo "$as_me:$LINENO: result: yes" >&5 11457$as_echo "yes" >&6; } 11458 else 11459 { $as_echo "$as_me:$LINENO: result: no" >&5 11460$as_echo "no" >&6; } 11461 fi 11462 ;; 11463 *) 11464 { $as_echo "$as_me:$LINENO: result: no" >&5 11465$as_echo "no" >&6; } 11466 ;; 11467 esac 11468fi 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 # Report which library types will actually be built 11482 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11483$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11484 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11485$as_echo "$can_build_shared" >&6; } 11486 11487 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11488$as_echo_n "checking whether to build shared libraries... " >&6; } 11489 test "$can_build_shared" = "no" && enable_shared=no 11490 11491 # On AIX, shared libraries and static libraries use the same namespace, and 11492 # are all built from PIC. 11493 case $host_os in 11494 aix3*) 11495 test "$enable_shared" = yes && enable_static=no 11496 if test -n "$RANLIB"; then 11497 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11498 postinstall_cmds='$RANLIB $lib' 11499 fi 11500 ;; 11501 11502 aix[4-9]*) 11503 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11504 test "$enable_shared" = yes && enable_static=no 11505 fi 11506 ;; 11507 esac 11508 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11509$as_echo "$enable_shared" >&6; } 11510 11511 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11512$as_echo_n "checking whether to build static libraries... " >&6; } 11513 # Make sure either enable_shared or enable_static is yes. 11514 test "$enable_shared" = yes || enable_static=yes 11515 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11516$as_echo "$enable_static" >&6; } 11517 11518 11519 11520 11521fi 11522ac_ext=c 11523ac_cpp='$CPP $CPPFLAGS' 11524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11526ac_compiler_gnu=$ac_cv_c_compiler_gnu 11527 11528CC="$lt_save_CC" 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 ac_config_commands="$ac_config_commands libtool" 11543 11544 11545 11546 11547# Only expand once: 11548 11549 11550 11551ACLOCAL_AMFLAGS="-I m4" 11552 11553 11554# Extract the first word of "doxygen", so it can be a program name with args. 11555set dummy doxygen; ac_word=$2 11556{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11557$as_echo_n "checking for $ac_word... " >&6; } 11558if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then 11559 $as_echo_n "(cached) " >&6 11560else 11561 if test -n "$HAVE_DOXYGEN"; then 11562 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. 11563else 11564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11565for as_dir in $PATH 11566do 11567 IFS=$as_save_IFS 11568 test -z "$as_dir" && as_dir=. 11569 for ac_exec_ext in '' $ac_executable_extensions; do 11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11571 ac_cv_prog_HAVE_DOXYGEN="true" 11572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11573 break 2 11574 fi 11575done 11576done 11577IFS=$as_save_IFS 11578 11579 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false" 11580fi 11581fi 11582HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN 11583if test -n "$HAVE_DOXYGEN"; then 11584 { $as_echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5 11585$as_echo "$HAVE_DOXYGEN" >&6; } 11586else 11587 { $as_echo "$as_me:$LINENO: result: no" >&5 11588$as_echo "no" >&6; } 11589fi 11590 11591 11592 11593 11594if $HAVE_DOXYGEN; then 11595 HAVE_DOXYGEN_TRUE= 11596 HAVE_DOXYGEN_FALSE='#' 11597else 11598 HAVE_DOXYGEN_TRUE='#' 11599 HAVE_DOXYGEN_FALSE= 11600fi 11601 11602if test $HAVE_DOXYGEN = "false"; then 11603 { $as_echo "$as_me:$LINENO: WARNING: *** doxygen not found, API documentation will not be built" >&5 11604$as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;} 11605fi 11606 11607BUILD_SPEC="false" 11608ac_build_spec=yes 11609# Check whether --enable-spec was given. 11610if test "${enable_spec+set}" = set; then 11611 enableval=$enable_spec; 11612 if test "x$enableval" = "xno"; then 11613 ac_build_spec=$enableval 11614 fi 11615 11616else 11617 11618 ac_build_spec=yes 11619 11620fi 11621 11622if test "x$ac_build_spec" = "xyes"; then 11623 # Extract the first word of "pdflatex", so it can be a program name with args. 11624set dummy pdflatex; ac_word=$2 11625{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11626$as_echo_n "checking for $ac_word... " >&6; } 11627if test "${ac_cv_prog_HAVE_PDFLATEX+set}" = set; then 11628 $as_echo_n "(cached) " >&6 11629else 11630 if test -n "$HAVE_PDFLATEX"; then 11631 ac_cv_prog_HAVE_PDFLATEX="$HAVE_PDFLATEX" # Let the user override the test. 11632else 11633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11634for as_dir in $PATH 11635do 11636 IFS=$as_save_IFS 11637 test -z "$as_dir" && as_dir=. 11638 for ac_exec_ext in '' $ac_executable_extensions; do 11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11640 ac_cv_prog_HAVE_PDFLATEX="yes" 11641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11642 break 2 11643 fi 11644done 11645done 11646IFS=$as_save_IFS 11647 11648fi 11649fi 11650HAVE_PDFLATEX=$ac_cv_prog_HAVE_PDFLATEX 11651if test -n "$HAVE_PDFLATEX"; then 11652 { $as_echo "$as_me:$LINENO: result: $HAVE_PDFLATEX" >&5 11653$as_echo "$HAVE_PDFLATEX" >&6; } 11654else 11655 { $as_echo "$as_me:$LINENO: result: no" >&5 11656$as_echo "no" >&6; } 11657fi 11658 11659 11660 # Extract the first word of "bibtex", so it can be a program name with args. 11661set dummy bibtex; ac_word=$2 11662{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11663$as_echo_n "checking for $ac_word... " >&6; } 11664if test "${ac_cv_prog_HAVE_BIBTEX+set}" = set; then 11665 $as_echo_n "(cached) " >&6 11666else 11667 if test -n "$HAVE_BIBTEX"; then 11668 ac_cv_prog_HAVE_BIBTEX="$HAVE_BIBTEX" # Let the user override the test. 11669else 11670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11671for as_dir in $PATH 11672do 11673 IFS=$as_save_IFS 11674 test -z "$as_dir" && as_dir=. 11675 for ac_exec_ext in '' $ac_executable_extensions; do 11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11677 ac_cv_prog_HAVE_BIBTEX="yes" 11678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11679 break 2 11680 fi 11681done 11682done 11683IFS=$as_save_IFS 11684 11685fi 11686fi 11687HAVE_BIBTEX=$ac_cv_prog_HAVE_BIBTEX 11688if test -n "$HAVE_BIBTEX"; then 11689 { $as_echo "$as_me:$LINENO: result: $HAVE_BIBTEX" >&5 11690$as_echo "$HAVE_BIBTEX" >&6; } 11691else 11692 { $as_echo "$as_me:$LINENO: result: no" >&5 11693$as_echo "no" >&6; } 11694fi 11695 11696 11697 # Extract the first word of "fig2dev", so it can be a program name with args. 11698set dummy fig2dev; ac_word=$2 11699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11700$as_echo_n "checking for $ac_word... " >&6; } 11701if test "${ac_cv_prog_HAVE_TRANSFIG+set}" = set; then 11702 $as_echo_n "(cached) " >&6 11703else 11704 if test -n "$HAVE_TRANSFIG"; then 11705 ac_cv_prog_HAVE_TRANSFIG="$HAVE_TRANSFIG" # Let the user override the test. 11706else 11707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11708for as_dir in $PATH 11709do 11710 IFS=$as_save_IFS 11711 test -z "$as_dir" && as_dir=. 11712 for ac_exec_ext in '' $ac_executable_extensions; do 11713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11714 ac_cv_prog_HAVE_TRANSFIG="yes" 11715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11716 break 2 11717 fi 11718done 11719done 11720IFS=$as_save_IFS 11721 11722fi 11723fi 11724HAVE_TRANSFIG=$ac_cv_prog_HAVE_TRANSFIG 11725if test -n "$HAVE_TRANSFIG"; then 11726 { $as_echo "$as_me:$LINENO: result: $HAVE_TRANSFIG" >&5 11727$as_echo "$HAVE_TRANSFIG" >&6; } 11728else 11729 { $as_echo "$as_me:$LINENO: result: no" >&5 11730$as_echo "no" >&6; } 11731fi 11732 11733 11734 if test -r doc/spec/spec.tex; then 11735 if test "x$HAVE_PDFLATEX" = "xyes"; then 11736 if test "x$HAVE_BIBTEX" = "xyes"; then 11737 if test "x$HAVE_TRANSFIG" = "xyes"; then 11738 tex_pkg_list=`fgrep usepackage doc/spec/spec.tex | grep \{ | grep -v ltablex` 11739 tex_pkg_ok="yes" 11740 for pkg_line in $tex_pkg_list; do 11741 pkg_name=`echo $pkg_line | sed -e 's/.*{\(.*\)}.*/\1/'` 11742 { $as_echo "$as_me:$LINENO: checking for Tex package $pkg_name" >&5 11743$as_echo_n "checking for Tex package $pkg_name... " >&6; } 11744 cat >conftest.tex <<_ACEOF 11745\\documentclass{book} 11746$pkg_line 11747\\begin{document} 11748Hello World. 11749\\end{document} 11750_ACEOF 11751 if pdflatex -interaction batchmode -halt-on-error conftest < /dev/null > /dev/null 2>&1; then 11752 { $as_echo "$as_me:$LINENO: result: ok" >&5 11753$as_echo "ok" >&6; } 11754 else 11755 tex_pkg_ok="no" 11756 { $as_echo "$as_me:$LINENO: result: no" >&5 11757$as_echo "no" >&6; } 11758 fi 11759 done 11760 if test -w conftest.tex; then rm conftest.tex; fi 11761 if test -w conftest.tex; then rm conftest.aux; fi 11762 if test -w conftest.pdf; then rm conftest.pdf; fi 11763 if test "x$tex_pkg_ok" = "xyes"; then 11764 BUILD_SPEC="true" 11765 fi 11766 fi 11767 fi 11768 fi 11769 fi 11770fi 11771 11772 11773if $BUILD_SPEC; then 11774 BUILD_SPEC_TRUE= 11775 BUILD_SPEC_FALSE='#' 11776else 11777 BUILD_SPEC_TRUE='#' 11778 BUILD_SPEC_FALSE= 11779fi 11780 11781if test $BUILD_SPEC = "false"; then 11782 { $as_echo "$as_me:$LINENO: WARNING: *** Format Specification will not built." >&5 11783$as_echo "$as_me: WARNING: *** Format Specification will not built." >&2;} 11784fi 11785 11786VALGRIND_ENVIRONMENT="" 11787ac_enable_valgrind=no 11788# Check whether --enable-valgrind-testing was given. 11789if test "${enable_valgrind_testing+set}" = set; then 11790 enableval=$enable_valgrind_testing; ac_enable_valgrind=yes 11791else 11792 ac_enable_valgrind=no 11793fi 11794 11795 11796if test "x${ac_enable_valgrind}" = xyes ; then 11797 if test "x${enable_shared}" = xyes ; then 11798 VALGRIND_ENVIRONMENT="libtool --mode=execute " 11799 fi 11800 11801 # Extract the first word of "valgrind", so it can be a program name with args. 11802set dummy valgrind; ac_word=$2 11803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11804$as_echo_n "checking for $ac_word... " >&6; } 11805if test "${ac_cv_prog_HAVE_VALGRIND+set}" = set; then 11806 $as_echo_n "(cached) " >&6 11807else 11808 if test -n "$HAVE_VALGRIND"; then 11809 ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test. 11810else 11811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11812for as_dir in $PATH 11813do 11814 IFS=$as_save_IFS 11815 test -z "$as_dir" && as_dir=. 11816 for ac_exec_ext in '' $ac_executable_extensions; do 11817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11818 ac_cv_prog_HAVE_VALGRIND="yes" 11819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11820 break 2 11821 fi 11822done 11823done 11824IFS=$as_save_IFS 11825 11826 test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no" 11827fi 11828fi 11829HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND 11830if test -n "$HAVE_VALGRIND"; then 11831 { $as_echo "$as_me:$LINENO: result: $HAVE_VALGRIND" >&5 11832$as_echo "$HAVE_VALGRIND" >&6; } 11833else 11834 { $as_echo "$as_me:$LINENO: result: no" >&5 11835$as_echo "no" >&6; } 11836fi 11837 11838 11839 if test "x$HAVE_VALGRIND" = xyes ; then 11840 VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100" 11841 11842 TESTS_INFO="Type 'make check' to run test suite. Tests will be run under: 11843 ${VALGRIND_ENVIRONMENT}" 11844 else 11845 TESTS_INFO="Type 'make check' to run test suite (Valgrind not found)" 11846 fi 11847else 11848 TESTS_INFO="Type 'make check' to run test suite (Valgrind testing not enabled)" 11849fi 11850 11851 11852 11853cflags_save="$CFLAGS" 11854if test -z "$GCC"; then 11855 case $host in 11856 *) 11857 DEBUG="-g -DDEBUG" 11858 CFLAGS="-O" 11859 PROFILE="-g -p -DDEBUG" ;; 11860 esac 11861else 11862 11863 case $host in 11864 *) 11865 DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES" 11866 if $CC -v 2>&1 | grep clang > /dev/null; then 11867 CFLAGS="-Wall -Wno-parentheses -O3 -fomit-frame-pointer -finline-functions -funroll-loops" 11868 else 11869 CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops" 11870 fi 11871 PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";; 11872 esac 11873fi 11874CFLAGS="$CFLAGS $cflags_save" 11875 11876cpu_x86_64=no 11877cpu_x86_32=no 11878# Check whether --enable-asm was given. 11879if test "${enable_asm+set}" = set; then 11880 enableval=$enable_asm; ac_enable_asm=$enableval 11881else 11882 ac_enable_asm=yes 11883fi 11884 11885 11886if test "x${ac_enable_asm}" = xyes; then 11887 cpu_optimization="no optimization for your platform, please send a patch" 11888 case $target_cpu in 11889 i[3456]86) 11890 cpu_x86_32=yes 11891 cpu_optimization="32 bit x86" 11892 11893cat >>confdefs.h <<\_ACEOF 11894#undef OC_X86_ASM /**/ 11895_ACEOF 11896 11897 if test "x$target_vendor" = "xapple"; then 11898 THEORA_LDFLAGS="$THEORA_LDFLAGS -Wl,-read_only_relocs,suppress" 11899 fi 11900 ;; 11901 x86_64|amd64) 11902 cpu_x86_64=yes 11903 cpu_optimization="64 bit x86" 11904 11905cat >>confdefs.h <<\_ACEOF 11906#undef OC_X86_ASM /**/ 11907_ACEOF 11908 11909 11910cat >>confdefs.h <<\_ACEOF 11911#define OC_X86_64_ASM /**/ 11912_ACEOF 11913 11914 ;; 11915 esac 11916else 11917 cpu_optimization="disabled" 11918fi 11919 11920 11921if test x$cpu_x86_64 = xyes; then 11922 CPU_x86_64_TRUE= 11923 CPU_x86_64_FALSE='#' 11924else 11925 CPU_x86_64_TRUE='#' 11926 CPU_x86_64_FALSE= 11927fi 11928 11929 11930 11931if test x$cpu_x86_32 = xyes; then 11932 CPU_x86_32_TRUE= 11933 CPU_x86_32_FALSE='#' 11934else 11935 CPU_x86_32_TRUE='#' 11936 CPU_x86_32_FALSE= 11937fi 11938 11939 11940# Test whenever ld supports -version-script 11941 11942 11943# Check whether --with-gnu-ld was given. 11944if test "${with_gnu_ld+set}" = set; then 11945 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11946else 11947 with_gnu_ld=no 11948fi 11949 11950ac_prog=ld 11951if test "$GCC" = yes; then 11952 # Check if gcc -print-prog-name=ld gives a path. 11953 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11954$as_echo_n "checking for ld used by $CC... " >&6; } 11955 case $host in 11956 *-*-mingw*) 11957 # gcc leaves a trailing carriage return which upsets mingw 11958 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11959 *) 11960 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11961 esac 11962 case $ac_prog in 11963 # Accept absolute paths. 11964 [\\/]* | ?:[\\/]*) 11965 re_direlt='/[^/][^/]*/\.\./' 11966 # Canonicalize the pathname of ld 11967 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11968 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11969 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11970 done 11971 test -z "$LD" && LD="$ac_prog" 11972 ;; 11973 "") 11974 # If it fails, then pretend we aren't using GCC. 11975 ac_prog=ld 11976 ;; 11977 *) 11978 # If it is relative, then search for the first ld in PATH. 11979 with_gnu_ld=unknown 11980 ;; 11981 esac 11982elif test "$with_gnu_ld" = yes; then 11983 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11984$as_echo_n "checking for GNU ld... " >&6; } 11985else 11986 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11987$as_echo_n "checking for non-GNU ld... " >&6; } 11988fi 11989if test "${lt_cv_path_LD+set}" = set; then 11990 $as_echo_n "(cached) " >&6 11991else 11992 if test -z "$LD"; then 11993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11994 for ac_dir in $PATH; do 11995 IFS="$lt_save_ifs" 11996 test -z "$ac_dir" && ac_dir=. 11997 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11998 lt_cv_path_LD="$ac_dir/$ac_prog" 11999 # Check to see if the program is GNU ld. I'd rather use --version, 12000 # but apparently some variants of GNU ld only accept -v. 12001 # Break only if it was the GNU/non-GNU ld that we prefer. 12002 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12003 *GNU* | *'with BFD'*) 12004 test "$with_gnu_ld" != no && break 12005 ;; 12006 *) 12007 test "$with_gnu_ld" != yes && break 12008 ;; 12009 esac 12010 fi 12011 done 12012 IFS="$lt_save_ifs" 12013else 12014 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12015fi 12016fi 12017 12018LD="$lt_cv_path_LD" 12019if test -n "$LD"; then 12020 { $as_echo "$as_me:$LINENO: result: $LD" >&5 12021$as_echo "$LD" >&6; } 12022else 12023 { $as_echo "$as_me:$LINENO: result: no" >&5 12024$as_echo "no" >&6; } 12025fi 12026test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12027$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12028 { (exit 1); exit 1; }; } 12029{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12030$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12031if test "${lt_cv_prog_gnu_ld+set}" = set; then 12032 $as_echo_n "(cached) " >&6 12033else 12034 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12035case `$LD -v 2>&1 </dev/null` in 12036*GNU* | *'with BFD'*) 12037 lt_cv_prog_gnu_ld=yes 12038 ;; 12039*) 12040 lt_cv_prog_gnu_ld=no 12041 ;; 12042esac 12043fi 12044{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12045$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12046with_gnu_ld=$lt_cv_prog_gnu_ld 12047 12048 12049 12050 12051 12052 12053 12054{ $as_echo "$as_me:$LINENO: checking how to control symbol export" >&5 12055$as_echo_n "checking how to control symbol export... " >&6; } 12056 12057THDEC_VERSION_ARG="" 12058THENC_VERSION_ARG="" 12059TH_VERSION_ARG="" 12060if test "x$lt_cv_prog_gnu_ld" = "xyes"; then 12061 case "$target_os" in 12062 *mingw*) 12063 THEORA_LDFLAGS="$THEORA_LDFLAGS -no-undefined" 12064 THDEC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoradec-all.def" 12065 THENC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoraenc-all.def" 12066 THENC_VERSION_ARG="$THENC_VERSION_ARG -ltheoradec" 12067 THC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/libtheora.def" 12068 { $as_echo "$as_me:$LINENO: result: -export-symbols" >&5 12069$as_echo "-export-symbols" >&6; } 12070 ;; 12071 linux* | solaris* ) 12072 THDEC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-dec' 12073 THENC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-enc' 12074 TH_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script' 12075 { $as_echo "$as_me:$LINENO: result: --version-script" >&5 12076$as_echo "--version-script" >&6; } 12077 ;; 12078 *) 12079 # build without versioning 12080 { $as_echo "$as_me:$LINENO: result: no" >&5 12081$as_echo "no" >&6; } 12082 ;; 12083 esac 12084else 12085 case "$target_os" in 12086 darwin*) 12087 THDEC_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theoradec.exp' 12088 THENC_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theoraenc.exp' 12089 TH_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theora.exp' 12090 { $as_echo "$as_me:$LINENO: result: -exported_symbols_list" >&5 12091$as_echo "-exported_symbols_list" >&6; } 12092 ;; 12093 *) 12094 # build without versioning 12095 { $as_echo "$as_me:$LINENO: result: no" >&5 12096$as_echo "no" >&6; } 12097 ;; 12098 esac 12099fi 12100 12101THEORADEC_LDFLAGS="$THEORA_LDFLAGS $THDEC_VERSION_ARG" 12102THEORAENC_LDFLAGS="$THEORA_LDFLAGS $THENC_VERSION_ARG" 12103THEORA_LDFLAGS="$THEORA_LDFLAGS $TH_VERSION_ARG" 12104 12105 12106 12107 12108 12109HAVE_OGG=no 12110 12111 12112# Extract the first word of "pkg-config", so it can be a program name with args. 12113set dummy pkg-config; ac_word=$2 12114{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12115$as_echo_n "checking for $ac_word... " >&6; } 12116if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then 12117 $as_echo_n "(cached) " >&6 12118else 12119 if test -n "$HAVE_PKG_CONFIG"; then 12120 ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test. 12121else 12122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12123for as_dir in $PATH 12124do 12125 IFS=$as_save_IFS 12126 test -z "$as_dir" && as_dir=. 12127 for ac_exec_ext in '' $ac_executable_extensions; do 12128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12129 ac_cv_prog_HAVE_PKG_CONFIG="yes" 12130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12131 break 2 12132 fi 12133done 12134done 12135IFS=$as_save_IFS 12136 12137fi 12138fi 12139HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG 12140if test -n "$HAVE_PKG_CONFIG"; then 12141 { $as_echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5 12142$as_echo "$HAVE_PKG_CONFIG" >&6; } 12143else 12144 { $as_echo "$as_me:$LINENO: result: no" >&5 12145$as_echo "no" >&6; } 12146fi 12147 12148 12149if test "x$HAVE_PKG_CONFIG" = "xyes" 12150then 12151 12152 12153if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12154 if test -n "$ac_tool_prefix"; then 12155 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12156set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12157{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12158$as_echo_n "checking for $ac_word... " >&6; } 12159if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12160 $as_echo_n "(cached) " >&6 12161else 12162 case $PKG_CONFIG in 12163 [\\/]* | ?:[\\/]*) 12164 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12165 ;; 12166 *) 12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12168for as_dir in $PATH 12169do 12170 IFS=$as_save_IFS 12171 test -z "$as_dir" && as_dir=. 12172 for ac_exec_ext in '' $ac_executable_extensions; do 12173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12174 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12176 break 2 12177 fi 12178done 12179done 12180IFS=$as_save_IFS 12181 12182 ;; 12183esac 12184fi 12185PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12186if test -n "$PKG_CONFIG"; then 12187 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12188$as_echo "$PKG_CONFIG" >&6; } 12189else 12190 { $as_echo "$as_me:$LINENO: result: no" >&5 12191$as_echo "no" >&6; } 12192fi 12193 12194 12195fi 12196if test -z "$ac_cv_path_PKG_CONFIG"; then 12197 ac_pt_PKG_CONFIG=$PKG_CONFIG 12198 # Extract the first word of "pkg-config", so it can be a program name with args. 12199set dummy pkg-config; ac_word=$2 12200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12201$as_echo_n "checking for $ac_word... " >&6; } 12202if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12203 $as_echo_n "(cached) " >&6 12204else 12205 case $ac_pt_PKG_CONFIG in 12206 [\\/]* | ?:[\\/]*) 12207 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12208 ;; 12209 *) 12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12211for as_dir in $PATH 12212do 12213 IFS=$as_save_IFS 12214 test -z "$as_dir" && as_dir=. 12215 for ac_exec_ext in '' $ac_executable_extensions; do 12216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12217 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12219 break 2 12220 fi 12221done 12222done 12223IFS=$as_save_IFS 12224 12225 ;; 12226esac 12227fi 12228ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12229if test -n "$ac_pt_PKG_CONFIG"; then 12230 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12231$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12232else 12233 { $as_echo "$as_me:$LINENO: result: no" >&5 12234$as_echo "no" >&6; } 12235fi 12236 12237 if test "x$ac_pt_PKG_CONFIG" = x; then 12238 PKG_CONFIG="" 12239 else 12240 case $cross_compiling:$ac_tool_warned in 12241yes:) 12242{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12244ac_tool_warned=yes ;; 12245esac 12246 PKG_CONFIG=$ac_pt_PKG_CONFIG 12247 fi 12248else 12249 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12250fi 12251 12252fi 12253if test -n "$PKG_CONFIG"; then 12254 _pkg_min_version=0.9.0 12255 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12256$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12257 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12258 { $as_echo "$as_me:$LINENO: result: yes" >&5 12259$as_echo "yes" >&6; } 12260 else 12261 { $as_echo "$as_me:$LINENO: result: no" >&5 12262$as_echo "no" >&6; } 12263 PKG_CONFIG="" 12264 fi 12265 12266fi 12267 12268pkg_failed=no 12269{ $as_echo "$as_me:$LINENO: checking for OGG" >&5 12270$as_echo_n "checking for OGG... " >&6; } 12271 12272if test -n "$PKG_CONFIG"; then 12273 if test -n "$OGG_CFLAGS"; then 12274 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS" 12275 else 12276 if test -n "$PKG_CONFIG" && \ 12277 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1\"") >&5 12278 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1") 2>&5 12279 ac_status=$? 12280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12281 (exit $ac_status); }; then 12282 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1" 2>/dev/null` 12283else 12284 pkg_failed=yes 12285fi 12286 fi 12287else 12288 pkg_failed=untried 12289fi 12290if test -n "$PKG_CONFIG"; then 12291 if test -n "$OGG_LIBS"; then 12292 pkg_cv_OGG_LIBS="$OGG_LIBS" 12293 else 12294 if test -n "$PKG_CONFIG" && \ 12295 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1\"") >&5 12296 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1") 2>&5 12297 ac_status=$? 12298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12299 (exit $ac_status); }; then 12300 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1" 2>/dev/null` 12301else 12302 pkg_failed=yes 12303fi 12304 fi 12305else 12306 pkg_failed=untried 12307fi 12308 12309 12310 12311if test $pkg_failed = yes; then 12312 12313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12314 _pkg_short_errors_supported=yes 12315else 12316 _pkg_short_errors_supported=no 12317fi 12318 if test $_pkg_short_errors_supported = yes; then 12319 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.1"` 12320 else 12321 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1"` 12322 fi 12323 # Put the nasty error message in config.log where it belongs 12324 echo "$OGG_PKG_ERRORS" >&5 12325 12326 { $as_echo "$as_me:$LINENO: result: no" >&5 12327$as_echo "no" >&6; } 12328 HAVE_OGG=no 12329elif test $pkg_failed = untried; then 12330 HAVE_OGG=no 12331else 12332 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS 12333 OGG_LIBS=$pkg_cv_OGG_LIBS 12334 { $as_echo "$as_me:$LINENO: result: yes" >&5 12335$as_echo "yes" >&6; } 12336 HAVE_OGG=yes 12337fi 12338fi 12339if test "x$HAVE_OGG" = "xno" 12340then 12341 12342# Check whether --with-ogg was given. 12343if test "${with_ogg+set}" = set; then 12344 withval=$with_ogg; ogg_prefix="$withval" 12345else 12346 ogg_prefix="" 12347fi 12348 12349 12350# Check whether --with-ogg-libraries was given. 12351if test "${with_ogg_libraries+set}" = set; then 12352 withval=$with_ogg_libraries; ogg_libraries="$withval" 12353else 12354 ogg_libraries="" 12355fi 12356 12357 12358# Check whether --with-ogg-includes was given. 12359if test "${with_ogg_includes+set}" = set; then 12360 withval=$with_ogg_includes; ogg_includes="$withval" 12361else 12362 ogg_includes="" 12363fi 12364 12365# Check whether --enable-oggtest was given. 12366if test "${enable_oggtest+set}" = set; then 12367 enableval=$enable_oggtest; 12368else 12369 enable_oggtest=yes 12370fi 12371 12372 12373 if test "x$ogg_libraries" != "x" ; then 12374 OGG_LIBS="-L$ogg_libraries" 12375 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then 12376 OGG_LIBS="" 12377 elif test "x$ogg_prefix" != "x" ; then 12378 OGG_LIBS="-L$ogg_prefix/lib" 12379 elif test "x$prefix" != "xNONE" ; then 12380 OGG_LIBS="-L$libdir" 12381 fi 12382 12383 if test "x$ogg_prefix" != "xno" ; then 12384 OGG_LIBS="$OGG_LIBS -logg" 12385 fi 12386 12387 if test "x$ogg_includes" != "x" ; then 12388 OGG_CFLAGS="-I$ogg_includes" 12389 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then 12390 OGG_CFLAGS="" 12391 elif test "x$ogg_prefix" != "x" ; then 12392 OGG_CFLAGS="-I$ogg_prefix/include" 12393 elif test "x$prefix" != "xNONE"; then 12394 OGG_CFLAGS="" 12395 fi 12396 12397 { $as_echo "$as_me:$LINENO: checking for Ogg" >&5 12398$as_echo_n "checking for Ogg... " >&6; } 12399 if test "x$ogg_prefix" = "xno" ; then 12400 no_ogg="disabled" 12401 enable_oggtest="no" 12402 else 12403 no_ogg="" 12404 fi 12405 12406 12407 if test "x$enable_oggtest" = "xyes" ; then 12408 ac_save_CFLAGS="$CFLAGS" 12409 ac_save_LIBS="$LIBS" 12410 CFLAGS="$CFLAGS $OGG_CFLAGS" 12411 LIBS="$LIBS $OGG_LIBS" 12412 rm -f conf.oggtest 12413 if test "$cross_compiling" = yes; then 12414 echo $ac_n "cross compiling; assumed OK... $ac_c" 12415else 12416 cat >conftest.$ac_ext <<_ACEOF 12417/* confdefs.h. */ 12418_ACEOF 12419cat confdefs.h >>conftest.$ac_ext 12420cat >>conftest.$ac_ext <<_ACEOF 12421/* end confdefs.h. */ 12422 12423#include <stdio.h> 12424#include <stdlib.h> 12425#include <string.h> 12426#include <ogg/ogg.h> 12427 12428int main () 12429{ 12430 system("touch conf.oggtest"); 12431 return 0; 12432} 12433 12434 12435_ACEOF 12436rm -f conftest$ac_exeext 12437if { (ac_try="$ac_link" 12438case "(($ac_try" in 12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12440 *) ac_try_echo=$ac_try;; 12441esac 12442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12443$as_echo "$ac_try_echo") >&5 12444 (eval "$ac_link") 2>&5 12445 ac_status=$? 12446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12448 { (case "(($ac_try" in 12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12450 *) ac_try_echo=$ac_try;; 12451esac 12452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12453$as_echo "$ac_try_echo") >&5 12454 (eval "$ac_try") 2>&5 12455 ac_status=$? 12456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12457 (exit $ac_status); }; }; then 12458 : 12459else 12460 $as_echo "$as_me: program exited with status $ac_status" >&5 12461$as_echo "$as_me: failed program was:" >&5 12462sed 's/^/| /' conftest.$ac_ext >&5 12463 12464( exit $ac_status ) 12465no_ogg=yes 12466fi 12467rm -rf conftest.dSYM 12468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12469fi 12470 12471 12472 CFLAGS="$ac_save_CFLAGS" 12473 LIBS="$ac_save_LIBS" 12474 fi 12475 12476 if test "x$no_ogg" = "xdisabled" ; then 12477 { $as_echo "$as_me:$LINENO: result: no" >&5 12478$as_echo "no" >&6; } 12479 { { $as_echo "$as_me:$LINENO: error: 12480 libogg is required to build this package! 12481 please see http://www.xiph.org/ for how to 12482 obtain a copy. 12483 " >&5 12484$as_echo "$as_me: error: 12485 libogg is required to build this package! 12486 please see http://www.xiph.org/ for how to 12487 obtain a copy. 12488 " >&2;} 12489 { (exit 1); exit 1; }; } 12490 elif test "x$no_ogg" = "x" ; then 12491 { $as_echo "$as_me:$LINENO: result: yes" >&5 12492$as_echo "yes" >&6; } 12493 : 12494 else 12495 { $as_echo "$as_me:$LINENO: result: no" >&5 12496$as_echo "no" >&6; } 12497 if test -f conf.oggtest ; then 12498 : 12499 else 12500 echo "*** Could not run Ogg test program, checking why..." 12501 CFLAGS="$CFLAGS $OGG_CFLAGS" 12502 LIBS="$LIBS $OGG_LIBS" 12503 cat >conftest.$ac_ext <<_ACEOF 12504/* confdefs.h. */ 12505_ACEOF 12506cat confdefs.h >>conftest.$ac_ext 12507cat >>conftest.$ac_ext <<_ACEOF 12508/* end confdefs.h. */ 12509 12510#include <stdio.h> 12511#include <ogg/ogg.h> 12512 12513int 12514main () 12515{ 12516 return 0; 12517 ; 12518 return 0; 12519} 12520_ACEOF 12521rm -f conftest.$ac_objext conftest$ac_exeext 12522if { (ac_try="$ac_link" 12523case "(($ac_try" in 12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12525 *) ac_try_echo=$ac_try;; 12526esac 12527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12528$as_echo "$ac_try_echo") >&5 12529 (eval "$ac_link") 2>conftest.er1 12530 ac_status=$? 12531 grep -v '^ *+' conftest.er1 >conftest.err 12532 rm -f conftest.er1 12533 cat conftest.err >&5 12534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12535 (exit $ac_status); } && { 12536 test -z "$ac_c_werror_flag" || 12537 test ! -s conftest.err 12538 } && test -s conftest$ac_exeext && { 12539 test "$cross_compiling" = yes || 12540 $as_test_x conftest$ac_exeext 12541 }; then 12542 echo "*** The test program compiled, but did not run. This usually means" 12543 echo "*** that the run-time linker is not finding Ogg or finding the wrong" 12544 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" 12545 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 12546 echo "*** to the installed location Also, make sure you have run ldconfig if that" 12547 echo "*** is required on your system" 12548 echo "***" 12549 echo "*** If you have an old version installed, it is best to remove it, although" 12550 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 12551else 12552 $as_echo "$as_me: failed program was:" >&5 12553sed 's/^/| /' conftest.$ac_ext >&5 12554 12555 echo "*** The test program failed to compile or link. See the file config.log for the" 12556 echo "*** exact error that occured. This usually means Ogg was incorrectly installed" 12557 echo "*** or that you have moved Ogg since it was installed." 12558fi 12559 12560rm -rf conftest.dSYM 12561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12562 conftest$ac_exeext conftest.$ac_ext 12563 CFLAGS="$ac_save_CFLAGS" 12564 LIBS="$ac_save_LIBS" 12565 fi 12566 OGG_CFLAGS="" 12567 OGG_LIBS="" 12568 { { $as_echo "$as_me:$LINENO: error: 12569 libogg is required to build this package! 12570 please see http://www.xiph.org/ for how to 12571 obtain a copy. 12572 " >&5 12573$as_echo "$as_me: error: 12574 libogg is required to build this package! 12575 please see http://www.xiph.org/ for how to 12576 obtain a copy. 12577 " >&2;} 12578 { (exit 1); exit 1; }; } 12579 fi 12580 12581 12582 rm -f conf.oggtest 12583 12584 cflags_save=$CFLAGS 12585 libs_save=$LIBS 12586 CFLAGS="$CFLAGS $OGG_CFLAGS" 12587 LIBS="$LIBS $OGG_LIBS" 12588 { $as_echo "$as_me:$LINENO: checking for oggpackB_read" >&5 12589$as_echo_n "checking for oggpackB_read... " >&6; } 12590if test "${ac_cv_func_oggpackB_read+set}" = set; then 12591 $as_echo_n "(cached) " >&6 12592else 12593 cat >conftest.$ac_ext <<_ACEOF 12594/* confdefs.h. */ 12595_ACEOF 12596cat confdefs.h >>conftest.$ac_ext 12597cat >>conftest.$ac_ext <<_ACEOF 12598/* end confdefs.h. */ 12599/* Define oggpackB_read to an innocuous variant, in case <limits.h> declares oggpackB_read. 12600 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12601#define oggpackB_read innocuous_oggpackB_read 12602 12603/* System header to define __stub macros and hopefully few prototypes, 12604 which can conflict with char oggpackB_read (); below. 12605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12606 <limits.h> exists even on freestanding compilers. */ 12607 12608#ifdef __STDC__ 12609# include <limits.h> 12610#else 12611# include <assert.h> 12612#endif 12613 12614#undef oggpackB_read 12615 12616/* Override any GCC internal prototype to avoid an error. 12617 Use char because int might match the return type of a GCC 12618 builtin and then its argument prototype would still apply. */ 12619#ifdef __cplusplus 12620extern "C" 12621#endif 12622char oggpackB_read (); 12623/* The GNU C library defines this for functions which it implements 12624 to always fail with ENOSYS. Some functions are actually named 12625 something starting with __ and the normal name is an alias. */ 12626#if defined __stub_oggpackB_read || defined __stub___oggpackB_read 12627choke me 12628#endif 12629 12630int 12631main () 12632{ 12633return oggpackB_read (); 12634 ; 12635 return 0; 12636} 12637_ACEOF 12638rm -f conftest.$ac_objext conftest$ac_exeext 12639if { (ac_try="$ac_link" 12640case "(($ac_try" in 12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12642 *) ac_try_echo=$ac_try;; 12643esac 12644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12645$as_echo "$ac_try_echo") >&5 12646 (eval "$ac_link") 2>conftest.er1 12647 ac_status=$? 12648 grep -v '^ *+' conftest.er1 >conftest.err 12649 rm -f conftest.er1 12650 cat conftest.err >&5 12651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12652 (exit $ac_status); } && { 12653 test -z "$ac_c_werror_flag" || 12654 test ! -s conftest.err 12655 } && test -s conftest$ac_exeext && { 12656 test "$cross_compiling" = yes || 12657 $as_test_x conftest$ac_exeext 12658 }; then 12659 ac_cv_func_oggpackB_read=yes 12660else 12661 $as_echo "$as_me: failed program was:" >&5 12662sed 's/^/| /' conftest.$ac_ext >&5 12663 12664 ac_cv_func_oggpackB_read=no 12665fi 12666 12667rm -rf conftest.dSYM 12668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12669 conftest$ac_exeext conftest.$ac_ext 12670fi 12671{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_oggpackB_read" >&5 12672$as_echo "$ac_cv_func_oggpackB_read" >&6; } 12673if test "x$ac_cv_func_oggpackB_read" = x""yes; then 12674 : 12675else 12676 12677 { { $as_echo "$as_me:$LINENO: error: newer libogg version (1.1 or later) required" >&5 12678$as_echo "$as_me: error: newer libogg version (1.1 or later) required" >&2;} 12679 { (exit 1); exit 1; }; } 12680 12681fi 12682 12683 CFLAGS=$cflags_save 12684 LIBS=$libs_save 12685fi 12686 12687 12688HAVE_VORBIS=no 12689 12690 12691if test "x$HAVE_PKG_CONFIG" = "xyes" 12692then 12693 12694pkg_failed=no 12695{ $as_echo "$as_me:$LINENO: checking for VORBIS" >&5 12696$as_echo_n "checking for VORBIS... " >&6; } 12697 12698if test -n "$PKG_CONFIG"; then 12699 if test -n "$VORBIS_CFLAGS"; then 12700 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS" 12701 else 12702 if test -n "$PKG_CONFIG" && \ 12703 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.0.1\"") >&5 12704 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.0.1") 2>&5 12705 ac_status=$? 12706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12707 (exit $ac_status); }; then 12708 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.0.1" 2>/dev/null` 12709else 12710 pkg_failed=yes 12711fi 12712 fi 12713else 12714 pkg_failed=untried 12715fi 12716if test -n "$PKG_CONFIG"; then 12717 if test -n "$VORBIS_LIBS"; then 12718 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS" 12719 else 12720 if test -n "$PKG_CONFIG" && \ 12721 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.0.1\"") >&5 12722 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.0.1") 2>&5 12723 ac_status=$? 12724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12725 (exit $ac_status); }; then 12726 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.0.1" 2>/dev/null` 12727else 12728 pkg_failed=yes 12729fi 12730 fi 12731else 12732 pkg_failed=untried 12733fi 12734 12735 12736 12737if test $pkg_failed = yes; then 12738 12739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12740 _pkg_short_errors_supported=yes 12741else 12742 _pkg_short_errors_supported=no 12743fi 12744 if test $_pkg_short_errors_supported = yes; then 12745 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.0.1"` 12746 else 12747 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.0.1"` 12748 fi 12749 # Put the nasty error message in config.log where it belongs 12750 echo "$VORBIS_PKG_ERRORS" >&5 12751 12752 { $as_echo "$as_me:$LINENO: result: no" >&5 12753$as_echo "no" >&6; } 12754 HAVE_VORBIS=no 12755elif test $pkg_failed = untried; then 12756 HAVE_VORBIS=no 12757else 12758 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS 12759 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS 12760 { $as_echo "$as_me:$LINENO: result: yes" >&5 12761$as_echo "yes" >&6; } 12762 HAVE_VORBIS=yes 12763fi 12764 VORBISENC_LIBS="-lvorbisenc" 12765 12766fi 12767if test "x$HAVE_VORBIS" = "xno" 12768then 12769 12770# Check whether --with-vorbis was given. 12771if test "${with_vorbis+set}" = set; then 12772 withval=$with_vorbis; vorbis_prefix="$withval" 12773else 12774 vorbis_prefix="" 12775fi 12776 12777 12778# Check whether --with-vorbis-libraries was given. 12779if test "${with_vorbis_libraries+set}" = set; then 12780 withval=$with_vorbis_libraries; vorbis_libraries="$withval" 12781else 12782 vorbis_libraries="" 12783fi 12784 12785 12786# Check whether --with-vorbis-includes was given. 12787if test "${with_vorbis_includes+set}" = set; then 12788 withval=$with_vorbis_includes; vorbis_includes="$withval" 12789else 12790 vorbis_includes="" 12791fi 12792 12793# Check whether --enable-vorbistest was given. 12794if test "${enable_vorbistest+set}" = set; then 12795 enableval=$enable_vorbistest; 12796else 12797 enable_vorbistest=yes 12798fi 12799 12800 12801 if test "x$vorbis_libraries" != "x" ; then 12802 VORBIS_LIBS="-L$vorbis_libraries" 12803 elif test "x$vorbis_prefix" != "x" ; then 12804 VORBIS_LIBS="-L$vorbis_prefix/lib" 12805 elif test "x$prefix" != "xNONE"; then 12806 VORBIS_LIBS="-L$libdir" 12807 fi 12808 12809 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm" 12810 VORBISFILE_LIBS="-lvorbisfile" 12811 VORBISENC_LIBS="-lvorbisenc" 12812 12813 if test "x$vorbis_includes" != "x" ; then 12814 VORBIS_CFLAGS="-I$vorbis_includes" 12815 elif test "x$vorbis_prefix" != "x" ; then 12816 VORBIS_CFLAGS="-I$vorbis_prefix/include" 12817 elif test "x$prefix" != "xNONE"; then 12818 VORBIS_CFLAGS="" 12819 fi 12820 12821 12822 { $as_echo "$as_me:$LINENO: checking for Vorbis" >&5 12823$as_echo_n "checking for Vorbis... " >&6; } 12824 no_vorbis="" 12825 12826 12827 if test "x$enable_vorbistest" = "xyes" ; then 12828 ac_save_CFLAGS="$CFLAGS" 12829 ac_save_LIBS="$LIBS" 12830 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS" 12831 LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS" 12832 rm -f conf.vorbistest 12833 if test "$cross_compiling" = yes; then 12834 echo $ac_n "cross compiling; assumed OK... $ac_c" 12835else 12836 cat >conftest.$ac_ext <<_ACEOF 12837/* confdefs.h. */ 12838_ACEOF 12839cat confdefs.h >>conftest.$ac_ext 12840cat >>conftest.$ac_ext <<_ACEOF 12841/* end confdefs.h. */ 12842 12843#include <stdio.h> 12844#include <stdlib.h> 12845#include <string.h> 12846#include <vorbis/codec.h> 12847#include <vorbis/vorbisenc.h> 12848 12849int main () 12850{ 12851 vorbis_block vb; 12852 vorbis_dsp_state vd; 12853 vorbis_info vi; 12854 12855 vorbis_info_init (&vi); 12856 vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1); 12857 vorbis_analysis_init (&vd, &vi); 12858 vorbis_block_init (&vd, &vb); 12859 /* this function was added in 1.0rc3, so this is what we're testing for */ 12860 vorbis_bitrate_addblock (&vb); 12861 12862 system("touch conf.vorbistest"); 12863 return 0; 12864} 12865 12866 12867_ACEOF 12868rm -f conftest$ac_exeext 12869if { (ac_try="$ac_link" 12870case "(($ac_try" in 12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12872 *) ac_try_echo=$ac_try;; 12873esac 12874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12875$as_echo "$ac_try_echo") >&5 12876 (eval "$ac_link") 2>&5 12877 ac_status=$? 12878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12880 { (case "(($ac_try" in 12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12882 *) ac_try_echo=$ac_try;; 12883esac 12884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12885$as_echo "$ac_try_echo") >&5 12886 (eval "$ac_try") 2>&5 12887 ac_status=$? 12888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12889 (exit $ac_status); }; }; then 12890 : 12891else 12892 $as_echo "$as_me: program exited with status $ac_status" >&5 12893$as_echo "$as_me: failed program was:" >&5 12894sed 's/^/| /' conftest.$ac_ext >&5 12895 12896( exit $ac_status ) 12897no_vorbis=yes 12898fi 12899rm -rf conftest.dSYM 12900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12901fi 12902 12903 12904 CFLAGS="$ac_save_CFLAGS" 12905 LIBS="$ac_save_LIBS" 12906 fi 12907 12908 if test "x$no_vorbis" = "x" ; then 12909 { $as_echo "$as_me:$LINENO: result: yes" >&5 12910$as_echo "yes" >&6; } 12911 HAVE_VORBIS=yes 12912 else 12913 { $as_echo "$as_me:$LINENO: result: no" >&5 12914$as_echo "no" >&6; } 12915 if test -f conf.vorbistest ; then 12916 : 12917 else 12918 echo "*** Could not run Vorbis test program, checking why..." 12919 CFLAGS="$CFLAGS $VORBIS_CFLAGS" 12920 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS" 12921 cat >conftest.$ac_ext <<_ACEOF 12922/* confdefs.h. */ 12923_ACEOF 12924cat confdefs.h >>conftest.$ac_ext 12925cat >>conftest.$ac_ext <<_ACEOF 12926/* end confdefs.h. */ 12927 12928#include <stdio.h> 12929#include <vorbis/codec.h> 12930 12931int 12932main () 12933{ 12934 return 0; 12935 ; 12936 return 0; 12937} 12938_ACEOF 12939rm -f conftest.$ac_objext conftest$ac_exeext 12940if { (ac_try="$ac_link" 12941case "(($ac_try" in 12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12943 *) ac_try_echo=$ac_try;; 12944esac 12945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12946$as_echo "$ac_try_echo") >&5 12947 (eval "$ac_link") 2>conftest.er1 12948 ac_status=$? 12949 grep -v '^ *+' conftest.er1 >conftest.err 12950 rm -f conftest.er1 12951 cat conftest.err >&5 12952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12953 (exit $ac_status); } && { 12954 test -z "$ac_c_werror_flag" || 12955 test ! -s conftest.err 12956 } && test -s conftest$ac_exeext && { 12957 test "$cross_compiling" = yes || 12958 $as_test_x conftest$ac_exeext 12959 }; then 12960 echo "*** The test program compiled, but did not run. This usually means" 12961 echo "*** that the run-time linker is not finding Vorbis or finding the wrong" 12962 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your" 12963 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 12964 echo "*** to the installed location Also, make sure you have run ldconfig if that" 12965 echo "*** is required on your system" 12966 echo "***" 12967 echo "*** If you have an old version installed, it is best to remove it, although" 12968 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 12969else 12970 $as_echo "$as_me: failed program was:" >&5 12971sed 's/^/| /' conftest.$ac_ext >&5 12972 12973 echo "*** The test program failed to compile or link. See the file config.log for the" 12974 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed" 12975 echo "*** or that you have moved Vorbis since it was installed." 12976fi 12977 12978rm -rf conftest.dSYM 12979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12980 conftest$ac_exeext conftest.$ac_ext 12981 CFLAGS="$ac_save_CFLAGS" 12982 LIBS="$ac_save_LIBS" 12983 fi 12984 VORBIS_CFLAGS="" 12985 VORBIS_LIBS="" 12986 VORBISFILE_LIBS="" 12987 VORBISENC_LIBS="" 12988 HAVE_VORBIS=no 12989 fi 12990 12991 12992 12993 12994 rm -f conf.vorbistest 12995 12996fi 12997 12998HAVE_SDL=no 12999 13000 13001# Check whether --with-sdl-prefix was given. 13002if test "${with_sdl_prefix+set}" = set; then 13003 withval=$with_sdl_prefix; sdl_prefix="$withval" 13004else 13005 sdl_prefix="" 13006fi 13007 13008 13009# Check whether --with-sdl-exec-prefix was given. 13010if test "${with_sdl_exec_prefix+set}" = set; then 13011 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 13012else 13013 sdl_exec_prefix="" 13014fi 13015 13016# Check whether --enable-sdltest was given. 13017if test "${enable_sdltest+set}" = set; then 13018 enableval=$enable_sdltest; 13019else 13020 enable_sdltest=yes 13021fi 13022 13023 13024 if test x$sdl_exec_prefix != x ; then 13025 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 13026 if test x${SDL_CONFIG+set} != xset ; then 13027 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 13028 fi 13029 fi 13030 if test x$sdl_prefix != x ; then 13031 sdl_args="$sdl_args --prefix=$sdl_prefix" 13032 if test x${SDL_CONFIG+set} != xset ; then 13033 SDL_CONFIG=$sdl_prefix/bin/sdl-config 13034 fi 13035 fi 13036 13037 13038 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 13039 # Extract the first word of "sdl-config", so it can be a program name with args. 13040set dummy sdl-config; ac_word=$2 13041{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13042$as_echo_n "checking for $ac_word... " >&6; } 13043if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 13044 $as_echo_n "(cached) " >&6 13045else 13046 case $SDL_CONFIG in 13047 [\\/]* | ?:[\\/]*) 13048 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 13049 ;; 13050 *) 13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13052for as_dir in $PATH 13053do 13054 IFS=$as_save_IFS 13055 test -z "$as_dir" && as_dir=. 13056 for ac_exec_ext in '' $ac_executable_extensions; do 13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13058 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13059 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13060 break 2 13061 fi 13062done 13063done 13064IFS=$as_save_IFS 13065 13066 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 13067 ;; 13068esac 13069fi 13070SDL_CONFIG=$ac_cv_path_SDL_CONFIG 13071if test -n "$SDL_CONFIG"; then 13072 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 13073$as_echo "$SDL_CONFIG" >&6; } 13074else 13075 { $as_echo "$as_me:$LINENO: result: no" >&5 13076$as_echo "no" >&6; } 13077fi 13078 13079 13080 min_sdl_version=0.11.0 13081 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 13082$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 13083 no_sdl="" 13084 if test "$SDL_CONFIG" = "no" ; then 13085 no_sdl=yes 13086 else 13087 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 13088 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 13089 13090 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 13091 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 13092 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 13093 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 13094 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 13095 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 13096 if test "x$enable_sdltest" = "xyes" ; then 13097 ac_save_CFLAGS="$CFLAGS" 13098 ac_save_CXXFLAGS="$CXXFLAGS" 13099 ac_save_LIBS="$LIBS" 13100 CFLAGS="$CFLAGS $SDL_CFLAGS" 13101 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 13102 LIBS="$LIBS $SDL_LIBS" 13103 rm -f conf.sdltest 13104 if test "$cross_compiling" = yes; then 13105 echo $ac_n "cross compiling; assumed OK... $ac_c" 13106else 13107 cat >conftest.$ac_ext <<_ACEOF 13108/* confdefs.h. */ 13109_ACEOF 13110cat confdefs.h >>conftest.$ac_ext 13111cat >>conftest.$ac_ext <<_ACEOF 13112/* end confdefs.h. */ 13113 13114#include <stdio.h> 13115#include <stdlib.h> 13116#include <string.h> 13117#include "SDL.h" 13118 13119char* 13120my_strdup (char *str) 13121{ 13122 char *new_str; 13123 13124 if (str) 13125 { 13126 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 13127 strcpy (new_str, str); 13128 } 13129 else 13130 new_str = NULL; 13131 13132 return new_str; 13133} 13134 13135int main (int argc, char *argv[]) 13136{ 13137 int major, minor, micro; 13138 char *tmp_version; 13139 13140 /* This hangs on some systems (?) 13141 system ("touch conf.sdltest"); 13142 */ 13143 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 13144 13145 /* HP/UX 9 (%@#!) writes to sscanf strings */ 13146 tmp_version = my_strdup("$min_sdl_version"); 13147 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 13148 printf("%s, bad version string\n", "$min_sdl_version"); 13149 exit(1); 13150 } 13151 13152 if (($sdl_major_version > major) || 13153 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 13154 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 13155 { 13156 return 0; 13157 } 13158 else 13159 { 13160 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 13161 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 13162 printf("*** best to upgrade to the required version.\n"); 13163 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 13164 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 13165 printf("*** config.cache before re-running configure\n"); 13166 return 1; 13167 } 13168} 13169 13170 13171_ACEOF 13172rm -f conftest$ac_exeext 13173if { (ac_try="$ac_link" 13174case "(($ac_try" in 13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13176 *) ac_try_echo=$ac_try;; 13177esac 13178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13179$as_echo "$ac_try_echo") >&5 13180 (eval "$ac_link") 2>&5 13181 ac_status=$? 13182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13184 { (case "(($ac_try" in 13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13186 *) ac_try_echo=$ac_try;; 13187esac 13188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13189$as_echo "$ac_try_echo") >&5 13190 (eval "$ac_try") 2>&5 13191 ac_status=$? 13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13193 (exit $ac_status); }; }; then 13194 : 13195else 13196 $as_echo "$as_me: program exited with status $ac_status" >&5 13197$as_echo "$as_me: failed program was:" >&5 13198sed 's/^/| /' conftest.$ac_ext >&5 13199 13200( exit $ac_status ) 13201no_sdl=yes 13202fi 13203rm -rf conftest.dSYM 13204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13205fi 13206 13207 13208 CFLAGS="$ac_save_CFLAGS" 13209 CXXFLAGS="$ac_save_CXXFLAGS" 13210 LIBS="$ac_save_LIBS" 13211 fi 13212 fi 13213 if test "x$no_sdl" = x ; then 13214 { $as_echo "$as_me:$LINENO: result: yes" >&5 13215$as_echo "yes" >&6; } 13216 13217 HAVE_SDL=yes 13218 SDL_LIBS=`$SDL_CONFIG --libs` 13219 13220 else 13221 { $as_echo "$as_me:$LINENO: result: no" >&5 13222$as_echo "no" >&6; } 13223 if test "$SDL_CONFIG" = "no" ; then 13224 echo "*** The sdl-config script installed by SDL could not be found" 13225 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 13226 echo "*** your path, or set the SDL_CONFIG environment variable to the" 13227 echo "*** full path to sdl-config." 13228 else 13229 if test -f conf.sdltest ; then 13230 : 13231 else 13232 echo "*** Could not run SDL test program, checking why..." 13233 CFLAGS="$CFLAGS $SDL_CFLAGS" 13234 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 13235 LIBS="$LIBS $SDL_LIBS" 13236 cat >conftest.$ac_ext <<_ACEOF 13237/* confdefs.h. */ 13238_ACEOF 13239cat confdefs.h >>conftest.$ac_ext 13240cat >>conftest.$ac_ext <<_ACEOF 13241/* end confdefs.h. */ 13242 13243#include <stdio.h> 13244#include "SDL.h" 13245 13246int main(int argc, char *argv[]) 13247{ return 0; } 13248#undef main 13249#define main K_and_R_C_main 13250 13251int 13252main () 13253{ 13254 return 0; 13255 ; 13256 return 0; 13257} 13258_ACEOF 13259rm -f conftest.$ac_objext conftest$ac_exeext 13260if { (ac_try="$ac_link" 13261case "(($ac_try" in 13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13263 *) ac_try_echo=$ac_try;; 13264esac 13265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13266$as_echo "$ac_try_echo") >&5 13267 (eval "$ac_link") 2>conftest.er1 13268 ac_status=$? 13269 grep -v '^ *+' conftest.er1 >conftest.err 13270 rm -f conftest.er1 13271 cat conftest.err >&5 13272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13273 (exit $ac_status); } && { 13274 test -z "$ac_c_werror_flag" || 13275 test ! -s conftest.err 13276 } && test -s conftest$ac_exeext && { 13277 test "$cross_compiling" = yes || 13278 $as_test_x conftest$ac_exeext 13279 }; then 13280 echo "*** The test program compiled, but did not run. This usually means" 13281 echo "*** that the run-time linker is not finding SDL or finding the wrong" 13282 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 13283 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 13284 echo "*** to the installed location Also, make sure you have run ldconfig if that" 13285 echo "*** is required on your system" 13286 echo "***" 13287 echo "*** If you have an old version installed, it is best to remove it, although" 13288 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 13289else 13290 $as_echo "$as_me: failed program was:" >&5 13291sed 's/^/| /' conftest.$ac_ext >&5 13292 13293 echo "*** The test program failed to compile or link. See the file config.log for the" 13294 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 13295 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 13296 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 13297fi 13298 13299rm -rf conftest.dSYM 13300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13301 conftest$ac_exeext conftest.$ac_ext 13302 CFLAGS="$ac_save_CFLAGS" 13303 CXXFLAGS="$ac_save_CXXFLAGS" 13304 LIBS="$ac_save_LIBS" 13305 fi 13306 fi 13307 SDL_CFLAGS="" 13308 SDL_LIBS="" 13309 { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&5 13310$as_echo "$as_me: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&2;} 13311 fi 13312 13313 13314 rm -f conf.sdltest 13315 13316 13317HAVE_OSS=no 13318 13319 13320 13321for ac_header in sys/soundcard.h soundcard.h machine/soundcard.h 13322do 13323as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13325 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13326$as_echo_n "checking for $ac_header... " >&6; } 13327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13328 $as_echo_n "(cached) " >&6 13329fi 13330ac_res=`eval 'as_val=${'$as_ac_Header'} 13331 $as_echo "$as_val"'` 13332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13333$as_echo "$ac_res" >&6; } 13334else 13335 # Is the header compilable? 13336{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13337$as_echo_n "checking $ac_header usability... " >&6; } 13338cat >conftest.$ac_ext <<_ACEOF 13339/* confdefs.h. */ 13340_ACEOF 13341cat confdefs.h >>conftest.$ac_ext 13342cat >>conftest.$ac_ext <<_ACEOF 13343/* end confdefs.h. */ 13344$ac_includes_default 13345#include <$ac_header> 13346_ACEOF 13347rm -f conftest.$ac_objext 13348if { (ac_try="$ac_compile" 13349case "(($ac_try" in 13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13351 *) ac_try_echo=$ac_try;; 13352esac 13353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13354$as_echo "$ac_try_echo") >&5 13355 (eval "$ac_compile") 2>conftest.er1 13356 ac_status=$? 13357 grep -v '^ *+' conftest.er1 >conftest.err 13358 rm -f conftest.er1 13359 cat conftest.err >&5 13360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13361 (exit $ac_status); } && { 13362 test -z "$ac_c_werror_flag" || 13363 test ! -s conftest.err 13364 } && test -s conftest.$ac_objext; then 13365 ac_header_compiler=yes 13366else 13367 $as_echo "$as_me: failed program was:" >&5 13368sed 's/^/| /' conftest.$ac_ext >&5 13369 13370 ac_header_compiler=no 13371fi 13372 13373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13374{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13375$as_echo "$ac_header_compiler" >&6; } 13376 13377# Is the header present? 13378{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13379$as_echo_n "checking $ac_header presence... " >&6; } 13380cat >conftest.$ac_ext <<_ACEOF 13381/* confdefs.h. */ 13382_ACEOF 13383cat confdefs.h >>conftest.$ac_ext 13384cat >>conftest.$ac_ext <<_ACEOF 13385/* end confdefs.h. */ 13386#include <$ac_header> 13387_ACEOF 13388if { (ac_try="$ac_cpp conftest.$ac_ext" 13389case "(($ac_try" in 13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13391 *) ac_try_echo=$ac_try;; 13392esac 13393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13394$as_echo "$ac_try_echo") >&5 13395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13396 ac_status=$? 13397 grep -v '^ *+' conftest.er1 >conftest.err 13398 rm -f conftest.er1 13399 cat conftest.err >&5 13400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13401 (exit $ac_status); } >/dev/null && { 13402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13403 test ! -s conftest.err 13404 }; then 13405 ac_header_preproc=yes 13406else 13407 $as_echo "$as_me: failed program was:" >&5 13408sed 's/^/| /' conftest.$ac_ext >&5 13409 13410 ac_header_preproc=no 13411fi 13412 13413rm -f conftest.err conftest.$ac_ext 13414{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13415$as_echo "$ac_header_preproc" >&6; } 13416 13417# So? What about this header? 13418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13419 yes:no: ) 13420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13421$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13423$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13424 ac_header_preproc=yes 13425 ;; 13426 no:yes:* ) 13427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13428$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13430$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13432$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13434$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13436$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13438$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13439 13440 ;; 13441esac 13442{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13443$as_echo_n "checking for $ac_header... " >&6; } 13444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13445 $as_echo_n "(cached) " >&6 13446else 13447 eval "$as_ac_Header=\$ac_header_preproc" 13448fi 13449ac_res=`eval 'as_val=${'$as_ac_Header'} 13450 $as_echo "$as_val"'` 13451 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13452$as_echo "$ac_res" >&6; } 13453 13454fi 13455as_val=`eval 'as_val=${'$as_ac_Header'} 13456 $as_echo "$as_val"'` 13457 if test "x$as_val" = x""yes; then 13458 cat >>confdefs.h <<_ACEOF 13459#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13460_ACEOF 13461 13462 HAVE_OSS=yes 13463 break 13464 13465fi 13466 13467done 13468 13469if test x$HAVE_OSS != xyes; then 13470 { $as_echo "$as_me:$LINENO: WARNING: OSS audio support not found -- not compiling player_example" >&5 13471$as_echo "$as_me: WARNING: OSS audio support not found -- not compiling player_example" >&2;} 13472fi 13473 13474OSS_LIBS= 13475case "$target_os" in 13476 openbsd*) 13477 OSS_LIBS='-lossaudio' 13478 ;; 13479esac 13480 13481 13482HAVE_PNG=no 13483if test "x$HAVE_PKG_CONFIG" = "xyes" 13484then 13485 13486pkg_failed=no 13487{ $as_echo "$as_me:$LINENO: checking for PNG" >&5 13488$as_echo_n "checking for PNG... " >&6; } 13489 13490if test -n "$PKG_CONFIG"; then 13491 if test -n "$PNG_CFLAGS"; then 13492 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 13493 else 13494 if test -n "$PKG_CONFIG" && \ 13495 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5 13496 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 13497 ac_status=$? 13498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13499 (exit $ac_status); }; then 13500 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 13501else 13502 pkg_failed=yes 13503fi 13504 fi 13505else 13506 pkg_failed=untried 13507fi 13508if test -n "$PKG_CONFIG"; then 13509 if test -n "$PNG_LIBS"; then 13510 pkg_cv_PNG_LIBS="$PNG_LIBS" 13511 else 13512 if test -n "$PKG_CONFIG" && \ 13513 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5 13514 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 13515 ac_status=$? 13516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13517 (exit $ac_status); }; then 13518 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 13519else 13520 pkg_failed=yes 13521fi 13522 fi 13523else 13524 pkg_failed=untried 13525fi 13526 13527 13528 13529if test $pkg_failed = yes; then 13530 13531if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13532 _pkg_short_errors_supported=yes 13533else 13534 _pkg_short_errors_supported=no 13535fi 13536 if test $_pkg_short_errors_supported = yes; then 13537 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng"` 13538 else 13539 PNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng"` 13540 fi 13541 # Put the nasty error message in config.log where it belongs 13542 echo "$PNG_PKG_ERRORS" >&5 13543 13544 { $as_echo "$as_me:$LINENO: result: no" >&5 13545$as_echo "no" >&6; } 13546 HAVE_PNG=no 13547elif test $pkg_failed = untried; then 13548 HAVE_PNG=no 13549else 13550 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 13551 PNG_LIBS=$pkg_cv_PNG_LIBS 13552 { $as_echo "$as_me:$LINENO: result: yes" >&5 13553$as_echo "yes" >&6; } 13554 HAVE_PNG=yes 13555fi 13556fi 13557 13558 13559 13560HAVE_CAIRO=no 13561# Check whether --enable-telemetry was given. 13562if test "${enable_telemetry+set}" = set; then 13563 enableval=$enable_telemetry; ac_enable_telemetry=$enableval 13564else 13565 ac_enable_telemetry=no 13566fi 13567 13568 13569if test "x${ac_enable_telemetry}" = xyes; then 13570 if test "x$HAVE_PKG_CONFIG" = "xyes" 13571 then 13572 13573pkg_failed=no 13574{ $as_echo "$as_me:$LINENO: checking for CAIRO" >&5 13575$as_echo_n "checking for CAIRO... " >&6; } 13576 13577if test -n "$PKG_CONFIG"; then 13578 if test -n "$CAIRO_CFLAGS"; then 13579 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" 13580 else 13581 if test -n "$PKG_CONFIG" && \ 13582 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5 13583 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 13584 ac_status=$? 13585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13586 (exit $ac_status); }; then 13587 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null` 13588else 13589 pkg_failed=yes 13590fi 13591 fi 13592else 13593 pkg_failed=untried 13594fi 13595if test -n "$PKG_CONFIG"; then 13596 if test -n "$CAIRO_LIBS"; then 13597 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" 13598 else 13599 if test -n "$PKG_CONFIG" && \ 13600 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5 13601 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 13602 ac_status=$? 13603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13604 (exit $ac_status); }; then 13605 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null` 13606else 13607 pkg_failed=yes 13608fi 13609 fi 13610else 13611 pkg_failed=untried 13612fi 13613 13614 13615 13616if test $pkg_failed = yes; then 13617 13618if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13619 _pkg_short_errors_supported=yes 13620else 13621 _pkg_short_errors_supported=no 13622fi 13623 if test $_pkg_short_errors_supported = yes; then 13624 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"` 13625 else 13626 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"` 13627 fi 13628 # Put the nasty error message in config.log where it belongs 13629 echo "$CAIRO_PKG_ERRORS" >&5 13630 13631 { $as_echo "$as_me:$LINENO: result: no" >&5 13632$as_echo "no" >&6; } 13633 HAVE_CAIRO=no 13634elif test $pkg_failed = untried; then 13635 HAVE_CAIRO=no 13636else 13637 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS 13638 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS 13639 { $as_echo "$as_me:$LINENO: result: yes" >&5 13640$as_echo "yes" >&6; } 13641 HAVE_CAIRO=yes 13642fi 13643 13644cat >>confdefs.h <<\_ACEOF 13645#define HAVE_CAIRO /**/ 13646_ACEOF 13647 13648 fi 13649 if test x$HAVE_CAIRO != xyes; then 13650 { $as_echo "$as_me:$LINENO: WARNING: libcairo not found -- not compiling telemetry output support " >&5 13651$as_echo "$as_me: WARNING: libcairo not found -- not compiling telemetry output support " >&2;} 13652 fi 13653 13654 13655fi 13656 13657 13658 13659ac_enable_float=yes 13660# Check whether --enable-float was given. 13661if test "${enable_float+set}" = set; then 13662 enableval=$enable_float; ac_enable_float=$enableval 13663else 13664 ac_enable_float=yes 13665fi 13666 13667 13668if test "x${ac_enable_float}" != xyes ; then 13669 13670cat >>confdefs.h <<\_ACEOF 13671#define THEORA_DISABLE_FLOAT /**/ 13672_ACEOF 13673 13674fi 13675 13676 13677if test "x${ac_enable_float}" != xyes; then 13678 THEORA_DISABLE_FLOAT_TRUE= 13679 THEORA_DISABLE_FLOAT_FALSE='#' 13680else 13681 THEORA_DISABLE_FLOAT_TRUE='#' 13682 THEORA_DISABLE_FLOAT_FALSE= 13683fi 13684 13685 13686 13687ac_enable_encode=yes 13688# Check whether --enable-encode was given. 13689if test "${enable_encode+set}" = set; then 13690 enableval=$enable_encode; ac_enable_encode=$enableval 13691else 13692 ac_enable_encode=yes 13693fi 13694 13695 13696if test "x${ac_enable_encode}" != xyes ; then 13697 13698cat >>confdefs.h <<\_ACEOF 13699#define THEORA_DISABLE_ENCODE /**/ 13700_ACEOF 13701 13702else 13703 if test x$HAVE_VORBIS = xyes; then 13704 BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES encoder_example\$(EXEEXT)" 13705 else 13706 { $as_echo "$as_me:$LINENO: Vorbis missing, cannot build example encoder" >&5 13707$as_echo "$as_me: Vorbis missing, cannot build example encoder" >&6;} 13708 fi 13709fi 13710 13711 13712if test "x${ac_enable_encode}" != xyes; then 13713 THEORA_DISABLE_ENCODE_TRUE= 13714 THEORA_DISABLE_ENCODE_FALSE='#' 13715else 13716 THEORA_DISABLE_ENCODE_TRUE='#' 13717 THEORA_DISABLE_ENCODE_FALSE= 13718fi 13719 13720 13721 13722ac_enable_examples=yes 13723# Check whether --enable-examples was given. 13724if test "${enable_examples+set}" = set; then 13725 enableval=$enable_examples; ac_enable_examples=$enableval 13726else 13727 ac_enable_examples=yes 13728fi 13729 13730 13731 13732if test "x${ac_enable_examples}" != xno; then 13733 THEORA_ENABLE_EXAMPLES_TRUE= 13734 THEORA_ENABLE_EXAMPLES_FALSE='#' 13735else 13736 THEORA_ENABLE_EXAMPLES_TRUE='#' 13737 THEORA_ENABLE_EXAMPLES_FALSE= 13738fi 13739 13740 13741 13742 13743 13744 13745 13746{ $as_echo "$as_me:$LINENO: checking for library containing ftime" >&5 13747$as_echo_n "checking for library containing ftime... " >&6; } 13748if test "${ac_cv_search_ftime+set}" = set; then 13749 $as_echo_n "(cached) " >&6 13750else 13751 ac_func_search_save_LIBS=$LIBS 13752cat >conftest.$ac_ext <<_ACEOF 13753/* confdefs.h. */ 13754_ACEOF 13755cat confdefs.h >>conftest.$ac_ext 13756cat >>conftest.$ac_ext <<_ACEOF 13757/* end confdefs.h. */ 13758 13759/* Override any GCC internal prototype to avoid an error. 13760 Use char because int might match the return type of a GCC 13761 builtin and then its argument prototype would still apply. */ 13762#ifdef __cplusplus 13763extern "C" 13764#endif 13765char ftime (); 13766int 13767main () 13768{ 13769return ftime (); 13770 ; 13771 return 0; 13772} 13773_ACEOF 13774for ac_lib in '' ; do 13775 if test -z "$ac_lib"; then 13776 ac_res="none required" 13777 else 13778 ac_res=-l$ac_lib 13779 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13780 fi 13781 rm -f conftest.$ac_objext conftest$ac_exeext 13782if { (ac_try="$ac_link" 13783case "(($ac_try" in 13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13785 *) ac_try_echo=$ac_try;; 13786esac 13787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13788$as_echo "$ac_try_echo") >&5 13789 (eval "$ac_link") 2>conftest.er1 13790 ac_status=$? 13791 grep -v '^ *+' conftest.er1 >conftest.err 13792 rm -f conftest.er1 13793 cat conftest.err >&5 13794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13795 (exit $ac_status); } && { 13796 test -z "$ac_c_werror_flag" || 13797 test ! -s conftest.err 13798 } && test -s conftest$ac_exeext && { 13799 test "$cross_compiling" = yes || 13800 $as_test_x conftest$ac_exeext 13801 }; then 13802 ac_cv_search_ftime=$ac_res 13803else 13804 $as_echo "$as_me: failed program was:" >&5 13805sed 's/^/| /' conftest.$ac_ext >&5 13806 13807 13808fi 13809 13810rm -rf conftest.dSYM 13811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13812 conftest$ac_exeext 13813 if test "${ac_cv_search_ftime+set}" = set; then 13814 break 13815fi 13816done 13817if test "${ac_cv_search_ftime+set}" = set; then 13818 : 13819else 13820 ac_cv_search_ftime=no 13821fi 13822rm conftest.$ac_ext 13823LIBS=$ac_func_search_save_LIBS 13824fi 13825{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_ftime" >&5 13826$as_echo "$ac_cv_search_ftime" >&6; } 13827ac_res=$ac_cv_search_ftime 13828if test "$ac_res" != no; then 13829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13830 13831fi 13832 13833 13834{ $as_echo "$as_me:$LINENO: checking for getopt_long" >&5 13835$as_echo_n "checking for getopt_long... " >&6; } 13836if test "${ac_cv_func_getopt_long+set}" = set; then 13837 $as_echo_n "(cached) " >&6 13838else 13839 cat >conftest.$ac_ext <<_ACEOF 13840/* confdefs.h. */ 13841_ACEOF 13842cat confdefs.h >>conftest.$ac_ext 13843cat >>conftest.$ac_ext <<_ACEOF 13844/* end confdefs.h. */ 13845/* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long. 13846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13847#define getopt_long innocuous_getopt_long 13848 13849/* System header to define __stub macros and hopefully few prototypes, 13850 which can conflict with char getopt_long (); below. 13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13852 <limits.h> exists even on freestanding compilers. */ 13853 13854#ifdef __STDC__ 13855# include <limits.h> 13856#else 13857# include <assert.h> 13858#endif 13859 13860#undef getopt_long 13861 13862/* Override any GCC internal prototype to avoid an error. 13863 Use char because int might match the return type of a GCC 13864 builtin and then its argument prototype would still apply. */ 13865#ifdef __cplusplus 13866extern "C" 13867#endif 13868char getopt_long (); 13869/* The GNU C library defines this for functions which it implements 13870 to always fail with ENOSYS. Some functions are actually named 13871 something starting with __ and the normal name is an alias. */ 13872#if defined __stub_getopt_long || defined __stub___getopt_long 13873choke me 13874#endif 13875 13876int 13877main () 13878{ 13879return getopt_long (); 13880 ; 13881 return 0; 13882} 13883_ACEOF 13884rm -f conftest.$ac_objext conftest$ac_exeext 13885if { (ac_try="$ac_link" 13886case "(($ac_try" in 13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13888 *) ac_try_echo=$ac_try;; 13889esac 13890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13891$as_echo "$ac_try_echo") >&5 13892 (eval "$ac_link") 2>conftest.er1 13893 ac_status=$? 13894 grep -v '^ *+' conftest.er1 >conftest.err 13895 rm -f conftest.er1 13896 cat conftest.err >&5 13897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13898 (exit $ac_status); } && { 13899 test -z "$ac_c_werror_flag" || 13900 test ! -s conftest.err 13901 } && test -s conftest$ac_exeext && { 13902 test "$cross_compiling" = yes || 13903 $as_test_x conftest$ac_exeext 13904 }; then 13905 ac_cv_func_getopt_long=yes 13906else 13907 $as_echo "$as_me: failed program was:" >&5 13908sed 's/^/| /' conftest.$ac_ext >&5 13909 13910 ac_cv_func_getopt_long=no 13911fi 13912 13913rm -rf conftest.dSYM 13914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13915 conftest$ac_exeext conftest.$ac_ext 13916fi 13917{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5 13918$as_echo "$ac_cv_func_getopt_long" >&6; } 13919if test "x$ac_cv_func_getopt_long" = x""yes; then 13920 GETOPT_OBJS='' 13921else 13922 GETOPT_OBJS='getopt.$(OBJEXT) getopt1.$(OBJEXT)' 13923fi 13924 13925 13926 13927if test x$HAVE_SDL = xyes -a x$HAVE_OSS = xyes -a x$HAVE_VORBIS = xyes; then 13928 BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES player_example\$(EXEEXT)" 13929fi 13930if test x$HAVE_PNG = xyes; then 13931 BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES png2theora\$(EXEEXT)" 13932fi 13933 13934 13935 13936 13937 13938 13939ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile include/theora/Makefile examples/Makefile doc/Makefile doc/Doxyfile doc/spec/Makefile tests/Makefile m4/Makefile libtheora.spec theora.pc theora-uninstalled.pc theoradec.pc theoradec-uninstalled.pc theoraenc.pc theoraenc-uninstalled.pc" 13940 13941cat >confcache <<\_ACEOF 13942# This file is a shell script that caches the results of configure 13943# tests run on this system so they can be shared between configure 13944# scripts and configure runs, see configure's option --config-cache. 13945# It is not useful on other systems. If it contains results you don't 13946# want to keep, you may remove or edit it. 13947# 13948# config.status only pays attention to the cache file if you give it 13949# the --recheck option to rerun configure. 13950# 13951# `ac_cv_env_foo' variables (set or unset) will be overridden when 13952# loading this file, other *unset* `ac_cv_foo' will be assigned the 13953# following values. 13954 13955_ACEOF 13956 13957# The following way of writing the cache mishandles newlines in values, 13958# but we know of no workaround that is simple, portable, and efficient. 13959# So, we kill variables containing newlines. 13960# Ultrix sh set writes to stderr and can't be redirected directly, 13961# and sets the high bit in the cache file unless we assign to the vars. 13962( 13963 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13964 eval ac_val=\$$ac_var 13965 case $ac_val in #( 13966 *${as_nl}*) 13967 case $ac_var in #( 13968 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13969$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13970 esac 13971 case $ac_var in #( 13972 _ | IFS | as_nl) ;; #( 13973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13974 *) $as_unset $ac_var ;; 13975 esac ;; 13976 esac 13977 done 13978 13979 (set) 2>&1 | 13980 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13981 *${as_nl}ac_space=\ *) 13982 # `set' does not quote correctly, so add quotes (double-quote 13983 # substitution turns \\\\ into \\, and sed turns \\ into \). 13984 sed -n \ 13985 "s/'/'\\\\''/g; 13986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13987 ;; #( 13988 *) 13989 # `set' quotes correctly as required by POSIX, so do not add quotes. 13990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13991 ;; 13992 esac | 13993 sort 13994) | 13995 sed ' 13996 /^ac_cv_env_/b end 13997 t clear 13998 :clear 13999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14000 t end 14001 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14002 :end' >>confcache 14003if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14004 if test -w "$cache_file"; then 14005 test "x$cache_file" != "x/dev/null" && 14006 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 14007$as_echo "$as_me: updating cache $cache_file" >&6;} 14008 cat confcache >$cache_file 14009 else 14010 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 14011$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14012 fi 14013fi 14014rm -f confcache 14015 14016test "x$prefix" = xNONE && prefix=$ac_default_prefix 14017# Let make expand exec_prefix. 14018test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14019 14020DEFS=-DHAVE_CONFIG_H 14021 14022ac_libobjs= 14023ac_ltlibobjs= 14024for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14025 # 1. Remove the extension, and $U if already installed. 14026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14027 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14029 # will be set to the directory where LIBOBJS objects are built. 14030 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14031 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 14032done 14033LIBOBJS=$ac_libobjs 14034 14035LTLIBOBJS=$ac_ltlibobjs 14036 14037 14038if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14039 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 14040Usually this means the macro was only invoked conditionally." >&5 14041$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 14042Usually this means the macro was only invoked conditionally." >&2;} 14043 { (exit 1); exit 1; }; } 14044fi 14045if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14046 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14047Usually this means the macro was only invoked conditionally." >&5 14048$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 14049Usually this means the macro was only invoked conditionally." >&2;} 14050 { (exit 1); exit 1; }; } 14051fi 14052if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 14053 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined. 14054Usually this means the macro was only invoked conditionally." >&5 14055$as_echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined. 14056Usually this means the macro was only invoked conditionally." >&2;} 14057 { (exit 1); exit 1; }; } 14058fi 14059if test -z "${BUILD_SPEC_TRUE}" && test -z "${BUILD_SPEC_FALSE}"; then 14060 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SPEC\" was never defined. 14061Usually this means the macro was only invoked conditionally." >&5 14062$as_echo "$as_me: error: conditional \"BUILD_SPEC\" was never defined. 14063Usually this means the macro was only invoked conditionally." >&2;} 14064 { (exit 1); exit 1; }; } 14065fi 14066if test -z "${CPU_x86_64_TRUE}" && test -z "${CPU_x86_64_FALSE}"; then 14067 { { $as_echo "$as_me:$LINENO: error: conditional \"CPU_x86_64\" was never defined. 14068Usually this means the macro was only invoked conditionally." >&5 14069$as_echo "$as_me: error: conditional \"CPU_x86_64\" was never defined. 14070Usually this means the macro was only invoked conditionally." >&2;} 14071 { (exit 1); exit 1; }; } 14072fi 14073if test -z "${CPU_x86_32_TRUE}" && test -z "${CPU_x86_32_FALSE}"; then 14074 { { $as_echo "$as_me:$LINENO: error: conditional \"CPU_x86_32\" was never defined. 14075Usually this means the macro was only invoked conditionally." >&5 14076$as_echo "$as_me: error: conditional \"CPU_x86_32\" was never defined. 14077Usually this means the macro was only invoked conditionally." >&2;} 14078 { (exit 1); exit 1; }; } 14079fi 14080if test -z "${THEORA_DISABLE_FLOAT_TRUE}" && test -z "${THEORA_DISABLE_FLOAT_FALSE}"; then 14081 { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined. 14082Usually this means the macro was only invoked conditionally." >&5 14083$as_echo "$as_me: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined. 14084Usually this means the macro was only invoked conditionally." >&2;} 14085 { (exit 1); exit 1; }; } 14086fi 14087if test -z "${THEORA_DISABLE_ENCODE_TRUE}" && test -z "${THEORA_DISABLE_ENCODE_FALSE}"; then 14088 { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined. 14089Usually this means the macro was only invoked conditionally." >&5 14090$as_echo "$as_me: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined. 14091Usually this means the macro was only invoked conditionally." >&2;} 14092 { (exit 1); exit 1; }; } 14093fi 14094if test -z "${THEORA_ENABLE_EXAMPLES_TRUE}" && test -z "${THEORA_ENABLE_EXAMPLES_FALSE}"; then 14095 { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_ENABLE_EXAMPLES\" was never defined. 14096Usually this means the macro was only invoked conditionally." >&5 14097$as_echo "$as_me: error: conditional \"THEORA_ENABLE_EXAMPLES\" was never defined. 14098Usually this means the macro was only invoked conditionally." >&2;} 14099 { (exit 1); exit 1; }; } 14100fi 14101 14102: ${CONFIG_STATUS=./config.status} 14103ac_write_fail=0 14104ac_clean_files_save=$ac_clean_files 14105ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14106{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14107$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14108cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14109#! $SHELL 14110# Generated by $as_me. 14111# Run this file to recreate the current configuration. 14112# Compiler output produced by configure, useful for debugging 14113# configure, is in config.log if it exists. 14114 14115debug=false 14116ac_cs_recheck=false 14117ac_cs_silent=false 14118SHELL=\${CONFIG_SHELL-$SHELL} 14119_ACEOF 14120 14121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14122## --------------------- ## 14123## M4sh Initialization. ## 14124## --------------------- ## 14125 14126# Be more Bourne compatible 14127DUALCASE=1; export DUALCASE # for MKS sh 14128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14129 emulate sh 14130 NULLCMD=: 14131 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14132 # is contrary to our usage. Disable this feature. 14133 alias -g '${1+"$@"}'='"$@"' 14134 setopt NO_GLOB_SUBST 14135else 14136 case `(set -o) 2>/dev/null` in 14137 *posix*) set -o posix ;; 14138esac 14139 14140fi 14141 14142 14143 14144 14145# PATH needs CR 14146# Avoid depending upon Character Ranges. 14147as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14148as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14149as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14150as_cr_digits='0123456789' 14151as_cr_alnum=$as_cr_Letters$as_cr_digits 14152 14153as_nl=' 14154' 14155export as_nl 14156# Printing a long string crashes Solaris 7 /usr/bin/printf. 14157as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14159as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14160if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14161 as_echo='printf %s\n' 14162 as_echo_n='printf %s' 14163else 14164 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14165 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14166 as_echo_n='/usr/ucb/echo -n' 14167 else 14168 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14169 as_echo_n_body='eval 14170 arg=$1; 14171 case $arg in 14172 *"$as_nl"*) 14173 expr "X$arg" : "X\\(.*\\)$as_nl"; 14174 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14175 esac; 14176 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14177 ' 14178 export as_echo_n_body 14179 as_echo_n='sh -c $as_echo_n_body as_echo' 14180 fi 14181 export as_echo_body 14182 as_echo='sh -c $as_echo_body as_echo' 14183fi 14184 14185# The user is always right. 14186if test "${PATH_SEPARATOR+set}" != set; then 14187 PATH_SEPARATOR=: 14188 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14189 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14190 PATH_SEPARATOR=';' 14191 } 14192fi 14193 14194# Support unset when possible. 14195if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14196 as_unset=unset 14197else 14198 as_unset=false 14199fi 14200 14201 14202# IFS 14203# We need space, tab and new line, in precisely that order. Quoting is 14204# there to prevent editors from complaining about space-tab. 14205# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14206# splitting by setting IFS to empty value.) 14207IFS=" "" $as_nl" 14208 14209# Find who we are. Look in the path if we contain no directory separator. 14210case $0 in 14211 *[\\/]* ) as_myself=$0 ;; 14212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14213for as_dir in $PATH 14214do 14215 IFS=$as_save_IFS 14216 test -z "$as_dir" && as_dir=. 14217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14218done 14219IFS=$as_save_IFS 14220 14221 ;; 14222esac 14223# We did not find ourselves, most probably we were run as `sh COMMAND' 14224# in which case we are not to be found in the path. 14225if test "x$as_myself" = x; then 14226 as_myself=$0 14227fi 14228if test ! -f "$as_myself"; then 14229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14230 { (exit 1); exit 1; } 14231fi 14232 14233# Work around bugs in pre-3.0 UWIN ksh. 14234for as_var in ENV MAIL MAILPATH 14235do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14236done 14237PS1='$ ' 14238PS2='> ' 14239PS4='+ ' 14240 14241# NLS nuisances. 14242LC_ALL=C 14243export LC_ALL 14244LANGUAGE=C 14245export LANGUAGE 14246 14247# Required to use basename. 14248if expr a : '\(a\)' >/dev/null 2>&1 && 14249 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14250 as_expr=expr 14251else 14252 as_expr=false 14253fi 14254 14255if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14256 as_basename=basename 14257else 14258 as_basename=false 14259fi 14260 14261 14262# Name of the executable. 14263as_me=`$as_basename -- "$0" || 14264$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14265 X"$0" : 'X\(//\)$' \| \ 14266 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14267$as_echo X/"$0" | 14268 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14269 s//\1/ 14270 q 14271 } 14272 /^X\/\(\/\/\)$/{ 14273 s//\1/ 14274 q 14275 } 14276 /^X\/\(\/\).*/{ 14277 s//\1/ 14278 q 14279 } 14280 s/.*/./; q'` 14281 14282# CDPATH. 14283$as_unset CDPATH 14284 14285 14286 14287 as_lineno_1=$LINENO 14288 as_lineno_2=$LINENO 14289 test "x$as_lineno_1" != "x$as_lineno_2" && 14290 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14291 14292 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14293 # uniformly replaced by the line number. The first 'sed' inserts a 14294 # line-number line after each line using $LINENO; the second 'sed' 14295 # does the real work. The second script uses 'N' to pair each 14296 # line-number line with the line containing $LINENO, and appends 14297 # trailing '-' during substitution so that $LINENO is not a special 14298 # case at line end. 14299 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14300 # scripts with optimization help from Paolo Bonzini. Blame Lee 14301 # E. McMahon (1931-1989) for sed's syntax. :-) 14302 sed -n ' 14303 p 14304 /[$]LINENO/= 14305 ' <$as_myself | 14306 sed ' 14307 s/[$]LINENO.*/&-/ 14308 t lineno 14309 b 14310 :lineno 14311 N 14312 :loop 14313 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14314 t loop 14315 s/-\n.*// 14316 ' >$as_me.lineno && 14317 chmod +x "$as_me.lineno" || 14318 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14319 { (exit 1); exit 1; }; } 14320 14321 # Don't try to exec as it changes $[0], causing all sort of problems 14322 # (the dirname of $[0] is not the place where we might find the 14323 # original and so on. Autoconf is especially sensitive to this). 14324 . "./$as_me.lineno" 14325 # Exit status is that of the last command. 14326 exit 14327} 14328 14329 14330if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14331 as_dirname=dirname 14332else 14333 as_dirname=false 14334fi 14335 14336ECHO_C= ECHO_N= ECHO_T= 14337case `echo -n x` in 14338-n*) 14339 case `echo 'x\c'` in 14340 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14341 *) ECHO_C='\c';; 14342 esac;; 14343*) 14344 ECHO_N='-n';; 14345esac 14346if expr a : '\(a\)' >/dev/null 2>&1 && 14347 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14348 as_expr=expr 14349else 14350 as_expr=false 14351fi 14352 14353rm -f conf$$ conf$$.exe conf$$.file 14354if test -d conf$$.dir; then 14355 rm -f conf$$.dir/conf$$.file 14356else 14357 rm -f conf$$.dir 14358 mkdir conf$$.dir 2>/dev/null 14359fi 14360if (echo >conf$$.file) 2>/dev/null; then 14361 if ln -s conf$$.file conf$$ 2>/dev/null; then 14362 as_ln_s='ln -s' 14363 # ... but there are two gotchas: 14364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14366 # In both cases, we have to default to `cp -p'. 14367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14368 as_ln_s='cp -p' 14369 elif ln conf$$.file conf$$ 2>/dev/null; then 14370 as_ln_s=ln 14371 else 14372 as_ln_s='cp -p' 14373 fi 14374else 14375 as_ln_s='cp -p' 14376fi 14377rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14378rmdir conf$$.dir 2>/dev/null 14379 14380if mkdir -p . 2>/dev/null; then 14381 as_mkdir_p=: 14382else 14383 test -d ./-p && rmdir ./-p 14384 as_mkdir_p=false 14385fi 14386 14387if test -x / >/dev/null 2>&1; then 14388 as_test_x='test -x' 14389else 14390 if ls -dL / >/dev/null 2>&1; then 14391 as_ls_L_option=L 14392 else 14393 as_ls_L_option= 14394 fi 14395 as_test_x=' 14396 eval sh -c '\'' 14397 if test -d "$1"; then 14398 test -d "$1/."; 14399 else 14400 case $1 in 14401 -*)set "./$1";; 14402 esac; 14403 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14404 ???[sx]*):;;*)false;;esac;fi 14405 '\'' sh 14406 ' 14407fi 14408as_executable_p=$as_test_x 14409 14410# Sed expression to map a string onto a valid CPP name. 14411as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14412 14413# Sed expression to map a string onto a valid variable name. 14414as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14415 14416 14417exec 6>&1 14418 14419# Save the log message, to keep $[0] and so on meaningful, and to 14420# report actual input values of CONFIG_FILES etc. instead of their 14421# values after options handling. 14422ac_log=" 14423This file was extended by libtheora $as_me 1.1.1, which was 14424generated by GNU Autoconf 2.63. Invocation command line was 14425 14426 CONFIG_FILES = $CONFIG_FILES 14427 CONFIG_HEADERS = $CONFIG_HEADERS 14428 CONFIG_LINKS = $CONFIG_LINKS 14429 CONFIG_COMMANDS = $CONFIG_COMMANDS 14430 $ $0 $@ 14431 14432on `(hostname || uname -n) 2>/dev/null | sed 1q` 14433" 14434 14435_ACEOF 14436 14437case $ac_config_files in *" 14438"*) set x $ac_config_files; shift; ac_config_files=$*;; 14439esac 14440 14441case $ac_config_headers in *" 14442"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14443esac 14444 14445 14446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14447# Files that config.status was made for. 14448config_files="$ac_config_files" 14449config_headers="$ac_config_headers" 14450config_commands="$ac_config_commands" 14451 14452_ACEOF 14453 14454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14455ac_cs_usage="\ 14456\`$as_me' instantiates files from templates according to the 14457current configuration. 14458 14459Usage: $0 [OPTION]... [FILE]... 14460 14461 -h, --help print this help, then exit 14462 -V, --version print version number and configuration settings, then exit 14463 -q, --quiet, --silent 14464 do not print progress messages 14465 -d, --debug don't remove temporary files 14466 --recheck update $as_me by reconfiguring in the same conditions 14467 --file=FILE[:TEMPLATE] 14468 instantiate the configuration file FILE 14469 --header=FILE[:TEMPLATE] 14470 instantiate the configuration header FILE 14471 14472Configuration files: 14473$config_files 14474 14475Configuration headers: 14476$config_headers 14477 14478Configuration commands: 14479$config_commands 14480 14481Report bugs to <bug-autoconf@gnu.org>." 14482 14483_ACEOF 14484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14485ac_cs_version="\\ 14486libtheora config.status 1.1.1 14487configured by $0, generated by GNU Autoconf 2.63, 14488 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14489 14490Copyright (C) 2008 Free Software Foundation, Inc. 14491This config.status script is free software; the Free Software Foundation 14492gives unlimited permission to copy, distribute and modify it." 14493 14494ac_pwd='$ac_pwd' 14495srcdir='$srcdir' 14496INSTALL='$INSTALL' 14497AWK='$AWK' 14498test -n "\$AWK" || AWK=awk 14499_ACEOF 14500 14501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14502# The default lists apply if the user does not specify any file. 14503ac_need_defaults=: 14504while test $# != 0 14505do 14506 case $1 in 14507 --*=*) 14508 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14509 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14510 ac_shift=: 14511 ;; 14512 *) 14513 ac_option=$1 14514 ac_optarg=$2 14515 ac_shift=shift 14516 ;; 14517 esac 14518 14519 case $ac_option in 14520 # Handling of the options. 14521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14522 ac_cs_recheck=: ;; 14523 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14524 $as_echo "$ac_cs_version"; exit ;; 14525 --debug | --debu | --deb | --de | --d | -d ) 14526 debug=: ;; 14527 --file | --fil | --fi | --f ) 14528 $ac_shift 14529 case $ac_optarg in 14530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14531 esac 14532 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14533 ac_need_defaults=false;; 14534 --header | --heade | --head | --hea ) 14535 $ac_shift 14536 case $ac_optarg in 14537 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14538 esac 14539 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14540 ac_need_defaults=false;; 14541 --he | --h) 14542 # Conflict between --help and --header 14543 { $as_echo "$as_me: error: ambiguous option: $1 14544Try \`$0 --help' for more information." >&2 14545 { (exit 1); exit 1; }; };; 14546 --help | --hel | -h ) 14547 $as_echo "$ac_cs_usage"; exit ;; 14548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14549 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14550 ac_cs_silent=: ;; 14551 14552 # This is an error. 14553 -*) { $as_echo "$as_me: error: unrecognized option: $1 14554Try \`$0 --help' for more information." >&2 14555 { (exit 1); exit 1; }; } ;; 14556 14557 *) ac_config_targets="$ac_config_targets $1" 14558 ac_need_defaults=false ;; 14559 14560 esac 14561 shift 14562done 14563 14564ac_configure_extra_args= 14565 14566if $ac_cs_silent; then 14567 exec 6>/dev/null 14568 ac_configure_extra_args="$ac_configure_extra_args --silent" 14569fi 14570 14571_ACEOF 14572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14573if \$ac_cs_recheck; then 14574 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14575 shift 14576 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14577 CONFIG_SHELL='$SHELL' 14578 export CONFIG_SHELL 14579 exec "\$@" 14580fi 14581 14582_ACEOF 14583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14584exec 5>>config.log 14585{ 14586 echo 14587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14588## Running $as_me. ## 14589_ASBOX 14590 $as_echo "$ac_log" 14591} >&5 14592 14593_ACEOF 14594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14595# 14596# INIT-COMMANDS 14597# 14598AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14599 14600 14601# The HP-UX ksh and POSIX shell print the target directory to stdout 14602# if CDPATH is set. 14603(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14604 14605sed_quote_subst='$sed_quote_subst' 14606double_quote_subst='$double_quote_subst' 14607delay_variable_subst='$delay_variable_subst' 14608AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 14609DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14610OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14611macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14612macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14613enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14614enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14615pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14616enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14617host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14618host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14619host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14620build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14621build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14622build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14623SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14624Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14625GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14626EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14627FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14628LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14629NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14630LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14631max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14632ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14633exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14634lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14635lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14636lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14637reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14638reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14639deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14640file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14641AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14642AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14643STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14644RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14645old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14646old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14647old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14648CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14649CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14650compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14651GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14652lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14653lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14654lt_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"`' 14655lt_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"`' 14656objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14657SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14658ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14659MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14660lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14661lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14662lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14663lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14664lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14665need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14666DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14667NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14668LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14669OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14670OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14671libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14672shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14673extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14674archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14675enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14676export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14677whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14678compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14679old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14680old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14681archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14682archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14683module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14684module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14685with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14686allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14687no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14688hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14689hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14690hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14691hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14692hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14693hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14694hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14695hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14696inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14697link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14698fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14699always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14700export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14701exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14702include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14703prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14704file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14705variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14706need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14707need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14708version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14709runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14710shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14711shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14712libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14713library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14714soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14715postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14716postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14717finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14718finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14719hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14720sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14721sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14722hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14723enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14724enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14725enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14726old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14727striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14728 14729LTCC='$LTCC' 14730LTCFLAGS='$LTCFLAGS' 14731compiler='$compiler_DEFAULT' 14732 14733# Quote evaled strings. 14734for var in SED \ 14735GREP \ 14736EGREP \ 14737FGREP \ 14738LD \ 14739NM \ 14740LN_S \ 14741lt_SP2NL \ 14742lt_NL2SP \ 14743reload_flag \ 14744deplibs_check_method \ 14745file_magic_cmd \ 14746AR \ 14747AR_FLAGS \ 14748STRIP \ 14749RANLIB \ 14750CC \ 14751CFLAGS \ 14752compiler \ 14753lt_cv_sys_global_symbol_pipe \ 14754lt_cv_sys_global_symbol_to_cdecl \ 14755lt_cv_sys_global_symbol_to_c_name_address \ 14756lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14757SHELL \ 14758ECHO \ 14759lt_prog_compiler_no_builtin_flag \ 14760lt_prog_compiler_wl \ 14761lt_prog_compiler_pic \ 14762lt_prog_compiler_static \ 14763lt_cv_prog_compiler_c_o \ 14764need_locks \ 14765DSYMUTIL \ 14766NMEDIT \ 14767LIPO \ 14768OTOOL \ 14769OTOOL64 \ 14770shrext_cmds \ 14771export_dynamic_flag_spec \ 14772whole_archive_flag_spec \ 14773compiler_needs_object \ 14774with_gnu_ld \ 14775allow_undefined_flag \ 14776no_undefined_flag \ 14777hardcode_libdir_flag_spec \ 14778hardcode_libdir_flag_spec_ld \ 14779hardcode_libdir_separator \ 14780fix_srcfile_path \ 14781exclude_expsyms \ 14782include_expsyms \ 14783file_list_spec \ 14784variables_saved_for_relink \ 14785libname_spec \ 14786library_names_spec \ 14787soname_spec \ 14788finish_eval \ 14789old_striplib \ 14790striplib; do 14791 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14792 *[\\\\\\\`\\"\\\$]*) 14793 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14794 ;; 14795 *) 14796 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14797 ;; 14798 esac 14799done 14800 14801# Double-quote double-evaled strings. 14802for var in reload_cmds \ 14803old_postinstall_cmds \ 14804old_postuninstall_cmds \ 14805old_archive_cmds \ 14806extract_expsyms_cmds \ 14807old_archive_from_new_cmds \ 14808old_archive_from_expsyms_cmds \ 14809archive_cmds \ 14810archive_expsym_cmds \ 14811module_cmds \ 14812module_expsym_cmds \ 14813export_symbols_cmds \ 14814prelink_cmds \ 14815postinstall_cmds \ 14816postuninstall_cmds \ 14817finish_cmds \ 14818sys_lib_search_path_spec \ 14819sys_lib_dlsearch_path_spec; do 14820 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14821 *[\\\\\\\`\\"\\\$]*) 14822 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14823 ;; 14824 *) 14825 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14826 ;; 14827 esac 14828done 14829 14830# Fix-up fallback echo if it was mangled by the above quoting rules. 14831case \$lt_ECHO in 14832*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14833 ;; 14834esac 14835 14836ac_aux_dir='$ac_aux_dir' 14837xsi_shell='$xsi_shell' 14838lt_shell_append='$lt_shell_append' 14839 14840# See if we are running on zsh, and set the options which allow our 14841# commands through without removal of \ escapes INIT. 14842if test -n "\${ZSH_VERSION+set}" ; then 14843 setopt NO_GLOB_SUBST 14844fi 14845 14846 14847 PACKAGE='$PACKAGE' 14848 VERSION='$VERSION' 14849 TIMESTAMP='$TIMESTAMP' 14850 RM='$RM' 14851 ofile='$ofile' 14852 14853 14854 14855 14856_ACEOF 14857 14858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14859 14860# Handling of arguments. 14861for ac_config_target in $ac_config_targets 14862do 14863 case $ac_config_target in 14864 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14865 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14866 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14867 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14868 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 14869 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14870 "include/theora/Makefile") CONFIG_FILES="$CONFIG_FILES include/theora/Makefile" ;; 14871 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 14872 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14873 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 14874 "doc/spec/Makefile") CONFIG_FILES="$CONFIG_FILES doc/spec/Makefile" ;; 14875 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 14876 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 14877 "libtheora.spec") CONFIG_FILES="$CONFIG_FILES libtheora.spec" ;; 14878 "theora.pc") CONFIG_FILES="$CONFIG_FILES theora.pc" ;; 14879 "theora-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theora-uninstalled.pc" ;; 14880 "theoradec.pc") CONFIG_FILES="$CONFIG_FILES theoradec.pc" ;; 14881 "theoradec-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theoradec-uninstalled.pc" ;; 14882 "theoraenc.pc") CONFIG_FILES="$CONFIG_FILES theoraenc.pc" ;; 14883 "theoraenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theoraenc-uninstalled.pc" ;; 14884 14885 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14886$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14887 { (exit 1); exit 1; }; };; 14888 esac 14889done 14890 14891 14892# If the user did not use the arguments to specify the items to instantiate, 14893# then the envvar interface is used. Set only those that are not. 14894# We use the long form for the default assignment because of an extremely 14895# bizarre bug on SunOS 4.1.3. 14896if $ac_need_defaults; then 14897 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14898 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14899 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14900fi 14901 14902# Have a temporary directory for convenience. Make it in the build tree 14903# simply because there is no reason against having it here, and in addition, 14904# creating and moving files from /tmp can sometimes cause problems. 14905# Hook for its removal unless debugging. 14906# Note that there is a small window in which the directory will not be cleaned: 14907# after its creation but before its name has been assigned to `$tmp'. 14908$debug || 14909{ 14910 tmp= 14911 trap 'exit_status=$? 14912 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14913' 0 14914 trap '{ (exit 1); exit 1; }' 1 2 13 15 14915} 14916# Create a (secure) tmp directory for tmp files. 14917 14918{ 14919 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14920 test -n "$tmp" && test -d "$tmp" 14921} || 14922{ 14923 tmp=./conf$$-$RANDOM 14924 (umask 077 && mkdir "$tmp") 14925} || 14926{ 14927 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14928 { (exit 1); exit 1; } 14929} 14930 14931# Set up the scripts for CONFIG_FILES section. 14932# No need to generate them if there are no CONFIG_FILES. 14933# This happens for instance with `./config.status config.h'. 14934if test -n "$CONFIG_FILES"; then 14935 14936 14937ac_cr=' 14938' 14939ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14940if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14941 ac_cs_awk_cr='\\r' 14942else 14943 ac_cs_awk_cr=$ac_cr 14944fi 14945 14946echo 'BEGIN {' >"$tmp/subs1.awk" && 14947_ACEOF 14948 14949 14950{ 14951 echo "cat >conf$$subs.awk <<_ACEOF" && 14952 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14953 echo "_ACEOF" 14954} >conf$$subs.sh || 14955 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14956$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14957 { (exit 1); exit 1; }; } 14958ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14959ac_delim='%!_!# ' 14960for ac_last_try in false false false false false :; do 14961 . ./conf$$subs.sh || 14962 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14963$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14964 { (exit 1); exit 1; }; } 14965 14966 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14967 if test $ac_delim_n = $ac_delim_num; then 14968 break 14969 elif $ac_last_try; then 14970 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14971$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14972 { (exit 1); exit 1; }; } 14973 else 14974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14975 fi 14976done 14977rm -f conf$$subs.sh 14978 14979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14980cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14981_ACEOF 14982sed -n ' 14983h 14984s/^/S["/; s/!.*/"]=/ 14985p 14986g 14987s/^[^!]*!// 14988:repl 14989t repl 14990s/'"$ac_delim"'$// 14991t delim 14992:nl 14993h 14994s/\(.\{148\}\).*/\1/ 14995t more1 14996s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14997p 14998n 14999b repl 15000:more1 15001s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15002p 15003g 15004s/.\{148\}// 15005t nl 15006:delim 15007h 15008s/\(.\{148\}\).*/\1/ 15009t more2 15010s/["\\]/\\&/g; s/^/"/; s/$/"/ 15011p 15012b 15013:more2 15014s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15015p 15016g 15017s/.\{148\}// 15018t delim 15019' <conf$$subs.awk | sed ' 15020/^[^""]/{ 15021 N 15022 s/\n// 15023} 15024' >>$CONFIG_STATUS || ac_write_fail=1 15025rm -f conf$$subs.awk 15026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15027_ACAWK 15028cat >>"\$tmp/subs1.awk" <<_ACAWK && 15029 for (key in S) S_is_set[key] = 1 15030 FS = "" 15031 15032} 15033{ 15034 line = $ 0 15035 nfields = split(line, field, "@") 15036 substed = 0 15037 len = length(field[1]) 15038 for (i = 2; i < nfields; i++) { 15039 key = field[i] 15040 keylen = length(key) 15041 if (S_is_set[key]) { 15042 value = S[key] 15043 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15044 len += length(value) + length(field[++i]) 15045 substed = 1 15046 } else 15047 len += 1 + keylen 15048 } 15049 15050 print line 15051} 15052 15053_ACAWK 15054_ACEOF 15055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15056if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15057 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15058else 15059 cat 15060fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15061 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 15062$as_echo "$as_me: error: could not setup config files machinery" >&2;} 15063 { (exit 1); exit 1; }; } 15064_ACEOF 15065 15066# VPATH may cause trouble with some makes, so we remove $(srcdir), 15067# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15068# trailing colons and then remove the whole line if VPATH becomes empty 15069# (actually we leave an empty line to preserve line numbers). 15070if test "x$srcdir" = x.; then 15071 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15072s/:*\$(srcdir):*/:/ 15073s/:*\${srcdir}:*/:/ 15074s/:*@srcdir@:*/:/ 15075s/^\([^=]*=[ ]*\):*/\1/ 15076s/:*$// 15077s/^[^=]*=[ ]*$// 15078}' 15079fi 15080 15081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15082fi # test -n "$CONFIG_FILES" 15083 15084# Set up the scripts for CONFIG_HEADERS section. 15085# No need to generate them if there are no CONFIG_HEADERS. 15086# This happens for instance with `./config.status Makefile'. 15087if test -n "$CONFIG_HEADERS"; then 15088cat >"$tmp/defines.awk" <<\_ACAWK || 15089BEGIN { 15090_ACEOF 15091 15092# Transform confdefs.h into an awk script `defines.awk', embedded as 15093# here-document in config.status, that substitutes the proper values into 15094# config.h.in to produce config.h. 15095 15096# Create a delimiter string that does not exist in confdefs.h, to ease 15097# handling of long lines. 15098ac_delim='%!_!# ' 15099for ac_last_try in false false :; do 15100 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15101 if test -z "$ac_t"; then 15102 break 15103 elif $ac_last_try; then 15104 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 15105$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 15106 { (exit 1); exit 1; }; } 15107 else 15108 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15109 fi 15110done 15111 15112# For the awk script, D is an array of macro values keyed by name, 15113# likewise P contains macro parameters if any. Preserve backslash 15114# newline sequences. 15115 15116ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15117sed -n ' 15118s/.\{148\}/&'"$ac_delim"'/g 15119t rset 15120:rset 15121s/^[ ]*#[ ]*define[ ][ ]*/ / 15122t def 15123d 15124:def 15125s/\\$// 15126t bsnl 15127s/["\\]/\\&/g 15128s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15129D["\1"]=" \3"/p 15130s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15131d 15132:bsnl 15133s/["\\]/\\&/g 15134s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15135D["\1"]=" \3\\\\\\n"\\/p 15136t cont 15137s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15138t cont 15139d 15140:cont 15141n 15142s/.\{148\}/&'"$ac_delim"'/g 15143t clear 15144:clear 15145s/\\$// 15146t bsnlc 15147s/["\\]/\\&/g; s/^/"/; s/$/"/p 15148d 15149:bsnlc 15150s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15151b cont 15152' <confdefs.h | sed ' 15153s/'"$ac_delim"'/"\\\ 15154"/g' >>$CONFIG_STATUS || ac_write_fail=1 15155 15156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15157 for (key in D) D_is_set[key] = 1 15158 FS = "" 15159} 15160/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15161 line = \$ 0 15162 split(line, arg, " ") 15163 if (arg[1] == "#") { 15164 defundef = arg[2] 15165 mac1 = arg[3] 15166 } else { 15167 defundef = substr(arg[1], 2) 15168 mac1 = arg[2] 15169 } 15170 split(mac1, mac2, "(") #) 15171 macro = mac2[1] 15172 prefix = substr(line, 1, index(line, defundef) - 1) 15173 if (D_is_set[macro]) { 15174 # Preserve the white space surrounding the "#". 15175 print prefix "define", macro P[macro] D[macro] 15176 next 15177 } else { 15178 # Replace #undef with comments. This is necessary, for example, 15179 # in the case of _POSIX_SOURCE, which is predefined and required 15180 # on some systems where configure will not decide to define it. 15181 if (defundef == "undef") { 15182 print "/*", prefix defundef, macro, "*/" 15183 next 15184 } 15185 } 15186} 15187{ print } 15188_ACAWK 15189_ACEOF 15190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15191 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 15192$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 15193 { (exit 1); exit 1; }; } 15194fi # test -n "$CONFIG_HEADERS" 15195 15196 15197eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15198shift 15199for ac_tag 15200do 15201 case $ac_tag in 15202 :[FHLC]) ac_mode=$ac_tag; continue;; 15203 esac 15204 case $ac_mode$ac_tag in 15205 :[FHL]*:*);; 15206 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 15207$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 15208 { (exit 1); exit 1; }; };; 15209 :[FH]-) ac_tag=-:-;; 15210 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15211 esac 15212 ac_save_IFS=$IFS 15213 IFS=: 15214 set x $ac_tag 15215 IFS=$ac_save_IFS 15216 shift 15217 ac_file=$1 15218 shift 15219 15220 case $ac_mode in 15221 :L) ac_source=$1;; 15222 :[FH]) 15223 ac_file_inputs= 15224 for ac_f 15225 do 15226 case $ac_f in 15227 -) ac_f="$tmp/stdin";; 15228 *) # Look for the file first in the build tree, then in the source tree 15229 # (if the path is not absolute). The absolute path cannot be DOS-style, 15230 # because $ac_f cannot contain `:'. 15231 test -f "$ac_f" || 15232 case $ac_f in 15233 [\\/$]*) false;; 15234 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15235 esac || 15236 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 15237$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 15238 { (exit 1); exit 1; }; };; 15239 esac 15240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15241 ac_file_inputs="$ac_file_inputs '$ac_f'" 15242 done 15243 15244 # Let's still pretend it is `configure' which instantiates (i.e., don't 15245 # use $as_me), people would be surprised to read: 15246 # /* config.h. Generated by config.status. */ 15247 configure_input='Generated from '` 15248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15249 `' by configure.' 15250 if test x"$ac_file" != x-; then 15251 configure_input="$ac_file. $configure_input" 15252 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 15253$as_echo "$as_me: creating $ac_file" >&6;} 15254 fi 15255 # Neutralize special characters interpreted by sed in replacement strings. 15256 case $configure_input in #( 15257 *\&* | *\|* | *\\* ) 15258 ac_sed_conf_input=`$as_echo "$configure_input" | 15259 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15260 *) ac_sed_conf_input=$configure_input;; 15261 esac 15262 15263 case $ac_tag in 15264 *:-:* | *:-) cat >"$tmp/stdin" \ 15265 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15266$as_echo "$as_me: error: could not create $ac_file" >&2;} 15267 { (exit 1); exit 1; }; } ;; 15268 esac 15269 ;; 15270 esac 15271 15272 ac_dir=`$as_dirname -- "$ac_file" || 15273$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15274 X"$ac_file" : 'X\(//\)[^/]' \| \ 15275 X"$ac_file" : 'X\(//\)$' \| \ 15276 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15277$as_echo X"$ac_file" | 15278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15279 s//\1/ 15280 q 15281 } 15282 /^X\(\/\/\)[^/].*/{ 15283 s//\1/ 15284 q 15285 } 15286 /^X\(\/\/\)$/{ 15287 s//\1/ 15288 q 15289 } 15290 /^X\(\/\).*/{ 15291 s//\1/ 15292 q 15293 } 15294 s/.*/./; q'` 15295 { as_dir="$ac_dir" 15296 case $as_dir in #( 15297 -*) as_dir=./$as_dir;; 15298 esac 15299 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15300 as_dirs= 15301 while :; do 15302 case $as_dir in #( 15303 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15304 *) as_qdir=$as_dir;; 15305 esac 15306 as_dirs="'$as_qdir' $as_dirs" 15307 as_dir=`$as_dirname -- "$as_dir" || 15308$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15309 X"$as_dir" : 'X\(//\)[^/]' \| \ 15310 X"$as_dir" : 'X\(//\)$' \| \ 15311 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15312$as_echo X"$as_dir" | 15313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15314 s//\1/ 15315 q 15316 } 15317 /^X\(\/\/\)[^/].*/{ 15318 s//\1/ 15319 q 15320 } 15321 /^X\(\/\/\)$/{ 15322 s//\1/ 15323 q 15324 } 15325 /^X\(\/\).*/{ 15326 s//\1/ 15327 q 15328 } 15329 s/.*/./; q'` 15330 test -d "$as_dir" && break 15331 done 15332 test -z "$as_dirs" || eval "mkdir $as_dirs" 15333 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15334$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15335 { (exit 1); exit 1; }; }; } 15336 ac_builddir=. 15337 15338case "$ac_dir" in 15339.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15340*) 15341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15342 # A ".." for each directory in $ac_dir_suffix. 15343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15344 case $ac_top_builddir_sub in 15345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15347 esac ;; 15348esac 15349ac_abs_top_builddir=$ac_pwd 15350ac_abs_builddir=$ac_pwd$ac_dir_suffix 15351# for backward compatibility: 15352ac_top_builddir=$ac_top_build_prefix 15353 15354case $srcdir in 15355 .) # We are building in place. 15356 ac_srcdir=. 15357 ac_top_srcdir=$ac_top_builddir_sub 15358 ac_abs_top_srcdir=$ac_pwd ;; 15359 [\\/]* | ?:[\\/]* ) # Absolute name. 15360 ac_srcdir=$srcdir$ac_dir_suffix; 15361 ac_top_srcdir=$srcdir 15362 ac_abs_top_srcdir=$srcdir ;; 15363 *) # Relative name. 15364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15365 ac_top_srcdir=$ac_top_build_prefix$srcdir 15366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15367esac 15368ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15369 15370 15371 case $ac_mode in 15372 :F) 15373 # 15374 # CONFIG_FILE 15375 # 15376 15377 case $INSTALL in 15378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15380 esac 15381_ACEOF 15382 15383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15384# If the template does not know about datarootdir, expand it. 15385# FIXME: This hack should be removed a few years after 2.60. 15386ac_datarootdir_hack=; ac_datarootdir_seen= 15387 15388ac_sed_dataroot=' 15389/datarootdir/ { 15390 p 15391 q 15392} 15393/@datadir@/p 15394/@docdir@/p 15395/@infodir@/p 15396/@localedir@/p 15397/@mandir@/p 15398' 15399case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15400*datarootdir*) ac_datarootdir_seen=yes;; 15401*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15402 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15403$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15404_ACEOF 15405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15406 ac_datarootdir_hack=' 15407 s&@datadir@&$datadir&g 15408 s&@docdir@&$docdir&g 15409 s&@infodir@&$infodir&g 15410 s&@localedir@&$localedir&g 15411 s&@mandir@&$mandir&g 15412 s&\\\${datarootdir}&$datarootdir&g' ;; 15413esac 15414_ACEOF 15415 15416# Neutralize VPATH when `$srcdir' = `.'. 15417# Shell code in configure.ac might set extrasub. 15418# FIXME: do we really want to maintain this feature? 15419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15420ac_sed_extra="$ac_vpsub 15421$extrasub 15422_ACEOF 15423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15424:t 15425/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15426s|@configure_input@|$ac_sed_conf_input|;t t 15427s&@top_builddir@&$ac_top_builddir_sub&;t t 15428s&@top_build_prefix@&$ac_top_build_prefix&;t t 15429s&@srcdir@&$ac_srcdir&;t t 15430s&@abs_srcdir@&$ac_abs_srcdir&;t t 15431s&@top_srcdir@&$ac_top_srcdir&;t t 15432s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15433s&@builddir@&$ac_builddir&;t t 15434s&@abs_builddir@&$ac_abs_builddir&;t t 15435s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15436s&@INSTALL@&$ac_INSTALL&;t t 15437$ac_datarootdir_hack 15438" 15439eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15440 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15441$as_echo "$as_me: error: could not create $ac_file" >&2;} 15442 { (exit 1); exit 1; }; } 15443 15444test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15445 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15446 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15447 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15448which seems to be undefined. Please make sure it is defined." >&5 15449$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15450which seems to be undefined. Please make sure it is defined." >&2;} 15451 15452 rm -f "$tmp/stdin" 15453 case $ac_file in 15454 -) cat "$tmp/out" && rm -f "$tmp/out";; 15455 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15456 esac \ 15457 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15458$as_echo "$as_me: error: could not create $ac_file" >&2;} 15459 { (exit 1); exit 1; }; } 15460 ;; 15461 :H) 15462 # 15463 # CONFIG_HEADER 15464 # 15465 if test x"$ac_file" != x-; then 15466 { 15467 $as_echo "/* $configure_input */" \ 15468 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15469 } >"$tmp/config.h" \ 15470 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15471$as_echo "$as_me: error: could not create $ac_file" >&2;} 15472 { (exit 1); exit 1; }; } 15473 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15474 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15475$as_echo "$as_me: $ac_file is unchanged" >&6;} 15476 else 15477 rm -f "$ac_file" 15478 mv "$tmp/config.h" "$ac_file" \ 15479 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15480$as_echo "$as_me: error: could not create $ac_file" >&2;} 15481 { (exit 1); exit 1; }; } 15482 fi 15483 else 15484 $as_echo "/* $configure_input */" \ 15485 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15486 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 15487$as_echo "$as_me: error: could not create -" >&2;} 15488 { (exit 1); exit 1; }; } 15489 fi 15490 ;; 15491 15492 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 15493$as_echo "$as_me: executing $ac_file commands" >&6;} 15494 ;; 15495 esac 15496 15497 15498 case $ac_file$ac_mode in 15499 "config.h":H) # update the timestamp 15500echo 'timestamp for config.h' >"./stamp-h1" 15501 ;; 15502 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 15503 # Strip MF so we end up with the name of the file. 15504 mf=`echo "$mf" | sed -e 's/:.*$//'` 15505 # Check whether this is an Automake generated Makefile or not. 15506 # We used to match only the files named `Makefile.in', but 15507 # some people rename them; so instead we look at the file content. 15508 # Grep'ing the first line is not enough: some people post-process 15509 # each Makefile.in and add a new line on top of each file to say so. 15510 # So let's grep whole file. 15511 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 15512 dirpart=`$as_dirname -- "$mf" || 15513$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15514 X"$mf" : 'X\(//\)[^/]' \| \ 15515 X"$mf" : 'X\(//\)$' \| \ 15516 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15517$as_echo X"$mf" | 15518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15519 s//\1/ 15520 q 15521 } 15522 /^X\(\/\/\)[^/].*/{ 15523 s//\1/ 15524 q 15525 } 15526 /^X\(\/\/\)$/{ 15527 s//\1/ 15528 q 15529 } 15530 /^X\(\/\).*/{ 15531 s//\1/ 15532 q 15533 } 15534 s/.*/./; q'` 15535 else 15536 continue 15537 fi 15538 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 15539 # Extract the definition of DEP_FILES from the Makefile without 15540 # running `make'. 15541 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 15542 test -z "$DEPDIR" && continue 15543 # When using ansi2knr, U may be empty or an underscore; expand it 15544 U=`sed -n -e '/^U = / s///p' < "$mf"` 15545 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 15546 # We invoke sed twice because it is the simplest approach to 15547 # changing $(DEPDIR) to its actual value in the expansion. 15548 for file in `sed -n -e ' 15549 /^DEP_FILES = .*\\\\$/ { 15550 s/^DEP_FILES = // 15551 :loop 15552 s/\\\\$// 15553 p 15554 n 15555 /\\\\$/ b loop 15556 p 15557 } 15558 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 15559 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15560 # Make sure the directory exists. 15561 test -f "$dirpart/$file" && continue 15562 fdir=`$as_dirname -- "$file" || 15563$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15564 X"$file" : 'X\(//\)[^/]' \| \ 15565 X"$file" : 'X\(//\)$' \| \ 15566 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15567$as_echo X"$file" | 15568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15569 s//\1/ 15570 q 15571 } 15572 /^X\(\/\/\)[^/].*/{ 15573 s//\1/ 15574 q 15575 } 15576 /^X\(\/\/\)$/{ 15577 s//\1/ 15578 q 15579 } 15580 /^X\(\/\).*/{ 15581 s//\1/ 15582 q 15583 } 15584 s/.*/./; q'` 15585 { as_dir=$dirpart/$fdir 15586 case $as_dir in #( 15587 -*) as_dir=./$as_dir;; 15588 esac 15589 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15590 as_dirs= 15591 while :; do 15592 case $as_dir in #( 15593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15594 *) as_qdir=$as_dir;; 15595 esac 15596 as_dirs="'$as_qdir' $as_dirs" 15597 as_dir=`$as_dirname -- "$as_dir" || 15598$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15599 X"$as_dir" : 'X\(//\)[^/]' \| \ 15600 X"$as_dir" : 'X\(//\)$' \| \ 15601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15602$as_echo X"$as_dir" | 15603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15604 s//\1/ 15605 q 15606 } 15607 /^X\(\/\/\)[^/].*/{ 15608 s//\1/ 15609 q 15610 } 15611 /^X\(\/\/\)$/{ 15612 s//\1/ 15613 q 15614 } 15615 /^X\(\/\).*/{ 15616 s//\1/ 15617 q 15618 } 15619 s/.*/./; q'` 15620 test -d "$as_dir" && break 15621 done 15622 test -z "$as_dirs" || eval "mkdir $as_dirs" 15623 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15624$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15625 { (exit 1); exit 1; }; }; } 15626 # echo "creating $dirpart/$file" 15627 echo '# dummy' > "$dirpart/$file" 15628 done 15629done 15630 ;; 15631 "libtool":C) 15632 15633 # See if we are running on zsh, and set the options which allow our 15634 # commands through without removal of \ escapes. 15635 if test -n "${ZSH_VERSION+set}" ; then 15636 setopt NO_GLOB_SUBST 15637 fi 15638 15639 cfgfile="${ofile}T" 15640 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15641 $RM "$cfgfile" 15642 15643 cat <<_LT_EOF >> "$cfgfile" 15644#! $SHELL 15645 15646# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15647# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15648# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15649# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15650# 15651# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15652# 2006, 2007, 2008 Free Software Foundation, Inc. 15653# Written by Gordon Matzigkeit, 1996 15654# 15655# This file is part of GNU Libtool. 15656# 15657# GNU Libtool is free software; you can redistribute it and/or 15658# modify it under the terms of the GNU General Public License as 15659# published by the Free Software Foundation; either version 2 of 15660# the License, or (at your option) any later version. 15661# 15662# As a special exception to the GNU General Public License, 15663# if you distribute this file as part of a program or library that 15664# is built using GNU Libtool, you may include this file under the 15665# same distribution terms that you use for the rest of that program. 15666# 15667# GNU Libtool is distributed in the hope that it will be useful, 15668# but WITHOUT ANY WARRANTY; without even the implied warranty of 15669# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15670# GNU General Public License for more details. 15671# 15672# You should have received a copy of the GNU General Public License 15673# along with GNU Libtool; see the file COPYING. If not, a copy 15674# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15675# obtained by writing to the Free Software Foundation, Inc., 15676# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15677 15678 15679# The names of the tagged configurations supported by this script. 15680available_tags="" 15681 15682# ### BEGIN LIBTOOL CONFIG 15683 15684# Assembler program. 15685AS=$AS 15686 15687# DLL creation program. 15688DLLTOOL=$DLLTOOL 15689 15690# Object dumper program. 15691OBJDUMP=$OBJDUMP 15692 15693# Which release of libtool.m4 was used? 15694macro_version=$macro_version 15695macro_revision=$macro_revision 15696 15697# Whether or not to build shared libraries. 15698build_libtool_libs=$enable_shared 15699 15700# Whether or not to build static libraries. 15701build_old_libs=$enable_static 15702 15703# What type of objects to build. 15704pic_mode=$pic_mode 15705 15706# Whether or not to optimize for fast installation. 15707fast_install=$enable_fast_install 15708 15709# The host system. 15710host_alias=$host_alias 15711host=$host 15712host_os=$host_os 15713 15714# The build system. 15715build_alias=$build_alias 15716build=$build 15717build_os=$build_os 15718 15719# A sed program that does not truncate output. 15720SED=$lt_SED 15721 15722# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15723Xsed="\$SED -e 1s/^X//" 15724 15725# A grep program that handles long lines. 15726GREP=$lt_GREP 15727 15728# An ERE matcher. 15729EGREP=$lt_EGREP 15730 15731# A literal string matcher. 15732FGREP=$lt_FGREP 15733 15734# A BSD- or MS-compatible name lister. 15735NM=$lt_NM 15736 15737# Whether we need soft or hard links. 15738LN_S=$lt_LN_S 15739 15740# What is the maximum length of a command? 15741max_cmd_len=$max_cmd_len 15742 15743# Object file suffix (normally "o"). 15744objext=$ac_objext 15745 15746# Executable file suffix (normally ""). 15747exeext=$exeext 15748 15749# whether the shell understands "unset". 15750lt_unset=$lt_unset 15751 15752# turn spaces into newlines. 15753SP2NL=$lt_lt_SP2NL 15754 15755# turn newlines into spaces. 15756NL2SP=$lt_lt_NL2SP 15757 15758# How to create reloadable object files. 15759reload_flag=$lt_reload_flag 15760reload_cmds=$lt_reload_cmds 15761 15762# Method to check whether dependent libraries are shared objects. 15763deplibs_check_method=$lt_deplibs_check_method 15764 15765# Command to use when deplibs_check_method == "file_magic". 15766file_magic_cmd=$lt_file_magic_cmd 15767 15768# The archiver. 15769AR=$lt_AR 15770AR_FLAGS=$lt_AR_FLAGS 15771 15772# A symbol stripping program. 15773STRIP=$lt_STRIP 15774 15775# Commands used to install an old-style archive. 15776RANLIB=$lt_RANLIB 15777old_postinstall_cmds=$lt_old_postinstall_cmds 15778old_postuninstall_cmds=$lt_old_postuninstall_cmds 15779 15780# A C compiler. 15781LTCC=$lt_CC 15782 15783# LTCC compiler flags. 15784LTCFLAGS=$lt_CFLAGS 15785 15786# Take the output of nm and produce a listing of raw symbols and C names. 15787global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15788 15789# Transform the output of nm in a proper C declaration. 15790global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15791 15792# Transform the output of nm in a C name address pair. 15793global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15794 15795# Transform the output of nm in a C name address pair when lib prefix is needed. 15796global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15797 15798# The name of the directory that contains temporary libtool files. 15799objdir=$objdir 15800 15801# Shell to use when invoking shell scripts. 15802SHELL=$lt_SHELL 15803 15804# An echo program that does not interpret backslashes. 15805ECHO=$lt_ECHO 15806 15807# Used to examine libraries when file_magic_cmd begins with "file". 15808MAGIC_CMD=$MAGIC_CMD 15809 15810# Must we lock files when doing compilation? 15811need_locks=$lt_need_locks 15812 15813# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15814DSYMUTIL=$lt_DSYMUTIL 15815 15816# Tool to change global to local symbols on Mac OS X. 15817NMEDIT=$lt_NMEDIT 15818 15819# Tool to manipulate fat objects and archives on Mac OS X. 15820LIPO=$lt_LIPO 15821 15822# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15823OTOOL=$lt_OTOOL 15824 15825# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15826OTOOL64=$lt_OTOOL64 15827 15828# Old archive suffix (normally "a"). 15829libext=$libext 15830 15831# Shared library suffix (normally ".so"). 15832shrext_cmds=$lt_shrext_cmds 15833 15834# The commands to extract the exported symbol list from a shared archive. 15835extract_expsyms_cmds=$lt_extract_expsyms_cmds 15836 15837# Variables whose values should be saved in libtool wrapper scripts and 15838# restored at link time. 15839variables_saved_for_relink=$lt_variables_saved_for_relink 15840 15841# Do we need the "lib" prefix for modules? 15842need_lib_prefix=$need_lib_prefix 15843 15844# Do we need a version for libraries? 15845need_version=$need_version 15846 15847# Library versioning type. 15848version_type=$version_type 15849 15850# Shared library runtime path variable. 15851runpath_var=$runpath_var 15852 15853# Shared library path variable. 15854shlibpath_var=$shlibpath_var 15855 15856# Is shlibpath searched before the hard-coded library search path? 15857shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15858 15859# Format of library name prefix. 15860libname_spec=$lt_libname_spec 15861 15862# List of archive names. First name is the real one, the rest are links. 15863# The last name is the one that the linker finds with -lNAME 15864library_names_spec=$lt_library_names_spec 15865 15866# The coded name of the library, if different from the real name. 15867soname_spec=$lt_soname_spec 15868 15869# Command to use after installation of a shared archive. 15870postinstall_cmds=$lt_postinstall_cmds 15871 15872# Command to use after uninstallation of a shared archive. 15873postuninstall_cmds=$lt_postuninstall_cmds 15874 15875# Commands used to finish a libtool library installation in a directory. 15876finish_cmds=$lt_finish_cmds 15877 15878# As "finish_cmds", except a single script fragment to be evaled but 15879# not shown. 15880finish_eval=$lt_finish_eval 15881 15882# Whether we should hardcode library paths into libraries. 15883hardcode_into_libs=$hardcode_into_libs 15884 15885# Compile-time system search path for libraries. 15886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15887 15888# Run-time system search path for libraries. 15889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15890 15891# Whether dlopen is supported. 15892dlopen_support=$enable_dlopen 15893 15894# Whether dlopen of programs is supported. 15895dlopen_self=$enable_dlopen_self 15896 15897# Whether dlopen of statically linked programs is supported. 15898dlopen_self_static=$enable_dlopen_self_static 15899 15900# Commands to strip libraries. 15901old_striplib=$lt_old_striplib 15902striplib=$lt_striplib 15903 15904 15905# The linker used to build libraries. 15906LD=$lt_LD 15907 15908# Commands used to build an old-style archive. 15909old_archive_cmds=$lt_old_archive_cmds 15910 15911# A language specific compiler. 15912CC=$lt_compiler 15913 15914# Is the compiler the GNU compiler? 15915with_gcc=$GCC 15916 15917# Compiler flag to turn off builtin functions. 15918no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15919 15920# How to pass a linker flag through the compiler. 15921wl=$lt_lt_prog_compiler_wl 15922 15923# Additional compiler flags for building library objects. 15924pic_flag=$lt_lt_prog_compiler_pic 15925 15926# Compiler flag to prevent dynamic linking. 15927link_static_flag=$lt_lt_prog_compiler_static 15928 15929# Does compiler simultaneously support -c and -o options? 15930compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15931 15932# Whether or not to add -lc for building shared libraries. 15933build_libtool_need_lc=$archive_cmds_need_lc 15934 15935# Whether or not to disallow shared libs when runtime libs are static. 15936allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15937 15938# Compiler flag to allow reflexive dlopens. 15939export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15940 15941# Compiler flag to generate shared objects directly from archives. 15942whole_archive_flag_spec=$lt_whole_archive_flag_spec 15943 15944# Whether the compiler copes with passing no objects directly. 15945compiler_needs_object=$lt_compiler_needs_object 15946 15947# Create an old-style archive from a shared archive. 15948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15949 15950# Create a temporary old-style archive to link instead of a shared archive. 15951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15952 15953# Commands used to build a shared archive. 15954archive_cmds=$lt_archive_cmds 15955archive_expsym_cmds=$lt_archive_expsym_cmds 15956 15957# Commands used to build a loadable module if different from building 15958# a shared archive. 15959module_cmds=$lt_module_cmds 15960module_expsym_cmds=$lt_module_expsym_cmds 15961 15962# Whether we are building with GNU ld or not. 15963with_gnu_ld=$lt_with_gnu_ld 15964 15965# Flag that allows shared libraries with undefined symbols to be built. 15966allow_undefined_flag=$lt_allow_undefined_flag 15967 15968# Flag that enforces no undefined symbols. 15969no_undefined_flag=$lt_no_undefined_flag 15970 15971# Flag to hardcode \$libdir into a binary during linking. 15972# This must work even if \$libdir does not exist 15973hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15974 15975# If ld is used when linking, flag to hardcode \$libdir into a binary 15976# during linking. This must work even if \$libdir does not exist. 15977hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15978 15979# Whether we need a single "-rpath" flag with a separated argument. 15980hardcode_libdir_separator=$lt_hardcode_libdir_separator 15981 15982# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15983# DIR into the resulting binary. 15984hardcode_direct=$hardcode_direct 15985 15986# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15987# DIR into the resulting binary and the resulting library dependency is 15988# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15989# library is relocated. 15990hardcode_direct_absolute=$hardcode_direct_absolute 15991 15992# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15993# into the resulting binary. 15994hardcode_minus_L=$hardcode_minus_L 15995 15996# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15997# into the resulting binary. 15998hardcode_shlibpath_var=$hardcode_shlibpath_var 15999 16000# Set to "yes" if building a shared library automatically hardcodes DIR 16001# into the library and all subsequent libraries and executables linked 16002# against it. 16003hardcode_automatic=$hardcode_automatic 16004 16005# Set to yes if linker adds runtime paths of dependent libraries 16006# to runtime path list. 16007inherit_rpath=$inherit_rpath 16008 16009# Whether libtool must link a program against all its dependency libraries. 16010link_all_deplibs=$link_all_deplibs 16011 16012# Fix the shell variable \$srcfile for the compiler. 16013fix_srcfile_path=$lt_fix_srcfile_path 16014 16015# Set to "yes" if exported symbols are required. 16016always_export_symbols=$always_export_symbols 16017 16018# The commands to list exported symbols. 16019export_symbols_cmds=$lt_export_symbols_cmds 16020 16021# Symbols that should not be listed in the preloaded symbols. 16022exclude_expsyms=$lt_exclude_expsyms 16023 16024# Symbols that must always be exported. 16025include_expsyms=$lt_include_expsyms 16026 16027# Commands necessary for linking programs (against libraries) with templates. 16028prelink_cmds=$lt_prelink_cmds 16029 16030# Specify filename containing input files. 16031file_list_spec=$lt_file_list_spec 16032 16033# How to hardcode a shared library path into an executable. 16034hardcode_action=$hardcode_action 16035 16036# ### END LIBTOOL CONFIG 16037 16038_LT_EOF 16039 16040 case $host_os in 16041 aix3*) 16042 cat <<\_LT_EOF >> "$cfgfile" 16043# AIX sometimes has problems with the GCC collect2 program. For some 16044# reason, if we set the COLLECT_NAMES environment variable, the problems 16045# vanish in a puff of smoke. 16046if test "X${COLLECT_NAMES+set}" != Xset; then 16047 COLLECT_NAMES= 16048 export COLLECT_NAMES 16049fi 16050_LT_EOF 16051 ;; 16052 esac 16053 16054 16055ltmain="$ac_aux_dir/ltmain.sh" 16056 16057 16058 # We use sed instead of cat because bash on DJGPP gets confused if 16059 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16060 # text mode, it properly converts lines to CR/LF. This bash problem 16061 # is reportedly fixed, but why not run on old versions too? 16062 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16063 || (rm -f "$cfgfile"; exit 1) 16064 16065 case $xsi_shell in 16066 yes) 16067 cat << \_LT_EOF >> "$cfgfile" 16068 16069# func_dirname file append nondir_replacement 16070# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16071# otherwise set result to NONDIR_REPLACEMENT. 16072func_dirname () 16073{ 16074 case ${1} in 16075 */*) func_dirname_result="${1%/*}${2}" ;; 16076 * ) func_dirname_result="${3}" ;; 16077 esac 16078} 16079 16080# func_basename file 16081func_basename () 16082{ 16083 func_basename_result="${1##*/}" 16084} 16085 16086# func_dirname_and_basename file append nondir_replacement 16087# perform func_basename and func_dirname in a single function 16088# call: 16089# dirname: Compute the dirname of FILE. If nonempty, 16090# add APPEND to the result, otherwise set result 16091# to NONDIR_REPLACEMENT. 16092# value returned in "$func_dirname_result" 16093# basename: Compute filename of FILE. 16094# value retuned in "$func_basename_result" 16095# Implementation must be kept synchronized with func_dirname 16096# and func_basename. For efficiency, we do not delegate to 16097# those functions but instead duplicate the functionality here. 16098func_dirname_and_basename () 16099{ 16100 case ${1} in 16101 */*) func_dirname_result="${1%/*}${2}" ;; 16102 * ) func_dirname_result="${3}" ;; 16103 esac 16104 func_basename_result="${1##*/}" 16105} 16106 16107# func_stripname prefix suffix name 16108# strip PREFIX and SUFFIX off of NAME. 16109# PREFIX and SUFFIX must not contain globbing or regex special 16110# characters, hashes, percent signs, but SUFFIX may contain a leading 16111# dot (in which case that matches only a dot). 16112func_stripname () 16113{ 16114 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16115 # positional parameters, so assign one to ordinary parameter first. 16116 func_stripname_result=${3} 16117 func_stripname_result=${func_stripname_result#"${1}"} 16118 func_stripname_result=${func_stripname_result%"${2}"} 16119} 16120 16121# func_opt_split 16122func_opt_split () 16123{ 16124 func_opt_split_opt=${1%%=*} 16125 func_opt_split_arg=${1#*=} 16126} 16127 16128# func_lo2o object 16129func_lo2o () 16130{ 16131 case ${1} in 16132 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16133 *) func_lo2o_result=${1} ;; 16134 esac 16135} 16136 16137# func_xform libobj-or-source 16138func_xform () 16139{ 16140 func_xform_result=${1%.*}.lo 16141} 16142 16143# func_arith arithmetic-term... 16144func_arith () 16145{ 16146 func_arith_result=$(( $* )) 16147} 16148 16149# func_len string 16150# STRING may not start with a hyphen. 16151func_len () 16152{ 16153 func_len_result=${#1} 16154} 16155 16156_LT_EOF 16157 ;; 16158 *) # Bourne compatible functions. 16159 cat << \_LT_EOF >> "$cfgfile" 16160 16161# func_dirname file append nondir_replacement 16162# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16163# otherwise set result to NONDIR_REPLACEMENT. 16164func_dirname () 16165{ 16166 # Extract subdirectory from the argument. 16167 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 16168 if test "X$func_dirname_result" = "X${1}"; then 16169 func_dirname_result="${3}" 16170 else 16171 func_dirname_result="$func_dirname_result${2}" 16172 fi 16173} 16174 16175# func_basename file 16176func_basename () 16177{ 16178 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 16179} 16180 16181 16182# func_stripname prefix suffix name 16183# strip PREFIX and SUFFIX off of NAME. 16184# PREFIX and SUFFIX must not contain globbing or regex special 16185# characters, hashes, percent signs, but SUFFIX may contain a leading 16186# dot (in which case that matches only a dot). 16187# func_strip_suffix prefix name 16188func_stripname () 16189{ 16190 case ${2} in 16191 .*) func_stripname_result=`$ECHO "X${3}" \ 16192 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 16193 *) func_stripname_result=`$ECHO "X${3}" \ 16194 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 16195 esac 16196} 16197 16198# sed scripts: 16199my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16200my_sed_long_arg='1s/^-[^=]*=//' 16201 16202# func_opt_split 16203func_opt_split () 16204{ 16205 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 16206 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 16207} 16208 16209# func_lo2o object 16210func_lo2o () 16211{ 16212 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 16213} 16214 16215# func_xform libobj-or-source 16216func_xform () 16217{ 16218 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 16219} 16220 16221# func_arith arithmetic-term... 16222func_arith () 16223{ 16224 func_arith_result=`expr "$@"` 16225} 16226 16227# func_len string 16228# STRING may not start with a hyphen. 16229func_len () 16230{ 16231 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16232} 16233 16234_LT_EOF 16235esac 16236 16237case $lt_shell_append in 16238 yes) 16239 cat << \_LT_EOF >> "$cfgfile" 16240 16241# func_append var value 16242# Append VALUE to the end of shell variable VAR. 16243func_append () 16244{ 16245 eval "$1+=\$2" 16246} 16247_LT_EOF 16248 ;; 16249 *) 16250 cat << \_LT_EOF >> "$cfgfile" 16251 16252# func_append var value 16253# Append VALUE to the end of shell variable VAR. 16254func_append () 16255{ 16256 eval "$1=\$$1\$2" 16257} 16258 16259_LT_EOF 16260 ;; 16261 esac 16262 16263 16264 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16265 || (rm -f "$cfgfile"; exit 1) 16266 16267 mv -f "$cfgfile" "$ofile" || 16268 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16269 chmod +x "$ofile" 16270 16271 ;; 16272 16273 esac 16274done # for ac_tag 16275 16276 16277{ (exit 0); exit 0; } 16278_ACEOF 16279chmod +x $CONFIG_STATUS 16280ac_clean_files=$ac_clean_files_save 16281 16282test $ac_write_fail = 0 || 16283 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 16284$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 16285 { (exit 1); exit 1; }; } 16286 16287 16288# configure is writing to config.log, and then calls config.status. 16289# config.status does its own redirection, appending to config.log. 16290# Unfortunately, on DOS this fails, as config.log is still kept open 16291# by configure, so config.status won't be able to write to it; its 16292# output is simply discarded. So we exec the FD to /dev/null, 16293# effectively closing config.log, so it can be properly (re)opened and 16294# appended to by config.status. When coming back to configure, we 16295# need to make the FD available again. 16296if test "$no_create" != yes; then 16297 ac_cs_success=: 16298 ac_config_status_args= 16299 test "$silent" = yes && 16300 ac_config_status_args="$ac_config_status_args --quiet" 16301 exec 5>/dev/null 16302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16303 exec 5>>config.log 16304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16305 # would make configure fail if this is the last instruction. 16306 $ac_cs_success || { (exit 1); exit 1; } 16307fi 16308if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16309 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16310$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16311fi 16312 16313 16314 16315 EXP_VAR=LIBDIR 16316 FROM_VAR=${libdir} 16317 16318 prefix_save=$prefix 16319 exec_prefix_save=$exec_prefix 16320 16321 if test "x$prefix" = "xNONE"; then 16322 prefix="$ac_default_prefix" 16323 fi 16324 if test "x$exec_prefix" = "xNONE"; then 16325 exec_prefix=$prefix 16326 fi 16327 16328 full_var="$FROM_VAR" 16329 while true; do 16330 new_full_var="`eval echo $full_var`" 16331 if test "x$new_full_var" = "x$full_var"; then break; fi 16332 full_var=$new_full_var 16333 done 16334 16335 full_var=$new_full_var 16336 LIBDIR="$full_var" 16337 16338 16339 prefix=$prefix_save 16340 exec_prefix=$exec_prefix_save 16341 16342 16343 EXP_VAR=INCLUDEDIR 16344 FROM_VAR=${includedir} 16345 16346 prefix_save=$prefix 16347 exec_prefix_save=$exec_prefix 16348 16349 if test "x$prefix" = "xNONE"; then 16350 prefix="$ac_default_prefix" 16351 fi 16352 if test "x$exec_prefix" = "xNONE"; then 16353 exec_prefix=$prefix 16354 fi 16355 16356 full_var="$FROM_VAR" 16357 while true; do 16358 new_full_var="`eval echo $full_var`" 16359 if test "x$new_full_var" = "x$full_var"; then break; fi 16360 full_var=$new_full_var 16361 done 16362 16363 full_var=$new_full_var 16364 INCLUDEDIR="$full_var" 16365 16366 16367 prefix=$prefix_save 16368 exec_prefix=$exec_prefix_save 16369 16370 16371 EXP_VAR=BINDIR 16372 FROM_VAR=${bindir} 16373 16374 prefix_save=$prefix 16375 exec_prefix_save=$exec_prefix 16376 16377 if test "x$prefix" = "xNONE"; then 16378 prefix="$ac_default_prefix" 16379 fi 16380 if test "x$exec_prefix" = "xNONE"; then 16381 exec_prefix=$prefix 16382 fi 16383 16384 full_var="$FROM_VAR" 16385 while true; do 16386 new_full_var="`eval echo $full_var`" 16387 if test "x$new_full_var" = "x$full_var"; then break; fi 16388 full_var=$new_full_var 16389 done 16390 16391 full_var=$new_full_var 16392 BINDIR="$full_var" 16393 16394 16395 prefix=$prefix_save 16396 exec_prefix=$exec_prefix_save 16397 16398 16399 EXP_VAR=DOCDIR 16400 FROM_VAR=${datadir}/doc 16401 16402 prefix_save=$prefix 16403 exec_prefix_save=$exec_prefix 16404 16405 if test "x$prefix" = "xNONE"; then 16406 prefix="$ac_default_prefix" 16407 fi 16408 if test "x$exec_prefix" = "xNONE"; then 16409 exec_prefix=$prefix 16410 fi 16411 16412 full_var="$FROM_VAR" 16413 while true; do 16414 new_full_var="`eval echo $full_var`" 16415 if test "x$new_full_var" = "x$full_var"; then break; fi 16416 full_var=$new_full_var 16417 done 16418 16419 full_var=$new_full_var 16420 DOCDIR="$full_var" 16421 16422 16423 prefix=$prefix_save 16424 exec_prefix=$exec_prefix_save 16425 16426 16427if test $HAVE_DOXYGEN = "false"; then 16428 doc_build="no" 16429else 16430 doc_build="yes" 16431fi 16432if test $BUILD_SPEC = "false"; then 16433 spec_build="no" 16434else 16435 spec_build="yes" 16436fi 16437 16438{ $as_echo "$as_me:$LINENO: result: 16439------------------------------------------------------------------------ 16440 $PACKAGE $VERSION: Automatic configuration OK. 16441 16442 General configuration: 16443 16444 Encoding support: ........... ${ac_enable_encode} 16445 Floating point support: ..... ${ac_enable_float} 16446 Assembly optimization: ...... ${cpu_optimization} 16447 Debugging telemetry: ........ ${ac_enable_telemetry} 16448 Build example code: ......... ${ac_enable_examples} 16449 API Documentation: .......... ${doc_build} 16450 Format Documentation: ....... ${spec_build} 16451 16452 Installation paths: 16453 16454 libtheora: ................... ${LIBDIR} 16455 C header files: .............. ${INCLUDEDIR}/theora 16456 Documentation: ............... ${DOCDIR}/$PACKAGE 16457 16458 Building: 16459 16460 Type 'make' to compile $PACKAGE. 16461 16462 Type 'make install' to install $PACKAGE. 16463 16464 ${TESTS_INFO} 16465 16466 Example programs will be built but not installed. 16467------------------------------------------------------------------------ 16468" >&5 16469$as_echo " 16470------------------------------------------------------------------------ 16471 $PACKAGE $VERSION: Automatic configuration OK. 16472 16473 General configuration: 16474 16475 Encoding support: ........... ${ac_enable_encode} 16476 Floating point support: ..... ${ac_enable_float} 16477 Assembly optimization: ...... ${cpu_optimization} 16478 Debugging telemetry: ........ ${ac_enable_telemetry} 16479 Build example code: ......... ${ac_enable_examples} 16480 API Documentation: .......... ${doc_build} 16481 Format Documentation: ....... ${spec_build} 16482 16483 Installation paths: 16484 16485 libtheora: ................... ${LIBDIR} 16486 C header files: .............. ${INCLUDEDIR}/theora 16487 Documentation: ............... ${DOCDIR}/$PACKAGE 16488 16489 Building: 16490 16491 Type 'make' to compile $PACKAGE. 16492 16493 Type 'make install' to install $PACKAGE. 16494 16495 ${TESTS_INFO} 16496 16497 Example programs will be built but not installed. 16498------------------------------------------------------------------------ 16499" >&6; } 16500 16501