1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx]. 4 # 5 # Report bugs to <bugs@yourdomain>. 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## --------------------- ## 12 ## M4sh Initialization. ## 13 ## --------------------- ## 14 15 # Be Bourne compatible 16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23 else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25 fi 26 BIN_SH=xpg4; export BIN_SH # for Tru64 27 DUALCASE=1; export DUALCASE # for MKS sh 28 29 30 # PATH needs CR 31 # Avoid depending upon Character Ranges. 32 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35 as_cr_digits='0123456789' 36 as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38 # The user is always right. 39 if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49 fi 50 51 # Support unset when possible. 52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54 else 55 as_unset=false 56 fi 57 58 59 # IFS 60 # We need space, tab and new line, in precisely that order. Quoting is 61 # there to prevent editors from complaining about space-tab. 62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 63 # splitting by setting IFS to empty value.) 64 as_nl=' 65 ' 66 IFS=" "" $as_nl" 67 68 # Find who we are. Look in the path if we contain no directory separator. 69 case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72 for as_dir in $PATH 73 do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77 done 78 IFS=$as_save_IFS 79 80 ;; 81 esac 82 # We did not find ourselves, most probably we were run as `sh COMMAND' 83 # in which case we are not to be found in the path. 84 if test "x$as_myself" = x; then 85 as_myself=$0 86 fi 87 if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90 fi 91 92 # Work around bugs in pre-3.0 UWIN ksh. 93 for as_var in ENV MAIL MAILPATH 94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95 done 96 PS1='$ ' 97 PS2='> ' 98 PS4='+ ' 99 100 # NLS nuisances. 101 for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105 do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111 done 112 113 # Required to use basename. 114 if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117 else 118 as_expr=false 119 fi 120 121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123 else 124 as_basename=false 125 fi 126 127 128 # Name of the executable. 129 as_me=`$as_basename -- "$0" || 130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133 echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148 # CDPATH. 149 $as_unset CDPATH 150 151 152 if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155 else 156 as_have_required=no 157 fi 158 159 if test $as_have_required = yes && (eval ": 160 (as_func_return () { 161 (exit \$1) 162 } 163 as_func_success () { 164 as_func_return 0 165 } 166 as_func_failure () { 167 as_func_return 1 168 } 169 as_func_ret_success () { 170 return 0 171 } 172 as_func_ret_failure () { 173 return 1 174 } 175 176 exitcode=0 177 if as_func_success; then 178 : 179 else 180 exitcode=1 181 echo as_func_success failed. 182 fi 183 184 if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187 fi 188 189 if as_func_ret_success; then 190 : 191 else 192 exitcode=1 193 echo as_func_ret_success failed. 194 fi 195 196 if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199 fi 200 201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203 else 204 exitcode=1 205 echo positional parameters were not saved. 206 fi 207 208 test \$exitcode = 0) || { (exit 1); exit 1; } 209 210 ( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215 ") 2> /dev/null; then 216 : 217 else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230 done 231 IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238 # Be Bourne compatible 239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246 else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248 fi 249 BIN_SH=xpg4; export BIN_SH # for Tru64 250 DUALCASE=1; export DUALCASE # for MKS sh 251 252 : 253 _ASEOF 254 }; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258 # Be Bourne compatible 259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266 else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268 fi 269 BIN_SH=xpg4; export BIN_SH # for Tru64 270 DUALCASE=1; export DUALCASE # for MKS sh 271 272 : 273 (as_func_return () { 274 (exit $1) 275 } 276 as_func_success () { 277 as_func_return 0 278 } 279 as_func_failure () { 280 as_func_return 1 281 } 282 as_func_ret_success () { 283 return 0 284 } 285 as_func_ret_failure () { 286 return 1 287 } 288 289 exitcode=0 290 if as_func_success; then 291 : 292 else 293 exitcode=1 294 echo as_func_success failed. 295 fi 296 297 if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300 fi 301 302 if as_func_ret_success; then 303 : 304 else 305 exitcode=1 306 echo as_func_ret_success failed. 307 fi 308 309 if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312 fi 313 314 if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316 else 317 exitcode=1 318 echo positional parameters were not saved. 319 fi 320 321 test $exitcode = 0) || { (exit 1); exit 1; } 322 323 ( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329 _ASEOF 330 }; then 331 break 332 fi 333 334 fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344 fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353 fi 354 355 356 fi 357 358 fi 359 360 361 362 (eval "as_func_return () { 363 (exit \$1) 364 } 365 as_func_success () { 366 as_func_return 0 367 } 368 as_func_failure () { 369 as_func_return 1 370 } 371 as_func_ret_success () { 372 return 0 373 } 374 as_func_ret_failure () { 375 return 1 376 } 377 378 exitcode=0 379 if as_func_success; then 380 : 381 else 382 exitcode=1 383 echo as_func_success failed. 384 fi 385 386 if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389 fi 390 391 if as_func_ret_success; then 392 : 393 else 394 exitcode=1 395 echo as_func_ret_success failed. 396 fi 397 398 if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401 fi 402 403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405 else 406 exitcode=1 407 echo positional parameters were not saved. 408 fi 409 410 test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415 } 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459 } 460 461 462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464 else 465 as_dirname=false 466 fi 467 468 ECHO_C= ECHO_N= ECHO_T= 469 case `echo -n x` in 470 -n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475 *) 476 ECHO_N='-n';; 477 esac 478 479 if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482 else 483 as_expr=false 484 fi 485 486 rm -f conf$$ conf$$.exe conf$$.file 487 if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489 else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492 fi 493 echo >conf$$.file 494 if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502 elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504 else 505 as_ln_s='cp -p' 506 fi 507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508 rmdir conf$$.dir 2>/dev/null 509 510 if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512 else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515 fi 516 517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 518 # systems may use methods other than mode bits to determine executability. 519 cat >conf$$.file <<_ASEOF 520 #! /bin/sh 521 exit 0 522 _ASEOF 523 chmod +x conf$$.file 524 if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526 else 527 as_executable_p=: 528 fi 529 rm -f conf$$.file 530 531 # Sed expression to map a string onto a valid CPP name. 532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534 # Sed expression to map a string onto a valid variable name. 535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539 exec 7<&0 </dev/null 6>&1 540 541 # Name of the host. 542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 543 # so uname gets run too. 544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 545 546 # 547 # Initializations. 548 # 549 ac_default_prefix=/usr/local 550 ac_clean_files= 551 ac_config_libobj_dir=. 552 LIBOBJS= 553 cross_compiling=no 554 subdirs= 555 MFLAGS= 556 MAKEFLAGS= 557 SHELL=${CONFIG_SHELL-/bin/sh} 558 559 # Identity of this package. 560 PACKAGE_NAME='[SAMPLE]' 561 PACKAGE_TARNAME='--sample--' 562 PACKAGE_VERSION='[x.xx]' 563 PACKAGE_STRING='[SAMPLE] [x.xx]' 564 PACKAGE_BUGREPORT='bugs@yourdomain' 565 566 ac_unique_file=""Makefile.common.in"" 567 # Factoring default headers for most tests. 568 ac_includes_default="\ 569 #include <stdio.h> 570 #if HAVE_SYS_TYPES_H 571 # include <sys/types.h> 572 #endif 573 #if HAVE_SYS_STAT_H 574 # include <sys/stat.h> 575 #endif 576 #if STDC_HEADERS 577 # include <stdlib.h> 578 # include <stddef.h> 579 #else 580 # if HAVE_STDLIB_H 581 # include <stdlib.h> 582 # endif 583 #endif 584 #if HAVE_STRING_H 585 # if !STDC_HEADERS && HAVE_MEMORY_H 586 # include <memory.h> 587 # endif 588 # include <string.h> 589 #endif 590 #if HAVE_STRINGS_H 591 # include <strings.h> 592 #endif 593 #if HAVE_INTTYPES_H 594 # include <inttypes.h> 595 #endif 596 #if HAVE_STDINT_H 597 # include <stdint.h> 598 #endif 599 #if HAVE_UNISTD_H 600 # include <unistd.h> 601 #endif" 602 603 ac_subst_vars='SHELL 604 PATH_SEPARATOR 605 PACKAGE_NAME 606 PACKAGE_TARNAME 607 PACKAGE_VERSION 608 PACKAGE_STRING 609 PACKAGE_BUGREPORT 610 exec_prefix 611 prefix 612 program_transform_name 613 bindir 614 sbindir 615 libexecdir 616 datarootdir 617 datadir 618 sysconfdir 619 sharedstatedir 620 localstatedir 621 includedir 622 oldincludedir 623 docdir 624 infodir 625 htmldir 626 dvidir 627 pdfdir 628 psdir 629 libdir 630 localedir 631 mandir 632 DEFS 633 ECHO_C 634 ECHO_N 635 ECHO_T 636 LIBS 637 build_alias 638 host_alias 639 target_alias 640 LLVM_SRC 641 LLVM_OBJ 642 LLVM_VERSION 643 CC 644 CFLAGS 645 LDFLAGS 646 CPPFLAGS 647 ac_ct_CC 648 EXEEXT 649 OBJEXT 650 CXX 651 CXXFLAGS 652 ac_ct_CXX 653 CPP 654 ENABLE_POLLY 655 LLVM_HAS_POLLY 656 subdirs 657 build 658 build_cpu 659 build_vendor 660 build_os 661 host 662 host_cpu 663 host_vendor 664 host_os 665 target 666 target_cpu 667 target_vendor 668 target_os 669 OS 670 HOST_OS 671 TARGET_OS 672 LINKALL 673 NOLINKALL 674 LLVM_ON_UNIX 675 LLVM_ON_WIN32 676 ARCH 677 ENDIAN 678 GREP 679 EGREP 680 LLVM_CROSS_COMPILING 681 BUILD_CC 682 BUILD_EXEEXT 683 BUILD_CXX 684 CVSBUILD 685 ENABLE_LIBCPP 686 ENABLE_CXX11 687 ENABLE_OPTIMIZED 688 ENABLE_PROFILING 689 DISABLE_ASSERTIONS 690 ENABLE_WERROR 691 ENABLE_EXPENSIVE_CHECKS 692 EXPENSIVE_CHECKS 693 DEBUG_RUNTIME 694 DEBUG_SYMBOLS 695 JIT 696 TARGET_HAS_JIT 697 ENABLE_DOCS 698 ENABLE_DOXYGEN 699 ENABLE_THREADS 700 ENABLE_PTHREADS 701 ENABLE_PIC 702 ENABLE_SHARED 703 ENABLE_EMBED_STDCXX 704 ENABLE_TIMESTAMPS 705 TARGETS_TO_BUILD 706 LLVM_ENUM_TARGETS 707 LLVM_ENUM_ASM_PRINTERS 708 LLVM_ENUM_ASM_PARSERS 709 LLVM_ENUM_DISASSEMBLERS 710 OPTIMIZE_OPTION 711 EXTRA_OPTIONS 712 EXTRA_LD_OPTIONS 713 BINUTILS_INCDIR 714 NM 715 ifGNUmake 716 LN_S 717 CMP 718 CP 719 DATE 720 FIND 721 MKDIR 722 MV 723 RANLIB 724 AR 725 RM 726 SED 727 TAR 728 BINPWD 729 GRAPHVIZ 730 DOT 731 FDP 732 NEATO 733 TWOPI 734 CIRCO 735 GV 736 DOTTY 737 XDOT_PY 738 INSTALL_PROGRAM 739 INSTALL_SCRIPT 740 INSTALL_DATA 741 BZIP2 742 CAT 743 DOXYGEN 744 GROFF 745 GZIPBIN 746 POD2HTML 747 POD2MAN 748 PDFROFF 749 RUNTEST 750 TCLSH 751 ZIP 752 OCAMLC 753 OCAMLOPT 754 OCAMLDEP 755 OCAMLDOC 756 GAS 757 HAVE_LINK_VERSION_SCRIPT 758 INSTALL_LTDL_TRUE 759 INSTALL_LTDL_FALSE 760 CONVENIENCE_LTDL_TRUE 761 CONVENIENCE_LTDL_FALSE 762 LIBADD_DL 763 NO_VARIADIC_MACROS 764 NO_MISSING_FIELD_INITIALIZERS 765 COVERED_SWITCH_DEFAULT 766 USE_UDIS86 767 USE_OPROFILE 768 HAVE_PTHREAD 769 HUGE_VAL_SANITY 770 MMAP_FILE 771 SHLIBEXT 772 SHLIBPATH_VAR 773 LLVM_PREFIX 774 LLVM_BINDIR 775 LLVM_DATADIR 776 LLVM_DOCSDIR 777 LLVM_ETCDIR 778 LLVM_INCLUDEDIR 779 LLVM_INFODIR 780 LLVM_MANDIR 781 LLVM_CONFIGTIME 782 BINDINGS_TO_BUILD 783 ALL_BINDINGS 784 OCAML_LIBDIR 785 ENABLE_VISIBILITY_INLINES_HIDDEN 786 RPATH 787 RDYNAMIC 788 LIBOBJS 789 LTLIBOBJS' 790 ac_subst_files='' 791 ac_precious_vars='build_alias 792 host_alias 793 target_alias 794 CC 795 CFLAGS 796 LDFLAGS 797 CPPFLAGS 798 CXX 799 CXXFLAGS 800 CCC 801 CPP' 802 ac_subdirs_all='tools/polly' 803 804 # Initialize some variables set by options. 805 ac_init_help= 806 ac_init_version=false 807 # The variables have the same names as the options, with 808 # dashes changed to underlines. 809 cache_file=/dev/null 810 exec_prefix=NONE 811 no_create= 812 no_recursion= 813 prefix=NONE 814 program_prefix=NONE 815 program_suffix=NONE 816 program_transform_name=s,x,x, 817 silent= 818 site= 819 srcdir= 820 verbose= 821 x_includes=NONE 822 x_libraries=NONE 823 824 # Installation directory options. 825 # These are left unexpanded so users can "make install exec_prefix=/foo" 826 # and all the variables that are supposed to be based on exec_prefix 827 # by default will actually change. 828 # Use braces instead of parens because sh, perl, etc. also accept them. 829 # (The list follows the same order as the GNU Coding Standards.) 830 bindir='${exec_prefix}/bin' 831 sbindir='${exec_prefix}/sbin' 832 libexecdir='${exec_prefix}/libexec' 833 datarootdir='${prefix}/share' 834 datadir='${datarootdir}' 835 sysconfdir='${prefix}/etc' 836 sharedstatedir='${prefix}/com' 837 localstatedir='${prefix}/var' 838 includedir='${prefix}/include' 839 oldincludedir='/usr/include' 840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841 infodir='${datarootdir}/info' 842 htmldir='${docdir}' 843 dvidir='${docdir}' 844 pdfdir='${docdir}' 845 psdir='${docdir}' 846 libdir='${exec_prefix}/lib' 847 localedir='${datarootdir}/locale' 848 mandir='${datarootdir}/man' 849 850 ac_prev= 851 ac_dashdash= 852 for ac_option 853 do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *) ac_optarg=yes ;; 864 esac 865 866 # Accept the important Cygnus configure options, so we can diagnose typos. 867 868 case $ac_dashdash$ac_option in 869 --) 870 ac_dashdash=yes ;; 871 872 -bindir | --bindir | --bindi | --bind | --bin | --bi) 873 ac_prev=bindir ;; 874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 875 bindir=$ac_optarg ;; 876 877 -build | --build | --buil | --bui | --bu) 878 ac_prev=build_alias ;; 879 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 880 build_alias=$ac_optarg ;; 881 882 -cache-file | --cache-file | --cache-fil | --cache-fi \ 883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 884 ac_prev=cache_file ;; 885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 887 cache_file=$ac_optarg ;; 888 889 --config-cache | -C) 890 cache_file=config.cache ;; 891 892 -datadir | --datadir | --datadi | --datad) 893 ac_prev=datadir ;; 894 -datadir=* | --datadir=* | --datadi=* | --datad=*) 895 datadir=$ac_optarg ;; 896 897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 898 | --dataroo | --dataro | --datar) 899 ac_prev=datarootdir ;; 900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 902 datarootdir=$ac_optarg ;; 903 904 -disable-* | --disable-*) 905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 909 { (exit 1); exit 1; }; } 910 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 911 eval enable_$ac_feature=no ;; 912 913 -docdir | --docdir | --docdi | --doc | --do) 914 ac_prev=docdir ;; 915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 916 docdir=$ac_optarg ;; 917 918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 919 ac_prev=dvidir ;; 920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 921 dvidir=$ac_optarg ;; 922 923 -enable-* | --enable-*) 924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 928 { (exit 1); exit 1; }; } 929 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 930 eval enable_$ac_feature=\$ac_optarg ;; 931 932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 934 | --exec | --exe | --ex) 935 ac_prev=exec_prefix ;; 936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 938 | --exec=* | --exe=* | --ex=*) 939 exec_prefix=$ac_optarg ;; 940 941 -gas | --gas | --ga | --g) 942 # Obsolete; use --with-gas. 943 with_gas=yes ;; 944 945 -help | --help | --hel | --he | -h) 946 ac_init_help=long ;; 947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 948 ac_init_help=recursive ;; 949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 950 ac_init_help=short ;; 951 952 -host | --host | --hos | --ho) 953 ac_prev=host_alias ;; 954 -host=* | --host=* | --hos=* | --ho=*) 955 host_alias=$ac_optarg ;; 956 957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 958 ac_prev=htmldir ;; 959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 960 | --ht=*) 961 htmldir=$ac_optarg ;; 962 963 -includedir | --includedir | --includedi | --included | --include \ 964 | --includ | --inclu | --incl | --inc) 965 ac_prev=includedir ;; 966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 967 | --includ=* | --inclu=* | --incl=* | --inc=*) 968 includedir=$ac_optarg ;; 969 970 -infodir | --infodir | --infodi | --infod | --info | --inf) 971 ac_prev=infodir ;; 972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 973 infodir=$ac_optarg ;; 974 975 -libdir | --libdir | --libdi | --libd) 976 ac_prev=libdir ;; 977 -libdir=* | --libdir=* | --libdi=* | --libd=*) 978 libdir=$ac_optarg ;; 979 980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 981 | --libexe | --libex | --libe) 982 ac_prev=libexecdir ;; 983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 984 | --libexe=* | --libex=* | --libe=*) 985 libexecdir=$ac_optarg ;; 986 987 -localedir | --localedir | --localedi | --localed | --locale) 988 ac_prev=localedir ;; 989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 990 localedir=$ac_optarg ;; 991 992 -localstatedir | --localstatedir | --localstatedi | --localstated \ 993 | --localstate | --localstat | --localsta | --localst | --locals) 994 ac_prev=localstatedir ;; 995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 997 localstatedir=$ac_optarg ;; 998 999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1000 ac_prev=mandir ;; 1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1002 mandir=$ac_optarg ;; 1003 1004 -nfp | --nfp | --nf) 1005 # Obsolete; use --without-fp. 1006 with_fp=no ;; 1007 1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1009 | --no-cr | --no-c | -n) 1010 no_create=yes ;; 1011 1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1014 no_recursion=yes ;; 1015 1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1018 | --oldin | --oldi | --old | --ol | --o) 1019 ac_prev=oldincludedir ;; 1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1023 oldincludedir=$ac_optarg ;; 1024 1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1026 ac_prev=prefix ;; 1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1028 prefix=$ac_optarg ;; 1029 1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1031 | --program-pre | --program-pr | --program-p) 1032 ac_prev=program_prefix ;; 1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1035 program_prefix=$ac_optarg ;; 1036 1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1038 | --program-suf | --program-su | --program-s) 1039 ac_prev=program_suffix ;; 1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1042 program_suffix=$ac_optarg ;; 1043 1044 -program-transform-name | --program-transform-name \ 1045 | --program-transform-nam | --program-transform-na \ 1046 | --program-transform-n | --program-transform- \ 1047 | --program-transform | --program-transfor \ 1048 | --program-transfo | --program-transf \ 1049 | --program-trans | --program-tran \ 1050 | --progr-tra | --program-tr | --program-t) 1051 ac_prev=program_transform_name ;; 1052 -program-transform-name=* | --program-transform-name=* \ 1053 | --program-transform-nam=* | --program-transform-na=* \ 1054 | --program-transform-n=* | --program-transform-=* \ 1055 | --program-transform=* | --program-transfor=* \ 1056 | --program-transfo=* | --program-transf=* \ 1057 | --program-trans=* | --program-tran=* \ 1058 | --progr-tra=* | --program-tr=* | --program-t=*) 1059 program_transform_name=$ac_optarg ;; 1060 1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1062 ac_prev=pdfdir ;; 1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1064 pdfdir=$ac_optarg ;; 1065 1066 -psdir | --psdir | --psdi | --psd | --ps) 1067 ac_prev=psdir ;; 1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1069 psdir=$ac_optarg ;; 1070 1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1072 | -silent | --silent | --silen | --sile | --sil) 1073 silent=yes ;; 1074 1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1076 ac_prev=sbindir ;; 1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1078 | --sbi=* | --sb=*) 1079 sbindir=$ac_optarg ;; 1080 1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1083 | --sharedst | --shareds | --shared | --share | --shar \ 1084 | --sha | --sh) 1085 ac_prev=sharedstatedir ;; 1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1089 | --sha=* | --sh=*) 1090 sharedstatedir=$ac_optarg ;; 1091 1092 -site | --site | --sit) 1093 ac_prev=site ;; 1094 -site=* | --site=* | --sit=*) 1095 site=$ac_optarg ;; 1096 1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1098 ac_prev=srcdir ;; 1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1100 srcdir=$ac_optarg ;; 1101 1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1103 | --syscon | --sysco | --sysc | --sys | --sy) 1104 ac_prev=sysconfdir ;; 1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1107 sysconfdir=$ac_optarg ;; 1108 1109 -target | --target | --targe | --targ | --tar | --ta | --t) 1110 ac_prev=target_alias ;; 1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1112 target_alias=$ac_optarg ;; 1113 1114 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1115 verbose=yes ;; 1116 1117 -version | --version | --versio | --versi | --vers | -V) 1118 ac_init_version=: ;; 1119 1120 -with-* | --with-*) 1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1124 { echo "$as_me: error: invalid package name: $ac_package" >&2 1125 { (exit 1); exit 1; }; } 1126 ac_package=`echo $ac_package| sed 's/-/_/g'` 1127 eval with_$ac_package=\$ac_optarg ;; 1128 1129 -without-* | --without-*) 1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1133 { echo "$as_me: error: invalid package name: $ac_package" >&2 1134 { (exit 1); exit 1; }; } 1135 ac_package=`echo $ac_package | sed 's/-/_/g'` 1136 eval with_$ac_package=no ;; 1137 1138 --x) 1139 # Obsolete; use --with-x. 1140 with_x=yes ;; 1141 1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1143 | --x-incl | --x-inc | --x-in | --x-i) 1144 ac_prev=x_includes ;; 1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1147 x_includes=$ac_optarg ;; 1148 1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1151 ac_prev=x_libraries ;; 1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1154 x_libraries=$ac_optarg ;; 1155 1156 -*) { echo "$as_me: error: unrecognized option: $ac_option 1157 Try \`$0 --help' for more information." >&2 1158 { (exit 1); exit 1; }; } 1159 ;; 1160 1161 *=*) 1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1166 { (exit 1); exit 1; }; } 1167 eval $ac_envvar=\$ac_optarg 1168 export $ac_envvar ;; 1169 1170 *) 1171 # FIXME: should be removed in autoconf 3.0. 1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1176 ;; 1177 1178 esac 1179 done 1180 1181 if test -n "$ac_prev"; then 1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1183 { echo "$as_me: error: missing argument to $ac_option" >&2 1184 { (exit 1); exit 1; }; } 1185 fi 1186 1187 # Be sure to have absolute directory names. 1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1189 datadir sysconfdir sharedstatedir localstatedir includedir \ 1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1191 libdir localedir mandir 1192 do 1193 eval ac_val=\$$ac_var 1194 case $ac_val in 1195 [\\/$]* | ?:[\\/]* ) continue;; 1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1197 esac 1198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1199 { (exit 1); exit 1; }; } 1200 done 1201 1202 # There might be people who depend on the old broken behavior: `$host' 1203 # used to hold the argument of --host etc. 1204 # FIXME: To remove some day. 1205 build=$build_alias 1206 host=$host_alias 1207 target=$target_alias 1208 1209 # FIXME: To remove some day. 1210 if test "x$host_alias" != x; then 1211 if test "x$build_alias" = x; then 1212 cross_compiling=maybe 1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1214 If a cross compiler is detected then cross compile mode will be used." >&2 1215 elif test "x$build_alias" != "x$host_alias"; then 1216 cross_compiling=yes 1217 fi 1218 fi 1219 1220 ac_tool_prefix= 1221 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1222 1223 test "$silent" = yes && exec 6>/dev/null 1224 1225 1226 ac_pwd=`pwd` && test -n "$ac_pwd" && 1227 ac_ls_di=`ls -di .` && 1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1229 { echo "$as_me: error: Working directory cannot be determined" >&2 1230 { (exit 1); exit 1; }; } 1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1232 { echo "$as_me: error: pwd does not report name of working directory" >&2 1233 { (exit 1); exit 1; }; } 1234 1235 1236 # Find the source files, if location was not specified. 1237 if test -z "$srcdir"; then 1238 ac_srcdir_defaulted=yes 1239 # Try the directory containing this script, then the parent directory. 1240 ac_confdir=`$as_dirname -- "$0" || 1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1242 X"$0" : 'X\(//\)[^/]' \| \ 1243 X"$0" : 'X\(//\)$' \| \ 1244 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1245 echo X"$0" | 1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1247 s//\1/ 1248 q 1249 } 1250 /^X\(\/\/\)[^/].*/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\).*/{ 1259 s//\1/ 1260 q 1261 } 1262 s/.*/./; q'` 1263 srcdir=$ac_confdir 1264 if test ! -r "$srcdir/$ac_unique_file"; then 1265 srcdir=.. 1266 fi 1267 else 1268 ac_srcdir_defaulted=no 1269 fi 1270 if test ! -r "$srcdir/$ac_unique_file"; then 1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1273 { (exit 1); exit 1; }; } 1274 fi 1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1276 ac_abs_confdir=`( 1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1278 { (exit 1); exit 1; }; } 1279 pwd)` 1280 # When building in place, set srcdir=. 1281 if test "$ac_abs_confdir" = "$ac_pwd"; then 1282 srcdir=. 1283 fi 1284 # Remove unnecessary trailing slashes from srcdir. 1285 # Double slashes in file names in object file debugging info 1286 # mess up M-x gdb in Emacs. 1287 case $srcdir in 1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1289 esac 1290 for ac_var in $ac_precious_vars; do 1291 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1292 eval ac_env_${ac_var}_value=\$${ac_var} 1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1295 done 1296 1297 # 1298 # Report the --help message. 1299 # 1300 if test "$ac_init_help" = "long"; then 1301 # Omit some internal or obsolete options to make the list less imposing. 1302 # This message is too long to be a string in the A/UX 3.1 sh. 1303 cat <<_ACEOF 1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems. 1305 1306 Usage: $0 [OPTION]... [VAR=VALUE]... 1307 1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1309 VAR=VALUE. See below for descriptions of some of the useful variables. 1310 1311 Defaults for the options are specified in brackets. 1312 1313 Configuration: 1314 -h, --help display this help and exit 1315 --help=short display options specific to this package 1316 --help=recursive display the short help of all the included packages 1317 -V, --version display version information and exit 1318 -q, --quiet, --silent do not print \`checking...' messages 1319 --cache-file=FILE cache test results in FILE [disabled] 1320 -C, --config-cache alias for \`--cache-file=config.cache' 1321 -n, --no-create do not create output files 1322 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1323 1324 Installation directories: 1325 --prefix=PREFIX install architecture-independent files in PREFIX 1326 [$ac_default_prefix] 1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1328 [PREFIX] 1329 1330 By default, \`make install' will install all the files in 1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1333 for instance \`--prefix=\$HOME'. 1334 1335 For better control, use the options below. 1336 1337 Fine tuning of the installation directories: 1338 --bindir=DIR user executables [EPREFIX/bin] 1339 --sbindir=DIR system admin executables [EPREFIX/sbin] 1340 --libexecdir=DIR program executables [EPREFIX/libexec] 1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1344 --libdir=DIR object code libraries [EPREFIX/lib] 1345 --includedir=DIR C header files [PREFIX/include] 1346 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1349 --infodir=DIR info documentation [DATAROOTDIR/info] 1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1351 --mandir=DIR man documentation [DATAROOTDIR/man] 1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--] 1353 --htmldir=DIR html documentation [DOCDIR] 1354 --dvidir=DIR dvi documentation [DOCDIR] 1355 --pdfdir=DIR pdf documentation [DOCDIR] 1356 --psdir=DIR ps documentation [DOCDIR] 1357 _ACEOF 1358 1359 cat <<\_ACEOF 1360 1361 System types: 1362 --build=BUILD configure for building on BUILD [guessed] 1363 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1364 --target=TARGET configure for building compilers for TARGET [HOST] 1365 _ACEOF 1366 fi 1367 1368 if test -n "$ac_init_help"; then 1369 case $ac_init_help in 1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";; 1371 esac 1372 cat <<\_ACEOF 1373 1374 Optional Features: 1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1377 --enable-polly Use polly if available (default is YES) 1378 --enable-libcpp Use libc++ if available (default is NO) 1379 --enable-cxx11 Use c++11 if available (default is NO) 1380 --enable-optimized Compile with optimizations enabled (default is NO) 1381 --enable-profiling Compile with profiling enabled (default is NO) 1382 --enable-assertions Compile with assertion checks enabled (default is 1383 YES) 1384 --enable-werror Compile with -Werror enabled (default is NO) 1385 --enable-expensive-checks 1386 Compile with expensive debug checks enabled (default 1387 is NO) 1388 --enable-debug-runtime Build runtime libs with debug symbols (default is 1389 NO) 1390 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1391 optimization is on and YES if it's off) 1392 --enable-jit Enable Just In Time Compiling (default is YES) 1393 --enable-docs Build documents (default is YES) 1394 --enable-doxygen Build doxygen documentation (default is NO) 1395 --enable-threads Use threads if available (default is YES) 1396 --enable-pthreads Use pthreads if available (default is YES) 1397 --enable-pic Build LLVM with Position Independent Code (default 1398 is YES) 1399 --enable-shared Build a shared library and link tools against it 1400 (default is NO) 1401 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1402 Win32 DLL (default is YES) 1403 --enable-timestamps Enable embedding timestamp information in build 1404 (default is YES) 1405 --enable-targets Build specific host targets: all or 1406 target1,target2,... Valid targets are: host, x86, 1407 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon, 1408 xcore, msp430, nvptx, systemz, r600, and cpp 1409 (default=all) 1410 --enable-bindings Build specific language bindings: 1411 all,auto,none,{binding-name} (default=auto) 1412 --enable-libffi Check for the presence of libffi (default is NO) 1413 --enable-ltdl-install install libltdl 1414 1415 Optional Packages: 1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1418 --with-llvmsrc Location of LLVM Source Code 1419 --with-llvmobj Location of LLVM Object Code 1420 --with-optimize-option Select the compiler options to use for optimized 1421 builds 1422 --with-extra-options Specify additional options to compile LLVM with 1423 --with-extra-ld-options Specify additional options to link LLVM with 1424 --with-ocaml-libdir Specify install location for ocaml bindings (default 1425 is stdlib) 1426 --with-clang-resource-dir 1427 Relative directory from the Clang binary for 1428 resource files 1429 --with-c-include-dirs Colon separated list of directories clang will 1430 search for headers 1431 --with-gcc-toolchain Directory where gcc is installed. 1432 --with-binutils-include Specify path to binutils/include/ containing 1433 plugin-api.h file for gold plugin. 1434 --with-bug-report-url Specify the URL where bug reports should be 1435 submitted (default=http://llvm.org/bugs/) 1436 --with-tclinclude directory where tcl headers are 1437 --with-udis86=<path> Use udis86 external x86 disassembler library 1438 --with-oprofile=<prefix> 1439 Tell OProfile >= 0.9.4 how to symbolize JIT output 1440 1441 Some influential environment variables: 1442 CC C compiler command 1443 CFLAGS C compiler flags 1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1445 nonstandard directory <lib dir> 1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1447 you have headers in a nonstandard directory <include dir> 1448 CXX C++ compiler command 1449 CXXFLAGS C++ compiler flags 1450 CPP C preprocessor 1451 1452 Use these variables to override the choices made by `configure' or to help 1453 it to find libraries and programs with nonstandard names/locations. 1454 1455 Report bugs to <bugs@yourdomain>. 1456 _ACEOF 1457 ac_status=$? 1458 fi 1459 1460 if test "$ac_init_help" = "recursive"; then 1461 # If there are subdirs, report their specific --help. 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1463 test -d "$ac_dir" || continue 1464 ac_builddir=. 1465 1466 case "$ac_dir" in 1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468 *) 1469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1470 # A ".." for each directory in $ac_dir_suffix. 1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1472 case $ac_top_builddir_sub in 1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1475 esac ;; 1476 esac 1477 ac_abs_top_builddir=$ac_pwd 1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1479 # for backward compatibility: 1480 ac_top_builddir=$ac_top_build_prefix 1481 1482 case $srcdir in 1483 .) # We are building in place. 1484 ac_srcdir=. 1485 ac_top_srcdir=$ac_top_builddir_sub 1486 ac_abs_top_srcdir=$ac_pwd ;; 1487 [\\/]* | ?:[\\/]* ) # Absolute name. 1488 ac_srcdir=$srcdir$ac_dir_suffix; 1489 ac_top_srcdir=$srcdir 1490 ac_abs_top_srcdir=$srcdir ;; 1491 *) # Relative name. 1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1493 ac_top_srcdir=$ac_top_build_prefix$srcdir 1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1495 esac 1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1497 1498 cd "$ac_dir" || { ac_status=$?; continue; } 1499 # Check for guested configure. 1500 if test -f "$ac_srcdir/configure.gnu"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1503 elif test -f "$ac_srcdir/configure"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure" --help=recursive 1506 else 1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1508 fi || ac_status=$? 1509 cd "$ac_pwd" || { ac_status=$?; break; } 1510 done 1511 fi 1512 1513 test -n "$ac_init_help" && exit $ac_status 1514 if $ac_init_version; then 1515 cat <<\_ACEOF 1516 [SAMPLE] configure [x.xx] 1517 generated by GNU Autoconf 2.60 1518 1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1521 This configure script is free software; the Free Software Foundation 1522 gives unlimited permission to copy, distribute and modify it. 1523 _ACEOF 1524 exit 1525 fi 1526 cat >config.log <<_ACEOF 1527 This file contains any messages produced by compilers while 1528 running configure, to aid debugging if configure makes a mistake. 1529 1530 It was created by [SAMPLE] $as_me [x.xx], which was 1531 generated by GNU Autoconf 2.60. Invocation command line was 1532 1533 $ $0 $@ 1534 1535 _ACEOF 1536 exec 5>>config.log 1537 { 1538 cat <<_ASUNAME 1539 ## --------- ## 1540 ## Platform. ## 1541 ## --------- ## 1542 1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1544 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1545 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1546 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1547 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1548 1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1551 1552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1559 1560 _ASUNAME 1561 1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1563 for as_dir in $PATH 1564 do 1565 IFS=$as_save_IFS 1566 test -z "$as_dir" && as_dir=. 1567 echo "PATH: $as_dir" 1568 done 1569 IFS=$as_save_IFS 1570 1571 } >&5 1572 1573 cat >&5 <<_ACEOF 1574 1575 1576 ## ----------- ## 1577 ## Core tests. ## 1578 ## ----------- ## 1579 1580 _ACEOF 1581 1582 1583 # Keep a trace of the command line. 1584 # Strip out --no-create and --no-recursion so they do not pile up. 1585 # Strip out --silent because we don't want to record it for future runs. 1586 # Also quote any args containing shell meta-characters. 1587 # Make two passes to allow for proper duplicate-argument suppression. 1588 ac_configure_args= 1589 ac_configure_args0= 1590 ac_configure_args1= 1591 ac_must_keep_next=false 1592 for ac_pass in 1 2 1593 do 1594 for ac_arg 1595 do 1596 case $ac_arg in 1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1599 | -silent | --silent | --silen | --sile | --sil) 1600 continue ;; 1601 *\'*) 1602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1603 esac 1604 case $ac_pass in 1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1606 2) 1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1608 if test $ac_must_keep_next = true; then 1609 ac_must_keep_next=false # Got value, back to normal. 1610 else 1611 case $ac_arg in 1612 *=* | --config-cache | -C | -disable-* | --disable-* \ 1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1615 | -with-* | --with-* | -without-* | --without-* | --x) 1616 case "$ac_configure_args0 " in 1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1618 esac 1619 ;; 1620 -* ) ac_must_keep_next=true ;; 1621 esac 1622 fi 1623 ac_configure_args="$ac_configure_args '$ac_arg'" 1624 ;; 1625 esac 1626 done 1627 done 1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1630 1631 # When interrupted or exit'd, cleanup temporary files, and complete 1632 # config.log. We remove comments because anyway the quotes in there 1633 # would cause problems or look ugly. 1634 # WARNING: Use '\'' to represent an apostrophe within the trap. 1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1636 trap 'exit_status=$? 1637 # Save into config.log some information that might help in debugging. 1638 { 1639 echo 1640 1641 cat <<\_ASBOX 1642 ## ---------------- ## 1643 ## Cache variables. ## 1644 ## ---------------- ## 1645 _ASBOX 1646 echo 1647 # The following way of writing the cache mishandles newlines in values, 1648 ( 1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1650 eval ac_val=\$$ac_var 1651 case $ac_val in #( 1652 *${as_nl}*) 1653 case $ac_var in #( 1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1656 esac 1657 case $ac_var in #( 1658 _ | IFS | as_nl) ;; #( 1659 *) $as_unset $ac_var ;; 1660 esac ;; 1661 esac 1662 done 1663 (set) 2>&1 | 1664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1665 *${as_nl}ac_space=\ *) 1666 sed -n \ 1667 "s/'\''/'\''\\\\'\'''\''/g; 1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1669 ;; #( 1670 *) 1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1672 ;; 1673 esac | 1674 sort 1675 ) 1676 echo 1677 1678 cat <<\_ASBOX 1679 ## ----------------- ## 1680 ## Output variables. ## 1681 ## ----------------- ## 1682 _ASBOX 1683 echo 1684 for ac_var in $ac_subst_vars 1685 do 1686 eval ac_val=\$$ac_var 1687 case $ac_val in 1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1689 esac 1690 echo "$ac_var='\''$ac_val'\''" 1691 done | sort 1692 echo 1693 1694 if test -n "$ac_subst_files"; then 1695 cat <<\_ASBOX 1696 ## ------------------- ## 1697 ## File substitutions. ## 1698 ## ------------------- ## 1699 _ASBOX 1700 echo 1701 for ac_var in $ac_subst_files 1702 do 1703 eval ac_val=\$$ac_var 1704 case $ac_val in 1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1706 esac 1707 echo "$ac_var='\''$ac_val'\''" 1708 done | sort 1709 echo 1710 fi 1711 1712 if test -s confdefs.h; then 1713 cat <<\_ASBOX 1714 ## ----------- ## 1715 ## confdefs.h. ## 1716 ## ----------- ## 1717 _ASBOX 1718 echo 1719 cat confdefs.h 1720 echo 1721 fi 1722 test "$ac_signal" != 0 && 1723 echo "$as_me: caught signal $ac_signal" 1724 echo "$as_me: exit $exit_status" 1725 } >&5 1726 rm -f core *.core core.conftest.* && 1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1728 exit $exit_status 1729 ' 0 1730 for ac_signal in 1 2 13 15; do 1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1732 done 1733 ac_signal=0 1734 1735 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1736 rm -f -r conftest* confdefs.h 1737 1738 # Predefined preprocessor variables. 1739 1740 cat >>confdefs.h <<_ACEOF 1741 #define PACKAGE_NAME "$PACKAGE_NAME" 1742 _ACEOF 1743 1744 1745 cat >>confdefs.h <<_ACEOF 1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1747 _ACEOF 1748 1749 1750 cat >>confdefs.h <<_ACEOF 1751 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1752 _ACEOF 1753 1754 1755 cat >>confdefs.h <<_ACEOF 1756 #define PACKAGE_STRING "$PACKAGE_STRING" 1757 _ACEOF 1758 1759 1760 cat >>confdefs.h <<_ACEOF 1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1762 _ACEOF 1763 1764 1765 # Let the site file select an alternate cache file if it wants to. 1766 # Prefer explicitly selected file to automatically selected ones. 1767 if test -n "$CONFIG_SITE"; then 1768 set x "$CONFIG_SITE" 1769 elif test "x$prefix" != xNONE; then 1770 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1771 else 1772 set x "$ac_default_prefix/share/config.site" \ 1773 "$ac_default_prefix/etc/config.site" 1774 fi 1775 shift 1776 for ac_site_file 1777 do 1778 if test -r "$ac_site_file"; then 1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1780 echo "$as_me: loading site script $ac_site_file" >&6;} 1781 sed 's/^/| /' "$ac_site_file" >&5 1782 . "$ac_site_file" 1783 fi 1784 done 1785 1786 if test -r "$cache_file"; then 1787 # Some versions of bash will fail to source /dev/null (special 1788 # files actually), so we avoid doing that. 1789 if test -f "$cache_file"; then 1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1791 echo "$as_me: loading cache $cache_file" >&6;} 1792 case $cache_file in 1793 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1794 *) . "./$cache_file";; 1795 esac 1796 fi 1797 else 1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1799 echo "$as_me: creating cache $cache_file" >&6;} 1800 >$cache_file 1801 fi 1802 1803 # Check that the precious variables saved in the cache have kept the same 1804 # value. 1805 ac_cache_corrupted=false 1806 for ac_var in $ac_precious_vars; do 1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1808 eval ac_new_set=\$ac_env_${ac_var}_set 1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1810 eval ac_new_val=\$ac_env_${ac_var}_value 1811 case $ac_old_set,$ac_new_set in 1812 set,) 1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1815 ac_cache_corrupted=: ;; 1816 ,set) 1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1819 ac_cache_corrupted=: ;; 1820 ,);; 1821 *) 1822 if test "x$ac_old_val" != "x$ac_new_val"; then 1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1826 echo "$as_me: former value: $ac_old_val" >&2;} 1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1828 echo "$as_me: current value: $ac_new_val" >&2;} 1829 ac_cache_corrupted=: 1830 fi;; 1831 esac 1832 # Pass precious variables to config.status. 1833 if test "$ac_new_set" = set; then 1834 case $ac_new_val in 1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1836 *) ac_arg=$ac_var=$ac_new_val ;; 1837 esac 1838 case " $ac_configure_args " in 1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1841 esac 1842 fi 1843 done 1844 if $ac_cache_corrupted; then 1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1849 { (exit 1); exit 1; }; } 1850 fi 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 ac_ext=c 1877 ac_cpp='$CPP $CPPFLAGS' 1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1881 1882 1883 1884 LLVM_SRC_ROOT="../.." 1885 LLVM_OBJ_ROOT="../.." 1886 1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`" 1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`" 1889 1890 1891 # Check whether --with-llvmsrc was given. 1892 if test "${with_llvmsrc+set}" = set; then 1893 withval=$with_llvmsrc; llvm_src="$withval" 1894 else 1895 llvm_src="$LLVM_ABS_SRC_ROOT" 1896 fi 1897 1898 LLVM_SRC=$llvm_src 1899 1900 1901 # Check whether --with-llvmobj was given. 1902 if test "${with_llvmobj+set}" = set; then 1903 withval=$with_llvmobj; llvm_obj="$withval" 1904 else 1905 llvm_obj="$LLVM_ABS_OBJ_ROOT" 1906 fi 1907 1908 LLVM_OBJ=$llvm_obj 1909 1910 ac_config_commands="$ac_config_commands setup" 1911 1912 1913 1914 { echo "$as_me:$LINENO: checking llvm-config" >&5 1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; } 1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`" 1917 if ! test -f "$llvm_config_path" ; then 1918 llvm_config_path="no" 1919 fi 1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5 1921 echo "${ECHO_T}$llvm_config_path" >&6; } 1922 1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5 1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; } 1925 if test "$llvm_config_path" != no ; then 1926 llvm_package_version=`$llvm_config_path --version` 1927 else 1928 llvm_package_version="unknown"; 1929 fi 1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5 1931 echo "${ECHO_T}$llvm_package_version" >&6; } 1932 LLVM_VERSION=$llvm_package_version 1933 1934 1935 1936 1937 ac_aux_dir= 1938 for ac_dir in autoconf "$srcdir"/autoconf; do 1939 if test -f "$ac_dir/install-sh"; then 1940 ac_aux_dir=$ac_dir 1941 ac_install_sh="$ac_aux_dir/install-sh -c" 1942 break 1943 elif test -f "$ac_dir/install.sh"; then 1944 ac_aux_dir=$ac_dir 1945 ac_install_sh="$ac_aux_dir/install.sh -c" 1946 break 1947 elif test -f "$ac_dir/shtool"; then 1948 ac_aux_dir=$ac_dir 1949 ac_install_sh="$ac_aux_dir/shtool install -c" 1950 break 1951 fi 1952 done 1953 if test -z "$ac_aux_dir"; then 1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1956 { (exit 1); exit 1; }; } 1957 fi 1958 1959 # These three variables are undocumented and unsupported, 1960 # and are intended to be withdrawn in a future Autoconf release. 1961 # They can cause serious problems if a builder's source tree is in a directory 1962 # whose full name contains unusual characters. 1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1966 1967 1968 1969 1970 ac_ext=c 1971 ac_cpp='$CPP $CPPFLAGS' 1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1975 if test -n "$ac_tool_prefix"; then 1976 for ac_prog in clang llvm-gcc gcc 1977 do 1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1982 if test "${ac_cv_prog_CC+set}" = set; then 1983 echo $ECHO_N "(cached) $ECHO_C" >&6 1984 else 1985 if test -n "$CC"; then 1986 ac_cv_prog_CC="$CC" # Let the user override the test. 1987 else 1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1989 for as_dir in $PATH 1990 do 1991 IFS=$as_save_IFS 1992 test -z "$as_dir" && as_dir=. 1993 for ac_exec_ext in '' $ac_executable_extensions; do 1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1997 break 2 1998 fi 1999 done 2000 done 2001 IFS=$as_save_IFS 2002 2003 fi 2004 fi 2005 CC=$ac_cv_prog_CC 2006 if test -n "$CC"; then 2007 { echo "$as_me:$LINENO: result: $CC" >&5 2008 echo "${ECHO_T}$CC" >&6; } 2009 else 2010 { echo "$as_me:$LINENO: result: no" >&5 2011 echo "${ECHO_T}no" >&6; } 2012 fi 2013 2014 2015 test -n "$CC" && break 2016 done 2017 fi 2018 if test -z "$CC"; then 2019 ac_ct_CC=$CC 2020 for ac_prog in clang llvm-gcc gcc 2021 do 2022 # Extract the first word of "$ac_prog", so it can be a program name with args. 2023 set dummy $ac_prog; ac_word=$2 2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2027 echo $ECHO_N "(cached) $ECHO_C" >&6 2028 else 2029 if test -n "$ac_ct_CC"; then 2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2031 else 2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2033 for as_dir in $PATH 2034 do 2035 IFS=$as_save_IFS 2036 test -z "$as_dir" && as_dir=. 2037 for ac_exec_ext in '' $ac_executable_extensions; do 2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2039 ac_cv_prog_ac_ct_CC="$ac_prog" 2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2041 break 2 2042 fi 2043 done 2044 done 2045 IFS=$as_save_IFS 2046 2047 fi 2048 fi 2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2050 if test -n "$ac_ct_CC"; then 2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2052 echo "${ECHO_T}$ac_ct_CC" >&6; } 2053 else 2054 { echo "$as_me:$LINENO: result: no" >&5 2055 echo "${ECHO_T}no" >&6; } 2056 fi 2057 2058 2059 test -n "$ac_ct_CC" && break 2060 done 2061 2062 if test "x$ac_ct_CC" = x; then 2063 CC="" 2064 else 2065 case $cross_compiling:$ac_tool_warned in 2066 yes:) 2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2068 whose name does not start with the host triplet. If you think this 2069 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2071 whose name does not start with the host triplet. If you think this 2072 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2073 ac_tool_warned=yes ;; 2074 esac 2075 CC=$ac_ct_CC 2076 fi 2077 fi 2078 2079 2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2081 See \`config.log' for more details." >&5 2082 echo "$as_me: error: no acceptable C compiler found in \$PATH 2083 See \`config.log' for more details." >&2;} 2084 { (exit 1); exit 1; }; } 2085 2086 # Provide some information about the compiler. 2087 echo "$as_me:$LINENO: checking for C compiler version" >&5 2088 ac_compiler=`set X $ac_compile; echo $2` 2089 { (ac_try="$ac_compiler --version >&5" 2090 case "(($ac_try" in 2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2092 *) ac_try_echo=$ac_try;; 2093 esac 2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2095 (eval "$ac_compiler --version >&5") 2>&5 2096 ac_status=$? 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2098 (exit $ac_status); } 2099 { (ac_try="$ac_compiler -v >&5" 2100 case "(($ac_try" in 2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2102 *) ac_try_echo=$ac_try;; 2103 esac 2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2105 (eval "$ac_compiler -v >&5") 2>&5 2106 ac_status=$? 2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2108 (exit $ac_status); } 2109 { (ac_try="$ac_compiler -V >&5" 2110 case "(($ac_try" in 2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2112 *) ac_try_echo=$ac_try;; 2113 esac 2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2115 (eval "$ac_compiler -V >&5") 2>&5 2116 ac_status=$? 2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2118 (exit $ac_status); } 2119 2120 cat >conftest.$ac_ext <<_ACEOF 2121 /* confdefs.h. */ 2122 _ACEOF 2123 cat confdefs.h >>conftest.$ac_ext 2124 cat >>conftest.$ac_ext <<_ACEOF 2125 /* end confdefs.h. */ 2126 2127 int 2128 main () 2129 { 2130 2131 ; 2132 return 0; 2133 } 2134 _ACEOF 2135 ac_clean_files_save=$ac_clean_files 2136 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2137 # Try to create an executable without -o first, disregard a.out. 2138 # It will help us diagnose broken compilers, and finding out an intuition 2139 # of exeext. 2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2143 # 2144 # List of possible output files, starting from the most likely. 2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2146 # only as a last resort. b.out is created by i960 compilers. 2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2148 # 2149 # The IRIX 6 linker writes into existing files which may not be 2150 # executable, retaining their permissions. Remove them first so a 2151 # subsequent execution test works. 2152 ac_rmfiles= 2153 for ac_file in $ac_files 2154 do 2155 case $ac_file in 2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2158 esac 2159 done 2160 rm -f $ac_rmfiles 2161 2162 if { (ac_try="$ac_link_default" 2163 case "(($ac_try" in 2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2165 *) ac_try_echo=$ac_try;; 2166 esac 2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2168 (eval "$ac_link_default") 2>&5 2169 ac_status=$? 2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2171 (exit $ac_status); }; then 2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2174 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2175 # so that the user can short-circuit this test for compilers unknown to 2176 # Autoconf. 2177 for ac_file in $ac_files 2178 do 2179 test -f "$ac_file" || continue 2180 case $ac_file in 2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2182 ;; 2183 [ab].out ) 2184 # We found the default executable, but exeext='' is most 2185 # certainly right. 2186 break;; 2187 *.* ) 2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2189 then :; else 2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2191 fi 2192 # We set ac_cv_exeext here because the later test for it is not 2193 # safe: cross compilers may not add the suffix if given an `-o' 2194 # argument, so we may need to know it at that point already. 2195 # Even if this section looks crufty: it has the advantage of 2196 # actually working. 2197 break;; 2198 * ) 2199 break;; 2200 esac 2201 done 2202 test "$ac_cv_exeext" = no && ac_cv_exeext= 2203 2204 else 2205 echo "$as_me: failed program was:" >&5 2206 sed 's/^/| /' conftest.$ac_ext >&5 2207 2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2209 See \`config.log' for more details." >&5 2210 echo "$as_me: error: C compiler cannot create executables 2211 See \`config.log' for more details." >&2;} 2212 { (exit 77); exit 77; }; } 2213 fi 2214 2215 ac_exeext=$ac_cv_exeext 2216 { echo "$as_me:$LINENO: result: $ac_file" >&5 2217 echo "${ECHO_T}$ac_file" >&6; } 2218 2219 # Check that the compiler produces executables we can run. If not, either 2220 # the compiler is broken, or we cross compile. 2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2224 # If not cross compiling, check that we can run a simple program. 2225 if test "$cross_compiling" != yes; then 2226 if { ac_try='./$ac_file' 2227 { (case "(($ac_try" in 2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2229 *) ac_try_echo=$ac_try;; 2230 esac 2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2232 (eval "$ac_try") 2>&5 2233 ac_status=$? 2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2235 (exit $ac_status); }; }; then 2236 cross_compiling=no 2237 else 2238 if test "$cross_compiling" = maybe; then 2239 cross_compiling=yes 2240 else 2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2242 If you meant to cross compile, use \`--host'. 2243 See \`config.log' for more details." >&5 2244 echo "$as_me: error: cannot run C compiled programs. 2245 If you meant to cross compile, use \`--host'. 2246 See \`config.log' for more details." >&2;} 2247 { (exit 1); exit 1; }; } 2248 fi 2249 fi 2250 fi 2251 { echo "$as_me:$LINENO: result: yes" >&5 2252 echo "${ECHO_T}yes" >&6; } 2253 2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2255 ac_clean_files=$ac_clean_files_save 2256 # Check that the compiler produces executables we can run. If not, either 2257 # the compiler is broken, or we cross compile. 2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2261 echo "${ECHO_T}$cross_compiling" >&6; } 2262 2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2265 if { (ac_try="$ac_link" 2266 case "(($ac_try" in 2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2268 *) ac_try_echo=$ac_try;; 2269 esac 2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2271 (eval "$ac_link") 2>&5 2272 ac_status=$? 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); }; then 2275 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2277 # work properly (i.e., refer to `conftest.exe'), while it won't with 2278 # `rm'. 2279 for ac_file in conftest.exe conftest conftest.*; do 2280 test -f "$ac_file" || continue 2281 case $ac_file in 2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2284 break;; 2285 * ) break;; 2286 esac 2287 done 2288 else 2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2290 See \`config.log' for more details." >&5 2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2292 See \`config.log' for more details." >&2;} 2293 { (exit 1); exit 1; }; } 2294 fi 2295 2296 rm -f conftest$ac_cv_exeext 2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2298 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2299 2300 rm -f conftest.$ac_ext 2301 EXEEXT=$ac_cv_exeext 2302 ac_exeext=$EXEEXT 2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2305 if test "${ac_cv_objext+set}" = set; then 2306 echo $ECHO_N "(cached) $ECHO_C" >&6 2307 else 2308 cat >conftest.$ac_ext <<_ACEOF 2309 /* confdefs.h. */ 2310 _ACEOF 2311 cat confdefs.h >>conftest.$ac_ext 2312 cat >>conftest.$ac_ext <<_ACEOF 2313 /* end confdefs.h. */ 2314 2315 int 2316 main () 2317 { 2318 2319 ; 2320 return 0; 2321 } 2322 _ACEOF 2323 rm -f conftest.o conftest.obj 2324 if { (ac_try="$ac_compile" 2325 case "(($ac_try" in 2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2327 *) ac_try_echo=$ac_try;; 2328 esac 2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2330 (eval "$ac_compile") 2>&5 2331 ac_status=$? 2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2333 (exit $ac_status); }; then 2334 for ac_file in conftest.o conftest.obj conftest.*; do 2335 test -f "$ac_file" || continue; 2336 case $ac_file in 2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2339 break;; 2340 esac 2341 done 2342 else 2343 echo "$as_me: failed program was:" >&5 2344 sed 's/^/| /' conftest.$ac_ext >&5 2345 2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2347 See \`config.log' for more details." >&5 2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2349 See \`config.log' for more details." >&2;} 2350 { (exit 1); exit 1; }; } 2351 fi 2352 2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2354 fi 2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2356 echo "${ECHO_T}$ac_cv_objext" >&6; } 2357 OBJEXT=$ac_cv_objext 2358 ac_objext=$OBJEXT 2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2362 echo $ECHO_N "(cached) $ECHO_C" >&6 2363 else 2364 cat >conftest.$ac_ext <<_ACEOF 2365 /* confdefs.h. */ 2366 _ACEOF 2367 cat confdefs.h >>conftest.$ac_ext 2368 cat >>conftest.$ac_ext <<_ACEOF 2369 /* end confdefs.h. */ 2370 2371 int 2372 main () 2373 { 2374 #ifndef __GNUC__ 2375 choke me 2376 #endif 2377 2378 ; 2379 return 0; 2380 } 2381 _ACEOF 2382 rm -f conftest.$ac_objext 2383 if { (ac_try="$ac_compile" 2384 case "(($ac_try" in 2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2386 *) ac_try_echo=$ac_try;; 2387 esac 2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2389 (eval "$ac_compile") 2>conftest.er1 2390 ac_status=$? 2391 grep -v '^ *+' conftest.er1 >conftest.err 2392 rm -f conftest.er1 2393 cat conftest.err >&5 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); } && 2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2397 { (case "(($ac_try" in 2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2399 *) ac_try_echo=$ac_try;; 2400 esac 2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2402 (eval "$ac_try") 2>&5 2403 ac_status=$? 2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2405 (exit $ac_status); }; } && 2406 { ac_try='test -s conftest.$ac_objext' 2407 { (case "(($ac_try" in 2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2409 *) ac_try_echo=$ac_try;; 2410 esac 2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2412 (eval "$ac_try") 2>&5 2413 ac_status=$? 2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2415 (exit $ac_status); }; }; then 2416 ac_compiler_gnu=yes 2417 else 2418 echo "$as_me: failed program was:" >&5 2419 sed 's/^/| /' conftest.$ac_ext >&5 2420 2421 ac_compiler_gnu=no 2422 fi 2423 2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2426 2427 fi 2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2430 GCC=`test $ac_compiler_gnu = yes && echo yes` 2431 ac_test_CFLAGS=${CFLAGS+set} 2432 ac_save_CFLAGS=$CFLAGS 2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2435 if test "${ac_cv_prog_cc_g+set}" = set; then 2436 echo $ECHO_N "(cached) $ECHO_C" >&6 2437 else 2438 ac_save_c_werror_flag=$ac_c_werror_flag 2439 ac_c_werror_flag=yes 2440 ac_cv_prog_cc_g=no 2441 CFLAGS="-g" 2442 cat >conftest.$ac_ext <<_ACEOF 2443 /* confdefs.h. */ 2444 _ACEOF 2445 cat confdefs.h >>conftest.$ac_ext 2446 cat >>conftest.$ac_ext <<_ACEOF 2447 /* end confdefs.h. */ 2448 2449 int 2450 main () 2451 { 2452 2453 ; 2454 return 0; 2455 } 2456 _ACEOF 2457 rm -f conftest.$ac_objext 2458 if { (ac_try="$ac_compile" 2459 case "(($ac_try" in 2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2461 *) ac_try_echo=$ac_try;; 2462 esac 2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2464 (eval "$ac_compile") 2>conftest.er1 2465 ac_status=$? 2466 grep -v '^ *+' conftest.er1 >conftest.err 2467 rm -f conftest.er1 2468 cat conftest.err >&5 2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2470 (exit $ac_status); } && 2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2472 { (case "(($ac_try" in 2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2474 *) ac_try_echo=$ac_try;; 2475 esac 2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2477 (eval "$ac_try") 2>&5 2478 ac_status=$? 2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2480 (exit $ac_status); }; } && 2481 { ac_try='test -s conftest.$ac_objext' 2482 { (case "(($ac_try" in 2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2484 *) ac_try_echo=$ac_try;; 2485 esac 2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2487 (eval "$ac_try") 2>&5 2488 ac_status=$? 2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2490 (exit $ac_status); }; }; then 2491 ac_cv_prog_cc_g=yes 2492 else 2493 echo "$as_me: failed program was:" >&5 2494 sed 's/^/| /' conftest.$ac_ext >&5 2495 2496 CFLAGS="" 2497 cat >conftest.$ac_ext <<_ACEOF 2498 /* confdefs.h. */ 2499 _ACEOF 2500 cat confdefs.h >>conftest.$ac_ext 2501 cat >>conftest.$ac_ext <<_ACEOF 2502 /* end confdefs.h. */ 2503 2504 int 2505 main () 2506 { 2507 2508 ; 2509 return 0; 2510 } 2511 _ACEOF 2512 rm -f conftest.$ac_objext 2513 if { (ac_try="$ac_compile" 2514 case "(($ac_try" in 2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2516 *) ac_try_echo=$ac_try;; 2517 esac 2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2519 (eval "$ac_compile") 2>conftest.er1 2520 ac_status=$? 2521 grep -v '^ *+' conftest.er1 >conftest.err 2522 rm -f conftest.er1 2523 cat conftest.err >&5 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); } && 2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2527 { (case "(($ac_try" in 2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2529 *) ac_try_echo=$ac_try;; 2530 esac 2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2532 (eval "$ac_try") 2>&5 2533 ac_status=$? 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); }; } && 2536 { ac_try='test -s conftest.$ac_objext' 2537 { (case "(($ac_try" in 2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2539 *) ac_try_echo=$ac_try;; 2540 esac 2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2542 (eval "$ac_try") 2>&5 2543 ac_status=$? 2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 (exit $ac_status); }; }; then 2546 : 2547 else 2548 echo "$as_me: failed program was:" >&5 2549 sed 's/^/| /' conftest.$ac_ext >&5 2550 2551 ac_c_werror_flag=$ac_save_c_werror_flag 2552 CFLAGS="-g" 2553 cat >conftest.$ac_ext <<_ACEOF 2554 /* confdefs.h. */ 2555 _ACEOF 2556 cat confdefs.h >>conftest.$ac_ext 2557 cat >>conftest.$ac_ext <<_ACEOF 2558 /* end confdefs.h. */ 2559 2560 int 2561 main () 2562 { 2563 2564 ; 2565 return 0; 2566 } 2567 _ACEOF 2568 rm -f conftest.$ac_objext 2569 if { (ac_try="$ac_compile" 2570 case "(($ac_try" in 2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2572 *) ac_try_echo=$ac_try;; 2573 esac 2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2575 (eval "$ac_compile") 2>conftest.er1 2576 ac_status=$? 2577 grep -v '^ *+' conftest.er1 >conftest.err 2578 rm -f conftest.er1 2579 cat conftest.err >&5 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); } && 2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2583 { (case "(($ac_try" in 2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2585 *) ac_try_echo=$ac_try;; 2586 esac 2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2588 (eval "$ac_try") 2>&5 2589 ac_status=$? 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); }; } && 2592 { ac_try='test -s conftest.$ac_objext' 2593 { (case "(($ac_try" in 2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2595 *) ac_try_echo=$ac_try;; 2596 esac 2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2598 (eval "$ac_try") 2>&5 2599 ac_status=$? 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); }; }; then 2602 ac_cv_prog_cc_g=yes 2603 else 2604 echo "$as_me: failed program was:" >&5 2605 sed 's/^/| /' conftest.$ac_ext >&5 2606 2607 2608 fi 2609 2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2611 fi 2612 2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2614 fi 2615 2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2617 ac_c_werror_flag=$ac_save_c_werror_flag 2618 fi 2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2621 if test "$ac_test_CFLAGS" = set; then 2622 CFLAGS=$ac_save_CFLAGS 2623 elif test $ac_cv_prog_cc_g = yes; then 2624 if test "$GCC" = yes; then 2625 CFLAGS="-g -O2" 2626 else 2627 CFLAGS="-g" 2628 fi 2629 else 2630 if test "$GCC" = yes; then 2631 CFLAGS="-O2" 2632 else 2633 CFLAGS= 2634 fi 2635 fi 2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2638 if test "${ac_cv_prog_cc_c89+set}" = set; then 2639 echo $ECHO_N "(cached) $ECHO_C" >&6 2640 else 2641 ac_cv_prog_cc_c89=no 2642 ac_save_CC=$CC 2643 cat >conftest.$ac_ext <<_ACEOF 2644 /* confdefs.h. */ 2645 _ACEOF 2646 cat confdefs.h >>conftest.$ac_ext 2647 cat >>conftest.$ac_ext <<_ACEOF 2648 /* end confdefs.h. */ 2649 #include <stdarg.h> 2650 #include <stdio.h> 2651 #include <sys/types.h> 2652 #include <sys/stat.h> 2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2654 struct buf { int x; }; 2655 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2656 static char *e (p, i) 2657 char **p; 2658 int i; 2659 { 2660 return p[i]; 2661 } 2662 static char *f (char * (*g) (char **, int), char **p, ...) 2663 { 2664 char *s; 2665 va_list v; 2666 va_start (v,p); 2667 s = g (p, va_arg (v,int)); 2668 va_end (v); 2669 return s; 2670 } 2671 2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2673 function prototypes and stuff, but not '\xHH' hex character constants. 2674 These don't provoke an error unfortunately, instead are silently treated 2675 as 'x'. The following induces an error, until -std is added to get 2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2677 array size at least. It's necessary to write '\x00'==0 to get something 2678 that's true only with -std. */ 2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2680 2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2682 inside strings and character constants. */ 2683 #define FOO(x) 'x' 2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2685 2686 int test (int i, double x); 2687 struct s1 {int (*f) (int a);}; 2688 struct s2 {int (*f) (double a);}; 2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2690 int argc; 2691 char **argv; 2692 int 2693 main () 2694 { 2695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2696 ; 2697 return 0; 2698 } 2699 _ACEOF 2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2702 do 2703 CC="$ac_save_CC $ac_arg" 2704 rm -f conftest.$ac_objext 2705 if { (ac_try="$ac_compile" 2706 case "(($ac_try" in 2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2708 *) ac_try_echo=$ac_try;; 2709 esac 2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2711 (eval "$ac_compile") 2>conftest.er1 2712 ac_status=$? 2713 grep -v '^ *+' conftest.er1 >conftest.err 2714 rm -f conftest.er1 2715 cat conftest.err >&5 2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2717 (exit $ac_status); } && 2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2719 { (case "(($ac_try" in 2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2721 *) ac_try_echo=$ac_try;; 2722 esac 2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2724 (eval "$ac_try") 2>&5 2725 ac_status=$? 2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727 (exit $ac_status); }; } && 2728 { ac_try='test -s conftest.$ac_objext' 2729 { (case "(($ac_try" in 2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2731 *) ac_try_echo=$ac_try;; 2732 esac 2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2734 (eval "$ac_try") 2>&5 2735 ac_status=$? 2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2737 (exit $ac_status); }; }; then 2738 ac_cv_prog_cc_c89=$ac_arg 2739 else 2740 echo "$as_me: failed program was:" >&5 2741 sed 's/^/| /' conftest.$ac_ext >&5 2742 2743 2744 fi 2745 2746 rm -f core conftest.err conftest.$ac_objext 2747 test "x$ac_cv_prog_cc_c89" != "xno" && break 2748 done 2749 rm -f conftest.$ac_ext 2750 CC=$ac_save_CC 2751 2752 fi 2753 # AC_CACHE_VAL 2754 case "x$ac_cv_prog_cc_c89" in 2755 x) 2756 { echo "$as_me:$LINENO: result: none needed" >&5 2757 echo "${ECHO_T}none needed" >&6; } ;; 2758 xno) 2759 { echo "$as_me:$LINENO: result: unsupported" >&5 2760 echo "${ECHO_T}unsupported" >&6; } ;; 2761 *) 2762 CC="$CC $ac_cv_prog_cc_c89" 2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2765 esac 2766 2767 2768 ac_ext=c 2769 ac_cpp='$CPP $CPPFLAGS' 2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2773 2774 ac_ext=cpp 2775 ac_cpp='$CXXCPP $CPPFLAGS' 2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2779 if test -z "$CXX"; then 2780 if test -n "$CCC"; then 2781 CXX=$CCC 2782 else 2783 if test -n "$ac_tool_prefix"; then 2784 for ac_prog in clang++ llvm-g++ g++ 2785 do 2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2790 if test "${ac_cv_prog_CXX+set}" = set; then 2791 echo $ECHO_N "(cached) $ECHO_C" >&6 2792 else 2793 if test -n "$CXX"; then 2794 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2795 else 2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797 for as_dir in $PATH 2798 do 2799 IFS=$as_save_IFS 2800 test -z "$as_dir" && as_dir=. 2801 for ac_exec_ext in '' $ac_executable_extensions; do 2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807 done 2808 done 2809 IFS=$as_save_IFS 2810 2811 fi 2812 fi 2813 CXX=$ac_cv_prog_CXX 2814 if test -n "$CXX"; then 2815 { echo "$as_me:$LINENO: result: $CXX" >&5 2816 echo "${ECHO_T}$CXX" >&6; } 2817 else 2818 { echo "$as_me:$LINENO: result: no" >&5 2819 echo "${ECHO_T}no" >&6; } 2820 fi 2821 2822 2823 test -n "$CXX" && break 2824 done 2825 fi 2826 if test -z "$CXX"; then 2827 ac_ct_CXX=$CXX 2828 for ac_prog in clang++ llvm-g++ g++ 2829 do 2830 # Extract the first word of "$ac_prog", so it can be a program name with args. 2831 set dummy $ac_prog; ac_word=$2 2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2835 echo $ECHO_N "(cached) $ECHO_C" >&6 2836 else 2837 if test -n "$ac_ct_CXX"; then 2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2839 else 2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2841 for as_dir in $PATH 2842 do 2843 IFS=$as_save_IFS 2844 test -z "$as_dir" && as_dir=. 2845 for ac_exec_ext in '' $ac_executable_extensions; do 2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2847 ac_cv_prog_ac_ct_CXX="$ac_prog" 2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2849 break 2 2850 fi 2851 done 2852 done 2853 IFS=$as_save_IFS 2854 2855 fi 2856 fi 2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2858 if test -n "$ac_ct_CXX"; then 2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2860 echo "${ECHO_T}$ac_ct_CXX" >&6; } 2861 else 2862 { echo "$as_me:$LINENO: result: no" >&5 2863 echo "${ECHO_T}no" >&6; } 2864 fi 2865 2866 2867 test -n "$ac_ct_CXX" && break 2868 done 2869 2870 if test "x$ac_ct_CXX" = x; then 2871 CXX="g++" 2872 else 2873 case $cross_compiling:$ac_tool_warned in 2874 yes:) 2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2876 whose name does not start with the host triplet. If you think this 2877 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2879 whose name does not start with the host triplet. If you think this 2880 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2881 ac_tool_warned=yes ;; 2882 esac 2883 CXX=$ac_ct_CXX 2884 fi 2885 fi 2886 2887 fi 2888 fi 2889 # Provide some information about the compiler. 2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2891 ac_compiler=`set X $ac_compile; echo $2` 2892 { (ac_try="$ac_compiler --version >&5" 2893 case "(($ac_try" in 2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2895 *) ac_try_echo=$ac_try;; 2896 esac 2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2898 (eval "$ac_compiler --version >&5") 2>&5 2899 ac_status=$? 2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); } 2902 { (ac_try="$ac_compiler -v >&5" 2903 case "(($ac_try" in 2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2905 *) ac_try_echo=$ac_try;; 2906 esac 2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2908 (eval "$ac_compiler -v >&5") 2>&5 2909 ac_status=$? 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); } 2912 { (ac_try="$ac_compiler -V >&5" 2913 case "(($ac_try" in 2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 *) ac_try_echo=$ac_try;; 2916 esac 2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2918 (eval "$ac_compiler -V >&5") 2>&5 2919 ac_status=$? 2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2921 (exit $ac_status); } 2922 2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2926 echo $ECHO_N "(cached) $ECHO_C" >&6 2927 else 2928 cat >conftest.$ac_ext <<_ACEOF 2929 /* confdefs.h. */ 2930 _ACEOF 2931 cat confdefs.h >>conftest.$ac_ext 2932 cat >>conftest.$ac_ext <<_ACEOF 2933 /* end confdefs.h. */ 2934 2935 int 2936 main () 2937 { 2938 #ifndef __GNUC__ 2939 choke me 2940 #endif 2941 2942 ; 2943 return 0; 2944 } 2945 _ACEOF 2946 rm -f conftest.$ac_objext 2947 if { (ac_try="$ac_compile" 2948 case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951 esac 2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2953 (eval "$ac_compile") 2>conftest.er1 2954 ac_status=$? 2955 grep -v '^ *+' conftest.er1 >conftest.err 2956 rm -f conftest.er1 2957 cat conftest.err >&5 2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); } && 2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2961 { (case "(($ac_try" in 2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2963 *) ac_try_echo=$ac_try;; 2964 esac 2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2966 (eval "$ac_try") 2>&5 2967 ac_status=$? 2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2969 (exit $ac_status); }; } && 2970 { ac_try='test -s conftest.$ac_objext' 2971 { (case "(($ac_try" in 2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2973 *) ac_try_echo=$ac_try;; 2974 esac 2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2976 (eval "$ac_try") 2>&5 2977 ac_status=$? 2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2979 (exit $ac_status); }; }; then 2980 ac_compiler_gnu=yes 2981 else 2982 echo "$as_me: failed program was:" >&5 2983 sed 's/^/| /' conftest.$ac_ext >&5 2984 2985 ac_compiler_gnu=no 2986 fi 2987 2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2990 2991 fi 2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2994 GXX=`test $ac_compiler_gnu = yes && echo yes` 2995 ac_test_CXXFLAGS=${CXXFLAGS+set} 2996 ac_save_CXXFLAGS=$CXXFLAGS 2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2999 if test "${ac_cv_prog_cxx_g+set}" = set; then 3000 echo $ECHO_N "(cached) $ECHO_C" >&6 3001 else 3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3003 ac_cxx_werror_flag=yes 3004 ac_cv_prog_cxx_g=no 3005 CXXFLAGS="-g" 3006 cat >conftest.$ac_ext <<_ACEOF 3007 /* confdefs.h. */ 3008 _ACEOF 3009 cat confdefs.h >>conftest.$ac_ext 3010 cat >>conftest.$ac_ext <<_ACEOF 3011 /* end confdefs.h. */ 3012 3013 int 3014 main () 3015 { 3016 3017 ; 3018 return 0; 3019 } 3020 _ACEOF 3021 rm -f conftest.$ac_objext 3022 if { (ac_try="$ac_compile" 3023 case "(($ac_try" in 3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3025 *) ac_try_echo=$ac_try;; 3026 esac 3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3028 (eval "$ac_compile") 2>conftest.er1 3029 ac_status=$? 3030 grep -v '^ *+' conftest.er1 >conftest.err 3031 rm -f conftest.er1 3032 cat conftest.err >&5 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } && 3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3036 { (case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039 esac 3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3041 (eval "$ac_try") 2>&5 3042 ac_status=$? 3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3044 (exit $ac_status); }; } && 3045 { ac_try='test -s conftest.$ac_objext' 3046 { (case "(($ac_try" in 3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3048 *) ac_try_echo=$ac_try;; 3049 esac 3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3051 (eval "$ac_try") 2>&5 3052 ac_status=$? 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); }; }; then 3055 ac_cv_prog_cxx_g=yes 3056 else 3057 echo "$as_me: failed program was:" >&5 3058 sed 's/^/| /' conftest.$ac_ext >&5 3059 3060 CXXFLAGS="" 3061 cat >conftest.$ac_ext <<_ACEOF 3062 /* confdefs.h. */ 3063 _ACEOF 3064 cat confdefs.h >>conftest.$ac_ext 3065 cat >>conftest.$ac_ext <<_ACEOF 3066 /* end confdefs.h. */ 3067 3068 int 3069 main () 3070 { 3071 3072 ; 3073 return 0; 3074 } 3075 _ACEOF 3076 rm -f conftest.$ac_objext 3077 if { (ac_try="$ac_compile" 3078 case "(($ac_try" in 3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3080 *) ac_try_echo=$ac_try;; 3081 esac 3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3083 (eval "$ac_compile") 2>conftest.er1 3084 ac_status=$? 3085 grep -v '^ *+' conftest.er1 >conftest.err 3086 rm -f conftest.er1 3087 cat conftest.err >&5 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } && 3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3091 { (case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094 esac 3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3096 (eval "$ac_try") 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); }; } && 3100 { ac_try='test -s conftest.$ac_objext' 3101 { (case "(($ac_try" in 3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3103 *) ac_try_echo=$ac_try;; 3104 esac 3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3106 (eval "$ac_try") 2>&5 3107 ac_status=$? 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); }; }; then 3110 : 3111 else 3112 echo "$as_me: failed program was:" >&5 3113 sed 's/^/| /' conftest.$ac_ext >&5 3114 3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3116 CXXFLAGS="-g" 3117 cat >conftest.$ac_ext <<_ACEOF 3118 /* confdefs.h. */ 3119 _ACEOF 3120 cat confdefs.h >>conftest.$ac_ext 3121 cat >>conftest.$ac_ext <<_ACEOF 3122 /* end confdefs.h. */ 3123 3124 int 3125 main () 3126 { 3127 3128 ; 3129 return 0; 3130 } 3131 _ACEOF 3132 rm -f conftest.$ac_objext 3133 if { (ac_try="$ac_compile" 3134 case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137 esac 3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3139 (eval "$ac_compile") 2>conftest.er1 3140 ac_status=$? 3141 grep -v '^ *+' conftest.er1 >conftest.err 3142 rm -f conftest.er1 3143 cat conftest.err >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); } && 3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3147 { (case "(($ac_try" in 3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3149 *) ac_try_echo=$ac_try;; 3150 esac 3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3152 (eval "$ac_try") 2>&5 3153 ac_status=$? 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); }; } && 3156 { ac_try='test -s conftest.$ac_objext' 3157 { (case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160 esac 3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3162 (eval "$ac_try") 2>&5 3163 ac_status=$? 3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3165 (exit $ac_status); }; }; then 3166 ac_cv_prog_cxx_g=yes 3167 else 3168 echo "$as_me: failed program was:" >&5 3169 sed 's/^/| /' conftest.$ac_ext >&5 3170 3171 3172 fi 3173 3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3175 fi 3176 3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3178 fi 3179 3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3182 fi 3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3185 if test "$ac_test_CXXFLAGS" = set; then 3186 CXXFLAGS=$ac_save_CXXFLAGS 3187 elif test $ac_cv_prog_cxx_g = yes; then 3188 if test "$GXX" = yes; then 3189 CXXFLAGS="-g -O2" 3190 else 3191 CXXFLAGS="-g" 3192 fi 3193 else 3194 if test "$GXX" = yes; then 3195 CXXFLAGS="-O2" 3196 else 3197 CXXFLAGS= 3198 fi 3199 fi 3200 ac_ext=c 3201 ac_cpp='$CPP $CPPFLAGS' 3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3205 3206 ac_ext=c 3207 ac_cpp='$CPP $CPPFLAGS' 3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3213 # On Suns, sometimes $CPP names a directory. 3214 if test -n "$CPP" && test -d "$CPP"; then 3215 CPP= 3216 fi 3217 if test -z "$CPP"; then 3218 if test "${ac_cv_prog_CPP+set}" = set; then 3219 echo $ECHO_N "(cached) $ECHO_C" >&6 3220 else 3221 # Double quotes because CPP needs to be expanded 3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3223 do 3224 ac_preproc_ok=false 3225 for ac_c_preproc_warn_flag in '' yes 3226 do 3227 # Use a header file that comes with gcc, so configuring glibc 3228 # with a fresh cross-compiler works. 3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3230 # <limits.h> exists even on freestanding compilers. 3231 # On the NeXT, cc -E runs the code through the compiler's parser, 3232 # not just through cpp. "Syntax error" is here to catch this case. 3233 cat >conftest.$ac_ext <<_ACEOF 3234 /* confdefs.h. */ 3235 _ACEOF 3236 cat confdefs.h >>conftest.$ac_ext 3237 cat >>conftest.$ac_ext <<_ACEOF 3238 /* end confdefs.h. */ 3239 #ifdef __STDC__ 3240 # include <limits.h> 3241 #else 3242 # include <assert.h> 3243 #endif 3244 Syntax error 3245 _ACEOF 3246 if { (ac_try="$ac_cpp conftest.$ac_ext" 3247 case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250 esac 3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3253 ac_status=$? 3254 grep -v '^ *+' conftest.er1 >conftest.err 3255 rm -f conftest.er1 3256 cat conftest.err >&5 3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); } >/dev/null; then 3259 if test -s conftest.err; then 3260 ac_cpp_err=$ac_c_preproc_warn_flag 3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3262 else 3263 ac_cpp_err= 3264 fi 3265 else 3266 ac_cpp_err=yes 3267 fi 3268 if test -z "$ac_cpp_err"; then 3269 : 3270 else 3271 echo "$as_me: failed program was:" >&5 3272 sed 's/^/| /' conftest.$ac_ext >&5 3273 3274 # Broken: fails on valid input. 3275 continue 3276 fi 3277 3278 rm -f conftest.err conftest.$ac_ext 3279 3280 # OK, works on sane cases. Now check whether nonexistent headers 3281 # can be detected and how. 3282 cat >conftest.$ac_ext <<_ACEOF 3283 /* confdefs.h. */ 3284 _ACEOF 3285 cat confdefs.h >>conftest.$ac_ext 3286 cat >>conftest.$ac_ext <<_ACEOF 3287 /* end confdefs.h. */ 3288 #include <ac_nonexistent.h> 3289 _ACEOF 3290 if { (ac_try="$ac_cpp conftest.$ac_ext" 3291 case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294 esac 3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3297 ac_status=$? 3298 grep -v '^ *+' conftest.er1 >conftest.err 3299 rm -f conftest.er1 3300 cat conftest.err >&5 3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3302 (exit $ac_status); } >/dev/null; then 3303 if test -s conftest.err; then 3304 ac_cpp_err=$ac_c_preproc_warn_flag 3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3306 else 3307 ac_cpp_err= 3308 fi 3309 else 3310 ac_cpp_err=yes 3311 fi 3312 if test -z "$ac_cpp_err"; then 3313 # Broken: success on invalid input. 3314 continue 3315 else 3316 echo "$as_me: failed program was:" >&5 3317 sed 's/^/| /' conftest.$ac_ext >&5 3318 3319 # Passes both tests. 3320 ac_preproc_ok=: 3321 break 3322 fi 3323 3324 rm -f conftest.err conftest.$ac_ext 3325 3326 done 3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3328 rm -f conftest.err conftest.$ac_ext 3329 if $ac_preproc_ok; then 3330 break 3331 fi 3332 3333 done 3334 ac_cv_prog_CPP=$CPP 3335 3336 fi 3337 CPP=$ac_cv_prog_CPP 3338 else 3339 ac_cv_prog_CPP=$CPP 3340 fi 3341 { echo "$as_me:$LINENO: result: $CPP" >&5 3342 echo "${ECHO_T}$CPP" >&6; } 3343 ac_preproc_ok=false 3344 for ac_c_preproc_warn_flag in '' yes 3345 do 3346 # Use a header file that comes with gcc, so configuring glibc 3347 # with a fresh cross-compiler works. 3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3349 # <limits.h> exists even on freestanding compilers. 3350 # On the NeXT, cc -E runs the code through the compiler's parser, 3351 # not just through cpp. "Syntax error" is here to catch this case. 3352 cat >conftest.$ac_ext <<_ACEOF 3353 /* confdefs.h. */ 3354 _ACEOF 3355 cat confdefs.h >>conftest.$ac_ext 3356 cat >>conftest.$ac_ext <<_ACEOF 3357 /* end confdefs.h. */ 3358 #ifdef __STDC__ 3359 # include <limits.h> 3360 #else 3361 # include <assert.h> 3362 #endif 3363 Syntax error 3364 _ACEOF 3365 if { (ac_try="$ac_cpp conftest.$ac_ext" 3366 case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369 esac 3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3372 ac_status=$? 3373 grep -v '^ *+' conftest.er1 >conftest.err 3374 rm -f conftest.er1 3375 cat conftest.err >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); } >/dev/null; then 3378 if test -s conftest.err; then 3379 ac_cpp_err=$ac_c_preproc_warn_flag 3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3381 else 3382 ac_cpp_err= 3383 fi 3384 else 3385 ac_cpp_err=yes 3386 fi 3387 if test -z "$ac_cpp_err"; then 3388 : 3389 else 3390 echo "$as_me: failed program was:" >&5 3391 sed 's/^/| /' conftest.$ac_ext >&5 3392 3393 # Broken: fails on valid input. 3394 continue 3395 fi 3396 3397 rm -f conftest.err conftest.$ac_ext 3398 3399 # OK, works on sane cases. Now check whether nonexistent headers 3400 # can be detected and how. 3401 cat >conftest.$ac_ext <<_ACEOF 3402 /* confdefs.h. */ 3403 _ACEOF 3404 cat confdefs.h >>conftest.$ac_ext 3405 cat >>conftest.$ac_ext <<_ACEOF 3406 /* end confdefs.h. */ 3407 #include <ac_nonexistent.h> 3408 _ACEOF 3409 if { (ac_try="$ac_cpp conftest.$ac_ext" 3410 case "(($ac_try" in 3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3412 *) ac_try_echo=$ac_try;; 3413 esac 3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3416 ac_status=$? 3417 grep -v '^ *+' conftest.er1 >conftest.err 3418 rm -f conftest.er1 3419 cat conftest.err >&5 3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3421 (exit $ac_status); } >/dev/null; then 3422 if test -s conftest.err; then 3423 ac_cpp_err=$ac_c_preproc_warn_flag 3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3425 else 3426 ac_cpp_err= 3427 fi 3428 else 3429 ac_cpp_err=yes 3430 fi 3431 if test -z "$ac_cpp_err"; then 3432 # Broken: success on invalid input. 3433 continue 3434 else 3435 echo "$as_me: failed program was:" >&5 3436 sed 's/^/| /' conftest.$ac_ext >&5 3437 3438 # Passes both tests. 3439 ac_preproc_ok=: 3440 break 3441 fi 3442 3443 rm -f conftest.err conftest.$ac_ext 3444 3445 done 3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3447 rm -f conftest.err conftest.$ac_ext 3448 if $ac_preproc_ok; then 3449 : 3450 else 3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3452 See \`config.log' for more details." >&5 3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3454 See \`config.log' for more details." >&2;} 3455 { (exit 1); exit 1; }; } 3456 fi 3457 3458 ac_ext=c 3459 ac_cpp='$CPP $CPPFLAGS' 3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3463 3464 3465 3466 3467 # Check whether --enable-polly was given. 3468 if test "${enable_polly+set}" = set; then 3469 enableval=$enable_polly; 3470 else 3471 enableval=default 3472 fi 3473 3474 case "$enableval" in 3475 yes) ENABLE_POLLY=1 3476 ;; 3477 no) ENABLE_POLLY=0 3478 ;; 3479 default) ENABLE_POLLY=1 3480 ;; 3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3483 { (exit 1); exit 1; }; } ;; 3484 esac 3485 3486 3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3488 LLVM_HAS_POLLY=1 3489 3490 subdirs="$subdirs tools/polly" 3491 3492 fi 3493 3494 3495 # Make sure we can run config.sub. 3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3499 { (exit 1); exit 1; }; } 3500 3501 { echo "$as_me:$LINENO: checking build system type" >&5 3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3503 if test "${ac_cv_build+set}" = set; then 3504 echo $ECHO_N "(cached) $ECHO_C" >&6 3505 else 3506 ac_build_alias=$build_alias 3507 test "x$ac_build_alias" = x && 3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3509 test "x$ac_build_alias" = x && 3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3512 { (exit 1); exit 1; }; } 3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3516 { (exit 1); exit 1; }; } 3517 3518 fi 3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3520 echo "${ECHO_T}$ac_cv_build" >&6; } 3521 case $ac_cv_build in 3522 *-*-*) ;; 3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3524 echo "$as_me: error: invalid value of canonical build" >&2;} 3525 { (exit 1); exit 1; }; };; 3526 esac 3527 build=$ac_cv_build 3528 ac_save_IFS=$IFS; IFS='-' 3529 set x $ac_cv_build 3530 shift 3531 build_cpu=$1 3532 build_vendor=$2 3533 shift; shift 3534 # Remember, the first character of IFS is used to create $*, 3535 # except with old shells: 3536 build_os=$* 3537 IFS=$ac_save_IFS 3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3539 3540 3541 { echo "$as_me:$LINENO: checking host system type" >&5 3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3543 if test "${ac_cv_host+set}" = set; then 3544 echo $ECHO_N "(cached) $ECHO_C" >&6 3545 else 3546 if test "x$host_alias" = x; then 3547 ac_cv_host=$ac_cv_build 3548 else 3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3552 { (exit 1); exit 1; }; } 3553 fi 3554 3555 fi 3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3557 echo "${ECHO_T}$ac_cv_host" >&6; } 3558 case $ac_cv_host in 3559 *-*-*) ;; 3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3561 echo "$as_me: error: invalid value of canonical host" >&2;} 3562 { (exit 1); exit 1; }; };; 3563 esac 3564 host=$ac_cv_host 3565 ac_save_IFS=$IFS; IFS='-' 3566 set x $ac_cv_host 3567 shift 3568 host_cpu=$1 3569 host_vendor=$2 3570 shift; shift 3571 # Remember, the first character of IFS is used to create $*, 3572 # except with old shells: 3573 host_os=$* 3574 IFS=$ac_save_IFS 3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3576 3577 3578 { echo "$as_me:$LINENO: checking target system type" >&5 3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3580 if test "${ac_cv_target+set}" = set; then 3581 echo $ECHO_N "(cached) $ECHO_C" >&6 3582 else 3583 if test "x$target_alias" = x; then 3584 ac_cv_target=$ac_cv_host 3585 else 3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3589 { (exit 1); exit 1; }; } 3590 fi 3591 3592 fi 3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3594 echo "${ECHO_T}$ac_cv_target" >&6; } 3595 case $ac_cv_target in 3596 *-*-*) ;; 3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3598 echo "$as_me: error: invalid value of canonical target" >&2;} 3599 { (exit 1); exit 1; }; };; 3600 esac 3601 target=$ac_cv_target 3602 ac_save_IFS=$IFS; IFS='-' 3603 set x $ac_cv_target 3604 shift 3605 target_cpu=$1 3606 target_vendor=$2 3607 shift; shift 3608 # Remember, the first character of IFS is used to create $*, 3609 # except with old shells: 3610 target_os=$* 3611 IFS=$ac_save_IFS 3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3613 3614 3615 # The aliases save the names the user supplied, while $host etc. 3616 # will get canonicalized. 3617 test -n "$target_alias" && 3618 test "$program_prefix$program_suffix$program_transform_name" = \ 3619 NONENONEs,x,x, && 3620 program_prefix=${target_alias}- 3621 3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3624 if test "${llvm_cv_os_type+set}" = set; then 3625 echo $ECHO_N "(cached) $ECHO_C" >&6 3626 else 3627 case $host in 3628 *-*-aix*) 3629 llvm_cv_link_all_option="-Wl,--whole-archive" 3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3631 llvm_cv_os_type="AIX" 3632 llvm_cv_platform_type="Unix" ;; 3633 *-*-irix*) 3634 llvm_cv_link_all_option="-Wl,--whole-archive" 3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3636 llvm_cv_os_type="IRIX" 3637 llvm_cv_platform_type="Unix" ;; 3638 *-*-cygwin*) 3639 llvm_cv_link_all_option="-Wl,--whole-archive" 3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3641 llvm_cv_os_type="Cygwin" 3642 llvm_cv_platform_type="Unix" ;; 3643 *-*-darwin*) 3644 llvm_cv_link_all_option="-Wl,-all_load" 3645 llvm_cv_no_link_all_option="-Wl,-noall_load" 3646 llvm_cv_os_type="Darwin" 3647 llvm_cv_platform_type="Unix" ;; 3648 *-*-minix*) 3649 llvm_cv_link_all_option="-Wl,-all_load" 3650 llvm_cv_no_link_all_option="-Wl,-noall_load" 3651 llvm_cv_os_type="Minix" 3652 llvm_cv_platform_type="Unix" ;; 3653 *-*-freebsd* | *-*-kfreebsd-gnu) 3654 llvm_cv_link_all_option="-Wl,--whole-archive" 3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3656 llvm_cv_os_type="FreeBSD" 3657 llvm_cv_platform_type="Unix" ;; 3658 *-*-openbsd*) 3659 llvm_cv_link_all_option="-Wl,--whole-archive" 3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3661 llvm_cv_os_type="OpenBSD" 3662 llvm_cv_platform_type="Unix" ;; 3663 *-*-netbsd*) 3664 llvm_cv_link_all_option="-Wl,--whole-archive" 3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3666 llvm_cv_os_type="NetBSD" 3667 llvm_cv_platform_type="Unix" ;; 3668 *-*-dragonfly*) 3669 llvm_cv_link_all_option="-Wl,--whole-archive" 3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3671 llvm_cv_os_type="DragonFly" 3672 llvm_cv_platform_type="Unix" ;; 3673 *-*-hpux*) 3674 llvm_cv_link_all_option="-Wl,--whole-archive" 3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3676 llvm_cv_os_type="HP-UX" 3677 llvm_cv_platform_type="Unix" ;; 3678 *-*-interix*) 3679 llvm_cv_link_all_option="-Wl,--whole-archive" 3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3681 llvm_cv_os_type="Interix" 3682 llvm_cv_platform_type="Unix" ;; 3683 *-*-linux*) 3684 llvm_cv_link_all_option="-Wl,--whole-archive" 3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3686 llvm_cv_os_type="Linux" 3687 llvm_cv_platform_type="Unix" ;; 3688 *-*-gnu*) 3689 llvm_cv_link_all_option="-Wl,--whole-archive" 3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3691 llvm_cv_os_type="GNU" 3692 llvm_cv_platform_type="Unix" ;; 3693 *-*-solaris*) 3694 llvm_cv_link_all_option="-Wl,-z,allextract" 3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3696 llvm_cv_os_type="SunOS" 3697 llvm_cv_platform_type="Unix" ;; 3698 *-*-auroraux*) 3699 llvm_cv_link_all_option="-Wl,-z,allextract" 3700 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3701 llvm_cv_os_type="AuroraUX" 3702 llvm_cv_platform_type="Unix" ;; 3703 *-*-win32*) 3704 llvm_cv_link_all_option="-Wl,--whole-archive" 3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3706 llvm_cv_os_type="Win32" 3707 llvm_cv_platform_type="Win32" ;; 3708 *-*-mingw*) 3709 llvm_cv_link_all_option="-Wl,--whole-archive" 3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3711 llvm_cv_os_type="MingW" 3712 llvm_cv_platform_type="Win32" ;; 3713 *-*-haiku*) 3714 llvm_cv_link_all_option="-Wl,--whole-archive" 3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3716 llvm_cv_os_type="Haiku" 3717 llvm_cv_platform_type="Unix" ;; 3718 *-unknown-eabi*) 3719 llvm_cv_link_all_option="-Wl,--whole-archive" 3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3721 llvm_cv_os_type="Freestanding" 3722 llvm_cv_platform_type="Unix" ;; 3723 *-unknown-elf*) 3724 llvm_cv_link_all_option="-Wl,--whole-archive" 3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3726 llvm_cv_os_type="Freestanding" 3727 llvm_cv_platform_type="Unix" ;; 3728 *) 3729 llvm_cv_link_all_option="" 3730 llvm_cv_no_link_all_option="" 3731 llvm_cv_os_type="Unknown" 3732 llvm_cv_platform_type="Unknown" ;; 3733 esac 3734 fi 3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3737 3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3740 if test "${llvm_cv_target_os_type+set}" = set; then 3741 echo $ECHO_N "(cached) $ECHO_C" >&6 3742 else 3743 case $target in 3744 *-*-aix*) 3745 llvm_cv_target_os_type="AIX" ;; 3746 *-*-irix*) 3747 llvm_cv_target_os_type="IRIX" ;; 3748 *-*-cygwin*) 3749 llvm_cv_target_os_type="Cygwin" ;; 3750 *-*-darwin*) 3751 llvm_cv_target_os_type="Darwin" ;; 3752 *-*-minix*) 3753 llvm_cv_target_os_type="Minix" ;; 3754 *-*-freebsd* | *-*-kfreebsd-gnu) 3755 llvm_cv_target_os_type="FreeBSD" ;; 3756 *-*-openbsd*) 3757 llvm_cv_target_os_type="OpenBSD" ;; 3758 *-*-netbsd*) 3759 llvm_cv_target_os_type="NetBSD" ;; 3760 *-*-dragonfly*) 3761 llvm_cv_target_os_type="DragonFly" ;; 3762 *-*-hpux*) 3763 llvm_cv_target_os_type="HP-UX" ;; 3764 *-*-interix*) 3765 llvm_cv_target_os_type="Interix" ;; 3766 *-*-linux*) 3767 llvm_cv_target_os_type="Linux" ;; 3768 *-*-gnu*) 3769 llvm_cv_target_os_type="GNU" ;; 3770 *-*-solaris*) 3771 llvm_cv_target_os_type="SunOS" ;; 3772 *-*-auroraux*) 3773 llvm_cv_target_os_type="AuroraUX" ;; 3774 *-*-win32*) 3775 llvm_cv_target_os_type="Win32" ;; 3776 *-*-mingw*) 3777 llvm_cv_target_os_type="MingW" ;; 3778 *-*-haiku*) 3779 llvm_cv_target_os_type="Haiku" ;; 3780 *-*-rtems*) 3781 llvm_cv_target_os_type="RTEMS" ;; 3782 *-*-nacl*) 3783 llvm_cv_target_os_type="NativeClient" ;; 3784 *-unknown-eabi*) 3785 llvm_cv_target_os_type="Freestanding" ;; 3786 *) 3787 llvm_cv_target_os_type="Unknown" ;; 3788 esac 3789 fi 3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3792 3793 if test "$llvm_cv_os_type" = "Unknown" ; then 3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3796 { (exit 1); exit 1; }; } 3797 fi 3798 3799 OS=$llvm_cv_os_type 3800 3801 HOST_OS=$llvm_cv_os_type 3802 3803 TARGET_OS=$llvm_cv_target_os_type 3804 3805 3806 LINKALL=$llvm_cv_link_all_option 3807 3808 NOLINKALL=$llvm_cv_no_link_all_option 3809 3810 3811 case $llvm_cv_platform_type in 3812 Unix) 3813 3814 cat >>confdefs.h <<\_ACEOF 3815 #define LLVM_ON_UNIX 1 3816 _ACEOF 3817 3818 LLVM_ON_UNIX=1 3819 3820 LLVM_ON_WIN32=0 3821 3822 ;; 3823 Win32) 3824 3825 cat >>confdefs.h <<\_ACEOF 3826 #define LLVM_ON_WIN32 1 3827 _ACEOF 3828 3829 LLVM_ON_UNIX=0 3830 3831 LLVM_ON_WIN32=1 3832 3833 ;; 3834 esac 3835 3836 { echo "$as_me:$LINENO: checking target architecture" >&5 3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 3838 if test "${llvm_cv_target_arch+set}" = set; then 3839 echo $ECHO_N "(cached) $ECHO_C" >&6 3840 else 3841 case $target in 3842 i?86-*) llvm_cv_target_arch="x86" ;; 3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 3844 sparc*-*) llvm_cv_target_arch="Sparc" ;; 3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 3846 arm*-*) llvm_cv_target_arch="ARM" ;; 3847 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 3848 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 3849 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 3850 xcore-*) llvm_cv_target_arch="XCore" ;; 3851 msp430-*) llvm_cv_target_arch="MSP430" ;; 3852 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 3853 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 3854 s390x-*) llvm_cv_target_arch="SystemZ" ;; 3855 *) llvm_cv_target_arch="Unknown" ;; 3856 esac 3857 fi 3858 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 3859 echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 3860 3861 if test "$llvm_cv_target_arch" = "Unknown" ; then 3862 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 3863 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 3864 fi 3865 3866 # Determine the LLVM native architecture for the target 3867 case "$llvm_cv_target_arch" in 3868 x86) LLVM_NATIVE_ARCH="X86" ;; 3869 x86_64) LLVM_NATIVE_ARCH="X86" ;; 3870 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 3871 esac 3872 3873 ARCH=$llvm_cv_target_arch 3874 3875 3876 3877 3878 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3879 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3880 if test "${ac_cv_path_GREP+set}" = set; then 3881 echo $ECHO_N "(cached) $ECHO_C" >&6 3882 else 3883 # Extract the first word of "grep ggrep" to use in msg output 3884 if test -z "$GREP"; then 3885 set dummy grep ggrep; ac_prog_name=$2 3886 if test "${ac_cv_path_GREP+set}" = set; then 3887 echo $ECHO_N "(cached) $ECHO_C" >&6 3888 else 3889 ac_path_GREP_found=false 3890 # Loop through the user's path and test for each of PROGNAME-LIST 3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3893 do 3894 IFS=$as_save_IFS 3895 test -z "$as_dir" && as_dir=. 3896 for ac_prog in grep ggrep; do 3897 for ac_exec_ext in '' $ac_executable_extensions; do 3898 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3899 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3900 # Check for GNU ac_path_GREP and select it if it is found. 3901 # Check for GNU $ac_path_GREP 3902 case `"$ac_path_GREP" --version 2>&1` in 3903 *GNU*) 3904 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3905 *) 3906 ac_count=0 3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3908 while : 3909 do 3910 cat "conftest.in" "conftest.in" >"conftest.tmp" 3911 mv "conftest.tmp" "conftest.in" 3912 cp "conftest.in" "conftest.nl" 3913 echo 'GREP' >> "conftest.nl" 3914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3916 ac_count=`expr $ac_count + 1` 3917 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3918 # Best one so far, save it but keep looking for a better one 3919 ac_cv_path_GREP="$ac_path_GREP" 3920 ac_path_GREP_max=$ac_count 3921 fi 3922 # 10*(2^10) chars as input seems more than enough 3923 test $ac_count -gt 10 && break 3924 done 3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3926 esac 3927 3928 3929 $ac_path_GREP_found && break 3 3930 done 3931 done 3932 3933 done 3934 IFS=$as_save_IFS 3935 3936 3937 fi 3938 3939 GREP="$ac_cv_path_GREP" 3940 if test -z "$GREP"; then 3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3943 { (exit 1); exit 1; }; } 3944 fi 3945 3946 else 3947 ac_cv_path_GREP=$GREP 3948 fi 3949 3950 3951 fi 3952 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3953 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3954 GREP="$ac_cv_path_GREP" 3955 3956 3957 { echo "$as_me:$LINENO: checking for egrep" >&5 3958 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3959 if test "${ac_cv_path_EGREP+set}" = set; then 3960 echo $ECHO_N "(cached) $ECHO_C" >&6 3961 else 3962 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3963 then ac_cv_path_EGREP="$GREP -E" 3964 else 3965 # Extract the first word of "egrep" to use in msg output 3966 if test -z "$EGREP"; then 3967 set dummy egrep; ac_prog_name=$2 3968 if test "${ac_cv_path_EGREP+set}" = set; then 3969 echo $ECHO_N "(cached) $ECHO_C" >&6 3970 else 3971 ac_path_EGREP_found=false 3972 # Loop through the user's path and test for each of PROGNAME-LIST 3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3975 do 3976 IFS=$as_save_IFS 3977 test -z "$as_dir" && as_dir=. 3978 for ac_prog in egrep; do 3979 for ac_exec_ext in '' $ac_executable_extensions; do 3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3981 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3982 # Check for GNU ac_path_EGREP and select it if it is found. 3983 # Check for GNU $ac_path_EGREP 3984 case `"$ac_path_EGREP" --version 2>&1` in 3985 *GNU*) 3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3987 *) 3988 ac_count=0 3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3990 while : 3991 do 3992 cat "conftest.in" "conftest.in" >"conftest.tmp" 3993 mv "conftest.tmp" "conftest.in" 3994 cp "conftest.in" "conftest.nl" 3995 echo 'EGREP' >> "conftest.nl" 3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3998 ac_count=`expr $ac_count + 1` 3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4000 # Best one so far, save it but keep looking for a better one 4001 ac_cv_path_EGREP="$ac_path_EGREP" 4002 ac_path_EGREP_max=$ac_count 4003 fi 4004 # 10*(2^10) chars as input seems more than enough 4005 test $ac_count -gt 10 && break 4006 done 4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4008 esac 4009 4010 4011 $ac_path_EGREP_found && break 3 4012 done 4013 done 4014 4015 done 4016 IFS=$as_save_IFS 4017 4018 4019 fi 4020 4021 EGREP="$ac_cv_path_EGREP" 4022 if test -z "$EGREP"; then 4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4025 { (exit 1); exit 1; }; } 4026 fi 4027 4028 else 4029 ac_cv_path_EGREP=$EGREP 4030 fi 4031 4032 4033 fi 4034 fi 4035 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4036 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4037 EGREP="$ac_cv_path_EGREP" 4038 4039 4040 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4042 if test "${ac_cv_header_stdc+set}" = set; then 4043 echo $ECHO_N "(cached) $ECHO_C" >&6 4044 else 4045 cat >conftest.$ac_ext <<_ACEOF 4046 /* confdefs.h. */ 4047 _ACEOF 4048 cat confdefs.h >>conftest.$ac_ext 4049 cat >>conftest.$ac_ext <<_ACEOF 4050 /* end confdefs.h. */ 4051 #include <stdlib.h> 4052 #include <stdarg.h> 4053 #include <string.h> 4054 #include <float.h> 4055 4056 int 4057 main () 4058 { 4059 4060 ; 4061 return 0; 4062 } 4063 _ACEOF 4064 rm -f conftest.$ac_objext 4065 if { (ac_try="$ac_compile" 4066 case "(($ac_try" in 4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4068 *) ac_try_echo=$ac_try;; 4069 esac 4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4071 (eval "$ac_compile") 2>conftest.er1 4072 ac_status=$? 4073 grep -v '^ *+' conftest.er1 >conftest.err 4074 rm -f conftest.er1 4075 cat conftest.err >&5 4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 (exit $ac_status); } && 4078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4079 { (case "(($ac_try" in 4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4081 *) ac_try_echo=$ac_try;; 4082 esac 4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4084 (eval "$ac_try") 2>&5 4085 ac_status=$? 4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4087 (exit $ac_status); }; } && 4088 { ac_try='test -s conftest.$ac_objext' 4089 { (case "(($ac_try" in 4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4091 *) ac_try_echo=$ac_try;; 4092 esac 4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4094 (eval "$ac_try") 2>&5 4095 ac_status=$? 4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4097 (exit $ac_status); }; }; then 4098 ac_cv_header_stdc=yes 4099 else 4100 echo "$as_me: failed program was:" >&5 4101 sed 's/^/| /' conftest.$ac_ext >&5 4102 4103 ac_cv_header_stdc=no 4104 fi 4105 4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4107 4108 if test $ac_cv_header_stdc = yes; then 4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4110 cat >conftest.$ac_ext <<_ACEOF 4111 /* confdefs.h. */ 4112 _ACEOF 4113 cat confdefs.h >>conftest.$ac_ext 4114 cat >>conftest.$ac_ext <<_ACEOF 4115 /* end confdefs.h. */ 4116 #include <string.h> 4117 4118 _ACEOF 4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4120 $EGREP "memchr" >/dev/null 2>&1; then 4121 : 4122 else 4123 ac_cv_header_stdc=no 4124 fi 4125 rm -f conftest* 4126 4127 fi 4128 4129 if test $ac_cv_header_stdc = yes; then 4130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4131 cat >conftest.$ac_ext <<_ACEOF 4132 /* confdefs.h. */ 4133 _ACEOF 4134 cat confdefs.h >>conftest.$ac_ext 4135 cat >>conftest.$ac_ext <<_ACEOF 4136 /* end confdefs.h. */ 4137 #include <stdlib.h> 4138 4139 _ACEOF 4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4141 $EGREP "free" >/dev/null 2>&1; then 4142 : 4143 else 4144 ac_cv_header_stdc=no 4145 fi 4146 rm -f conftest* 4147 4148 fi 4149 4150 if test $ac_cv_header_stdc = yes; then 4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4152 if test "$cross_compiling" = yes; then 4153 : 4154 else 4155 cat >conftest.$ac_ext <<_ACEOF 4156 /* confdefs.h. */ 4157 _ACEOF 4158 cat confdefs.h >>conftest.$ac_ext 4159 cat >>conftest.$ac_ext <<_ACEOF 4160 /* end confdefs.h. */ 4161 #include <ctype.h> 4162 #include <stdlib.h> 4163 #if ((' ' & 0x0FF) == 0x020) 4164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4166 #else 4167 # define ISLOWER(c) \ 4168 (('a' <= (c) && (c) <= 'i') \ 4169 || ('j' <= (c) && (c) <= 'r') \ 4170 || ('s' <= (c) && (c) <= 'z')) 4171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4172 #endif 4173 4174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4175 int 4176 main () 4177 { 4178 int i; 4179 for (i = 0; i < 256; i++) 4180 if (XOR (islower (i), ISLOWER (i)) 4181 || toupper (i) != TOUPPER (i)) 4182 return 2; 4183 return 0; 4184 } 4185 _ACEOF 4186 rm -f conftest$ac_exeext 4187 if { (ac_try="$ac_link" 4188 case "(($ac_try" in 4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4190 *) ac_try_echo=$ac_try;; 4191 esac 4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4193 (eval "$ac_link") 2>&5 4194 ac_status=$? 4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4197 { (case "(($ac_try" in 4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4199 *) ac_try_echo=$ac_try;; 4200 esac 4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4202 (eval "$ac_try") 2>&5 4203 ac_status=$? 4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4205 (exit $ac_status); }; }; then 4206 : 4207 else 4208 echo "$as_me: program exited with status $ac_status" >&5 4209 echo "$as_me: failed program was:" >&5 4210 sed 's/^/| /' conftest.$ac_ext >&5 4211 4212 ( exit $ac_status ) 4213 ac_cv_header_stdc=no 4214 fi 4215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4216 fi 4217 4218 4219 fi 4220 fi 4221 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4222 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4223 if test $ac_cv_header_stdc = yes; then 4224 4225 cat >>confdefs.h <<\_ACEOF 4226 #define STDC_HEADERS 1 4227 _ACEOF 4228 4229 fi 4230 4231 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4242 inttypes.h stdint.h unistd.h 4243 do 4244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4245 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4248 echo $ECHO_N "(cached) $ECHO_C" >&6 4249 else 4250 cat >conftest.$ac_ext <<_ACEOF 4251 /* confdefs.h. */ 4252 _ACEOF 4253 cat confdefs.h >>conftest.$ac_ext 4254 cat >>conftest.$ac_ext <<_ACEOF 4255 /* end confdefs.h. */ 4256 $ac_includes_default 4257 4258 #include <$ac_header> 4259 _ACEOF 4260 rm -f conftest.$ac_objext 4261 if { (ac_try="$ac_compile" 4262 case "(($ac_try" in 4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4264 *) ac_try_echo=$ac_try;; 4265 esac 4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4267 (eval "$ac_compile") 2>conftest.er1 4268 ac_status=$? 4269 grep -v '^ *+' conftest.er1 >conftest.err 4270 rm -f conftest.er1 4271 cat conftest.err >&5 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); } && 4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4275 { (case "(($ac_try" in 4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4277 *) ac_try_echo=$ac_try;; 4278 esac 4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4280 (eval "$ac_try") 2>&5 4281 ac_status=$? 4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4283 (exit $ac_status); }; } && 4284 { ac_try='test -s conftest.$ac_objext' 4285 { (case "(($ac_try" in 4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4287 *) ac_try_echo=$ac_try;; 4288 esac 4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4290 (eval "$ac_try") 2>&5 4291 ac_status=$? 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); }; }; then 4294 eval "$as_ac_Header=yes" 4295 else 4296 echo "$as_me: failed program was:" >&5 4297 sed 's/^/| /' conftest.$ac_ext >&5 4298 4299 eval "$as_ac_Header=no" 4300 fi 4301 4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4303 fi 4304 ac_res=`eval echo '${'$as_ac_Header'}'` 4305 { echo "$as_me:$LINENO: result: $ac_res" >&5 4306 echo "${ECHO_T}$ac_res" >&6; } 4307 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4308 cat >>confdefs.h <<_ACEOF 4309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4310 _ACEOF 4311 4312 fi 4313 4314 done 4315 4316 4317 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4318 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4319 if test "${ac_cv_c_bigendian+set}" = set; then 4320 echo $ECHO_N "(cached) $ECHO_C" >&6 4321 else 4322 # See if sys/param.h defines the BYTE_ORDER macro. 4323 cat >conftest.$ac_ext <<_ACEOF 4324 /* confdefs.h. */ 4325 _ACEOF 4326 cat confdefs.h >>conftest.$ac_ext 4327 cat >>conftest.$ac_ext <<_ACEOF 4328 /* end confdefs.h. */ 4329 #include <sys/types.h> 4330 #include <sys/param.h> 4331 4332 int 4333 main () 4334 { 4335 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4336 bogus endian macros 4337 #endif 4338 4339 ; 4340 return 0; 4341 } 4342 _ACEOF 4343 rm -f conftest.$ac_objext 4344 if { (ac_try="$ac_compile" 4345 case "(($ac_try" in 4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4347 *) ac_try_echo=$ac_try;; 4348 esac 4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4350 (eval "$ac_compile") 2>conftest.er1 4351 ac_status=$? 4352 grep -v '^ *+' conftest.er1 >conftest.err 4353 rm -f conftest.er1 4354 cat conftest.err >&5 4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4356 (exit $ac_status); } && 4357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4358 { (case "(($ac_try" in 4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4360 *) ac_try_echo=$ac_try;; 4361 esac 4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4363 (eval "$ac_try") 2>&5 4364 ac_status=$? 4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4366 (exit $ac_status); }; } && 4367 { ac_try='test -s conftest.$ac_objext' 4368 { (case "(($ac_try" in 4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4370 *) ac_try_echo=$ac_try;; 4371 esac 4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4373 (eval "$ac_try") 2>&5 4374 ac_status=$? 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); }; }; then 4377 # It does; now see whether it defined to BIG_ENDIAN or not. 4378 cat >conftest.$ac_ext <<_ACEOF 4379 /* confdefs.h. */ 4380 _ACEOF 4381 cat confdefs.h >>conftest.$ac_ext 4382 cat >>conftest.$ac_ext <<_ACEOF 4383 /* end confdefs.h. */ 4384 #include <sys/types.h> 4385 #include <sys/param.h> 4386 4387 int 4388 main () 4389 { 4390 #if BYTE_ORDER != BIG_ENDIAN 4391 not big endian 4392 #endif 4393 4394 ; 4395 return 0; 4396 } 4397 _ACEOF 4398 rm -f conftest.$ac_objext 4399 if { (ac_try="$ac_compile" 4400 case "(($ac_try" in 4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4402 *) ac_try_echo=$ac_try;; 4403 esac 4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4405 (eval "$ac_compile") 2>conftest.er1 4406 ac_status=$? 4407 grep -v '^ *+' conftest.er1 >conftest.err 4408 rm -f conftest.er1 4409 cat conftest.err >&5 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4411 (exit $ac_status); } && 4412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4413 { (case "(($ac_try" in 4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4415 *) ac_try_echo=$ac_try;; 4416 esac 4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4418 (eval "$ac_try") 2>&5 4419 ac_status=$? 4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4421 (exit $ac_status); }; } && 4422 { ac_try='test -s conftest.$ac_objext' 4423 { (case "(($ac_try" in 4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4425 *) ac_try_echo=$ac_try;; 4426 esac 4427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4428 (eval "$ac_try") 2>&5 4429 ac_status=$? 4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4431 (exit $ac_status); }; }; then 4432 ac_cv_c_bigendian=yes 4433 else 4434 echo "$as_me: failed program was:" >&5 4435 sed 's/^/| /' conftest.$ac_ext >&5 4436 4437 ac_cv_c_bigendian=no 4438 fi 4439 4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4441 else 4442 echo "$as_me: failed program was:" >&5 4443 sed 's/^/| /' conftest.$ac_ext >&5 4444 4445 # It does not; compile a test program. 4446 if test "$cross_compiling" = yes; then 4447 # try to guess the endianness by grepping values into an object file 4448 ac_cv_c_bigendian=unknown 4449 cat >conftest.$ac_ext <<_ACEOF 4450 /* confdefs.h. */ 4451 _ACEOF 4452 cat confdefs.h >>conftest.$ac_ext 4453 cat >>conftest.$ac_ext <<_ACEOF 4454 /* end confdefs.h. */ 4455 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4456 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4457 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4458 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4459 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4460 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4461 int 4462 main () 4463 { 4464 _ascii (); _ebcdic (); 4465 ; 4466 return 0; 4467 } 4468 _ACEOF 4469 rm -f conftest.$ac_objext 4470 if { (ac_try="$ac_compile" 4471 case "(($ac_try" in 4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4473 *) ac_try_echo=$ac_try;; 4474 esac 4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4476 (eval "$ac_compile") 2>conftest.er1 4477 ac_status=$? 4478 grep -v '^ *+' conftest.er1 >conftest.err 4479 rm -f conftest.er1 4480 cat conftest.err >&5 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); } && 4483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4484 { (case "(($ac_try" in 4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4486 *) ac_try_echo=$ac_try;; 4487 esac 4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4489 (eval "$ac_try") 2>&5 4490 ac_status=$? 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); }; } && 4493 { ac_try='test -s conftest.$ac_objext' 4494 { (case "(($ac_try" in 4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4496 *) ac_try_echo=$ac_try;; 4497 esac 4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4499 (eval "$ac_try") 2>&5 4500 ac_status=$? 4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4502 (exit $ac_status); }; }; then 4503 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4504 ac_cv_c_bigendian=yes 4505 fi 4506 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4507 if test "$ac_cv_c_bigendian" = unknown; then 4508 ac_cv_c_bigendian=no 4509 else 4510 # finding both strings is unlikely to happen, but who knows? 4511 ac_cv_c_bigendian=unknown 4512 fi 4513 fi 4514 else 4515 echo "$as_me: failed program was:" >&5 4516 sed 's/^/| /' conftest.$ac_ext >&5 4517 4518 4519 fi 4520 4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4522 else 4523 cat >conftest.$ac_ext <<_ACEOF 4524 /* confdefs.h. */ 4525 _ACEOF 4526 cat confdefs.h >>conftest.$ac_ext 4527 cat >>conftest.$ac_ext <<_ACEOF 4528 /* end confdefs.h. */ 4529 $ac_includes_default 4530 int 4531 main () 4532 { 4533 4534 /* Are we little or big endian? From Harbison&Steele. */ 4535 union 4536 { 4537 long int l; 4538 char c[sizeof (long int)]; 4539 } u; 4540 u.l = 1; 4541 return u.c[sizeof (long int) - 1] == 1; 4542 4543 ; 4544 return 0; 4545 } 4546 _ACEOF 4547 rm -f conftest$ac_exeext 4548 if { (ac_try="$ac_link" 4549 case "(($ac_try" in 4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4551 *) ac_try_echo=$ac_try;; 4552 esac 4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4554 (eval "$ac_link") 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4558 { (case "(($ac_try" in 4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4560 *) ac_try_echo=$ac_try;; 4561 esac 4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4563 (eval "$ac_try") 2>&5 4564 ac_status=$? 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); }; }; then 4567 ac_cv_c_bigendian=no 4568 else 4569 echo "$as_me: program exited with status $ac_status" >&5 4570 echo "$as_me: failed program was:" >&5 4571 sed 's/^/| /' conftest.$ac_ext >&5 4572 4573 ( exit $ac_status ) 4574 ac_cv_c_bigendian=yes 4575 fi 4576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4577 fi 4578 4579 4580 fi 4581 4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4583 fi 4584 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4585 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4586 case $ac_cv_c_bigendian in 4587 yes) 4588 ENDIAN=big 4589 ;; 4590 no) 4591 ENDIAN=little 4592 ;; 4593 *) 4594 { { echo "$as_me:$LINENO: error: unknown endianness 4595 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4596 echo "$as_me: error: unknown endianness 4597 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4598 { (exit 1); exit 1; }; } ;; 4599 esac 4600 4601 4602 if test "$cross_compiling" = yes; then 4603 LLVM_CROSS_COMPILING=1 4604 4605 4606 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4607 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4608 if test "${ac_cv_build_exeext+set}" = set; then 4609 echo $ECHO_N "(cached) $ECHO_C" >&6 4610 else 4611 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4612 ac_cv_build_exeext=.exe 4613 else 4614 ac_build_prefix=${build_alias}- 4615 4616 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4617 set dummy ${ac_build_prefix}gcc; ac_word=$2 4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4620 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4621 echo $ECHO_N "(cached) $ECHO_C" >&6 4622 else 4623 if test -n "$BUILD_CC"; then 4624 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4625 else 4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4627 for as_dir in $PATH 4628 do 4629 IFS=$as_save_IFS 4630 test -z "$as_dir" && as_dir=. 4631 for ac_exec_ext in '' $ac_executable_extensions; do 4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4633 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4635 break 2 4636 fi 4637 done 4638 done 4639 IFS=$as_save_IFS 4640 4641 fi 4642 fi 4643 BUILD_CC=$ac_cv_prog_BUILD_CC 4644 if test -n "$BUILD_CC"; then 4645 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4646 echo "${ECHO_T}$BUILD_CC" >&6; } 4647 else 4648 { echo "$as_me:$LINENO: result: no" >&5 4649 echo "${ECHO_T}no" >&6; } 4650 fi 4651 4652 4653 if test -z "$BUILD_CC"; then 4654 # Extract the first word of "gcc", so it can be a program name with args. 4655 set dummy gcc; ac_word=$2 4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4658 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4659 echo $ECHO_N "(cached) $ECHO_C" >&6 4660 else 4661 if test -n "$BUILD_CC"; then 4662 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4663 else 4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4665 for as_dir in $PATH 4666 do 4667 IFS=$as_save_IFS 4668 test -z "$as_dir" && as_dir=. 4669 for ac_exec_ext in '' $ac_executable_extensions; do 4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4671 ac_cv_prog_BUILD_CC="gcc" 4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4673 break 2 4674 fi 4675 done 4676 done 4677 IFS=$as_save_IFS 4678 4679 fi 4680 fi 4681 BUILD_CC=$ac_cv_prog_BUILD_CC 4682 if test -n "$BUILD_CC"; then 4683 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4684 echo "${ECHO_T}$BUILD_CC" >&6; } 4685 else 4686 { echo "$as_me:$LINENO: result: no" >&5 4687 echo "${ECHO_T}no" >&6; } 4688 fi 4689 4690 4691 if test -z "$BUILD_CC"; then 4692 # Extract the first word of "cc", so it can be a program name with args. 4693 set dummy cc; ac_word=$2 4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4696 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4697 echo $ECHO_N "(cached) $ECHO_C" >&6 4698 else 4699 if test -n "$BUILD_CC"; then 4700 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4701 else 4702 ac_prog_rejected=no 4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4704 for as_dir in $PATH 4705 do 4706 IFS=$as_save_IFS 4707 test -z "$as_dir" && as_dir=. 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4711 ac_prog_rejected=yes 4712 continue 4713 fi 4714 ac_cv_prog_BUILD_CC="cc" 4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4716 break 2 4717 fi 4718 done 4719 done 4720 IFS=$as_save_IFS 4721 4722 if test $ac_prog_rejected = yes; then 4723 # We found a bogon in the path, so make sure we never use it. 4724 set dummy $ac_cv_prog_BUILD_CC 4725 shift 4726 if test $# != 0; then 4727 # We chose a different compiler from the bogus one. 4728 # However, it has the same basename, so the bogon will be chosen 4729 # first if we set BUILD_CC to just the basename; use the full file name. 4730 shift 4731 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4732 fi 4733 fi 4734 fi 4735 fi 4736 BUILD_CC=$ac_cv_prog_BUILD_CC 4737 if test -n "$BUILD_CC"; then 4738 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4739 echo "${ECHO_T}$BUILD_CC" >&6; } 4740 else 4741 { echo "$as_me:$LINENO: result: no" >&5 4742 echo "${ECHO_T}no" >&6; } 4743 fi 4744 4745 4746 fi 4747 fi 4748 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4749 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4750 { (exit 1); exit 1; }; } 4751 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4752 rm -f conftest* 4753 echo 'int main () { return 0; }' > conftest.$ac_ext 4754 ac_cv_build_exeext= 4755 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4756 (eval $ac_build_link) 2>&5 4757 ac_status=$? 4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4759 (exit $ac_status); }; then 4760 for file in conftest.*; do 4761 case $file in 4762 *.c | *.o | *.obj | *.dSYM) ;; 4763 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4764 esac 4765 done 4766 else 4767 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4768 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4769 { (exit 1); exit 1; }; } 4770 fi 4771 rm -f conftest* 4772 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4773 fi 4774 fi 4775 4776 BUILD_EXEEXT="" 4777 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4778 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4779 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4780 ac_build_exeext=$BUILD_EXEEXT 4781 4782 ac_build_prefix=${build_alias}- 4783 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4784 set dummy ${ac_build_prefix}g++; ac_word=$2 4785 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4787 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4788 echo $ECHO_N "(cached) $ECHO_C" >&6 4789 else 4790 if test -n "$BUILD_CXX"; then 4791 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4792 else 4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4794 for as_dir in $PATH 4795 do 4796 IFS=$as_save_IFS 4797 test -z "$as_dir" && as_dir=. 4798 for ac_exec_ext in '' $ac_executable_extensions; do 4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4800 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4802 break 2 4803 fi 4804 done 4805 done 4806 IFS=$as_save_IFS 4807 4808 fi 4809 fi 4810 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4811 if test -n "$BUILD_CXX"; then 4812 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4813 echo "${ECHO_T}$BUILD_CXX" >&6; } 4814 else 4815 { echo "$as_me:$LINENO: result: no" >&5 4816 echo "${ECHO_T}no" >&6; } 4817 fi 4818 4819 4820 if test -z "$BUILD_CXX"; then 4821 # Extract the first word of "g++", so it can be a program name with args. 4822 set dummy g++; ac_word=$2 4823 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4825 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4826 echo $ECHO_N "(cached) $ECHO_C" >&6 4827 else 4828 if test -n "$BUILD_CXX"; then 4829 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4830 else 4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4832 for as_dir in $PATH 4833 do 4834 IFS=$as_save_IFS 4835 test -z "$as_dir" && as_dir=. 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4838 ac_cv_prog_BUILD_CXX="g++" 4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842 done 4843 done 4844 IFS=$as_save_IFS 4845 4846 fi 4847 fi 4848 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4849 if test -n "$BUILD_CXX"; then 4850 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4851 echo "${ECHO_T}$BUILD_CXX" >&6; } 4852 else 4853 { echo "$as_me:$LINENO: result: no" >&5 4854 echo "${ECHO_T}no" >&6; } 4855 fi 4856 4857 4858 if test -z "$BUILD_CXX"; then 4859 # Extract the first word of "c++", so it can be a program name with args. 4860 set dummy c++; ac_word=$2 4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4863 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4864 echo $ECHO_N "(cached) $ECHO_C" >&6 4865 else 4866 if test -n "$BUILD_CXX"; then 4867 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4868 else 4869 ac_prog_rejected=no 4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4871 for as_dir in $PATH 4872 do 4873 IFS=$as_save_IFS 4874 test -z "$as_dir" && as_dir=. 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4878 ac_prog_rejected=yes 4879 continue 4880 fi 4881 ac_cv_prog_BUILD_CXX="c++" 4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4883 break 2 4884 fi 4885 done 4886 done 4887 IFS=$as_save_IFS 4888 4889 if test $ac_prog_rejected = yes; then 4890 # We found a bogon in the path, so make sure we never use it. 4891 set dummy $ac_cv_prog_BUILD_CXX 4892 shift 4893 if test $# != 0; then 4894 # We chose a different compiler from the bogus one. 4895 # However, it has the same basename, so the bogon will be chosen 4896 # first if we set BUILD_CXX to just the basename; use the full file name. 4897 shift 4898 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4899 fi 4900 fi 4901 fi 4902 fi 4903 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4904 if test -n "$BUILD_CXX"; then 4905 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4906 echo "${ECHO_T}$BUILD_CXX" >&6; } 4907 else 4908 { echo "$as_me:$LINENO: result: no" >&5 4909 echo "${ECHO_T}no" >&6; } 4910 fi 4911 4912 4913 fi 4914 fi 4915 else 4916 LLVM_CROSS_COMPILING=0 4917 4918 fi 4919 4920 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4921 cvsbuild="yes" 4922 optimize="no" 4923 CVSBUILD=CVSBUILD=1 4924 4925 else 4926 cvsbuild="no" 4927 optimize="yes" 4928 fi 4929 4930 4931 # Check whether --enable-libcpp was given. 4932 if test "${enable_libcpp+set}" = set; then 4933 enableval=$enable_libcpp; 4934 else 4935 enableval=default 4936 fi 4937 4938 case "$enableval" in 4939 yes) ENABLE_LIBCPP=1 4940 ;; 4941 no) ENABLE_LIBCPP=0 4942 ;; 4943 default) ENABLE_LIBCPP=0 4944 ;; 4945 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 4946 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 4947 { (exit 1); exit 1; }; } ;; 4948 esac 4949 4950 # Check whether --enable-cxx11 was given. 4951 if test "${enable_cxx11+set}" = set; then 4952 enableval=$enable_cxx11; 4953 else 4954 enableval=default 4955 fi 4956 4957 case "$enableval" in 4958 yes) ENABLE_CXX11=1 4959 ;; 4960 no) ENABLE_CXX11=0 4961 ;; 4962 default) ENABLE_CXX11=0 4963 ;; 4964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 4965 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} 4966 { (exit 1); exit 1; }; } ;; 4967 esac 4968 4969 # Check whether --enable-optimized was given. 4970 if test "${enable_optimized+set}" = set; then 4971 enableval=$enable_optimized; 4972 else 4973 enableval=$optimize 4974 fi 4975 4976 if test ${enableval} = "no" ; then 4977 ENABLE_OPTIMIZED= 4978 4979 else 4980 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4981 4982 fi 4983 4984 # Check whether --enable-profiling was given. 4985 if test "${enable_profiling+set}" = set; then 4986 enableval=$enable_profiling; 4987 else 4988 enableval="no" 4989 fi 4990 4991 if test ${enableval} = "no" ; then 4992 ENABLE_PROFILING= 4993 4994 else 4995 ENABLE_PROFILING=ENABLE_PROFILING=1 4996 4997 fi 4998 4999 # Check whether --enable-assertions was given. 5000 if test "${enable_assertions+set}" = set; then 5001 enableval=$enable_assertions; 5002 else 5003 enableval="yes" 5004 fi 5005 5006 if test ${enableval} = "yes" ; then 5007 DISABLE_ASSERTIONS= 5008 5009 else 5010 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5011 5012 fi 5013 5014 # Check whether --enable-werror was given. 5015 if test "${enable_werror+set}" = set; then 5016 enableval=$enable_werror; 5017 else 5018 enableval="no" 5019 fi 5020 5021 case "$enableval" in 5022 yes) ENABLE_WERROR=1 5023 ;; 5024 no) ENABLE_WERROR=0 5025 ;; 5026 default) ENABLE_WERROR=0 5027 ;; 5028 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5029 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5030 { (exit 1); exit 1; }; } ;; 5031 esac 5032 5033 # Check whether --enable-expensive-checks was given. 5034 if test "${enable_expensive_checks+set}" = set; then 5035 enableval=$enable_expensive_checks; 5036 else 5037 enableval="no" 5038 fi 5039 5040 if test ${enableval} = "yes" ; then 5041 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5042 5043 EXPENSIVE_CHECKS=yes 5044 5045 else 5046 ENABLE_EXPENSIVE_CHECKS= 5047 5048 EXPENSIVE_CHECKS=no 5049 5050 fi 5051 5052 # Check whether --enable-debug-runtime was given. 5053 if test "${enable_debug_runtime+set}" = set; then 5054 enableval=$enable_debug_runtime; 5055 else 5056 enableval=no 5057 fi 5058 5059 if test ${enableval} = "no" ; then 5060 DEBUG_RUNTIME= 5061 5062 else 5063 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5064 5065 fi 5066 5067 # Check whether --enable-debug-symbols was given. 5068 if test "${enable_debug_symbols+set}" = set; then 5069 enableval=$enable_debug_symbols; 5070 else 5071 enableval=no 5072 fi 5073 5074 if test ${enableval} = "no" ; then 5075 DEBUG_SYMBOLS= 5076 5077 else 5078 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5079 5080 fi 5081 5082 # Check whether --enable-jit was given. 5083 if test "${enable_jit+set}" = set; then 5084 enableval=$enable_jit; 5085 else 5086 enableval=default 5087 fi 5088 5089 if test ${enableval} = "no" 5090 then 5091 JIT= 5092 5093 else 5094 case "$llvm_cv_target_arch" in 5095 x86) TARGET_HAS_JIT=1 5096 ;; 5097 Sparc) TARGET_HAS_JIT=0 5098 ;; 5099 PowerPC) TARGET_HAS_JIT=1 5100 ;; 5101 x86_64) TARGET_HAS_JIT=1 5102 ;; 5103 ARM) TARGET_HAS_JIT=1 5104 ;; 5105 AArch64) TARGET_HAS_JIT=0 5106 ;; 5107 Mips) TARGET_HAS_JIT=1 5108 ;; 5109 XCore) TARGET_HAS_JIT=0 5110 ;; 5111 MSP430) TARGET_HAS_JIT=0 5112 ;; 5113 Hexagon) TARGET_HAS_JIT=0 5114 ;; 5115 NVPTX) TARGET_HAS_JIT=0 5116 ;; 5117 SystemZ) TARGET_HAS_JIT=1 5118 ;; 5119 *) TARGET_HAS_JIT=0 5120 ;; 5121 esac 5122 fi 5123 5124 # Check whether --enable-docs was given. 5125 if test "${enable_docs+set}" = set; then 5126 enableval=$enable_docs; 5127 else 5128 enableval=default 5129 fi 5130 5131 case "$enableval" in 5132 yes) ENABLE_DOCS=1 5133 ;; 5134 no) ENABLE_DOCS=0 5135 ;; 5136 default) ENABLE_DOCS=1 5137 ;; 5138 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5139 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5140 { (exit 1); exit 1; }; } ;; 5141 esac 5142 5143 # Check whether --enable-doxygen was given. 5144 if test "${enable_doxygen+set}" = set; then 5145 enableval=$enable_doxygen; 5146 else 5147 enableval=default 5148 fi 5149 5150 case "$enableval" in 5151 yes) ENABLE_DOXYGEN=1 5152 ;; 5153 no) ENABLE_DOXYGEN=0 5154 ;; 5155 default) ENABLE_DOXYGEN=0 5156 ;; 5157 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5158 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5159 { (exit 1); exit 1; }; } ;; 5160 esac 5161 5162 # Check whether --enable-threads was given. 5163 if test "${enable_threads+set}" = set; then 5164 enableval=$enable_threads; 5165 else 5166 enableval=default 5167 fi 5168 5169 case "$enableval" in 5170 yes) ENABLE_THREADS=1 5171 ;; 5172 no) ENABLE_THREADS=0 5173 ;; 5174 default) ENABLE_THREADS=1 5175 ;; 5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5177 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5178 { (exit 1); exit 1; }; } ;; 5179 esac 5180 5181 cat >>confdefs.h <<_ACEOF 5182 #define ENABLE_THREADS $ENABLE_THREADS 5183 _ACEOF 5184 5185 5186 # Check whether --enable-pthreads was given. 5187 if test "${enable_pthreads+set}" = set; then 5188 enableval=$enable_pthreads; 5189 else 5190 enableval=default 5191 fi 5192 5193 case "$enableval" in 5194 yes) ENABLE_PTHREADS=1 5195 ;; 5196 no) ENABLE_PTHREADS=0 5197 ;; 5198 default) ENABLE_PTHREADS=1 5199 ;; 5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5201 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5202 { (exit 1); exit 1; }; } ;; 5203 esac 5204 5205 # Check whether --enable-pic was given. 5206 if test "${enable_pic+set}" = set; then 5207 enableval=$enable_pic; 5208 else 5209 enableval=default 5210 fi 5211 5212 case "$enableval" in 5213 yes) ENABLE_PIC=1 5214 ;; 5215 no) ENABLE_PIC=0 5216 ;; 5217 default) ENABLE_PIC=1 5218 ;; 5219 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5220 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5221 { (exit 1); exit 1; }; } ;; 5222 esac 5223 5224 cat >>confdefs.h <<_ACEOF 5225 #define ENABLE_PIC $ENABLE_PIC 5226 _ACEOF 5227 5228 5229 # Check whether --enable-shared was given. 5230 if test "${enable_shared+set}" = set; then 5231 enableval=$enable_shared; 5232 else 5233 enableval=default 5234 fi 5235 5236 case "$enableval" in 5237 yes) ENABLE_SHARED=1 5238 ;; 5239 no) ENABLE_SHARED=0 5240 ;; 5241 default) ENABLE_SHARED=0 5242 ;; 5243 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5244 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5245 { (exit 1); exit 1; }; } ;; 5246 esac 5247 5248 # Check whether --enable-embed-stdcxx was given. 5249 if test "${enable_embed_stdcxx+set}" = set; then 5250 enableval=$enable_embed_stdcxx; 5251 else 5252 enableval=default 5253 fi 5254 5255 case "$enableval" in 5256 yes) ENABLE_EMBED_STDCXX=1 5257 ;; 5258 no) ENABLE_EMBED_STDCXX=0 5259 ;; 5260 default) ENABLE_EMBED_STDCXX=1 5261 ;; 5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5263 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5264 { (exit 1); exit 1; }; } ;; 5265 esac 5266 5267 # Check whether --enable-timestamps was given. 5268 if test "${enable_timestamps+set}" = set; then 5269 enableval=$enable_timestamps; 5270 else 5271 enableval=default 5272 fi 5273 5274 case "$enableval" in 5275 yes) ENABLE_TIMESTAMPS=1 5276 ;; 5277 no) ENABLE_TIMESTAMPS=0 5278 ;; 5279 default) ENABLE_TIMESTAMPS=1 5280 ;; 5281 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5282 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5283 { (exit 1); exit 1; }; } ;; 5284 esac 5285 5286 cat >>confdefs.h <<_ACEOF 5287 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5288 _ACEOF 5289 5290 5291 TARGETS_TO_BUILD="" 5292 # Check whether --enable-targets was given. 5293 if test "${enable_targets+set}" = set; then 5294 enableval=$enable_targets; 5295 else 5296 enableval=all 5297 fi 5298 5299 if test "$enableval" = host-only ; then 5300 enableval=host 5301 fi 5302 case "$enableval" in 5303 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;; 5304 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5305 case "$a_target" in 5306 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5307 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5308 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5309 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5310 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5311 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5312 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5313 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5314 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5315 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5316 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5317 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5318 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5319 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5320 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5321 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5322 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;; 5323 host) case "$llvm_cv_target_arch" in 5324 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5325 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5326 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5327 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5328 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5329 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5330 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5331 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5332 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5333 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5334 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5335 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5336 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5337 echo "$as_me: error: Can not set target to build" >&2;} 5338 { (exit 1); exit 1; }; } ;; 5339 esac ;; 5340 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5341 echo "$as_me: error: Unrecognized target $a_target" >&2;} 5342 { (exit 1); exit 1; }; } ;; 5343 esac 5344 done 5345 ;; 5346 esac 5347 TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5348 5349 5350 # Determine whether we are building LLVM support for the native architecture. 5351 # If so, define LLVM_NATIVE_ARCH to that LLVM target. 5352 for a_target in $TARGETS_TO_BUILD; do 5353 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5354 5355 cat >>confdefs.h <<_ACEOF 5356 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5357 _ACEOF 5358 5359 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5360 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5361 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5362 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5363 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5364 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5365 fi 5366 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5367 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5368 fi 5369 5370 cat >>confdefs.h <<_ACEOF 5371 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5372 _ACEOF 5373 5374 5375 cat >>confdefs.h <<_ACEOF 5376 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5377 _ACEOF 5378 5379 5380 cat >>confdefs.h <<_ACEOF 5381 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5382 _ACEOF 5383 5384 5385 cat >>confdefs.h <<_ACEOF 5386 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5387 _ACEOF 5388 5389 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5390 5391 cat >>confdefs.h <<_ACEOF 5392 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5393 _ACEOF 5394 5395 fi 5396 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5397 5398 cat >>confdefs.h <<_ACEOF 5399 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5400 _ACEOF 5401 5402 fi 5403 fi 5404 done 5405 5406 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 5407 # target feature def files. 5408 LLVM_ENUM_TARGETS="" 5409 LLVM_ENUM_ASM_PRINTERS="" 5410 LLVM_ENUM_ASM_PARSERS="" 5411 LLVM_ENUM_DISASSEMBLERS="" 5412 for target_to_build in $TARGETS_TO_BUILD; do 5413 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5414 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5415 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5416 fi 5417 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5418 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5419 fi 5420 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5421 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5422 fi 5423 done 5424 5425 5426 5427 5428 5429 5430 # Check whether --with-optimize-option was given. 5431 if test "${with_optimize_option+set}" = set; then 5432 withval=$with_optimize_option; 5433 else 5434 withval=default 5435 fi 5436 5437 { echo "$as_me:$LINENO: checking optimization flags" >&5 5438 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5439 case "$withval" in 5440 default) 5441 case "$llvm_cv_os_type" in 5442 FreeBSD) optimize_option=-O2 ;; 5443 MingW) optimize_option=-O2 ;; 5444 *) optimize_option=-O3 ;; 5445 esac ;; 5446 *) optimize_option="$withval" ;; 5447 esac 5448 OPTIMIZE_OPTION=$optimize_option 5449 5450 { echo "$as_me:$LINENO: result: $optimize_option" >&5 5451 echo "${ECHO_T}$optimize_option" >&6; } 5452 5453 5454 # Check whether --with-extra-options was given. 5455 if test "${with_extra_options+set}" = set; then 5456 withval=$with_extra_options; 5457 else 5458 withval=default 5459 fi 5460 5461 case "$withval" in 5462 default) EXTRA_OPTIONS= ;; 5463 *) EXTRA_OPTIONS=$withval ;; 5464 esac 5465 EXTRA_OPTIONS=$EXTRA_OPTIONS 5466 5467 5468 5469 # Check whether --with-extra-ld-options was given. 5470 if test "${with_extra_ld_options+set}" = set; then 5471 withval=$with_extra_ld_options; 5472 else 5473 withval=default 5474 fi 5475 5476 case "$withval" in 5477 default) EXTRA_LD_OPTIONS= ;; 5478 *) EXTRA_LD_OPTIONS=$withval ;; 5479 esac 5480 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5481 5482 5483 # Check whether --enable-bindings was given. 5484 if test "${enable_bindings+set}" = set; then 5485 enableval=$enable_bindings; 5486 else 5487 enableval=default 5488 fi 5489 5490 BINDINGS_TO_BUILD="" 5491 case "$enableval" in 5492 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5493 all ) BINDINGS_TO_BUILD="ocaml" ;; 5494 none | no) BINDINGS_TO_BUILD="" ;; 5495 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5496 case "$a_binding" in 5497 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5498 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5499 echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5500 { (exit 1); exit 1; }; } ;; 5501 esac 5502 done 5503 ;; 5504 esac 5505 5506 5507 # Check whether --with-ocaml-libdir was given. 5508 if test "${with_ocaml_libdir+set}" = set; then 5509 withval=$with_ocaml_libdir; 5510 else 5511 withval=auto 5512 fi 5513 5514 case "$withval" in 5515 auto) with_ocaml_libdir="$withval" ;; 5516 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5517 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5518 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5519 { (exit 1); exit 1; }; } ;; 5520 esac 5521 5522 5523 # Check whether --with-clang-resource-dir was given. 5524 if test "${with_clang_resource_dir+set}" = set; then 5525 withval=$with_clang_resource_dir; 5526 else 5527 withval="" 5528 fi 5529 5530 5531 cat >>confdefs.h <<_ACEOF 5532 #define CLANG_RESOURCE_DIR "$withval" 5533 _ACEOF 5534 5535 5536 5537 # Check whether --with-c-include-dirs was given. 5538 if test "${with_c_include_dirs+set}" = set; then 5539 withval=$with_c_include_dirs; 5540 else 5541 withval="" 5542 fi 5543 5544 5545 cat >>confdefs.h <<_ACEOF 5546 #define C_INCLUDE_DIRS "$withval" 5547 _ACEOF 5548 5549 5550 # Clang normally uses the system c++ headers and libraries. With this option, 5551 # clang will use the ones provided by a gcc installation instead. This option should 5552 # be passed the same value that was used with --prefix when configuring gcc. 5553 5554 # Check whether --with-gcc-toolchain was given. 5555 if test "${with_gcc_toolchain+set}" = set; then 5556 withval=$with_gcc_toolchain; 5557 else 5558 withval="" 5559 fi 5560 5561 5562 cat >>confdefs.h <<_ACEOF 5563 #define GCC_INSTALL_PREFIX "$withval" 5564 _ACEOF 5565 5566 5567 5568 # Check whether --with-binutils-include was given. 5569 if test "${with_binutils_include+set}" = set; then 5570 withval=$with_binutils_include; 5571 else 5572 withval=default 5573 fi 5574 5575 case "$withval" in 5576 default) WITH_BINUTILS_INCDIR=default ;; 5577 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5578 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5579 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5580 { (exit 1); exit 1; }; } ;; 5581 esac 5582 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5583 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5584 5585 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5586 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5587 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5588 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5589 { (exit 1); exit 1; }; }; 5590 fi 5591 fi 5592 5593 5594 # Check whether --with-bug-report-url was given. 5595 if test "${with_bug_report_url+set}" = set; then 5596 withval=$with_bug_report_url; 5597 else 5598 withval="http://llvm.org/bugs/" 5599 fi 5600 5601 5602 cat >>confdefs.h <<_ACEOF 5603 #define BUG_REPORT_URL "$withval" 5604 _ACEOF 5605 5606 5607 # Check whether --enable-libffi was given. 5608 if test "${enable_libffi+set}" = set; then 5609 enableval=$enable_libffi; case "$enableval" in 5610 yes) llvm_cv_enable_libffi="yes" ;; 5611 no) llvm_cv_enable_libffi="no" ;; 5612 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5613 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5614 { (exit 1); exit 1; }; } ;; 5615 esac 5616 else 5617 llvm_cv_enable_libffi=no 5618 fi 5619 5620 5621 5622 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5623 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5624 if test "${lt_cv_path_NM+set}" = set; then 5625 echo $ECHO_N "(cached) $ECHO_C" >&6 5626 else 5627 if test -n "$NM"; then 5628 # Let the user override the test. 5629 lt_cv_path_NM="$NM" 5630 else 5631 lt_nm_to_check="${ac_tool_prefix}nm" 5632 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5633 lt_nm_to_check="$lt_nm_to_check nm" 5634 fi 5635 for lt_tmp_nm in $lt_nm_to_check; do 5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5637 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5638 IFS="$lt_save_ifs" 5639 test -z "$ac_dir" && ac_dir=. 5640 tmp_nm="$ac_dir/$lt_tmp_nm" 5641 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5642 # Check to see if the nm accepts a BSD-compat flag. 5643 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5644 # nm: unknown option "B" ignored 5645 # Tru64's nm complains that /dev/null is an invalid object file 5646 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5647 */dev/null* | *'Invalid file or object type'*) 5648 lt_cv_path_NM="$tmp_nm -B" 5649 break 5650 ;; 5651 *) 5652 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5653 */dev/null*) 5654 lt_cv_path_NM="$tmp_nm -p" 5655 break 5656 ;; 5657 *) 5658 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5659 continue # so that we can try to find one that supports BSD flags 5660 ;; 5661 esac 5662 ;; 5663 esac 5664 fi 5665 done 5666 IFS="$lt_save_ifs" 5667 done 5668 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5669 fi 5670 fi 5671 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5672 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5673 NM="$lt_cv_path_NM" 5674 5675 5676 5677 { echo "$as_me:$LINENO: checking for GNU make" >&5 5678 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 5679 if test "${llvm_cv_gnu_make_command+set}" = set; then 5680 echo $ECHO_N "(cached) $ECHO_C" >&6 5681 else 5682 llvm_cv_gnu_make_command='' 5683 for a in "$MAKE" make gmake gnumake ; do 5684 if test -z "$a" ; then continue ; fi ; 5685 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5686 then 5687 llvm_cv_gnu_make_command=$a ; 5688 break; 5689 fi 5690 done 5691 fi 5692 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 5693 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 5694 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5695 ifGNUmake='' ; 5696 else 5697 ifGNUmake='#' ; 5698 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 5699 echo "${ECHO_T}\"Not found\"" >&6; }; 5700 fi 5701 5702 5703 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 5704 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5705 LN_S=$as_ln_s 5706 if test "$LN_S" = "ln -s"; then 5707 { echo "$as_me:$LINENO: result: yes" >&5 5708 echo "${ECHO_T}yes" >&6; } 5709 else 5710 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5711 echo "${ECHO_T}no, using $LN_S" >&6; } 5712 fi 5713 5714 # Extract the first word of "cmp", so it can be a program name with args. 5715 set dummy cmp; ac_word=$2 5716 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5718 if test "${ac_cv_path_CMP+set}" = set; then 5719 echo $ECHO_N "(cached) $ECHO_C" >&6 5720 else 5721 case $CMP in 5722 [\\/]* | ?:[\\/]*) 5723 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5724 ;; 5725 *) 5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5727 for as_dir in $PATH 5728 do 5729 IFS=$as_save_IFS 5730 test -z "$as_dir" && as_dir=. 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5733 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5735 break 2 5736 fi 5737 done 5738 done 5739 IFS=$as_save_IFS 5740 5741 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5742 ;; 5743 esac 5744 fi 5745 CMP=$ac_cv_path_CMP 5746 if test -n "$CMP"; then 5747 { echo "$as_me:$LINENO: result: $CMP" >&5 5748 echo "${ECHO_T}$CMP" >&6; } 5749 else 5750 { echo "$as_me:$LINENO: result: no" >&5 5751 echo "${ECHO_T}no" >&6; } 5752 fi 5753 5754 5755 # Extract the first word of "cp", so it can be a program name with args. 5756 set dummy cp; ac_word=$2 5757 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5759 if test "${ac_cv_path_CP+set}" = set; then 5760 echo $ECHO_N "(cached) $ECHO_C" >&6 5761 else 5762 case $CP in 5763 [\\/]* | ?:[\\/]*) 5764 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5765 ;; 5766 *) 5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768 for as_dir in $PATH 5769 do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5774 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778 done 5779 done 5780 IFS=$as_save_IFS 5781 5782 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 5783 ;; 5784 esac 5785 fi 5786 CP=$ac_cv_path_CP 5787 if test -n "$CP"; then 5788 { echo "$as_me:$LINENO: result: $CP" >&5 5789 echo "${ECHO_T}$CP" >&6; } 5790 else 5791 { echo "$as_me:$LINENO: result: no" >&5 5792 echo "${ECHO_T}no" >&6; } 5793 fi 5794 5795 5796 # Extract the first word of "date", so it can be a program name with args. 5797 set dummy date; ac_word=$2 5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5800 if test "${ac_cv_path_DATE+set}" = set; then 5801 echo $ECHO_N "(cached) $ECHO_C" >&6 5802 else 5803 case $DATE in 5804 [\\/]* | ?:[\\/]*) 5805 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5806 ;; 5807 *) 5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5809 for as_dir in $PATH 5810 do 5811 IFS=$as_save_IFS 5812 test -z "$as_dir" && as_dir=. 5813 for ac_exec_ext in '' $ac_executable_extensions; do 5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5815 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5817 break 2 5818 fi 5819 done 5820 done 5821 IFS=$as_save_IFS 5822 5823 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 5824 ;; 5825 esac 5826 fi 5827 DATE=$ac_cv_path_DATE 5828 if test -n "$DATE"; then 5829 { echo "$as_me:$LINENO: result: $DATE" >&5 5830 echo "${ECHO_T}$DATE" >&6; } 5831 else 5832 { echo "$as_me:$LINENO: result: no" >&5 5833 echo "${ECHO_T}no" >&6; } 5834 fi 5835 5836 5837 # Extract the first word of "find", so it can be a program name with args. 5838 set dummy find; ac_word=$2 5839 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5841 if test "${ac_cv_path_FIND+set}" = set; then 5842 echo $ECHO_N "(cached) $ECHO_C" >&6 5843 else 5844 case $FIND in 5845 [\\/]* | ?:[\\/]*) 5846 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 5847 ;; 5848 *) 5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5850 for as_dir in $PATH 5851 do 5852 IFS=$as_save_IFS 5853 test -z "$as_dir" && as_dir=. 5854 for ac_exec_ext in '' $ac_executable_extensions; do 5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5856 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 5857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5858 break 2 5859 fi 5860 done 5861 done 5862 IFS=$as_save_IFS 5863 5864 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 5865 ;; 5866 esac 5867 fi 5868 FIND=$ac_cv_path_FIND 5869 if test -n "$FIND"; then 5870 { echo "$as_me:$LINENO: result: $FIND" >&5 5871 echo "${ECHO_T}$FIND" >&6; } 5872 else 5873 { echo "$as_me:$LINENO: result: no" >&5 5874 echo "${ECHO_T}no" >&6; } 5875 fi 5876 5877 5878 # Extract the first word of "grep", so it can be a program name with args. 5879 set dummy grep; ac_word=$2 5880 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5882 if test "${ac_cv_path_GREP+set}" = set; then 5883 echo $ECHO_N "(cached) $ECHO_C" >&6 5884 else 5885 case $GREP in 5886 [\\/]* | ?:[\\/]*) 5887 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 5888 ;; 5889 *) 5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5891 for as_dir in $PATH 5892 do 5893 IFS=$as_save_IFS 5894 test -z "$as_dir" && as_dir=. 5895 for ac_exec_ext in '' $ac_executable_extensions; do 5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5897 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 5898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5899 break 2 5900 fi 5901 done 5902 done 5903 IFS=$as_save_IFS 5904 5905 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 5906 ;; 5907 esac 5908 fi 5909 GREP=$ac_cv_path_GREP 5910 if test -n "$GREP"; then 5911 { echo "$as_me:$LINENO: result: $GREP" >&5 5912 echo "${ECHO_T}$GREP" >&6; } 5913 else 5914 { echo "$as_me:$LINENO: result: no" >&5 5915 echo "${ECHO_T}no" >&6; } 5916 fi 5917 5918 5919 # Extract the first word of "mkdir", so it can be a program name with args. 5920 set dummy mkdir; ac_word=$2 5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5923 if test "${ac_cv_path_MKDIR+set}" = set; then 5924 echo $ECHO_N "(cached) $ECHO_C" >&6 5925 else 5926 case $MKDIR in 5927 [\\/]* | ?:[\\/]*) 5928 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 5929 ;; 5930 *) 5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932 for as_dir in $PATH 5933 do 5934 IFS=$as_save_IFS 5935 test -z "$as_dir" && as_dir=. 5936 for ac_exec_ext in '' $ac_executable_extensions; do 5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5938 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5940 break 2 5941 fi 5942 done 5943 done 5944 IFS=$as_save_IFS 5945 5946 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 5947 ;; 5948 esac 5949 fi 5950 MKDIR=$ac_cv_path_MKDIR 5951 if test -n "$MKDIR"; then 5952 { echo "$as_me:$LINENO: result: $MKDIR" >&5 5953 echo "${ECHO_T}$MKDIR" >&6; } 5954 else 5955 { echo "$as_me:$LINENO: result: no" >&5 5956 echo "${ECHO_T}no" >&6; } 5957 fi 5958 5959 5960 # Extract the first word of "mv", so it can be a program name with args. 5961 set dummy mv; ac_word=$2 5962 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5964 if test "${ac_cv_path_MV+set}" = set; then 5965 echo $ECHO_N "(cached) $ECHO_C" >&6 5966 else 5967 case $MV in 5968 [\\/]* | ?:[\\/]*) 5969 ac_cv_path_MV="$MV" # Let the user override the test with a path. 5970 ;; 5971 *) 5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5973 for as_dir in $PATH 5974 do 5975 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5979 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983 done 5984 done 5985 IFS=$as_save_IFS 5986 5987 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 5988 ;; 5989 esac 5990 fi 5991 MV=$ac_cv_path_MV 5992 if test -n "$MV"; then 5993 { echo "$as_me:$LINENO: result: $MV" >&5 5994 echo "${ECHO_T}$MV" >&6; } 5995 else 5996 { echo "$as_me:$LINENO: result: no" >&5 5997 echo "${ECHO_T}no" >&6; } 5998 fi 5999 6000 6001 if test -n "$ac_tool_prefix"; then 6002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6006 if test "${ac_cv_prog_RANLIB+set}" = set; then 6007 echo $ECHO_N "(cached) $ECHO_C" >&6 6008 else 6009 if test -n "$RANLIB"; then 6010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6011 else 6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6013 for as_dir in $PATH 6014 do 6015 IFS=$as_save_IFS 6016 test -z "$as_dir" && as_dir=. 6017 for ac_exec_ext in '' $ac_executable_extensions; do 6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6021 break 2 6022 fi 6023 done 6024 done 6025 IFS=$as_save_IFS 6026 6027 fi 6028 fi 6029 RANLIB=$ac_cv_prog_RANLIB 6030 if test -n "$RANLIB"; then 6031 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6032 echo "${ECHO_T}$RANLIB" >&6; } 6033 else 6034 { echo "$as_me:$LINENO: result: no" >&5 6035 echo "${ECHO_T}no" >&6; } 6036 fi 6037 6038 6039 fi 6040 if test -z "$ac_cv_prog_RANLIB"; then 6041 ac_ct_RANLIB=$RANLIB 6042 # Extract the first word of "ranlib", so it can be a program name with args. 6043 set dummy ranlib; ac_word=$2 6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6047 echo $ECHO_N "(cached) $ECHO_C" >&6 6048 else 6049 if test -n "$ac_ct_RANLIB"; then 6050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6051 else 6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6053 for as_dir in $PATH 6054 do 6055 IFS=$as_save_IFS 6056 test -z "$as_dir" && as_dir=. 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6059 ac_cv_prog_ac_ct_RANLIB="ranlib" 6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6061 break 2 6062 fi 6063 done 6064 done 6065 IFS=$as_save_IFS 6066 6067 fi 6068 fi 6069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6070 if test -n "$ac_ct_RANLIB"; then 6071 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6072 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6073 else 6074 { echo "$as_me:$LINENO: result: no" >&5 6075 echo "${ECHO_T}no" >&6; } 6076 fi 6077 6078 if test "x$ac_ct_RANLIB" = x; then 6079 RANLIB=":" 6080 else 6081 case $cross_compiling:$ac_tool_warned in 6082 yes:) 6083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6084 whose name does not start with the host triplet. If you think this 6085 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6087 whose name does not start with the host triplet. If you think this 6088 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6089 ac_tool_warned=yes ;; 6090 esac 6091 RANLIB=$ac_ct_RANLIB 6092 fi 6093 else 6094 RANLIB="$ac_cv_prog_RANLIB" 6095 fi 6096 6097 if test -n "$ac_tool_prefix"; then 6098 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6099 set dummy ${ac_tool_prefix}ar; ac_word=$2 6100 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6102 if test "${ac_cv_prog_AR+set}" = set; then 6103 echo $ECHO_N "(cached) $ECHO_C" >&6 6104 else 6105 if test -n "$AR"; then 6106 ac_cv_prog_AR="$AR" # Let the user override the test. 6107 else 6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6109 for as_dir in $PATH 6110 do 6111 IFS=$as_save_IFS 6112 test -z "$as_dir" && as_dir=. 6113 for ac_exec_ext in '' $ac_executable_extensions; do 6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6115 ac_cv_prog_AR="${ac_tool_prefix}ar" 6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6117 break 2 6118 fi 6119 done 6120 done 6121 IFS=$as_save_IFS 6122 6123 fi 6124 fi 6125 AR=$ac_cv_prog_AR 6126 if test -n "$AR"; then 6127 { echo "$as_me:$LINENO: result: $AR" >&5 6128 echo "${ECHO_T}$AR" >&6; } 6129 else 6130 { echo "$as_me:$LINENO: result: no" >&5 6131 echo "${ECHO_T}no" >&6; } 6132 fi 6133 6134 6135 fi 6136 if test -z "$ac_cv_prog_AR"; then 6137 ac_ct_AR=$AR 6138 # Extract the first word of "ar", so it can be a program name with args. 6139 set dummy ar; ac_word=$2 6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6143 echo $ECHO_N "(cached) $ECHO_C" >&6 6144 else 6145 if test -n "$ac_ct_AR"; then 6146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6147 else 6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6149 for as_dir in $PATH 6150 do 6151 IFS=$as_save_IFS 6152 test -z "$as_dir" && as_dir=. 6153 for ac_exec_ext in '' $ac_executable_extensions; do 6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6155 ac_cv_prog_ac_ct_AR="ar" 6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6157 break 2 6158 fi 6159 done 6160 done 6161 IFS=$as_save_IFS 6162 6163 fi 6164 fi 6165 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6166 if test -n "$ac_ct_AR"; then 6167 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6168 echo "${ECHO_T}$ac_ct_AR" >&6; } 6169 else 6170 { echo "$as_me:$LINENO: result: no" >&5 6171 echo "${ECHO_T}no" >&6; } 6172 fi 6173 6174 if test "x$ac_ct_AR" = x; then 6175 AR="false" 6176 else 6177 case $cross_compiling:$ac_tool_warned in 6178 yes:) 6179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6180 whose name does not start with the host triplet. If you think this 6181 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6183 whose name does not start with the host triplet. If you think this 6184 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6185 ac_tool_warned=yes ;; 6186 esac 6187 AR=$ac_ct_AR 6188 fi 6189 else 6190 AR="$ac_cv_prog_AR" 6191 fi 6192 6193 # Extract the first word of "rm", so it can be a program name with args. 6194 set dummy rm; ac_word=$2 6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6197 if test "${ac_cv_path_RM+set}" = set; then 6198 echo $ECHO_N "(cached) $ECHO_C" >&6 6199 else 6200 case $RM in 6201 [\\/]* | ?:[\\/]*) 6202 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6203 ;; 6204 *) 6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6206 for as_dir in $PATH 6207 do 6208 IFS=$as_save_IFS 6209 test -z "$as_dir" && as_dir=. 6210 for ac_exec_ext in '' $ac_executable_extensions; do 6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6212 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6214 break 2 6215 fi 6216 done 6217 done 6218 IFS=$as_save_IFS 6219 6220 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6221 ;; 6222 esac 6223 fi 6224 RM=$ac_cv_path_RM 6225 if test -n "$RM"; then 6226 { echo "$as_me:$LINENO: result: $RM" >&5 6227 echo "${ECHO_T}$RM" >&6; } 6228 else 6229 { echo "$as_me:$LINENO: result: no" >&5 6230 echo "${ECHO_T}no" >&6; } 6231 fi 6232 6233 6234 # Extract the first word of "sed", so it can be a program name with args. 6235 set dummy sed; ac_word=$2 6236 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6238 if test "${ac_cv_path_SED+set}" = set; then 6239 echo $ECHO_N "(cached) $ECHO_C" >&6 6240 else 6241 case $SED in 6242 [\\/]* | ?:[\\/]*) 6243 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6244 ;; 6245 *) 6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6247 for as_dir in $PATH 6248 do 6249 IFS=$as_save_IFS 6250 test -z "$as_dir" && as_dir=. 6251 for ac_exec_ext in '' $ac_executable_extensions; do 6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6253 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6255 break 2 6256 fi 6257 done 6258 done 6259 IFS=$as_save_IFS 6260 6261 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6262 ;; 6263 esac 6264 fi 6265 SED=$ac_cv_path_SED 6266 if test -n "$SED"; then 6267 { echo "$as_me:$LINENO: result: $SED" >&5 6268 echo "${ECHO_T}$SED" >&6; } 6269 else 6270 { echo "$as_me:$LINENO: result: no" >&5 6271 echo "${ECHO_T}no" >&6; } 6272 fi 6273 6274 6275 # Extract the first word of "tar", so it can be a program name with args. 6276 set dummy tar; ac_word=$2 6277 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6279 if test "${ac_cv_path_TAR+set}" = set; then 6280 echo $ECHO_N "(cached) $ECHO_C" >&6 6281 else 6282 case $TAR in 6283 [\\/]* | ?:[\\/]*) 6284 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6285 ;; 6286 *) 6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6288 for as_dir in $PATH 6289 do 6290 IFS=$as_save_IFS 6291 test -z "$as_dir" && as_dir=. 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6294 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6296 break 2 6297 fi 6298 done 6299 done 6300 IFS=$as_save_IFS 6301 6302 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6303 ;; 6304 esac 6305 fi 6306 TAR=$ac_cv_path_TAR 6307 if test -n "$TAR"; then 6308 { echo "$as_me:$LINENO: result: $TAR" >&5 6309 echo "${ECHO_T}$TAR" >&6; } 6310 else 6311 { echo "$as_me:$LINENO: result: no" >&5 6312 echo "${ECHO_T}no" >&6; } 6313 fi 6314 6315 6316 # Extract the first word of "pwd", so it can be a program name with args. 6317 set dummy pwd; ac_word=$2 6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6320 if test "${ac_cv_path_BINPWD+set}" = set; then 6321 echo $ECHO_N "(cached) $ECHO_C" >&6 6322 else 6323 case $BINPWD in 6324 [\\/]* | ?:[\\/]*) 6325 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6326 ;; 6327 *) 6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6329 for as_dir in $PATH 6330 do 6331 IFS=$as_save_IFS 6332 test -z "$as_dir" && as_dir=. 6333 for ac_exec_ext in '' $ac_executable_extensions; do 6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6335 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6337 break 2 6338 fi 6339 done 6340 done 6341 IFS=$as_save_IFS 6342 6343 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6344 ;; 6345 esac 6346 fi 6347 BINPWD=$ac_cv_path_BINPWD 6348 if test -n "$BINPWD"; then 6349 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6350 echo "${ECHO_T}$BINPWD" >&6; } 6351 else 6352 { echo "$as_me:$LINENO: result: no" >&5 6353 echo "${ECHO_T}no" >&6; } 6354 fi 6355 6356 6357 6358 # Extract the first word of "Graphviz", so it can be a program name with args. 6359 set dummy Graphviz; ac_word=$2 6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6362 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6363 echo $ECHO_N "(cached) $ECHO_C" >&6 6364 else 6365 case $GRAPHVIZ in 6366 [\\/]* | ?:[\\/]*) 6367 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6368 ;; 6369 *) 6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6371 for as_dir in $PATH 6372 do 6373 IFS=$as_save_IFS 6374 test -z "$as_dir" && as_dir=. 6375 for ac_exec_ext in '' $ac_executable_extensions; do 6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6377 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6379 break 2 6380 fi 6381 done 6382 done 6383 IFS=$as_save_IFS 6384 6385 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6386 ;; 6387 esac 6388 fi 6389 GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6390 if test -n "$GRAPHVIZ"; then 6391 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6392 echo "${ECHO_T}$GRAPHVIZ" >&6; } 6393 else 6394 { echo "$as_me:$LINENO: result: no" >&5 6395 echo "${ECHO_T}no" >&6; } 6396 fi 6397 6398 6399 if test "$GRAPHVIZ" != "echo Graphviz" ; then 6400 6401 cat >>confdefs.h <<\_ACEOF 6402 #define HAVE_GRAPHVIZ 1 6403 _ACEOF 6404 6405 if test "$llvm_cv_os_type" = "MingW" ; then 6406 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6407 fi 6408 6409 cat >>confdefs.h <<_ACEOF 6410 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6411 _ACEOF 6412 6413 fi 6414 # Extract the first word of "dot", so it can be a program name with args. 6415 set dummy dot; ac_word=$2 6416 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6418 if test "${ac_cv_path_DOT+set}" = set; then 6419 echo $ECHO_N "(cached) $ECHO_C" >&6 6420 else 6421 case $DOT in 6422 [\\/]* | ?:[\\/]*) 6423 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6424 ;; 6425 *) 6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6427 for as_dir in $PATH 6428 do 6429 IFS=$as_save_IFS 6430 test -z "$as_dir" && as_dir=. 6431 for ac_exec_ext in '' $ac_executable_extensions; do 6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6433 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6435 break 2 6436 fi 6437 done 6438 done 6439 IFS=$as_save_IFS 6440 6441 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6442 ;; 6443 esac 6444 fi 6445 DOT=$ac_cv_path_DOT 6446 if test -n "$DOT"; then 6447 { echo "$as_me:$LINENO: result: $DOT" >&5 6448 echo "${ECHO_T}$DOT" >&6; } 6449 else 6450 { echo "$as_me:$LINENO: result: no" >&5 6451 echo "${ECHO_T}no" >&6; } 6452 fi 6453 6454 6455 if test "$DOT" != "echo dot" ; then 6456 6457 cat >>confdefs.h <<\_ACEOF 6458 #define HAVE_DOT 1 6459 _ACEOF 6460 6461 if test "$llvm_cv_os_type" = "MingW" ; then 6462 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6463 fi 6464 6465 cat >>confdefs.h <<_ACEOF 6466 #define LLVM_PATH_DOT "$DOT${EXEEXT}" 6467 _ACEOF 6468 6469 fi 6470 # Extract the first word of "fdp", so it can be a program name with args. 6471 set dummy fdp; ac_word=$2 6472 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6474 if test "${ac_cv_path_FDP+set}" = set; then 6475 echo $ECHO_N "(cached) $ECHO_C" >&6 6476 else 6477 case $FDP in 6478 [\\/]* | ?:[\\/]*) 6479 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6480 ;; 6481 *) 6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483 for as_dir in $PATH 6484 do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_exec_ext in '' $ac_executable_extensions; do 6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6489 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6491 break 2 6492 fi 6493 done 6494 done 6495 IFS=$as_save_IFS 6496 6497 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6498 ;; 6499 esac 6500 fi 6501 FDP=$ac_cv_path_FDP 6502 if test -n "$FDP"; then 6503 { echo "$as_me:$LINENO: result: $FDP" >&5 6504 echo "${ECHO_T}$FDP" >&6; } 6505 else 6506 { echo "$as_me:$LINENO: result: no" >&5 6507 echo "${ECHO_T}no" >&6; } 6508 fi 6509 6510 6511 if test "$FDP" != "echo fdp" ; then 6512 6513 cat >>confdefs.h <<\_ACEOF 6514 #define HAVE_FDP 1 6515 _ACEOF 6516 6517 if test "$llvm_cv_os_type" = "MingW" ; then 6518 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6519 fi 6520 6521 cat >>confdefs.h <<_ACEOF 6522 #define LLVM_PATH_FDP "$FDP${EXEEXT}" 6523 _ACEOF 6524 6525 fi 6526 # Extract the first word of "neato", so it can be a program name with args. 6527 set dummy neato; ac_word=$2 6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6530 if test "${ac_cv_path_NEATO+set}" = set; then 6531 echo $ECHO_N "(cached) $ECHO_C" >&6 6532 else 6533 case $NEATO in 6534 [\\/]* | ?:[\\/]*) 6535 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6536 ;; 6537 *) 6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6539 for as_dir in $PATH 6540 do 6541 IFS=$as_save_IFS 6542 test -z "$as_dir" && as_dir=. 6543 for ac_exec_ext in '' $ac_executable_extensions; do 6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6545 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6547 break 2 6548 fi 6549 done 6550 done 6551 IFS=$as_save_IFS 6552 6553 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6554 ;; 6555 esac 6556 fi 6557 NEATO=$ac_cv_path_NEATO 6558 if test -n "$NEATO"; then 6559 { echo "$as_me:$LINENO: result: $NEATO" >&5 6560 echo "${ECHO_T}$NEATO" >&6; } 6561 else 6562 { echo "$as_me:$LINENO: result: no" >&5 6563 echo "${ECHO_T}no" >&6; } 6564 fi 6565 6566 6567 if test "$NEATO" != "echo neato" ; then 6568 6569 cat >>confdefs.h <<\_ACEOF 6570 #define HAVE_NEATO 1 6571 _ACEOF 6572 6573 if test "$llvm_cv_os_type" = "MingW" ; then 6574 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6575 fi 6576 6577 cat >>confdefs.h <<_ACEOF 6578 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6579 _ACEOF 6580 6581 fi 6582 # Extract the first word of "twopi", so it can be a program name with args. 6583 set dummy twopi; ac_word=$2 6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6586 if test "${ac_cv_path_TWOPI+set}" = set; then 6587 echo $ECHO_N "(cached) $ECHO_C" >&6 6588 else 6589 case $TWOPI in 6590 [\\/]* | ?:[\\/]*) 6591 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6592 ;; 6593 *) 6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6595 for as_dir in $PATH 6596 do 6597 IFS=$as_save_IFS 6598 test -z "$as_dir" && as_dir=. 6599 for ac_exec_ext in '' $ac_executable_extensions; do 6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6601 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6603 break 2 6604 fi 6605 done 6606 done 6607 IFS=$as_save_IFS 6608 6609 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6610 ;; 6611 esac 6612 fi 6613 TWOPI=$ac_cv_path_TWOPI 6614 if test -n "$TWOPI"; then 6615 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6616 echo "${ECHO_T}$TWOPI" >&6; } 6617 else 6618 { echo "$as_me:$LINENO: result: no" >&5 6619 echo "${ECHO_T}no" >&6; } 6620 fi 6621 6622 6623 if test "$TWOPI" != "echo twopi" ; then 6624 6625 cat >>confdefs.h <<\_ACEOF 6626 #define HAVE_TWOPI 1 6627 _ACEOF 6628 6629 if test "$llvm_cv_os_type" = "MingW" ; then 6630 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6631 fi 6632 6633 cat >>confdefs.h <<_ACEOF 6634 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6635 _ACEOF 6636 6637 fi 6638 # Extract the first word of "circo", so it can be a program name with args. 6639 set dummy circo; ac_word=$2 6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6642 if test "${ac_cv_path_CIRCO+set}" = set; then 6643 echo $ECHO_N "(cached) $ECHO_C" >&6 6644 else 6645 case $CIRCO in 6646 [\\/]* | ?:[\\/]*) 6647 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6648 ;; 6649 *) 6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651 for as_dir in $PATH 6652 do 6653 IFS=$as_save_IFS 6654 test -z "$as_dir" && as_dir=. 6655 for ac_exec_ext in '' $ac_executable_extensions; do 6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6657 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6659 break 2 6660 fi 6661 done 6662 done 6663 IFS=$as_save_IFS 6664 6665 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 6666 ;; 6667 esac 6668 fi 6669 CIRCO=$ac_cv_path_CIRCO 6670 if test -n "$CIRCO"; then 6671 { echo "$as_me:$LINENO: result: $CIRCO" >&5 6672 echo "${ECHO_T}$CIRCO" >&6; } 6673 else 6674 { echo "$as_me:$LINENO: result: no" >&5 6675 echo "${ECHO_T}no" >&6; } 6676 fi 6677 6678 6679 if test "$CIRCO" != "echo circo" ; then 6680 6681 cat >>confdefs.h <<\_ACEOF 6682 #define HAVE_CIRCO 1 6683 _ACEOF 6684 6685 if test "$llvm_cv_os_type" = "MingW" ; then 6686 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6687 fi 6688 6689 cat >>confdefs.h <<_ACEOF 6690 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 6691 _ACEOF 6692 6693 fi 6694 for ac_prog in gv gsview32 6695 do 6696 # Extract the first word of "$ac_prog", so it can be a program name with args. 6697 set dummy $ac_prog; ac_word=$2 6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6700 if test "${ac_cv_path_GV+set}" = set; then 6701 echo $ECHO_N "(cached) $ECHO_C" >&6 6702 else 6703 case $GV in 6704 [\\/]* | ?:[\\/]*) 6705 ac_cv_path_GV="$GV" # Let the user override the test with a path. 6706 ;; 6707 *) 6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709 for as_dir in $PATH 6710 do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6715 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719 done 6720 done 6721 IFS=$as_save_IFS 6722 6723 ;; 6724 esac 6725 fi 6726 GV=$ac_cv_path_GV 6727 if test -n "$GV"; then 6728 { echo "$as_me:$LINENO: result: $GV" >&5 6729 echo "${ECHO_T}$GV" >&6; } 6730 else 6731 { echo "$as_me:$LINENO: result: no" >&5 6732 echo "${ECHO_T}no" >&6; } 6733 fi 6734 6735 6736 test -n "$GV" && break 6737 done 6738 test -n "$GV" || GV="echo gv" 6739 6740 if test "$GV" != "echo gv" ; then 6741 6742 cat >>confdefs.h <<\_ACEOF 6743 #define HAVE_GV 1 6744 _ACEOF 6745 6746 if test "$llvm_cv_os_type" = "MingW" ; then 6747 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6748 fi 6749 6750 cat >>confdefs.h <<_ACEOF 6751 #define LLVM_PATH_GV "$GV${EXEEXT}" 6752 _ACEOF 6753 6754 fi 6755 # Extract the first word of "dotty", so it can be a program name with args. 6756 set dummy dotty; ac_word=$2 6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6759 if test "${ac_cv_path_DOTTY+set}" = set; then 6760 echo $ECHO_N "(cached) $ECHO_C" >&6 6761 else 6762 case $DOTTY in 6763 [\\/]* | ?:[\\/]*) 6764 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 6765 ;; 6766 *) 6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6768 for as_dir in $PATH 6769 do 6770 IFS=$as_save_IFS 6771 test -z "$as_dir" && as_dir=. 6772 for ac_exec_ext in '' $ac_executable_extensions; do 6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6774 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6776 break 2 6777 fi 6778 done 6779 done 6780 IFS=$as_save_IFS 6781 6782 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 6783 ;; 6784 esac 6785 fi 6786 DOTTY=$ac_cv_path_DOTTY 6787 if test -n "$DOTTY"; then 6788 { echo "$as_me:$LINENO: result: $DOTTY" >&5 6789 echo "${ECHO_T}$DOTTY" >&6; } 6790 else 6791 { echo "$as_me:$LINENO: result: no" >&5 6792 echo "${ECHO_T}no" >&6; } 6793 fi 6794 6795 6796 if test "$DOTTY" != "echo dotty" ; then 6797 6798 cat >>confdefs.h <<\_ACEOF 6799 #define HAVE_DOTTY 1 6800 _ACEOF 6801 6802 if test "$llvm_cv_os_type" = "MingW" ; then 6803 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6804 fi 6805 6806 cat >>confdefs.h <<_ACEOF 6807 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 6808 _ACEOF 6809 6810 fi 6811 # Extract the first word of "xdot.py", so it can be a program name with args. 6812 set dummy xdot.py; ac_word=$2 6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6815 if test "${ac_cv_path_XDOT_PY+set}" = set; then 6816 echo $ECHO_N "(cached) $ECHO_C" >&6 6817 else 6818 case $XDOT_PY in 6819 [\\/]* | ?:[\\/]*) 6820 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 6821 ;; 6822 *) 6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6824 for as_dir in $PATH 6825 do 6826 IFS=$as_save_IFS 6827 test -z "$as_dir" && as_dir=. 6828 for ac_exec_ext in '' $ac_executable_extensions; do 6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6830 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6832 break 2 6833 fi 6834 done 6835 done 6836 IFS=$as_save_IFS 6837 6838 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 6839 ;; 6840 esac 6841 fi 6842 XDOT_PY=$ac_cv_path_XDOT_PY 6843 if test -n "$XDOT_PY"; then 6844 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 6845 echo "${ECHO_T}$XDOT_PY" >&6; } 6846 else 6847 { echo "$as_me:$LINENO: result: no" >&5 6848 echo "${ECHO_T}no" >&6; } 6849 fi 6850 6851 6852 if test "$XDOT_PY" != "echo xdot.py" ; then 6853 6854 cat >>confdefs.h <<\_ACEOF 6855 #define HAVE_XDOT_PY 1 6856 _ACEOF 6857 6858 if test "$llvm_cv_os_type" = "MingW" ; then 6859 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6860 fi 6861 6862 cat >>confdefs.h <<_ACEOF 6863 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 6864 _ACEOF 6865 6866 fi 6867 6868 # Find a good install program. We prefer a C program (faster), 6869 # so one script is as good as another. But avoid the broken or 6870 # incompatible versions: 6871 # SysV /etc/install, /usr/sbin/install 6872 # SunOS /usr/etc/install 6873 # IRIX /sbin/install 6874 # AIX /bin/install 6875 # AmigaOS /C/install, which installs bootblocks on floppy discs 6876 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6877 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 6878 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6879 # OS/2's system install, which has a completely different semantic 6880 # ./install, which can be erroneously created by make from ./install.sh. 6881 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6882 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 6883 if test -z "$INSTALL"; then 6884 if test "${ac_cv_path_install+set}" = set; then 6885 echo $ECHO_N "(cached) $ECHO_C" >&6 6886 else 6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6888 for as_dir in $PATH 6889 do 6890 IFS=$as_save_IFS 6891 test -z "$as_dir" && as_dir=. 6892 # Account for people who put trailing slashes in PATH elements. 6893 case $as_dir/ in 6894 ./ | .// | /cC/* | \ 6895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6896 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 6897 /usr/ucb/* ) ;; 6898 *) 6899 # OSF1 and SCO ODT 3.0 have their own names for install. 6900 # Don't use installbsd from OSF since it installs stuff as root 6901 # by default. 6902 for ac_prog in ginstall scoinst install; do 6903 for ac_exec_ext in '' $ac_executable_extensions; do 6904 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 6905 if test $ac_prog = install && 6906 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6907 # AIX install. It has an incompatible calling convention. 6908 : 6909 elif test $ac_prog = install && 6910 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6911 # program-specific install script used by HP pwplus--don't use. 6912 : 6913 else 6914 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6915 break 3 6916 fi 6917 fi 6918 done 6919 done 6920 ;; 6921 esac 6922 done 6923 IFS=$as_save_IFS 6924 6925 6926 fi 6927 if test "${ac_cv_path_install+set}" = set; then 6928 INSTALL=$ac_cv_path_install 6929 else 6930 # As a last resort, use the slow shell script. Don't cache a 6931 # value for INSTALL within a source directory, because that will 6932 # break other packages using the cache if that directory is 6933 # removed, or if the value is a relative name. 6934 INSTALL=$ac_install_sh 6935 fi 6936 fi 6937 { echo "$as_me:$LINENO: result: $INSTALL" >&5 6938 echo "${ECHO_T}$INSTALL" >&6; } 6939 6940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6941 # It thinks the first close brace ends the variable substitution. 6942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6943 6944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6945 6946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6947 6948 case "$INSTALL" in 6949 [\\/$]* | ?:[\\/]* ) ;; 6950 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 6951 esac 6952 6953 # Extract the first word of "bzip2", so it can be a program name with args. 6954 set dummy bzip2; ac_word=$2 6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6957 if test "${ac_cv_path_BZIP2+set}" = set; then 6958 echo $ECHO_N "(cached) $ECHO_C" >&6 6959 else 6960 case $BZIP2 in 6961 [\\/]* | ?:[\\/]*) 6962 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 6963 ;; 6964 *) 6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6966 for as_dir in $PATH 6967 do 6968 IFS=$as_save_IFS 6969 test -z "$as_dir" && as_dir=. 6970 for ac_exec_ext in '' $ac_executable_extensions; do 6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6972 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6974 break 2 6975 fi 6976 done 6977 done 6978 IFS=$as_save_IFS 6979 6980 ;; 6981 esac 6982 fi 6983 BZIP2=$ac_cv_path_BZIP2 6984 if test -n "$BZIP2"; then 6985 { echo "$as_me:$LINENO: result: $BZIP2" >&5 6986 echo "${ECHO_T}$BZIP2" >&6; } 6987 else 6988 { echo "$as_me:$LINENO: result: no" >&5 6989 echo "${ECHO_T}no" >&6; } 6990 fi 6991 6992 6993 # Extract the first word of "cat", so it can be a program name with args. 6994 set dummy cat; ac_word=$2 6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6997 if test "${ac_cv_path_CAT+set}" = set; then 6998 echo $ECHO_N "(cached) $ECHO_C" >&6 6999 else 7000 case $CAT in 7001 [\\/]* | ?:[\\/]*) 7002 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7003 ;; 7004 *) 7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7006 for as_dir in $PATH 7007 do 7008 IFS=$as_save_IFS 7009 test -z "$as_dir" && as_dir=. 7010 for ac_exec_ext in '' $ac_executable_extensions; do 7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7012 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7014 break 2 7015 fi 7016 done 7017 done 7018 IFS=$as_save_IFS 7019 7020 ;; 7021 esac 7022 fi 7023 CAT=$ac_cv_path_CAT 7024 if test -n "$CAT"; then 7025 { echo "$as_me:$LINENO: result: $CAT" >&5 7026 echo "${ECHO_T}$CAT" >&6; } 7027 else 7028 { echo "$as_me:$LINENO: result: no" >&5 7029 echo "${ECHO_T}no" >&6; } 7030 fi 7031 7032 7033 # Extract the first word of "doxygen", so it can be a program name with args. 7034 set dummy doxygen; ac_word=$2 7035 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7037 if test "${ac_cv_path_DOXYGEN+set}" = set; then 7038 echo $ECHO_N "(cached) $ECHO_C" >&6 7039 else 7040 case $DOXYGEN in 7041 [\\/]* | ?:[\\/]*) 7042 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7043 ;; 7044 *) 7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7046 for as_dir in $PATH 7047 do 7048 IFS=$as_save_IFS 7049 test -z "$as_dir" && as_dir=. 7050 for ac_exec_ext in '' $ac_executable_extensions; do 7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7052 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7054 break 2 7055 fi 7056 done 7057 done 7058 IFS=$as_save_IFS 7059 7060 ;; 7061 esac 7062 fi 7063 DOXYGEN=$ac_cv_path_DOXYGEN 7064 if test -n "$DOXYGEN"; then 7065 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7066 echo "${ECHO_T}$DOXYGEN" >&6; } 7067 else 7068 { echo "$as_me:$LINENO: result: no" >&5 7069 echo "${ECHO_T}no" >&6; } 7070 fi 7071 7072 7073 # Extract the first word of "groff", so it can be a program name with args. 7074 set dummy groff; ac_word=$2 7075 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7077 if test "${ac_cv_path_GROFF+set}" = set; then 7078 echo $ECHO_N "(cached) $ECHO_C" >&6 7079 else 7080 case $GROFF in 7081 [\\/]* | ?:[\\/]*) 7082 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7083 ;; 7084 *) 7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7086 for as_dir in $PATH 7087 do 7088 IFS=$as_save_IFS 7089 test -z "$as_dir" && as_dir=. 7090 for ac_exec_ext in '' $ac_executable_extensions; do 7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7092 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7094 break 2 7095 fi 7096 done 7097 done 7098 IFS=$as_save_IFS 7099 7100 ;; 7101 esac 7102 fi 7103 GROFF=$ac_cv_path_GROFF 7104 if test -n "$GROFF"; then 7105 { echo "$as_me:$LINENO: result: $GROFF" >&5 7106 echo "${ECHO_T}$GROFF" >&6; } 7107 else 7108 { echo "$as_me:$LINENO: result: no" >&5 7109 echo "${ECHO_T}no" >&6; } 7110 fi 7111 7112 7113 # Extract the first word of "gzip", so it can be a program name with args. 7114 set dummy gzip; ac_word=$2 7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7117 if test "${ac_cv_path_GZIPBIN+set}" = set; then 7118 echo $ECHO_N "(cached) $ECHO_C" >&6 7119 else 7120 case $GZIPBIN in 7121 [\\/]* | ?:[\\/]*) 7122 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7123 ;; 7124 *) 7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7126 for as_dir in $PATH 7127 do 7128 IFS=$as_save_IFS 7129 test -z "$as_dir" && as_dir=. 7130 for ac_exec_ext in '' $ac_executable_extensions; do 7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7132 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7134 break 2 7135 fi 7136 done 7137 done 7138 IFS=$as_save_IFS 7139 7140 ;; 7141 esac 7142 fi 7143 GZIPBIN=$ac_cv_path_GZIPBIN 7144 if test -n "$GZIPBIN"; then 7145 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7146 echo "${ECHO_T}$GZIPBIN" >&6; } 7147 else 7148 { echo "$as_me:$LINENO: result: no" >&5 7149 echo "${ECHO_T}no" >&6; } 7150 fi 7151 7152 7153 # Extract the first word of "pod2html", so it can be a program name with args. 7154 set dummy pod2html; ac_word=$2 7155 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7157 if test "${ac_cv_path_POD2HTML+set}" = set; then 7158 echo $ECHO_N "(cached) $ECHO_C" >&6 7159 else 7160 case $POD2HTML in 7161 [\\/]* | ?:[\\/]*) 7162 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 7163 ;; 7164 *) 7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7166 for as_dir in $PATH 7167 do 7168 IFS=$as_save_IFS 7169 test -z "$as_dir" && as_dir=. 7170 for ac_exec_ext in '' $ac_executable_extensions; do 7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7172 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7174 break 2 7175 fi 7176 done 7177 done 7178 IFS=$as_save_IFS 7179 7180 ;; 7181 esac 7182 fi 7183 POD2HTML=$ac_cv_path_POD2HTML 7184 if test -n "$POD2HTML"; then 7185 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 7186 echo "${ECHO_T}$POD2HTML" >&6; } 7187 else 7188 { echo "$as_me:$LINENO: result: no" >&5 7189 echo "${ECHO_T}no" >&6; } 7190 fi 7191 7192 7193 # Extract the first word of "pod2man", so it can be a program name with args. 7194 set dummy pod2man; ac_word=$2 7195 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7197 if test "${ac_cv_path_POD2MAN+set}" = set; then 7198 echo $ECHO_N "(cached) $ECHO_C" >&6 7199 else 7200 case $POD2MAN in 7201 [\\/]* | ?:[\\/]*) 7202 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 7203 ;; 7204 *) 7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7206 for as_dir in $PATH 7207 do 7208 IFS=$as_save_IFS 7209 test -z "$as_dir" && as_dir=. 7210 for ac_exec_ext in '' $ac_executable_extensions; do 7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7212 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7214 break 2 7215 fi 7216 done 7217 done 7218 IFS=$as_save_IFS 7219 7220 ;; 7221 esac 7222 fi 7223 POD2MAN=$ac_cv_path_POD2MAN 7224 if test -n "$POD2MAN"; then 7225 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 7226 echo "${ECHO_T}$POD2MAN" >&6; } 7227 else 7228 { echo "$as_me:$LINENO: result: no" >&5 7229 echo "${ECHO_T}no" >&6; } 7230 fi 7231 7232 7233 # Extract the first word of "pdfroff", so it can be a program name with args. 7234 set dummy pdfroff; ac_word=$2 7235 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7237 if test "${ac_cv_path_PDFROFF+set}" = set; then 7238 echo $ECHO_N "(cached) $ECHO_C" >&6 7239 else 7240 case $PDFROFF in 7241 [\\/]* | ?:[\\/]*) 7242 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7243 ;; 7244 *) 7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7246 for as_dir in $PATH 7247 do 7248 IFS=$as_save_IFS 7249 test -z "$as_dir" && as_dir=. 7250 for ac_exec_ext in '' $ac_executable_extensions; do 7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7252 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7254 break 2 7255 fi 7256 done 7257 done 7258 IFS=$as_save_IFS 7259 7260 ;; 7261 esac 7262 fi 7263 PDFROFF=$ac_cv_path_PDFROFF 7264 if test -n "$PDFROFF"; then 7265 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7266 echo "${ECHO_T}$PDFROFF" >&6; } 7267 else 7268 { echo "$as_me:$LINENO: result: no" >&5 7269 echo "${ECHO_T}no" >&6; } 7270 fi 7271 7272 7273 # Extract the first word of "runtest", so it can be a program name with args. 7274 set dummy runtest; ac_word=$2 7275 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7277 if test "${ac_cv_path_RUNTEST+set}" = set; then 7278 echo $ECHO_N "(cached) $ECHO_C" >&6 7279 else 7280 case $RUNTEST in 7281 [\\/]* | ?:[\\/]*) 7282 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 7283 ;; 7284 *) 7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7286 for as_dir in $PATH 7287 do 7288 IFS=$as_save_IFS 7289 test -z "$as_dir" && as_dir=. 7290 for ac_exec_ext in '' $ac_executable_extensions; do 7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7292 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7294 break 2 7295 fi 7296 done 7297 done 7298 IFS=$as_save_IFS 7299 7300 ;; 7301 esac 7302 fi 7303 RUNTEST=$ac_cv_path_RUNTEST 7304 if test -n "$RUNTEST"; then 7305 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 7306 echo "${ECHO_T}$RUNTEST" >&6; } 7307 else 7308 { echo "$as_me:$LINENO: result: no" >&5 7309 echo "${ECHO_T}no" >&6; } 7310 fi 7311 7312 7313 7314 no_itcl=true 7315 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 7316 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 7317 7318 # Check whether --with-tclinclude was given. 7319 if test "${with_tclinclude+set}" = set; then 7320 withval=$with_tclinclude; with_tclinclude=${withval} 7321 else 7322 with_tclinclude='' 7323 fi 7324 7325 if test "${ac_cv_path_tclsh+set}" = set; then 7326 echo $ECHO_N "(cached) $ECHO_C" >&6 7327 else 7328 7329 if test x"${with_tclinclude}" != x ; then 7330 if test -f ${with_tclinclude}/tclsh ; then 7331 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 7332 elif test -f ${with_tclinclude}/src/tclsh ; then 7333 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 7334 else 7335 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 7336 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 7337 { (exit 1); exit 1; }; } 7338 fi 7339 fi 7340 fi 7341 7342 7343 if test x"${ac_cv_path_tclsh}" = x ; then 7344 { echo "$as_me:$LINENO: result: none" >&5 7345 echo "${ECHO_T}none" >&6; } 7346 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh 7347 do 7348 # Extract the first word of "$ac_prog", so it can be a program name with args. 7349 set dummy $ac_prog; ac_word=$2 7350 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7352 if test "${ac_cv_path_TCLSH+set}" = set; then 7353 echo $ECHO_N "(cached) $ECHO_C" >&6 7354 else 7355 case $TCLSH in 7356 [\\/]* | ?:[\\/]*) 7357 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 7358 ;; 7359 *) 7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7361 for as_dir in $PATH 7362 do 7363 IFS=$as_save_IFS 7364 test -z "$as_dir" && as_dir=. 7365 for ac_exec_ext in '' $ac_executable_extensions; do 7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7367 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7369 break 2 7370 fi 7371 done 7372 done 7373 IFS=$as_save_IFS 7374 7375 ;; 7376 esac 7377 fi 7378 TCLSH=$ac_cv_path_TCLSH 7379 if test -n "$TCLSH"; then 7380 { echo "$as_me:$LINENO: result: $TCLSH" >&5 7381 echo "${ECHO_T}$TCLSH" >&6; } 7382 else 7383 { echo "$as_me:$LINENO: result: no" >&5 7384 echo "${ECHO_T}no" >&6; } 7385 fi 7386 7387 7388 test -n "$TCLSH" && break 7389 done 7390 7391 if test x"${TCLSH}" = x ; then 7392 ac_cv_path_tclsh=''; 7393 else 7394 ac_cv_path_tclsh="${TCLSH}"; 7395 fi 7396 else 7397 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 7398 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 7399 TCLSH="${ac_cv_path_tclsh}" 7400 7401 fi 7402 7403 # Extract the first word of "zip", so it can be a program name with args. 7404 set dummy zip; ac_word=$2 7405 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7407 if test "${ac_cv_path_ZIP+set}" = set; then 7408 echo $ECHO_N "(cached) $ECHO_C" >&6 7409 else 7410 case $ZIP in 7411 [\\/]* | ?:[\\/]*) 7412 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7413 ;; 7414 *) 7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7416 for as_dir in $PATH 7417 do 7418 IFS=$as_save_IFS 7419 test -z "$as_dir" && as_dir=. 7420 for ac_exec_ext in '' $ac_executable_extensions; do 7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7422 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7424 break 2 7425 fi 7426 done 7427 done 7428 IFS=$as_save_IFS 7429 7430 ;; 7431 esac 7432 fi 7433 ZIP=$ac_cv_path_ZIP 7434 if test -n "$ZIP"; then 7435 { echo "$as_me:$LINENO: result: $ZIP" >&5 7436 echo "${ECHO_T}$ZIP" >&6; } 7437 else 7438 { echo "$as_me:$LINENO: result: no" >&5 7439 echo "${ECHO_T}no" >&6; } 7440 fi 7441 7442 7443 for ac_prog in ocamlc 7444 do 7445 # Extract the first word of "$ac_prog", so it can be a program name with args. 7446 set dummy $ac_prog; ac_word=$2 7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7449 if test "${ac_cv_path_OCAMLC+set}" = set; then 7450 echo $ECHO_N "(cached) $ECHO_C" >&6 7451 else 7452 case $OCAMLC in 7453 [\\/]* | ?:[\\/]*) 7454 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7455 ;; 7456 *) 7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7458 for as_dir in $PATH 7459 do 7460 IFS=$as_save_IFS 7461 test -z "$as_dir" && as_dir=. 7462 for ac_exec_ext in '' $ac_executable_extensions; do 7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7464 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7466 break 2 7467 fi 7468 done 7469 done 7470 IFS=$as_save_IFS 7471 7472 ;; 7473 esac 7474 fi 7475 OCAMLC=$ac_cv_path_OCAMLC 7476 if test -n "$OCAMLC"; then 7477 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7478 echo "${ECHO_T}$OCAMLC" >&6; } 7479 else 7480 { echo "$as_me:$LINENO: result: no" >&5 7481 echo "${ECHO_T}no" >&6; } 7482 fi 7483 7484 7485 test -n "$OCAMLC" && break 7486 done 7487 7488 for ac_prog in ocamlopt 7489 do 7490 # Extract the first word of "$ac_prog", so it can be a program name with args. 7491 set dummy $ac_prog; ac_word=$2 7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7494 if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7495 echo $ECHO_N "(cached) $ECHO_C" >&6 7496 else 7497 case $OCAMLOPT in 7498 [\\/]* | ?:[\\/]*) 7499 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7500 ;; 7501 *) 7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7503 for as_dir in $PATH 7504 do 7505 IFS=$as_save_IFS 7506 test -z "$as_dir" && as_dir=. 7507 for ac_exec_ext in '' $ac_executable_extensions; do 7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7509 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7511 break 2 7512 fi 7513 done 7514 done 7515 IFS=$as_save_IFS 7516 7517 ;; 7518 esac 7519 fi 7520 OCAMLOPT=$ac_cv_path_OCAMLOPT 7521 if test -n "$OCAMLOPT"; then 7522 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7523 echo "${ECHO_T}$OCAMLOPT" >&6; } 7524 else 7525 { echo "$as_me:$LINENO: result: no" >&5 7526 echo "${ECHO_T}no" >&6; } 7527 fi 7528 7529 7530 test -n "$OCAMLOPT" && break 7531 done 7532 7533 for ac_prog in ocamldep 7534 do 7535 # Extract the first word of "$ac_prog", so it can be a program name with args. 7536 set dummy $ac_prog; ac_word=$2 7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7539 if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7540 echo $ECHO_N "(cached) $ECHO_C" >&6 7541 else 7542 case $OCAMLDEP in 7543 [\\/]* | ?:[\\/]*) 7544 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7545 ;; 7546 *) 7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7548 for as_dir in $PATH 7549 do 7550 IFS=$as_save_IFS 7551 test -z "$as_dir" && as_dir=. 7552 for ac_exec_ext in '' $ac_executable_extensions; do 7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7554 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7556 break 2 7557 fi 7558 done 7559 done 7560 IFS=$as_save_IFS 7561 7562 ;; 7563 esac 7564 fi 7565 OCAMLDEP=$ac_cv_path_OCAMLDEP 7566 if test -n "$OCAMLDEP"; then 7567 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7568 echo "${ECHO_T}$OCAMLDEP" >&6; } 7569 else 7570 { echo "$as_me:$LINENO: result: no" >&5 7571 echo "${ECHO_T}no" >&6; } 7572 fi 7573 7574 7575 test -n "$OCAMLDEP" && break 7576 done 7577 7578 for ac_prog in ocamldoc 7579 do 7580 # Extract the first word of "$ac_prog", so it can be a program name with args. 7581 set dummy $ac_prog; ac_word=$2 7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7584 if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7585 echo $ECHO_N "(cached) $ECHO_C" >&6 7586 else 7587 case $OCAMLDOC in 7588 [\\/]* | ?:[\\/]*) 7589 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7590 ;; 7591 *) 7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7593 for as_dir in $PATH 7594 do 7595 IFS=$as_save_IFS 7596 test -z "$as_dir" && as_dir=. 7597 for ac_exec_ext in '' $ac_executable_extensions; do 7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7599 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7601 break 2 7602 fi 7603 done 7604 done 7605 IFS=$as_save_IFS 7606 7607 ;; 7608 esac 7609 fi 7610 OCAMLDOC=$ac_cv_path_OCAMLDOC 7611 if test -n "$OCAMLDOC"; then 7612 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7613 echo "${ECHO_T}$OCAMLDOC" >&6; } 7614 else 7615 { echo "$as_me:$LINENO: result: no" >&5 7616 echo "${ECHO_T}no" >&6; } 7617 fi 7618 7619 7620 test -n "$OCAMLDOC" && break 7621 done 7622 7623 for ac_prog in gas as 7624 do 7625 # Extract the first word of "$ac_prog", so it can be a program name with args. 7626 set dummy $ac_prog; ac_word=$2 7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7629 if test "${ac_cv_path_GAS+set}" = set; then 7630 echo $ECHO_N "(cached) $ECHO_C" >&6 7631 else 7632 case $GAS in 7633 [\\/]* | ?:[\\/]*) 7634 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7635 ;; 7636 *) 7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7638 for as_dir in $PATH 7639 do 7640 IFS=$as_save_IFS 7641 test -z "$as_dir" && as_dir=. 7642 for ac_exec_ext in '' $ac_executable_extensions; do 7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7644 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7646 break 2 7647 fi 7648 done 7649 done 7650 IFS=$as_save_IFS 7651 7652 ;; 7653 esac 7654 fi 7655 GAS=$ac_cv_path_GAS 7656 if test -n "$GAS"; then 7657 { echo "$as_me:$LINENO: result: $GAS" >&5 7658 echo "${ECHO_T}$GAS" >&6; } 7659 else 7660 { echo "$as_me:$LINENO: result: no" >&5 7661 echo "${ECHO_T}no" >&6; } 7662 fi 7663 7664 7665 test -n "$GAS" && break 7666 done 7667 7668 7669 { echo "$as_me:$LINENO: checking for linker version" >&5 7670 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7671 if test "${llvm_cv_link_version+set}" = set; then 7672 echo $ECHO_N "(cached) $ECHO_C" >&6 7673 else 7674 7675 version_string="$(ld -v 2>&1 | head -1)" 7676 7677 # Check for ld64. 7678 if (echo "$version_string" | grep -q "ld64"); then 7679 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7680 else 7681 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7682 fi 7683 7684 fi 7685 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7686 echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7687 7688 cat >>confdefs.h <<_ACEOF 7689 #define HOST_LINK_VERSION "$llvm_cv_link_version" 7690 _ACEOF 7691 7692 7693 7694 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7695 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7696 if test "${llvm_cv_link_use_r+set}" = set; then 7697 echo $ECHO_N "(cached) $ECHO_C" >&6 7698 else 7699 ac_ext=c 7700 ac_cpp='$CPP $CPPFLAGS' 7701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7703 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7704 7705 oldcflags="$CFLAGS" 7706 CFLAGS="$CFLAGS -Wl,-R." 7707 cat >conftest.$ac_ext <<_ACEOF 7708 /* confdefs.h. */ 7709 _ACEOF 7710 cat confdefs.h >>conftest.$ac_ext 7711 cat >>conftest.$ac_ext <<_ACEOF 7712 /* end confdefs.h. */ 7713 7714 int 7715 main () 7716 { 7717 7718 ; 7719 return 0; 7720 } 7721 _ACEOF 7722 rm -f conftest.$ac_objext conftest$ac_exeext 7723 if { (ac_try="$ac_link" 7724 case "(($ac_try" in 7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7726 *) ac_try_echo=$ac_try;; 7727 esac 7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7729 (eval "$ac_link") 2>conftest.er1 7730 ac_status=$? 7731 grep -v '^ *+' conftest.er1 >conftest.err 7732 rm -f conftest.er1 7733 cat conftest.err >&5 7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7735 (exit $ac_status); } && 7736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7737 { (case "(($ac_try" in 7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7739 *) ac_try_echo=$ac_try;; 7740 esac 7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7742 (eval "$ac_try") 2>&5 7743 ac_status=$? 7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7745 (exit $ac_status); }; } && 7746 { ac_try='test -s conftest$ac_exeext' 7747 { (case "(($ac_try" in 7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7749 *) ac_try_echo=$ac_try;; 7750 esac 7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7752 (eval "$ac_try") 2>&5 7753 ac_status=$? 7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7755 (exit $ac_status); }; }; then 7756 llvm_cv_link_use_r=yes 7757 else 7758 echo "$as_me: failed program was:" >&5 7759 sed 's/^/| /' conftest.$ac_ext >&5 7760 7761 llvm_cv_link_use_r=no 7762 fi 7763 7764 rm -f core conftest.err conftest.$ac_objext \ 7765 conftest$ac_exeext conftest.$ac_ext 7766 CFLAGS="$oldcflags" 7767 ac_ext=c 7768 ac_cpp='$CPP $CPPFLAGS' 7769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7771 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7772 7773 7774 fi 7775 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7776 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7777 if test "$llvm_cv_link_use_r" = yes ; then 7778 7779 cat >>confdefs.h <<\_ACEOF 7780 #define HAVE_LINK_R 1 7781 _ACEOF 7782 7783 fi 7784 7785 7786 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5 7787 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; } 7788 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7789 echo $ECHO_N "(cached) $ECHO_C" >&6 7790 else 7791 ac_ext=c 7792 ac_cpp='$CPP $CPPFLAGS' 7793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7795 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7796 7797 oldcflags="$CFLAGS" 7798 CFLAGS="$CFLAGS -rdynamic" 7799 cat >conftest.$ac_ext <<_ACEOF 7800 /* confdefs.h. */ 7801 _ACEOF 7802 cat confdefs.h >>conftest.$ac_ext 7803 cat >>conftest.$ac_ext <<_ACEOF 7804 /* end confdefs.h. */ 7805 7806 int 7807 main () 7808 { 7809 7810 ; 7811 return 0; 7812 } 7813 _ACEOF 7814 rm -f conftest.$ac_objext conftest$ac_exeext 7815 if { (ac_try="$ac_link" 7816 case "(($ac_try" in 7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7818 *) ac_try_echo=$ac_try;; 7819 esac 7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7821 (eval "$ac_link") 2>conftest.er1 7822 ac_status=$? 7823 grep -v '^ *+' conftest.er1 >conftest.err 7824 rm -f conftest.er1 7825 cat conftest.err >&5 7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7827 (exit $ac_status); } && 7828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7829 { (case "(($ac_try" in 7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7831 *) ac_try_echo=$ac_try;; 7832 esac 7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7834 (eval "$ac_try") 2>&5 7835 ac_status=$? 7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 (exit $ac_status); }; } && 7838 { ac_try='test -s conftest$ac_exeext' 7839 { (case "(($ac_try" in 7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7841 *) ac_try_echo=$ac_try;; 7842 esac 7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7844 (eval "$ac_try") 2>&5 7845 ac_status=$? 7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7847 (exit $ac_status); }; }; then 7848 llvm_cv_link_use_export_dynamic=yes 7849 else 7850 echo "$as_me: failed program was:" >&5 7851 sed 's/^/| /' conftest.$ac_ext >&5 7852 7853 llvm_cv_link_use_export_dynamic=no 7854 fi 7855 7856 rm -f core conftest.err conftest.$ac_objext \ 7857 conftest$ac_exeext conftest.$ac_ext 7858 CFLAGS="$oldcflags" 7859 ac_ext=c 7860 ac_cpp='$CPP $CPPFLAGS' 7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7864 7865 7866 fi 7867 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 7868 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 7869 if test "$llvm_cv_link_use_export_dynamic" = yes ; then 7870 7871 cat >>confdefs.h <<\_ACEOF 7872 #define HAVE_LINK_EXPORT_DYNAMIC 1 7873 _ACEOF 7874 7875 fi 7876 7877 7878 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 7879 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 7880 if test "${llvm_cv_link_use_version_script+set}" = set; then 7881 echo $ECHO_N "(cached) $ECHO_C" >&6 7882 else 7883 ac_ext=c 7884 ac_cpp='$CPP $CPPFLAGS' 7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7888 7889 oldcflags="$CFLAGS" 7890 7891 # The following code is from the autoconf manual, 7892 # "11.13: Limitations of Usual Tools". 7893 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7894 # Use mktemp if possible; otherwise fall back on mkdir, 7895 # with $RANDOM to make collisions less likely. 7896 : ${TMPDIR=/tmp} 7897 { 7898 tmp=` 7899 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7900 ` && 7901 test -n "$tmp" && test -d "$tmp" 7902 } || { 7903 tmp=$TMPDIR/foo$$-$RANDOM 7904 (umask 077 && mkdir "$tmp") 7905 } || exit $? 7906 7907 echo "{" > "$tmp/export.map" 7908 echo " global: main;" >> "$tmp/export.map" 7909 echo " local: *;" >> "$tmp/export.map" 7910 echo "};" >> "$tmp/export.map" 7911 7912 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7913 cat >conftest.$ac_ext <<_ACEOF 7914 /* confdefs.h. */ 7915 _ACEOF 7916 cat confdefs.h >>conftest.$ac_ext 7917 cat >>conftest.$ac_ext <<_ACEOF 7918 /* end confdefs.h. */ 7919 7920 int 7921 main () 7922 { 7923 7924 ; 7925 return 0; 7926 } 7927 _ACEOF 7928 rm -f conftest.$ac_objext conftest$ac_exeext 7929 if { (ac_try="$ac_link" 7930 case "(($ac_try" in 7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7932 *) ac_try_echo=$ac_try;; 7933 esac 7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7935 (eval "$ac_link") 2>conftest.er1 7936 ac_status=$? 7937 grep -v '^ *+' conftest.er1 >conftest.err 7938 rm -f conftest.er1 7939 cat conftest.err >&5 7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7941 (exit $ac_status); } && 7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7943 { (case "(($ac_try" in 7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7945 *) ac_try_echo=$ac_try;; 7946 esac 7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7948 (eval "$ac_try") 2>&5 7949 ac_status=$? 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7951 (exit $ac_status); }; } && 7952 { ac_try='test -s conftest$ac_exeext' 7953 { (case "(($ac_try" in 7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7955 *) ac_try_echo=$ac_try;; 7956 esac 7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7958 (eval "$ac_try") 2>&5 7959 ac_status=$? 7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7961 (exit $ac_status); }; }; then 7962 llvm_cv_link_use_version_script=yes 7963 else 7964 echo "$as_me: failed program was:" >&5 7965 sed 's/^/| /' conftest.$ac_ext >&5 7966 7967 llvm_cv_link_use_version_script=no 7968 fi 7969 7970 rm -f core conftest.err conftest.$ac_objext \ 7971 conftest$ac_exeext conftest.$ac_ext 7972 rm "$tmp/export.map" 7973 rmdir "$tmp" 7974 CFLAGS="$oldcflags" 7975 ac_ext=c 7976 ac_cpp='$CPP $CPPFLAGS' 7977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7979 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7980 7981 7982 fi 7983 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 7984 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 7985 if test "$llvm_cv_link_use_version_script" = yes ; then 7986 HAVE_LINK_VERSION_SCRIPT=1 7987 7988 fi 7989 7990 7991 7992 7993 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7994 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 7995 if test "${ac_cv_c_const+set}" = set; then 7996 echo $ECHO_N "(cached) $ECHO_C" >&6 7997 else 7998 cat >conftest.$ac_ext <<_ACEOF 7999 /* confdefs.h. */ 8000 _ACEOF 8001 cat confdefs.h >>conftest.$ac_ext 8002 cat >>conftest.$ac_ext <<_ACEOF 8003 /* end confdefs.h. */ 8004 8005 int 8006 main () 8007 { 8008 /* FIXME: Include the comments suggested by Paul. */ 8009 #ifndef __cplusplus 8010 /* Ultrix mips cc rejects this. */ 8011 typedef int charset[2]; 8012 const charset x; 8013 /* SunOS 4.1.1 cc rejects this. */ 8014 char const *const *ccp; 8015 char **p; 8016 /* NEC SVR4.0.2 mips cc rejects this. */ 8017 struct point {int x, y;}; 8018 static struct point const zero = {0,0}; 8019 /* AIX XL C 1.02.0.0 rejects this. 8020 It does not let you subtract one const X* pointer from another in 8021 an arm of an if-expression whose if-part is not a constant 8022 expression */ 8023 const char *g = "string"; 8024 ccp = &g + (g ? g-g : 0); 8025 /* HPUX 7.0 cc rejects these. */ 8026 ++ccp; 8027 p = (char**) ccp; 8028 ccp = (char const *const *) p; 8029 { /* SCO 3.2v4 cc rejects this. */ 8030 char *t; 8031 char const *s = 0 ? (char *) 0 : (char const *) 0; 8032 8033 *t++ = 0; 8034 if (s) return 0; 8035 } 8036 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8037 int x[] = {25, 17}; 8038 const int *foo = &x[0]; 8039 ++foo; 8040 } 8041 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8042 typedef const int *iptr; 8043 iptr p = 0; 8044 ++p; 8045 } 8046 { /* AIX XL C 1.02.0.0 rejects this saying 8047 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8048 struct s { int j; const int *ap[3]; }; 8049 struct s *b; b->j = 5; 8050 } 8051 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8052 const int foo = 10; 8053 if (!foo) return 0; 8054 } 8055 return !x[0] && !zero.x; 8056 #endif 8057 8058 ; 8059 return 0; 8060 } 8061 _ACEOF 8062 rm -f conftest.$ac_objext 8063 if { (ac_try="$ac_compile" 8064 case "(($ac_try" in 8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8066 *) ac_try_echo=$ac_try;; 8067 esac 8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8069 (eval "$ac_compile") 2>conftest.er1 8070 ac_status=$? 8071 grep -v '^ *+' conftest.er1 >conftest.err 8072 rm -f conftest.er1 8073 cat conftest.err >&5 8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8075 (exit $ac_status); } && 8076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8077 { (case "(($ac_try" in 8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8079 *) ac_try_echo=$ac_try;; 8080 esac 8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8082 (eval "$ac_try") 2>&5 8083 ac_status=$? 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8085 (exit $ac_status); }; } && 8086 { ac_try='test -s conftest.$ac_objext' 8087 { (case "(($ac_try" in 8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8089 *) ac_try_echo=$ac_try;; 8090 esac 8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8092 (eval "$ac_try") 2>&5 8093 ac_status=$? 8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8095 (exit $ac_status); }; }; then 8096 ac_cv_c_const=yes 8097 else 8098 echo "$as_me: failed program was:" >&5 8099 sed 's/^/| /' conftest.$ac_ext >&5 8100 8101 ac_cv_c_const=no 8102 fi 8103 8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8105 fi 8106 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8107 echo "${ECHO_T}$ac_cv_c_const" >&6; } 8108 if test $ac_cv_c_const = no; then 8109 8110 cat >>confdefs.h <<\_ACEOF 8111 #define const 8112 _ACEOF 8113 8114 fi 8115 8116 8117 8118 8119 8120 8121 ac_header_dirent=no 8122 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8123 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8124 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8125 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8127 echo $ECHO_N "(cached) $ECHO_C" >&6 8128 else 8129 cat >conftest.$ac_ext <<_ACEOF 8130 /* confdefs.h. */ 8131 _ACEOF 8132 cat confdefs.h >>conftest.$ac_ext 8133 cat >>conftest.$ac_ext <<_ACEOF 8134 /* end confdefs.h. */ 8135 #include <sys/types.h> 8136 #include <$ac_hdr> 8137 8138 int 8139 main () 8140 { 8141 if ((DIR *) 0) 8142 return 0; 8143 ; 8144 return 0; 8145 } 8146 _ACEOF 8147 rm -f conftest.$ac_objext 8148 if { (ac_try="$ac_compile" 8149 case "(($ac_try" in 8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8151 *) ac_try_echo=$ac_try;; 8152 esac 8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8154 (eval "$ac_compile") 2>conftest.er1 8155 ac_status=$? 8156 grep -v '^ *+' conftest.er1 >conftest.err 8157 rm -f conftest.er1 8158 cat conftest.err >&5 8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8160 (exit $ac_status); } && 8161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8162 { (case "(($ac_try" in 8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8164 *) ac_try_echo=$ac_try;; 8165 esac 8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8167 (eval "$ac_try") 2>&5 8168 ac_status=$? 8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8170 (exit $ac_status); }; } && 8171 { ac_try='test -s conftest.$ac_objext' 8172 { (case "(($ac_try" in 8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8174 *) ac_try_echo=$ac_try;; 8175 esac 8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8177 (eval "$ac_try") 2>&5 8178 ac_status=$? 8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8180 (exit $ac_status); }; }; then 8181 eval "$as_ac_Header=yes" 8182 else 8183 echo "$as_me: failed program was:" >&5 8184 sed 's/^/| /' conftest.$ac_ext >&5 8185 8186 eval "$as_ac_Header=no" 8187 fi 8188 8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8190 fi 8191 ac_res=`eval echo '${'$as_ac_Header'}'` 8192 { echo "$as_me:$LINENO: result: $ac_res" >&5 8193 echo "${ECHO_T}$ac_res" >&6; } 8194 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8195 cat >>confdefs.h <<_ACEOF 8196 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8197 _ACEOF 8198 8199 ac_header_dirent=$ac_hdr; break 8200 fi 8201 8202 done 8203 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8204 if test $ac_header_dirent = dirent.h; then 8205 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8206 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8207 if test "${ac_cv_search_opendir+set}" = set; then 8208 echo $ECHO_N "(cached) $ECHO_C" >&6 8209 else 8210 ac_func_search_save_LIBS=$LIBS 8211 cat >conftest.$ac_ext <<_ACEOF 8212 /* confdefs.h. */ 8213 _ACEOF 8214 cat confdefs.h >>conftest.$ac_ext 8215 cat >>conftest.$ac_ext <<_ACEOF 8216 /* end confdefs.h. */ 8217 8218 /* Override any GCC internal prototype to avoid an error. 8219 Use char because int might match the return type of a GCC 8220 builtin and then its argument prototype would still apply. */ 8221 #ifdef __cplusplus 8222 extern "C" 8223 #endif 8224 char opendir (); 8225 int 8226 main () 8227 { 8228 return opendir (); 8229 ; 8230 return 0; 8231 } 8232 _ACEOF 8233 for ac_lib in '' dir; do 8234 if test -z "$ac_lib"; then 8235 ac_res="none required" 8236 else 8237 ac_res=-l$ac_lib 8238 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8239 fi 8240 rm -f conftest.$ac_objext conftest$ac_exeext 8241 if { (ac_try="$ac_link" 8242 case "(($ac_try" in 8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8244 *) ac_try_echo=$ac_try;; 8245 esac 8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8247 (eval "$ac_link") 2>conftest.er1 8248 ac_status=$? 8249 grep -v '^ *+' conftest.er1 >conftest.err 8250 rm -f conftest.er1 8251 cat conftest.err >&5 8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8253 (exit $ac_status); } && 8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8255 { (case "(($ac_try" in 8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8257 *) ac_try_echo=$ac_try;; 8258 esac 8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8260 (eval "$ac_try") 2>&5 8261 ac_status=$? 8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8263 (exit $ac_status); }; } && 8264 { ac_try='test -s conftest$ac_exeext' 8265 { (case "(($ac_try" in 8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8267 *) ac_try_echo=$ac_try;; 8268 esac 8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8270 (eval "$ac_try") 2>&5 8271 ac_status=$? 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 (exit $ac_status); }; }; then 8274 ac_cv_search_opendir=$ac_res 8275 else 8276 echo "$as_me: failed program was:" >&5 8277 sed 's/^/| /' conftest.$ac_ext >&5 8278 8279 8280 fi 8281 8282 rm -f core conftest.err conftest.$ac_objext \ 8283 conftest$ac_exeext 8284 if test "${ac_cv_search_opendir+set}" = set; then 8285 break 8286 fi 8287 done 8288 if test "${ac_cv_search_opendir+set}" = set; then 8289 : 8290 else 8291 ac_cv_search_opendir=no 8292 fi 8293 rm conftest.$ac_ext 8294 LIBS=$ac_func_search_save_LIBS 8295 fi 8296 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8297 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8298 ac_res=$ac_cv_search_opendir 8299 if test "$ac_res" != no; then 8300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8301 8302 fi 8303 8304 else 8305 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8306 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8307 if test "${ac_cv_search_opendir+set}" = set; then 8308 echo $ECHO_N "(cached) $ECHO_C" >&6 8309 else 8310 ac_func_search_save_LIBS=$LIBS 8311 cat >conftest.$ac_ext <<_ACEOF 8312 /* confdefs.h. */ 8313 _ACEOF 8314 cat confdefs.h >>conftest.$ac_ext 8315 cat >>conftest.$ac_ext <<_ACEOF 8316 /* end confdefs.h. */ 8317 8318 /* Override any GCC internal prototype to avoid an error. 8319 Use char because int might match the return type of a GCC 8320 builtin and then its argument prototype would still apply. */ 8321 #ifdef __cplusplus 8322 extern "C" 8323 #endif 8324 char opendir (); 8325 int 8326 main () 8327 { 8328 return opendir (); 8329 ; 8330 return 0; 8331 } 8332 _ACEOF 8333 for ac_lib in '' x; do 8334 if test -z "$ac_lib"; then 8335 ac_res="none required" 8336 else 8337 ac_res=-l$ac_lib 8338 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8339 fi 8340 rm -f conftest.$ac_objext conftest$ac_exeext 8341 if { (ac_try="$ac_link" 8342 case "(($ac_try" in 8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8344 *) ac_try_echo=$ac_try;; 8345 esac 8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8347 (eval "$ac_link") 2>conftest.er1 8348 ac_status=$? 8349 grep -v '^ *+' conftest.er1 >conftest.err 8350 rm -f conftest.er1 8351 cat conftest.err >&5 8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8353 (exit $ac_status); } && 8354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8355 { (case "(($ac_try" in 8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8357 *) ac_try_echo=$ac_try;; 8358 esac 8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8360 (eval "$ac_try") 2>&5 8361 ac_status=$? 8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8363 (exit $ac_status); }; } && 8364 { ac_try='test -s conftest$ac_exeext' 8365 { (case "(($ac_try" in 8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8367 *) ac_try_echo=$ac_try;; 8368 esac 8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8370 (eval "$ac_try") 2>&5 8371 ac_status=$? 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8373 (exit $ac_status); }; }; then 8374 ac_cv_search_opendir=$ac_res 8375 else 8376 echo "$as_me: failed program was:" >&5 8377 sed 's/^/| /' conftest.$ac_ext >&5 8378 8379 8380 fi 8381 8382 rm -f core conftest.err conftest.$ac_objext \ 8383 conftest$ac_exeext 8384 if test "${ac_cv_search_opendir+set}" = set; then 8385 break 8386 fi 8387 done 8388 if test "${ac_cv_search_opendir+set}" = set; then 8389 : 8390 else 8391 ac_cv_search_opendir=no 8392 fi 8393 rm conftest.$ac_ext 8394 LIBS=$ac_func_search_save_LIBS 8395 fi 8396 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8397 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8398 ac_res=$ac_cv_search_opendir 8399 if test "$ac_res" != no; then 8400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8401 8402 fi 8403 8404 fi 8405 8406 8407 for ac_header in dlfcn.h 8408 do 8409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8411 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8414 echo $ECHO_N "(cached) $ECHO_C" >&6 8415 fi 8416 ac_res=`eval echo '${'$as_ac_Header'}'` 8417 { echo "$as_me:$LINENO: result: $ac_res" >&5 8418 echo "${ECHO_T}$ac_res" >&6; } 8419 else 8420 # Is the header compilable? 8421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 8422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8423 cat >conftest.$ac_ext <<_ACEOF 8424 /* confdefs.h. */ 8425 _ACEOF 8426 cat confdefs.h >>conftest.$ac_ext 8427 cat >>conftest.$ac_ext <<_ACEOF 8428 /* end confdefs.h. */ 8429 $ac_includes_default 8430 #include <$ac_header> 8431 _ACEOF 8432 rm -f conftest.$ac_objext 8433 if { (ac_try="$ac_compile" 8434 case "(($ac_try" in 8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8436 *) ac_try_echo=$ac_try;; 8437 esac 8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8439 (eval "$ac_compile") 2>conftest.er1 8440 ac_status=$? 8441 grep -v '^ *+' conftest.er1 >conftest.err 8442 rm -f conftest.er1 8443 cat conftest.err >&5 8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8445 (exit $ac_status); } && 8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8447 { (case "(($ac_try" in 8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8449 *) ac_try_echo=$ac_try;; 8450 esac 8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8452 (eval "$ac_try") 2>&5 8453 ac_status=$? 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8455 (exit $ac_status); }; } && 8456 { ac_try='test -s conftest.$ac_objext' 8457 { (case "(($ac_try" in 8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8459 *) ac_try_echo=$ac_try;; 8460 esac 8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8462 (eval "$ac_try") 2>&5 8463 ac_status=$? 8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8465 (exit $ac_status); }; }; then 8466 ac_header_compiler=yes 8467 else 8468 echo "$as_me: failed program was:" >&5 8469 sed 's/^/| /' conftest.$ac_ext >&5 8470 8471 ac_header_compiler=no 8472 fi 8473 8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8476 echo "${ECHO_T}$ac_header_compiler" >&6; } 8477 8478 # Is the header present? 8479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 8480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8481 cat >conftest.$ac_ext <<_ACEOF 8482 /* confdefs.h. */ 8483 _ACEOF 8484 cat confdefs.h >>conftest.$ac_ext 8485 cat >>conftest.$ac_ext <<_ACEOF 8486 /* end confdefs.h. */ 8487 #include <$ac_header> 8488 _ACEOF 8489 if { (ac_try="$ac_cpp conftest.$ac_ext" 8490 case "(($ac_try" in 8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8492 *) ac_try_echo=$ac_try;; 8493 esac 8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8496 ac_status=$? 8497 grep -v '^ *+' conftest.er1 >conftest.err 8498 rm -f conftest.er1 8499 cat conftest.err >&5 8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8501 (exit $ac_status); } >/dev/null; then 8502 if test -s conftest.err; then 8503 ac_cpp_err=$ac_c_preproc_warn_flag 8504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8505 else 8506 ac_cpp_err= 8507 fi 8508 else 8509 ac_cpp_err=yes 8510 fi 8511 if test -z "$ac_cpp_err"; then 8512 ac_header_preproc=yes 8513 else 8514 echo "$as_me: failed program was:" >&5 8515 sed 's/^/| /' conftest.$ac_ext >&5 8516 8517 ac_header_preproc=no 8518 fi 8519 8520 rm -f conftest.err conftest.$ac_ext 8521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8522 echo "${ECHO_T}$ac_header_preproc" >&6; } 8523 8524 # So? What about this header? 8525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8526 yes:no: ) 8527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8531 ac_header_preproc=yes 8532 ;; 8533 no:yes:* ) 8534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8546 ( cat <<\_ASBOX 8547 ## ------------------------------ ## 8548 ## Report this to bugs@yourdomain ## 8549 ## ------------------------------ ## 8550 _ASBOX 8551 ) | sed "s/^/$as_me: WARNING: /" >&2 8552 ;; 8553 esac 8554 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8557 echo $ECHO_N "(cached) $ECHO_C" >&6 8558 else 8559 eval "$as_ac_Header=\$ac_header_preproc" 8560 fi 8561 ac_res=`eval echo '${'$as_ac_Header'}'` 8562 { echo "$as_me:$LINENO: result: $ac_res" >&5 8563 echo "${ECHO_T}$ac_res" >&6; } 8564 8565 fi 8566 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8567 cat >>confdefs.h <<_ACEOF 8568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8569 _ACEOF 8570 8571 fi 8572 8573 done 8574 8575 # Check whether --enable-ltdl-install was given. 8576 if test "${enable_ltdl_install+set}" = set; then 8577 enableval=$enable_ltdl_install; 8578 fi 8579 8580 8581 8582 8583 if test x"${enable_ltdl_install-no}" != xno; then 8584 INSTALL_LTDL_TRUE= 8585 INSTALL_LTDL_FALSE='#' 8586 else 8587 INSTALL_LTDL_TRUE='#' 8588 INSTALL_LTDL_FALSE= 8589 fi 8590 8591 8592 8593 if test x"${enable_ltdl_convenience-no}" != xno; then 8594 CONVENIENCE_LTDL_TRUE= 8595 CONVENIENCE_LTDL_FALSE='#' 8596 else 8597 CONVENIENCE_LTDL_TRUE='#' 8598 CONVENIENCE_LTDL_FALSE= 8599 fi 8600 8601 8602 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8603 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8604 library_names_spec= 8605 libname_spec='lib$name' 8606 soname_spec= 8607 shrext_cmds=".so" 8608 postinstall_cmds= 8609 postuninstall_cmds= 8610 finish_cmds= 8611 finish_eval= 8612 shlibpath_var= 8613 shlibpath_overrides_runpath=unknown 8614 version_type=none 8615 dynamic_linker="$host_os ld.so" 8616 sys_lib_dlsearch_path_spec="/lib /usr/lib" 8617 if test "$GCC" = yes; then 8618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8619 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8620 # if the path contains ";" then we assume it to be the separator 8621 # otherwise default to the standard path separator (i.e. ":") - it is 8622 # assumed that no part of a normal pathname contains ";" but that should 8623 # okay in the real world where ";" in dirpaths is itself problematic. 8624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8625 else 8626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8627 fi 8628 else 8629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8630 fi 8631 need_lib_prefix=unknown 8632 hardcode_into_libs=no 8633 8634 # when you set need_version to no, make sure it does not cause -set_version 8635 # flags to be left without arguments 8636 need_version=unknown 8637 8638 case $host_os in 8639 aix3*) 8640 version_type=linux 8641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8642 shlibpath_var=LIBPATH 8643 8644 # AIX 3 has no versioning support, so we append a major version to the name. 8645 soname_spec='${libname}${release}${shared_ext}$major' 8646 ;; 8647 8648 aix4* | aix5*) 8649 version_type=linux 8650 need_lib_prefix=no 8651 need_version=no 8652 hardcode_into_libs=yes 8653 if test "$host_cpu" = ia64; then 8654 # AIX 5 supports IA64 8655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8656 shlibpath_var=LD_LIBRARY_PATH 8657 else 8658 # With GCC up to 2.95.x, collect2 would create an import file 8659 # for dependence libraries. The import file would start with 8660 # the line `#! .'. This would cause the generated library to 8661 # depend on `.', always an invalid library. This was fixed in 8662 # development snapshots of GCC prior to 3.0. 8663 case $host_os in 8664 aix4 | aix4.[01] | aix4.[01].*) 8665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8666 echo ' yes ' 8667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8668 : 8669 else 8670 can_build_shared=no 8671 fi 8672 ;; 8673 esac 8674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8675 # soname into executable. Probably we can add versioning support to 8676 # collect2, so additional links can be useful in future. 8677 if test "$aix_use_runtimelinking" = yes; then 8678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8679 # instead of lib<name>.a to let people know that these are not 8680 # typical AIX shared libraries. 8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8682 else 8683 # We preserve .a as extension for shared libraries through AIX4.2 8684 # and later when we are not doing run time linking. 8685 library_names_spec='${libname}${release}.a $libname.a' 8686 soname_spec='${libname}${release}${shared_ext}$major' 8687 fi 8688 shlibpath_var=LIBPATH 8689 fi 8690 ;; 8691 8692 amigaos*) 8693 library_names_spec='$libname.ixlibrary $libname.a' 8694 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8695 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' 8696 ;; 8697 8698 beos*) 8699 library_names_spec='${libname}${shared_ext}' 8700 dynamic_linker="$host_os ld.so" 8701 shlibpath_var=LIBRARY_PATH 8702 ;; 8703 8704 bsdi[45]*) 8705 version_type=linux 8706 need_version=no 8707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8708 soname_spec='${libname}${release}${shared_ext}$major' 8709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8710 shlibpath_var=LD_LIBRARY_PATH 8711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8713 # the default ld.so.conf also contains /usr/contrib/lib and 8714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8715 # libtool to hard-code these into programs 8716 ;; 8717 8718 cygwin* | mingw* | pw32*) 8719 version_type=windows 8720 shrext_cmds=".dll" 8721 need_version=no 8722 need_lib_prefix=no 8723 8724 case $GCC,$host_os in 8725 yes,cygwin* | yes,mingw* | yes,pw32*) 8726 library_names_spec='$libname.dll.a' 8727 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8728 postinstall_cmds='base_file=`basename \${file}`~ 8729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8730 dldir=$destdir/`dirname \$dlpath`~ 8731 test -d \$dldir || mkdir -p \$dldir~ 8732 $install_prog $dir/$dlname \$dldir/$dlname~ 8733 chmod a+x \$dldir/$dlname' 8734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8735 dlpath=$dir/\$dldll~ 8736 $rm \$dlpath' 8737 shlibpath_overrides_runpath=yes 8738 8739 case $host_os in 8740 cygwin*) 8741 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8743 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8744 ;; 8745 mingw*) 8746 # MinGW DLLs use traditional 'lib' prefix 8747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8749 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8750 # It is most probably a Windows format PATH printed by 8751 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8752 # path with ; separators, and with drive letters. We can handle the 8753 # drive letters (cygwin fileutils understands them), so leave them, 8754 # especially as we might pass files found there to a mingw objdump, 8755 # which wouldn't understand a cygwinified path. Ahh. 8756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8757 else 8758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8759 fi 8760 ;; 8761 pw32*) 8762 # pw32 DLLs use 'pw' prefix rather than 'lib' 8763 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8764 ;; 8765 esac 8766 ;; 8767 8768 *) 8769 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8770 ;; 8771 esac 8772 dynamic_linker='Win32 ld.exe' 8773 # FIXME: first we should search . and the directory the executable is in 8774 shlibpath_var=PATH 8775 ;; 8776 8777 darwin* | rhapsody*) 8778 dynamic_linker="$host_os dyld" 8779 version_type=darwin 8780 need_lib_prefix=no 8781 need_version=no 8782 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8783 soname_spec='${libname}${release}${major}$shared_ext' 8784 shlibpath_overrides_runpath=yes 8785 shlibpath_var=DYLD_LIBRARY_PATH 8786 shrext_cmds='.dylib' 8787 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8788 if test "$GCC" = yes; then 8789 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8790 else 8791 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8792 fi 8793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8794 ;; 8795 8796 dgux*) 8797 version_type=linux 8798 need_lib_prefix=no 8799 need_version=no 8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8801 soname_spec='${libname}${release}${shared_ext}$major' 8802 shlibpath_var=LD_LIBRARY_PATH 8803 ;; 8804 8805 freebsd1.*) 8806 dynamic_linker=no 8807 ;; 8808 8809 kfreebsd*-gnu) 8810 version_type=linux 8811 need_lib_prefix=no 8812 need_version=no 8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8814 soname_spec='${libname}${release}${shared_ext}$major' 8815 shlibpath_var=LD_LIBRARY_PATH 8816 shlibpath_overrides_runpath=no 8817 hardcode_into_libs=yes 8818 dynamic_linker='GNU ld.so' 8819 ;; 8820 8821 freebsd* | dragonfly*) 8822 # DragonFly does not have aout. When/if they implement a new 8823 # versioning mechanism, adjust this. 8824 if test -x /usr/bin/objformat; then 8825 objformat=`/usr/bin/objformat` 8826 else 8827 case $host_os in 8828 freebsd[123].*) objformat=aout ;; 8829 *) objformat=elf ;; 8830 esac 8831 fi 8832 version_type=freebsd-$objformat 8833 case $version_type in 8834 freebsd-elf*) 8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8836 need_version=no 8837 need_lib_prefix=no 8838 ;; 8839 freebsd-*) 8840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8841 need_version=yes 8842 ;; 8843 esac 8844 shlibpath_var=LD_LIBRARY_PATH 8845 case $host_os in 8846 freebsd2.*) 8847 shlibpath_overrides_runpath=yes 8848 ;; 8849 freebsd3.[01]* | freebsdelf3.[01]*) 8850 shlibpath_overrides_runpath=yes 8851 hardcode_into_libs=yes 8852 ;; 8853 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8854 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8855 shlibpath_overrides_runpath=no 8856 hardcode_into_libs=yes 8857 ;; 8858 freebsd*) # from 4.6 on 8859 shlibpath_overrides_runpath=yes 8860 hardcode_into_libs=yes 8861 ;; 8862 esac 8863 ;; 8864 8865 gnu*) 8866 version_type=linux 8867 need_lib_prefix=no 8868 need_version=no 8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8870 soname_spec='${libname}${release}${shared_ext}$major' 8871 shlibpath_var=LD_LIBRARY_PATH 8872 hardcode_into_libs=yes 8873 ;; 8874 8875 hpux9* | hpux10* | hpux11*) 8876 # Give a soname corresponding to the major version so that dld.sl refuses to 8877 # link against other versions. 8878 version_type=sunos 8879 need_lib_prefix=no 8880 need_version=no 8881 case $host_cpu in 8882 ia64*) 8883 shrext_cmds='.so' 8884 hardcode_into_libs=yes 8885 dynamic_linker="$host_os dld.so" 8886 shlibpath_var=LD_LIBRARY_PATH 8887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8889 soname_spec='${libname}${release}${shared_ext}$major' 8890 if test "X$HPUX_IA64_MODE" = X32; then 8891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8892 else 8893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8894 fi 8895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8896 ;; 8897 hppa*64*) 8898 shrext_cmds='.sl' 8899 hardcode_into_libs=yes 8900 dynamic_linker="$host_os dld.sl" 8901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8904 soname_spec='${libname}${release}${shared_ext}$major' 8905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8907 ;; 8908 *) 8909 shrext_cmds='.sl' 8910 dynamic_linker="$host_os dld.sl" 8911 shlibpath_var=SHLIB_PATH 8912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8914 soname_spec='${libname}${release}${shared_ext}$major' 8915 ;; 8916 esac 8917 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8918 postinstall_cmds='chmod 555 $lib' 8919 ;; 8920 8921 interix3*) 8922 version_type=linux 8923 need_lib_prefix=no 8924 need_version=no 8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8926 soname_spec='${libname}${release}${shared_ext}$major' 8927 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8928 shlibpath_var=LD_LIBRARY_PATH 8929 shlibpath_overrides_runpath=no 8930 hardcode_into_libs=yes 8931 ;; 8932 8933 irix5* | irix6* | nonstopux*) 8934 case $host_os in 8935 nonstopux*) version_type=nonstopux ;; 8936 *) 8937 if test "$lt_cv_prog_gnu_ld" = yes; then 8938 version_type=linux 8939 else 8940 version_type=irix 8941 fi ;; 8942 esac 8943 need_lib_prefix=no 8944 need_version=no 8945 soname_spec='${libname}${release}${shared_ext}$major' 8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8947 case $host_os in 8948 irix5* | nonstopux*) 8949 libsuff= shlibsuff= 8950 ;; 8951 *) 8952 case $LD in # libtool.m4 will add one of these switches to LD 8953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8954 libsuff= shlibsuff= libmagic=32-bit;; 8955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8956 libsuff=32 shlibsuff=N32 libmagic=N32;; 8957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8958 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8959 *) libsuff= shlibsuff= libmagic=never-match;; 8960 esac 8961 ;; 8962 esac 8963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8964 shlibpath_overrides_runpath=no 8965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8967 hardcode_into_libs=yes 8968 ;; 8969 8970 # No shared lib support for Linux oldld, aout, or coff. 8971 linux*oldld* | linux*aout* | linux*coff*) 8972 dynamic_linker=no 8973 ;; 8974 8975 # This must be Linux ELF. 8976 linux*) 8977 version_type=linux 8978 need_lib_prefix=no 8979 need_version=no 8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8981 soname_spec='${libname}${release}${shared_ext}$major' 8982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8983 shlibpath_var=LD_LIBRARY_PATH 8984 shlibpath_overrides_runpath=no 8985 # This implies no fast_install, which is unacceptable. 8986 # Some rework will be needed to allow for fast_install 8987 # before this can be enabled. 8988 hardcode_into_libs=yes 8989 8990 # Append ld.so.conf contents to the search path 8991 if test -f /etc/ld.so.conf; then 8992 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8994 fi 8995 8996 # We used to test for /lib/ld.so.1 and disable shared libraries on 8997 # powerpc, because MkLinux only supported shared libraries with the 8998 # GNU dynamic linker. Since this was broken with cross compilers, 8999 # most powerpc-linux boxes support dynamic linking these days and 9000 # people can always --disable-shared, the test was removed, and we 9001 # assume the GNU/Linux dynamic linker is in use. 9002 dynamic_linker='GNU/Linux ld.so' 9003 ;; 9004 9005 knetbsd*-gnu) 9006 version_type=linux 9007 need_lib_prefix=no 9008 need_version=no 9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9010 soname_spec='${libname}${release}${shared_ext}$major' 9011 shlibpath_var=LD_LIBRARY_PATH 9012 shlibpath_overrides_runpath=no 9013 hardcode_into_libs=yes 9014 dynamic_linker='GNU ld.so' 9015 ;; 9016 9017 netbsd*) 9018 version_type=sunos 9019 need_lib_prefix=no 9020 need_version=no 9021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9024 dynamic_linker='NetBSD (a.out) ld.so' 9025 else 9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9027 soname_spec='${libname}${release}${shared_ext}$major' 9028 dynamic_linker='NetBSD ld.elf_so' 9029 fi 9030 shlibpath_var=LD_LIBRARY_PATH 9031 shlibpath_overrides_runpath=yes 9032 hardcode_into_libs=yes 9033 ;; 9034 9035 newsos6) 9036 version_type=linux 9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9038 shlibpath_var=LD_LIBRARY_PATH 9039 shlibpath_overrides_runpath=yes 9040 ;; 9041 9042 nto-qnx*) 9043 version_type=linux 9044 need_lib_prefix=no 9045 need_version=no 9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9047 soname_spec='${libname}${release}${shared_ext}$major' 9048 shlibpath_var=LD_LIBRARY_PATH 9049 shlibpath_overrides_runpath=yes 9050 ;; 9051 9052 openbsd*) 9053 version_type=sunos 9054 sys_lib_dlsearch_path_spec="/usr/lib" 9055 need_lib_prefix=no 9056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9057 case $host_os in 9058 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9059 *) need_version=no ;; 9060 esac 9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9063 shlibpath_var=LD_LIBRARY_PATH 9064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9065 case $host_os in 9066 openbsd2.[89] | openbsd2.[89].*) 9067 shlibpath_overrides_runpath=no 9068 ;; 9069 *) 9070 shlibpath_overrides_runpath=yes 9071 ;; 9072 esac 9073 else 9074 shlibpath_overrides_runpath=yes 9075 fi 9076 ;; 9077 9078 os2*) 9079 libname_spec='$name' 9080 shrext_cmds=".dll" 9081 need_lib_prefix=no 9082 library_names_spec='$libname${shared_ext} $libname.a' 9083 dynamic_linker='OS/2 ld.exe' 9084 shlibpath_var=LIBPATH 9085 ;; 9086 9087 osf3* | osf4* | osf5*) 9088 version_type=osf 9089 need_lib_prefix=no 9090 need_version=no 9091 soname_spec='${libname}${release}${shared_ext}$major' 9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9093 shlibpath_var=LD_LIBRARY_PATH 9094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9096 ;; 9097 9098 solaris*) 9099 version_type=linux 9100 need_lib_prefix=no 9101 need_version=no 9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9103 soname_spec='${libname}${release}${shared_ext}$major' 9104 shlibpath_var=LD_LIBRARY_PATH 9105 shlibpath_overrides_runpath=yes 9106 hardcode_into_libs=yes 9107 # ldd complains unless libraries are executable 9108 postinstall_cmds='chmod +x $lib' 9109 ;; 9110 9111 sunos4*) 9112 version_type=sunos 9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9115 shlibpath_var=LD_LIBRARY_PATH 9116 shlibpath_overrides_runpath=yes 9117 if test "$with_gnu_ld" = yes; then 9118 need_lib_prefix=no 9119 fi 9120 need_version=yes 9121 ;; 9122 9123 sysv4 | sysv4.3*) 9124 version_type=linux 9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9126 soname_spec='${libname}${release}${shared_ext}$major' 9127 shlibpath_var=LD_LIBRARY_PATH 9128 case $host_vendor in 9129 sni) 9130 shlibpath_overrides_runpath=no 9131 need_lib_prefix=no 9132 export_dynamic_flag_spec='${wl}-Blargedynsym' 9133 runpath_var=LD_RUN_PATH 9134 ;; 9135 siemens) 9136 need_lib_prefix=no 9137 ;; 9138 motorola) 9139 need_lib_prefix=no 9140 need_version=no 9141 shlibpath_overrides_runpath=no 9142 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9143 ;; 9144 esac 9145 ;; 9146 9147 sysv4*MP*) 9148 if test -d /usr/nec ;then 9149 version_type=linux 9150 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9151 soname_spec='$libname${shared_ext}.$major' 9152 shlibpath_var=LD_LIBRARY_PATH 9153 fi 9154 ;; 9155 9156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9157 version_type=freebsd-elf 9158 need_lib_prefix=no 9159 need_version=no 9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9161 soname_spec='${libname}${release}${shared_ext}$major' 9162 shlibpath_var=LD_LIBRARY_PATH 9163 hardcode_into_libs=yes 9164 if test "$with_gnu_ld" = yes; then 9165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9166 shlibpath_overrides_runpath=no 9167 else 9168 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9169 shlibpath_overrides_runpath=yes 9170 case $host_os in 9171 sco3.2v5*) 9172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9173 ;; 9174 esac 9175 fi 9176 sys_lib_dlsearch_path_spec='/usr/lib' 9177 ;; 9178 9179 uts4*) 9180 version_type=linux 9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9182 soname_spec='${libname}${release}${shared_ext}$major' 9183 shlibpath_var=LD_LIBRARY_PATH 9184 ;; 9185 9186 *) 9187 dynamic_linker=no 9188 ;; 9189 esac 9190 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9191 echo "${ECHO_T}$dynamic_linker" >&6; } 9192 test "$dynamic_linker" = no && can_build_shared=no 9193 9194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9195 if test "$GCC" = yes; then 9196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9197 fi 9198 9199 9200 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9201 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9202 if test "${libltdl_cv_shlibext+set}" = set; then 9203 echo $ECHO_N "(cached) $ECHO_C" >&6 9204 else 9205 9206 module=yes 9207 eval libltdl_cv_shlibext=$shrext_cmds 9208 9209 fi 9210 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9211 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9212 if test -n "$libltdl_cv_shlibext"; then 9213 9214 cat >>confdefs.h <<_ACEOF 9215 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9216 _ACEOF 9217 9218 fi 9219 9220 9221 { echo "$as_me:$LINENO: checking for the default library search path" >&5 9222 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9223 if test "${libltdl_cv_sys_search_path+set}" = set; then 9224 echo $ECHO_N "(cached) $ECHO_C" >&6 9225 else 9226 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9227 fi 9228 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9229 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9230 if test -n "$libltdl_cv_sys_search_path"; then 9231 sys_search_path= 9232 for dir in $libltdl_cv_sys_search_path; do 9233 if test -z "$sys_search_path"; then 9234 sys_search_path="$dir" 9235 else 9236 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9237 fi 9238 done 9239 9240 cat >>confdefs.h <<_ACEOF 9241 #define LTDL_SYSSEARCHPATH "$sys_search_path" 9242 _ACEOF 9243 9244 fi 9245 9246 { echo "$as_me:$LINENO: checking for objdir" >&5 9247 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9248 if test "${libltdl_cv_objdir+set}" = set; then 9249 echo $ECHO_N "(cached) $ECHO_C" >&6 9250 else 9251 libltdl_cv_objdir="$objdir" 9252 if test -n "$objdir"; then 9253 : 9254 else 9255 rm -f .libs 2>/dev/null 9256 mkdir .libs 2>/dev/null 9257 if test -d .libs; then 9258 libltdl_cv_objdir=.libs 9259 else 9260 # MS-DOS does not allow filenames that begin with a dot. 9261 libltdl_cv_objdir=_libs 9262 fi 9263 rmdir .libs 2>/dev/null 9264 fi 9265 9266 fi 9267 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9268 echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9269 9270 cat >>confdefs.h <<_ACEOF 9271 #define LTDL_OBJDIR "$libltdl_cv_objdir/" 9272 _ACEOF 9273 9274 9275 9276 9277 9278 9279 # Check for command to grab the raw symbol name followed by C symbol from nm. 9280 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9281 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9282 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9283 echo $ECHO_N "(cached) $ECHO_C" >&6 9284 else 9285 9286 # These are sane defaults that work on at least a few old systems. 9287 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 9288 9289 # Character class describing NM global symbol codes. 9290 symcode='[BCDEGRST]' 9291 9292 # Regexp to match symbols that can be accessed directly from C. 9293 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9294 9295 # Transform an extracted symbol line into a proper C declaration 9296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9297 9298 # Transform an extracted symbol line into symbol name and symbol address 9299 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9300 9301 # Define system-specific variables. 9302 case $host_os in 9303 aix*) 9304 symcode='[BCDT]' 9305 ;; 9306 cygwin* | mingw* | pw32*) 9307 symcode='[ABCDGISTW]' 9308 ;; 9309 hpux*) # Its linker distinguishes data from code symbols 9310 if test "$host_cpu" = ia64; then 9311 symcode='[ABCDEGRST]' 9312 fi 9313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9314 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9315 ;; 9316 linux*) 9317 if test "$host_cpu" = ia64; then 9318 symcode='[ABCDGIRSTW]' 9319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9320 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9321 fi 9322 ;; 9323 irix* | nonstopux*) 9324 symcode='[BCDEGRST]' 9325 ;; 9326 osf*) 9327 symcode='[BCDEGQRST]' 9328 ;; 9329 solaris*) 9330 symcode='[BDRT]' 9331 ;; 9332 sco3.2v5*) 9333 symcode='[DT]' 9334 ;; 9335 sysv4.2uw2*) 9336 symcode='[DT]' 9337 ;; 9338 sysv5* | sco5v6* | unixware* | OpenUNIX*) 9339 symcode='[ABDT]' 9340 ;; 9341 sysv4) 9342 symcode='[DFNSTU]' 9343 ;; 9344 esac 9345 9346 # Handle CRLF in mingw tool chain 9347 opt_cr= 9348 case $build_os in 9349 mingw*) 9350 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9351 ;; 9352 esac 9353 9354 # If we're using GNU nm, then use its standard symbol codes. 9355 case `$NM -V 2>&1` in 9356 *GNU* | *'with BFD'*) 9357 symcode='[ABCDGIRSTW]' ;; 9358 esac 9359 9360 # Try without a prefix undercore, then with it. 9361 for ac_symprfx in "" "_"; do 9362 9363 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9364 symxfrm="\\1 $ac_symprfx\\2 \\2" 9365 9366 # Write the raw and C identifiers. 9367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9368 9369 # Check to see that the pipe works correctly. 9370 pipe_works=no 9371 9372 rm -f conftest* 9373 cat > conftest.$ac_ext <<EOF 9374 #ifdef __cplusplus 9375 extern "C" { 9376 #endif 9377 char nm_test_var; 9378 void nm_test_func(){} 9379 #ifdef __cplusplus 9380 } 9381 #endif 9382 int main(){nm_test_var='a';nm_test_func();return(0);} 9383 EOF 9384 9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9386 (eval $ac_compile) 2>&5 9387 ac_status=$? 9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9389 (exit $ac_status); }; then 9390 # Now try to grab the symbols. 9391 nlist=conftest.nm 9392 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9393 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9394 ac_status=$? 9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9396 (exit $ac_status); } && test -s "$nlist"; then 9397 # Try sorting and uniquifying the output. 9398 if sort "$nlist" | uniq > "$nlist"T; then 9399 mv -f "$nlist"T "$nlist" 9400 else 9401 rm -f "$nlist"T 9402 fi 9403 9404 # Make sure that we snagged all the symbols we need. 9405 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9406 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9407 cat <<EOF > conftest.$ac_ext 9408 #ifdef __cplusplus 9409 extern "C" { 9410 #endif 9411 9412 EOF 9413 # Now generate the symbol file. 9414 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9415 9416 cat <<EOF >> conftest.$ac_ext 9417 #if defined (__STDC__) && __STDC__ 9418 # define lt_ptr_t void * 9419 #else 9420 # define lt_ptr_t char * 9421 # define const 9422 #endif 9423 9424 /* The mapping between symbol names and symbols. */ 9425 const struct { 9426 const char *name; 9427 lt_ptr_t address; 9428 } 9429 lt_preloaded_symbols[] = 9430 { 9431 EOF 9432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9433 cat <<\EOF >> conftest.$ac_ext 9434 {0, (lt_ptr_t) 0} 9435 }; 9436 9437 #ifdef __cplusplus 9438 } 9439 #endif 9440 EOF 9441 # Now try linking the two files. 9442 mv conftest.$ac_objext conftstm.$ac_objext 9443 lt_save_LIBS="$LIBS" 9444 lt_save_CFLAGS="$CFLAGS" 9445 LIBS="conftstm.$ac_objext" 9446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9448 (eval $ac_link) 2>&5 9449 ac_status=$? 9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9451 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9452 pipe_works=yes 9453 fi 9454 LIBS="$lt_save_LIBS" 9455 CFLAGS="$lt_save_CFLAGS" 9456 else 9457 echo "cannot find nm_test_func in $nlist" >&5 9458 fi 9459 else 9460 echo "cannot find nm_test_var in $nlist" >&5 9461 fi 9462 else 9463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9464 fi 9465 else 9466 echo "$progname: failed program was:" >&5 9467 cat conftest.$ac_ext >&5 9468 fi 9469 rm -f conftest* conftst* 9470 9471 # Do not use the global_symbol_pipe unless it works. 9472 if test "$pipe_works" = yes; then 9473 break 9474 else 9475 lt_cv_sys_global_symbol_pipe= 9476 fi 9477 done 9478 9479 fi 9480 9481 if test -z "$lt_cv_sys_global_symbol_pipe"; then 9482 lt_cv_sys_global_symbol_to_cdecl= 9483 fi 9484 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9485 { echo "$as_me:$LINENO: result: failed" >&5 9486 echo "${ECHO_T}failed" >&6; } 9487 else 9488 { echo "$as_me:$LINENO: result: ok" >&5 9489 echo "${ECHO_T}ok" >&6; } 9490 fi 9491 9492 9493 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9494 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9495 if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9496 echo $ECHO_N "(cached) $ECHO_C" >&6 9497 else 9498 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9499 libltdl_cv_preloaded_symbols=yes 9500 else 9501 libltdl_cv_preloaded_symbols=no 9502 fi 9503 9504 fi 9505 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9506 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9507 if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9508 9509 cat >>confdefs.h <<\_ACEOF 9510 #define HAVE_PRELOADED_SYMBOLS 1 9511 _ACEOF 9512 9513 fi 9514 9515 LIBADD_DL= 9516 9517 ac_ext=c 9518 ac_cpp='$CPP $CPPFLAGS' 9519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9521 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9522 9523 9524 { echo "$as_me:$LINENO: checking for shl_load" >&5 9525 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9526 if test "${ac_cv_func_shl_load+set}" = set; then 9527 echo $ECHO_N "(cached) $ECHO_C" >&6 9528 else 9529 cat >conftest.$ac_ext <<_ACEOF 9530 /* confdefs.h. */ 9531 _ACEOF 9532 cat confdefs.h >>conftest.$ac_ext 9533 cat >>conftest.$ac_ext <<_ACEOF 9534 /* end confdefs.h. */ 9535 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9536 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9537 #define shl_load innocuous_shl_load 9538 9539 /* System header to define __stub macros and hopefully few prototypes, 9540 which can conflict with char shl_load (); below. 9541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9542 <limits.h> exists even on freestanding compilers. */ 9543 9544 #ifdef __STDC__ 9545 # include <limits.h> 9546 #else 9547 # include <assert.h> 9548 #endif 9549 9550 #undef shl_load 9551 9552 /* Override any GCC internal prototype to avoid an error. 9553 Use char because int might match the return type of a GCC 9554 builtin and then its argument prototype would still apply. */ 9555 #ifdef __cplusplus 9556 extern "C" 9557 #endif 9558 char shl_load (); 9559 /* The GNU C library defines this for functions which it implements 9560 to always fail with ENOSYS. Some functions are actually named 9561 something starting with __ and the normal name is an alias. */ 9562 #if defined __stub_shl_load || defined __stub___shl_load 9563 choke me 9564 #endif 9565 9566 int 9567 main () 9568 { 9569 return shl_load (); 9570 ; 9571 return 0; 9572 } 9573 _ACEOF 9574 rm -f conftest.$ac_objext conftest$ac_exeext 9575 if { (ac_try="$ac_link" 9576 case "(($ac_try" in 9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9578 *) ac_try_echo=$ac_try;; 9579 esac 9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9581 (eval "$ac_link") 2>conftest.er1 9582 ac_status=$? 9583 grep -v '^ *+' conftest.er1 >conftest.err 9584 rm -f conftest.er1 9585 cat conftest.err >&5 9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9587 (exit $ac_status); } && 9588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9589 { (case "(($ac_try" in 9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9591 *) ac_try_echo=$ac_try;; 9592 esac 9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9594 (eval "$ac_try") 2>&5 9595 ac_status=$? 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597 (exit $ac_status); }; } && 9598 { ac_try='test -s conftest$ac_exeext' 9599 { (case "(($ac_try" in 9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9601 *) ac_try_echo=$ac_try;; 9602 esac 9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9604 (eval "$ac_try") 2>&5 9605 ac_status=$? 9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9607 (exit $ac_status); }; }; then 9608 ac_cv_func_shl_load=yes 9609 else 9610 echo "$as_me: failed program was:" >&5 9611 sed 's/^/| /' conftest.$ac_ext >&5 9612 9613 ac_cv_func_shl_load=no 9614 fi 9615 9616 rm -f core conftest.err conftest.$ac_objext \ 9617 conftest$ac_exeext conftest.$ac_ext 9618 fi 9619 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9620 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9621 if test $ac_cv_func_shl_load = yes; then 9622 9623 cat >>confdefs.h <<\_ACEOF 9624 #define HAVE_SHL_LOAD 1 9625 _ACEOF 9626 9627 else 9628 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9629 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9630 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9631 echo $ECHO_N "(cached) $ECHO_C" >&6 9632 else 9633 ac_check_lib_save_LIBS=$LIBS 9634 LIBS="-ldld $LIBS" 9635 cat >conftest.$ac_ext <<_ACEOF 9636 /* confdefs.h. */ 9637 _ACEOF 9638 cat confdefs.h >>conftest.$ac_ext 9639 cat >>conftest.$ac_ext <<_ACEOF 9640 /* end confdefs.h. */ 9641 9642 /* Override any GCC internal prototype to avoid an error. 9643 Use char because int might match the return type of a GCC 9644 builtin and then its argument prototype would still apply. */ 9645 #ifdef __cplusplus 9646 extern "C" 9647 #endif 9648 char shl_load (); 9649 int 9650 main () 9651 { 9652 return shl_load (); 9653 ; 9654 return 0; 9655 } 9656 _ACEOF 9657 rm -f conftest.$ac_objext conftest$ac_exeext 9658 if { (ac_try="$ac_link" 9659 case "(($ac_try" in 9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9661 *) ac_try_echo=$ac_try;; 9662 esac 9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9664 (eval "$ac_link") 2>conftest.er1 9665 ac_status=$? 9666 grep -v '^ *+' conftest.er1 >conftest.err 9667 rm -f conftest.er1 9668 cat conftest.err >&5 9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9670 (exit $ac_status); } && 9671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9672 { (case "(($ac_try" in 9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9674 *) ac_try_echo=$ac_try;; 9675 esac 9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9677 (eval "$ac_try") 2>&5 9678 ac_status=$? 9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9680 (exit $ac_status); }; } && 9681 { ac_try='test -s conftest$ac_exeext' 9682 { (case "(($ac_try" in 9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9684 *) ac_try_echo=$ac_try;; 9685 esac 9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9687 (eval "$ac_try") 2>&5 9688 ac_status=$? 9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9690 (exit $ac_status); }; }; then 9691 ac_cv_lib_dld_shl_load=yes 9692 else 9693 echo "$as_me: failed program was:" >&5 9694 sed 's/^/| /' conftest.$ac_ext >&5 9695 9696 ac_cv_lib_dld_shl_load=no 9697 fi 9698 9699 rm -f core conftest.err conftest.$ac_objext \ 9700 conftest$ac_exeext conftest.$ac_ext 9701 LIBS=$ac_check_lib_save_LIBS 9702 fi 9703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9704 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9705 if test $ac_cv_lib_dld_shl_load = yes; then 9706 9707 cat >>confdefs.h <<\_ACEOF 9708 #define HAVE_SHL_LOAD 1 9709 _ACEOF 9710 9711 LIBADD_DL="$LIBADD_DL -ldld" 9712 else 9713 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9716 echo $ECHO_N "(cached) $ECHO_C" >&6 9717 else 9718 ac_check_lib_save_LIBS=$LIBS 9719 LIBS="-ldl $LIBS" 9720 cat >conftest.$ac_ext <<_ACEOF 9721 /* confdefs.h. */ 9722 _ACEOF 9723 cat confdefs.h >>conftest.$ac_ext 9724 cat >>conftest.$ac_ext <<_ACEOF 9725 /* end confdefs.h. */ 9726 9727 /* Override any GCC internal prototype to avoid an error. 9728 Use char because int might match the return type of a GCC 9729 builtin and then its argument prototype would still apply. */ 9730 #ifdef __cplusplus 9731 extern "C" 9732 #endif 9733 char dlopen (); 9734 int 9735 main () 9736 { 9737 return dlopen (); 9738 ; 9739 return 0; 9740 } 9741 _ACEOF 9742 rm -f conftest.$ac_objext conftest$ac_exeext 9743 if { (ac_try="$ac_link" 9744 case "(($ac_try" in 9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9746 *) ac_try_echo=$ac_try;; 9747 esac 9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9749 (eval "$ac_link") 2>conftest.er1 9750 ac_status=$? 9751 grep -v '^ *+' conftest.er1 >conftest.err 9752 rm -f conftest.er1 9753 cat conftest.err >&5 9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9755 (exit $ac_status); } && 9756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9757 { (case "(($ac_try" in 9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9759 *) ac_try_echo=$ac_try;; 9760 esac 9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9762 (eval "$ac_try") 2>&5 9763 ac_status=$? 9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9765 (exit $ac_status); }; } && 9766 { ac_try='test -s conftest$ac_exeext' 9767 { (case "(($ac_try" in 9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9769 *) ac_try_echo=$ac_try;; 9770 esac 9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9772 (eval "$ac_try") 2>&5 9773 ac_status=$? 9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9775 (exit $ac_status); }; }; then 9776 ac_cv_lib_dl_dlopen=yes 9777 else 9778 echo "$as_me: failed program was:" >&5 9779 sed 's/^/| /' conftest.$ac_ext >&5 9780 9781 ac_cv_lib_dl_dlopen=no 9782 fi 9783 9784 rm -f core conftest.err conftest.$ac_objext \ 9785 conftest$ac_exeext conftest.$ac_ext 9786 LIBS=$ac_check_lib_save_LIBS 9787 fi 9788 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9789 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9790 if test $ac_cv_lib_dl_dlopen = yes; then 9791 9792 cat >>confdefs.h <<\_ACEOF 9793 #define HAVE_LIBDL 1 9794 _ACEOF 9795 9796 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9797 else 9798 cat >conftest.$ac_ext <<_ACEOF 9799 /* confdefs.h. */ 9800 _ACEOF 9801 cat confdefs.h >>conftest.$ac_ext 9802 cat >>conftest.$ac_ext <<_ACEOF 9803 /* end confdefs.h. */ 9804 #if HAVE_DLFCN_H 9805 # include <dlfcn.h> 9806 #endif 9807 9808 int 9809 main () 9810 { 9811 dlopen(0, 0); 9812 ; 9813 return 0; 9814 } 9815 _ACEOF 9816 rm -f conftest.$ac_objext conftest$ac_exeext 9817 if { (ac_try="$ac_link" 9818 case "(($ac_try" in 9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9820 *) ac_try_echo=$ac_try;; 9821 esac 9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9823 (eval "$ac_link") 2>conftest.er1 9824 ac_status=$? 9825 grep -v '^ *+' conftest.er1 >conftest.err 9826 rm -f conftest.er1 9827 cat conftest.err >&5 9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9829 (exit $ac_status); } && 9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9831 { (case "(($ac_try" in 9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9833 *) ac_try_echo=$ac_try;; 9834 esac 9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9836 (eval "$ac_try") 2>&5 9837 ac_status=$? 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9839 (exit $ac_status); }; } && 9840 { ac_try='test -s conftest$ac_exeext' 9841 { (case "(($ac_try" in 9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9843 *) ac_try_echo=$ac_try;; 9844 esac 9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9846 (eval "$ac_try") 2>&5 9847 ac_status=$? 9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9849 (exit $ac_status); }; }; then 9850 9851 cat >>confdefs.h <<\_ACEOF 9852 #define HAVE_LIBDL 1 9853 _ACEOF 9854 libltdl_cv_func_dlopen="yes" 9855 else 9856 echo "$as_me: failed program was:" >&5 9857 sed 's/^/| /' conftest.$ac_ext >&5 9858 9859 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9860 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9861 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9862 echo $ECHO_N "(cached) $ECHO_C" >&6 9863 else 9864 ac_check_lib_save_LIBS=$LIBS 9865 LIBS="-lsvld $LIBS" 9866 cat >conftest.$ac_ext <<_ACEOF 9867 /* confdefs.h. */ 9868 _ACEOF 9869 cat confdefs.h >>conftest.$ac_ext 9870 cat >>conftest.$ac_ext <<_ACEOF 9871 /* end confdefs.h. */ 9872 9873 /* Override any GCC internal prototype to avoid an error. 9874 Use char because int might match the return type of a GCC 9875 builtin and then its argument prototype would still apply. */ 9876 #ifdef __cplusplus 9877 extern "C" 9878 #endif 9879 char dlopen (); 9880 int 9881 main () 9882 { 9883 return dlopen (); 9884 ; 9885 return 0; 9886 } 9887 _ACEOF 9888 rm -f conftest.$ac_objext conftest$ac_exeext 9889 if { (ac_try="$ac_link" 9890 case "(($ac_try" in 9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9892 *) ac_try_echo=$ac_try;; 9893 esac 9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9895 (eval "$ac_link") 2>conftest.er1 9896 ac_status=$? 9897 grep -v '^ *+' conftest.er1 >conftest.err 9898 rm -f conftest.er1 9899 cat conftest.err >&5 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); } && 9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9903 { (case "(($ac_try" in 9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9905 *) ac_try_echo=$ac_try;; 9906 esac 9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9908 (eval "$ac_try") 2>&5 9909 ac_status=$? 9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9911 (exit $ac_status); }; } && 9912 { ac_try='test -s conftest$ac_exeext' 9913 { (case "(($ac_try" in 9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9915 *) ac_try_echo=$ac_try;; 9916 esac 9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9918 (eval "$ac_try") 2>&5 9919 ac_status=$? 9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9921 (exit $ac_status); }; }; then 9922 ac_cv_lib_svld_dlopen=yes 9923 else 9924 echo "$as_me: failed program was:" >&5 9925 sed 's/^/| /' conftest.$ac_ext >&5 9926 9927 ac_cv_lib_svld_dlopen=no 9928 fi 9929 9930 rm -f core conftest.err conftest.$ac_objext \ 9931 conftest$ac_exeext conftest.$ac_ext 9932 LIBS=$ac_check_lib_save_LIBS 9933 fi 9934 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9935 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9936 if test $ac_cv_lib_svld_dlopen = yes; then 9937 9938 cat >>confdefs.h <<\_ACEOF 9939 #define HAVE_LIBDL 1 9940 _ACEOF 9941 9942 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 9943 else 9944 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9945 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9946 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9947 echo $ECHO_N "(cached) $ECHO_C" >&6 9948 else 9949 ac_check_lib_save_LIBS=$LIBS 9950 LIBS="-ldld $LIBS" 9951 cat >conftest.$ac_ext <<_ACEOF 9952 /* confdefs.h. */ 9953 _ACEOF 9954 cat confdefs.h >>conftest.$ac_ext 9955 cat >>conftest.$ac_ext <<_ACEOF 9956 /* end confdefs.h. */ 9957 9958 /* Override any GCC internal prototype to avoid an error. 9959 Use char because int might match the return type of a GCC 9960 builtin and then its argument prototype would still apply. */ 9961 #ifdef __cplusplus 9962 extern "C" 9963 #endif 9964 char dld_link (); 9965 int 9966 main () 9967 { 9968 return dld_link (); 9969 ; 9970 return 0; 9971 } 9972 _ACEOF 9973 rm -f conftest.$ac_objext conftest$ac_exeext 9974 if { (ac_try="$ac_link" 9975 case "(($ac_try" in 9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9977 *) ac_try_echo=$ac_try;; 9978 esac 9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9980 (eval "$ac_link") 2>conftest.er1 9981 ac_status=$? 9982 grep -v '^ *+' conftest.er1 >conftest.err 9983 rm -f conftest.er1 9984 cat conftest.err >&5 9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9986 (exit $ac_status); } && 9987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9988 { (case "(($ac_try" in 9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9990 *) ac_try_echo=$ac_try;; 9991 esac 9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9993 (eval "$ac_try") 2>&5 9994 ac_status=$? 9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9996 (exit $ac_status); }; } && 9997 { ac_try='test -s conftest$ac_exeext' 9998 { (case "(($ac_try" in 9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10000 *) ac_try_echo=$ac_try;; 10001 esac 10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10003 (eval "$ac_try") 2>&5 10004 ac_status=$? 10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10006 (exit $ac_status); }; }; then 10007 ac_cv_lib_dld_dld_link=yes 10008 else 10009 echo "$as_me: failed program was:" >&5 10010 sed 's/^/| /' conftest.$ac_ext >&5 10011 10012 ac_cv_lib_dld_dld_link=no 10013 fi 10014 10015 rm -f core conftest.err conftest.$ac_objext \ 10016 conftest$ac_exeext conftest.$ac_ext 10017 LIBS=$ac_check_lib_save_LIBS 10018 fi 10019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10020 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10021 if test $ac_cv_lib_dld_dld_link = yes; then 10022 10023 cat >>confdefs.h <<\_ACEOF 10024 #define HAVE_DLD 1 10025 _ACEOF 10026 10027 LIBADD_DL="$LIBADD_DL -ldld" 10028 else 10029 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10030 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10031 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10032 echo $ECHO_N "(cached) $ECHO_C" >&6 10033 else 10034 cat >conftest.$ac_ext <<_ACEOF 10035 /* confdefs.h. */ 10036 _ACEOF 10037 cat confdefs.h >>conftest.$ac_ext 10038 cat >>conftest.$ac_ext <<_ACEOF 10039 /* end confdefs.h. */ 10040 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10041 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10042 #define _dyld_func_lookup innocuous__dyld_func_lookup 10043 10044 /* System header to define __stub macros and hopefully few prototypes, 10045 which can conflict with char _dyld_func_lookup (); below. 10046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10047 <limits.h> exists even on freestanding compilers. */ 10048 10049 #ifdef __STDC__ 10050 # include <limits.h> 10051 #else 10052 # include <assert.h> 10053 #endif 10054 10055 #undef _dyld_func_lookup 10056 10057 /* Override any GCC internal prototype to avoid an error. 10058 Use char because int might match the return type of a GCC 10059 builtin and then its argument prototype would still apply. */ 10060 #ifdef __cplusplus 10061 extern "C" 10062 #endif 10063 char _dyld_func_lookup (); 10064 /* The GNU C library defines this for functions which it implements 10065 to always fail with ENOSYS. Some functions are actually named 10066 something starting with __ and the normal name is an alias. */ 10067 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10068 choke me 10069 #endif 10070 10071 int 10072 main () 10073 { 10074 return _dyld_func_lookup (); 10075 ; 10076 return 0; 10077 } 10078 _ACEOF 10079 rm -f conftest.$ac_objext conftest$ac_exeext 10080 if { (ac_try="$ac_link" 10081 case "(($ac_try" in 10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10083 *) ac_try_echo=$ac_try;; 10084 esac 10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10086 (eval "$ac_link") 2>conftest.er1 10087 ac_status=$? 10088 grep -v '^ *+' conftest.er1 >conftest.err 10089 rm -f conftest.er1 10090 cat conftest.err >&5 10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10092 (exit $ac_status); } && 10093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10094 { (case "(($ac_try" in 10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10096 *) ac_try_echo=$ac_try;; 10097 esac 10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10099 (eval "$ac_try") 2>&5 10100 ac_status=$? 10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10102 (exit $ac_status); }; } && 10103 { ac_try='test -s conftest$ac_exeext' 10104 { (case "(($ac_try" in 10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10106 *) ac_try_echo=$ac_try;; 10107 esac 10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10109 (eval "$ac_try") 2>&5 10110 ac_status=$? 10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10112 (exit $ac_status); }; }; then 10113 ac_cv_func__dyld_func_lookup=yes 10114 else 10115 echo "$as_me: failed program was:" >&5 10116 sed 's/^/| /' conftest.$ac_ext >&5 10117 10118 ac_cv_func__dyld_func_lookup=no 10119 fi 10120 10121 rm -f core conftest.err conftest.$ac_objext \ 10122 conftest$ac_exeext conftest.$ac_ext 10123 fi 10124 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10125 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10126 if test $ac_cv_func__dyld_func_lookup = yes; then 10127 10128 cat >>confdefs.h <<\_ACEOF 10129 #define HAVE_DYLD 1 10130 _ACEOF 10131 10132 fi 10133 10134 10135 fi 10136 10137 10138 fi 10139 10140 10141 fi 10142 10143 rm -f core conftest.err conftest.$ac_objext \ 10144 conftest$ac_exeext conftest.$ac_ext 10145 10146 fi 10147 10148 10149 fi 10150 10151 10152 fi 10153 10154 10155 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10156 then 10157 lt_save_LIBS="$LIBS" 10158 LIBS="$LIBS $LIBADD_DL" 10159 10160 for ac_func in dlerror 10161 do 10162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10163 { echo "$as_me:$LINENO: checking for $ac_func" >&5 10164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10166 echo $ECHO_N "(cached) $ECHO_C" >&6 10167 else 10168 cat >conftest.$ac_ext <<_ACEOF 10169 /* confdefs.h. */ 10170 _ACEOF 10171 cat confdefs.h >>conftest.$ac_ext 10172 cat >>conftest.$ac_ext <<_ACEOF 10173 /* end confdefs.h. */ 10174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10175 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10176 #define $ac_func innocuous_$ac_func 10177 10178 /* System header to define __stub macros and hopefully few prototypes, 10179 which can conflict with char $ac_func (); below. 10180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10181 <limits.h> exists even on freestanding compilers. */ 10182 10183 #ifdef __STDC__ 10184 # include <limits.h> 10185 #else 10186 # include <assert.h> 10187 #endif 10188 10189 #undef $ac_func 10190 10191 /* Override any GCC internal prototype to avoid an error. 10192 Use char because int might match the return type of a GCC 10193 builtin and then its argument prototype would still apply. */ 10194 #ifdef __cplusplus 10195 extern "C" 10196 #endif 10197 char $ac_func (); 10198 /* The GNU C library defines this for functions which it implements 10199 to always fail with ENOSYS. Some functions are actually named 10200 something starting with __ and the normal name is an alias. */ 10201 #if defined __stub_$ac_func || defined __stub___$ac_func 10202 choke me 10203 #endif 10204 10205 int 10206 main () 10207 { 10208 return $ac_func (); 10209 ; 10210 return 0; 10211 } 10212 _ACEOF 10213 rm -f conftest.$ac_objext conftest$ac_exeext 10214 if { (ac_try="$ac_link" 10215 case "(($ac_try" in 10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10217 *) ac_try_echo=$ac_try;; 10218 esac 10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10220 (eval "$ac_link") 2>conftest.er1 10221 ac_status=$? 10222 grep -v '^ *+' conftest.er1 >conftest.err 10223 rm -f conftest.er1 10224 cat conftest.err >&5 10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10226 (exit $ac_status); } && 10227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10228 { (case "(($ac_try" in 10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10230 *) ac_try_echo=$ac_try;; 10231 esac 10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10233 (eval "$ac_try") 2>&5 10234 ac_status=$? 10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10236 (exit $ac_status); }; } && 10237 { ac_try='test -s conftest$ac_exeext' 10238 { (case "(($ac_try" in 10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10240 *) ac_try_echo=$ac_try;; 10241 esac 10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10243 (eval "$ac_try") 2>&5 10244 ac_status=$? 10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10246 (exit $ac_status); }; }; then 10247 eval "$as_ac_var=yes" 10248 else 10249 echo "$as_me: failed program was:" >&5 10250 sed 's/^/| /' conftest.$ac_ext >&5 10251 10252 eval "$as_ac_var=no" 10253 fi 10254 10255 rm -f core conftest.err conftest.$ac_objext \ 10256 conftest$ac_exeext conftest.$ac_ext 10257 fi 10258 ac_res=`eval echo '${'$as_ac_var'}'` 10259 { echo "$as_me:$LINENO: result: $ac_res" >&5 10260 echo "${ECHO_T}$ac_res" >&6; } 10261 if test `eval echo '${'$as_ac_var'}'` = yes; then 10262 cat >>confdefs.h <<_ACEOF 10263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10264 _ACEOF 10265 10266 fi 10267 done 10268 10269 LIBS="$lt_save_LIBS" 10270 fi 10271 ac_ext=c 10272 ac_cpp='$CPP $CPPFLAGS' 10273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10275 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10276 10277 10278 10279 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10280 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10281 if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10282 echo $ECHO_N "(cached) $ECHO_C" >&6 10283 else 10284 ac_cv_sys_symbol_underscore=no 10285 cat > conftest.$ac_ext <<EOF 10286 void nm_test_func(){} 10287 int main(){nm_test_func;return 0;} 10288 EOF 10289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10290 (eval $ac_compile) 2>&5 10291 ac_status=$? 10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10293 (exit $ac_status); }; then 10294 # Now try to grab the symbols. 10295 ac_nlist=conftest.nm 10296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10297 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10298 ac_status=$? 10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); } && test -s "$ac_nlist"; then 10301 # See whether the symbols have a leading underscore. 10302 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10303 ac_cv_sys_symbol_underscore=yes 10304 else 10305 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10306 : 10307 else 10308 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10309 fi 10310 fi 10311 else 10312 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10313 fi 10314 else 10315 echo "configure: failed program was:" >&5 10316 cat conftest.c >&5 10317 fi 10318 rm -rf conftest* 10319 10320 fi 10321 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10322 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10323 10324 10325 if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10326 if test x"$libltdl_cv_func_dlopen" = xyes || 10327 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10328 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10329 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10330 if test "${libltdl_cv_need_uscore+set}" = set; then 10331 echo $ECHO_N "(cached) $ECHO_C" >&6 10332 else 10333 libltdl_cv_need_uscore=unknown 10334 save_LIBS="$LIBS" 10335 LIBS="$LIBS $LIBADD_DL" 10336 if test "$cross_compiling" = yes; then : 10337 libltdl_cv_need_uscore=cross 10338 else 10339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10340 lt_status=$lt_dlunknown 10341 cat > conftest.$ac_ext <<EOF 10342 #line 10342 "configure" 10343 #include "confdefs.h" 10344 10345 #if HAVE_DLFCN_H 10346 #include <dlfcn.h> 10347 #endif 10348 10349 #include <stdio.h> 10350 10351 #ifdef RTLD_GLOBAL 10352 # define LT_DLGLOBAL RTLD_GLOBAL 10353 #else 10354 # ifdef DL_GLOBAL 10355 # define LT_DLGLOBAL DL_GLOBAL 10356 # else 10357 # define LT_DLGLOBAL 0 10358 # endif 10359 #endif 10360 10361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10362 find out it does not work in some platform. */ 10363 #ifndef LT_DLLAZY_OR_NOW 10364 # ifdef RTLD_LAZY 10365 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10366 # else 10367 # ifdef DL_LAZY 10368 # define LT_DLLAZY_OR_NOW DL_LAZY 10369 # else 10370 # ifdef RTLD_NOW 10371 # define LT_DLLAZY_OR_NOW RTLD_NOW 10372 # else 10373 # ifdef DL_NOW 10374 # define LT_DLLAZY_OR_NOW DL_NOW 10375 # else 10376 # define LT_DLLAZY_OR_NOW 0 10377 # endif 10378 # endif 10379 # endif 10380 # endif 10381 #endif 10382 10383 #ifdef __cplusplus 10384 extern "C" void exit (int); 10385 #endif 10386 10387 void fnord() { int i=42;} 10388 int main () 10389 { 10390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10391 int status = $lt_dlunknown; 10392 10393 if (self) 10394 { 10395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10397 /* dlclose (self); */ 10398 } 10399 else 10400 puts (dlerror ()); 10401 10402 exit (status); 10403 } 10404 EOF 10405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10406 (eval $ac_link) 2>&5 10407 ac_status=$? 10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10409 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10410 (./conftest; exit; ) >&5 2>/dev/null 10411 lt_status=$? 10412 case x$lt_status in 10413 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10414 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10415 x$lt_dlunknown|x*) ;; 10416 esac 10417 else : 10418 # compilation failed 10419 10420 fi 10421 fi 10422 rm -fr conftest* 10423 10424 LIBS="$save_LIBS" 10425 10426 fi 10427 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10428 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10429 fi 10430 fi 10431 10432 if test x"$libltdl_cv_need_uscore" = xyes; then 10433 10434 cat >>confdefs.h <<\_ACEOF 10435 #define NEED_USCORE 1 10436 _ACEOF 10437 10438 fi 10439 10440 10441 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10442 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10443 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10444 echo $ECHO_N "(cached) $ECHO_C" >&6 10445 else 10446 # PORTME does your system automatically load deplibs for dlopen? 10447 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10448 # For now, we just catch OSes we know something about -- in the 10449 # future, we'll try test this programmatically. 10450 libltdl_cv_sys_dlopen_deplibs=unknown 10451 case "$host_os" in 10452 aix3*|aix4.1.*|aix4.2.*) 10453 # Unknown whether this is true for these versions of AIX, but 10454 # we want this `case' here to explicitly catch those versions. 10455 libltdl_cv_sys_dlopen_deplibs=unknown 10456 ;; 10457 aix[45]*) 10458 libltdl_cv_sys_dlopen_deplibs=yes 10459 ;; 10460 darwin*) 10461 # Assuming the user has installed a libdl from somewhere, this is true 10462 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10463 libltdl_cv_sys_dlopen_deplibs=yes 10464 ;; 10465 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10466 # GNU and its variants, using gnu ld.so (Glibc) 10467 libltdl_cv_sys_dlopen_deplibs=yes 10468 ;; 10469 hpux10*|hpux11*) 10470 libltdl_cv_sys_dlopen_deplibs=yes 10471 ;; 10472 interix*) 10473 libltdl_cv_sys_dlopen_deplibs=yes 10474 ;; 10475 irix[12345]*|irix6.[01]*) 10476 # Catch all versions of IRIX before 6.2, and indicate that we don't 10477 # know how it worked for any of those versions. 10478 libltdl_cv_sys_dlopen_deplibs=unknown 10479 ;; 10480 irix*) 10481 # The case above catches anything before 6.2, and it's known that 10482 # at 6.2 and later dlopen does load deplibs. 10483 libltdl_cv_sys_dlopen_deplibs=yes 10484 ;; 10485 netbsd*) 10486 libltdl_cv_sys_dlopen_deplibs=yes 10487 ;; 10488 openbsd*) 10489 libltdl_cv_sys_dlopen_deplibs=yes 10490 ;; 10491 osf[1234]*) 10492 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10493 # it did *not* use an RPATH in a shared library to find objects the 10494 # library depends on, so we explicitly say `no'. 10495 libltdl_cv_sys_dlopen_deplibs=no 10496 ;; 10497 osf5.0|osf5.0a|osf5.1) 10498 # dlopen *does* load deplibs and with the right loader patch applied 10499 # it even uses RPATH in a shared library to search for shared objects 10500 # that the library depends on, but there's no easy way to know if that 10501 # patch is installed. Since this is the case, all we can really 10502 # say is unknown -- it depends on the patch being installed. If 10503 # it is, this changes to `yes'. Without it, it would be `no'. 10504 libltdl_cv_sys_dlopen_deplibs=unknown 10505 ;; 10506 osf*) 10507 # the two cases above should catch all versions of osf <= 5.1. Read 10508 # the comments above for what we know about them. 10509 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10510 # is used to find them so we can finally say `yes'. 10511 libltdl_cv_sys_dlopen_deplibs=yes 10512 ;; 10513 solaris*) 10514 libltdl_cv_sys_dlopen_deplibs=yes 10515 ;; 10516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10517 libltdl_cv_sys_dlopen_deplibs=yes 10518 ;; 10519 esac 10520 10521 fi 10522 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10523 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10524 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10525 10526 cat >>confdefs.h <<\_ACEOF 10527 #define LTDL_DLOPEN_DEPLIBS 1 10528 _ACEOF 10529 10530 fi 10531 10532 10533 for ac_header in argz.h 10534 do 10535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10537 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10540 echo $ECHO_N "(cached) $ECHO_C" >&6 10541 fi 10542 ac_res=`eval echo '${'$as_ac_Header'}'` 10543 { echo "$as_me:$LINENO: result: $ac_res" >&5 10544 echo "${ECHO_T}$ac_res" >&6; } 10545 else 10546 # Is the header compilable? 10547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 10548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10549 cat >conftest.$ac_ext <<_ACEOF 10550 /* confdefs.h. */ 10551 _ACEOF 10552 cat confdefs.h >>conftest.$ac_ext 10553 cat >>conftest.$ac_ext <<_ACEOF 10554 /* end confdefs.h. */ 10555 $ac_includes_default 10556 #include <$ac_header> 10557 _ACEOF 10558 rm -f conftest.$ac_objext 10559 if { (ac_try="$ac_compile" 10560 case "(($ac_try" in 10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10562 *) ac_try_echo=$ac_try;; 10563 esac 10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10565 (eval "$ac_compile") 2>conftest.er1 10566 ac_status=$? 10567 grep -v '^ *+' conftest.er1 >conftest.err 10568 rm -f conftest.er1 10569 cat conftest.err >&5 10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10571 (exit $ac_status); } && 10572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10573 { (case "(($ac_try" in 10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10575 *) ac_try_echo=$ac_try;; 10576 esac 10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10578 (eval "$ac_try") 2>&5 10579 ac_status=$? 10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10581 (exit $ac_status); }; } && 10582 { ac_try='test -s conftest.$ac_objext' 10583 { (case "(($ac_try" in 10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10585 *) ac_try_echo=$ac_try;; 10586 esac 10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10588 (eval "$ac_try") 2>&5 10589 ac_status=$? 10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10591 (exit $ac_status); }; }; then 10592 ac_header_compiler=yes 10593 else 10594 echo "$as_me: failed program was:" >&5 10595 sed 's/^/| /' conftest.$ac_ext >&5 10596 10597 ac_header_compiler=no 10598 fi 10599 10600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10602 echo "${ECHO_T}$ac_header_compiler" >&6; } 10603 10604 # Is the header present? 10605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 10606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10607 cat >conftest.$ac_ext <<_ACEOF 10608 /* confdefs.h. */ 10609 _ACEOF 10610 cat confdefs.h >>conftest.$ac_ext 10611 cat >>conftest.$ac_ext <<_ACEOF 10612 /* end confdefs.h. */ 10613 #include <$ac_header> 10614 _ACEOF 10615 if { (ac_try="$ac_cpp conftest.$ac_ext" 10616 case "(($ac_try" in 10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10618 *) ac_try_echo=$ac_try;; 10619 esac 10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10622 ac_status=$? 10623 grep -v '^ *+' conftest.er1 >conftest.err 10624 rm -f conftest.er1 10625 cat conftest.err >&5 10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10627 (exit $ac_status); } >/dev/null; then 10628 if test -s conftest.err; then 10629 ac_cpp_err=$ac_c_preproc_warn_flag 10630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10631 else 10632 ac_cpp_err= 10633 fi 10634 else 10635 ac_cpp_err=yes 10636 fi 10637 if test -z "$ac_cpp_err"; then 10638 ac_header_preproc=yes 10639 else 10640 echo "$as_me: failed program was:" >&5 10641 sed 's/^/| /' conftest.$ac_ext >&5 10642 10643 ac_header_preproc=no 10644 fi 10645 10646 rm -f conftest.err conftest.$ac_ext 10647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10648 echo "${ECHO_T}$ac_header_preproc" >&6; } 10649 10650 # So? What about this header? 10651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10652 yes:no: ) 10653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10657 ac_header_preproc=yes 10658 ;; 10659 no:yes:* ) 10660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10672 ( cat <<\_ASBOX 10673 ## ------------------------------ ## 10674 ## Report this to bugs@yourdomain ## 10675 ## ------------------------------ ## 10676 _ASBOX 10677 ) | sed "s/^/$as_me: WARNING: /" >&2 10678 ;; 10679 esac 10680 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10683 echo $ECHO_N "(cached) $ECHO_C" >&6 10684 else 10685 eval "$as_ac_Header=\$ac_header_preproc" 10686 fi 10687 ac_res=`eval echo '${'$as_ac_Header'}'` 10688 { echo "$as_me:$LINENO: result: $ac_res" >&5 10689 echo "${ECHO_T}$ac_res" >&6; } 10690 10691 fi 10692 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10693 cat >>confdefs.h <<_ACEOF 10694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10695 _ACEOF 10696 10697 fi 10698 10699 done 10700 10701 10702 { echo "$as_me:$LINENO: checking for error_t" >&5 10703 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10704 if test "${ac_cv_type_error_t+set}" = set; then 10705 echo $ECHO_N "(cached) $ECHO_C" >&6 10706 else 10707 cat >conftest.$ac_ext <<_ACEOF 10708 /* confdefs.h. */ 10709 _ACEOF 10710 cat confdefs.h >>conftest.$ac_ext 10711 cat >>conftest.$ac_ext <<_ACEOF 10712 /* end confdefs.h. */ 10713 #if HAVE_ARGZ_H 10714 # include <argz.h> 10715 #endif 10716 10717 typedef error_t ac__type_new_; 10718 int 10719 main () 10720 { 10721 if ((ac__type_new_ *) 0) 10722 return 0; 10723 if (sizeof (ac__type_new_)) 10724 return 0; 10725 ; 10726 return 0; 10727 } 10728 _ACEOF 10729 rm -f conftest.$ac_objext 10730 if { (ac_try="$ac_compile" 10731 case "(($ac_try" in 10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10733 *) ac_try_echo=$ac_try;; 10734 esac 10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10736 (eval "$ac_compile") 2>conftest.er1 10737 ac_status=$? 10738 grep -v '^ *+' conftest.er1 >conftest.err 10739 rm -f conftest.er1 10740 cat conftest.err >&5 10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10742 (exit $ac_status); } && 10743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10744 { (case "(($ac_try" in 10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10746 *) ac_try_echo=$ac_try;; 10747 esac 10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10749 (eval "$ac_try") 2>&5 10750 ac_status=$? 10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10752 (exit $ac_status); }; } && 10753 { ac_try='test -s conftest.$ac_objext' 10754 { (case "(($ac_try" in 10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10756 *) ac_try_echo=$ac_try;; 10757 esac 10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10759 (eval "$ac_try") 2>&5 10760 ac_status=$? 10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10762 (exit $ac_status); }; }; then 10763 ac_cv_type_error_t=yes 10764 else 10765 echo "$as_me: failed program was:" >&5 10766 sed 's/^/| /' conftest.$ac_ext >&5 10767 10768 ac_cv_type_error_t=no 10769 fi 10770 10771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10772 fi 10773 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10774 echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10775 if test $ac_cv_type_error_t = yes; then 10776 10777 cat >>confdefs.h <<_ACEOF 10778 #define HAVE_ERROR_T 1 10779 _ACEOF 10780 10781 10782 else 10783 10784 cat >>confdefs.h <<\_ACEOF 10785 #define error_t int 10786 _ACEOF 10787 10788 fi 10789 10790 10791 10792 10793 10794 10795 10796 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10797 do 10798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10799 { echo "$as_me:$LINENO: checking for $ac_func" >&5 10800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10802 echo $ECHO_N "(cached) $ECHO_C" >&6 10803 else 10804 cat >conftest.$ac_ext <<_ACEOF 10805 /* confdefs.h. */ 10806 _ACEOF 10807 cat confdefs.h >>conftest.$ac_ext 10808 cat >>conftest.$ac_ext <<_ACEOF 10809 /* end confdefs.h. */ 10810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10812 #define $ac_func innocuous_$ac_func 10813 10814 /* System header to define __stub macros and hopefully few prototypes, 10815 which can conflict with char $ac_func (); below. 10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10817 <limits.h> exists even on freestanding compilers. */ 10818 10819 #ifdef __STDC__ 10820 # include <limits.h> 10821 #else 10822 # include <assert.h> 10823 #endif 10824 10825 #undef $ac_func 10826 10827 /* Override any GCC internal prototype to avoid an error. 10828 Use char because int might match the return type of a GCC 10829 builtin and then its argument prototype would still apply. */ 10830 #ifdef __cplusplus 10831 extern "C" 10832 #endif 10833 char $ac_func (); 10834 /* The GNU C library defines this for functions which it implements 10835 to always fail with ENOSYS. Some functions are actually named 10836 something starting with __ and the normal name is an alias. */ 10837 #if defined __stub_$ac_func || defined __stub___$ac_func 10838 choke me 10839 #endif 10840 10841 int 10842 main () 10843 { 10844 return $ac_func (); 10845 ; 10846 return 0; 10847 } 10848 _ACEOF 10849 rm -f conftest.$ac_objext conftest$ac_exeext 10850 if { (ac_try="$ac_link" 10851 case "(($ac_try" in 10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10853 *) ac_try_echo=$ac_try;; 10854 esac 10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10856 (eval "$ac_link") 2>conftest.er1 10857 ac_status=$? 10858 grep -v '^ *+' conftest.er1 >conftest.err 10859 rm -f conftest.er1 10860 cat conftest.err >&5 10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10862 (exit $ac_status); } && 10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10864 { (case "(($ac_try" in 10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10866 *) ac_try_echo=$ac_try;; 10867 esac 10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10869 (eval "$ac_try") 2>&5 10870 ac_status=$? 10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10872 (exit $ac_status); }; } && 10873 { ac_try='test -s conftest$ac_exeext' 10874 { (case "(($ac_try" in 10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10876 *) ac_try_echo=$ac_try;; 10877 esac 10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10879 (eval "$ac_try") 2>&5 10880 ac_status=$? 10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10882 (exit $ac_status); }; }; then 10883 eval "$as_ac_var=yes" 10884 else 10885 echo "$as_me: failed program was:" >&5 10886 sed 's/^/| /' conftest.$ac_ext >&5 10887 10888 eval "$as_ac_var=no" 10889 fi 10890 10891 rm -f core conftest.err conftest.$ac_objext \ 10892 conftest$ac_exeext conftest.$ac_ext 10893 fi 10894 ac_res=`eval echo '${'$as_ac_var'}'` 10895 { echo "$as_me:$LINENO: result: $ac_res" >&5 10896 echo "${ECHO_T}$ac_res" >&6; } 10897 if test `eval echo '${'$as_ac_var'}'` = yes; then 10898 cat >>confdefs.h <<_ACEOF 10899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10900 _ACEOF 10901 10902 fi 10903 done 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 10932 stdio.h unistd.h 10933 do 10934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10936 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10939 echo $ECHO_N "(cached) $ECHO_C" >&6 10940 fi 10941 ac_res=`eval echo '${'$as_ac_Header'}'` 10942 { echo "$as_me:$LINENO: result: $ac_res" >&5 10943 echo "${ECHO_T}$ac_res" >&6; } 10944 else 10945 # Is the header compilable? 10946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 10947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10948 cat >conftest.$ac_ext <<_ACEOF 10949 /* confdefs.h. */ 10950 _ACEOF 10951 cat confdefs.h >>conftest.$ac_ext 10952 cat >>conftest.$ac_ext <<_ACEOF 10953 /* end confdefs.h. */ 10954 $ac_includes_default 10955 #include <$ac_header> 10956 _ACEOF 10957 rm -f conftest.$ac_objext 10958 if { (ac_try="$ac_compile" 10959 case "(($ac_try" in 10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10961 *) ac_try_echo=$ac_try;; 10962 esac 10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10964 (eval "$ac_compile") 2>conftest.er1 10965 ac_status=$? 10966 grep -v '^ *+' conftest.er1 >conftest.err 10967 rm -f conftest.er1 10968 cat conftest.err >&5 10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10970 (exit $ac_status); } && 10971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10972 { (case "(($ac_try" in 10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10974 *) ac_try_echo=$ac_try;; 10975 esac 10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10977 (eval "$ac_try") 2>&5 10978 ac_status=$? 10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10980 (exit $ac_status); }; } && 10981 { ac_try='test -s conftest.$ac_objext' 10982 { (case "(($ac_try" in 10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10984 *) ac_try_echo=$ac_try;; 10985 esac 10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10987 (eval "$ac_try") 2>&5 10988 ac_status=$? 10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10990 (exit $ac_status); }; }; then 10991 ac_header_compiler=yes 10992 else 10993 echo "$as_me: failed program was:" >&5 10994 sed 's/^/| /' conftest.$ac_ext >&5 10995 10996 ac_header_compiler=no 10997 fi 10998 10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11001 echo "${ECHO_T}$ac_header_compiler" >&6; } 11002 11003 # Is the header present? 11004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11006 cat >conftest.$ac_ext <<_ACEOF 11007 /* confdefs.h. */ 11008 _ACEOF 11009 cat confdefs.h >>conftest.$ac_ext 11010 cat >>conftest.$ac_ext <<_ACEOF 11011 /* end confdefs.h. */ 11012 #include <$ac_header> 11013 _ACEOF 11014 if { (ac_try="$ac_cpp conftest.$ac_ext" 11015 case "(($ac_try" in 11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11017 *) ac_try_echo=$ac_try;; 11018 esac 11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11021 ac_status=$? 11022 grep -v '^ *+' conftest.er1 >conftest.err 11023 rm -f conftest.er1 11024 cat conftest.err >&5 11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11026 (exit $ac_status); } >/dev/null; then 11027 if test -s conftest.err; then 11028 ac_cpp_err=$ac_c_preproc_warn_flag 11029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11030 else 11031 ac_cpp_err= 11032 fi 11033 else 11034 ac_cpp_err=yes 11035 fi 11036 if test -z "$ac_cpp_err"; then 11037 ac_header_preproc=yes 11038 else 11039 echo "$as_me: failed program was:" >&5 11040 sed 's/^/| /' conftest.$ac_ext >&5 11041 11042 ac_header_preproc=no 11043 fi 11044 11045 rm -f conftest.err conftest.$ac_ext 11046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11047 echo "${ECHO_T}$ac_header_preproc" >&6; } 11048 11049 # So? What about this header? 11050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11051 yes:no: ) 11052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11056 ac_header_preproc=yes 11057 ;; 11058 no:yes:* ) 11059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11071 ( cat <<\_ASBOX 11072 ## ------------------------------ ## 11073 ## Report this to bugs@yourdomain ## 11074 ## ------------------------------ ## 11075 _ASBOX 11076 ) | sed "s/^/$as_me: WARNING: /" >&2 11077 ;; 11078 esac 11079 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11082 echo $ECHO_N "(cached) $ECHO_C" >&6 11083 else 11084 eval "$as_ac_Header=\$ac_header_preproc" 11085 fi 11086 ac_res=`eval echo '${'$as_ac_Header'}'` 11087 { echo "$as_me:$LINENO: result: $ac_res" >&5 11088 echo "${ECHO_T}$ac_res" >&6; } 11089 11090 fi 11091 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11092 cat >>confdefs.h <<_ACEOF 11093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11094 _ACEOF 11095 11096 fi 11097 11098 done 11099 11100 11101 11102 11103 11104 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11105 do 11106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11108 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11111 echo $ECHO_N "(cached) $ECHO_C" >&6 11112 fi 11113 ac_res=`eval echo '${'$as_ac_Header'}'` 11114 { echo "$as_me:$LINENO: result: $ac_res" >&5 11115 echo "${ECHO_T}$ac_res" >&6; } 11116 else 11117 # Is the header compilable? 11118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11120 cat >conftest.$ac_ext <<_ACEOF 11121 /* confdefs.h. */ 11122 _ACEOF 11123 cat confdefs.h >>conftest.$ac_ext 11124 cat >>conftest.$ac_ext <<_ACEOF 11125 /* end confdefs.h. */ 11126 $ac_includes_default 11127 #include <$ac_header> 11128 _ACEOF 11129 rm -f conftest.$ac_objext 11130 if { (ac_try="$ac_compile" 11131 case "(($ac_try" in 11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11133 *) ac_try_echo=$ac_try;; 11134 esac 11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11136 (eval "$ac_compile") 2>conftest.er1 11137 ac_status=$? 11138 grep -v '^ *+' conftest.er1 >conftest.err 11139 rm -f conftest.er1 11140 cat conftest.err >&5 11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11142 (exit $ac_status); } && 11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11144 { (case "(($ac_try" in 11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11146 *) ac_try_echo=$ac_try;; 11147 esac 11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11149 (eval "$ac_try") 2>&5 11150 ac_status=$? 11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11152 (exit $ac_status); }; } && 11153 { ac_try='test -s conftest.$ac_objext' 11154 { (case "(($ac_try" in 11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11156 *) ac_try_echo=$ac_try;; 11157 esac 11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11159 (eval "$ac_try") 2>&5 11160 ac_status=$? 11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11162 (exit $ac_status); }; }; then 11163 ac_header_compiler=yes 11164 else 11165 echo "$as_me: failed program was:" >&5 11166 sed 's/^/| /' conftest.$ac_ext >&5 11167 11168 ac_header_compiler=no 11169 fi 11170 11171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11173 echo "${ECHO_T}$ac_header_compiler" >&6; } 11174 11175 # Is the header present? 11176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11178 cat >conftest.$ac_ext <<_ACEOF 11179 /* confdefs.h. */ 11180 _ACEOF 11181 cat confdefs.h >>conftest.$ac_ext 11182 cat >>conftest.$ac_ext <<_ACEOF 11183 /* end confdefs.h. */ 11184 #include <$ac_header> 11185 _ACEOF 11186 if { (ac_try="$ac_cpp conftest.$ac_ext" 11187 case "(($ac_try" in 11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11189 *) ac_try_echo=$ac_try;; 11190 esac 11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11193 ac_status=$? 11194 grep -v '^ *+' conftest.er1 >conftest.err 11195 rm -f conftest.er1 11196 cat conftest.err >&5 11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11198 (exit $ac_status); } >/dev/null; then 11199 if test -s conftest.err; then 11200 ac_cpp_err=$ac_c_preproc_warn_flag 11201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11202 else 11203 ac_cpp_err= 11204 fi 11205 else 11206 ac_cpp_err=yes 11207 fi 11208 if test -z "$ac_cpp_err"; then 11209 ac_header_preproc=yes 11210 else 11211 echo "$as_me: failed program was:" >&5 11212 sed 's/^/| /' conftest.$ac_ext >&5 11213 11214 ac_header_preproc=no 11215 fi 11216 11217 rm -f conftest.err conftest.$ac_ext 11218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11219 echo "${ECHO_T}$ac_header_preproc" >&6; } 11220 11221 # So? What about this header? 11222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11223 yes:no: ) 11224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11228 ac_header_preproc=yes 11229 ;; 11230 no:yes:* ) 11231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11243 ( cat <<\_ASBOX 11244 ## ------------------------------ ## 11245 ## Report this to bugs@yourdomain ## 11246 ## ------------------------------ ## 11247 _ASBOX 11248 ) | sed "s/^/$as_me: WARNING: /" >&2 11249 ;; 11250 esac 11251 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11254 echo $ECHO_N "(cached) $ECHO_C" >&6 11255 else 11256 eval "$as_ac_Header=\$ac_header_preproc" 11257 fi 11258 ac_res=`eval echo '${'$as_ac_Header'}'` 11259 { echo "$as_me:$LINENO: result: $ac_res" >&5 11260 echo "${ECHO_T}$ac_res" >&6; } 11261 11262 fi 11263 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11264 cat >>confdefs.h <<_ACEOF 11265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11266 _ACEOF 11267 11268 fi 11269 11270 done 11271 11272 11273 11274 for ac_header in string.h strings.h 11275 do 11276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11278 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11281 echo $ECHO_N "(cached) $ECHO_C" >&6 11282 fi 11283 ac_res=`eval echo '${'$as_ac_Header'}'` 11284 { echo "$as_me:$LINENO: result: $ac_res" >&5 11285 echo "${ECHO_T}$ac_res" >&6; } 11286 else 11287 # Is the header compilable? 11288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11290 cat >conftest.$ac_ext <<_ACEOF 11291 /* confdefs.h. */ 11292 _ACEOF 11293 cat confdefs.h >>conftest.$ac_ext 11294 cat >>conftest.$ac_ext <<_ACEOF 11295 /* end confdefs.h. */ 11296 $ac_includes_default 11297 #include <$ac_header> 11298 _ACEOF 11299 rm -f conftest.$ac_objext 11300 if { (ac_try="$ac_compile" 11301 case "(($ac_try" in 11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11303 *) ac_try_echo=$ac_try;; 11304 esac 11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11306 (eval "$ac_compile") 2>conftest.er1 11307 ac_status=$? 11308 grep -v '^ *+' conftest.er1 >conftest.err 11309 rm -f conftest.er1 11310 cat conftest.err >&5 11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11312 (exit $ac_status); } && 11313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11314 { (case "(($ac_try" in 11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11316 *) ac_try_echo=$ac_try;; 11317 esac 11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11319 (eval "$ac_try") 2>&5 11320 ac_status=$? 11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11322 (exit $ac_status); }; } && 11323 { ac_try='test -s conftest.$ac_objext' 11324 { (case "(($ac_try" in 11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11326 *) ac_try_echo=$ac_try;; 11327 esac 11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11329 (eval "$ac_try") 2>&5 11330 ac_status=$? 11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11332 (exit $ac_status); }; }; then 11333 ac_header_compiler=yes 11334 else 11335 echo "$as_me: failed program was:" >&5 11336 sed 's/^/| /' conftest.$ac_ext >&5 11337 11338 ac_header_compiler=no 11339 fi 11340 11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11343 echo "${ECHO_T}$ac_header_compiler" >&6; } 11344 11345 # Is the header present? 11346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11348 cat >conftest.$ac_ext <<_ACEOF 11349 /* confdefs.h. */ 11350 _ACEOF 11351 cat confdefs.h >>conftest.$ac_ext 11352 cat >>conftest.$ac_ext <<_ACEOF 11353 /* end confdefs.h. */ 11354 #include <$ac_header> 11355 _ACEOF 11356 if { (ac_try="$ac_cpp conftest.$ac_ext" 11357 case "(($ac_try" in 11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11359 *) ac_try_echo=$ac_try;; 11360 esac 11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11363 ac_status=$? 11364 grep -v '^ *+' conftest.er1 >conftest.err 11365 rm -f conftest.er1 11366 cat conftest.err >&5 11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11368 (exit $ac_status); } >/dev/null; then 11369 if test -s conftest.err; then 11370 ac_cpp_err=$ac_c_preproc_warn_flag 11371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11372 else 11373 ac_cpp_err= 11374 fi 11375 else 11376 ac_cpp_err=yes 11377 fi 11378 if test -z "$ac_cpp_err"; then 11379 ac_header_preproc=yes 11380 else 11381 echo "$as_me: failed program was:" >&5 11382 sed 's/^/| /' conftest.$ac_ext >&5 11383 11384 ac_header_preproc=no 11385 fi 11386 11387 rm -f conftest.err conftest.$ac_ext 11388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11389 echo "${ECHO_T}$ac_header_preproc" >&6; } 11390 11391 # So? What about this header? 11392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11393 yes:no: ) 11394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11398 ac_header_preproc=yes 11399 ;; 11400 no:yes:* ) 11401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11413 ( cat <<\_ASBOX 11414 ## ------------------------------ ## 11415 ## Report this to bugs@yourdomain ## 11416 ## ------------------------------ ## 11417 _ASBOX 11418 ) | sed "s/^/$as_me: WARNING: /" >&2 11419 ;; 11420 esac 11421 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11424 echo $ECHO_N "(cached) $ECHO_C" >&6 11425 else 11426 eval "$as_ac_Header=\$ac_header_preproc" 11427 fi 11428 ac_res=`eval echo '${'$as_ac_Header'}'` 11429 { echo "$as_me:$LINENO: result: $ac_res" >&5 11430 echo "${ECHO_T}$ac_res" >&6; } 11431 11432 fi 11433 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11434 cat >>confdefs.h <<_ACEOF 11435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11436 _ACEOF 11437 break 11438 fi 11439 11440 done 11441 11442 11443 11444 11445 for ac_func in strchr index 11446 do 11447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11448 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11451 echo $ECHO_N "(cached) $ECHO_C" >&6 11452 else 11453 cat >conftest.$ac_ext <<_ACEOF 11454 /* confdefs.h. */ 11455 _ACEOF 11456 cat confdefs.h >>conftest.$ac_ext 11457 cat >>conftest.$ac_ext <<_ACEOF 11458 /* end confdefs.h. */ 11459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11460 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11461 #define $ac_func innocuous_$ac_func 11462 11463 /* System header to define __stub macros and hopefully few prototypes, 11464 which can conflict with char $ac_func (); below. 11465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11466 <limits.h> exists even on freestanding compilers. */ 11467 11468 #ifdef __STDC__ 11469 # include <limits.h> 11470 #else 11471 # include <assert.h> 11472 #endif 11473 11474 #undef $ac_func 11475 11476 /* Override any GCC internal prototype to avoid an error. 11477 Use char because int might match the return type of a GCC 11478 builtin and then its argument prototype would still apply. */ 11479 #ifdef __cplusplus 11480 extern "C" 11481 #endif 11482 char $ac_func (); 11483 /* The GNU C library defines this for functions which it implements 11484 to always fail with ENOSYS. Some functions are actually named 11485 something starting with __ and the normal name is an alias. */ 11486 #if defined __stub_$ac_func || defined __stub___$ac_func 11487 choke me 11488 #endif 11489 11490 int 11491 main () 11492 { 11493 return $ac_func (); 11494 ; 11495 return 0; 11496 } 11497 _ACEOF 11498 rm -f conftest.$ac_objext conftest$ac_exeext 11499 if { (ac_try="$ac_link" 11500 case "(($ac_try" in 11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11502 *) ac_try_echo=$ac_try;; 11503 esac 11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11505 (eval "$ac_link") 2>conftest.er1 11506 ac_status=$? 11507 grep -v '^ *+' conftest.er1 >conftest.err 11508 rm -f conftest.er1 11509 cat conftest.err >&5 11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11511 (exit $ac_status); } && 11512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11513 { (case "(($ac_try" in 11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11515 *) ac_try_echo=$ac_try;; 11516 esac 11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11518 (eval "$ac_try") 2>&5 11519 ac_status=$? 11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11521 (exit $ac_status); }; } && 11522 { ac_try='test -s conftest$ac_exeext' 11523 { (case "(($ac_try" in 11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11525 *) ac_try_echo=$ac_try;; 11526 esac 11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11528 (eval "$ac_try") 2>&5 11529 ac_status=$? 11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11531 (exit $ac_status); }; }; then 11532 eval "$as_ac_var=yes" 11533 else 11534 echo "$as_me: failed program was:" >&5 11535 sed 's/^/| /' conftest.$ac_ext >&5 11536 11537 eval "$as_ac_var=no" 11538 fi 11539 11540 rm -f core conftest.err conftest.$ac_objext \ 11541 conftest$ac_exeext conftest.$ac_ext 11542 fi 11543 ac_res=`eval echo '${'$as_ac_var'}'` 11544 { echo "$as_me:$LINENO: result: $ac_res" >&5 11545 echo "${ECHO_T}$ac_res" >&6; } 11546 if test `eval echo '${'$as_ac_var'}'` = yes; then 11547 cat >>confdefs.h <<_ACEOF 11548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11549 _ACEOF 11550 break 11551 fi 11552 done 11553 11554 11555 11556 for ac_func in strrchr rindex 11557 do 11558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11559 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11562 echo $ECHO_N "(cached) $ECHO_C" >&6 11563 else 11564 cat >conftest.$ac_ext <<_ACEOF 11565 /* confdefs.h. */ 11566 _ACEOF 11567 cat confdefs.h >>conftest.$ac_ext 11568 cat >>conftest.$ac_ext <<_ACEOF 11569 /* end confdefs.h. */ 11570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11571 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11572 #define $ac_func innocuous_$ac_func 11573 11574 /* System header to define __stub macros and hopefully few prototypes, 11575 which can conflict with char $ac_func (); below. 11576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11577 <limits.h> exists even on freestanding compilers. */ 11578 11579 #ifdef __STDC__ 11580 # include <limits.h> 11581 #else 11582 # include <assert.h> 11583 #endif 11584 11585 #undef $ac_func 11586 11587 /* Override any GCC internal prototype to avoid an error. 11588 Use char because int might match the return type of a GCC 11589 builtin and then its argument prototype would still apply. */ 11590 #ifdef __cplusplus 11591 extern "C" 11592 #endif 11593 char $ac_func (); 11594 /* The GNU C library defines this for functions which it implements 11595 to always fail with ENOSYS. Some functions are actually named 11596 something starting with __ and the normal name is an alias. */ 11597 #if defined __stub_$ac_func || defined __stub___$ac_func 11598 choke me 11599 #endif 11600 11601 int 11602 main () 11603 { 11604 return $ac_func (); 11605 ; 11606 return 0; 11607 } 11608 _ACEOF 11609 rm -f conftest.$ac_objext conftest$ac_exeext 11610 if { (ac_try="$ac_link" 11611 case "(($ac_try" in 11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11613 *) ac_try_echo=$ac_try;; 11614 esac 11615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11616 (eval "$ac_link") 2>conftest.er1 11617 ac_status=$? 11618 grep -v '^ *+' conftest.er1 >conftest.err 11619 rm -f conftest.er1 11620 cat conftest.err >&5 11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11622 (exit $ac_status); } && 11623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11624 { (case "(($ac_try" in 11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11626 *) ac_try_echo=$ac_try;; 11627 esac 11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11629 (eval "$ac_try") 2>&5 11630 ac_status=$? 11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11632 (exit $ac_status); }; } && 11633 { ac_try='test -s conftest$ac_exeext' 11634 { (case "(($ac_try" in 11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11636 *) ac_try_echo=$ac_try;; 11637 esac 11638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11639 (eval "$ac_try") 2>&5 11640 ac_status=$? 11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11642 (exit $ac_status); }; }; then 11643 eval "$as_ac_var=yes" 11644 else 11645 echo "$as_me: failed program was:" >&5 11646 sed 's/^/| /' conftest.$ac_ext >&5 11647 11648 eval "$as_ac_var=no" 11649 fi 11650 11651 rm -f core conftest.err conftest.$ac_objext \ 11652 conftest$ac_exeext conftest.$ac_ext 11653 fi 11654 ac_res=`eval echo '${'$as_ac_var'}'` 11655 { echo "$as_me:$LINENO: result: $ac_res" >&5 11656 echo "${ECHO_T}$ac_res" >&6; } 11657 if test `eval echo '${'$as_ac_var'}'` = yes; then 11658 cat >>confdefs.h <<_ACEOF 11659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11660 _ACEOF 11661 break 11662 fi 11663 done 11664 11665 11666 11667 for ac_func in memcpy bcopy 11668 do 11669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11670 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11673 echo $ECHO_N "(cached) $ECHO_C" >&6 11674 else 11675 cat >conftest.$ac_ext <<_ACEOF 11676 /* confdefs.h. */ 11677 _ACEOF 11678 cat confdefs.h >>conftest.$ac_ext 11679 cat >>conftest.$ac_ext <<_ACEOF 11680 /* end confdefs.h. */ 11681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11682 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11683 #define $ac_func innocuous_$ac_func 11684 11685 /* System header to define __stub macros and hopefully few prototypes, 11686 which can conflict with char $ac_func (); below. 11687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11688 <limits.h> exists even on freestanding compilers. */ 11689 11690 #ifdef __STDC__ 11691 # include <limits.h> 11692 #else 11693 # include <assert.h> 11694 #endif 11695 11696 #undef $ac_func 11697 11698 /* Override any GCC internal prototype to avoid an error. 11699 Use char because int might match the return type of a GCC 11700 builtin and then its argument prototype would still apply. */ 11701 #ifdef __cplusplus 11702 extern "C" 11703 #endif 11704 char $ac_func (); 11705 /* The GNU C library defines this for functions which it implements 11706 to always fail with ENOSYS. Some functions are actually named 11707 something starting with __ and the normal name is an alias. */ 11708 #if defined __stub_$ac_func || defined __stub___$ac_func 11709 choke me 11710 #endif 11711 11712 int 11713 main () 11714 { 11715 return $ac_func (); 11716 ; 11717 return 0; 11718 } 11719 _ACEOF 11720 rm -f conftest.$ac_objext conftest$ac_exeext 11721 if { (ac_try="$ac_link" 11722 case "(($ac_try" in 11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11724 *) ac_try_echo=$ac_try;; 11725 esac 11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11727 (eval "$ac_link") 2>conftest.er1 11728 ac_status=$? 11729 grep -v '^ *+' conftest.er1 >conftest.err 11730 rm -f conftest.er1 11731 cat conftest.err >&5 11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11733 (exit $ac_status); } && 11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11735 { (case "(($ac_try" in 11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11737 *) ac_try_echo=$ac_try;; 11738 esac 11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11740 (eval "$ac_try") 2>&5 11741 ac_status=$? 11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11743 (exit $ac_status); }; } && 11744 { ac_try='test -s conftest$ac_exeext' 11745 { (case "(($ac_try" in 11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11747 *) ac_try_echo=$ac_try;; 11748 esac 11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11750 (eval "$ac_try") 2>&5 11751 ac_status=$? 11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11753 (exit $ac_status); }; }; then 11754 eval "$as_ac_var=yes" 11755 else 11756 echo "$as_me: failed program was:" >&5 11757 sed 's/^/| /' conftest.$ac_ext >&5 11758 11759 eval "$as_ac_var=no" 11760 fi 11761 11762 rm -f core conftest.err conftest.$ac_objext \ 11763 conftest$ac_exeext conftest.$ac_ext 11764 fi 11765 ac_res=`eval echo '${'$as_ac_var'}'` 11766 { echo "$as_me:$LINENO: result: $ac_res" >&5 11767 echo "${ECHO_T}$ac_res" >&6; } 11768 if test `eval echo '${'$as_ac_var'}'` = yes; then 11769 cat >>confdefs.h <<_ACEOF 11770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11771 _ACEOF 11772 break 11773 fi 11774 done 11775 11776 11777 11778 for ac_func in memmove strcmp 11779 do 11780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11781 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11784 echo $ECHO_N "(cached) $ECHO_C" >&6 11785 else 11786 cat >conftest.$ac_ext <<_ACEOF 11787 /* confdefs.h. */ 11788 _ACEOF 11789 cat confdefs.h >>conftest.$ac_ext 11790 cat >>conftest.$ac_ext <<_ACEOF 11791 /* end confdefs.h. */ 11792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11793 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11794 #define $ac_func innocuous_$ac_func 11795 11796 /* System header to define __stub macros and hopefully few prototypes, 11797 which can conflict with char $ac_func (); below. 11798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11799 <limits.h> exists even on freestanding compilers. */ 11800 11801 #ifdef __STDC__ 11802 # include <limits.h> 11803 #else 11804 # include <assert.h> 11805 #endif 11806 11807 #undef $ac_func 11808 11809 /* Override any GCC internal prototype to avoid an error. 11810 Use char because int might match the return type of a GCC 11811 builtin and then its argument prototype would still apply. */ 11812 #ifdef __cplusplus 11813 extern "C" 11814 #endif 11815 char $ac_func (); 11816 /* The GNU C library defines this for functions which it implements 11817 to always fail with ENOSYS. Some functions are actually named 11818 something starting with __ and the normal name is an alias. */ 11819 #if defined __stub_$ac_func || defined __stub___$ac_func 11820 choke me 11821 #endif 11822 11823 int 11824 main () 11825 { 11826 return $ac_func (); 11827 ; 11828 return 0; 11829 } 11830 _ACEOF 11831 rm -f conftest.$ac_objext conftest$ac_exeext 11832 if { (ac_try="$ac_link" 11833 case "(($ac_try" in 11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11835 *) ac_try_echo=$ac_try;; 11836 esac 11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11838 (eval "$ac_link") 2>conftest.er1 11839 ac_status=$? 11840 grep -v '^ *+' conftest.er1 >conftest.err 11841 rm -f conftest.er1 11842 cat conftest.err >&5 11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11844 (exit $ac_status); } && 11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11846 { (case "(($ac_try" in 11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11848 *) ac_try_echo=$ac_try;; 11849 esac 11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11851 (eval "$ac_try") 2>&5 11852 ac_status=$? 11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11854 (exit $ac_status); }; } && 11855 { ac_try='test -s conftest$ac_exeext' 11856 { (case "(($ac_try" in 11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11858 *) ac_try_echo=$ac_try;; 11859 esac 11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11861 (eval "$ac_try") 2>&5 11862 ac_status=$? 11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11864 (exit $ac_status); }; }; then 11865 eval "$as_ac_var=yes" 11866 else 11867 echo "$as_me: failed program was:" >&5 11868 sed 's/^/| /' conftest.$ac_ext >&5 11869 11870 eval "$as_ac_var=no" 11871 fi 11872 11873 rm -f core conftest.err conftest.$ac_objext \ 11874 conftest$ac_exeext conftest.$ac_ext 11875 fi 11876 ac_res=`eval echo '${'$as_ac_var'}'` 11877 { echo "$as_me:$LINENO: result: $ac_res" >&5 11878 echo "${ECHO_T}$ac_res" >&6; } 11879 if test `eval echo '${'$as_ac_var'}'` = yes; then 11880 cat >>confdefs.h <<_ACEOF 11881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11882 _ACEOF 11883 11884 fi 11885 done 11886 11887 11888 11889 11890 for ac_func in closedir opendir readdir 11891 do 11892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11893 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11896 echo $ECHO_N "(cached) $ECHO_C" >&6 11897 else 11898 cat >conftest.$ac_ext <<_ACEOF 11899 /* confdefs.h. */ 11900 _ACEOF 11901 cat confdefs.h >>conftest.$ac_ext 11902 cat >>conftest.$ac_ext <<_ACEOF 11903 /* end confdefs.h. */ 11904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11905 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11906 #define $ac_func innocuous_$ac_func 11907 11908 /* System header to define __stub macros and hopefully few prototypes, 11909 which can conflict with char $ac_func (); below. 11910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11911 <limits.h> exists even on freestanding compilers. */ 11912 11913 #ifdef __STDC__ 11914 # include <limits.h> 11915 #else 11916 # include <assert.h> 11917 #endif 11918 11919 #undef $ac_func 11920 11921 /* Override any GCC internal prototype to avoid an error. 11922 Use char because int might match the return type of a GCC 11923 builtin and then its argument prototype would still apply. */ 11924 #ifdef __cplusplus 11925 extern "C" 11926 #endif 11927 char $ac_func (); 11928 /* The GNU C library defines this for functions which it implements 11929 to always fail with ENOSYS. Some functions are actually named 11930 something starting with __ and the normal name is an alias. */ 11931 #if defined __stub_$ac_func || defined __stub___$ac_func 11932 choke me 11933 #endif 11934 11935 int 11936 main () 11937 { 11938 return $ac_func (); 11939 ; 11940 return 0; 11941 } 11942 _ACEOF 11943 rm -f conftest.$ac_objext conftest$ac_exeext 11944 if { (ac_try="$ac_link" 11945 case "(($ac_try" in 11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11947 *) ac_try_echo=$ac_try;; 11948 esac 11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11950 (eval "$ac_link") 2>conftest.er1 11951 ac_status=$? 11952 grep -v '^ *+' conftest.er1 >conftest.err 11953 rm -f conftest.er1 11954 cat conftest.err >&5 11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11956 (exit $ac_status); } && 11957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11958 { (case "(($ac_try" in 11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11960 *) ac_try_echo=$ac_try;; 11961 esac 11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11963 (eval "$ac_try") 2>&5 11964 ac_status=$? 11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11966 (exit $ac_status); }; } && 11967 { ac_try='test -s conftest$ac_exeext' 11968 { (case "(($ac_try" in 11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11970 *) ac_try_echo=$ac_try;; 11971 esac 11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11973 (eval "$ac_try") 2>&5 11974 ac_status=$? 11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11976 (exit $ac_status); }; }; then 11977 eval "$as_ac_var=yes" 11978 else 11979 echo "$as_me: failed program was:" >&5 11980 sed 's/^/| /' conftest.$ac_ext >&5 11981 11982 eval "$as_ac_var=no" 11983 fi 11984 11985 rm -f core conftest.err conftest.$ac_objext \ 11986 conftest$ac_exeext conftest.$ac_ext 11987 fi 11988 ac_res=`eval echo '${'$as_ac_var'}'` 11989 { echo "$as_me:$LINENO: result: $ac_res" >&5 11990 echo "${ECHO_T}$ac_res" >&6; } 11991 if test `eval echo '${'$as_ac_var'}'` = yes; then 11992 cat >>confdefs.h <<_ACEOF 11993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11994 _ACEOF 11995 11996 fi 11997 done 11998 11999 12000 12001 { echo "$as_me:$LINENO: checking tool compatibility" >&5 12002 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12003 12004 ICC=no 12005 IXX=no 12006 case $CC in 12007 icc*|icpc*) 12008 ICC=yes 12009 IXX=yes 12010 ;; 12011 *) 12012 ;; 12013 esac 12014 12015 if test "$GCC" != "yes" && test "$ICC" != "yes" 12016 then 12017 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12018 echo "$as_me: error: gcc|icc required but not found" >&2;} 12019 { (exit 1); exit 1; }; } 12020 fi 12021 12022 if test "$GXX" != "yes" && test "$IXX" != "yes" 12023 then 12024 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 12025 echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 12026 { (exit 1); exit 1; }; } 12027 fi 12028 12029 if test "$GCC" = "yes" 12030 then 12031 cat >conftest.$ac_ext <<_ACEOF 12032 #if !defined(__GNUC__) || __GNUC__ < 3 12033 #error Unsupported GCC version 12034 #endif 12035 12036 _ACEOF 12037 rm -f conftest.$ac_objext 12038 if { (ac_try="$ac_compile" 12039 case "(($ac_try" in 12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12041 *) ac_try_echo=$ac_try;; 12042 esac 12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12044 (eval "$ac_compile") 2>conftest.er1 12045 ac_status=$? 12046 grep -v '^ *+' conftest.er1 >conftest.err 12047 rm -f conftest.er1 12048 cat conftest.err >&5 12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12050 (exit $ac_status); } && 12051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12052 { (case "(($ac_try" in 12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12054 *) ac_try_echo=$ac_try;; 12055 esac 12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12057 (eval "$ac_try") 2>&5 12058 ac_status=$? 12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12060 (exit $ac_status); }; } && 12061 { ac_try='test -s conftest.$ac_objext' 12062 { (case "(($ac_try" in 12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12064 *) ac_try_echo=$ac_try;; 12065 esac 12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12067 (eval "$ac_try") 2>&5 12068 ac_status=$? 12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12070 (exit $ac_status); }; }; then 12071 : 12072 else 12073 echo "$as_me: failed program was:" >&5 12074 sed 's/^/| /' conftest.$ac_ext >&5 12075 12076 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12077 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12078 { (exit 1); exit 1; }; } 12079 fi 12080 12081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12082 fi 12083 12084 if test -z "$llvm_cv_gnu_make_command" 12085 then 12086 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12087 echo "$as_me: error: GNU Make required but not found" >&2;} 12088 { (exit 1); exit 1; }; } 12089 fi 12090 12091 { echo "$as_me:$LINENO: result: ok" >&5 12092 echo "${ECHO_T}ok" >&6; } 12093 12094 { echo "$as_me:$LINENO: checking optional compiler flags" >&5 12095 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12096 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12097 12098 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12099 12100 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 12101 12102 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 12103 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } 12104 12105 12106 12107 { echo "$as_me:$LINENO: checking for sin in -lm" >&5 12108 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12109 if test "${ac_cv_lib_m_sin+set}" = set; then 12110 echo $ECHO_N "(cached) $ECHO_C" >&6 12111 else 12112 ac_check_lib_save_LIBS=$LIBS 12113 LIBS="-lm $LIBS" 12114 cat >conftest.$ac_ext <<_ACEOF 12115 /* confdefs.h. */ 12116 _ACEOF 12117 cat confdefs.h >>conftest.$ac_ext 12118 cat >>conftest.$ac_ext <<_ACEOF 12119 /* end confdefs.h. */ 12120 12121 /* Override any GCC internal prototype to avoid an error. 12122 Use char because int might match the return type of a GCC 12123 builtin and then its argument prototype would still apply. */ 12124 #ifdef __cplusplus 12125 extern "C" 12126 #endif 12127 char sin (); 12128 int 12129 main () 12130 { 12131 return sin (); 12132 ; 12133 return 0; 12134 } 12135 _ACEOF 12136 rm -f conftest.$ac_objext conftest$ac_exeext 12137 if { (ac_try="$ac_link" 12138 case "(($ac_try" in 12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12140 *) ac_try_echo=$ac_try;; 12141 esac 12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12143 (eval "$ac_link") 2>conftest.er1 12144 ac_status=$? 12145 grep -v '^ *+' conftest.er1 >conftest.err 12146 rm -f conftest.er1 12147 cat conftest.err >&5 12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12149 (exit $ac_status); } && 12150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12151 { (case "(($ac_try" in 12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12153 *) ac_try_echo=$ac_try;; 12154 esac 12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12156 (eval "$ac_try") 2>&5 12157 ac_status=$? 12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12159 (exit $ac_status); }; } && 12160 { ac_try='test -s conftest$ac_exeext' 12161 { (case "(($ac_try" in 12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12163 *) ac_try_echo=$ac_try;; 12164 esac 12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12166 (eval "$ac_try") 2>&5 12167 ac_status=$? 12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12169 (exit $ac_status); }; }; then 12170 ac_cv_lib_m_sin=yes 12171 else 12172 echo "$as_me: failed program was:" >&5 12173 sed 's/^/| /' conftest.$ac_ext >&5 12174 12175 ac_cv_lib_m_sin=no 12176 fi 12177 12178 rm -f core conftest.err conftest.$ac_objext \ 12179 conftest$ac_exeext conftest.$ac_ext 12180 LIBS=$ac_check_lib_save_LIBS 12181 fi 12182 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12183 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12184 if test $ac_cv_lib_m_sin = yes; then 12185 cat >>confdefs.h <<_ACEOF 12186 #define HAVE_LIBM 1 12187 _ACEOF 12188 12189 LIBS="-lm $LIBS" 12190 12191 fi 12192 12193 if test "$llvm_cv_os_type" = "MingW" ; then 12194 12195 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12196 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12197 if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12198 echo $ECHO_N "(cached) $ECHO_C" >&6 12199 else 12200 ac_check_lib_save_LIBS=$LIBS 12201 LIBS="-limagehlp $LIBS" 12202 cat >conftest.$ac_ext <<_ACEOF 12203 /* confdefs.h. */ 12204 _ACEOF 12205 cat confdefs.h >>conftest.$ac_ext 12206 cat >>conftest.$ac_ext <<_ACEOF 12207 /* end confdefs.h. */ 12208 12209 12210 int 12211 main () 12212 { 12213 return main (); 12214 ; 12215 return 0; 12216 } 12217 _ACEOF 12218 rm -f conftest.$ac_objext conftest$ac_exeext 12219 if { (ac_try="$ac_link" 12220 case "(($ac_try" in 12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12222 *) ac_try_echo=$ac_try;; 12223 esac 12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12225 (eval "$ac_link") 2>conftest.er1 12226 ac_status=$? 12227 grep -v '^ *+' conftest.er1 >conftest.err 12228 rm -f conftest.er1 12229 cat conftest.err >&5 12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12231 (exit $ac_status); } && 12232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12233 { (case "(($ac_try" in 12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12235 *) ac_try_echo=$ac_try;; 12236 esac 12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12238 (eval "$ac_try") 2>&5 12239 ac_status=$? 12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12241 (exit $ac_status); }; } && 12242 { ac_try='test -s conftest$ac_exeext' 12243 { (case "(($ac_try" in 12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12245 *) ac_try_echo=$ac_try;; 12246 esac 12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12248 (eval "$ac_try") 2>&5 12249 ac_status=$? 12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12251 (exit $ac_status); }; }; then 12252 ac_cv_lib_imagehlp_main=yes 12253 else 12254 echo "$as_me: failed program was:" >&5 12255 sed 's/^/| /' conftest.$ac_ext >&5 12256 12257 ac_cv_lib_imagehlp_main=no 12258 fi 12259 12260 rm -f core conftest.err conftest.$ac_objext \ 12261 conftest$ac_exeext conftest.$ac_ext 12262 LIBS=$ac_check_lib_save_LIBS 12263 fi 12264 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12265 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12266 if test $ac_cv_lib_imagehlp_main = yes; then 12267 cat >>confdefs.h <<_ACEOF 12268 #define HAVE_LIBIMAGEHLP 1 12269 _ACEOF 12270 12271 LIBS="-limagehlp $LIBS" 12272 12273 fi 12274 12275 12276 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12277 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12278 if test "${ac_cv_lib_psapi_main+set}" = set; then 12279 echo $ECHO_N "(cached) $ECHO_C" >&6 12280 else 12281 ac_check_lib_save_LIBS=$LIBS 12282 LIBS="-lpsapi $LIBS" 12283 cat >conftest.$ac_ext <<_ACEOF 12284 /* confdefs.h. */ 12285 _ACEOF 12286 cat confdefs.h >>conftest.$ac_ext 12287 cat >>conftest.$ac_ext <<_ACEOF 12288 /* end confdefs.h. */ 12289 12290 12291 int 12292 main () 12293 { 12294 return main (); 12295 ; 12296 return 0; 12297 } 12298 _ACEOF 12299 rm -f conftest.$ac_objext conftest$ac_exeext 12300 if { (ac_try="$ac_link" 12301 case "(($ac_try" in 12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12303 *) ac_try_echo=$ac_try;; 12304 esac 12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12306 (eval "$ac_link") 2>conftest.er1 12307 ac_status=$? 12308 grep -v '^ *+' conftest.er1 >conftest.err 12309 rm -f conftest.er1 12310 cat conftest.err >&5 12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12312 (exit $ac_status); } && 12313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12314 { (case "(($ac_try" in 12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12316 *) ac_try_echo=$ac_try;; 12317 esac 12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12319 (eval "$ac_try") 2>&5 12320 ac_status=$? 12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12322 (exit $ac_status); }; } && 12323 { ac_try='test -s conftest$ac_exeext' 12324 { (case "(($ac_try" in 12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12326 *) ac_try_echo=$ac_try;; 12327 esac 12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12329 (eval "$ac_try") 2>&5 12330 ac_status=$? 12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12332 (exit $ac_status); }; }; then 12333 ac_cv_lib_psapi_main=yes 12334 else 12335 echo "$as_me: failed program was:" >&5 12336 sed 's/^/| /' conftest.$ac_ext >&5 12337 12338 ac_cv_lib_psapi_main=no 12339 fi 12340 12341 rm -f core conftest.err conftest.$ac_objext \ 12342 conftest$ac_exeext conftest.$ac_ext 12343 LIBS=$ac_check_lib_save_LIBS 12344 fi 12345 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12346 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12347 if test $ac_cv_lib_psapi_main = yes; then 12348 cat >>confdefs.h <<_ACEOF 12349 #define HAVE_LIBPSAPI 1 12350 _ACEOF 12351 12352 LIBS="-lpsapi $LIBS" 12353 12354 fi 12355 12356 fi 12357 12358 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12359 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12360 if test "${ac_cv_search_dlopen+set}" = set; then 12361 echo $ECHO_N "(cached) $ECHO_C" >&6 12362 else 12363 ac_func_search_save_LIBS=$LIBS 12364 cat >conftest.$ac_ext <<_ACEOF 12365 /* confdefs.h. */ 12366 _ACEOF 12367 cat confdefs.h >>conftest.$ac_ext 12368 cat >>conftest.$ac_ext <<_ACEOF 12369 /* end confdefs.h. */ 12370 12371 /* Override any GCC internal prototype to avoid an error. 12372 Use char because int might match the return type of a GCC 12373 builtin and then its argument prototype would still apply. */ 12374 #ifdef __cplusplus 12375 extern "C" 12376 #endif 12377 char dlopen (); 12378 int 12379 main () 12380 { 12381 return dlopen (); 12382 ; 12383 return 0; 12384 } 12385 _ACEOF 12386 for ac_lib in '' dl; do 12387 if test -z "$ac_lib"; then 12388 ac_res="none required" 12389 else 12390 ac_res=-l$ac_lib 12391 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12392 fi 12393 rm -f conftest.$ac_objext conftest$ac_exeext 12394 if { (ac_try="$ac_link" 12395 case "(($ac_try" in 12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12397 *) ac_try_echo=$ac_try;; 12398 esac 12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12400 (eval "$ac_link") 2>conftest.er1 12401 ac_status=$? 12402 grep -v '^ *+' conftest.er1 >conftest.err 12403 rm -f conftest.er1 12404 cat conftest.err >&5 12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); } && 12407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12408 { (case "(($ac_try" in 12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12410 *) ac_try_echo=$ac_try;; 12411 esac 12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12413 (eval "$ac_try") 2>&5 12414 ac_status=$? 12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12416 (exit $ac_status); }; } && 12417 { ac_try='test -s conftest$ac_exeext' 12418 { (case "(($ac_try" in 12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12420 *) ac_try_echo=$ac_try;; 12421 esac 12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12423 (eval "$ac_try") 2>&5 12424 ac_status=$? 12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12426 (exit $ac_status); }; }; then 12427 ac_cv_search_dlopen=$ac_res 12428 else 12429 echo "$as_me: failed program was:" >&5 12430 sed 's/^/| /' conftest.$ac_ext >&5 12431 12432 12433 fi 12434 12435 rm -f core conftest.err conftest.$ac_objext \ 12436 conftest$ac_exeext 12437 if test "${ac_cv_search_dlopen+set}" = set; then 12438 break 12439 fi 12440 done 12441 if test "${ac_cv_search_dlopen+set}" = set; then 12442 : 12443 else 12444 ac_cv_search_dlopen=no 12445 fi 12446 rm conftest.$ac_ext 12447 LIBS=$ac_func_search_save_LIBS 12448 fi 12449 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12450 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12451 ac_res=$ac_cv_search_dlopen 12452 if test "$ac_res" != no; then 12453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12454 12455 cat >>confdefs.h <<\_ACEOF 12456 #define HAVE_DLOPEN 1 12457 _ACEOF 12458 12459 else 12460 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12461 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12462 fi 12463 12464 12465 if test "$llvm_cv_enable_libffi" = "yes" ; then 12466 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12467 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12468 if test "${ac_cv_search_ffi_call+set}" = set; then 12469 echo $ECHO_N "(cached) $ECHO_C" >&6 12470 else 12471 ac_func_search_save_LIBS=$LIBS 12472 cat >conftest.$ac_ext <<_ACEOF 12473 /* confdefs.h. */ 12474 _ACEOF 12475 cat confdefs.h >>conftest.$ac_ext 12476 cat >>conftest.$ac_ext <<_ACEOF 12477 /* end confdefs.h. */ 12478 12479 /* Override any GCC internal prototype to avoid an error. 12480 Use char because int might match the return type of a GCC 12481 builtin and then its argument prototype would still apply. */ 12482 #ifdef __cplusplus 12483 extern "C" 12484 #endif 12485 char ffi_call (); 12486 int 12487 main () 12488 { 12489 return ffi_call (); 12490 ; 12491 return 0; 12492 } 12493 _ACEOF 12494 for ac_lib in '' ffi; do 12495 if test -z "$ac_lib"; then 12496 ac_res="none required" 12497 else 12498 ac_res=-l$ac_lib 12499 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12500 fi 12501 rm -f conftest.$ac_objext conftest$ac_exeext 12502 if { (ac_try="$ac_link" 12503 case "(($ac_try" in 12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12505 *) ac_try_echo=$ac_try;; 12506 esac 12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12508 (eval "$ac_link") 2>conftest.er1 12509 ac_status=$? 12510 grep -v '^ *+' conftest.er1 >conftest.err 12511 rm -f conftest.er1 12512 cat conftest.err >&5 12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12514 (exit $ac_status); } && 12515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12516 { (case "(($ac_try" in 12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12518 *) ac_try_echo=$ac_try;; 12519 esac 12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12521 (eval "$ac_try") 2>&5 12522 ac_status=$? 12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12524 (exit $ac_status); }; } && 12525 { ac_try='test -s conftest$ac_exeext' 12526 { (case "(($ac_try" in 12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12528 *) ac_try_echo=$ac_try;; 12529 esac 12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12531 (eval "$ac_try") 2>&5 12532 ac_status=$? 12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12534 (exit $ac_status); }; }; then 12535 ac_cv_search_ffi_call=$ac_res 12536 else 12537 echo "$as_me: failed program was:" >&5 12538 sed 's/^/| /' conftest.$ac_ext >&5 12539 12540 12541 fi 12542 12543 rm -f core conftest.err conftest.$ac_objext \ 12544 conftest$ac_exeext 12545 if test "${ac_cv_search_ffi_call+set}" = set; then 12546 break 12547 fi 12548 done 12549 if test "${ac_cv_search_ffi_call+set}" = set; then 12550 : 12551 else 12552 ac_cv_search_ffi_call=no 12553 fi 12554 rm conftest.$ac_ext 12555 LIBS=$ac_func_search_save_LIBS 12556 fi 12557 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12558 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12559 ac_res=$ac_cv_search_ffi_call 12560 if test "$ac_res" != no; then 12561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12562 12563 cat >>confdefs.h <<\_ACEOF 12564 #define HAVE_FFI_CALL 1 12565 _ACEOF 12566 12567 else 12568 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12569 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12570 { (exit 1); exit 1; }; } 12571 fi 12572 12573 fi 12574 12575 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12576 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12577 if test "${ac_cv_search_mallinfo+set}" = set; then 12578 echo $ECHO_N "(cached) $ECHO_C" >&6 12579 else 12580 ac_func_search_save_LIBS=$LIBS 12581 cat >conftest.$ac_ext <<_ACEOF 12582 /* confdefs.h. */ 12583 _ACEOF 12584 cat confdefs.h >>conftest.$ac_ext 12585 cat >>conftest.$ac_ext <<_ACEOF 12586 /* end confdefs.h. */ 12587 12588 /* Override any GCC internal prototype to avoid an error. 12589 Use char because int might match the return type of a GCC 12590 builtin and then its argument prototype would still apply. */ 12591 #ifdef __cplusplus 12592 extern "C" 12593 #endif 12594 char mallinfo (); 12595 int 12596 main () 12597 { 12598 return mallinfo (); 12599 ; 12600 return 0; 12601 } 12602 _ACEOF 12603 for ac_lib in '' malloc; do 12604 if test -z "$ac_lib"; then 12605 ac_res="none required" 12606 else 12607 ac_res=-l$ac_lib 12608 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12609 fi 12610 rm -f conftest.$ac_objext conftest$ac_exeext 12611 if { (ac_try="$ac_link" 12612 case "(($ac_try" in 12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12614 *) ac_try_echo=$ac_try;; 12615 esac 12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12617 (eval "$ac_link") 2>conftest.er1 12618 ac_status=$? 12619 grep -v '^ *+' conftest.er1 >conftest.err 12620 rm -f conftest.er1 12621 cat conftest.err >&5 12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12623 (exit $ac_status); } && 12624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12625 { (case "(($ac_try" in 12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12627 *) ac_try_echo=$ac_try;; 12628 esac 12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12630 (eval "$ac_try") 2>&5 12631 ac_status=$? 12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12633 (exit $ac_status); }; } && 12634 { ac_try='test -s conftest$ac_exeext' 12635 { (case "(($ac_try" in 12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12637 *) ac_try_echo=$ac_try;; 12638 esac 12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12640 (eval "$ac_try") 2>&5 12641 ac_status=$? 12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12643 (exit $ac_status); }; }; then 12644 ac_cv_search_mallinfo=$ac_res 12645 else 12646 echo "$as_me: failed program was:" >&5 12647 sed 's/^/| /' conftest.$ac_ext >&5 12648 12649 12650 fi 12651 12652 rm -f core conftest.err conftest.$ac_objext \ 12653 conftest$ac_exeext 12654 if test "${ac_cv_search_mallinfo+set}" = set; then 12655 break 12656 fi 12657 done 12658 if test "${ac_cv_search_mallinfo+set}" = set; then 12659 : 12660 else 12661 ac_cv_search_mallinfo=no 12662 fi 12663 rm conftest.$ac_ext 12664 LIBS=$ac_func_search_save_LIBS 12665 fi 12666 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 12667 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 12668 ac_res=$ac_cv_search_mallinfo 12669 if test "$ac_res" != no; then 12670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12671 12672 cat >>confdefs.h <<\_ACEOF 12673 #define HAVE_MALLINFO 1 12674 _ACEOF 12675 12676 fi 12677 12678 12679 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12680 12681 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 12682 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 12683 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 12684 echo $ECHO_N "(cached) $ECHO_C" >&6 12685 else 12686 ac_check_lib_save_LIBS=$LIBS 12687 LIBS="-lpthread $LIBS" 12688 cat >conftest.$ac_ext <<_ACEOF 12689 /* confdefs.h. */ 12690 _ACEOF 12691 cat confdefs.h >>conftest.$ac_ext 12692 cat >>conftest.$ac_ext <<_ACEOF 12693 /* end confdefs.h. */ 12694 12695 /* Override any GCC internal prototype to avoid an error. 12696 Use char because int might match the return type of a GCC 12697 builtin and then its argument prototype would still apply. */ 12698 #ifdef __cplusplus 12699 extern "C" 12700 #endif 12701 char pthread_mutex_init (); 12702 int 12703 main () 12704 { 12705 return pthread_mutex_init (); 12706 ; 12707 return 0; 12708 } 12709 _ACEOF 12710 rm -f conftest.$ac_objext conftest$ac_exeext 12711 if { (ac_try="$ac_link" 12712 case "(($ac_try" in 12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12714 *) ac_try_echo=$ac_try;; 12715 esac 12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12717 (eval "$ac_link") 2>conftest.er1 12718 ac_status=$? 12719 grep -v '^ *+' conftest.er1 >conftest.err 12720 rm -f conftest.er1 12721 cat conftest.err >&5 12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12723 (exit $ac_status); } && 12724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12725 { (case "(($ac_try" in 12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12727 *) ac_try_echo=$ac_try;; 12728 esac 12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12730 (eval "$ac_try") 2>&5 12731 ac_status=$? 12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12733 (exit $ac_status); }; } && 12734 { ac_try='test -s conftest$ac_exeext' 12735 { (case "(($ac_try" in 12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12737 *) ac_try_echo=$ac_try;; 12738 esac 12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12740 (eval "$ac_try") 2>&5 12741 ac_status=$? 12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12743 (exit $ac_status); }; }; then 12744 ac_cv_lib_pthread_pthread_mutex_init=yes 12745 else 12746 echo "$as_me: failed program was:" >&5 12747 sed 's/^/| /' conftest.$ac_ext >&5 12748 12749 ac_cv_lib_pthread_pthread_mutex_init=no 12750 fi 12751 12752 rm -f core conftest.err conftest.$ac_objext \ 12753 conftest$ac_exeext conftest.$ac_ext 12754 LIBS=$ac_check_lib_save_LIBS 12755 fi 12756 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 12757 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 12758 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 12759 cat >>confdefs.h <<_ACEOF 12760 #define HAVE_LIBPTHREAD 1 12761 _ACEOF 12762 12763 LIBS="-lpthread $LIBS" 12764 12765 fi 12766 12767 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 12768 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 12769 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12770 echo $ECHO_N "(cached) $ECHO_C" >&6 12771 else 12772 ac_func_search_save_LIBS=$LIBS 12773 cat >conftest.$ac_ext <<_ACEOF 12774 /* confdefs.h. */ 12775 _ACEOF 12776 cat confdefs.h >>conftest.$ac_ext 12777 cat >>conftest.$ac_ext <<_ACEOF 12778 /* end confdefs.h. */ 12779 12780 /* Override any GCC internal prototype to avoid an error. 12781 Use char because int might match the return type of a GCC 12782 builtin and then its argument prototype would still apply. */ 12783 #ifdef __cplusplus 12784 extern "C" 12785 #endif 12786 char pthread_mutex_lock (); 12787 int 12788 main () 12789 { 12790 return pthread_mutex_lock (); 12791 ; 12792 return 0; 12793 } 12794 _ACEOF 12795 for ac_lib in '' pthread; do 12796 if test -z "$ac_lib"; then 12797 ac_res="none required" 12798 else 12799 ac_res=-l$ac_lib 12800 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12801 fi 12802 rm -f conftest.$ac_objext conftest$ac_exeext 12803 if { (ac_try="$ac_link" 12804 case "(($ac_try" in 12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12806 *) ac_try_echo=$ac_try;; 12807 esac 12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12809 (eval "$ac_link") 2>conftest.er1 12810 ac_status=$? 12811 grep -v '^ *+' conftest.er1 >conftest.err 12812 rm -f conftest.er1 12813 cat conftest.err >&5 12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12815 (exit $ac_status); } && 12816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12817 { (case "(($ac_try" in 12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12819 *) ac_try_echo=$ac_try;; 12820 esac 12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12822 (eval "$ac_try") 2>&5 12823 ac_status=$? 12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12825 (exit $ac_status); }; } && 12826 { ac_try='test -s conftest$ac_exeext' 12827 { (case "(($ac_try" in 12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12829 *) ac_try_echo=$ac_try;; 12830 esac 12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12832 (eval "$ac_try") 2>&5 12833 ac_status=$? 12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12835 (exit $ac_status); }; }; then 12836 ac_cv_search_pthread_mutex_lock=$ac_res 12837 else 12838 echo "$as_me: failed program was:" >&5 12839 sed 's/^/| /' conftest.$ac_ext >&5 12840 12841 12842 fi 12843 12844 rm -f core conftest.err conftest.$ac_objext \ 12845 conftest$ac_exeext 12846 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12847 break 12848 fi 12849 done 12850 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12851 : 12852 else 12853 ac_cv_search_pthread_mutex_lock=no 12854 fi 12855 rm conftest.$ac_ext 12856 LIBS=$ac_func_search_save_LIBS 12857 fi 12858 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 12859 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 12860 ac_res=$ac_cv_search_pthread_mutex_lock 12861 if test "$ac_res" != no; then 12862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12863 12864 cat >>confdefs.h <<\_ACEOF 12865 #define HAVE_PTHREAD_MUTEX_LOCK 1 12866 _ACEOF 12867 12868 fi 12869 12870 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 12871 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 12872 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12873 echo $ECHO_N "(cached) $ECHO_C" >&6 12874 else 12875 ac_func_search_save_LIBS=$LIBS 12876 cat >conftest.$ac_ext <<_ACEOF 12877 /* confdefs.h. */ 12878 _ACEOF 12879 cat confdefs.h >>conftest.$ac_ext 12880 cat >>conftest.$ac_ext <<_ACEOF 12881 /* end confdefs.h. */ 12882 12883 /* Override any GCC internal prototype to avoid an error. 12884 Use char because int might match the return type of a GCC 12885 builtin and then its argument prototype would still apply. */ 12886 #ifdef __cplusplus 12887 extern "C" 12888 #endif 12889 char pthread_rwlock_init (); 12890 int 12891 main () 12892 { 12893 return pthread_rwlock_init (); 12894 ; 12895 return 0; 12896 } 12897 _ACEOF 12898 for ac_lib in '' pthread; do 12899 if test -z "$ac_lib"; then 12900 ac_res="none required" 12901 else 12902 ac_res=-l$ac_lib 12903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12904 fi 12905 rm -f conftest.$ac_objext conftest$ac_exeext 12906 if { (ac_try="$ac_link" 12907 case "(($ac_try" in 12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12909 *) ac_try_echo=$ac_try;; 12910 esac 12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12912 (eval "$ac_link") 2>conftest.er1 12913 ac_status=$? 12914 grep -v '^ *+' conftest.er1 >conftest.err 12915 rm -f conftest.er1 12916 cat conftest.err >&5 12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12918 (exit $ac_status); } && 12919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12920 { (case "(($ac_try" in 12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12922 *) ac_try_echo=$ac_try;; 12923 esac 12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12925 (eval "$ac_try") 2>&5 12926 ac_status=$? 12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12928 (exit $ac_status); }; } && 12929 { ac_try='test -s conftest$ac_exeext' 12930 { (case "(($ac_try" in 12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12932 *) ac_try_echo=$ac_try;; 12933 esac 12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12935 (eval "$ac_try") 2>&5 12936 ac_status=$? 12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12938 (exit $ac_status); }; }; then 12939 ac_cv_search_pthread_rwlock_init=$ac_res 12940 else 12941 echo "$as_me: failed program was:" >&5 12942 sed 's/^/| /' conftest.$ac_ext >&5 12943 12944 12945 fi 12946 12947 rm -f core conftest.err conftest.$ac_objext \ 12948 conftest$ac_exeext 12949 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12950 break 12951 fi 12952 done 12953 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12954 : 12955 else 12956 ac_cv_search_pthread_rwlock_init=no 12957 fi 12958 rm conftest.$ac_ext 12959 LIBS=$ac_func_search_save_LIBS 12960 fi 12961 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 12962 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 12963 ac_res=$ac_cv_search_pthread_rwlock_init 12964 if test "$ac_res" != no; then 12965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12966 12967 cat >>confdefs.h <<\_ACEOF 12968 #define HAVE_PTHREAD_RWLOCK_INIT 1 12969 _ACEOF 12970 12971 fi 12972 12973 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 12974 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 12975 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12976 echo $ECHO_N "(cached) $ECHO_C" >&6 12977 else 12978 ac_func_search_save_LIBS=$LIBS 12979 cat >conftest.$ac_ext <<_ACEOF 12980 /* confdefs.h. */ 12981 _ACEOF 12982 cat confdefs.h >>conftest.$ac_ext 12983 cat >>conftest.$ac_ext <<_ACEOF 12984 /* end confdefs.h. */ 12985 12986 /* Override any GCC internal prototype to avoid an error. 12987 Use char because int might match the return type of a GCC 12988 builtin and then its argument prototype would still apply. */ 12989 #ifdef __cplusplus 12990 extern "C" 12991 #endif 12992 char pthread_getspecific (); 12993 int 12994 main () 12995 { 12996 return pthread_getspecific (); 12997 ; 12998 return 0; 12999 } 13000 _ACEOF 13001 for ac_lib in '' pthread; do 13002 if test -z "$ac_lib"; then 13003 ac_res="none required" 13004 else 13005 ac_res=-l$ac_lib 13006 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13007 fi 13008 rm -f conftest.$ac_objext conftest$ac_exeext 13009 if { (ac_try="$ac_link" 13010 case "(($ac_try" in 13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13012 *) ac_try_echo=$ac_try;; 13013 esac 13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13015 (eval "$ac_link") 2>conftest.er1 13016 ac_status=$? 13017 grep -v '^ *+' conftest.er1 >conftest.err 13018 rm -f conftest.er1 13019 cat conftest.err >&5 13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13021 (exit $ac_status); } && 13022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13023 { (case "(($ac_try" in 13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13025 *) ac_try_echo=$ac_try;; 13026 esac 13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13028 (eval "$ac_try") 2>&5 13029 ac_status=$? 13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13031 (exit $ac_status); }; } && 13032 { ac_try='test -s conftest$ac_exeext' 13033 { (case "(($ac_try" in 13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13035 *) ac_try_echo=$ac_try;; 13036 esac 13037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13038 (eval "$ac_try") 2>&5 13039 ac_status=$? 13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13041 (exit $ac_status); }; }; then 13042 ac_cv_search_pthread_getspecific=$ac_res 13043 else 13044 echo "$as_me: failed program was:" >&5 13045 sed 's/^/| /' conftest.$ac_ext >&5 13046 13047 13048 fi 13049 13050 rm -f core conftest.err conftest.$ac_objext \ 13051 conftest$ac_exeext 13052 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13053 break 13054 fi 13055 done 13056 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13057 : 13058 else 13059 ac_cv_search_pthread_getspecific=no 13060 fi 13061 rm conftest.$ac_ext 13062 LIBS=$ac_func_search_save_LIBS 13063 fi 13064 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13065 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13066 ac_res=$ac_cv_search_pthread_getspecific 13067 if test "$ac_res" != no; then 13068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13069 13070 cat >>confdefs.h <<\_ACEOF 13071 #define HAVE_PTHREAD_GETSPECIFIC 1 13072 _ACEOF 13073 13074 fi 13075 13076 fi 13077 13078 13079 # Check whether --with-udis86 was given. 13080 if test "${with_udis86+set}" = set; then 13081 withval=$with_udis86; 13082 USE_UDIS86=1 13083 13084 case "$withval" in 13085 /usr/lib|yes) ;; 13086 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13087 esac 13088 13089 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13090 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13091 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13092 echo $ECHO_N "(cached) $ECHO_C" >&6 13093 else 13094 ac_check_lib_save_LIBS=$LIBS 13095 LIBS="-ludis86 $LIBS" 13096 cat >conftest.$ac_ext <<_ACEOF 13097 /* confdefs.h. */ 13098 _ACEOF 13099 cat confdefs.h >>conftest.$ac_ext 13100 cat >>conftest.$ac_ext <<_ACEOF 13101 /* end confdefs.h. */ 13102 13103 /* Override any GCC internal prototype to avoid an error. 13104 Use char because int might match the return type of a GCC 13105 builtin and then its argument prototype would still apply. */ 13106 #ifdef __cplusplus 13107 extern "C" 13108 #endif 13109 char ud_init (); 13110 int 13111 main () 13112 { 13113 return ud_init (); 13114 ; 13115 return 0; 13116 } 13117 _ACEOF 13118 rm -f conftest.$ac_objext conftest$ac_exeext 13119 if { (ac_try="$ac_link" 13120 case "(($ac_try" in 13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13122 *) ac_try_echo=$ac_try;; 13123 esac 13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13125 (eval "$ac_link") 2>conftest.er1 13126 ac_status=$? 13127 grep -v '^ *+' conftest.er1 >conftest.err 13128 rm -f conftest.er1 13129 cat conftest.err >&5 13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13131 (exit $ac_status); } && 13132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13133 { (case "(($ac_try" in 13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13135 *) ac_try_echo=$ac_try;; 13136 esac 13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13138 (eval "$ac_try") 2>&5 13139 ac_status=$? 13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13141 (exit $ac_status); }; } && 13142 { ac_try='test -s conftest$ac_exeext' 13143 { (case "(($ac_try" in 13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13145 *) ac_try_echo=$ac_try;; 13146 esac 13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13148 (eval "$ac_try") 2>&5 13149 ac_status=$? 13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13151 (exit $ac_status); }; }; then 13152 ac_cv_lib_udis86_ud_init=yes 13153 else 13154 echo "$as_me: failed program was:" >&5 13155 sed 's/^/| /' conftest.$ac_ext >&5 13156 13157 ac_cv_lib_udis86_ud_init=no 13158 fi 13159 13160 rm -f core conftest.err conftest.$ac_objext \ 13161 conftest$ac_exeext conftest.$ac_ext 13162 LIBS=$ac_check_lib_save_LIBS 13163 fi 13164 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13165 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13166 if test $ac_cv_lib_udis86_ud_init = yes; then 13167 cat >>confdefs.h <<_ACEOF 13168 #define HAVE_LIBUDIS86 1 13169 _ACEOF 13170 13171 LIBS="-ludis86 $LIBS" 13172 13173 else 13174 13175 echo "Error! You need to have libudis86 around." 13176 exit -1 13177 13178 fi 13179 13180 13181 else 13182 USE_UDIS86=0 13183 13184 fi 13185 13186 13187 cat >>confdefs.h <<_ACEOF 13188 #define USE_UDIS86 $USE_UDIS86 13189 _ACEOF 13190 13191 13192 13193 # Check whether --with-oprofile was given. 13194 if test "${with_oprofile+set}" = set; then 13195 withval=$with_oprofile; 13196 USE_OPROFILE=1 13197 13198 case "$withval" in 13199 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13200 no) llvm_cv_oppath= 13201 USE_OPROFILE=0 13202 ;; 13203 *) llvm_cv_oppath="${withval}/lib/oprofile" 13204 CPPFLAGS="-I${withval}/include";; 13205 esac 13206 if test -n "$llvm_cv_oppath" ; then 13207 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13208 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13209 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13210 if test "${ac_cv_search_bfd_init+set}" = set; then 13211 echo $ECHO_N "(cached) $ECHO_C" >&6 13212 else 13213 ac_func_search_save_LIBS=$LIBS 13214 cat >conftest.$ac_ext <<_ACEOF 13215 /* confdefs.h. */ 13216 _ACEOF 13217 cat confdefs.h >>conftest.$ac_ext 13218 cat >>conftest.$ac_ext <<_ACEOF 13219 /* end confdefs.h. */ 13220 13221 /* Override any GCC internal prototype to avoid an error. 13222 Use char because int might match the return type of a GCC 13223 builtin and then its argument prototype would still apply. */ 13224 #ifdef __cplusplus 13225 extern "C" 13226 #endif 13227 char bfd_init (); 13228 int 13229 main () 13230 { 13231 return bfd_init (); 13232 ; 13233 return 0; 13234 } 13235 _ACEOF 13236 for ac_lib in '' bfd; do 13237 if test -z "$ac_lib"; then 13238 ac_res="none required" 13239 else 13240 ac_res=-l$ac_lib 13241 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13242 fi 13243 rm -f conftest.$ac_objext conftest$ac_exeext 13244 if { (ac_try="$ac_link" 13245 case "(($ac_try" in 13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13247 *) ac_try_echo=$ac_try;; 13248 esac 13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13250 (eval "$ac_link") 2>conftest.er1 13251 ac_status=$? 13252 grep -v '^ *+' conftest.er1 >conftest.err 13253 rm -f conftest.er1 13254 cat conftest.err >&5 13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13256 (exit $ac_status); } && 13257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13258 { (case "(($ac_try" in 13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13260 *) ac_try_echo=$ac_try;; 13261 esac 13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13263 (eval "$ac_try") 2>&5 13264 ac_status=$? 13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13266 (exit $ac_status); }; } && 13267 { ac_try='test -s conftest$ac_exeext' 13268 { (case "(($ac_try" in 13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13270 *) ac_try_echo=$ac_try;; 13271 esac 13272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13273 (eval "$ac_try") 2>&5 13274 ac_status=$? 13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13276 (exit $ac_status); }; }; then 13277 ac_cv_search_bfd_init=$ac_res 13278 else 13279 echo "$as_me: failed program was:" >&5 13280 sed 's/^/| /' conftest.$ac_ext >&5 13281 13282 13283 fi 13284 13285 rm -f core conftest.err conftest.$ac_objext \ 13286 conftest$ac_exeext 13287 if test "${ac_cv_search_bfd_init+set}" = set; then 13288 break 13289 fi 13290 done 13291 if test "${ac_cv_search_bfd_init+set}" = set; then 13292 : 13293 else 13294 ac_cv_search_bfd_init=no 13295 fi 13296 rm conftest.$ac_ext 13297 LIBS=$ac_func_search_save_LIBS 13298 fi 13299 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13300 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13301 ac_res=$ac_cv_search_bfd_init 13302 if test "$ac_res" != no; then 13303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13304 13305 fi 13306 13307 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13308 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13309 if test "${ac_cv_search_op_open_agent+set}" = set; then 13310 echo $ECHO_N "(cached) $ECHO_C" >&6 13311 else 13312 ac_func_search_save_LIBS=$LIBS 13313 cat >conftest.$ac_ext <<_ACEOF 13314 /* confdefs.h. */ 13315 _ACEOF 13316 cat confdefs.h >>conftest.$ac_ext 13317 cat >>conftest.$ac_ext <<_ACEOF 13318 /* end confdefs.h. */ 13319 13320 /* Override any GCC internal prototype to avoid an error. 13321 Use char because int might match the return type of a GCC 13322 builtin and then its argument prototype would still apply. */ 13323 #ifdef __cplusplus 13324 extern "C" 13325 #endif 13326 char op_open_agent (); 13327 int 13328 main () 13329 { 13330 return op_open_agent (); 13331 ; 13332 return 0; 13333 } 13334 _ACEOF 13335 for ac_lib in '' opagent; do 13336 if test -z "$ac_lib"; then 13337 ac_res="none required" 13338 else 13339 ac_res=-l$ac_lib 13340 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13341 fi 13342 rm -f conftest.$ac_objext conftest$ac_exeext 13343 if { (ac_try="$ac_link" 13344 case "(($ac_try" in 13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13346 *) ac_try_echo=$ac_try;; 13347 esac 13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13349 (eval "$ac_link") 2>conftest.er1 13350 ac_status=$? 13351 grep -v '^ *+' conftest.er1 >conftest.err 13352 rm -f conftest.er1 13353 cat conftest.err >&5 13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13355 (exit $ac_status); } && 13356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13357 { (case "(($ac_try" in 13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13359 *) ac_try_echo=$ac_try;; 13360 esac 13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13362 (eval "$ac_try") 2>&5 13363 ac_status=$? 13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13365 (exit $ac_status); }; } && 13366 { ac_try='test -s conftest$ac_exeext' 13367 { (case "(($ac_try" in 13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13369 *) ac_try_echo=$ac_try;; 13370 esac 13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13372 (eval "$ac_try") 2>&5 13373 ac_status=$? 13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13375 (exit $ac_status); }; }; then 13376 ac_cv_search_op_open_agent=$ac_res 13377 else 13378 echo "$as_me: failed program was:" >&5 13379 sed 's/^/| /' conftest.$ac_ext >&5 13380 13381 13382 fi 13383 13384 rm -f core conftest.err conftest.$ac_objext \ 13385 conftest$ac_exeext 13386 if test "${ac_cv_search_op_open_agent+set}" = set; then 13387 break 13388 fi 13389 done 13390 if test "${ac_cv_search_op_open_agent+set}" = set; then 13391 : 13392 else 13393 ac_cv_search_op_open_agent=no 13394 fi 13395 rm conftest.$ac_ext 13396 LIBS=$ac_func_search_save_LIBS 13397 fi 13398 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13399 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13400 ac_res=$ac_cv_search_op_open_agent 13401 if test "$ac_res" != no; then 13402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13403 13404 else 13405 13406 echo "Error! You need to have libopagent around." 13407 exit -1 13408 13409 fi 13410 13411 if test "${ac_cv_header_opagent_h+set}" = set; then 13412 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13413 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13414 if test "${ac_cv_header_opagent_h+set}" = set; then 13415 echo $ECHO_N "(cached) $ECHO_C" >&6 13416 fi 13417 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13418 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13419 else 13420 # Is the header compilable? 13421 { echo "$as_me:$LINENO: checking opagent.h usability" >&5 13422 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13423 cat >conftest.$ac_ext <<_ACEOF 13424 /* confdefs.h. */ 13425 _ACEOF 13426 cat confdefs.h >>conftest.$ac_ext 13427 cat >>conftest.$ac_ext <<_ACEOF 13428 /* end confdefs.h. */ 13429 $ac_includes_default 13430 #include <opagent.h> 13431 _ACEOF 13432 rm -f conftest.$ac_objext 13433 if { (ac_try="$ac_compile" 13434 case "(($ac_try" in 13435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13436 *) ac_try_echo=$ac_try;; 13437 esac 13438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13439 (eval "$ac_compile") 2>conftest.er1 13440 ac_status=$? 13441 grep -v '^ *+' conftest.er1 >conftest.err 13442 rm -f conftest.er1 13443 cat conftest.err >&5 13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13445 (exit $ac_status); } && 13446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13447 { (case "(($ac_try" in 13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13449 *) ac_try_echo=$ac_try;; 13450 esac 13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13452 (eval "$ac_try") 2>&5 13453 ac_status=$? 13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13455 (exit $ac_status); }; } && 13456 { ac_try='test -s conftest.$ac_objext' 13457 { (case "(($ac_try" in 13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13459 *) ac_try_echo=$ac_try;; 13460 esac 13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13462 (eval "$ac_try") 2>&5 13463 ac_status=$? 13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13465 (exit $ac_status); }; }; then 13466 ac_header_compiler=yes 13467 else 13468 echo "$as_me: failed program was:" >&5 13469 sed 's/^/| /' conftest.$ac_ext >&5 13470 13471 ac_header_compiler=no 13472 fi 13473 13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13476 echo "${ECHO_T}$ac_header_compiler" >&6; } 13477 13478 # Is the header present? 13479 { echo "$as_me:$LINENO: checking opagent.h presence" >&5 13480 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13481 cat >conftest.$ac_ext <<_ACEOF 13482 /* confdefs.h. */ 13483 _ACEOF 13484 cat confdefs.h >>conftest.$ac_ext 13485 cat >>conftest.$ac_ext <<_ACEOF 13486 /* end confdefs.h. */ 13487 #include <opagent.h> 13488 _ACEOF 13489 if { (ac_try="$ac_cpp conftest.$ac_ext" 13490 case "(($ac_try" in 13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13492 *) ac_try_echo=$ac_try;; 13493 esac 13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13496 ac_status=$? 13497 grep -v '^ *+' conftest.er1 >conftest.err 13498 rm -f conftest.er1 13499 cat conftest.err >&5 13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13501 (exit $ac_status); } >/dev/null; then 13502 if test -s conftest.err; then 13503 ac_cpp_err=$ac_c_preproc_warn_flag 13504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13505 else 13506 ac_cpp_err= 13507 fi 13508 else 13509 ac_cpp_err=yes 13510 fi 13511 if test -z "$ac_cpp_err"; then 13512 ac_header_preproc=yes 13513 else 13514 echo "$as_me: failed program was:" >&5 13515 sed 's/^/| /' conftest.$ac_ext >&5 13516 13517 ac_header_preproc=no 13518 fi 13519 13520 rm -f conftest.err conftest.$ac_ext 13521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13522 echo "${ECHO_T}$ac_header_preproc" >&6; } 13523 13524 # So? What about this header? 13525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13526 yes:no: ) 13527 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13528 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13529 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13530 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13531 ac_header_preproc=yes 13532 ;; 13533 no:yes:* ) 13534 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13535 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13536 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13537 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13538 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13539 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13540 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13541 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13542 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13543 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13544 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13545 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13546 ( cat <<\_ASBOX 13547 ## ------------------------------ ## 13548 ## Report this to bugs@yourdomain ## 13549 ## ------------------------------ ## 13550 _ASBOX 13551 ) | sed "s/^/$as_me: WARNING: /" >&2 13552 ;; 13553 esac 13554 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13555 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13556 if test "${ac_cv_header_opagent_h+set}" = set; then 13557 echo $ECHO_N "(cached) $ECHO_C" >&6 13558 else 13559 ac_cv_header_opagent_h=$ac_header_preproc 13560 fi 13561 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13562 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13563 13564 fi 13565 if test $ac_cv_header_opagent_h = yes; then 13566 : 13567 else 13568 13569 echo "Error! You need to have opagent.h around." 13570 exit -1 13571 13572 fi 13573 13574 13575 fi 13576 13577 else 13578 13579 USE_OPROFILE=0 13580 13581 13582 fi 13583 13584 13585 cat >>confdefs.h <<_ACEOF 13586 #define USE_OPROFILE $USE_OPROFILE 13587 _ACEOF 13588 13589 13590 13591 13592 13593 13594 13595 13596 ac_header_dirent=no 13597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13598 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13599 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 13600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 13601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13602 echo $ECHO_N "(cached) $ECHO_C" >&6 13603 else 13604 cat >conftest.$ac_ext <<_ACEOF 13605 /* confdefs.h. */ 13606 _ACEOF 13607 cat confdefs.h >>conftest.$ac_ext 13608 cat >>conftest.$ac_ext <<_ACEOF 13609 /* end confdefs.h. */ 13610 #include <sys/types.h> 13611 #include <$ac_hdr> 13612 13613 int 13614 main () 13615 { 13616 if ((DIR *) 0) 13617 return 0; 13618 ; 13619 return 0; 13620 } 13621 _ACEOF 13622 rm -f conftest.$ac_objext 13623 if { (ac_try="$ac_compile" 13624 case "(($ac_try" in 13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13626 *) ac_try_echo=$ac_try;; 13627 esac 13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13629 (eval "$ac_compile") 2>conftest.er1 13630 ac_status=$? 13631 grep -v '^ *+' conftest.er1 >conftest.err 13632 rm -f conftest.er1 13633 cat conftest.err >&5 13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13635 (exit $ac_status); } && 13636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13637 { (case "(($ac_try" in 13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13639 *) ac_try_echo=$ac_try;; 13640 esac 13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13642 (eval "$ac_try") 2>&5 13643 ac_status=$? 13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13645 (exit $ac_status); }; } && 13646 { ac_try='test -s conftest.$ac_objext' 13647 { (case "(($ac_try" in 13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13649 *) ac_try_echo=$ac_try;; 13650 esac 13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13652 (eval "$ac_try") 2>&5 13653 ac_status=$? 13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13655 (exit $ac_status); }; }; then 13656 eval "$as_ac_Header=yes" 13657 else 13658 echo "$as_me: failed program was:" >&5 13659 sed 's/^/| /' conftest.$ac_ext >&5 13660 13661 eval "$as_ac_Header=no" 13662 fi 13663 13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13665 fi 13666 ac_res=`eval echo '${'$as_ac_Header'}'` 13667 { echo "$as_me:$LINENO: result: $ac_res" >&5 13668 echo "${ECHO_T}$ac_res" >&6; } 13669 if test `eval echo '${'$as_ac_Header'}'` = yes; then 13670 cat >>confdefs.h <<_ACEOF 13671 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 13672 _ACEOF 13673 13674 ac_header_dirent=$ac_hdr; break 13675 fi 13676 13677 done 13678 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13679 if test $ac_header_dirent = dirent.h; then 13680 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13681 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13682 if test "${ac_cv_search_opendir+set}" = set; then 13683 echo $ECHO_N "(cached) $ECHO_C" >&6 13684 else 13685 ac_func_search_save_LIBS=$LIBS 13686 cat >conftest.$ac_ext <<_ACEOF 13687 /* confdefs.h. */ 13688 _ACEOF 13689 cat confdefs.h >>conftest.$ac_ext 13690 cat >>conftest.$ac_ext <<_ACEOF 13691 /* end confdefs.h. */ 13692 13693 /* Override any GCC internal prototype to avoid an error. 13694 Use char because int might match the return type of a GCC 13695 builtin and then its argument prototype would still apply. */ 13696 #ifdef __cplusplus 13697 extern "C" 13698 #endif 13699 char opendir (); 13700 int 13701 main () 13702 { 13703 return opendir (); 13704 ; 13705 return 0; 13706 } 13707 _ACEOF 13708 for ac_lib in '' dir; do 13709 if test -z "$ac_lib"; then 13710 ac_res="none required" 13711 else 13712 ac_res=-l$ac_lib 13713 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13714 fi 13715 rm -f conftest.$ac_objext conftest$ac_exeext 13716 if { (ac_try="$ac_link" 13717 case "(($ac_try" in 13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13719 *) ac_try_echo=$ac_try;; 13720 esac 13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13722 (eval "$ac_link") 2>conftest.er1 13723 ac_status=$? 13724 grep -v '^ *+' conftest.er1 >conftest.err 13725 rm -f conftest.er1 13726 cat conftest.err >&5 13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13728 (exit $ac_status); } && 13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13730 { (case "(($ac_try" in 13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13732 *) ac_try_echo=$ac_try;; 13733 esac 13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13735 (eval "$ac_try") 2>&5 13736 ac_status=$? 13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13738 (exit $ac_status); }; } && 13739 { ac_try='test -s conftest$ac_exeext' 13740 { (case "(($ac_try" in 13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13742 *) ac_try_echo=$ac_try;; 13743 esac 13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13745 (eval "$ac_try") 2>&5 13746 ac_status=$? 13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13748 (exit $ac_status); }; }; then 13749 ac_cv_search_opendir=$ac_res 13750 else 13751 echo "$as_me: failed program was:" >&5 13752 sed 's/^/| /' conftest.$ac_ext >&5 13753 13754 13755 fi 13756 13757 rm -f core conftest.err conftest.$ac_objext \ 13758 conftest$ac_exeext 13759 if test "${ac_cv_search_opendir+set}" = set; then 13760 break 13761 fi 13762 done 13763 if test "${ac_cv_search_opendir+set}" = set; then 13764 : 13765 else 13766 ac_cv_search_opendir=no 13767 fi 13768 rm conftest.$ac_ext 13769 LIBS=$ac_func_search_save_LIBS 13770 fi 13771 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13772 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13773 ac_res=$ac_cv_search_opendir 13774 if test "$ac_res" != no; then 13775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13776 13777 fi 13778 13779 else 13780 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13781 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13782 if test "${ac_cv_search_opendir+set}" = set; then 13783 echo $ECHO_N "(cached) $ECHO_C" >&6 13784 else 13785 ac_func_search_save_LIBS=$LIBS 13786 cat >conftest.$ac_ext <<_ACEOF 13787 /* confdefs.h. */ 13788 _ACEOF 13789 cat confdefs.h >>conftest.$ac_ext 13790 cat >>conftest.$ac_ext <<_ACEOF 13791 /* end confdefs.h. */ 13792 13793 /* Override any GCC internal prototype to avoid an error. 13794 Use char because int might match the return type of a GCC 13795 builtin and then its argument prototype would still apply. */ 13796 #ifdef __cplusplus 13797 extern "C" 13798 #endif 13799 char opendir (); 13800 int 13801 main () 13802 { 13803 return opendir (); 13804 ; 13805 return 0; 13806 } 13807 _ACEOF 13808 for ac_lib in '' x; do 13809 if test -z "$ac_lib"; then 13810 ac_res="none required" 13811 else 13812 ac_res=-l$ac_lib 13813 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13814 fi 13815 rm -f conftest.$ac_objext conftest$ac_exeext 13816 if { (ac_try="$ac_link" 13817 case "(($ac_try" in 13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13819 *) ac_try_echo=$ac_try;; 13820 esac 13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13822 (eval "$ac_link") 2>conftest.er1 13823 ac_status=$? 13824 grep -v '^ *+' conftest.er1 >conftest.err 13825 rm -f conftest.er1 13826 cat conftest.err >&5 13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13828 (exit $ac_status); } && 13829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13830 { (case "(($ac_try" in 13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13832 *) ac_try_echo=$ac_try;; 13833 esac 13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13835 (eval "$ac_try") 2>&5 13836 ac_status=$? 13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13838 (exit $ac_status); }; } && 13839 { ac_try='test -s conftest$ac_exeext' 13840 { (case "(($ac_try" in 13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13842 *) ac_try_echo=$ac_try;; 13843 esac 13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13845 (eval "$ac_try") 2>&5 13846 ac_status=$? 13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13848 (exit $ac_status); }; }; then 13849 ac_cv_search_opendir=$ac_res 13850 else 13851 echo "$as_me: failed program was:" >&5 13852 sed 's/^/| /' conftest.$ac_ext >&5 13853 13854 13855 fi 13856 13857 rm -f core conftest.err conftest.$ac_objext \ 13858 conftest$ac_exeext 13859 if test "${ac_cv_search_opendir+set}" = set; then 13860 break 13861 fi 13862 done 13863 if test "${ac_cv_search_opendir+set}" = set; then 13864 : 13865 else 13866 ac_cv_search_opendir=no 13867 fi 13868 rm conftest.$ac_ext 13869 LIBS=$ac_func_search_save_LIBS 13870 fi 13871 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13872 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13873 ac_res=$ac_cv_search_opendir 13874 if test "$ac_res" != no; then 13875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13876 13877 fi 13878 13879 fi 13880 13881 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 13882 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 13883 if test "${ac_cv_header_mmap_anon+set}" = set; then 13884 echo $ECHO_N "(cached) $ECHO_C" >&6 13885 else 13886 ac_ext=c 13887 ac_cpp='$CPP $CPPFLAGS' 13888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13890 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13891 13892 cat >conftest.$ac_ext <<_ACEOF 13893 /* confdefs.h. */ 13894 _ACEOF 13895 cat confdefs.h >>conftest.$ac_ext 13896 cat >>conftest.$ac_ext <<_ACEOF 13897 /* end confdefs.h. */ 13898 #include <sys/mman.h> 13899 #include <unistd.h> 13900 #include <fcntl.h> 13901 int 13902 main () 13903 { 13904 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 13905 ; 13906 return 0; 13907 } 13908 _ACEOF 13909 rm -f conftest.$ac_objext 13910 if { (ac_try="$ac_compile" 13911 case "(($ac_try" in 13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13913 *) ac_try_echo=$ac_try;; 13914 esac 13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13916 (eval "$ac_compile") 2>conftest.er1 13917 ac_status=$? 13918 grep -v '^ *+' conftest.er1 >conftest.err 13919 rm -f conftest.er1 13920 cat conftest.err >&5 13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13922 (exit $ac_status); } && 13923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13924 { (case "(($ac_try" in 13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13926 *) ac_try_echo=$ac_try;; 13927 esac 13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13929 (eval "$ac_try") 2>&5 13930 ac_status=$? 13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13932 (exit $ac_status); }; } && 13933 { ac_try='test -s conftest.$ac_objext' 13934 { (case "(($ac_try" in 13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13936 *) ac_try_echo=$ac_try;; 13937 esac 13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13939 (eval "$ac_try") 2>&5 13940 ac_status=$? 13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13942 (exit $ac_status); }; }; then 13943 ac_cv_header_mmap_anon=yes 13944 else 13945 echo "$as_me: failed program was:" >&5 13946 sed 's/^/| /' conftest.$ac_ext >&5 13947 13948 ac_cv_header_mmap_anon=no 13949 fi 13950 13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13952 ac_ext=c 13953 ac_cpp='$CPP $CPPFLAGS' 13954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13956 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13957 13958 13959 fi 13960 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 13961 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 13962 if test "$ac_cv_header_mmap_anon" = yes; then 13963 13964 cat >>confdefs.h <<\_ACEOF 13965 #define HAVE_MMAP_ANONYMOUS 1 13966 _ACEOF 13967 13968 fi 13969 13970 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 13971 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 13972 if test "${ac_cv_header_stat_broken+set}" = set; then 13973 echo $ECHO_N "(cached) $ECHO_C" >&6 13974 else 13975 cat >conftest.$ac_ext <<_ACEOF 13976 /* confdefs.h. */ 13977 _ACEOF 13978 cat confdefs.h >>conftest.$ac_ext 13979 cat >>conftest.$ac_ext <<_ACEOF 13980 /* end confdefs.h. */ 13981 #include <sys/types.h> 13982 #include <sys/stat.h> 13983 13984 #if defined S_ISBLK && defined S_IFDIR 13985 # if S_ISBLK (S_IFDIR) 13986 You lose. 13987 # endif 13988 #endif 13989 13990 #if defined S_ISBLK && defined S_IFCHR 13991 # if S_ISBLK (S_IFCHR) 13992 You lose. 13993 # endif 13994 #endif 13995 13996 #if defined S_ISLNK && defined S_IFREG 13997 # if S_ISLNK (S_IFREG) 13998 You lose. 13999 # endif 14000 #endif 14001 14002 #if defined S_ISSOCK && defined S_IFREG 14003 # if S_ISSOCK (S_IFREG) 14004 You lose. 14005 # endif 14006 #endif 14007 14008 _ACEOF 14009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14010 $EGREP "You lose" >/dev/null 2>&1; then 14011 ac_cv_header_stat_broken=yes 14012 else 14013 ac_cv_header_stat_broken=no 14014 fi 14015 rm -f conftest* 14016 14017 fi 14018 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14019 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14020 if test $ac_cv_header_stat_broken = yes; then 14021 14022 cat >>confdefs.h <<\_ACEOF 14023 #define STAT_MACROS_BROKEN 1 14024 _ACEOF 14025 14026 fi 14027 14028 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14029 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14030 if test "${ac_cv_header_sys_wait_h+set}" = set; then 14031 echo $ECHO_N "(cached) $ECHO_C" >&6 14032 else 14033 cat >conftest.$ac_ext <<_ACEOF 14034 /* confdefs.h. */ 14035 _ACEOF 14036 cat confdefs.h >>conftest.$ac_ext 14037 cat >>conftest.$ac_ext <<_ACEOF 14038 /* end confdefs.h. */ 14039 #include <sys/types.h> 14040 #include <sys/wait.h> 14041 #ifndef WEXITSTATUS 14042 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14043 #endif 14044 #ifndef WIFEXITED 14045 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14046 #endif 14047 14048 int 14049 main () 14050 { 14051 int s; 14052 wait (&s); 14053 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14054 ; 14055 return 0; 14056 } 14057 _ACEOF 14058 rm -f conftest.$ac_objext 14059 if { (ac_try="$ac_compile" 14060 case "(($ac_try" in 14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14062 *) ac_try_echo=$ac_try;; 14063 esac 14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14065 (eval "$ac_compile") 2>conftest.er1 14066 ac_status=$? 14067 grep -v '^ *+' conftest.er1 >conftest.err 14068 rm -f conftest.er1 14069 cat conftest.err >&5 14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14071 (exit $ac_status); } && 14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14073 { (case "(($ac_try" in 14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14075 *) ac_try_echo=$ac_try;; 14076 esac 14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14078 (eval "$ac_try") 2>&5 14079 ac_status=$? 14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14081 (exit $ac_status); }; } && 14082 { ac_try='test -s conftest.$ac_objext' 14083 { (case "(($ac_try" in 14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14085 *) ac_try_echo=$ac_try;; 14086 esac 14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14088 (eval "$ac_try") 2>&5 14089 ac_status=$? 14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14091 (exit $ac_status); }; }; then 14092 ac_cv_header_sys_wait_h=yes 14093 else 14094 echo "$as_me: failed program was:" >&5 14095 sed 's/^/| /' conftest.$ac_ext >&5 14096 14097 ac_cv_header_sys_wait_h=no 14098 fi 14099 14100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14101 fi 14102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14103 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14104 if test $ac_cv_header_sys_wait_h = yes; then 14105 14106 cat >>confdefs.h <<\_ACEOF 14107 #define HAVE_SYS_WAIT_H 1 14108 _ACEOF 14109 14110 fi 14111 14112 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14113 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14114 if test "${ac_cv_header_time+set}" = set; then 14115 echo $ECHO_N "(cached) $ECHO_C" >&6 14116 else 14117 cat >conftest.$ac_ext <<_ACEOF 14118 /* confdefs.h. */ 14119 _ACEOF 14120 cat confdefs.h >>conftest.$ac_ext 14121 cat >>conftest.$ac_ext <<_ACEOF 14122 /* end confdefs.h. */ 14123 #include <sys/types.h> 14124 #include <sys/time.h> 14125 #include <time.h> 14126 14127 int 14128 main () 14129 { 14130 if ((struct tm *) 0) 14131 return 0; 14132 ; 14133 return 0; 14134 } 14135 _ACEOF 14136 rm -f conftest.$ac_objext 14137 if { (ac_try="$ac_compile" 14138 case "(($ac_try" in 14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14140 *) ac_try_echo=$ac_try;; 14141 esac 14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14143 (eval "$ac_compile") 2>conftest.er1 14144 ac_status=$? 14145 grep -v '^ *+' conftest.er1 >conftest.err 14146 rm -f conftest.er1 14147 cat conftest.err >&5 14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14149 (exit $ac_status); } && 14150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14151 { (case "(($ac_try" in 14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14153 *) ac_try_echo=$ac_try;; 14154 esac 14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14156 (eval "$ac_try") 2>&5 14157 ac_status=$? 14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14159 (exit $ac_status); }; } && 14160 { ac_try='test -s conftest.$ac_objext' 14161 { (case "(($ac_try" in 14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14163 *) ac_try_echo=$ac_try;; 14164 esac 14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14166 (eval "$ac_try") 2>&5 14167 ac_status=$? 14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14169 (exit $ac_status); }; }; then 14170 ac_cv_header_time=yes 14171 else 14172 echo "$as_me: failed program was:" >&5 14173 sed 's/^/| /' conftest.$ac_ext >&5 14174 14175 ac_cv_header_time=no 14176 fi 14177 14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14179 fi 14180 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14181 echo "${ECHO_T}$ac_cv_header_time" >&6; } 14182 if test $ac_cv_header_time = yes; then 14183 14184 cat >>confdefs.h <<\_ACEOF 14185 #define TIME_WITH_SYS_TIME 1 14186 _ACEOF 14187 14188 fi 14189 14190 14191 14192 14193 14194 14195 14196 14197 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14198 do 14199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14201 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14204 echo $ECHO_N "(cached) $ECHO_C" >&6 14205 fi 14206 ac_res=`eval echo '${'$as_ac_Header'}'` 14207 { echo "$as_me:$LINENO: result: $ac_res" >&5 14208 echo "${ECHO_T}$ac_res" >&6; } 14209 else 14210 # Is the header compilable? 14211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14213 cat >conftest.$ac_ext <<_ACEOF 14214 /* confdefs.h. */ 14215 _ACEOF 14216 cat confdefs.h >>conftest.$ac_ext 14217 cat >>conftest.$ac_ext <<_ACEOF 14218 /* end confdefs.h. */ 14219 $ac_includes_default 14220 #include <$ac_header> 14221 _ACEOF 14222 rm -f conftest.$ac_objext 14223 if { (ac_try="$ac_compile" 14224 case "(($ac_try" in 14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14226 *) ac_try_echo=$ac_try;; 14227 esac 14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14229 (eval "$ac_compile") 2>conftest.er1 14230 ac_status=$? 14231 grep -v '^ *+' conftest.er1 >conftest.err 14232 rm -f conftest.er1 14233 cat conftest.err >&5 14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14235 (exit $ac_status); } && 14236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14237 { (case "(($ac_try" in 14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14239 *) ac_try_echo=$ac_try;; 14240 esac 14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14242 (eval "$ac_try") 2>&5 14243 ac_status=$? 14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14245 (exit $ac_status); }; } && 14246 { ac_try='test -s conftest.$ac_objext' 14247 { (case "(($ac_try" in 14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14249 *) ac_try_echo=$ac_try;; 14250 esac 14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14252 (eval "$ac_try") 2>&5 14253 ac_status=$? 14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14255 (exit $ac_status); }; }; then 14256 ac_header_compiler=yes 14257 else 14258 echo "$as_me: failed program was:" >&5 14259 sed 's/^/| /' conftest.$ac_ext >&5 14260 14261 ac_header_compiler=no 14262 fi 14263 14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14266 echo "${ECHO_T}$ac_header_compiler" >&6; } 14267 14268 # Is the header present? 14269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14271 cat >conftest.$ac_ext <<_ACEOF 14272 /* confdefs.h. */ 14273 _ACEOF 14274 cat confdefs.h >>conftest.$ac_ext 14275 cat >>conftest.$ac_ext <<_ACEOF 14276 /* end confdefs.h. */ 14277 #include <$ac_header> 14278 _ACEOF 14279 if { (ac_try="$ac_cpp conftest.$ac_ext" 14280 case "(($ac_try" in 14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14282 *) ac_try_echo=$ac_try;; 14283 esac 14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14286 ac_status=$? 14287 grep -v '^ *+' conftest.er1 >conftest.err 14288 rm -f conftest.er1 14289 cat conftest.err >&5 14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14291 (exit $ac_status); } >/dev/null; then 14292 if test -s conftest.err; then 14293 ac_cpp_err=$ac_c_preproc_warn_flag 14294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14295 else 14296 ac_cpp_err= 14297 fi 14298 else 14299 ac_cpp_err=yes 14300 fi 14301 if test -z "$ac_cpp_err"; then 14302 ac_header_preproc=yes 14303 else 14304 echo "$as_me: failed program was:" >&5 14305 sed 's/^/| /' conftest.$ac_ext >&5 14306 14307 ac_header_preproc=no 14308 fi 14309 14310 rm -f conftest.err conftest.$ac_ext 14311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14312 echo "${ECHO_T}$ac_header_preproc" >&6; } 14313 14314 # So? What about this header? 14315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14316 yes:no: ) 14317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14321 ac_header_preproc=yes 14322 ;; 14323 no:yes:* ) 14324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14336 ( cat <<\_ASBOX 14337 ## ------------------------------ ## 14338 ## Report this to bugs@yourdomain ## 14339 ## ------------------------------ ## 14340 _ASBOX 14341 ) | sed "s/^/$as_me: WARNING: /" >&2 14342 ;; 14343 esac 14344 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14347 echo $ECHO_N "(cached) $ECHO_C" >&6 14348 else 14349 eval "$as_ac_Header=\$ac_header_preproc" 14350 fi 14351 ac_res=`eval echo '${'$as_ac_Header'}'` 14352 { echo "$as_me:$LINENO: result: $ac_res" >&5 14353 echo "${ECHO_T}$ac_res" >&6; } 14354 14355 fi 14356 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14357 cat >>confdefs.h <<_ACEOF 14358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14359 _ACEOF 14360 14361 fi 14362 14363 done 14364 14365 14366 14367 14368 14369 14370 14371 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14372 do 14373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14375 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14378 echo $ECHO_N "(cached) $ECHO_C" >&6 14379 fi 14380 ac_res=`eval echo '${'$as_ac_Header'}'` 14381 { echo "$as_me:$LINENO: result: $ac_res" >&5 14382 echo "${ECHO_T}$ac_res" >&6; } 14383 else 14384 # Is the header compilable? 14385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14387 cat >conftest.$ac_ext <<_ACEOF 14388 /* confdefs.h. */ 14389 _ACEOF 14390 cat confdefs.h >>conftest.$ac_ext 14391 cat >>conftest.$ac_ext <<_ACEOF 14392 /* end confdefs.h. */ 14393 $ac_includes_default 14394 #include <$ac_header> 14395 _ACEOF 14396 rm -f conftest.$ac_objext 14397 if { (ac_try="$ac_compile" 14398 case "(($ac_try" in 14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14400 *) ac_try_echo=$ac_try;; 14401 esac 14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14403 (eval "$ac_compile") 2>conftest.er1 14404 ac_status=$? 14405 grep -v '^ *+' conftest.er1 >conftest.err 14406 rm -f conftest.er1 14407 cat conftest.err >&5 14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14409 (exit $ac_status); } && 14410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14411 { (case "(($ac_try" in 14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14413 *) ac_try_echo=$ac_try;; 14414 esac 14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14416 (eval "$ac_try") 2>&5 14417 ac_status=$? 14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14419 (exit $ac_status); }; } && 14420 { ac_try='test -s conftest.$ac_objext' 14421 { (case "(($ac_try" in 14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14423 *) ac_try_echo=$ac_try;; 14424 esac 14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14426 (eval "$ac_try") 2>&5 14427 ac_status=$? 14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14429 (exit $ac_status); }; }; then 14430 ac_header_compiler=yes 14431 else 14432 echo "$as_me: failed program was:" >&5 14433 sed 's/^/| /' conftest.$ac_ext >&5 14434 14435 ac_header_compiler=no 14436 fi 14437 14438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14440 echo "${ECHO_T}$ac_header_compiler" >&6; } 14441 14442 # Is the header present? 14443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14445 cat >conftest.$ac_ext <<_ACEOF 14446 /* confdefs.h. */ 14447 _ACEOF 14448 cat confdefs.h >>conftest.$ac_ext 14449 cat >>conftest.$ac_ext <<_ACEOF 14450 /* end confdefs.h. */ 14451 #include <$ac_header> 14452 _ACEOF 14453 if { (ac_try="$ac_cpp conftest.$ac_ext" 14454 case "(($ac_try" in 14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14456 *) ac_try_echo=$ac_try;; 14457 esac 14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14460 ac_status=$? 14461 grep -v '^ *+' conftest.er1 >conftest.err 14462 rm -f conftest.er1 14463 cat conftest.err >&5 14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14465 (exit $ac_status); } >/dev/null; then 14466 if test -s conftest.err; then 14467 ac_cpp_err=$ac_c_preproc_warn_flag 14468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14469 else 14470 ac_cpp_err= 14471 fi 14472 else 14473 ac_cpp_err=yes 14474 fi 14475 if test -z "$ac_cpp_err"; then 14476 ac_header_preproc=yes 14477 else 14478 echo "$as_me: failed program was:" >&5 14479 sed 's/^/| /' conftest.$ac_ext >&5 14480 14481 ac_header_preproc=no 14482 fi 14483 14484 rm -f conftest.err conftest.$ac_ext 14485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14486 echo "${ECHO_T}$ac_header_preproc" >&6; } 14487 14488 # So? What about this header? 14489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14490 yes:no: ) 14491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14495 ac_header_preproc=yes 14496 ;; 14497 no:yes:* ) 14498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14510 ( cat <<\_ASBOX 14511 ## ------------------------------ ## 14512 ## Report this to bugs@yourdomain ## 14513 ## ------------------------------ ## 14514 _ASBOX 14515 ) | sed "s/^/$as_me: WARNING: /" >&2 14516 ;; 14517 esac 14518 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14521 echo $ECHO_N "(cached) $ECHO_C" >&6 14522 else 14523 eval "$as_ac_Header=\$ac_header_preproc" 14524 fi 14525 ac_res=`eval echo '${'$as_ac_Header'}'` 14526 { echo "$as_me:$LINENO: result: $ac_res" >&5 14527 echo "${ECHO_T}$ac_res" >&6; } 14528 14529 fi 14530 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14531 cat >>confdefs.h <<_ACEOF 14532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14533 _ACEOF 14534 14535 fi 14536 14537 done 14538 14539 14540 14541 for ac_header in utime.h windows.h 14542 do 14543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14545 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14548 echo $ECHO_N "(cached) $ECHO_C" >&6 14549 fi 14550 ac_res=`eval echo '${'$as_ac_Header'}'` 14551 { echo "$as_me:$LINENO: result: $ac_res" >&5 14552 echo "${ECHO_T}$ac_res" >&6; } 14553 else 14554 # Is the header compilable? 14555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14557 cat >conftest.$ac_ext <<_ACEOF 14558 /* confdefs.h. */ 14559 _ACEOF 14560 cat confdefs.h >>conftest.$ac_ext 14561 cat >>conftest.$ac_ext <<_ACEOF 14562 /* end confdefs.h. */ 14563 $ac_includes_default 14564 #include <$ac_header> 14565 _ACEOF 14566 rm -f conftest.$ac_objext 14567 if { (ac_try="$ac_compile" 14568 case "(($ac_try" in 14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14570 *) ac_try_echo=$ac_try;; 14571 esac 14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14573 (eval "$ac_compile") 2>conftest.er1 14574 ac_status=$? 14575 grep -v '^ *+' conftest.er1 >conftest.err 14576 rm -f conftest.er1 14577 cat conftest.err >&5 14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14579 (exit $ac_status); } && 14580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14581 { (case "(($ac_try" in 14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14583 *) ac_try_echo=$ac_try;; 14584 esac 14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14586 (eval "$ac_try") 2>&5 14587 ac_status=$? 14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14589 (exit $ac_status); }; } && 14590 { ac_try='test -s conftest.$ac_objext' 14591 { (case "(($ac_try" in 14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14593 *) ac_try_echo=$ac_try;; 14594 esac 14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14596 (eval "$ac_try") 2>&5 14597 ac_status=$? 14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14599 (exit $ac_status); }; }; then 14600 ac_header_compiler=yes 14601 else 14602 echo "$as_me: failed program was:" >&5 14603 sed 's/^/| /' conftest.$ac_ext >&5 14604 14605 ac_header_compiler=no 14606 fi 14607 14608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14610 echo "${ECHO_T}$ac_header_compiler" >&6; } 14611 14612 # Is the header present? 14613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14615 cat >conftest.$ac_ext <<_ACEOF 14616 /* confdefs.h. */ 14617 _ACEOF 14618 cat confdefs.h >>conftest.$ac_ext 14619 cat >>conftest.$ac_ext <<_ACEOF 14620 /* end confdefs.h. */ 14621 #include <$ac_header> 14622 _ACEOF 14623 if { (ac_try="$ac_cpp conftest.$ac_ext" 14624 case "(($ac_try" in 14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14626 *) ac_try_echo=$ac_try;; 14627 esac 14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14630 ac_status=$? 14631 grep -v '^ *+' conftest.er1 >conftest.err 14632 rm -f conftest.er1 14633 cat conftest.err >&5 14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14635 (exit $ac_status); } >/dev/null; then 14636 if test -s conftest.err; then 14637 ac_cpp_err=$ac_c_preproc_warn_flag 14638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14639 else 14640 ac_cpp_err= 14641 fi 14642 else 14643 ac_cpp_err=yes 14644 fi 14645 if test -z "$ac_cpp_err"; then 14646 ac_header_preproc=yes 14647 else 14648 echo "$as_me: failed program was:" >&5 14649 sed 's/^/| /' conftest.$ac_ext >&5 14650 14651 ac_header_preproc=no 14652 fi 14653 14654 rm -f conftest.err conftest.$ac_ext 14655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14656 echo "${ECHO_T}$ac_header_preproc" >&6; } 14657 14658 # So? What about this header? 14659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14660 yes:no: ) 14661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14665 ac_header_preproc=yes 14666 ;; 14667 no:yes:* ) 14668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14680 ( cat <<\_ASBOX 14681 ## ------------------------------ ## 14682 ## Report this to bugs@yourdomain ## 14683 ## ------------------------------ ## 14684 _ASBOX 14685 ) | sed "s/^/$as_me: WARNING: /" >&2 14686 ;; 14687 esac 14688 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14691 echo $ECHO_N "(cached) $ECHO_C" >&6 14692 else 14693 eval "$as_ac_Header=\$ac_header_preproc" 14694 fi 14695 ac_res=`eval echo '${'$as_ac_Header'}'` 14696 { echo "$as_me:$LINENO: result: $ac_res" >&5 14697 echo "${ECHO_T}$ac_res" >&6; } 14698 14699 fi 14700 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14701 cat >>confdefs.h <<_ACEOF 14702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14703 _ACEOF 14704 14705 fi 14706 14707 done 14708 14709 14710 14711 14712 14713 14714 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 14715 do 14716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14718 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14721 echo $ECHO_N "(cached) $ECHO_C" >&6 14722 fi 14723 ac_res=`eval echo '${'$as_ac_Header'}'` 14724 { echo "$as_me:$LINENO: result: $ac_res" >&5 14725 echo "${ECHO_T}$ac_res" >&6; } 14726 else 14727 # Is the header compilable? 14728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14730 cat >conftest.$ac_ext <<_ACEOF 14731 /* confdefs.h. */ 14732 _ACEOF 14733 cat confdefs.h >>conftest.$ac_ext 14734 cat >>conftest.$ac_ext <<_ACEOF 14735 /* end confdefs.h. */ 14736 $ac_includes_default 14737 #include <$ac_header> 14738 _ACEOF 14739 rm -f conftest.$ac_objext 14740 if { (ac_try="$ac_compile" 14741 case "(($ac_try" in 14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14743 *) ac_try_echo=$ac_try;; 14744 esac 14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14746 (eval "$ac_compile") 2>conftest.er1 14747 ac_status=$? 14748 grep -v '^ *+' conftest.er1 >conftest.err 14749 rm -f conftest.er1 14750 cat conftest.err >&5 14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14752 (exit $ac_status); } && 14753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14754 { (case "(($ac_try" in 14755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14756 *) ac_try_echo=$ac_try;; 14757 esac 14758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14759 (eval "$ac_try") 2>&5 14760 ac_status=$? 14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14762 (exit $ac_status); }; } && 14763 { ac_try='test -s conftest.$ac_objext' 14764 { (case "(($ac_try" in 14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14766 *) ac_try_echo=$ac_try;; 14767 esac 14768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14769 (eval "$ac_try") 2>&5 14770 ac_status=$? 14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14772 (exit $ac_status); }; }; then 14773 ac_header_compiler=yes 14774 else 14775 echo "$as_me: failed program was:" >&5 14776 sed 's/^/| /' conftest.$ac_ext >&5 14777 14778 ac_header_compiler=no 14779 fi 14780 14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14783 echo "${ECHO_T}$ac_header_compiler" >&6; } 14784 14785 # Is the header present? 14786 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14788 cat >conftest.$ac_ext <<_ACEOF 14789 /* confdefs.h. */ 14790 _ACEOF 14791 cat confdefs.h >>conftest.$ac_ext 14792 cat >>conftest.$ac_ext <<_ACEOF 14793 /* end confdefs.h. */ 14794 #include <$ac_header> 14795 _ACEOF 14796 if { (ac_try="$ac_cpp conftest.$ac_ext" 14797 case "(($ac_try" in 14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14799 *) ac_try_echo=$ac_try;; 14800 esac 14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14803 ac_status=$? 14804 grep -v '^ *+' conftest.er1 >conftest.err 14805 rm -f conftest.er1 14806 cat conftest.err >&5 14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14808 (exit $ac_status); } >/dev/null; then 14809 if test -s conftest.err; then 14810 ac_cpp_err=$ac_c_preproc_warn_flag 14811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14812 else 14813 ac_cpp_err= 14814 fi 14815 else 14816 ac_cpp_err=yes 14817 fi 14818 if test -z "$ac_cpp_err"; then 14819 ac_header_preproc=yes 14820 else 14821 echo "$as_me: failed program was:" >&5 14822 sed 's/^/| /' conftest.$ac_ext >&5 14823 14824 ac_header_preproc=no 14825 fi 14826 14827 rm -f conftest.err conftest.$ac_ext 14828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14829 echo "${ECHO_T}$ac_header_preproc" >&6; } 14830 14831 # So? What about this header? 14832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14833 yes:no: ) 14834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14838 ac_header_preproc=yes 14839 ;; 14840 no:yes:* ) 14841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14853 ( cat <<\_ASBOX 14854 ## ------------------------------ ## 14855 ## Report this to bugs@yourdomain ## 14856 ## ------------------------------ ## 14857 _ASBOX 14858 ) | sed "s/^/$as_me: WARNING: /" >&2 14859 ;; 14860 esac 14861 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14864 echo $ECHO_N "(cached) $ECHO_C" >&6 14865 else 14866 eval "$as_ac_Header=\$ac_header_preproc" 14867 fi 14868 ac_res=`eval echo '${'$as_ac_Header'}'` 14869 { echo "$as_me:$LINENO: result: $ac_res" >&5 14870 echo "${ECHO_T}$ac_res" >&6; } 14871 14872 fi 14873 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14874 cat >>confdefs.h <<_ACEOF 14875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14876 _ACEOF 14877 14878 fi 14879 14880 done 14881 14882 14883 14884 14885 14886 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 14887 do 14888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14890 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14893 echo $ECHO_N "(cached) $ECHO_C" >&6 14894 fi 14895 ac_res=`eval echo '${'$as_ac_Header'}'` 14896 { echo "$as_me:$LINENO: result: $ac_res" >&5 14897 echo "${ECHO_T}$ac_res" >&6; } 14898 else 14899 # Is the header compilable? 14900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14902 cat >conftest.$ac_ext <<_ACEOF 14903 /* confdefs.h. */ 14904 _ACEOF 14905 cat confdefs.h >>conftest.$ac_ext 14906 cat >>conftest.$ac_ext <<_ACEOF 14907 /* end confdefs.h. */ 14908 $ac_includes_default 14909 #include <$ac_header> 14910 _ACEOF 14911 rm -f conftest.$ac_objext 14912 if { (ac_try="$ac_compile" 14913 case "(($ac_try" in 14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14915 *) ac_try_echo=$ac_try;; 14916 esac 14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14918 (eval "$ac_compile") 2>conftest.er1 14919 ac_status=$? 14920 grep -v '^ *+' conftest.er1 >conftest.err 14921 rm -f conftest.er1 14922 cat conftest.err >&5 14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14924 (exit $ac_status); } && 14925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14926 { (case "(($ac_try" in 14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14928 *) ac_try_echo=$ac_try;; 14929 esac 14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14931 (eval "$ac_try") 2>&5 14932 ac_status=$? 14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14934 (exit $ac_status); }; } && 14935 { ac_try='test -s conftest.$ac_objext' 14936 { (case "(($ac_try" in 14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14938 *) ac_try_echo=$ac_try;; 14939 esac 14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14941 (eval "$ac_try") 2>&5 14942 ac_status=$? 14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14944 (exit $ac_status); }; }; then 14945 ac_header_compiler=yes 14946 else 14947 echo "$as_me: failed program was:" >&5 14948 sed 's/^/| /' conftest.$ac_ext >&5 14949 14950 ac_header_compiler=no 14951 fi 14952 14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14955 echo "${ECHO_T}$ac_header_compiler" >&6; } 14956 14957 # Is the header present? 14958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14960 cat >conftest.$ac_ext <<_ACEOF 14961 /* confdefs.h. */ 14962 _ACEOF 14963 cat confdefs.h >>conftest.$ac_ext 14964 cat >>conftest.$ac_ext <<_ACEOF 14965 /* end confdefs.h. */ 14966 #include <$ac_header> 14967 _ACEOF 14968 if { (ac_try="$ac_cpp conftest.$ac_ext" 14969 case "(($ac_try" in 14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14971 *) ac_try_echo=$ac_try;; 14972 esac 14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14975 ac_status=$? 14976 grep -v '^ *+' conftest.er1 >conftest.err 14977 rm -f conftest.er1 14978 cat conftest.err >&5 14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14980 (exit $ac_status); } >/dev/null; then 14981 if test -s conftest.err; then 14982 ac_cpp_err=$ac_c_preproc_warn_flag 14983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14984 else 14985 ac_cpp_err= 14986 fi 14987 else 14988 ac_cpp_err=yes 14989 fi 14990 if test -z "$ac_cpp_err"; then 14991 ac_header_preproc=yes 14992 else 14993 echo "$as_me: failed program was:" >&5 14994 sed 's/^/| /' conftest.$ac_ext >&5 14995 14996 ac_header_preproc=no 14997 fi 14998 14999 rm -f conftest.err conftest.$ac_ext 15000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15001 echo "${ECHO_T}$ac_header_preproc" >&6; } 15002 15003 # So? What about this header? 15004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15005 yes:no: ) 15006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15010 ac_header_preproc=yes 15011 ;; 15012 no:yes:* ) 15013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15025 ( cat <<\_ASBOX 15026 ## ------------------------------ ## 15027 ## Report this to bugs@yourdomain ## 15028 ## ------------------------------ ## 15029 _ASBOX 15030 ) | sed "s/^/$as_me: WARNING: /" >&2 15031 ;; 15032 esac 15033 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15036 echo $ECHO_N "(cached) $ECHO_C" >&6 15037 else 15038 eval "$as_ac_Header=\$ac_header_preproc" 15039 fi 15040 ac_res=`eval echo '${'$as_ac_Header'}'` 15041 { echo "$as_me:$LINENO: result: $ac_res" >&5 15042 echo "${ECHO_T}$ac_res" >&6; } 15043 15044 fi 15045 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15046 cat >>confdefs.h <<_ACEOF 15047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15048 _ACEOF 15049 15050 fi 15051 15052 done 15053 15054 15055 for ac_header in valgrind/valgrind.h 15056 do 15057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15059 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15062 echo $ECHO_N "(cached) $ECHO_C" >&6 15063 fi 15064 ac_res=`eval echo '${'$as_ac_Header'}'` 15065 { echo "$as_me:$LINENO: result: $ac_res" >&5 15066 echo "${ECHO_T}$ac_res" >&6; } 15067 else 15068 # Is the header compilable? 15069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15071 cat >conftest.$ac_ext <<_ACEOF 15072 /* confdefs.h. */ 15073 _ACEOF 15074 cat confdefs.h >>conftest.$ac_ext 15075 cat >>conftest.$ac_ext <<_ACEOF 15076 /* end confdefs.h. */ 15077 $ac_includes_default 15078 #include <$ac_header> 15079 _ACEOF 15080 rm -f conftest.$ac_objext 15081 if { (ac_try="$ac_compile" 15082 case "(($ac_try" in 15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15084 *) ac_try_echo=$ac_try;; 15085 esac 15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15087 (eval "$ac_compile") 2>conftest.er1 15088 ac_status=$? 15089 grep -v '^ *+' conftest.er1 >conftest.err 15090 rm -f conftest.er1 15091 cat conftest.err >&5 15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15093 (exit $ac_status); } && 15094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15095 { (case "(($ac_try" in 15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15097 *) ac_try_echo=$ac_try;; 15098 esac 15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15100 (eval "$ac_try") 2>&5 15101 ac_status=$? 15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15103 (exit $ac_status); }; } && 15104 { ac_try='test -s conftest.$ac_objext' 15105 { (case "(($ac_try" in 15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15107 *) ac_try_echo=$ac_try;; 15108 esac 15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15110 (eval "$ac_try") 2>&5 15111 ac_status=$? 15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15113 (exit $ac_status); }; }; then 15114 ac_header_compiler=yes 15115 else 15116 echo "$as_me: failed program was:" >&5 15117 sed 's/^/| /' conftest.$ac_ext >&5 15118 15119 ac_header_compiler=no 15120 fi 15121 15122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15124 echo "${ECHO_T}$ac_header_compiler" >&6; } 15125 15126 # Is the header present? 15127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15129 cat >conftest.$ac_ext <<_ACEOF 15130 /* confdefs.h. */ 15131 _ACEOF 15132 cat confdefs.h >>conftest.$ac_ext 15133 cat >>conftest.$ac_ext <<_ACEOF 15134 /* end confdefs.h. */ 15135 #include <$ac_header> 15136 _ACEOF 15137 if { (ac_try="$ac_cpp conftest.$ac_ext" 15138 case "(($ac_try" in 15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15140 *) ac_try_echo=$ac_try;; 15141 esac 15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15144 ac_status=$? 15145 grep -v '^ *+' conftest.er1 >conftest.err 15146 rm -f conftest.er1 15147 cat conftest.err >&5 15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15149 (exit $ac_status); } >/dev/null; then 15150 if test -s conftest.err; then 15151 ac_cpp_err=$ac_c_preproc_warn_flag 15152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15153 else 15154 ac_cpp_err= 15155 fi 15156 else 15157 ac_cpp_err=yes 15158 fi 15159 if test -z "$ac_cpp_err"; then 15160 ac_header_preproc=yes 15161 else 15162 echo "$as_me: failed program was:" >&5 15163 sed 's/^/| /' conftest.$ac_ext >&5 15164 15165 ac_header_preproc=no 15166 fi 15167 15168 rm -f conftest.err conftest.$ac_ext 15169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15170 echo "${ECHO_T}$ac_header_preproc" >&6; } 15171 15172 # So? What about this header? 15173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15174 yes:no: ) 15175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15179 ac_header_preproc=yes 15180 ;; 15181 no:yes:* ) 15182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15194 ( cat <<\_ASBOX 15195 ## ------------------------------ ## 15196 ## Report this to bugs@yourdomain ## 15197 ## ------------------------------ ## 15198 _ASBOX 15199 ) | sed "s/^/$as_me: WARNING: /" >&2 15200 ;; 15201 esac 15202 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15205 echo $ECHO_N "(cached) $ECHO_C" >&6 15206 else 15207 eval "$as_ac_Header=\$ac_header_preproc" 15208 fi 15209 ac_res=`eval echo '${'$as_ac_Header'}'` 15210 { echo "$as_me:$LINENO: result: $ac_res" >&5 15211 echo "${ECHO_T}$ac_res" >&6; } 15212 15213 fi 15214 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15215 cat >>confdefs.h <<_ACEOF 15216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15217 _ACEOF 15218 15219 fi 15220 15221 done 15222 15223 15224 for ac_header in fenv.h 15225 do 15226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15228 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15231 echo $ECHO_N "(cached) $ECHO_C" >&6 15232 fi 15233 ac_res=`eval echo '${'$as_ac_Header'}'` 15234 { echo "$as_me:$LINENO: result: $ac_res" >&5 15235 echo "${ECHO_T}$ac_res" >&6; } 15236 else 15237 # Is the header compilable? 15238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15240 cat >conftest.$ac_ext <<_ACEOF 15241 /* confdefs.h. */ 15242 _ACEOF 15243 cat confdefs.h >>conftest.$ac_ext 15244 cat >>conftest.$ac_ext <<_ACEOF 15245 /* end confdefs.h. */ 15246 $ac_includes_default 15247 #include <$ac_header> 15248 _ACEOF 15249 rm -f conftest.$ac_objext 15250 if { (ac_try="$ac_compile" 15251 case "(($ac_try" in 15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15253 *) ac_try_echo=$ac_try;; 15254 esac 15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15256 (eval "$ac_compile") 2>conftest.er1 15257 ac_status=$? 15258 grep -v '^ *+' conftest.er1 >conftest.err 15259 rm -f conftest.er1 15260 cat conftest.err >&5 15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15262 (exit $ac_status); } && 15263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15264 { (case "(($ac_try" in 15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15266 *) ac_try_echo=$ac_try;; 15267 esac 15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15269 (eval "$ac_try") 2>&5 15270 ac_status=$? 15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15272 (exit $ac_status); }; } && 15273 { ac_try='test -s conftest.$ac_objext' 15274 { (case "(($ac_try" in 15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15276 *) ac_try_echo=$ac_try;; 15277 esac 15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15279 (eval "$ac_try") 2>&5 15280 ac_status=$? 15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15282 (exit $ac_status); }; }; then 15283 ac_header_compiler=yes 15284 else 15285 echo "$as_me: failed program was:" >&5 15286 sed 's/^/| /' conftest.$ac_ext >&5 15287 15288 ac_header_compiler=no 15289 fi 15290 15291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15293 echo "${ECHO_T}$ac_header_compiler" >&6; } 15294 15295 # Is the header present? 15296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15298 cat >conftest.$ac_ext <<_ACEOF 15299 /* confdefs.h. */ 15300 _ACEOF 15301 cat confdefs.h >>conftest.$ac_ext 15302 cat >>conftest.$ac_ext <<_ACEOF 15303 /* end confdefs.h. */ 15304 #include <$ac_header> 15305 _ACEOF 15306 if { (ac_try="$ac_cpp conftest.$ac_ext" 15307 case "(($ac_try" in 15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15309 *) ac_try_echo=$ac_try;; 15310 esac 15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15313 ac_status=$? 15314 grep -v '^ *+' conftest.er1 >conftest.err 15315 rm -f conftest.er1 15316 cat conftest.err >&5 15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15318 (exit $ac_status); } >/dev/null; then 15319 if test -s conftest.err; then 15320 ac_cpp_err=$ac_c_preproc_warn_flag 15321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15322 else 15323 ac_cpp_err= 15324 fi 15325 else 15326 ac_cpp_err=yes 15327 fi 15328 if test -z "$ac_cpp_err"; then 15329 ac_header_preproc=yes 15330 else 15331 echo "$as_me: failed program was:" >&5 15332 sed 's/^/| /' conftest.$ac_ext >&5 15333 15334 ac_header_preproc=no 15335 fi 15336 15337 rm -f conftest.err conftest.$ac_ext 15338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15339 echo "${ECHO_T}$ac_header_preproc" >&6; } 15340 15341 # So? What about this header? 15342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15343 yes:no: ) 15344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15348 ac_header_preproc=yes 15349 ;; 15350 no:yes:* ) 15351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15363 ( cat <<\_ASBOX 15364 ## ------------------------------ ## 15365 ## Report this to bugs@yourdomain ## 15366 ## ------------------------------ ## 15367 _ASBOX 15368 ) | sed "s/^/$as_me: WARNING: /" >&2 15369 ;; 15370 esac 15371 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15374 echo $ECHO_N "(cached) $ECHO_C" >&6 15375 else 15376 eval "$as_ac_Header=\$ac_header_preproc" 15377 fi 15378 ac_res=`eval echo '${'$as_ac_Header'}'` 15379 { echo "$as_me:$LINENO: result: $ac_res" >&5 15380 echo "${ECHO_T}$ac_res" >&6; } 15381 15382 fi 15383 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15384 cat >>confdefs.h <<_ACEOF 15385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15386 _ACEOF 15387 15388 fi 15389 15390 done 15391 15392 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15393 15394 for ac_header in pthread.h 15395 do 15396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15398 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15401 echo $ECHO_N "(cached) $ECHO_C" >&6 15402 fi 15403 ac_res=`eval echo '${'$as_ac_Header'}'` 15404 { echo "$as_me:$LINENO: result: $ac_res" >&5 15405 echo "${ECHO_T}$ac_res" >&6; } 15406 else 15407 # Is the header compilable? 15408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15410 cat >conftest.$ac_ext <<_ACEOF 15411 /* confdefs.h. */ 15412 _ACEOF 15413 cat confdefs.h >>conftest.$ac_ext 15414 cat >>conftest.$ac_ext <<_ACEOF 15415 /* end confdefs.h. */ 15416 $ac_includes_default 15417 #include <$ac_header> 15418 _ACEOF 15419 rm -f conftest.$ac_objext 15420 if { (ac_try="$ac_compile" 15421 case "(($ac_try" in 15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15423 *) ac_try_echo=$ac_try;; 15424 esac 15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15426 (eval "$ac_compile") 2>conftest.er1 15427 ac_status=$? 15428 grep -v '^ *+' conftest.er1 >conftest.err 15429 rm -f conftest.er1 15430 cat conftest.err >&5 15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15432 (exit $ac_status); } && 15433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15434 { (case "(($ac_try" in 15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15436 *) ac_try_echo=$ac_try;; 15437 esac 15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15439 (eval "$ac_try") 2>&5 15440 ac_status=$? 15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15442 (exit $ac_status); }; } && 15443 { ac_try='test -s conftest.$ac_objext' 15444 { (case "(($ac_try" in 15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15446 *) ac_try_echo=$ac_try;; 15447 esac 15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15449 (eval "$ac_try") 2>&5 15450 ac_status=$? 15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15452 (exit $ac_status); }; }; then 15453 ac_header_compiler=yes 15454 else 15455 echo "$as_me: failed program was:" >&5 15456 sed 's/^/| /' conftest.$ac_ext >&5 15457 15458 ac_header_compiler=no 15459 fi 15460 15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15463 echo "${ECHO_T}$ac_header_compiler" >&6; } 15464 15465 # Is the header present? 15466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15468 cat >conftest.$ac_ext <<_ACEOF 15469 /* confdefs.h. */ 15470 _ACEOF 15471 cat confdefs.h >>conftest.$ac_ext 15472 cat >>conftest.$ac_ext <<_ACEOF 15473 /* end confdefs.h. */ 15474 #include <$ac_header> 15475 _ACEOF 15476 if { (ac_try="$ac_cpp conftest.$ac_ext" 15477 case "(($ac_try" in 15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15479 *) ac_try_echo=$ac_try;; 15480 esac 15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15483 ac_status=$? 15484 grep -v '^ *+' conftest.er1 >conftest.err 15485 rm -f conftest.er1 15486 cat conftest.err >&5 15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15488 (exit $ac_status); } >/dev/null; then 15489 if test -s conftest.err; then 15490 ac_cpp_err=$ac_c_preproc_warn_flag 15491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15492 else 15493 ac_cpp_err= 15494 fi 15495 else 15496 ac_cpp_err=yes 15497 fi 15498 if test -z "$ac_cpp_err"; then 15499 ac_header_preproc=yes 15500 else 15501 echo "$as_me: failed program was:" >&5 15502 sed 's/^/| /' conftest.$ac_ext >&5 15503 15504 ac_header_preproc=no 15505 fi 15506 15507 rm -f conftest.err conftest.$ac_ext 15508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15509 echo "${ECHO_T}$ac_header_preproc" >&6; } 15510 15511 # So? What about this header? 15512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15513 yes:no: ) 15514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15518 ac_header_preproc=yes 15519 ;; 15520 no:yes:* ) 15521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15533 ( cat <<\_ASBOX 15534 ## ------------------------------ ## 15535 ## Report this to bugs@yourdomain ## 15536 ## ------------------------------ ## 15537 _ASBOX 15538 ) | sed "s/^/$as_me: WARNING: /" >&2 15539 ;; 15540 esac 15541 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15544 echo $ECHO_N "(cached) $ECHO_C" >&6 15545 else 15546 eval "$as_ac_Header=\$ac_header_preproc" 15547 fi 15548 ac_res=`eval echo '${'$as_ac_Header'}'` 15549 { echo "$as_me:$LINENO: result: $ac_res" >&5 15550 echo "${ECHO_T}$ac_res" >&6; } 15551 15552 fi 15553 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15554 cat >>confdefs.h <<_ACEOF 15555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15556 _ACEOF 15557 HAVE_PTHREAD=1 15558 15559 else 15560 HAVE_PTHREAD=0 15561 15562 fi 15563 15564 done 15565 15566 else 15567 HAVE_PTHREAD=0 15568 15569 fi 15570 15571 if test "$llvm_cv_enable_libffi" = "yes" ; then 15572 15573 15574 for ac_header in ffi.h ffi/ffi.h 15575 do 15576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15578 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15581 echo $ECHO_N "(cached) $ECHO_C" >&6 15582 fi 15583 ac_res=`eval echo '${'$as_ac_Header'}'` 15584 { echo "$as_me:$LINENO: result: $ac_res" >&5 15585 echo "${ECHO_T}$ac_res" >&6; } 15586 else 15587 # Is the header compilable? 15588 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15590 cat >conftest.$ac_ext <<_ACEOF 15591 /* confdefs.h. */ 15592 _ACEOF 15593 cat confdefs.h >>conftest.$ac_ext 15594 cat >>conftest.$ac_ext <<_ACEOF 15595 /* end confdefs.h. */ 15596 $ac_includes_default 15597 #include <$ac_header> 15598 _ACEOF 15599 rm -f conftest.$ac_objext 15600 if { (ac_try="$ac_compile" 15601 case "(($ac_try" in 15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15603 *) ac_try_echo=$ac_try;; 15604 esac 15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15606 (eval "$ac_compile") 2>conftest.er1 15607 ac_status=$? 15608 grep -v '^ *+' conftest.er1 >conftest.err 15609 rm -f conftest.er1 15610 cat conftest.err >&5 15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15612 (exit $ac_status); } && 15613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15614 { (case "(($ac_try" in 15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15616 *) ac_try_echo=$ac_try;; 15617 esac 15618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15619 (eval "$ac_try") 2>&5 15620 ac_status=$? 15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15622 (exit $ac_status); }; } && 15623 { ac_try='test -s conftest.$ac_objext' 15624 { (case "(($ac_try" in 15625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15626 *) ac_try_echo=$ac_try;; 15627 esac 15628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15629 (eval "$ac_try") 2>&5 15630 ac_status=$? 15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15632 (exit $ac_status); }; }; then 15633 ac_header_compiler=yes 15634 else 15635 echo "$as_me: failed program was:" >&5 15636 sed 's/^/| /' conftest.$ac_ext >&5 15637 15638 ac_header_compiler=no 15639 fi 15640 15641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15643 echo "${ECHO_T}$ac_header_compiler" >&6; } 15644 15645 # Is the header present? 15646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15648 cat >conftest.$ac_ext <<_ACEOF 15649 /* confdefs.h. */ 15650 _ACEOF 15651 cat confdefs.h >>conftest.$ac_ext 15652 cat >>conftest.$ac_ext <<_ACEOF 15653 /* end confdefs.h. */ 15654 #include <$ac_header> 15655 _ACEOF 15656 if { (ac_try="$ac_cpp conftest.$ac_ext" 15657 case "(($ac_try" in 15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15659 *) ac_try_echo=$ac_try;; 15660 esac 15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15663 ac_status=$? 15664 grep -v '^ *+' conftest.er1 >conftest.err 15665 rm -f conftest.er1 15666 cat conftest.err >&5 15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15668 (exit $ac_status); } >/dev/null; then 15669 if test -s conftest.err; then 15670 ac_cpp_err=$ac_c_preproc_warn_flag 15671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15672 else 15673 ac_cpp_err= 15674 fi 15675 else 15676 ac_cpp_err=yes 15677 fi 15678 if test -z "$ac_cpp_err"; then 15679 ac_header_preproc=yes 15680 else 15681 echo "$as_me: failed program was:" >&5 15682 sed 's/^/| /' conftest.$ac_ext >&5 15683 15684 ac_header_preproc=no 15685 fi 15686 15687 rm -f conftest.err conftest.$ac_ext 15688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15689 echo "${ECHO_T}$ac_header_preproc" >&6; } 15690 15691 # So? What about this header? 15692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15693 yes:no: ) 15694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15698 ac_header_preproc=yes 15699 ;; 15700 no:yes:* ) 15701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15713 ( cat <<\_ASBOX 15714 ## ------------------------------ ## 15715 ## Report this to bugs@yourdomain ## 15716 ## ------------------------------ ## 15717 _ASBOX 15718 ) | sed "s/^/$as_me: WARNING: /" >&2 15719 ;; 15720 esac 15721 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15724 echo $ECHO_N "(cached) $ECHO_C" >&6 15725 else 15726 eval "$as_ac_Header=\$ac_header_preproc" 15727 fi 15728 ac_res=`eval echo '${'$as_ac_Header'}'` 15729 { echo "$as_me:$LINENO: result: $ac_res" >&5 15730 echo "${ECHO_T}$ac_res" >&6; } 15731 15732 fi 15733 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15734 cat >>confdefs.h <<_ACEOF 15735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15736 _ACEOF 15737 15738 fi 15739 15740 done 15741 15742 fi 15743 15744 15745 for ac_header in CrashReporterClient.h 15746 do 15747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15749 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15752 echo $ECHO_N "(cached) $ECHO_C" >&6 15753 fi 15754 ac_res=`eval echo '${'$as_ac_Header'}'` 15755 { echo "$as_me:$LINENO: result: $ac_res" >&5 15756 echo "${ECHO_T}$ac_res" >&6; } 15757 else 15758 # Is the header compilable? 15759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15761 cat >conftest.$ac_ext <<_ACEOF 15762 /* confdefs.h. */ 15763 _ACEOF 15764 cat confdefs.h >>conftest.$ac_ext 15765 cat >>conftest.$ac_ext <<_ACEOF 15766 /* end confdefs.h. */ 15767 $ac_includes_default 15768 #include <$ac_header> 15769 _ACEOF 15770 rm -f conftest.$ac_objext 15771 if { (ac_try="$ac_compile" 15772 case "(($ac_try" in 15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15774 *) ac_try_echo=$ac_try;; 15775 esac 15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15777 (eval "$ac_compile") 2>conftest.er1 15778 ac_status=$? 15779 grep -v '^ *+' conftest.er1 >conftest.err 15780 rm -f conftest.er1 15781 cat conftest.err >&5 15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15783 (exit $ac_status); } && 15784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15785 { (case "(($ac_try" in 15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15787 *) ac_try_echo=$ac_try;; 15788 esac 15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15790 (eval "$ac_try") 2>&5 15791 ac_status=$? 15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15793 (exit $ac_status); }; } && 15794 { ac_try='test -s conftest.$ac_objext' 15795 { (case "(($ac_try" in 15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15797 *) ac_try_echo=$ac_try;; 15798 esac 15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15800 (eval "$ac_try") 2>&5 15801 ac_status=$? 15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15803 (exit $ac_status); }; }; then 15804 ac_header_compiler=yes 15805 else 15806 echo "$as_me: failed program was:" >&5 15807 sed 's/^/| /' conftest.$ac_ext >&5 15808 15809 ac_header_compiler=no 15810 fi 15811 15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15814 echo "${ECHO_T}$ac_header_compiler" >&6; } 15815 15816 # Is the header present? 15817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15819 cat >conftest.$ac_ext <<_ACEOF 15820 /* confdefs.h. */ 15821 _ACEOF 15822 cat confdefs.h >>conftest.$ac_ext 15823 cat >>conftest.$ac_ext <<_ACEOF 15824 /* end confdefs.h. */ 15825 #include <$ac_header> 15826 _ACEOF 15827 if { (ac_try="$ac_cpp conftest.$ac_ext" 15828 case "(($ac_try" in 15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15830 *) ac_try_echo=$ac_try;; 15831 esac 15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15834 ac_status=$? 15835 grep -v '^ *+' conftest.er1 >conftest.err 15836 rm -f conftest.er1 15837 cat conftest.err >&5 15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15839 (exit $ac_status); } >/dev/null; then 15840 if test -s conftest.err; then 15841 ac_cpp_err=$ac_c_preproc_warn_flag 15842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15843 else 15844 ac_cpp_err= 15845 fi 15846 else 15847 ac_cpp_err=yes 15848 fi 15849 if test -z "$ac_cpp_err"; then 15850 ac_header_preproc=yes 15851 else 15852 echo "$as_me: failed program was:" >&5 15853 sed 's/^/| /' conftest.$ac_ext >&5 15854 15855 ac_header_preproc=no 15856 fi 15857 15858 rm -f conftest.err conftest.$ac_ext 15859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15860 echo "${ECHO_T}$ac_header_preproc" >&6; } 15861 15862 # So? What about this header? 15863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15864 yes:no: ) 15865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15869 ac_header_preproc=yes 15870 ;; 15871 no:yes:* ) 15872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15884 ( cat <<\_ASBOX 15885 ## ------------------------------ ## 15886 ## Report this to bugs@yourdomain ## 15887 ## ------------------------------ ## 15888 _ASBOX 15889 ) | sed "s/^/$as_me: WARNING: /" >&2 15890 ;; 15891 esac 15892 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15895 echo $ECHO_N "(cached) $ECHO_C" >&6 15896 else 15897 eval "$as_ac_Header=\$ac_header_preproc" 15898 fi 15899 ac_res=`eval echo '${'$as_ac_Header'}'` 15900 { echo "$as_me:$LINENO: result: $ac_res" >&5 15901 echo "${ECHO_T}$ac_res" >&6; } 15902 15903 fi 15904 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15905 cat >>confdefs.h <<_ACEOF 15906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15907 _ACEOF 15908 15909 fi 15910 15911 done 15912 15913 15914 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 15915 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 15916 cat >conftest.$ac_ext <<_ACEOF 15917 /* confdefs.h. */ 15918 _ACEOF 15919 cat confdefs.h >>conftest.$ac_ext 15920 cat >>conftest.$ac_ext <<_ACEOF 15921 /* end confdefs.h. */ 15922 extern const char *__crashreporter_info__; 15923 int main() { 15924 __crashreporter_info__ = "test"; 15925 return 0; 15926 } 15927 15928 _ACEOF 15929 rm -f conftest.$ac_objext conftest$ac_exeext 15930 if { (ac_try="$ac_link" 15931 case "(($ac_try" in 15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15933 *) ac_try_echo=$ac_try;; 15934 esac 15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15936 (eval "$ac_link") 2>conftest.er1 15937 ac_status=$? 15938 grep -v '^ *+' conftest.er1 >conftest.err 15939 rm -f conftest.er1 15940 cat conftest.err >&5 15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15942 (exit $ac_status); } && 15943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15944 { (case "(($ac_try" in 15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15946 *) ac_try_echo=$ac_try;; 15947 esac 15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15949 (eval "$ac_try") 2>&5 15950 ac_status=$? 15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15952 (exit $ac_status); }; } && 15953 { ac_try='test -s conftest$ac_exeext' 15954 { (case "(($ac_try" in 15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15956 *) ac_try_echo=$ac_try;; 15957 esac 15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15959 (eval "$ac_try") 2>&5 15960 ac_status=$? 15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15962 (exit $ac_status); }; }; then 15963 { echo "$as_me:$LINENO: result: yes" >&5 15964 echo "${ECHO_T}yes" >&6; } 15965 15966 cat >>confdefs.h <<\_ACEOF 15967 #define HAVE_CRASHREPORTER_INFO 1 15968 _ACEOF 15969 15970 else 15971 echo "$as_me: failed program was:" >&5 15972 sed 's/^/| /' conftest.$ac_ext >&5 15973 15974 { echo "$as_me:$LINENO: result: no" >&5 15975 echo "${ECHO_T}no" >&6; } 15976 15977 cat >>confdefs.h <<\_ACEOF 15978 #define HAVE_CRASHREPORTER_INFO 0 15979 _ACEOF 15980 15981 fi 15982 15983 rm -f core conftest.err conftest.$ac_objext \ 15984 conftest$ac_exeext conftest.$ac_ext 15985 15986 15987 15988 15989 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 15990 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 15991 if test "${ac_cv_huge_val_sanity+set}" = set; then 15992 echo $ECHO_N "(cached) $ECHO_C" >&6 15993 else 15994 15995 ac_ext=cpp 15996 ac_cpp='$CXXCPP $CPPFLAGS' 15997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16000 16001 ac_save_CXXFLAGS=$CXXFLAGS 16002 CXXFLAGS="$CXXFLAGS -pedantic" 16003 if test "$cross_compiling" = yes; then 16004 ac_cv_huge_val_sanity=yes 16005 else 16006 cat >conftest.$ac_ext <<_ACEOF 16007 /* confdefs.h. */ 16008 _ACEOF 16009 cat confdefs.h >>conftest.$ac_ext 16010 cat >>conftest.$ac_ext <<_ACEOF 16011 /* end confdefs.h. */ 16012 #include <math.h> 16013 int 16014 main () 16015 { 16016 double x = HUGE_VAL; return x != x; 16017 ; 16018 return 0; 16019 } 16020 _ACEOF 16021 rm -f conftest$ac_exeext 16022 if { (ac_try="$ac_link" 16023 case "(($ac_try" in 16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16025 *) ac_try_echo=$ac_try;; 16026 esac 16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16028 (eval "$ac_link") 2>&5 16029 ac_status=$? 16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16032 { (case "(($ac_try" in 16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16034 *) ac_try_echo=$ac_try;; 16035 esac 16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16037 (eval "$ac_try") 2>&5 16038 ac_status=$? 16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16040 (exit $ac_status); }; }; then 16041 ac_cv_huge_val_sanity=yes 16042 else 16043 echo "$as_me: program exited with status $ac_status" >&5 16044 echo "$as_me: failed program was:" >&5 16045 sed 's/^/| /' conftest.$ac_ext >&5 16046 16047 ( exit $ac_status ) 16048 ac_cv_huge_val_sanity=no 16049 fi 16050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16051 fi 16052 16053 16054 CXXFLAGS=$ac_save_CXXFLAGS 16055 ac_ext=c 16056 ac_cpp='$CPP $CPPFLAGS' 16057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16059 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16060 16061 16062 fi 16063 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16064 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16065 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16066 16067 16068 { echo "$as_me:$LINENO: checking for pid_t" >&5 16069 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16070 if test "${ac_cv_type_pid_t+set}" = set; then 16071 echo $ECHO_N "(cached) $ECHO_C" >&6 16072 else 16073 cat >conftest.$ac_ext <<_ACEOF 16074 /* confdefs.h. */ 16075 _ACEOF 16076 cat confdefs.h >>conftest.$ac_ext 16077 cat >>conftest.$ac_ext <<_ACEOF 16078 /* end confdefs.h. */ 16079 $ac_includes_default 16080 typedef pid_t ac__type_new_; 16081 int 16082 main () 16083 { 16084 if ((ac__type_new_ *) 0) 16085 return 0; 16086 if (sizeof (ac__type_new_)) 16087 return 0; 16088 ; 16089 return 0; 16090 } 16091 _ACEOF 16092 rm -f conftest.$ac_objext 16093 if { (ac_try="$ac_compile" 16094 case "(($ac_try" in 16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16096 *) ac_try_echo=$ac_try;; 16097 esac 16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16099 (eval "$ac_compile") 2>conftest.er1 16100 ac_status=$? 16101 grep -v '^ *+' conftest.er1 >conftest.err 16102 rm -f conftest.er1 16103 cat conftest.err >&5 16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16105 (exit $ac_status); } && 16106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16107 { (case "(($ac_try" in 16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16109 *) ac_try_echo=$ac_try;; 16110 esac 16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16112 (eval "$ac_try") 2>&5 16113 ac_status=$? 16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16115 (exit $ac_status); }; } && 16116 { ac_try='test -s conftest.$ac_objext' 16117 { (case "(($ac_try" in 16118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16119 *) ac_try_echo=$ac_try;; 16120 esac 16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16122 (eval "$ac_try") 2>&5 16123 ac_status=$? 16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16125 (exit $ac_status); }; }; then 16126 ac_cv_type_pid_t=yes 16127 else 16128 echo "$as_me: failed program was:" >&5 16129 sed 's/^/| /' conftest.$ac_ext >&5 16130 16131 ac_cv_type_pid_t=no 16132 fi 16133 16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16135 fi 16136 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16138 if test $ac_cv_type_pid_t = yes; then 16139 : 16140 else 16141 16142 cat >>confdefs.h <<_ACEOF 16143 #define pid_t int 16144 _ACEOF 16145 16146 fi 16147 16148 { echo "$as_me:$LINENO: checking for size_t" >&5 16149 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16150 if test "${ac_cv_type_size_t+set}" = set; then 16151 echo $ECHO_N "(cached) $ECHO_C" >&6 16152 else 16153 cat >conftest.$ac_ext <<_ACEOF 16154 /* confdefs.h. */ 16155 _ACEOF 16156 cat confdefs.h >>conftest.$ac_ext 16157 cat >>conftest.$ac_ext <<_ACEOF 16158 /* end confdefs.h. */ 16159 $ac_includes_default 16160 typedef size_t ac__type_new_; 16161 int 16162 main () 16163 { 16164 if ((ac__type_new_ *) 0) 16165 return 0; 16166 if (sizeof (ac__type_new_)) 16167 return 0; 16168 ; 16169 return 0; 16170 } 16171 _ACEOF 16172 rm -f conftest.$ac_objext 16173 if { (ac_try="$ac_compile" 16174 case "(($ac_try" in 16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16176 *) ac_try_echo=$ac_try;; 16177 esac 16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16179 (eval "$ac_compile") 2>conftest.er1 16180 ac_status=$? 16181 grep -v '^ *+' conftest.er1 >conftest.err 16182 rm -f conftest.er1 16183 cat conftest.err >&5 16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16185 (exit $ac_status); } && 16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16187 { (case "(($ac_try" in 16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16189 *) ac_try_echo=$ac_try;; 16190 esac 16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16192 (eval "$ac_try") 2>&5 16193 ac_status=$? 16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16195 (exit $ac_status); }; } && 16196 { ac_try='test -s conftest.$ac_objext' 16197 { (case "(($ac_try" in 16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16199 *) ac_try_echo=$ac_try;; 16200 esac 16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16202 (eval "$ac_try") 2>&5 16203 ac_status=$? 16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16205 (exit $ac_status); }; }; then 16206 ac_cv_type_size_t=yes 16207 else 16208 echo "$as_me: failed program was:" >&5 16209 sed 's/^/| /' conftest.$ac_ext >&5 16210 16211 ac_cv_type_size_t=no 16212 fi 16213 16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16215 fi 16216 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16217 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16218 if test $ac_cv_type_size_t = yes; then 16219 : 16220 else 16221 16222 cat >>confdefs.h <<_ACEOF 16223 #define size_t unsigned int 16224 _ACEOF 16225 16226 fi 16227 16228 16229 cat >>confdefs.h <<_ACEOF 16230 #define RETSIGTYPE void 16231 _ACEOF 16232 16233 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16234 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16235 if test "${ac_cv_struct_tm+set}" = set; then 16236 echo $ECHO_N "(cached) $ECHO_C" >&6 16237 else 16238 cat >conftest.$ac_ext <<_ACEOF 16239 /* confdefs.h. */ 16240 _ACEOF 16241 cat confdefs.h >>conftest.$ac_ext 16242 cat >>conftest.$ac_ext <<_ACEOF 16243 /* end confdefs.h. */ 16244 #include <sys/types.h> 16245 #include <time.h> 16246 16247 int 16248 main () 16249 { 16250 struct tm *tp; tp->tm_sec; 16251 ; 16252 return 0; 16253 } 16254 _ACEOF 16255 rm -f conftest.$ac_objext 16256 if { (ac_try="$ac_compile" 16257 case "(($ac_try" in 16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16259 *) ac_try_echo=$ac_try;; 16260 esac 16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16262 (eval "$ac_compile") 2>conftest.er1 16263 ac_status=$? 16264 grep -v '^ *+' conftest.er1 >conftest.err 16265 rm -f conftest.er1 16266 cat conftest.err >&5 16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16268 (exit $ac_status); } && 16269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16270 { (case "(($ac_try" in 16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16272 *) ac_try_echo=$ac_try;; 16273 esac 16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16275 (eval "$ac_try") 2>&5 16276 ac_status=$? 16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16278 (exit $ac_status); }; } && 16279 { ac_try='test -s conftest.$ac_objext' 16280 { (case "(($ac_try" in 16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16282 *) ac_try_echo=$ac_try;; 16283 esac 16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16285 (eval "$ac_try") 2>&5 16286 ac_status=$? 16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16288 (exit $ac_status); }; }; then 16289 ac_cv_struct_tm=time.h 16290 else 16291 echo "$as_me: failed program was:" >&5 16292 sed 's/^/| /' conftest.$ac_ext >&5 16293 16294 ac_cv_struct_tm=sys/time.h 16295 fi 16296 16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16298 fi 16299 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16300 echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16301 if test $ac_cv_struct_tm = sys/time.h; then 16302 16303 cat >>confdefs.h <<\_ACEOF 16304 #define TM_IN_SYS_TIME 1 16305 _ACEOF 16306 16307 fi 16308 16309 { echo "$as_me:$LINENO: checking for int64_t" >&5 16310 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16311 if test "${ac_cv_type_int64_t+set}" = set; then 16312 echo $ECHO_N "(cached) $ECHO_C" >&6 16313 else 16314 cat >conftest.$ac_ext <<_ACEOF 16315 /* confdefs.h. */ 16316 _ACEOF 16317 cat confdefs.h >>conftest.$ac_ext 16318 cat >>conftest.$ac_ext <<_ACEOF 16319 /* end confdefs.h. */ 16320 $ac_includes_default 16321 typedef int64_t ac__type_new_; 16322 int 16323 main () 16324 { 16325 if ((ac__type_new_ *) 0) 16326 return 0; 16327 if (sizeof (ac__type_new_)) 16328 return 0; 16329 ; 16330 return 0; 16331 } 16332 _ACEOF 16333 rm -f conftest.$ac_objext 16334 if { (ac_try="$ac_compile" 16335 case "(($ac_try" in 16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16337 *) ac_try_echo=$ac_try;; 16338 esac 16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16340 (eval "$ac_compile") 2>conftest.er1 16341 ac_status=$? 16342 grep -v '^ *+' conftest.er1 >conftest.err 16343 rm -f conftest.er1 16344 cat conftest.err >&5 16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16346 (exit $ac_status); } && 16347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16348 { (case "(($ac_try" in 16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16350 *) ac_try_echo=$ac_try;; 16351 esac 16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16353 (eval "$ac_try") 2>&5 16354 ac_status=$? 16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16356 (exit $ac_status); }; } && 16357 { ac_try='test -s conftest.$ac_objext' 16358 { (case "(($ac_try" in 16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16360 *) ac_try_echo=$ac_try;; 16361 esac 16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16363 (eval "$ac_try") 2>&5 16364 ac_status=$? 16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16366 (exit $ac_status); }; }; then 16367 ac_cv_type_int64_t=yes 16368 else 16369 echo "$as_me: failed program was:" >&5 16370 sed 's/^/| /' conftest.$ac_ext >&5 16371 16372 ac_cv_type_int64_t=no 16373 fi 16374 16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16376 fi 16377 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16378 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16379 if test $ac_cv_type_int64_t = yes; then 16380 16381 cat >>confdefs.h <<_ACEOF 16382 #define HAVE_INT64_T 1 16383 _ACEOF 16384 16385 16386 else 16387 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16388 echo "$as_me: error: Type int64_t required but not found" >&2;} 16389 { (exit 1); exit 1; }; } 16390 fi 16391 16392 { echo "$as_me:$LINENO: checking for uint64_t" >&5 16393 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16394 if test "${ac_cv_type_uint64_t+set}" = set; then 16395 echo $ECHO_N "(cached) $ECHO_C" >&6 16396 else 16397 cat >conftest.$ac_ext <<_ACEOF 16398 /* confdefs.h. */ 16399 _ACEOF 16400 cat confdefs.h >>conftest.$ac_ext 16401 cat >>conftest.$ac_ext <<_ACEOF 16402 /* end confdefs.h. */ 16403 $ac_includes_default 16404 typedef uint64_t ac__type_new_; 16405 int 16406 main () 16407 { 16408 if ((ac__type_new_ *) 0) 16409 return 0; 16410 if (sizeof (ac__type_new_)) 16411 return 0; 16412 ; 16413 return 0; 16414 } 16415 _ACEOF 16416 rm -f conftest.$ac_objext 16417 if { (ac_try="$ac_compile" 16418 case "(($ac_try" in 16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16420 *) ac_try_echo=$ac_try;; 16421 esac 16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16423 (eval "$ac_compile") 2>conftest.er1 16424 ac_status=$? 16425 grep -v '^ *+' conftest.er1 >conftest.err 16426 rm -f conftest.er1 16427 cat conftest.err >&5 16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16429 (exit $ac_status); } && 16430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16431 { (case "(($ac_try" in 16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16433 *) ac_try_echo=$ac_try;; 16434 esac 16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16436 (eval "$ac_try") 2>&5 16437 ac_status=$? 16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16439 (exit $ac_status); }; } && 16440 { ac_try='test -s conftest.$ac_objext' 16441 { (case "(($ac_try" in 16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16443 *) ac_try_echo=$ac_try;; 16444 esac 16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16446 (eval "$ac_try") 2>&5 16447 ac_status=$? 16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16449 (exit $ac_status); }; }; then 16450 ac_cv_type_uint64_t=yes 16451 else 16452 echo "$as_me: failed program was:" >&5 16453 sed 's/^/| /' conftest.$ac_ext >&5 16454 16455 ac_cv_type_uint64_t=no 16456 fi 16457 16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16459 fi 16460 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16461 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 16462 if test $ac_cv_type_uint64_t = yes; then 16463 16464 cat >>confdefs.h <<_ACEOF 16465 #define HAVE_UINT64_T 1 16466 _ACEOF 16467 16468 16469 else 16470 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 16471 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 16472 if test "${ac_cv_type_u_int64_t+set}" = set; then 16473 echo $ECHO_N "(cached) $ECHO_C" >&6 16474 else 16475 cat >conftest.$ac_ext <<_ACEOF 16476 /* confdefs.h. */ 16477 _ACEOF 16478 cat confdefs.h >>conftest.$ac_ext 16479 cat >>conftest.$ac_ext <<_ACEOF 16480 /* end confdefs.h. */ 16481 $ac_includes_default 16482 typedef u_int64_t ac__type_new_; 16483 int 16484 main () 16485 { 16486 if ((ac__type_new_ *) 0) 16487 return 0; 16488 if (sizeof (ac__type_new_)) 16489 return 0; 16490 ; 16491 return 0; 16492 } 16493 _ACEOF 16494 rm -f conftest.$ac_objext 16495 if { (ac_try="$ac_compile" 16496 case "(($ac_try" in 16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16498 *) ac_try_echo=$ac_try;; 16499 esac 16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16501 (eval "$ac_compile") 2>conftest.er1 16502 ac_status=$? 16503 grep -v '^ *+' conftest.er1 >conftest.err 16504 rm -f conftest.er1 16505 cat conftest.err >&5 16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16507 (exit $ac_status); } && 16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16509 { (case "(($ac_try" in 16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16511 *) ac_try_echo=$ac_try;; 16512 esac 16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16514 (eval "$ac_try") 2>&5 16515 ac_status=$? 16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16517 (exit $ac_status); }; } && 16518 { ac_try='test -s conftest.$ac_objext' 16519 { (case "(($ac_try" in 16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16521 *) ac_try_echo=$ac_try;; 16522 esac 16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16524 (eval "$ac_try") 2>&5 16525 ac_status=$? 16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16527 (exit $ac_status); }; }; then 16528 ac_cv_type_u_int64_t=yes 16529 else 16530 echo "$as_me: failed program was:" >&5 16531 sed 's/^/| /' conftest.$ac_ext >&5 16532 16533 ac_cv_type_u_int64_t=no 16534 fi 16535 16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16537 fi 16538 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 16539 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 16540 if test $ac_cv_type_u_int64_t = yes; then 16541 16542 cat >>confdefs.h <<_ACEOF 16543 #define HAVE_U_INT64_T 1 16544 _ACEOF 16545 16546 16547 else 16548 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 16549 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 16550 { (exit 1); exit 1; }; } 16551 fi 16552 16553 fi 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 16565 do 16566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16567 { echo "$as_me:$LINENO: checking for $ac_func" >&5 16568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16570 echo $ECHO_N "(cached) $ECHO_C" >&6 16571 else 16572 cat >conftest.$ac_ext <<_ACEOF 16573 /* confdefs.h. */ 16574 _ACEOF 16575 cat confdefs.h >>conftest.$ac_ext 16576 cat >>conftest.$ac_ext <<_ACEOF 16577 /* end confdefs.h. */ 16578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16579 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16580 #define $ac_func innocuous_$ac_func 16581 16582 /* System header to define __stub macros and hopefully few prototypes, 16583 which can conflict with char $ac_func (); below. 16584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16585 <limits.h> exists even on freestanding compilers. */ 16586 16587 #ifdef __STDC__ 16588 # include <limits.h> 16589 #else 16590 # include <assert.h> 16591 #endif 16592 16593 #undef $ac_func 16594 16595 /* Override any GCC internal prototype to avoid an error. 16596 Use char because int might match the return type of a GCC 16597 builtin and then its argument prototype would still apply. */ 16598 #ifdef __cplusplus 16599 extern "C" 16600 #endif 16601 char $ac_func (); 16602 /* The GNU C library defines this for functions which it implements 16603 to always fail with ENOSYS. Some functions are actually named 16604 something starting with __ and the normal name is an alias. */ 16605 #if defined __stub_$ac_func || defined __stub___$ac_func 16606 choke me 16607 #endif 16608 16609 int 16610 main () 16611 { 16612 return $ac_func (); 16613 ; 16614 return 0; 16615 } 16616 _ACEOF 16617 rm -f conftest.$ac_objext conftest$ac_exeext 16618 if { (ac_try="$ac_link" 16619 case "(($ac_try" in 16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16621 *) ac_try_echo=$ac_try;; 16622 esac 16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16624 (eval "$ac_link") 2>conftest.er1 16625 ac_status=$? 16626 grep -v '^ *+' conftest.er1 >conftest.err 16627 rm -f conftest.er1 16628 cat conftest.err >&5 16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16630 (exit $ac_status); } && 16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16632 { (case "(($ac_try" in 16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16634 *) ac_try_echo=$ac_try;; 16635 esac 16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16637 (eval "$ac_try") 2>&5 16638 ac_status=$? 16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16640 (exit $ac_status); }; } && 16641 { ac_try='test -s conftest$ac_exeext' 16642 { (case "(($ac_try" in 16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16644 *) ac_try_echo=$ac_try;; 16645 esac 16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16647 (eval "$ac_try") 2>&5 16648 ac_status=$? 16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16650 (exit $ac_status); }; }; then 16651 eval "$as_ac_var=yes" 16652 else 16653 echo "$as_me: failed program was:" >&5 16654 sed 's/^/| /' conftest.$ac_ext >&5 16655 16656 eval "$as_ac_var=no" 16657 fi 16658 16659 rm -f core conftest.err conftest.$ac_objext \ 16660 conftest$ac_exeext conftest.$ac_ext 16661 fi 16662 ac_res=`eval echo '${'$as_ac_var'}'` 16663 { echo "$as_me:$LINENO: result: $ac_res" >&5 16664 echo "${ECHO_T}$ac_res" >&6; } 16665 if test `eval echo '${'$as_ac_var'}'` = yes; then 16666 cat >>confdefs.h <<_ACEOF 16667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16668 _ACEOF 16669 16670 fi 16671 done 16672 16673 16674 16675 16676 16677 for ac_func in powf fmodf strtof round 16678 do 16679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16680 { echo "$as_me:$LINENO: checking for $ac_func" >&5 16681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16683 echo $ECHO_N "(cached) $ECHO_C" >&6 16684 else 16685 cat >conftest.$ac_ext <<_ACEOF 16686 /* confdefs.h. */ 16687 _ACEOF 16688 cat confdefs.h >>conftest.$ac_ext 16689 cat >>conftest.$ac_ext <<_ACEOF 16690 /* end confdefs.h. */ 16691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16692 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16693 #define $ac_func innocuous_$ac_func 16694 16695 /* System header to define __stub macros and hopefully few prototypes, 16696 which can conflict with char $ac_func (); below. 16697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16698 <limits.h> exists even on freestanding compilers. */ 16699 16700 #ifdef __STDC__ 16701 # include <limits.h> 16702 #else 16703 # include <assert.h> 16704 #endif 16705 16706 #undef $ac_func 16707 16708 /* Override any GCC internal prototype to avoid an error. 16709 Use char because int might match the return type of a GCC 16710 builtin and then its argument prototype would still apply. */ 16711 #ifdef __cplusplus 16712 extern "C" 16713 #endif 16714 char $ac_func (); 16715 /* The GNU C library defines this for functions which it implements 16716 to always fail with ENOSYS. Some functions are actually named 16717 something starting with __ and the normal name is an alias. */ 16718 #if defined __stub_$ac_func || defined __stub___$ac_func 16719 choke me 16720 #endif 16721 16722 int 16723 main () 16724 { 16725 return $ac_func (); 16726 ; 16727 return 0; 16728 } 16729 _ACEOF 16730 rm -f conftest.$ac_objext conftest$ac_exeext 16731 if { (ac_try="$ac_link" 16732 case "(($ac_try" in 16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16734 *) ac_try_echo=$ac_try;; 16735 esac 16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16737 (eval "$ac_link") 2>conftest.er1 16738 ac_status=$? 16739 grep -v '^ *+' conftest.er1 >conftest.err 16740 rm -f conftest.er1 16741 cat conftest.err >&5 16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16743 (exit $ac_status); } && 16744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16745 { (case "(($ac_try" in 16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16747 *) ac_try_echo=$ac_try;; 16748 esac 16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16750 (eval "$ac_try") 2>&5 16751 ac_status=$? 16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16753 (exit $ac_status); }; } && 16754 { ac_try='test -s conftest$ac_exeext' 16755 { (case "(($ac_try" in 16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16757 *) ac_try_echo=$ac_try;; 16758 esac 16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16760 (eval "$ac_try") 2>&5 16761 ac_status=$? 16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16763 (exit $ac_status); }; }; then 16764 eval "$as_ac_var=yes" 16765 else 16766 echo "$as_me: failed program was:" >&5 16767 sed 's/^/| /' conftest.$ac_ext >&5 16768 16769 eval "$as_ac_var=no" 16770 fi 16771 16772 rm -f core conftest.err conftest.$ac_objext \ 16773 conftest$ac_exeext conftest.$ac_ext 16774 fi 16775 ac_res=`eval echo '${'$as_ac_var'}'` 16776 { echo "$as_me:$LINENO: result: $ac_res" >&5 16777 echo "${ECHO_T}$ac_res" >&6; } 16778 if test `eval echo '${'$as_ac_var'}'` = yes; then 16779 cat >>confdefs.h <<_ACEOF 16780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16781 _ACEOF 16782 16783 fi 16784 done 16785 16786 16787 16788 16789 16790 16791 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 16792 do 16793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16794 { echo "$as_me:$LINENO: checking for $ac_func" >&5 16795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16797 echo $ECHO_N "(cached) $ECHO_C" >&6 16798 else 16799 cat >conftest.$ac_ext <<_ACEOF 16800 /* confdefs.h. */ 16801 _ACEOF 16802 cat confdefs.h >>conftest.$ac_ext 16803 cat >>conftest.$ac_ext <<_ACEOF 16804 /* end confdefs.h. */ 16805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16806 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16807 #define $ac_func innocuous_$ac_func 16808 16809 /* System header to define __stub macros and hopefully few prototypes, 16810 which can conflict with char $ac_func (); below. 16811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16812 <limits.h> exists even on freestanding compilers. */ 16813 16814 #ifdef __STDC__ 16815 # include <limits.h> 16816 #else 16817 # include <assert.h> 16818 #endif 16819 16820 #undef $ac_func 16821 16822 /* Override any GCC internal prototype to avoid an error. 16823 Use char because int might match the return type of a GCC 16824 builtin and then its argument prototype would still apply. */ 16825 #ifdef __cplusplus 16826 extern "C" 16827 #endif 16828 char $ac_func (); 16829 /* The GNU C library defines this for functions which it implements 16830 to always fail with ENOSYS. Some functions are actually named 16831 something starting with __ and the normal name is an alias. */ 16832 #if defined __stub_$ac_func || defined __stub___$ac_func 16833 choke me 16834 #endif 16835 16836 int 16837 main () 16838 { 16839 return $ac_func (); 16840 ; 16841 return 0; 16842 } 16843 _ACEOF 16844 rm -f conftest.$ac_objext conftest$ac_exeext 16845 if { (ac_try="$ac_link" 16846 case "(($ac_try" in 16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16848 *) ac_try_echo=$ac_try;; 16849 esac 16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16851 (eval "$ac_link") 2>conftest.er1 16852 ac_status=$? 16853 grep -v '^ *+' conftest.er1 >conftest.err 16854 rm -f conftest.er1 16855 cat conftest.err >&5 16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16857 (exit $ac_status); } && 16858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16859 { (case "(($ac_try" in 16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16861 *) ac_try_echo=$ac_try;; 16862 esac 16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16864 (eval "$ac_try") 2>&5 16865 ac_status=$? 16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16867 (exit $ac_status); }; } && 16868 { ac_try='test -s conftest$ac_exeext' 16869 { (case "(($ac_try" in 16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16871 *) ac_try_echo=$ac_try;; 16872 esac 16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16874 (eval "$ac_try") 2>&5 16875 ac_status=$? 16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16877 (exit $ac_status); }; }; then 16878 eval "$as_ac_var=yes" 16879 else 16880 echo "$as_me: failed program was:" >&5 16881 sed 's/^/| /' conftest.$ac_ext >&5 16882 16883 eval "$as_ac_var=no" 16884 fi 16885 16886 rm -f core conftest.err conftest.$ac_objext \ 16887 conftest$ac_exeext conftest.$ac_ext 16888 fi 16889 ac_res=`eval echo '${'$as_ac_var'}'` 16890 { echo "$as_me:$LINENO: result: $ac_res" >&5 16891 echo "${ECHO_T}$ac_res" >&6; } 16892 if test `eval echo '${'$as_ac_var'}'` = yes; then 16893 cat >>confdefs.h <<_ACEOF 16894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16895 _ACEOF 16896 16897 fi 16898 done 16899 16900 16901 16902 16903 for ac_func in isatty mkdtemp mkstemp 16904 do 16905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16906 { echo "$as_me:$LINENO: checking for $ac_func" >&5 16907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16909 echo $ECHO_N "(cached) $ECHO_C" >&6 16910 else 16911 cat >conftest.$ac_ext <<_ACEOF 16912 /* confdefs.h. */ 16913 _ACEOF 16914 cat confdefs.h >>conftest.$ac_ext 16915 cat >>conftest.$ac_ext <<_ACEOF 16916 /* end confdefs.h. */ 16917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16918 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16919 #define $ac_func innocuous_$ac_func 16920 16921 /* System header to define __stub macros and hopefully few prototypes, 16922 which can conflict with char $ac_func (); below. 16923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16924 <limits.h> exists even on freestanding compilers. */ 16925 16926 #ifdef __STDC__ 16927 # include <limits.h> 16928 #else 16929 # include <assert.h> 16930 #endif 16931 16932 #undef $ac_func 16933 16934 /* Override any GCC internal prototype to avoid an error. 16935 Use char because int might match the return type of a GCC 16936 builtin and then its argument prototype would still apply. */ 16937 #ifdef __cplusplus 16938 extern "C" 16939 #endif 16940 char $ac_func (); 16941 /* The GNU C library defines this for functions which it implements 16942 to always fail with ENOSYS. Some functions are actually named 16943 something starting with __ and the normal name is an alias. */ 16944 #if defined __stub_$ac_func || defined __stub___$ac_func 16945 choke me 16946 #endif 16947 16948 int 16949 main () 16950 { 16951 return $ac_func (); 16952 ; 16953 return 0; 16954 } 16955 _ACEOF 16956 rm -f conftest.$ac_objext conftest$ac_exeext 16957 if { (ac_try="$ac_link" 16958 case "(($ac_try" in 16959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16960 *) ac_try_echo=$ac_try;; 16961 esac 16962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16963 (eval "$ac_link") 2>conftest.er1 16964 ac_status=$? 16965 grep -v '^ *+' conftest.er1 >conftest.err 16966 rm -f conftest.er1 16967 cat conftest.err >&5 16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16969 (exit $ac_status); } && 16970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16971 { (case "(($ac_try" in 16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16973 *) ac_try_echo=$ac_try;; 16974 esac 16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16976 (eval "$ac_try") 2>&5 16977 ac_status=$? 16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16979 (exit $ac_status); }; } && 16980 { ac_try='test -s conftest$ac_exeext' 16981 { (case "(($ac_try" in 16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16983 *) ac_try_echo=$ac_try;; 16984 esac 16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16986 (eval "$ac_try") 2>&5 16987 ac_status=$? 16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16989 (exit $ac_status); }; }; then 16990 eval "$as_ac_var=yes" 16991 else 16992 echo "$as_me: failed program was:" >&5 16993 sed 's/^/| /' conftest.$ac_ext >&5 16994 16995 eval "$as_ac_var=no" 16996 fi 16997 16998 rm -f core conftest.err conftest.$ac_objext \ 16999 conftest$ac_exeext conftest.$ac_ext 17000 fi 17001 ac_res=`eval echo '${'$as_ac_var'}'` 17002 { echo "$as_me:$LINENO: result: $ac_res" >&5 17003 echo "${ECHO_T}$ac_res" >&6; } 17004 if test `eval echo '${'$as_ac_var'}'` = yes; then 17005 cat >>confdefs.h <<_ACEOF 17006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17007 _ACEOF 17008 17009 fi 17010 done 17011 17012 17013 17014 17015 17016 17017 17018 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup 17019 do 17020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17021 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17024 echo $ECHO_N "(cached) $ECHO_C" >&6 17025 else 17026 cat >conftest.$ac_ext <<_ACEOF 17027 /* confdefs.h. */ 17028 _ACEOF 17029 cat confdefs.h >>conftest.$ac_ext 17030 cat >>conftest.$ac_ext <<_ACEOF 17031 /* end confdefs.h. */ 17032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17033 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17034 #define $ac_func innocuous_$ac_func 17035 17036 /* System header to define __stub macros and hopefully few prototypes, 17037 which can conflict with char $ac_func (); below. 17038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17039 <limits.h> exists even on freestanding compilers. */ 17040 17041 #ifdef __STDC__ 17042 # include <limits.h> 17043 #else 17044 # include <assert.h> 17045 #endif 17046 17047 #undef $ac_func 17048 17049 /* Override any GCC internal prototype to avoid an error. 17050 Use char because int might match the return type of a GCC 17051 builtin and then its argument prototype would still apply. */ 17052 #ifdef __cplusplus 17053 extern "C" 17054 #endif 17055 char $ac_func (); 17056 /* The GNU C library defines this for functions which it implements 17057 to always fail with ENOSYS. Some functions are actually named 17058 something starting with __ and the normal name is an alias. */ 17059 #if defined __stub_$ac_func || defined __stub___$ac_func 17060 choke me 17061 #endif 17062 17063 int 17064 main () 17065 { 17066 return $ac_func (); 17067 ; 17068 return 0; 17069 } 17070 _ACEOF 17071 rm -f conftest.$ac_objext conftest$ac_exeext 17072 if { (ac_try="$ac_link" 17073 case "(($ac_try" in 17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17075 *) ac_try_echo=$ac_try;; 17076 esac 17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17078 (eval "$ac_link") 2>conftest.er1 17079 ac_status=$? 17080 grep -v '^ *+' conftest.er1 >conftest.err 17081 rm -f conftest.er1 17082 cat conftest.err >&5 17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17084 (exit $ac_status); } && 17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17086 { (case "(($ac_try" in 17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17088 *) ac_try_echo=$ac_try;; 17089 esac 17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17091 (eval "$ac_try") 2>&5 17092 ac_status=$? 17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17094 (exit $ac_status); }; } && 17095 { ac_try='test -s conftest$ac_exeext' 17096 { (case "(($ac_try" in 17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17098 *) ac_try_echo=$ac_try;; 17099 esac 17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17101 (eval "$ac_try") 2>&5 17102 ac_status=$? 17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17104 (exit $ac_status); }; }; then 17105 eval "$as_ac_var=yes" 17106 else 17107 echo "$as_me: failed program was:" >&5 17108 sed 's/^/| /' conftest.$ac_ext >&5 17109 17110 eval "$as_ac_var=no" 17111 fi 17112 17113 rm -f core conftest.err conftest.$ac_objext \ 17114 conftest$ac_exeext conftest.$ac_ext 17115 fi 17116 ac_res=`eval echo '${'$as_ac_var'}'` 17117 { echo "$as_me:$LINENO: result: $ac_res" >&5 17118 echo "${ECHO_T}$ac_res" >&6; } 17119 if test `eval echo '${'$as_ac_var'}'` = yes; then 17120 cat >>confdefs.h <<_ACEOF 17121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17122 _ACEOF 17123 17124 fi 17125 done 17126 17127 17128 17129 17130 for ac_func in strerror strerror_r setenv 17131 do 17132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17133 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17136 echo $ECHO_N "(cached) $ECHO_C" >&6 17137 else 17138 cat >conftest.$ac_ext <<_ACEOF 17139 /* confdefs.h. */ 17140 _ACEOF 17141 cat confdefs.h >>conftest.$ac_ext 17142 cat >>conftest.$ac_ext <<_ACEOF 17143 /* end confdefs.h. */ 17144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17145 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17146 #define $ac_func innocuous_$ac_func 17147 17148 /* System header to define __stub macros and hopefully few prototypes, 17149 which can conflict with char $ac_func (); below. 17150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17151 <limits.h> exists even on freestanding compilers. */ 17152 17153 #ifdef __STDC__ 17154 # include <limits.h> 17155 #else 17156 # include <assert.h> 17157 #endif 17158 17159 #undef $ac_func 17160 17161 /* Override any GCC internal prototype to avoid an error. 17162 Use char because int might match the return type of a GCC 17163 builtin and then its argument prototype would still apply. */ 17164 #ifdef __cplusplus 17165 extern "C" 17166 #endif 17167 char $ac_func (); 17168 /* The GNU C library defines this for functions which it implements 17169 to always fail with ENOSYS. Some functions are actually named 17170 something starting with __ and the normal name is an alias. */ 17171 #if defined __stub_$ac_func || defined __stub___$ac_func 17172 choke me 17173 #endif 17174 17175 int 17176 main () 17177 { 17178 return $ac_func (); 17179 ; 17180 return 0; 17181 } 17182 _ACEOF 17183 rm -f conftest.$ac_objext conftest$ac_exeext 17184 if { (ac_try="$ac_link" 17185 case "(($ac_try" in 17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17187 *) ac_try_echo=$ac_try;; 17188 esac 17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17190 (eval "$ac_link") 2>conftest.er1 17191 ac_status=$? 17192 grep -v '^ *+' conftest.er1 >conftest.err 17193 rm -f conftest.er1 17194 cat conftest.err >&5 17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17196 (exit $ac_status); } && 17197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17198 { (case "(($ac_try" in 17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17200 *) ac_try_echo=$ac_try;; 17201 esac 17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17203 (eval "$ac_try") 2>&5 17204 ac_status=$? 17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17206 (exit $ac_status); }; } && 17207 { ac_try='test -s conftest$ac_exeext' 17208 { (case "(($ac_try" in 17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17210 *) ac_try_echo=$ac_try;; 17211 esac 17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17213 (eval "$ac_try") 2>&5 17214 ac_status=$? 17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17216 (exit $ac_status); }; }; then 17217 eval "$as_ac_var=yes" 17218 else 17219 echo "$as_me: failed program was:" >&5 17220 sed 's/^/| /' conftest.$ac_ext >&5 17221 17222 eval "$as_ac_var=no" 17223 fi 17224 17225 rm -f core conftest.err conftest.$ac_objext \ 17226 conftest$ac_exeext conftest.$ac_ext 17227 fi 17228 ac_res=`eval echo '${'$as_ac_var'}'` 17229 { echo "$as_me:$LINENO: result: $ac_res" >&5 17230 echo "${ECHO_T}$ac_res" >&6; } 17231 if test `eval echo '${'$as_ac_var'}'` = yes; then 17232 cat >>confdefs.h <<_ACEOF 17233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17234 _ACEOF 17235 17236 fi 17237 done 17238 17239 17240 17241 17242 17243 for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17244 do 17245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17246 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17249 echo $ECHO_N "(cached) $ECHO_C" >&6 17250 else 17251 cat >conftest.$ac_ext <<_ACEOF 17252 /* confdefs.h. */ 17253 _ACEOF 17254 cat confdefs.h >>conftest.$ac_ext 17255 cat >>conftest.$ac_ext <<_ACEOF 17256 /* end confdefs.h. */ 17257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17258 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17259 #define $ac_func innocuous_$ac_func 17260 17261 /* System header to define __stub macros and hopefully few prototypes, 17262 which can conflict with char $ac_func (); below. 17263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17264 <limits.h> exists even on freestanding compilers. */ 17265 17266 #ifdef __STDC__ 17267 # include <limits.h> 17268 #else 17269 # include <assert.h> 17270 #endif 17271 17272 #undef $ac_func 17273 17274 /* Override any GCC internal prototype to avoid an error. 17275 Use char because int might match the return type of a GCC 17276 builtin and then its argument prototype would still apply. */ 17277 #ifdef __cplusplus 17278 extern "C" 17279 #endif 17280 char $ac_func (); 17281 /* The GNU C library defines this for functions which it implements 17282 to always fail with ENOSYS. Some functions are actually named 17283 something starting with __ and the normal name is an alias. */ 17284 #if defined __stub_$ac_func || defined __stub___$ac_func 17285 choke me 17286 #endif 17287 17288 int 17289 main () 17290 { 17291 return $ac_func (); 17292 ; 17293 return 0; 17294 } 17295 _ACEOF 17296 rm -f conftest.$ac_objext conftest$ac_exeext 17297 if { (ac_try="$ac_link" 17298 case "(($ac_try" in 17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17300 *) ac_try_echo=$ac_try;; 17301 esac 17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17303 (eval "$ac_link") 2>conftest.er1 17304 ac_status=$? 17305 grep -v '^ *+' conftest.er1 >conftest.err 17306 rm -f conftest.er1 17307 cat conftest.err >&5 17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17309 (exit $ac_status); } && 17310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17311 { (case "(($ac_try" in 17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17313 *) ac_try_echo=$ac_try;; 17314 esac 17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17316 (eval "$ac_try") 2>&5 17317 ac_status=$? 17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17319 (exit $ac_status); }; } && 17320 { ac_try='test -s conftest$ac_exeext' 17321 { (case "(($ac_try" in 17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17323 *) ac_try_echo=$ac_try;; 17324 esac 17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17326 (eval "$ac_try") 2>&5 17327 ac_status=$? 17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17329 (exit $ac_status); }; }; then 17330 eval "$as_ac_var=yes" 17331 else 17332 echo "$as_me: failed program was:" >&5 17333 sed 's/^/| /' conftest.$ac_ext >&5 17334 17335 eval "$as_ac_var=no" 17336 fi 17337 17338 rm -f core conftest.err conftest.$ac_objext \ 17339 conftest$ac_exeext conftest.$ac_ext 17340 fi 17341 ac_res=`eval echo '${'$as_ac_var'}'` 17342 { echo "$as_me:$LINENO: result: $ac_res" >&5 17343 echo "${ECHO_T}$ac_res" >&6; } 17344 if test `eval echo '${'$as_ac_var'}'` = yes; then 17345 cat >>confdefs.h <<_ACEOF 17346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17347 _ACEOF 17348 17349 fi 17350 done 17351 17352 17353 17354 17355 17356 17357 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 17358 do 17359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17360 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17363 echo $ECHO_N "(cached) $ECHO_C" >&6 17364 else 17365 cat >conftest.$ac_ext <<_ACEOF 17366 /* confdefs.h. */ 17367 _ACEOF 17368 cat confdefs.h >>conftest.$ac_ext 17369 cat >>conftest.$ac_ext <<_ACEOF 17370 /* end confdefs.h. */ 17371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17372 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17373 #define $ac_func innocuous_$ac_func 17374 17375 /* System header to define __stub macros and hopefully few prototypes, 17376 which can conflict with char $ac_func (); below. 17377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17378 <limits.h> exists even on freestanding compilers. */ 17379 17380 #ifdef __STDC__ 17381 # include <limits.h> 17382 #else 17383 # include <assert.h> 17384 #endif 17385 17386 #undef $ac_func 17387 17388 /* Override any GCC internal prototype to avoid an error. 17389 Use char because int might match the return type of a GCC 17390 builtin and then its argument prototype would still apply. */ 17391 #ifdef __cplusplus 17392 extern "C" 17393 #endif 17394 char $ac_func (); 17395 /* The GNU C library defines this for functions which it implements 17396 to always fail with ENOSYS. Some functions are actually named 17397 something starting with __ and the normal name is an alias. */ 17398 #if defined __stub_$ac_func || defined __stub___$ac_func 17399 choke me 17400 #endif 17401 17402 int 17403 main () 17404 { 17405 return $ac_func (); 17406 ; 17407 return 0; 17408 } 17409 _ACEOF 17410 rm -f conftest.$ac_objext conftest$ac_exeext 17411 if { (ac_try="$ac_link" 17412 case "(($ac_try" in 17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17414 *) ac_try_echo=$ac_try;; 17415 esac 17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17417 (eval "$ac_link") 2>conftest.er1 17418 ac_status=$? 17419 grep -v '^ *+' conftest.er1 >conftest.err 17420 rm -f conftest.er1 17421 cat conftest.err >&5 17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17423 (exit $ac_status); } && 17424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17425 { (case "(($ac_try" in 17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17427 *) ac_try_echo=$ac_try;; 17428 esac 17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17430 (eval "$ac_try") 2>&5 17431 ac_status=$? 17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17433 (exit $ac_status); }; } && 17434 { ac_try='test -s conftest$ac_exeext' 17435 { (case "(($ac_try" in 17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17437 *) ac_try_echo=$ac_try;; 17438 esac 17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17440 (eval "$ac_try") 2>&5 17441 ac_status=$? 17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17443 (exit $ac_status); }; }; then 17444 eval "$as_ac_var=yes" 17445 else 17446 echo "$as_me: failed program was:" >&5 17447 sed 's/^/| /' conftest.$ac_ext >&5 17448 17449 eval "$as_ac_var=no" 17450 fi 17451 17452 rm -f core conftest.err conftest.$ac_objext \ 17453 conftest$ac_exeext conftest.$ac_ext 17454 fi 17455 ac_res=`eval echo '${'$as_ac_var'}'` 17456 { echo "$as_me:$LINENO: result: $ac_res" >&5 17457 echo "${ECHO_T}$ac_res" >&6; } 17458 if test `eval echo '${'$as_ac_var'}'` = yes; then 17459 cat >>confdefs.h <<_ACEOF 17460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17461 _ACEOF 17462 17463 fi 17464 done 17465 17466 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 17467 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 17468 if test "${llvm_cv_c_printf_a+set}" = set; then 17469 echo $ECHO_N "(cached) $ECHO_C" >&6 17470 else 17471 ac_ext=c 17472 ac_cpp='$CPP $CPPFLAGS' 17473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17475 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17476 17477 if test "$cross_compiling" = yes; then 17478 llvmac_cv_c_printf_a=no 17479 else 17480 cat >conftest.$ac_ext <<_ACEOF 17481 17482 /* confdefs.h. */ 17483 _ACEOF 17484 cat confdefs.h >>conftest.$ac_ext 17485 cat >>conftest.$ac_ext <<_ACEOF 17486 /* end confdefs.h. */ 17487 17488 #include <stdio.h> 17489 #include <stdlib.h> 17490 17491 int 17492 main () 17493 { 17494 17495 volatile double A, B; 17496 char Buffer[100]; 17497 A = 1; 17498 A /= 10.0; 17499 sprintf(Buffer, "%a", A); 17500 B = atof(Buffer); 17501 if (A != B) 17502 return (1); 17503 if (A != 0x1.999999999999ap-4) 17504 return (1); 17505 return (0); 17506 ; 17507 return 0; 17508 } 17509 _ACEOF 17510 rm -f conftest$ac_exeext 17511 if { (ac_try="$ac_link" 17512 case "(($ac_try" in 17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17514 *) ac_try_echo=$ac_try;; 17515 esac 17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17517 (eval "$ac_link") 2>&5 17518 ac_status=$? 17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17521 { (case "(($ac_try" in 17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17523 *) ac_try_echo=$ac_try;; 17524 esac 17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17526 (eval "$ac_try") 2>&5 17527 ac_status=$? 17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17529 (exit $ac_status); }; }; then 17530 llvm_cv_c_printf_a=yes 17531 else 17532 echo "$as_me: program exited with status $ac_status" >&5 17533 echo "$as_me: failed program was:" >&5 17534 sed 's/^/| /' conftest.$ac_ext >&5 17535 17536 ( exit $ac_status ) 17537 llvmac_cv_c_printf_a=no 17538 fi 17539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17540 fi 17541 17542 17543 ac_ext=c 17544 ac_cpp='$CPP $CPPFLAGS' 17545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17547 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17548 17549 fi 17550 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 17551 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 17552 if test "$llvm_cv_c_printf_a" = "yes"; then 17553 17554 cat >>confdefs.h <<\_ACEOF 17555 #define HAVE_PRINTF_A 1 17556 _ACEOF 17557 17558 fi 17559 17560 17561 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 17562 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 17563 if test "${ac_cv_func_rand48+set}" = set; then 17564 echo $ECHO_N "(cached) $ECHO_C" >&6 17565 else 17566 ac_ext=cpp 17567 ac_cpp='$CXXCPP $CPPFLAGS' 17568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17571 17572 cat >conftest.$ac_ext <<_ACEOF 17573 /* confdefs.h. */ 17574 _ACEOF 17575 cat confdefs.h >>conftest.$ac_ext 17576 cat >>conftest.$ac_ext <<_ACEOF 17577 /* end confdefs.h. */ 17578 #include <stdlib.h> 17579 int 17580 main () 17581 { 17582 srand48(0);lrand48();drand48(); 17583 ; 17584 return 0; 17585 } 17586 _ACEOF 17587 rm -f conftest.$ac_objext 17588 if { (ac_try="$ac_compile" 17589 case "(($ac_try" in 17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17591 *) ac_try_echo=$ac_try;; 17592 esac 17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17594 (eval "$ac_compile") 2>conftest.er1 17595 ac_status=$? 17596 grep -v '^ *+' conftest.er1 >conftest.err 17597 rm -f conftest.er1 17598 cat conftest.err >&5 17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17600 (exit $ac_status); } && 17601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17602 { (case "(($ac_try" in 17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17604 *) ac_try_echo=$ac_try;; 17605 esac 17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17607 (eval "$ac_try") 2>&5 17608 ac_status=$? 17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17610 (exit $ac_status); }; } && 17611 { ac_try='test -s conftest.$ac_objext' 17612 { (case "(($ac_try" in 17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17614 *) ac_try_echo=$ac_try;; 17615 esac 17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17617 (eval "$ac_try") 2>&5 17618 ac_status=$? 17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17620 (exit $ac_status); }; }; then 17621 ac_cv_func_rand48=yes 17622 else 17623 echo "$as_me: failed program was:" >&5 17624 sed 's/^/| /' conftest.$ac_ext >&5 17625 17626 ac_cv_func_rand48=no 17627 fi 17628 17629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17630 ac_ext=c 17631 ac_cpp='$CPP $CPPFLAGS' 17632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17634 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17635 17636 fi 17637 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 17638 echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 17639 17640 if test "$ac_cv_func_rand48" = "yes" ; then 17641 17642 cat >>confdefs.h <<\_ACEOF 17643 #define HAVE_RAND48 1 17644 _ACEOF 17645 17646 fi 17647 17648 17649 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 17650 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 17651 if test "${ac_cv_have_decl_strerror_s+set}" = set; then 17652 echo $ECHO_N "(cached) $ECHO_C" >&6 17653 else 17654 cat >conftest.$ac_ext <<_ACEOF 17655 /* confdefs.h. */ 17656 _ACEOF 17657 cat confdefs.h >>conftest.$ac_ext 17658 cat >>conftest.$ac_ext <<_ACEOF 17659 /* end confdefs.h. */ 17660 $ac_includes_default 17661 int 17662 main () 17663 { 17664 #ifndef strerror_s 17665 char *p = (char *) strerror_s; 17666 return !p; 17667 #endif 17668 17669 ; 17670 return 0; 17671 } 17672 _ACEOF 17673 rm -f conftest.$ac_objext 17674 if { (ac_try="$ac_compile" 17675 case "(($ac_try" in 17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17677 *) ac_try_echo=$ac_try;; 17678 esac 17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17680 (eval "$ac_compile") 2>conftest.er1 17681 ac_status=$? 17682 grep -v '^ *+' conftest.er1 >conftest.err 17683 rm -f conftest.er1 17684 cat conftest.err >&5 17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17686 (exit $ac_status); } && 17687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17688 { (case "(($ac_try" in 17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17690 *) ac_try_echo=$ac_try;; 17691 esac 17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17693 (eval "$ac_try") 2>&5 17694 ac_status=$? 17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17696 (exit $ac_status); }; } && 17697 { ac_try='test -s conftest.$ac_objext' 17698 { (case "(($ac_try" in 17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17700 *) ac_try_echo=$ac_try;; 17701 esac 17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17703 (eval "$ac_try") 2>&5 17704 ac_status=$? 17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17706 (exit $ac_status); }; }; then 17707 ac_cv_have_decl_strerror_s=yes 17708 else 17709 echo "$as_me: failed program was:" >&5 17710 sed 's/^/| /' conftest.$ac_ext >&5 17711 17712 ac_cv_have_decl_strerror_s=no 17713 fi 17714 17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17716 fi 17717 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 17718 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 17719 if test $ac_cv_have_decl_strerror_s = yes; then 17720 17721 cat >>confdefs.h <<_ACEOF 17722 #define HAVE_DECL_STRERROR_S 1 17723 _ACEOF 17724 17725 17726 else 17727 cat >>confdefs.h <<_ACEOF 17728 #define HAVE_DECL_STRERROR_S 0 17729 _ACEOF 17730 17731 17732 fi 17733 17734 17735 17736 if test "$llvm_cv_os_type" = "MingW" ; then 17737 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 17738 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 17739 if test "${ac_cv_lib_gcc__alloca+set}" = set; then 17740 echo $ECHO_N "(cached) $ECHO_C" >&6 17741 else 17742 ac_check_lib_save_LIBS=$LIBS 17743 LIBS="-lgcc $LIBS" 17744 cat >conftest.$ac_ext <<_ACEOF 17745 /* confdefs.h. */ 17746 _ACEOF 17747 cat confdefs.h >>conftest.$ac_ext 17748 cat >>conftest.$ac_ext <<_ACEOF 17749 /* end confdefs.h. */ 17750 17751 /* Override any GCC internal prototype to avoid an error. 17752 Use char because int might match the return type of a GCC 17753 builtin and then its argument prototype would still apply. */ 17754 #ifdef __cplusplus 17755 extern "C" 17756 #endif 17757 char _alloca (); 17758 int 17759 main () 17760 { 17761 return _alloca (); 17762 ; 17763 return 0; 17764 } 17765 _ACEOF 17766 rm -f conftest.$ac_objext conftest$ac_exeext 17767 if { (ac_try="$ac_link" 17768 case "(($ac_try" in 17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17770 *) ac_try_echo=$ac_try;; 17771 esac 17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17773 (eval "$ac_link") 2>conftest.er1 17774 ac_status=$? 17775 grep -v '^ *+' conftest.er1 >conftest.err 17776 rm -f conftest.er1 17777 cat conftest.err >&5 17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17779 (exit $ac_status); } && 17780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17781 { (case "(($ac_try" in 17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17783 *) ac_try_echo=$ac_try;; 17784 esac 17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17786 (eval "$ac_try") 2>&5 17787 ac_status=$? 17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17789 (exit $ac_status); }; } && 17790 { ac_try='test -s conftest$ac_exeext' 17791 { (case "(($ac_try" in 17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17793 *) ac_try_echo=$ac_try;; 17794 esac 17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17796 (eval "$ac_try") 2>&5 17797 ac_status=$? 17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17799 (exit $ac_status); }; }; then 17800 ac_cv_lib_gcc__alloca=yes 17801 else 17802 echo "$as_me: failed program was:" >&5 17803 sed 's/^/| /' conftest.$ac_ext >&5 17804 17805 ac_cv_lib_gcc__alloca=no 17806 fi 17807 17808 rm -f core conftest.err conftest.$ac_objext \ 17809 conftest$ac_exeext conftest.$ac_ext 17810 LIBS=$ac_check_lib_save_LIBS 17811 fi 17812 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 17813 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 17814 if test $ac_cv_lib_gcc__alloca = yes; then 17815 17816 cat >>confdefs.h <<\_ACEOF 17817 #define HAVE__ALLOCA 1 17818 _ACEOF 17819 17820 fi 17821 17822 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 17823 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 17824 if test "${ac_cv_lib_gcc___alloca+set}" = set; then 17825 echo $ECHO_N "(cached) $ECHO_C" >&6 17826 else 17827 ac_check_lib_save_LIBS=$LIBS 17828 LIBS="-lgcc $LIBS" 17829 cat >conftest.$ac_ext <<_ACEOF 17830 /* confdefs.h. */ 17831 _ACEOF 17832 cat confdefs.h >>conftest.$ac_ext 17833 cat >>conftest.$ac_ext <<_ACEOF 17834 /* end confdefs.h. */ 17835 17836 /* Override any GCC internal prototype to avoid an error. 17837 Use char because int might match the return type of a GCC 17838 builtin and then its argument prototype would still apply. */ 17839 #ifdef __cplusplus 17840 extern "C" 17841 #endif 17842 char __alloca (); 17843 int 17844 main () 17845 { 17846 return __alloca (); 17847 ; 17848 return 0; 17849 } 17850 _ACEOF 17851 rm -f conftest.$ac_objext conftest$ac_exeext 17852 if { (ac_try="$ac_link" 17853 case "(($ac_try" in 17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17855 *) ac_try_echo=$ac_try;; 17856 esac 17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17858 (eval "$ac_link") 2>conftest.er1 17859 ac_status=$? 17860 grep -v '^ *+' conftest.er1 >conftest.err 17861 rm -f conftest.er1 17862 cat conftest.err >&5 17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17864 (exit $ac_status); } && 17865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17866 { (case "(($ac_try" in 17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17868 *) ac_try_echo=$ac_try;; 17869 esac 17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17871 (eval "$ac_try") 2>&5 17872 ac_status=$? 17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17874 (exit $ac_status); }; } && 17875 { ac_try='test -s conftest$ac_exeext' 17876 { (case "(($ac_try" in 17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17878 *) ac_try_echo=$ac_try;; 17879 esac 17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17881 (eval "$ac_try") 2>&5 17882 ac_status=$? 17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17884 (exit $ac_status); }; }; then 17885 ac_cv_lib_gcc___alloca=yes 17886 else 17887 echo "$as_me: failed program was:" >&5 17888 sed 's/^/| /' conftest.$ac_ext >&5 17889 17890 ac_cv_lib_gcc___alloca=no 17891 fi 17892 17893 rm -f core conftest.err conftest.$ac_objext \ 17894 conftest$ac_exeext conftest.$ac_ext 17895 LIBS=$ac_check_lib_save_LIBS 17896 fi 17897 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 17898 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 17899 if test $ac_cv_lib_gcc___alloca = yes; then 17900 17901 cat >>confdefs.h <<\_ACEOF 17902 #define HAVE___ALLOCA 1 17903 _ACEOF 17904 17905 fi 17906 17907 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 17908 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 17909 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 17910 echo $ECHO_N "(cached) $ECHO_C" >&6 17911 else 17912 ac_check_lib_save_LIBS=$LIBS 17913 LIBS="-lgcc $LIBS" 17914 cat >conftest.$ac_ext <<_ACEOF 17915 /* confdefs.h. */ 17916 _ACEOF 17917 cat confdefs.h >>conftest.$ac_ext 17918 cat >>conftest.$ac_ext <<_ACEOF 17919 /* end confdefs.h. */ 17920 17921 /* Override any GCC internal prototype to avoid an error. 17922 Use char because int might match the return type of a GCC 17923 builtin and then its argument prototype would still apply. */ 17924 #ifdef __cplusplus 17925 extern "C" 17926 #endif 17927 char __chkstk (); 17928 int 17929 main () 17930 { 17931 return __chkstk (); 17932 ; 17933 return 0; 17934 } 17935 _ACEOF 17936 rm -f conftest.$ac_objext conftest$ac_exeext 17937 if { (ac_try="$ac_link" 17938 case "(($ac_try" in 17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17940 *) ac_try_echo=$ac_try;; 17941 esac 17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17943 (eval "$ac_link") 2>conftest.er1 17944 ac_status=$? 17945 grep -v '^ *+' conftest.er1 >conftest.err 17946 rm -f conftest.er1 17947 cat conftest.err >&5 17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17949 (exit $ac_status); } && 17950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17951 { (case "(($ac_try" in 17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17953 *) ac_try_echo=$ac_try;; 17954 esac 17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17956 (eval "$ac_try") 2>&5 17957 ac_status=$? 17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17959 (exit $ac_status); }; } && 17960 { ac_try='test -s conftest$ac_exeext' 17961 { (case "(($ac_try" in 17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17963 *) ac_try_echo=$ac_try;; 17964 esac 17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17966 (eval "$ac_try") 2>&5 17967 ac_status=$? 17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17969 (exit $ac_status); }; }; then 17970 ac_cv_lib_gcc___chkstk=yes 17971 else 17972 echo "$as_me: failed program was:" >&5 17973 sed 's/^/| /' conftest.$ac_ext >&5 17974 17975 ac_cv_lib_gcc___chkstk=no 17976 fi 17977 17978 rm -f core conftest.err conftest.$ac_objext \ 17979 conftest$ac_exeext conftest.$ac_ext 17980 LIBS=$ac_check_lib_save_LIBS 17981 fi 17982 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 17983 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 17984 if test $ac_cv_lib_gcc___chkstk = yes; then 17985 17986 cat >>confdefs.h <<\_ACEOF 17987 #define HAVE___CHKSTK 1 17988 _ACEOF 17989 17990 fi 17991 17992 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 17993 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 17994 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 17995 echo $ECHO_N "(cached) $ECHO_C" >&6 17996 else 17997 ac_check_lib_save_LIBS=$LIBS 17998 LIBS="-lgcc $LIBS" 17999 cat >conftest.$ac_ext <<_ACEOF 18000 /* confdefs.h. */ 18001 _ACEOF 18002 cat confdefs.h >>conftest.$ac_ext 18003 cat >>conftest.$ac_ext <<_ACEOF 18004 /* end confdefs.h. */ 18005 18006 /* Override any GCC internal prototype to avoid an error. 18007 Use char because int might match the return type of a GCC 18008 builtin and then its argument prototype would still apply. */ 18009 #ifdef __cplusplus 18010 extern "C" 18011 #endif 18012 char ___chkstk (); 18013 int 18014 main () 18015 { 18016 return ___chkstk (); 18017 ; 18018 return 0; 18019 } 18020 _ACEOF 18021 rm -f conftest.$ac_objext conftest$ac_exeext 18022 if { (ac_try="$ac_link" 18023 case "(($ac_try" in 18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18025 *) ac_try_echo=$ac_try;; 18026 esac 18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18028 (eval "$ac_link") 2>conftest.er1 18029 ac_status=$? 18030 grep -v '^ *+' conftest.er1 >conftest.err 18031 rm -f conftest.er1 18032 cat conftest.err >&5 18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18034 (exit $ac_status); } && 18035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18036 { (case "(($ac_try" in 18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18038 *) ac_try_echo=$ac_try;; 18039 esac 18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18041 (eval "$ac_try") 2>&5 18042 ac_status=$? 18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18044 (exit $ac_status); }; } && 18045 { ac_try='test -s conftest$ac_exeext' 18046 { (case "(($ac_try" in 18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18048 *) ac_try_echo=$ac_try;; 18049 esac 18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18051 (eval "$ac_try") 2>&5 18052 ac_status=$? 18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18054 (exit $ac_status); }; }; then 18055 ac_cv_lib_gcc____chkstk=yes 18056 else 18057 echo "$as_me: failed program was:" >&5 18058 sed 's/^/| /' conftest.$ac_ext >&5 18059 18060 ac_cv_lib_gcc____chkstk=no 18061 fi 18062 18063 rm -f core conftest.err conftest.$ac_objext \ 18064 conftest$ac_exeext conftest.$ac_ext 18065 LIBS=$ac_check_lib_save_LIBS 18066 fi 18067 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18068 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18069 if test $ac_cv_lib_gcc____chkstk = yes; then 18070 18071 cat >>confdefs.h <<\_ACEOF 18072 #define HAVE____CHKSTK 1 18073 _ACEOF 18074 18075 fi 18076 18077 18078 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18079 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18080 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18081 echo $ECHO_N "(cached) $ECHO_C" >&6 18082 else 18083 ac_check_lib_save_LIBS=$LIBS 18084 LIBS="-lgcc $LIBS" 18085 cat >conftest.$ac_ext <<_ACEOF 18086 /* confdefs.h. */ 18087 _ACEOF 18088 cat confdefs.h >>conftest.$ac_ext 18089 cat >>conftest.$ac_ext <<_ACEOF 18090 /* end confdefs.h. */ 18091 18092 /* Override any GCC internal prototype to avoid an error. 18093 Use char because int might match the return type of a GCC 18094 builtin and then its argument prototype would still apply. */ 18095 #ifdef __cplusplus 18096 extern "C" 18097 #endif 18098 char __ashldi3 (); 18099 int 18100 main () 18101 { 18102 return __ashldi3 (); 18103 ; 18104 return 0; 18105 } 18106 _ACEOF 18107 rm -f conftest.$ac_objext conftest$ac_exeext 18108 if { (ac_try="$ac_link" 18109 case "(($ac_try" in 18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18111 *) ac_try_echo=$ac_try;; 18112 esac 18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18114 (eval "$ac_link") 2>conftest.er1 18115 ac_status=$? 18116 grep -v '^ *+' conftest.er1 >conftest.err 18117 rm -f conftest.er1 18118 cat conftest.err >&5 18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18120 (exit $ac_status); } && 18121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18122 { (case "(($ac_try" in 18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18124 *) ac_try_echo=$ac_try;; 18125 esac 18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18127 (eval "$ac_try") 2>&5 18128 ac_status=$? 18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18130 (exit $ac_status); }; } && 18131 { ac_try='test -s conftest$ac_exeext' 18132 { (case "(($ac_try" in 18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18134 *) ac_try_echo=$ac_try;; 18135 esac 18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18137 (eval "$ac_try") 2>&5 18138 ac_status=$? 18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18140 (exit $ac_status); }; }; then 18141 ac_cv_lib_gcc___ashldi3=yes 18142 else 18143 echo "$as_me: failed program was:" >&5 18144 sed 's/^/| /' conftest.$ac_ext >&5 18145 18146 ac_cv_lib_gcc___ashldi3=no 18147 fi 18148 18149 rm -f core conftest.err conftest.$ac_objext \ 18150 conftest$ac_exeext conftest.$ac_ext 18151 LIBS=$ac_check_lib_save_LIBS 18152 fi 18153 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18154 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18155 if test $ac_cv_lib_gcc___ashldi3 = yes; then 18156 18157 cat >>confdefs.h <<\_ACEOF 18158 #define HAVE___ASHLDI3 1 18159 _ACEOF 18160 18161 fi 18162 18163 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18164 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18165 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18166 echo $ECHO_N "(cached) $ECHO_C" >&6 18167 else 18168 ac_check_lib_save_LIBS=$LIBS 18169 LIBS="-lgcc $LIBS" 18170 cat >conftest.$ac_ext <<_ACEOF 18171 /* confdefs.h. */ 18172 _ACEOF 18173 cat confdefs.h >>conftest.$ac_ext 18174 cat >>conftest.$ac_ext <<_ACEOF 18175 /* end confdefs.h. */ 18176 18177 /* Override any GCC internal prototype to avoid an error. 18178 Use char because int might match the return type of a GCC 18179 builtin and then its argument prototype would still apply. */ 18180 #ifdef __cplusplus 18181 extern "C" 18182 #endif 18183 char __ashrdi3 (); 18184 int 18185 main () 18186 { 18187 return __ashrdi3 (); 18188 ; 18189 return 0; 18190 } 18191 _ACEOF 18192 rm -f conftest.$ac_objext conftest$ac_exeext 18193 if { (ac_try="$ac_link" 18194 case "(($ac_try" in 18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18196 *) ac_try_echo=$ac_try;; 18197 esac 18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18199 (eval "$ac_link") 2>conftest.er1 18200 ac_status=$? 18201 grep -v '^ *+' conftest.er1 >conftest.err 18202 rm -f conftest.er1 18203 cat conftest.err >&5 18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18205 (exit $ac_status); } && 18206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18207 { (case "(($ac_try" in 18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18209 *) ac_try_echo=$ac_try;; 18210 esac 18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18212 (eval "$ac_try") 2>&5 18213 ac_status=$? 18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18215 (exit $ac_status); }; } && 18216 { ac_try='test -s conftest$ac_exeext' 18217 { (case "(($ac_try" in 18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18219 *) ac_try_echo=$ac_try;; 18220 esac 18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18222 (eval "$ac_try") 2>&5 18223 ac_status=$? 18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18225 (exit $ac_status); }; }; then 18226 ac_cv_lib_gcc___ashrdi3=yes 18227 else 18228 echo "$as_me: failed program was:" >&5 18229 sed 's/^/| /' conftest.$ac_ext >&5 18230 18231 ac_cv_lib_gcc___ashrdi3=no 18232 fi 18233 18234 rm -f core conftest.err conftest.$ac_objext \ 18235 conftest$ac_exeext conftest.$ac_ext 18236 LIBS=$ac_check_lib_save_LIBS 18237 fi 18238 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18239 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18240 if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18241 18242 cat >>confdefs.h <<\_ACEOF 18243 #define HAVE___ASHRDI3 1 18244 _ACEOF 18245 18246 fi 18247 18248 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18249 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18250 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18251 echo $ECHO_N "(cached) $ECHO_C" >&6 18252 else 18253 ac_check_lib_save_LIBS=$LIBS 18254 LIBS="-lgcc $LIBS" 18255 cat >conftest.$ac_ext <<_ACEOF 18256 /* confdefs.h. */ 18257 _ACEOF 18258 cat confdefs.h >>conftest.$ac_ext 18259 cat >>conftest.$ac_ext <<_ACEOF 18260 /* end confdefs.h. */ 18261 18262 /* Override any GCC internal prototype to avoid an error. 18263 Use char because int might match the return type of a GCC 18264 builtin and then its argument prototype would still apply. */ 18265 #ifdef __cplusplus 18266 extern "C" 18267 #endif 18268 char __divdi3 (); 18269 int 18270 main () 18271 { 18272 return __divdi3 (); 18273 ; 18274 return 0; 18275 } 18276 _ACEOF 18277 rm -f conftest.$ac_objext conftest$ac_exeext 18278 if { (ac_try="$ac_link" 18279 case "(($ac_try" in 18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18281 *) ac_try_echo=$ac_try;; 18282 esac 18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18284 (eval "$ac_link") 2>conftest.er1 18285 ac_status=$? 18286 grep -v '^ *+' conftest.er1 >conftest.err 18287 rm -f conftest.er1 18288 cat conftest.err >&5 18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18290 (exit $ac_status); } && 18291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18292 { (case "(($ac_try" in 18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18294 *) ac_try_echo=$ac_try;; 18295 esac 18296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18297 (eval "$ac_try") 2>&5 18298 ac_status=$? 18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18300 (exit $ac_status); }; } && 18301 { ac_try='test -s conftest$ac_exeext' 18302 { (case "(($ac_try" in 18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18304 *) ac_try_echo=$ac_try;; 18305 esac 18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18307 (eval "$ac_try") 2>&5 18308 ac_status=$? 18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18310 (exit $ac_status); }; }; then 18311 ac_cv_lib_gcc___divdi3=yes 18312 else 18313 echo "$as_me: failed program was:" >&5 18314 sed 's/^/| /' conftest.$ac_ext >&5 18315 18316 ac_cv_lib_gcc___divdi3=no 18317 fi 18318 18319 rm -f core conftest.err conftest.$ac_objext \ 18320 conftest$ac_exeext conftest.$ac_ext 18321 LIBS=$ac_check_lib_save_LIBS 18322 fi 18323 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 18324 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 18325 if test $ac_cv_lib_gcc___divdi3 = yes; then 18326 18327 cat >>confdefs.h <<\_ACEOF 18328 #define HAVE___DIVDI3 1 18329 _ACEOF 18330 18331 fi 18332 18333 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 18334 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 18335 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 18336 echo $ECHO_N "(cached) $ECHO_C" >&6 18337 else 18338 ac_check_lib_save_LIBS=$LIBS 18339 LIBS="-lgcc $LIBS" 18340 cat >conftest.$ac_ext <<_ACEOF 18341 /* confdefs.h. */ 18342 _ACEOF 18343 cat confdefs.h >>conftest.$ac_ext 18344 cat >>conftest.$ac_ext <<_ACEOF 18345 /* end confdefs.h. */ 18346 18347 /* Override any GCC internal prototype to avoid an error. 18348 Use char because int might match the return type of a GCC 18349 builtin and then its argument prototype would still apply. */ 18350 #ifdef __cplusplus 18351 extern "C" 18352 #endif 18353 char __fixdfdi (); 18354 int 18355 main () 18356 { 18357 return __fixdfdi (); 18358 ; 18359 return 0; 18360 } 18361 _ACEOF 18362 rm -f conftest.$ac_objext conftest$ac_exeext 18363 if { (ac_try="$ac_link" 18364 case "(($ac_try" in 18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18366 *) ac_try_echo=$ac_try;; 18367 esac 18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18369 (eval "$ac_link") 2>conftest.er1 18370 ac_status=$? 18371 grep -v '^ *+' conftest.er1 >conftest.err 18372 rm -f conftest.er1 18373 cat conftest.err >&5 18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18375 (exit $ac_status); } && 18376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18377 { (case "(($ac_try" in 18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18379 *) ac_try_echo=$ac_try;; 18380 esac 18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18382 (eval "$ac_try") 2>&5 18383 ac_status=$? 18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18385 (exit $ac_status); }; } && 18386 { ac_try='test -s conftest$ac_exeext' 18387 { (case "(($ac_try" in 18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18389 *) ac_try_echo=$ac_try;; 18390 esac 18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18392 (eval "$ac_try") 2>&5 18393 ac_status=$? 18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18395 (exit $ac_status); }; }; then 18396 ac_cv_lib_gcc___fixdfdi=yes 18397 else 18398 echo "$as_me: failed program was:" >&5 18399 sed 's/^/| /' conftest.$ac_ext >&5 18400 18401 ac_cv_lib_gcc___fixdfdi=no 18402 fi 18403 18404 rm -f core conftest.err conftest.$ac_objext \ 18405 conftest$ac_exeext conftest.$ac_ext 18406 LIBS=$ac_check_lib_save_LIBS 18407 fi 18408 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 18409 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 18410 if test $ac_cv_lib_gcc___fixdfdi = yes; then 18411 18412 cat >>confdefs.h <<\_ACEOF 18413 #define HAVE___FIXDFDI 1 18414 _ACEOF 18415 18416 fi 18417 18418 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 18419 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 18420 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 18421 echo $ECHO_N "(cached) $ECHO_C" >&6 18422 else 18423 ac_check_lib_save_LIBS=$LIBS 18424 LIBS="-lgcc $LIBS" 18425 cat >conftest.$ac_ext <<_ACEOF 18426 /* confdefs.h. */ 18427 _ACEOF 18428 cat confdefs.h >>conftest.$ac_ext 18429 cat >>conftest.$ac_ext <<_ACEOF 18430 /* end confdefs.h. */ 18431 18432 /* Override any GCC internal prototype to avoid an error. 18433 Use char because int might match the return type of a GCC 18434 builtin and then its argument prototype would still apply. */ 18435 #ifdef __cplusplus 18436 extern "C" 18437 #endif 18438 char __fixsfdi (); 18439 int 18440 main () 18441 { 18442 return __fixsfdi (); 18443 ; 18444 return 0; 18445 } 18446 _ACEOF 18447 rm -f conftest.$ac_objext conftest$ac_exeext 18448 if { (ac_try="$ac_link" 18449 case "(($ac_try" in 18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18451 *) ac_try_echo=$ac_try;; 18452 esac 18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18454 (eval "$ac_link") 2>conftest.er1 18455 ac_status=$? 18456 grep -v '^ *+' conftest.er1 >conftest.err 18457 rm -f conftest.er1 18458 cat conftest.err >&5 18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18460 (exit $ac_status); } && 18461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18462 { (case "(($ac_try" in 18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18464 *) ac_try_echo=$ac_try;; 18465 esac 18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18467 (eval "$ac_try") 2>&5 18468 ac_status=$? 18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18470 (exit $ac_status); }; } && 18471 { ac_try='test -s conftest$ac_exeext' 18472 { (case "(($ac_try" in 18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18474 *) ac_try_echo=$ac_try;; 18475 esac 18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18477 (eval "$ac_try") 2>&5 18478 ac_status=$? 18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18480 (exit $ac_status); }; }; then 18481 ac_cv_lib_gcc___fixsfdi=yes 18482 else 18483 echo "$as_me: failed program was:" >&5 18484 sed 's/^/| /' conftest.$ac_ext >&5 18485 18486 ac_cv_lib_gcc___fixsfdi=no 18487 fi 18488 18489 rm -f core conftest.err conftest.$ac_objext \ 18490 conftest$ac_exeext conftest.$ac_ext 18491 LIBS=$ac_check_lib_save_LIBS 18492 fi 18493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 18494 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 18495 if test $ac_cv_lib_gcc___fixsfdi = yes; then 18496 18497 cat >>confdefs.h <<\_ACEOF 18498 #define HAVE___FIXSFDI 1 18499 _ACEOF 18500 18501 fi 18502 18503 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 18504 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 18505 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 18506 echo $ECHO_N "(cached) $ECHO_C" >&6 18507 else 18508 ac_check_lib_save_LIBS=$LIBS 18509 LIBS="-lgcc $LIBS" 18510 cat >conftest.$ac_ext <<_ACEOF 18511 /* confdefs.h. */ 18512 _ACEOF 18513 cat confdefs.h >>conftest.$ac_ext 18514 cat >>conftest.$ac_ext <<_ACEOF 18515 /* end confdefs.h. */ 18516 18517 /* Override any GCC internal prototype to avoid an error. 18518 Use char because int might match the return type of a GCC 18519 builtin and then its argument prototype would still apply. */ 18520 #ifdef __cplusplus 18521 extern "C" 18522 #endif 18523 char __floatdidf (); 18524 int 18525 main () 18526 { 18527 return __floatdidf (); 18528 ; 18529 return 0; 18530 } 18531 _ACEOF 18532 rm -f conftest.$ac_objext conftest$ac_exeext 18533 if { (ac_try="$ac_link" 18534 case "(($ac_try" in 18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18536 *) ac_try_echo=$ac_try;; 18537 esac 18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18539 (eval "$ac_link") 2>conftest.er1 18540 ac_status=$? 18541 grep -v '^ *+' conftest.er1 >conftest.err 18542 rm -f conftest.er1 18543 cat conftest.err >&5 18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18545 (exit $ac_status); } && 18546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18547 { (case "(($ac_try" in 18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18549 *) ac_try_echo=$ac_try;; 18550 esac 18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18552 (eval "$ac_try") 2>&5 18553 ac_status=$? 18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18555 (exit $ac_status); }; } && 18556 { ac_try='test -s conftest$ac_exeext' 18557 { (case "(($ac_try" in 18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18559 *) ac_try_echo=$ac_try;; 18560 esac 18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18562 (eval "$ac_try") 2>&5 18563 ac_status=$? 18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18565 (exit $ac_status); }; }; then 18566 ac_cv_lib_gcc___floatdidf=yes 18567 else 18568 echo "$as_me: failed program was:" >&5 18569 sed 's/^/| /' conftest.$ac_ext >&5 18570 18571 ac_cv_lib_gcc___floatdidf=no 18572 fi 18573 18574 rm -f core conftest.err conftest.$ac_objext \ 18575 conftest$ac_exeext conftest.$ac_ext 18576 LIBS=$ac_check_lib_save_LIBS 18577 fi 18578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 18579 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 18580 if test $ac_cv_lib_gcc___floatdidf = yes; then 18581 18582 cat >>confdefs.h <<\_ACEOF 18583 #define HAVE___FLOATDIDF 1 18584 _ACEOF 18585 18586 fi 18587 18588 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 18589 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 18590 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 18591 echo $ECHO_N "(cached) $ECHO_C" >&6 18592 else 18593 ac_check_lib_save_LIBS=$LIBS 18594 LIBS="-lgcc $LIBS" 18595 cat >conftest.$ac_ext <<_ACEOF 18596 /* confdefs.h. */ 18597 _ACEOF 18598 cat confdefs.h >>conftest.$ac_ext 18599 cat >>conftest.$ac_ext <<_ACEOF 18600 /* end confdefs.h. */ 18601 18602 /* Override any GCC internal prototype to avoid an error. 18603 Use char because int might match the return type of a GCC 18604 builtin and then its argument prototype would still apply. */ 18605 #ifdef __cplusplus 18606 extern "C" 18607 #endif 18608 char __lshrdi3 (); 18609 int 18610 main () 18611 { 18612 return __lshrdi3 (); 18613 ; 18614 return 0; 18615 } 18616 _ACEOF 18617 rm -f conftest.$ac_objext conftest$ac_exeext 18618 if { (ac_try="$ac_link" 18619 case "(($ac_try" in 18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18621 *) ac_try_echo=$ac_try;; 18622 esac 18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18624 (eval "$ac_link") 2>conftest.er1 18625 ac_status=$? 18626 grep -v '^ *+' conftest.er1 >conftest.err 18627 rm -f conftest.er1 18628 cat conftest.err >&5 18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18630 (exit $ac_status); } && 18631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18632 { (case "(($ac_try" in 18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18634 *) ac_try_echo=$ac_try;; 18635 esac 18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18637 (eval "$ac_try") 2>&5 18638 ac_status=$? 18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18640 (exit $ac_status); }; } && 18641 { ac_try='test -s conftest$ac_exeext' 18642 { (case "(($ac_try" in 18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18644 *) ac_try_echo=$ac_try;; 18645 esac 18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18647 (eval "$ac_try") 2>&5 18648 ac_status=$? 18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18650 (exit $ac_status); }; }; then 18651 ac_cv_lib_gcc___lshrdi3=yes 18652 else 18653 echo "$as_me: failed program was:" >&5 18654 sed 's/^/| /' conftest.$ac_ext >&5 18655 18656 ac_cv_lib_gcc___lshrdi3=no 18657 fi 18658 18659 rm -f core conftest.err conftest.$ac_objext \ 18660 conftest$ac_exeext conftest.$ac_ext 18661 LIBS=$ac_check_lib_save_LIBS 18662 fi 18663 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 18664 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 18665 if test $ac_cv_lib_gcc___lshrdi3 = yes; then 18666 18667 cat >>confdefs.h <<\_ACEOF 18668 #define HAVE___LSHRDI3 1 18669 _ACEOF 18670 18671 fi 18672 18673 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 18674 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 18675 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 18676 echo $ECHO_N "(cached) $ECHO_C" >&6 18677 else 18678 ac_check_lib_save_LIBS=$LIBS 18679 LIBS="-lgcc $LIBS" 18680 cat >conftest.$ac_ext <<_ACEOF 18681 /* confdefs.h. */ 18682 _ACEOF 18683 cat confdefs.h >>conftest.$ac_ext 18684 cat >>conftest.$ac_ext <<_ACEOF 18685 /* end confdefs.h. */ 18686 18687 /* Override any GCC internal prototype to avoid an error. 18688 Use char because int might match the return type of a GCC 18689 builtin and then its argument prototype would still apply. */ 18690 #ifdef __cplusplus 18691 extern "C" 18692 #endif 18693 char __moddi3 (); 18694 int 18695 main () 18696 { 18697 return __moddi3 (); 18698 ; 18699 return 0; 18700 } 18701 _ACEOF 18702 rm -f conftest.$ac_objext conftest$ac_exeext 18703 if { (ac_try="$ac_link" 18704 case "(($ac_try" in 18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18706 *) ac_try_echo=$ac_try;; 18707 esac 18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18709 (eval "$ac_link") 2>conftest.er1 18710 ac_status=$? 18711 grep -v '^ *+' conftest.er1 >conftest.err 18712 rm -f conftest.er1 18713 cat conftest.err >&5 18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18715 (exit $ac_status); } && 18716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18717 { (case "(($ac_try" in 18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18719 *) ac_try_echo=$ac_try;; 18720 esac 18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18722 (eval "$ac_try") 2>&5 18723 ac_status=$? 18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18725 (exit $ac_status); }; } && 18726 { ac_try='test -s conftest$ac_exeext' 18727 { (case "(($ac_try" in 18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18729 *) ac_try_echo=$ac_try;; 18730 esac 18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18732 (eval "$ac_try") 2>&5 18733 ac_status=$? 18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18735 (exit $ac_status); }; }; then 18736 ac_cv_lib_gcc___moddi3=yes 18737 else 18738 echo "$as_me: failed program was:" >&5 18739 sed 's/^/| /' conftest.$ac_ext >&5 18740 18741 ac_cv_lib_gcc___moddi3=no 18742 fi 18743 18744 rm -f core conftest.err conftest.$ac_objext \ 18745 conftest$ac_exeext conftest.$ac_ext 18746 LIBS=$ac_check_lib_save_LIBS 18747 fi 18748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 18749 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 18750 if test $ac_cv_lib_gcc___moddi3 = yes; then 18751 18752 cat >>confdefs.h <<\_ACEOF 18753 #define HAVE___MODDI3 1 18754 _ACEOF 18755 18756 fi 18757 18758 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 18759 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 18760 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 18761 echo $ECHO_N "(cached) $ECHO_C" >&6 18762 else 18763 ac_check_lib_save_LIBS=$LIBS 18764 LIBS="-lgcc $LIBS" 18765 cat >conftest.$ac_ext <<_ACEOF 18766 /* confdefs.h. */ 18767 _ACEOF 18768 cat confdefs.h >>conftest.$ac_ext 18769 cat >>conftest.$ac_ext <<_ACEOF 18770 /* end confdefs.h. */ 18771 18772 /* Override any GCC internal prototype to avoid an error. 18773 Use char because int might match the return type of a GCC 18774 builtin and then its argument prototype would still apply. */ 18775 #ifdef __cplusplus 18776 extern "C" 18777 #endif 18778 char __udivdi3 (); 18779 int 18780 main () 18781 { 18782 return __udivdi3 (); 18783 ; 18784 return 0; 18785 } 18786 _ACEOF 18787 rm -f conftest.$ac_objext conftest$ac_exeext 18788 if { (ac_try="$ac_link" 18789 case "(($ac_try" in 18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18791 *) ac_try_echo=$ac_try;; 18792 esac 18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18794 (eval "$ac_link") 2>conftest.er1 18795 ac_status=$? 18796 grep -v '^ *+' conftest.er1 >conftest.err 18797 rm -f conftest.er1 18798 cat conftest.err >&5 18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18800 (exit $ac_status); } && 18801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18802 { (case "(($ac_try" in 18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18804 *) ac_try_echo=$ac_try;; 18805 esac 18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18807 (eval "$ac_try") 2>&5 18808 ac_status=$? 18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18810 (exit $ac_status); }; } && 18811 { ac_try='test -s conftest$ac_exeext' 18812 { (case "(($ac_try" in 18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18814 *) ac_try_echo=$ac_try;; 18815 esac 18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18817 (eval "$ac_try") 2>&5 18818 ac_status=$? 18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18820 (exit $ac_status); }; }; then 18821 ac_cv_lib_gcc___udivdi3=yes 18822 else 18823 echo "$as_me: failed program was:" >&5 18824 sed 's/^/| /' conftest.$ac_ext >&5 18825 18826 ac_cv_lib_gcc___udivdi3=no 18827 fi 18828 18829 rm -f core conftest.err conftest.$ac_objext \ 18830 conftest$ac_exeext conftest.$ac_ext 18831 LIBS=$ac_check_lib_save_LIBS 18832 fi 18833 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 18834 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 18835 if test $ac_cv_lib_gcc___udivdi3 = yes; then 18836 18837 cat >>confdefs.h <<\_ACEOF 18838 #define HAVE___UDIVDI3 1 18839 _ACEOF 18840 18841 fi 18842 18843 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 18844 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 18845 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 18846 echo $ECHO_N "(cached) $ECHO_C" >&6 18847 else 18848 ac_check_lib_save_LIBS=$LIBS 18849 LIBS="-lgcc $LIBS" 18850 cat >conftest.$ac_ext <<_ACEOF 18851 /* confdefs.h. */ 18852 _ACEOF 18853 cat confdefs.h >>conftest.$ac_ext 18854 cat >>conftest.$ac_ext <<_ACEOF 18855 /* end confdefs.h. */ 18856 18857 /* Override any GCC internal prototype to avoid an error. 18858 Use char because int might match the return type of a GCC 18859 builtin and then its argument prototype would still apply. */ 18860 #ifdef __cplusplus 18861 extern "C" 18862 #endif 18863 char __umoddi3 (); 18864 int 18865 main () 18866 { 18867 return __umoddi3 (); 18868 ; 18869 return 0; 18870 } 18871 _ACEOF 18872 rm -f conftest.$ac_objext conftest$ac_exeext 18873 if { (ac_try="$ac_link" 18874 case "(($ac_try" in 18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18876 *) ac_try_echo=$ac_try;; 18877 esac 18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18879 (eval "$ac_link") 2>conftest.er1 18880 ac_status=$? 18881 grep -v '^ *+' conftest.er1 >conftest.err 18882 rm -f conftest.er1 18883 cat conftest.err >&5 18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18885 (exit $ac_status); } && 18886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18887 { (case "(($ac_try" in 18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18889 *) ac_try_echo=$ac_try;; 18890 esac 18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18892 (eval "$ac_try") 2>&5 18893 ac_status=$? 18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18895 (exit $ac_status); }; } && 18896 { ac_try='test -s conftest$ac_exeext' 18897 { (case "(($ac_try" in 18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18899 *) ac_try_echo=$ac_try;; 18900 esac 18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18902 (eval "$ac_try") 2>&5 18903 ac_status=$? 18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18905 (exit $ac_status); }; }; then 18906 ac_cv_lib_gcc___umoddi3=yes 18907 else 18908 echo "$as_me: failed program was:" >&5 18909 sed 's/^/| /' conftest.$ac_ext >&5 18910 18911 ac_cv_lib_gcc___umoddi3=no 18912 fi 18913 18914 rm -f core conftest.err conftest.$ac_objext \ 18915 conftest$ac_exeext conftest.$ac_ext 18916 LIBS=$ac_check_lib_save_LIBS 18917 fi 18918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 18919 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 18920 if test $ac_cv_lib_gcc___umoddi3 = yes; then 18921 18922 cat >>confdefs.h <<\_ACEOF 18923 #define HAVE___UMODDI3 1 18924 _ACEOF 18925 18926 fi 18927 18928 18929 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 18930 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 18931 if test "${ac_cv_lib_gcc___main+set}" = set; then 18932 echo $ECHO_N "(cached) $ECHO_C" >&6 18933 else 18934 ac_check_lib_save_LIBS=$LIBS 18935 LIBS="-lgcc $LIBS" 18936 cat >conftest.$ac_ext <<_ACEOF 18937 /* confdefs.h. */ 18938 _ACEOF 18939 cat confdefs.h >>conftest.$ac_ext 18940 cat >>conftest.$ac_ext <<_ACEOF 18941 /* end confdefs.h. */ 18942 18943 /* Override any GCC internal prototype to avoid an error. 18944 Use char because int might match the return type of a GCC 18945 builtin and then its argument prototype would still apply. */ 18946 #ifdef __cplusplus 18947 extern "C" 18948 #endif 18949 char __main (); 18950 int 18951 main () 18952 { 18953 return __main (); 18954 ; 18955 return 0; 18956 } 18957 _ACEOF 18958 rm -f conftest.$ac_objext conftest$ac_exeext 18959 if { (ac_try="$ac_link" 18960 case "(($ac_try" in 18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18962 *) ac_try_echo=$ac_try;; 18963 esac 18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18965 (eval "$ac_link") 2>conftest.er1 18966 ac_status=$? 18967 grep -v '^ *+' conftest.er1 >conftest.err 18968 rm -f conftest.er1 18969 cat conftest.err >&5 18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18971 (exit $ac_status); } && 18972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18973 { (case "(($ac_try" in 18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18975 *) ac_try_echo=$ac_try;; 18976 esac 18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18978 (eval "$ac_try") 2>&5 18979 ac_status=$? 18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18981 (exit $ac_status); }; } && 18982 { ac_try='test -s conftest$ac_exeext' 18983 { (case "(($ac_try" in 18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18985 *) ac_try_echo=$ac_try;; 18986 esac 18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18988 (eval "$ac_try") 2>&5 18989 ac_status=$? 18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18991 (exit $ac_status); }; }; then 18992 ac_cv_lib_gcc___main=yes 18993 else 18994 echo "$as_me: failed program was:" >&5 18995 sed 's/^/| /' conftest.$ac_ext >&5 18996 18997 ac_cv_lib_gcc___main=no 18998 fi 18999 19000 rm -f core conftest.err conftest.$ac_objext \ 19001 conftest$ac_exeext conftest.$ac_ext 19002 LIBS=$ac_check_lib_save_LIBS 19003 fi 19004 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 19005 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 19006 if test $ac_cv_lib_gcc___main = yes; then 19007 19008 cat >>confdefs.h <<\_ACEOF 19009 #define HAVE___MAIN 1 19010 _ACEOF 19011 19012 fi 19013 19014 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 19015 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 19016 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 19017 echo $ECHO_N "(cached) $ECHO_C" >&6 19018 else 19019 ac_check_lib_save_LIBS=$LIBS 19020 LIBS="-lgcc $LIBS" 19021 cat >conftest.$ac_ext <<_ACEOF 19022 /* confdefs.h. */ 19023 _ACEOF 19024 cat confdefs.h >>conftest.$ac_ext 19025 cat >>conftest.$ac_ext <<_ACEOF 19026 /* end confdefs.h. */ 19027 19028 /* Override any GCC internal prototype to avoid an error. 19029 Use char because int might match the return type of a GCC 19030 builtin and then its argument prototype would still apply. */ 19031 #ifdef __cplusplus 19032 extern "C" 19033 #endif 19034 char __cmpdi2 (); 19035 int 19036 main () 19037 { 19038 return __cmpdi2 (); 19039 ; 19040 return 0; 19041 } 19042 _ACEOF 19043 rm -f conftest.$ac_objext conftest$ac_exeext 19044 if { (ac_try="$ac_link" 19045 case "(($ac_try" in 19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19047 *) ac_try_echo=$ac_try;; 19048 esac 19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19050 (eval "$ac_link") 2>conftest.er1 19051 ac_status=$? 19052 grep -v '^ *+' conftest.er1 >conftest.err 19053 rm -f conftest.er1 19054 cat conftest.err >&5 19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19056 (exit $ac_status); } && 19057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19058 { (case "(($ac_try" in 19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19060 *) ac_try_echo=$ac_try;; 19061 esac 19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19063 (eval "$ac_try") 2>&5 19064 ac_status=$? 19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19066 (exit $ac_status); }; } && 19067 { ac_try='test -s conftest$ac_exeext' 19068 { (case "(($ac_try" in 19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19070 *) ac_try_echo=$ac_try;; 19071 esac 19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19073 (eval "$ac_try") 2>&5 19074 ac_status=$? 19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19076 (exit $ac_status); }; }; then 19077 ac_cv_lib_gcc___cmpdi2=yes 19078 else 19079 echo "$as_me: failed program was:" >&5 19080 sed 's/^/| /' conftest.$ac_ext >&5 19081 19082 ac_cv_lib_gcc___cmpdi2=no 19083 fi 19084 19085 rm -f core conftest.err conftest.$ac_objext \ 19086 conftest$ac_exeext conftest.$ac_ext 19087 LIBS=$ac_check_lib_save_LIBS 19088 fi 19089 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19090 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19091 if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19092 19093 cat >>confdefs.h <<\_ACEOF 19094 #define HAVE___CMPDI2 1 19095 _ACEOF 19096 19097 fi 19098 19099 fi 19100 19101 if test "$llvm_cv_os_type" = "MingW" ; then 19102 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19103 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19104 cat >conftest.$ac_ext <<_ACEOF 19105 #include <windows.h> 19106 #include <imagehlp.h> 19107 extern void foo(PENUMLOADED_MODULES_CALLBACK); 19108 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19109 _ACEOF 19110 rm -f conftest.$ac_objext 19111 if { (ac_try="$ac_compile" 19112 case "(($ac_try" in 19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19114 *) ac_try_echo=$ac_try;; 19115 esac 19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19117 (eval "$ac_compile") 2>conftest.er1 19118 ac_status=$? 19119 grep -v '^ *+' conftest.er1 >conftest.err 19120 rm -f conftest.er1 19121 cat conftest.err >&5 19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19123 (exit $ac_status); } && 19124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19125 { (case "(($ac_try" in 19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19127 *) ac_try_echo=$ac_try;; 19128 esac 19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19130 (eval "$ac_try") 2>&5 19131 ac_status=$? 19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19133 (exit $ac_status); }; } && 19134 { ac_try='test -s conftest.$ac_objext' 19135 { (case "(($ac_try" in 19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19137 *) ac_try_echo=$ac_try;; 19138 esac 19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19140 (eval "$ac_try") 2>&5 19141 ac_status=$? 19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19143 (exit $ac_status); }; }; then 19144 19145 { echo "$as_me:$LINENO: result: yes" >&5 19146 echo "${ECHO_T}yes" >&6; } 19147 llvm_cv_win32_elmcb_pcstr="PCSTR" 19148 19149 else 19150 echo "$as_me: failed program was:" >&5 19151 sed 's/^/| /' conftest.$ac_ext >&5 19152 19153 19154 { echo "$as_me:$LINENO: result: no" >&5 19155 echo "${ECHO_T}no" >&6; } 19156 llvm_cv_win32_elmcb_pcstr="PSTR" 19157 19158 fi 19159 19160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19161 19162 cat >>confdefs.h <<_ACEOF 19163 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19164 _ACEOF 19165 19166 fi 19167 19168 19169 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19170 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19171 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19172 echo $ECHO_N "(cached) $ECHO_C" >&6 19173 else 19174 ac_ext=cpp 19175 ac_cpp='$CXXCPP $CPPFLAGS' 19176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19179 19180 cat >conftest.$ac_ext <<_ACEOF 19181 /* confdefs.h. */ 19182 _ACEOF 19183 cat confdefs.h >>conftest.$ac_ext 19184 cat >>conftest.$ac_ext <<_ACEOF 19185 /* end confdefs.h. */ 19186 #include <math.h> 19187 int 19188 main () 19189 { 19190 float f; isnan(f); 19191 ; 19192 return 0; 19193 } 19194 _ACEOF 19195 rm -f conftest.$ac_objext 19196 if { (ac_try="$ac_compile" 19197 case "(($ac_try" in 19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19199 *) ac_try_echo=$ac_try;; 19200 esac 19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19202 (eval "$ac_compile") 2>conftest.er1 19203 ac_status=$? 19204 grep -v '^ *+' conftest.er1 >conftest.err 19205 rm -f conftest.er1 19206 cat conftest.err >&5 19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19208 (exit $ac_status); } && 19209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19210 { (case "(($ac_try" in 19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19212 *) ac_try_echo=$ac_try;; 19213 esac 19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19215 (eval "$ac_try") 2>&5 19216 ac_status=$? 19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19218 (exit $ac_status); }; } && 19219 { ac_try='test -s conftest.$ac_objext' 19220 { (case "(($ac_try" in 19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19222 *) ac_try_echo=$ac_try;; 19223 esac 19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19225 (eval "$ac_try") 2>&5 19226 ac_status=$? 19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19228 (exit $ac_status); }; }; then 19229 ac_cv_func_isnan_in_math_h=yes 19230 else 19231 echo "$as_me: failed program was:" >&5 19232 sed 's/^/| /' conftest.$ac_ext >&5 19233 19234 ac_cv_func_isnan_in_math_h=no 19235 fi 19236 19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19238 ac_ext=c 19239 ac_cpp='$CPP $CPPFLAGS' 19240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19242 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19243 19244 fi 19245 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19246 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19247 19248 19249 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19250 19251 cat >>confdefs.h <<\_ACEOF 19252 #define HAVE_ISNAN_IN_MATH_H 1 19253 _ACEOF 19254 19255 fi 19256 19257 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19258 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19259 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19260 echo $ECHO_N "(cached) $ECHO_C" >&6 19261 else 19262 ac_ext=cpp 19263 ac_cpp='$CXXCPP $CPPFLAGS' 19264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19267 19268 cat >conftest.$ac_ext <<_ACEOF 19269 /* confdefs.h. */ 19270 _ACEOF 19271 cat confdefs.h >>conftest.$ac_ext 19272 cat >>conftest.$ac_ext <<_ACEOF 19273 /* end confdefs.h. */ 19274 #include <cmath> 19275 int 19276 main () 19277 { 19278 float f; isnan(f); 19279 ; 19280 return 0; 19281 } 19282 _ACEOF 19283 rm -f conftest.$ac_objext 19284 if { (ac_try="$ac_compile" 19285 case "(($ac_try" in 19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19287 *) ac_try_echo=$ac_try;; 19288 esac 19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19290 (eval "$ac_compile") 2>conftest.er1 19291 ac_status=$? 19292 grep -v '^ *+' conftest.er1 >conftest.err 19293 rm -f conftest.er1 19294 cat conftest.err >&5 19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19296 (exit $ac_status); } && 19297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19298 { (case "(($ac_try" in 19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19300 *) ac_try_echo=$ac_try;; 19301 esac 19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19303 (eval "$ac_try") 2>&5 19304 ac_status=$? 19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19306 (exit $ac_status); }; } && 19307 { ac_try='test -s conftest.$ac_objext' 19308 { (case "(($ac_try" in 19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19310 *) ac_try_echo=$ac_try;; 19311 esac 19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19313 (eval "$ac_try") 2>&5 19314 ac_status=$? 19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19316 (exit $ac_status); }; }; then 19317 ac_cv_func_isnan_in_cmath=yes 19318 else 19319 echo "$as_me: failed program was:" >&5 19320 sed 's/^/| /' conftest.$ac_ext >&5 19321 19322 ac_cv_func_isnan_in_cmath=no 19323 fi 19324 19325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19326 ac_ext=c 19327 ac_cpp='$CPP $CPPFLAGS' 19328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19330 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19331 19332 fi 19333 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 19334 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 19335 19336 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 19337 19338 cat >>confdefs.h <<\_ACEOF 19339 #define HAVE_ISNAN_IN_CMATH 1 19340 _ACEOF 19341 19342 fi 19343 19344 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 19345 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 19346 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 19347 echo $ECHO_N "(cached) $ECHO_C" >&6 19348 else 19349 ac_ext=cpp 19350 ac_cpp='$CXXCPP $CPPFLAGS' 19351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19354 19355 cat >conftest.$ac_ext <<_ACEOF 19356 /* confdefs.h. */ 19357 _ACEOF 19358 cat confdefs.h >>conftest.$ac_ext 19359 cat >>conftest.$ac_ext <<_ACEOF 19360 /* end confdefs.h. */ 19361 #include <cmath> 19362 int 19363 main () 19364 { 19365 float f; std::isnan(f); 19366 ; 19367 return 0; 19368 } 19369 _ACEOF 19370 rm -f conftest.$ac_objext 19371 if { (ac_try="$ac_compile" 19372 case "(($ac_try" in 19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19374 *) ac_try_echo=$ac_try;; 19375 esac 19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19377 (eval "$ac_compile") 2>conftest.er1 19378 ac_status=$? 19379 grep -v '^ *+' conftest.er1 >conftest.err 19380 rm -f conftest.er1 19381 cat conftest.err >&5 19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19383 (exit $ac_status); } && 19384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19385 { (case "(($ac_try" in 19386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19387 *) ac_try_echo=$ac_try;; 19388 esac 19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19390 (eval "$ac_try") 2>&5 19391 ac_status=$? 19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19393 (exit $ac_status); }; } && 19394 { ac_try='test -s conftest.$ac_objext' 19395 { (case "(($ac_try" in 19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19397 *) ac_try_echo=$ac_try;; 19398 esac 19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19400 (eval "$ac_try") 2>&5 19401 ac_status=$? 19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19403 (exit $ac_status); }; }; then 19404 ac_cv_func_std_isnan_in_cmath=yes 19405 else 19406 echo "$as_me: failed program was:" >&5 19407 sed 's/^/| /' conftest.$ac_ext >&5 19408 19409 ac_cv_func_std_isnan_in_cmath=no 19410 fi 19411 19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19413 ac_ext=c 19414 ac_cpp='$CPP $CPPFLAGS' 19415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19417 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19418 19419 fi 19420 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 19421 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 19422 19423 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 19424 19425 cat >>confdefs.h <<\_ACEOF 19426 #define HAVE_STD_ISNAN_IN_CMATH 1 19427 _ACEOF 19428 19429 fi 19430 19431 19432 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 19433 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 19434 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 19435 echo $ECHO_N "(cached) $ECHO_C" >&6 19436 else 19437 ac_ext=cpp 19438 ac_cpp='$CXXCPP $CPPFLAGS' 19439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19442 19443 cat >conftest.$ac_ext <<_ACEOF 19444 /* confdefs.h. */ 19445 _ACEOF 19446 cat confdefs.h >>conftest.$ac_ext 19447 cat >>conftest.$ac_ext <<_ACEOF 19448 /* end confdefs.h. */ 19449 #include <math.h> 19450 int 19451 main () 19452 { 19453 float f; isinf(f); 19454 ; 19455 return 0; 19456 } 19457 _ACEOF 19458 rm -f conftest.$ac_objext 19459 if { (ac_try="$ac_compile" 19460 case "(($ac_try" in 19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19462 *) ac_try_echo=$ac_try;; 19463 esac 19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19465 (eval "$ac_compile") 2>conftest.er1 19466 ac_status=$? 19467 grep -v '^ *+' conftest.er1 >conftest.err 19468 rm -f conftest.er1 19469 cat conftest.err >&5 19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19471 (exit $ac_status); } && 19472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19473 { (case "(($ac_try" in 19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19475 *) ac_try_echo=$ac_try;; 19476 esac 19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19478 (eval "$ac_try") 2>&5 19479 ac_status=$? 19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19481 (exit $ac_status); }; } && 19482 { ac_try='test -s conftest.$ac_objext' 19483 { (case "(($ac_try" in 19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19485 *) ac_try_echo=$ac_try;; 19486 esac 19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19488 (eval "$ac_try") 2>&5 19489 ac_status=$? 19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19491 (exit $ac_status); }; }; then 19492 ac_cv_func_isinf_in_math_h=yes 19493 else 19494 echo "$as_me: failed program was:" >&5 19495 sed 's/^/| /' conftest.$ac_ext >&5 19496 19497 ac_cv_func_isinf_in_math_h=no 19498 fi 19499 19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19501 ac_ext=c 19502 ac_cpp='$CPP $CPPFLAGS' 19503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19505 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19506 19507 fi 19508 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 19509 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 19510 19511 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 19512 19513 cat >>confdefs.h <<\_ACEOF 19514 #define HAVE_ISINF_IN_MATH_H 1 19515 _ACEOF 19516 19517 fi 19518 19519 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 19520 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 19521 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 19522 echo $ECHO_N "(cached) $ECHO_C" >&6 19523 else 19524 ac_ext=cpp 19525 ac_cpp='$CXXCPP $CPPFLAGS' 19526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19529 19530 cat >conftest.$ac_ext <<_ACEOF 19531 /* confdefs.h. */ 19532 _ACEOF 19533 cat confdefs.h >>conftest.$ac_ext 19534 cat >>conftest.$ac_ext <<_ACEOF 19535 /* end confdefs.h. */ 19536 #include <cmath> 19537 int 19538 main () 19539 { 19540 float f; isinf(f); 19541 ; 19542 return 0; 19543 } 19544 _ACEOF 19545 rm -f conftest.$ac_objext 19546 if { (ac_try="$ac_compile" 19547 case "(($ac_try" in 19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19549 *) ac_try_echo=$ac_try;; 19550 esac 19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19552 (eval "$ac_compile") 2>conftest.er1 19553 ac_status=$? 19554 grep -v '^ *+' conftest.er1 >conftest.err 19555 rm -f conftest.er1 19556 cat conftest.err >&5 19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19558 (exit $ac_status); } && 19559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19560 { (case "(($ac_try" in 19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19562 *) ac_try_echo=$ac_try;; 19563 esac 19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19565 (eval "$ac_try") 2>&5 19566 ac_status=$? 19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19568 (exit $ac_status); }; } && 19569 { ac_try='test -s conftest.$ac_objext' 19570 { (case "(($ac_try" in 19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19572 *) ac_try_echo=$ac_try;; 19573 esac 19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19575 (eval "$ac_try") 2>&5 19576 ac_status=$? 19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19578 (exit $ac_status); }; }; then 19579 ac_cv_func_isinf_in_cmath=yes 19580 else 19581 echo "$as_me: failed program was:" >&5 19582 sed 's/^/| /' conftest.$ac_ext >&5 19583 19584 ac_cv_func_isinf_in_cmath=no 19585 fi 19586 19587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19588 ac_ext=c 19589 ac_cpp='$CPP $CPPFLAGS' 19590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19592 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19593 19594 fi 19595 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 19596 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 19597 19598 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 19599 19600 cat >>confdefs.h <<\_ACEOF 19601 #define HAVE_ISINF_IN_CMATH 1 19602 _ACEOF 19603 19604 fi 19605 19606 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 19607 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 19608 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 19609 echo $ECHO_N "(cached) $ECHO_C" >&6 19610 else 19611 ac_ext=cpp 19612 ac_cpp='$CXXCPP $CPPFLAGS' 19613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19616 19617 cat >conftest.$ac_ext <<_ACEOF 19618 /* confdefs.h. */ 19619 _ACEOF 19620 cat confdefs.h >>conftest.$ac_ext 19621 cat >>conftest.$ac_ext <<_ACEOF 19622 /* end confdefs.h. */ 19623 #include <cmath> 19624 int 19625 main () 19626 { 19627 float f; std::isinf(f); 19628 ; 19629 return 0; 19630 } 19631 _ACEOF 19632 rm -f conftest.$ac_objext 19633 if { (ac_try="$ac_compile" 19634 case "(($ac_try" in 19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19636 *) ac_try_echo=$ac_try;; 19637 esac 19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19639 (eval "$ac_compile") 2>conftest.er1 19640 ac_status=$? 19641 grep -v '^ *+' conftest.er1 >conftest.err 19642 rm -f conftest.er1 19643 cat conftest.err >&5 19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19645 (exit $ac_status); } && 19646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19647 { (case "(($ac_try" in 19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19649 *) ac_try_echo=$ac_try;; 19650 esac 19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19652 (eval "$ac_try") 2>&5 19653 ac_status=$? 19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19655 (exit $ac_status); }; } && 19656 { ac_try='test -s conftest.$ac_objext' 19657 { (case "(($ac_try" in 19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19659 *) ac_try_echo=$ac_try;; 19660 esac 19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19662 (eval "$ac_try") 2>&5 19663 ac_status=$? 19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19665 (exit $ac_status); }; }; then 19666 ac_cv_func_std_isinf_in_cmath=yes 19667 else 19668 echo "$as_me: failed program was:" >&5 19669 sed 's/^/| /' conftest.$ac_ext >&5 19670 19671 ac_cv_func_std_isinf_in_cmath=no 19672 fi 19673 19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19675 ac_ext=c 19676 ac_cpp='$CPP $CPPFLAGS' 19677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19679 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19680 19681 fi 19682 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 19683 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 19684 19685 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 19686 19687 cat >>confdefs.h <<\_ACEOF 19688 #define HAVE_STD_ISINF_IN_CMATH 1 19689 _ACEOF 19690 19691 fi 19692 19693 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 19694 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 19695 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 19696 echo $ECHO_N "(cached) $ECHO_C" >&6 19697 else 19698 ac_ext=cpp 19699 ac_cpp='$CXXCPP $CPPFLAGS' 19700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19703 19704 cat >conftest.$ac_ext <<_ACEOF 19705 /* confdefs.h. */ 19706 _ACEOF 19707 cat confdefs.h >>conftest.$ac_ext 19708 cat >>conftest.$ac_ext <<_ACEOF 19709 /* end confdefs.h. */ 19710 #include <ieeefp.h> 19711 int 19712 main () 19713 { 19714 float f; finite(f); 19715 ; 19716 return 0; 19717 } 19718 _ACEOF 19719 rm -f conftest.$ac_objext 19720 if { (ac_try="$ac_compile" 19721 case "(($ac_try" in 19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19723 *) ac_try_echo=$ac_try;; 19724 esac 19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19726 (eval "$ac_compile") 2>conftest.er1 19727 ac_status=$? 19728 grep -v '^ *+' conftest.er1 >conftest.err 19729 rm -f conftest.er1 19730 cat conftest.err >&5 19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19732 (exit $ac_status); } && 19733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19734 { (case "(($ac_try" in 19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19736 *) ac_try_echo=$ac_try;; 19737 esac 19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19739 (eval "$ac_try") 2>&5 19740 ac_status=$? 19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19742 (exit $ac_status); }; } && 19743 { ac_try='test -s conftest.$ac_objext' 19744 { (case "(($ac_try" in 19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19746 *) ac_try_echo=$ac_try;; 19747 esac 19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19749 (eval "$ac_try") 2>&5 19750 ac_status=$? 19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19752 (exit $ac_status); }; }; then 19753 ac_cv_func_finite_in_ieeefp_h=yes 19754 else 19755 echo "$as_me: failed program was:" >&5 19756 sed 's/^/| /' conftest.$ac_ext >&5 19757 19758 ac_cv_func_finite_in_ieeefp_h=no 19759 fi 19760 19761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19762 ac_ext=c 19763 ac_cpp='$CPP $CPPFLAGS' 19764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19766 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19767 19768 fi 19769 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 19770 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 19771 19772 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 19773 19774 cat >>confdefs.h <<\_ACEOF 19775 #define HAVE_FINITE_IN_IEEEFP_H 1 19776 _ACEOF 19777 19778 fi 19779 19780 19781 19782 if test "$llvm_cv_platform_type" = "Unix" ; then 19783 19784 19785 for ac_header in stdlib.h unistd.h 19786 do 19787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19789 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19792 echo $ECHO_N "(cached) $ECHO_C" >&6 19793 fi 19794 ac_res=`eval echo '${'$as_ac_Header'}'` 19795 { echo "$as_me:$LINENO: result: $ac_res" >&5 19796 echo "${ECHO_T}$ac_res" >&6; } 19797 else 19798 # Is the header compilable? 19799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 19800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19801 cat >conftest.$ac_ext <<_ACEOF 19802 /* confdefs.h. */ 19803 _ACEOF 19804 cat confdefs.h >>conftest.$ac_ext 19805 cat >>conftest.$ac_ext <<_ACEOF 19806 /* end confdefs.h. */ 19807 $ac_includes_default 19808 #include <$ac_header> 19809 _ACEOF 19810 rm -f conftest.$ac_objext 19811 if { (ac_try="$ac_compile" 19812 case "(($ac_try" in 19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19814 *) ac_try_echo=$ac_try;; 19815 esac 19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19817 (eval "$ac_compile") 2>conftest.er1 19818 ac_status=$? 19819 grep -v '^ *+' conftest.er1 >conftest.err 19820 rm -f conftest.er1 19821 cat conftest.err >&5 19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19823 (exit $ac_status); } && 19824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19825 { (case "(($ac_try" in 19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19827 *) ac_try_echo=$ac_try;; 19828 esac 19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19830 (eval "$ac_try") 2>&5 19831 ac_status=$? 19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19833 (exit $ac_status); }; } && 19834 { ac_try='test -s conftest.$ac_objext' 19835 { (case "(($ac_try" in 19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19837 *) ac_try_echo=$ac_try;; 19838 esac 19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19840 (eval "$ac_try") 2>&5 19841 ac_status=$? 19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19843 (exit $ac_status); }; }; then 19844 ac_header_compiler=yes 19845 else 19846 echo "$as_me: failed program was:" >&5 19847 sed 's/^/| /' conftest.$ac_ext >&5 19848 19849 ac_header_compiler=no 19850 fi 19851 19852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19854 echo "${ECHO_T}$ac_header_compiler" >&6; } 19855 19856 # Is the header present? 19857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 19858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19859 cat >conftest.$ac_ext <<_ACEOF 19860 /* confdefs.h. */ 19861 _ACEOF 19862 cat confdefs.h >>conftest.$ac_ext 19863 cat >>conftest.$ac_ext <<_ACEOF 19864 /* end confdefs.h. */ 19865 #include <$ac_header> 19866 _ACEOF 19867 if { (ac_try="$ac_cpp conftest.$ac_ext" 19868 case "(($ac_try" in 19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19870 *) ac_try_echo=$ac_try;; 19871 esac 19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19874 ac_status=$? 19875 grep -v '^ *+' conftest.er1 >conftest.err 19876 rm -f conftest.er1 19877 cat conftest.err >&5 19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19879 (exit $ac_status); } >/dev/null; then 19880 if test -s conftest.err; then 19881 ac_cpp_err=$ac_c_preproc_warn_flag 19882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19883 else 19884 ac_cpp_err= 19885 fi 19886 else 19887 ac_cpp_err=yes 19888 fi 19889 if test -z "$ac_cpp_err"; then 19890 ac_header_preproc=yes 19891 else 19892 echo "$as_me: failed program was:" >&5 19893 sed 's/^/| /' conftest.$ac_ext >&5 19894 19895 ac_header_preproc=no 19896 fi 19897 19898 rm -f conftest.err conftest.$ac_ext 19899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19900 echo "${ECHO_T}$ac_header_preproc" >&6; } 19901 19902 # So? What about this header? 19903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19904 yes:no: ) 19905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19909 ac_header_preproc=yes 19910 ;; 19911 no:yes:* ) 19912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19924 ( cat <<\_ASBOX 19925 ## ------------------------------ ## 19926 ## Report this to bugs@yourdomain ## 19927 ## ------------------------------ ## 19928 _ASBOX 19929 ) | sed "s/^/$as_me: WARNING: /" >&2 19930 ;; 19931 esac 19932 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19935 echo $ECHO_N "(cached) $ECHO_C" >&6 19936 else 19937 eval "$as_ac_Header=\$ac_header_preproc" 19938 fi 19939 ac_res=`eval echo '${'$as_ac_Header'}'` 19940 { echo "$as_me:$LINENO: result: $ac_res" >&5 19941 echo "${ECHO_T}$ac_res" >&6; } 19942 19943 fi 19944 if test `eval echo '${'$as_ac_Header'}'` = yes; then 19945 cat >>confdefs.h <<_ACEOF 19946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19947 _ACEOF 19948 19949 fi 19950 19951 done 19952 19953 19954 for ac_func in getpagesize 19955 do 19956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19957 { echo "$as_me:$LINENO: checking for $ac_func" >&5 19958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 19959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 19960 echo $ECHO_N "(cached) $ECHO_C" >&6 19961 else 19962 cat >conftest.$ac_ext <<_ACEOF 19963 /* confdefs.h. */ 19964 _ACEOF 19965 cat confdefs.h >>conftest.$ac_ext 19966 cat >>conftest.$ac_ext <<_ACEOF 19967 /* end confdefs.h. */ 19968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19970 #define $ac_func innocuous_$ac_func 19971 19972 /* System header to define __stub macros and hopefully few prototypes, 19973 which can conflict with char $ac_func (); below. 19974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19975 <limits.h> exists even on freestanding compilers. */ 19976 19977 #ifdef __STDC__ 19978 # include <limits.h> 19979 #else 19980 # include <assert.h> 19981 #endif 19982 19983 #undef $ac_func 19984 19985 /* Override any GCC internal prototype to avoid an error. 19986 Use char because int might match the return type of a GCC 19987 builtin and then its argument prototype would still apply. */ 19988 #ifdef __cplusplus 19989 extern "C" 19990 #endif 19991 char $ac_func (); 19992 /* The GNU C library defines this for functions which it implements 19993 to always fail with ENOSYS. Some functions are actually named 19994 something starting with __ and the normal name is an alias. */ 19995 #if defined __stub_$ac_func || defined __stub___$ac_func 19996 choke me 19997 #endif 19998 19999 int 20000 main () 20001 { 20002 return $ac_func (); 20003 ; 20004 return 0; 20005 } 20006 _ACEOF 20007 rm -f conftest.$ac_objext conftest$ac_exeext 20008 if { (ac_try="$ac_link" 20009 case "(($ac_try" in 20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20011 *) ac_try_echo=$ac_try;; 20012 esac 20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20014 (eval "$ac_link") 2>conftest.er1 20015 ac_status=$? 20016 grep -v '^ *+' conftest.er1 >conftest.err 20017 rm -f conftest.er1 20018 cat conftest.err >&5 20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20020 (exit $ac_status); } && 20021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20022 { (case "(($ac_try" in 20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20024 *) ac_try_echo=$ac_try;; 20025 esac 20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20027 (eval "$ac_try") 2>&5 20028 ac_status=$? 20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20030 (exit $ac_status); }; } && 20031 { ac_try='test -s conftest$ac_exeext' 20032 { (case "(($ac_try" in 20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20034 *) ac_try_echo=$ac_try;; 20035 esac 20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20037 (eval "$ac_try") 2>&5 20038 ac_status=$? 20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20040 (exit $ac_status); }; }; then 20041 eval "$as_ac_var=yes" 20042 else 20043 echo "$as_me: failed program was:" >&5 20044 sed 's/^/| /' conftest.$ac_ext >&5 20045 20046 eval "$as_ac_var=no" 20047 fi 20048 20049 rm -f core conftest.err conftest.$ac_objext \ 20050 conftest$ac_exeext conftest.$ac_ext 20051 fi 20052 ac_res=`eval echo '${'$as_ac_var'}'` 20053 { echo "$as_me:$LINENO: result: $ac_res" >&5 20054 echo "${ECHO_T}$ac_res" >&6; } 20055 if test `eval echo '${'$as_ac_var'}'` = yes; then 20056 cat >>confdefs.h <<_ACEOF 20057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20058 _ACEOF 20059 20060 fi 20061 done 20062 20063 { echo "$as_me:$LINENO: checking for working mmap" >&5 20064 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20065 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20066 echo $ECHO_N "(cached) $ECHO_C" >&6 20067 else 20068 if test "$cross_compiling" = yes; then 20069 ac_cv_func_mmap_fixed_mapped=no 20070 else 20071 cat >conftest.$ac_ext <<_ACEOF 20072 /* confdefs.h. */ 20073 _ACEOF 20074 cat confdefs.h >>conftest.$ac_ext 20075 cat >>conftest.$ac_ext <<_ACEOF 20076 /* end confdefs.h. */ 20077 $ac_includes_default 20078 /* malloc might have been renamed as rpl_malloc. */ 20079 #undef malloc 20080 20081 /* Thanks to Mike Haertel and Jim Avera for this test. 20082 Here is a matrix of mmap possibilities: 20083 mmap private not fixed 20084 mmap private fixed at somewhere currently unmapped 20085 mmap private fixed at somewhere already mapped 20086 mmap shared not fixed 20087 mmap shared fixed at somewhere currently unmapped 20088 mmap shared fixed at somewhere already mapped 20089 For private mappings, we should verify that changes cannot be read() 20090 back from the file, nor mmap's back from the file at a different 20091 address. (There have been systems where private was not correctly 20092 implemented like the infamous i386 svr4.0, and systems where the 20093 VM page cache was not coherent with the file system buffer cache 20094 like early versions of FreeBSD and possibly contemporary NetBSD.) 20095 For shared mappings, we should conversely verify that changes get 20096 propagated back to all the places they're supposed to be. 20097 20098 Grep wants private fixed already mapped. 20099 The main things grep needs to know about mmap are: 20100 * does it exist and is it safe to write into the mmap'd area 20101 * how to use it (BSD variants) */ 20102 20103 #include <fcntl.h> 20104 #include <sys/mman.h> 20105 20106 #if !STDC_HEADERS && !HAVE_STDLIB_H 20107 char *malloc (); 20108 #endif 20109 20110 /* This mess was copied from the GNU getpagesize.h. */ 20111 #if !HAVE_GETPAGESIZE 20112 /* Assume that all systems that can run configure have sys/param.h. */ 20113 # if !HAVE_SYS_PARAM_H 20114 # define HAVE_SYS_PARAM_H 1 20115 # endif 20116 20117 # ifdef _SC_PAGESIZE 20118 # define getpagesize() sysconf(_SC_PAGESIZE) 20119 # else /* no _SC_PAGESIZE */ 20120 # if HAVE_SYS_PARAM_H 20121 # include <sys/param.h> 20122 # ifdef EXEC_PAGESIZE 20123 # define getpagesize() EXEC_PAGESIZE 20124 # else /* no EXEC_PAGESIZE */ 20125 # ifdef NBPG 20126 # define getpagesize() NBPG * CLSIZE 20127 # ifndef CLSIZE 20128 # define CLSIZE 1 20129 # endif /* no CLSIZE */ 20130 # else /* no NBPG */ 20131 # ifdef NBPC 20132 # define getpagesize() NBPC 20133 # else /* no NBPC */ 20134 # ifdef PAGESIZE 20135 # define getpagesize() PAGESIZE 20136 # endif /* PAGESIZE */ 20137 # endif /* no NBPC */ 20138 # endif /* no NBPG */ 20139 # endif /* no EXEC_PAGESIZE */ 20140 # else /* no HAVE_SYS_PARAM_H */ 20141 # define getpagesize() 8192 /* punt totally */ 20142 # endif /* no HAVE_SYS_PARAM_H */ 20143 # endif /* no _SC_PAGESIZE */ 20144 20145 #endif /* no HAVE_GETPAGESIZE */ 20146 20147 int 20148 main () 20149 { 20150 char *data, *data2, *data3; 20151 int i, pagesize; 20152 int fd; 20153 20154 pagesize = getpagesize (); 20155 20156 /* First, make a file with some known garbage in it. */ 20157 data = (char *) malloc (pagesize); 20158 if (!data) 20159 return 1; 20160 for (i = 0; i < pagesize; ++i) 20161 *(data + i) = rand (); 20162 umask (0); 20163 fd = creat ("conftest.mmap", 0600); 20164 if (fd < 0) 20165 return 1; 20166 if (write (fd, data, pagesize) != pagesize) 20167 return 1; 20168 close (fd); 20169 20170 /* Next, try to mmap the file at a fixed address which already has 20171 something else allocated at it. If we can, also make sure that 20172 we see the same garbage. */ 20173 fd = open ("conftest.mmap", O_RDWR); 20174 if (fd < 0) 20175 return 1; 20176 data2 = (char *) malloc (2 * pagesize); 20177 if (!data2) 20178 return 1; 20179 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20180 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20181 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20182 return 1; 20183 for (i = 0; i < pagesize; ++i) 20184 if (*(data + i) != *(data2 + i)) 20185 return 1; 20186 20187 /* Finally, make sure that changes to the mapped area do not 20188 percolate back to the file as seen by read(). (This is a bug on 20189 some variants of i386 svr4.0.) */ 20190 for (i = 0; i < pagesize; ++i) 20191 *(data2 + i) = *(data2 + i) + 1; 20192 data3 = (char *) malloc (pagesize); 20193 if (!data3) 20194 return 1; 20195 if (read (fd, data3, pagesize) != pagesize) 20196 return 1; 20197 for (i = 0; i < pagesize; ++i) 20198 if (*(data + i) != *(data3 + i)) 20199 return 1; 20200 close (fd); 20201 return 0; 20202 } 20203 _ACEOF 20204 rm -f conftest$ac_exeext 20205 if { (ac_try="$ac_link" 20206 case "(($ac_try" in 20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20208 *) ac_try_echo=$ac_try;; 20209 esac 20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20211 (eval "$ac_link") 2>&5 20212 ac_status=$? 20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20215 { (case "(($ac_try" in 20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20217 *) ac_try_echo=$ac_try;; 20218 esac 20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20220 (eval "$ac_try") 2>&5 20221 ac_status=$? 20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20223 (exit $ac_status); }; }; then 20224 ac_cv_func_mmap_fixed_mapped=yes 20225 else 20226 echo "$as_me: program exited with status $ac_status" >&5 20227 echo "$as_me: failed program was:" >&5 20228 sed 's/^/| /' conftest.$ac_ext >&5 20229 20230 ( exit $ac_status ) 20231 ac_cv_func_mmap_fixed_mapped=no 20232 fi 20233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20234 fi 20235 20236 20237 fi 20238 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20239 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20240 if test $ac_cv_func_mmap_fixed_mapped = yes; then 20241 20242 cat >>confdefs.h <<\_ACEOF 20243 #define HAVE_MMAP 1 20244 _ACEOF 20245 20246 fi 20247 rm -f conftest.mmap 20248 20249 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20250 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20251 if test "${ac_cv_func_mmap_file+set}" = set; then 20252 echo $ECHO_N "(cached) $ECHO_C" >&6 20253 else 20254 ac_ext=c 20255 ac_cpp='$CPP $CPPFLAGS' 20256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20258 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20259 20260 if test "$cross_compiling" = yes; then 20261 ac_cv_func_mmap_file=no 20262 else 20263 cat >conftest.$ac_ext <<_ACEOF 20264 20265 /* confdefs.h. */ 20266 _ACEOF 20267 cat confdefs.h >>conftest.$ac_ext 20268 cat >>conftest.$ac_ext <<_ACEOF 20269 /* end confdefs.h. */ 20270 20271 #include <sys/types.h> 20272 #include <sys/mman.h> 20273 #include <fcntl.h> 20274 20275 int 20276 main () 20277 { 20278 20279 int fd; 20280 fd = creat ("foo",0777); 20281 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20282 unlink ("foo"); 20283 return (fd != (int) MAP_FAILED); 20284 ; 20285 return 0; 20286 } 20287 _ACEOF 20288 rm -f conftest$ac_exeext 20289 if { (ac_try="$ac_link" 20290 case "(($ac_try" in 20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20292 *) ac_try_echo=$ac_try;; 20293 esac 20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20295 (eval "$ac_link") 2>&5 20296 ac_status=$? 20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20299 { (case "(($ac_try" in 20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20301 *) ac_try_echo=$ac_try;; 20302 esac 20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20304 (eval "$ac_try") 2>&5 20305 ac_status=$? 20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20307 (exit $ac_status); }; }; then 20308 ac_cv_func_mmap_file=yes 20309 else 20310 echo "$as_me: program exited with status $ac_status" >&5 20311 echo "$as_me: failed program was:" >&5 20312 sed 's/^/| /' conftest.$ac_ext >&5 20313 20314 ( exit $ac_status ) 20315 ac_cv_func_mmap_file=no 20316 fi 20317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20318 fi 20319 20320 20321 ac_ext=c 20322 ac_cpp='$CPP $CPPFLAGS' 20323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20325 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20326 20327 20328 fi 20329 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 20330 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 20331 if test "$ac_cv_func_mmap_file" = yes; then 20332 20333 cat >>confdefs.h <<\_ACEOF 20334 #define HAVE_MMAP_FILE 20335 _ACEOF 20336 20337 MMAP_FILE=yes 20338 20339 fi 20340 20341 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 20342 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 20343 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 20344 echo $ECHO_N "(cached) $ECHO_C" >&6 20345 else 20346 if test "$llvm_cv_os_type" = "Interix" ; then 20347 ac_cv_need_dev_zero_for_mmap=yes 20348 else 20349 ac_cv_need_dev_zero_for_mmap=no 20350 fi 20351 20352 fi 20353 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 20354 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 20355 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 20356 20357 cat >>confdefs.h <<\_ACEOF 20358 #define NEED_DEV_ZERO_FOR_MMAP 1 20359 _ACEOF 20360 20361 fi 20362 20363 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 20364 then 20365 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 20366 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 20367 fi 20368 if test "$ac_cv_func_mmap_file" = "no" 20369 then 20370 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 20371 echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 20372 fi 20373 fi 20374 20375 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 20376 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 20377 ac_ext=cpp 20378 ac_cpp='$CXXCPP $CPPFLAGS' 20379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20382 20383 cat >conftest.$ac_ext <<_ACEOF 20384 /* confdefs.h. */ 20385 _ACEOF 20386 cat confdefs.h >>conftest.$ac_ext 20387 cat >>conftest.$ac_ext <<_ACEOF 20388 /* end confdefs.h. */ 20389 int main() { 20390 volatile unsigned long val = 1; 20391 __sync_synchronize(); 20392 __sync_val_compare_and_swap(&val, 1, 0); 20393 __sync_add_and_fetch(&val, 1); 20394 __sync_sub_and_fetch(&val, 1); 20395 return 0; 20396 } 20397 20398 _ACEOF 20399 rm -f conftest.$ac_objext conftest$ac_exeext 20400 if { (ac_try="$ac_link" 20401 case "(($ac_try" in 20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20403 *) ac_try_echo=$ac_try;; 20404 esac 20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20406 (eval "$ac_link") 2>conftest.er1 20407 ac_status=$? 20408 grep -v '^ *+' conftest.er1 >conftest.err 20409 rm -f conftest.er1 20410 cat conftest.err >&5 20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20412 (exit $ac_status); } && 20413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20414 { (case "(($ac_try" in 20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20416 *) ac_try_echo=$ac_try;; 20417 esac 20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20419 (eval "$ac_try") 2>&5 20420 ac_status=$? 20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20422 (exit $ac_status); }; } && 20423 { ac_try='test -s conftest$ac_exeext' 20424 { (case "(($ac_try" in 20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20426 *) ac_try_echo=$ac_try;; 20427 esac 20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20429 (eval "$ac_try") 2>&5 20430 ac_status=$? 20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20432 (exit $ac_status); }; }; then 20433 ac_ext=c 20434 ac_cpp='$CPP $CPPFLAGS' 20435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20437 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20438 20439 { echo "$as_me:$LINENO: result: yes" >&5 20440 echo "${ECHO_T}yes" >&6; } 20441 20442 cat >>confdefs.h <<\_ACEOF 20443 #define LLVM_HAS_ATOMICS 1 20444 _ACEOF 20445 20446 else 20447 echo "$as_me: failed program was:" >&5 20448 sed 's/^/| /' conftest.$ac_ext >&5 20449 20450 { echo "$as_me:$LINENO: result: no" >&5 20451 echo "${ECHO_T}no" >&6; } 20452 20453 cat >>confdefs.h <<\_ACEOF 20454 #define LLVM_HAS_ATOMICS 0 20455 _ACEOF 20456 20457 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 20458 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 20459 fi 20460 20461 rm -f core conftest.err conftest.$ac_objext \ 20462 conftest$ac_exeext conftest.$ac_ext 20463 20464 20465 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 20466 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 20467 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 20468 if test "${llvm_cv_linux_mixed+set}" = set; then 20469 echo $ECHO_N "(cached) $ECHO_C" >&6 20470 else 20471 ac_ext=c 20472 ac_cpp='$CPP $CPPFLAGS' 20473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20475 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20476 20477 cat >conftest.$ac_ext <<_ACEOF 20478 /* confdefs.h. */ 20479 _ACEOF 20480 cat confdefs.h >>conftest.$ac_ext 20481 cat >>conftest.$ac_ext <<_ACEOF 20482 /* end confdefs.h. */ 20483 #ifndef __x86_64__ 20484 error: Not x86-64 even if uname says so! 20485 #endif 20486 20487 int 20488 main () 20489 { 20490 20491 ; 20492 return 0; 20493 } 20494 _ACEOF 20495 rm -f conftest.$ac_objext 20496 if { (ac_try="$ac_compile" 20497 case "(($ac_try" in 20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20499 *) ac_try_echo=$ac_try;; 20500 esac 20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20502 (eval "$ac_compile") 2>conftest.er1 20503 ac_status=$? 20504 grep -v '^ *+' conftest.er1 >conftest.err 20505 rm -f conftest.er1 20506 cat conftest.err >&5 20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20508 (exit $ac_status); } && 20509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20510 { (case "(($ac_try" in 20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20512 *) ac_try_echo=$ac_try;; 20513 esac 20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20515 (eval "$ac_try") 2>&5 20516 ac_status=$? 20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20518 (exit $ac_status); }; } && 20519 { ac_try='test -s conftest.$ac_objext' 20520 { (case "(($ac_try" in 20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20522 *) ac_try_echo=$ac_try;; 20523 esac 20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20525 (eval "$ac_try") 2>&5 20526 ac_status=$? 20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20528 (exit $ac_status); }; }; then 20529 llvm_cv_linux_mixed=no 20530 else 20531 echo "$as_me: failed program was:" >&5 20532 sed 's/^/| /' conftest.$ac_ext >&5 20533 20534 llvm_cv_linux_mixed=yes 20535 fi 20536 20537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20538 ac_ext=c 20539 ac_cpp='$CPP $CPPFLAGS' 20540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20542 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20543 20544 20545 fi 20546 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 20547 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 20548 20549 if test "$llvm_cv_linux_mixed" = "yes"; then 20550 llvm_cv_target_arch="x86" 20551 ARCH="x86" 20552 fi 20553 fi 20554 20555 20556 for ac_func in __dso_handle 20557 do 20558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20559 { echo "$as_me:$LINENO: checking for $ac_func" >&5 20560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20562 echo $ECHO_N "(cached) $ECHO_C" >&6 20563 else 20564 cat >conftest.$ac_ext <<_ACEOF 20565 /* confdefs.h. */ 20566 _ACEOF 20567 cat confdefs.h >>conftest.$ac_ext 20568 cat >>conftest.$ac_ext <<_ACEOF 20569 /* end confdefs.h. */ 20570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20571 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20572 #define $ac_func innocuous_$ac_func 20573 20574 /* System header to define __stub macros and hopefully few prototypes, 20575 which can conflict with char $ac_func (); below. 20576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20577 <limits.h> exists even on freestanding compilers. */ 20578 20579 #ifdef __STDC__ 20580 # include <limits.h> 20581 #else 20582 # include <assert.h> 20583 #endif 20584 20585 #undef $ac_func 20586 20587 /* Override any GCC internal prototype to avoid an error. 20588 Use char because int might match the return type of a GCC 20589 builtin and then its argument prototype would still apply. */ 20590 #ifdef __cplusplus 20591 extern "C" 20592 #endif 20593 char $ac_func (); 20594 /* The GNU C library defines this for functions which it implements 20595 to always fail with ENOSYS. Some functions are actually named 20596 something starting with __ and the normal name is an alias. */ 20597 #if defined __stub_$ac_func || defined __stub___$ac_func 20598 choke me 20599 #endif 20600 20601 int 20602 main () 20603 { 20604 return $ac_func (); 20605 ; 20606 return 0; 20607 } 20608 _ACEOF 20609 rm -f conftest.$ac_objext conftest$ac_exeext 20610 if { (ac_try="$ac_link" 20611 case "(($ac_try" in 20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20613 *) ac_try_echo=$ac_try;; 20614 esac 20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20616 (eval "$ac_link") 2>conftest.er1 20617 ac_status=$? 20618 grep -v '^ *+' conftest.er1 >conftest.err 20619 rm -f conftest.er1 20620 cat conftest.err >&5 20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20622 (exit $ac_status); } && 20623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20624 { (case "(($ac_try" in 20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20626 *) ac_try_echo=$ac_try;; 20627 esac 20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20629 (eval "$ac_try") 2>&5 20630 ac_status=$? 20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20632 (exit $ac_status); }; } && 20633 { ac_try='test -s conftest$ac_exeext' 20634 { (case "(($ac_try" in 20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20636 *) ac_try_echo=$ac_try;; 20637 esac 20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20639 (eval "$ac_try") 2>&5 20640 ac_status=$? 20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20642 (exit $ac_status); }; }; then 20643 eval "$as_ac_var=yes" 20644 else 20645 echo "$as_me: failed program was:" >&5 20646 sed 's/^/| /' conftest.$ac_ext >&5 20647 20648 eval "$as_ac_var=no" 20649 fi 20650 20651 rm -f core conftest.err conftest.$ac_objext \ 20652 conftest$ac_exeext conftest.$ac_ext 20653 fi 20654 ac_res=`eval echo '${'$as_ac_var'}'` 20655 { echo "$as_me:$LINENO: result: $ac_res" >&5 20656 echo "${ECHO_T}$ac_res" >&6; } 20657 if test `eval echo '${'$as_ac_var'}'` = yes; then 20658 cat >>confdefs.h <<_ACEOF 20659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20660 _ACEOF 20661 20662 fi 20663 done 20664 20665 20666 SHLIBEXT=$libltdl_cv_shlibext 20667 20668 20669 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 20670 20671 20672 # Translate the various configuration directories and other basic 20673 # information into substitutions that will end up in Makefile.config.in 20674 # that these configured values can be used by the makefiles 20675 if test "${prefix}" = "NONE" ; then 20676 prefix="/usr/local" 20677 fi 20678 eval LLVM_PREFIX="${prefix}"; 20679 eval LLVM_BINDIR="${prefix}/bin"; 20680 eval LLVM_DATADIR="${prefix}/share/llvm"; 20681 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 20682 eval LLVM_ETCDIR="${prefix}/etc/llvm"; 20683 eval LLVM_INCLUDEDIR="${prefix}/include"; 20684 eval LLVM_INFODIR="${prefix}/info"; 20685 eval LLVM_MANDIR="${prefix}/man"; 20686 LLVM_CONFIGTIME=`date` 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 # Place the various directores into the config.h file as #defines so that we 20698 # can know about the installation paths within LLVM. 20699 20700 cat >>confdefs.h <<_ACEOF 20701 #define LLVM_PREFIX "$LLVM_PREFIX" 20702 _ACEOF 20703 20704 20705 cat >>confdefs.h <<_ACEOF 20706 #define LLVM_BINDIR "$LLVM_BINDIR" 20707 _ACEOF 20708 20709 20710 cat >>confdefs.h <<_ACEOF 20711 #define LLVM_DATADIR "$LLVM_DATADIR" 20712 _ACEOF 20713 20714 20715 cat >>confdefs.h <<_ACEOF 20716 #define LLVM_DOCSDIR "$LLVM_DOCSDIR" 20717 _ACEOF 20718 20719 20720 cat >>confdefs.h <<_ACEOF 20721 #define LLVM_ETCDIR "$LLVM_ETCDIR" 20722 _ACEOF 20723 20724 20725 cat >>confdefs.h <<_ACEOF 20726 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 20727 _ACEOF 20728 20729 20730 cat >>confdefs.h <<_ACEOF 20731 #define LLVM_INFODIR "$LLVM_INFODIR" 20732 _ACEOF 20733 20734 20735 cat >>confdefs.h <<_ACEOF 20736 #define LLVM_MANDIR "$LLVM_MANDIR" 20737 _ACEOF 20738 20739 20740 cat >>confdefs.h <<_ACEOF 20741 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 20742 _ACEOF 20743 20744 20745 cat >>confdefs.h <<_ACEOF 20746 #define LLVM_DEFAULT_TARGET_TRIPLE "$target" 20747 _ACEOF 20748 20749 20750 # Determine which bindings to build. 20751 if test "$BINDINGS_TO_BUILD" = auto ; then 20752 BINDINGS_TO_BUILD="" 20753 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 20754 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 20755 fi 20756 fi 20757 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 20758 20759 20760 # This isn't really configurey, but it avoids having to repeat the list in 20761 # other files. 20762 ALL_BINDINGS=ocaml 20763 20764 20765 # Do any work necessary to ensure that bindings have what they need. 20766 binding_prereqs_failed=0 20767 for a_binding in $BINDINGS_TO_BUILD ; do 20768 case "$a_binding" in 20769 ocaml) 20770 if test "x$OCAMLC" = x ; then 20771 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 20772 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 20773 binding_prereqs_failed=1 20774 fi 20775 if test "x$OCAMLDEP" = x ; then 20776 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 20777 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 20778 binding_prereqs_failed=1 20779 fi 20780 if test "x$OCAMLOPT" = x ; then 20781 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 20782 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 20783 fi 20784 if test "x$with_ocaml_libdir" != xauto ; then 20785 OCAML_LIBDIR=$with_ocaml_libdir 20786 20787 else 20788 ocaml_stdlib="`"$OCAMLC" -where`" 20789 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 20790 then 20791 # ocaml stdlib is beneath our prefix; use stdlib 20792 OCAML_LIBDIR=$ocaml_stdlib 20793 20794 else 20795 # ocaml stdlib is outside our prefix; use libdir/ocaml 20796 OCAML_LIBDIR=${prefix}/lib/ocaml 20797 20798 fi 20799 fi 20800 ;; 20801 esac 20802 done 20803 if test "$binding_prereqs_failed" = 1 ; then 20804 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 20805 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 20806 { (exit 1); exit 1; }; } 20807 fi 20808 20809 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 20810 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 20811 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 20812 echo $ECHO_N "(cached) $ECHO_C" >&6 20813 else 20814 ac_ext=cpp 20815 ac_cpp='$CXXCPP $CPPFLAGS' 20816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20819 20820 oldcxxflags="$CXXFLAGS" 20821 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 20822 cat >conftest.$ac_ext <<_ACEOF 20823 /* confdefs.h. */ 20824 _ACEOF 20825 cat confdefs.h >>conftest.$ac_ext 20826 cat >>conftest.$ac_ext <<_ACEOF 20827 /* end confdefs.h. */ 20828 template <typename T> struct X { void __attribute__((noinline)) f() {} }; 20829 int 20830 main () 20831 { 20832 X<int>().f(); 20833 ; 20834 return 0; 20835 } 20836 _ACEOF 20837 rm -f conftest.$ac_objext 20838 if { (ac_try="$ac_compile" 20839 case "(($ac_try" in 20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20841 *) ac_try_echo=$ac_try;; 20842 esac 20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20844 (eval "$ac_compile") 2>conftest.er1 20845 ac_status=$? 20846 grep -v '^ *+' conftest.er1 >conftest.err 20847 rm -f conftest.er1 20848 cat conftest.err >&5 20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20850 (exit $ac_status); } && 20851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20852 { (case "(($ac_try" in 20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20854 *) ac_try_echo=$ac_try;; 20855 esac 20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20857 (eval "$ac_try") 2>&5 20858 ac_status=$? 20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20860 (exit $ac_status); }; } && 20861 { ac_try='test -s conftest.$ac_objext' 20862 { (case "(($ac_try" in 20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20864 *) ac_try_echo=$ac_try;; 20865 esac 20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20867 (eval "$ac_try") 2>&5 20868 ac_status=$? 20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20870 (exit $ac_status); }; }; then 20871 llvm_cv_cxx_visibility_inlines_hidden=yes 20872 else 20873 echo "$as_me: failed program was:" >&5 20874 sed 's/^/| /' conftest.$ac_ext >&5 20875 20876 llvm_cv_cxx_visibility_inlines_hidden=no 20877 fi 20878 20879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20880 CXXFLAGS="$oldcxxflags" 20881 ac_ext=c 20882 ac_cpp='$CPP $CPPFLAGS' 20883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20885 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20886 20887 20888 fi 20889 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 20890 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 20891 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 20892 ENABLE_VISIBILITY_INLINES_HIDDEN=1 20893 20894 else 20895 ENABLE_VISIBILITY_INLINES_HIDDEN=0 20896 20897 fi 20898 20899 20900 if test "$llvm_cv_link_use_r" = "yes" ; then 20901 RPATH="-Wl,-R" 20902 else 20903 RPATH="-Wl,-rpath" 20904 fi 20905 20906 20907 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 20908 RDYNAMIC="-rdynamic" 20909 else 20910 RDYNAMIC="" 20911 fi 20912 20913 20914 20915 20916 ac_config_files="$ac_config_files Makefile.common" 20917 20918 ac_config_files="$ac_config_files Makefile.llvm.config" 20919 20920 20921 ac_config_commands="$ac_config_commands Makefile" 20922 20923 20924 ac_config_commands="$ac_config_commands lib/Makefile" 20925 20926 20927 ac_config_commands="$ac_config_commands lib/sample/Makefile" 20928 20929 20930 ac_config_commands="$ac_config_commands tools/Makefile" 20931 20932 20933 ac_config_commands="$ac_config_commands tools/sample/Makefile" 20934 20935 20936 20937 cat >confcache <<\_ACEOF 20938 # This file is a shell script that caches the results of configure 20939 # tests run on this system so they can be shared between configure 20940 # scripts and configure runs, see configure's option --config-cache. 20941 # It is not useful on other systems. If it contains results you don't 20942 # want to keep, you may remove or edit it. 20943 # 20944 # config.status only pays attention to the cache file if you give it 20945 # the --recheck option to rerun configure. 20946 # 20947 # `ac_cv_env_foo' variables (set or unset) will be overridden when 20948 # loading this file, other *unset* `ac_cv_foo' will be assigned the 20949 # following values. 20950 20951 _ACEOF 20952 20953 # The following way of writing the cache mishandles newlines in values, 20954 # but we know of no workaround that is simple, portable, and efficient. 20955 # So, we kill variables containing newlines. 20956 # Ultrix sh set writes to stderr and can't be redirected directly, 20957 # and sets the high bit in the cache file unless we assign to the vars. 20958 ( 20959 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20960 eval ac_val=\$$ac_var 20961 case $ac_val in #( 20962 *${as_nl}*) 20963 case $ac_var in #( 20964 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20966 esac 20967 case $ac_var in #( 20968 _ | IFS | as_nl) ;; #( 20969 *) $as_unset $ac_var ;; 20970 esac ;; 20971 esac 20972 done 20973 20974 (set) 2>&1 | 20975 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20976 *${as_nl}ac_space=\ *) 20977 # `set' does not quote correctly, so add quotes (double-quote 20978 # substitution turns \\\\ into \\, and sed turns \\ into \). 20979 sed -n \ 20980 "s/'/'\\\\''/g; 20981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20982 ;; #( 20983 *) 20984 # `set' quotes correctly as required by POSIX, so do not add quotes. 20985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20986 ;; 20987 esac | 20988 sort 20989 ) | 20990 sed ' 20991 /^ac_cv_env_/b end 20992 t clear 20993 :clear 20994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20995 t end 20996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20997 :end' >>confcache 20998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20999 if test -w "$cache_file"; then 21000 test "x$cache_file" != "x/dev/null" && 21001 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21002 echo "$as_me: updating cache $cache_file" >&6;} 21003 cat confcache >$cache_file 21004 else 21005 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21006 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21007 fi 21008 fi 21009 rm -f confcache 21010 21011 test "x$prefix" = xNONE && prefix=$ac_default_prefix 21012 # Let make expand exec_prefix. 21013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21014 21015 # Transform confdefs.h into DEFS. 21016 # Protect against shell expansion while executing Makefile rules. 21017 # Protect against Makefile macro expansion. 21018 # 21019 # If the first sed substitution is executed (which looks for macros that 21020 # take arguments), then branch to the quote section. Otherwise, 21021 # look for a macro that doesn't take arguments. 21022 ac_script=' 21023 t clear 21024 :clear 21025 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 21026 t quote 21027 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 21028 t quote 21029 b any 21030 :quote 21031 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 21032 s/\[/\\&/g 21033 s/\]/\\&/g 21034 s/\$/$$/g 21035 H 21036 :any 21037 ${ 21038 g 21039 s/^\n// 21040 s/\n/ /g 21041 p 21042 } 21043 ' 21044 DEFS=`sed -n "$ac_script" confdefs.h` 21045 21046 21047 ac_libobjs= 21048 ac_ltlibobjs= 21049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21050 # 1. Remove the extension, and $U if already installed. 21051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21052 ac_i=`echo "$ac_i" | sed "$ac_script"` 21053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21054 # will be set to the directory where LIBOBJS objects are built. 21055 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21056 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21057 done 21058 LIBOBJS=$ac_libobjs 21059 21060 LTLIBOBJS=$ac_ltlibobjs 21061 21062 21063 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21064 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21065 Usually this means the macro was only invoked conditionally." >&5 21066 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21067 Usually this means the macro was only invoked conditionally." >&2;} 21068 { (exit 1); exit 1; }; } 21069 fi 21070 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21071 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21072 Usually this means the macro was only invoked conditionally." >&5 21073 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21074 Usually this means the macro was only invoked conditionally." >&2;} 21075 { (exit 1); exit 1; }; } 21076 fi 21077 21078 : ${CONFIG_STATUS=./config.status} 21079 ac_clean_files_save=$ac_clean_files 21080 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21082 echo "$as_me: creating $CONFIG_STATUS" >&6;} 21083 cat >$CONFIG_STATUS <<_ACEOF 21084 #! $SHELL 21085 # Generated by $as_me. 21086 # Run this file to recreate the current configuration. 21087 # Compiler output produced by configure, useful for debugging 21088 # configure, is in config.log if it exists. 21089 21090 debug=false 21091 ac_cs_recheck=false 21092 ac_cs_silent=false 21093 SHELL=\${CONFIG_SHELL-$SHELL} 21094 _ACEOF 21095 21096 cat >>$CONFIG_STATUS <<\_ACEOF 21097 ## --------------------- ## 21098 ## M4sh Initialization. ## 21099 ## --------------------- ## 21100 21101 # Be Bourne compatible 21102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21103 emulate sh 21104 NULLCMD=: 21105 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21106 # is contrary to our usage. Disable this feature. 21107 alias -g '${1+"$@"}'='"$@"' 21108 setopt NO_GLOB_SUBST 21109 else 21110 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21111 fi 21112 BIN_SH=xpg4; export BIN_SH # for Tru64 21113 DUALCASE=1; export DUALCASE # for MKS sh 21114 21115 21116 # PATH needs CR 21117 # Avoid depending upon Character Ranges. 21118 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21121 as_cr_digits='0123456789' 21122 as_cr_alnum=$as_cr_Letters$as_cr_digits 21123 21124 # The user is always right. 21125 if test "${PATH_SEPARATOR+set}" != set; then 21126 echo "#! /bin/sh" >conf$$.sh 21127 echo "exit 0" >>conf$$.sh 21128 chmod +x conf$$.sh 21129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21130 PATH_SEPARATOR=';' 21131 else 21132 PATH_SEPARATOR=: 21133 fi 21134 rm -f conf$$.sh 21135 fi 21136 21137 # Support unset when possible. 21138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21139 as_unset=unset 21140 else 21141 as_unset=false 21142 fi 21143 21144 21145 # IFS 21146 # We need space, tab and new line, in precisely that order. Quoting is 21147 # there to prevent editors from complaining about space-tab. 21148 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 21149 # splitting by setting IFS to empty value.) 21150 as_nl=' 21151 ' 21152 IFS=" "" $as_nl" 21153 21154 # Find who we are. Look in the path if we contain no directory separator. 21155 case $0 in 21156 *[\\/]* ) as_myself=$0 ;; 21157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21158 for as_dir in $PATH 21159 do 21160 IFS=$as_save_IFS 21161 test -z "$as_dir" && as_dir=. 21162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21163 done 21164 IFS=$as_save_IFS 21165 21166 ;; 21167 esac 21168 # We did not find ourselves, most probably we were run as `sh COMMAND' 21169 # in which case we are not to be found in the path. 21170 if test "x$as_myself" = x; then 21171 as_myself=$0 21172 fi 21173 if test ! -f "$as_myself"; then 21174 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21175 { (exit 1); exit 1; } 21176 fi 21177 21178 # Work around bugs in pre-3.0 UWIN ksh. 21179 for as_var in ENV MAIL MAILPATH 21180 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21181 done 21182 PS1='$ ' 21183 PS2='> ' 21184 PS4='+ ' 21185 21186 # NLS nuisances. 21187 for as_var in \ 21188 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21189 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21190 LC_TELEPHONE LC_TIME 21191 do 21192 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21193 eval $as_var=C; export $as_var 21194 else 21195 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21196 fi 21197 done 21198 21199 # Required to use basename. 21200 if expr a : '\(a\)' >/dev/null 2>&1 && 21201 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21202 as_expr=expr 21203 else 21204 as_expr=false 21205 fi 21206 21207 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21208 as_basename=basename 21209 else 21210 as_basename=false 21211 fi 21212 21213 21214 # Name of the executable. 21215 as_me=`$as_basename -- "$0" || 21216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21217 X"$0" : 'X\(//\)$' \| \ 21218 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21219 echo X/"$0" | 21220 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21221 s//\1/ 21222 q 21223 } 21224 /^X\/\(\/\/\)$/{ 21225 s//\1/ 21226 q 21227 } 21228 /^X\/\(\/\).*/{ 21229 s//\1/ 21230 q 21231 } 21232 s/.*/./; q'` 21233 21234 # CDPATH. 21235 $as_unset CDPATH 21236 21237 21238 21239 as_lineno_1=$LINENO 21240 as_lineno_2=$LINENO 21241 test "x$as_lineno_1" != "x$as_lineno_2" && 21242 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21243 21244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21245 # uniformly replaced by the line number. The first 'sed' inserts a 21246 # line-number line after each line using $LINENO; the second 'sed' 21247 # does the real work. The second script uses 'N' to pair each 21248 # line-number line with the line containing $LINENO, and appends 21249 # trailing '-' during substitution so that $LINENO is not a special 21250 # case at line end. 21251 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21252 # scripts with optimization help from Paolo Bonzini. Blame Lee 21253 # E. McMahon (1931-1989) for sed's syntax. :-) 21254 sed -n ' 21255 p 21256 /[$]LINENO/= 21257 ' <$as_myself | 21258 sed ' 21259 s/[$]LINENO.*/&-/ 21260 t lineno 21261 b 21262 :lineno 21263 N 21264 :loop 21265 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21266 t loop 21267 s/-\n.*// 21268 ' >$as_me.lineno && 21269 chmod +x "$as_me.lineno" || 21270 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21271 { (exit 1); exit 1; }; } 21272 21273 # Don't try to exec as it changes $[0], causing all sort of problems 21274 # (the dirname of $[0] is not the place where we might find the 21275 # original and so on. Autoconf is especially sensitive to this). 21276 . "./$as_me.lineno" 21277 # Exit status is that of the last command. 21278 exit 21279 } 21280 21281 21282 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21283 as_dirname=dirname 21284 else 21285 as_dirname=false 21286 fi 21287 21288 ECHO_C= ECHO_N= ECHO_T= 21289 case `echo -n x` in 21290 -n*) 21291 case `echo 'x\c'` in 21292 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21293 *) ECHO_C='\c';; 21294 esac;; 21295 *) 21296 ECHO_N='-n';; 21297 esac 21298 21299 if expr a : '\(a\)' >/dev/null 2>&1 && 21300 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21301 as_expr=expr 21302 else 21303 as_expr=false 21304 fi 21305 21306 rm -f conf$$ conf$$.exe conf$$.file 21307 if test -d conf$$.dir; then 21308 rm -f conf$$.dir/conf$$.file 21309 else 21310 rm -f conf$$.dir 21311 mkdir conf$$.dir 21312 fi 21313 echo >conf$$.file 21314 if ln -s conf$$.file conf$$ 2>/dev/null; then 21315 as_ln_s='ln -s' 21316 # ... but there are two gotchas: 21317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21319 # In both cases, we have to default to `cp -p'. 21320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21321 as_ln_s='cp -p' 21322 elif ln conf$$.file conf$$ 2>/dev/null; then 21323 as_ln_s=ln 21324 else 21325 as_ln_s='cp -p' 21326 fi 21327 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21328 rmdir conf$$.dir 2>/dev/null 21329 21330 if mkdir -p . 2>/dev/null; then 21331 as_mkdir_p=: 21332 else 21333 test -d ./-p && rmdir ./-p 21334 as_mkdir_p=false 21335 fi 21336 21337 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 21338 # systems may use methods other than mode bits to determine executability. 21339 cat >conf$$.file <<_ASEOF 21340 #! /bin/sh 21341 exit 0 21342 _ASEOF 21343 chmod +x conf$$.file 21344 if test -x conf$$.file >/dev/null 2>&1; then 21345 as_executable_p="test -x" 21346 else 21347 as_executable_p=: 21348 fi 21349 rm -f conf$$.file 21350 21351 # Sed expression to map a string onto a valid CPP name. 21352 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21353 21354 # Sed expression to map a string onto a valid variable name. 21355 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21356 21357 21358 exec 6>&1 21359 21360 # Save the log message, to keep $[0] and so on meaningful, and to 21361 # report actual input values of CONFIG_FILES etc. instead of their 21362 # values after options handling. 21363 ac_log=" 21364 This file was extended by [SAMPLE] $as_me [x.xx], which was 21365 generated by GNU Autoconf 2.60. Invocation command line was 21366 21367 CONFIG_FILES = $CONFIG_FILES 21368 CONFIG_HEADERS = $CONFIG_HEADERS 21369 CONFIG_LINKS = $CONFIG_LINKS 21370 CONFIG_COMMANDS = $CONFIG_COMMANDS 21371 $ $0 $@ 21372 21373 on `(hostname || uname -n) 2>/dev/null | sed 1q` 21374 " 21375 21376 _ACEOF 21377 21378 cat >>$CONFIG_STATUS <<_ACEOF 21379 # Files that config.status was made for. 21380 config_files="$ac_config_files" 21381 config_commands="$ac_config_commands" 21382 21383 _ACEOF 21384 21385 cat >>$CONFIG_STATUS <<\_ACEOF 21386 ac_cs_usage="\ 21387 \`$as_me' instantiates files from templates according to the 21388 current configuration. 21389 21390 Usage: $0 [OPTIONS] [FILE]... 21391 21392 -h, --help print this help, then exit 21393 -V, --version print version number, then exit 21394 -q, --quiet do not print progress messages 21395 -d, --debug don't remove temporary files 21396 --recheck update $as_me by reconfiguring in the same conditions 21397 --file=FILE[:TEMPLATE] 21398 instantiate the configuration file FILE 21399 21400 Configuration files: 21401 $config_files 21402 21403 Configuration commands: 21404 $config_commands 21405 21406 Report bugs to <bug-autoconf@gnu.org>." 21407 21408 _ACEOF 21409 cat >>$CONFIG_STATUS <<_ACEOF 21410 ac_cs_version="\\ 21411 [SAMPLE] config.status [x.xx] 21412 configured by $0, generated by GNU Autoconf 2.60, 21413 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21414 21415 Copyright (C) 2006 Free Software Foundation, Inc. 21416 This config.status script is free software; the Free Software Foundation 21417 gives unlimited permission to copy, distribute and modify it." 21418 21419 ac_pwd='$ac_pwd' 21420 srcdir='$srcdir' 21421 INSTALL='$INSTALL' 21422 _ACEOF 21423 21424 cat >>$CONFIG_STATUS <<\_ACEOF 21425 # If no file are specified by the user, then we need to provide default 21426 # value. By we need to know if files were specified by the user. 21427 ac_need_defaults=: 21428 while test $# != 0 21429 do 21430 case $1 in 21431 --*=*) 21432 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21433 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21434 ac_shift=: 21435 ;; 21436 *) 21437 ac_option=$1 21438 ac_optarg=$2 21439 ac_shift=shift 21440 ;; 21441 esac 21442 21443 case $ac_option in 21444 # Handling of the options. 21445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21446 ac_cs_recheck=: ;; 21447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21448 echo "$ac_cs_version"; exit ;; 21449 --debug | --debu | --deb | --de | --d | -d ) 21450 debug=: ;; 21451 --file | --fil | --fi | --f ) 21452 $ac_shift 21453 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21454 ac_need_defaults=false;; 21455 --he | --h | --help | --hel | -h ) 21456 echo "$ac_cs_usage"; exit ;; 21457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21458 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21459 ac_cs_silent=: ;; 21460 21461 # This is an error. 21462 -*) { echo "$as_me: error: unrecognized option: $1 21463 Try \`$0 --help' for more information." >&2 21464 { (exit 1); exit 1; }; } ;; 21465 21466 *) ac_config_targets="$ac_config_targets $1" 21467 ac_need_defaults=false ;; 21468 21469 esac 21470 shift 21471 done 21472 21473 ac_configure_extra_args= 21474 21475 if $ac_cs_silent; then 21476 exec 6>/dev/null 21477 ac_configure_extra_args="$ac_configure_extra_args --silent" 21478 fi 21479 21480 _ACEOF 21481 cat >>$CONFIG_STATUS <<_ACEOF 21482 if \$ac_cs_recheck; then 21483 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21484 CONFIG_SHELL=$SHELL 21485 export CONFIG_SHELL 21486 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21487 fi 21488 21489 _ACEOF 21490 cat >>$CONFIG_STATUS <<\_ACEOF 21491 exec 5>>config.log 21492 { 21493 echo 21494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21495 ## Running $as_me. ## 21496 _ASBOX 21497 echo "$ac_log" 21498 } >&5 21499 21500 _ACEOF 21501 cat >>$CONFIG_STATUS <<_ACEOF 21502 # 21503 # INIT-COMMANDS 21504 # 21505 llvm_src="${LLVM_SRC}" 21506 21507 _ACEOF 21508 21509 cat >>$CONFIG_STATUS <<\_ACEOF 21510 21511 # Handling of arguments. 21512 for ac_config_target in $ac_config_targets 21513 do 21514 case $ac_config_target in 21515 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 21516 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;; 21517 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;; 21518 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 21519 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 21520 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;; 21521 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 21522 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;; 21523 21524 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21525 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21526 { (exit 1); exit 1; }; };; 21527 esac 21528 done 21529 21530 21531 # If the user did not use the arguments to specify the items to instantiate, 21532 # then the envvar interface is used. Set only those that are not. 21533 # We use the long form for the default assignment because of an extremely 21534 # bizarre bug on SunOS 4.1.3. 21535 if $ac_need_defaults; then 21536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21538 fi 21539 21540 # Have a temporary directory for convenience. Make it in the build tree 21541 # simply because there is no reason against having it here, and in addition, 21542 # creating and moving files from /tmp can sometimes cause problems. 21543 # Hook for its removal unless debugging. 21544 # Note that there is a small window in which the directory will not be cleaned: 21545 # after its creation but before its name has been assigned to `$tmp'. 21546 $debug || 21547 { 21548 tmp= 21549 trap 'exit_status=$? 21550 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21551 ' 0 21552 trap '{ (exit 1); exit 1; }' 1 2 13 15 21553 } 21554 # Create a (secure) tmp directory for tmp files. 21555 21556 { 21557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21558 test -n "$tmp" && test -d "$tmp" 21559 } || 21560 { 21561 tmp=./conf$$-$RANDOM 21562 (umask 077 && mkdir "$tmp") 21563 } || 21564 { 21565 echo "$me: cannot create a temporary directory in ." >&2 21566 { (exit 1); exit 1; } 21567 } 21568 21569 # 21570 # Set up the sed scripts for CONFIG_FILES section. 21571 # 21572 21573 # No need to generate the scripts if there are no CONFIG_FILES. 21574 # This happens for instance when ./config.status config.h 21575 if test -n "$CONFIG_FILES"; then 21576 21577 _ACEOF 21578 21579 21580 21581 ac_delim='%!_!# ' 21582 for ac_last_try in false false false false false :; do 21583 cat >conf$$subs.sed <<_ACEOF 21584 SHELL!$SHELL$ac_delim 21585 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21586 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21587 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21588 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21589 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21590 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21591 exec_prefix!$exec_prefix$ac_delim 21592 prefix!$prefix$ac_delim 21593 program_transform_name!$program_transform_name$ac_delim 21594 bindir!$bindir$ac_delim 21595 sbindir!$sbindir$ac_delim 21596 libexecdir!$libexecdir$ac_delim 21597 datarootdir!$datarootdir$ac_delim 21598 datadir!$datadir$ac_delim 21599 sysconfdir!$sysconfdir$ac_delim 21600 sharedstatedir!$sharedstatedir$ac_delim 21601 localstatedir!$localstatedir$ac_delim 21602 includedir!$includedir$ac_delim 21603 oldincludedir!$oldincludedir$ac_delim 21604 docdir!$docdir$ac_delim 21605 infodir!$infodir$ac_delim 21606 htmldir!$htmldir$ac_delim 21607 dvidir!$dvidir$ac_delim 21608 pdfdir!$pdfdir$ac_delim 21609 psdir!$psdir$ac_delim 21610 libdir!$libdir$ac_delim 21611 localedir!$localedir$ac_delim 21612 mandir!$mandir$ac_delim 21613 DEFS!$DEFS$ac_delim 21614 ECHO_C!$ECHO_C$ac_delim 21615 ECHO_N!$ECHO_N$ac_delim 21616 ECHO_T!$ECHO_T$ac_delim 21617 LIBS!$LIBS$ac_delim 21618 build_alias!$build_alias$ac_delim 21619 host_alias!$host_alias$ac_delim 21620 target_alias!$target_alias$ac_delim 21621 LLVM_SRC!$LLVM_SRC$ac_delim 21622 LLVM_OBJ!$LLVM_OBJ$ac_delim 21623 LLVM_VERSION!$LLVM_VERSION$ac_delim 21624 CC!$CC$ac_delim 21625 CFLAGS!$CFLAGS$ac_delim 21626 LDFLAGS!$LDFLAGS$ac_delim 21627 CPPFLAGS!$CPPFLAGS$ac_delim 21628 ac_ct_CC!$ac_ct_CC$ac_delim 21629 EXEEXT!$EXEEXT$ac_delim 21630 OBJEXT!$OBJEXT$ac_delim 21631 CXX!$CXX$ac_delim 21632 CXXFLAGS!$CXXFLAGS$ac_delim 21633 ac_ct_CXX!$ac_ct_CXX$ac_delim 21634 CPP!$CPP$ac_delim 21635 ENABLE_POLLY!$ENABLE_POLLY$ac_delim 21636 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 21637 subdirs!$subdirs$ac_delim 21638 build!$build$ac_delim 21639 build_cpu!$build_cpu$ac_delim 21640 build_vendor!$build_vendor$ac_delim 21641 build_os!$build_os$ac_delim 21642 host!$host$ac_delim 21643 host_cpu!$host_cpu$ac_delim 21644 host_vendor!$host_vendor$ac_delim 21645 host_os!$host_os$ac_delim 21646 target!$target$ac_delim 21647 target_cpu!$target_cpu$ac_delim 21648 target_vendor!$target_vendor$ac_delim 21649 target_os!$target_os$ac_delim 21650 OS!$OS$ac_delim 21651 HOST_OS!$HOST_OS$ac_delim 21652 TARGET_OS!$TARGET_OS$ac_delim 21653 LINKALL!$LINKALL$ac_delim 21654 NOLINKALL!$NOLINKALL$ac_delim 21655 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 21656 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 21657 ARCH!$ARCH$ac_delim 21658 ENDIAN!$ENDIAN$ac_delim 21659 GREP!$GREP$ac_delim 21660 EGREP!$EGREP$ac_delim 21661 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 21662 BUILD_CC!$BUILD_CC$ac_delim 21663 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 21664 BUILD_CXX!$BUILD_CXX$ac_delim 21665 CVSBUILD!$CVSBUILD$ac_delim 21666 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 21667 ENABLE_CXX11!$ENABLE_CXX11$ac_delim 21668 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 21669 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 21670 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 21671 ENABLE_WERROR!$ENABLE_WERROR$ac_delim 21672 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 21673 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 21674 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 21675 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 21676 JIT!$JIT$ac_delim 21677 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 21678 ENABLE_DOCS!$ENABLE_DOCS$ac_delim 21679 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 21680 ENABLE_THREADS!$ENABLE_THREADS$ac_delim 21681 _ACEOF 21682 21683 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21684 break 21685 elif $ac_last_try; then 21686 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21687 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21688 { (exit 1); exit 1; }; } 21689 else 21690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21691 fi 21692 done 21693 21694 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21695 if test -n "$ac_eof"; then 21696 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21697 ac_eof=`expr $ac_eof + 1` 21698 fi 21699 21700 cat >>$CONFIG_STATUS <<_ACEOF 21701 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21703 _ACEOF 21704 sed ' 21705 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21706 s/^/s,@/; s/!/@,|#_!!_#|/ 21707 :n 21708 t n 21709 s/'"$ac_delim"'$/,g/; t 21710 s/$/\\/; p 21711 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21712 ' >>$CONFIG_STATUS <conf$$subs.sed 21713 rm -f conf$$subs.sed 21714 cat >>$CONFIG_STATUS <<_ACEOF 21715 CEOF$ac_eof 21716 _ACEOF 21717 21718 21719 ac_delim='%!_!# ' 21720 for ac_last_try in false false false false false :; do 21721 cat >conf$$subs.sed <<_ACEOF 21722 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 21723 ENABLE_PIC!$ENABLE_PIC$ac_delim 21724 ENABLE_SHARED!$ENABLE_SHARED$ac_delim 21725 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 21726 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 21727 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 21728 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 21729 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 21730 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 21731 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 21732 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 21733 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 21734 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 21735 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 21736 NM!$NM$ac_delim 21737 ifGNUmake!$ifGNUmake$ac_delim 21738 LN_S!$LN_S$ac_delim 21739 CMP!$CMP$ac_delim 21740 CP!$CP$ac_delim 21741 DATE!$DATE$ac_delim 21742 FIND!$FIND$ac_delim 21743 MKDIR!$MKDIR$ac_delim 21744 MV!$MV$ac_delim 21745 RANLIB!$RANLIB$ac_delim 21746 AR!$AR$ac_delim 21747 RM!$RM$ac_delim 21748 SED!$SED$ac_delim 21749 TAR!$TAR$ac_delim 21750 BINPWD!$BINPWD$ac_delim 21751 GRAPHVIZ!$GRAPHVIZ$ac_delim 21752 DOT!$DOT$ac_delim 21753 FDP!$FDP$ac_delim 21754 NEATO!$NEATO$ac_delim 21755 TWOPI!$TWOPI$ac_delim 21756 CIRCO!$CIRCO$ac_delim 21757 GV!$GV$ac_delim 21758 DOTTY!$DOTTY$ac_delim 21759 XDOT_PY!$XDOT_PY$ac_delim 21760 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21761 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21762 INSTALL_DATA!$INSTALL_DATA$ac_delim 21763 BZIP2!$BZIP2$ac_delim 21764 CAT!$CAT$ac_delim 21765 DOXYGEN!$DOXYGEN$ac_delim 21766 GROFF!$GROFF$ac_delim 21767 GZIPBIN!$GZIPBIN$ac_delim 21768 POD2HTML!$POD2HTML$ac_delim 21769 POD2MAN!$POD2MAN$ac_delim 21770 PDFROFF!$PDFROFF$ac_delim 21771 RUNTEST!$RUNTEST$ac_delim 21772 TCLSH!$TCLSH$ac_delim 21773 ZIP!$ZIP$ac_delim 21774 OCAMLC!$OCAMLC$ac_delim 21775 OCAMLOPT!$OCAMLOPT$ac_delim 21776 OCAMLDEP!$OCAMLDEP$ac_delim 21777 OCAMLDOC!$OCAMLDOC$ac_delim 21778 GAS!$GAS$ac_delim 21779 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 21780 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 21781 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 21782 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 21783 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 21784 LIBADD_DL!$LIBADD_DL$ac_delim 21785 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 21786 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 21787 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 21788 USE_UDIS86!$USE_UDIS86$ac_delim 21789 USE_OPROFILE!$USE_OPROFILE$ac_delim 21790 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 21791 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 21792 MMAP_FILE!$MMAP_FILE$ac_delim 21793 SHLIBEXT!$SHLIBEXT$ac_delim 21794 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 21795 LLVM_PREFIX!$LLVM_PREFIX$ac_delim 21796 LLVM_BINDIR!$LLVM_BINDIR$ac_delim 21797 LLVM_DATADIR!$LLVM_DATADIR$ac_delim 21798 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 21799 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 21800 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 21801 LLVM_INFODIR!$LLVM_INFODIR$ac_delim 21802 LLVM_MANDIR!$LLVM_MANDIR$ac_delim 21803 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 21804 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 21805 ALL_BINDINGS!$ALL_BINDINGS$ac_delim 21806 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 21807 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 21808 RPATH!$RPATH$ac_delim 21809 RDYNAMIC!$RDYNAMIC$ac_delim 21810 LIBOBJS!$LIBOBJS$ac_delim 21811 LTLIBOBJS!$LTLIBOBJS$ac_delim 21812 _ACEOF 21813 21814 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then 21815 break 21816 elif $ac_last_try; then 21817 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21818 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21819 { (exit 1); exit 1; }; } 21820 else 21821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21822 fi 21823 done 21824 21825 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21826 if test -n "$ac_eof"; then 21827 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21828 ac_eof=`expr $ac_eof + 1` 21829 fi 21830 21831 cat >>$CONFIG_STATUS <<_ACEOF 21832 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21834 _ACEOF 21835 sed ' 21836 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21837 s/^/s,@/; s/!/@,|#_!!_#|/ 21838 :n 21839 t n 21840 s/'"$ac_delim"'$/,g/; t 21841 s/$/\\/; p 21842 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21843 ' >>$CONFIG_STATUS <conf$$subs.sed 21844 rm -f conf$$subs.sed 21845 cat >>$CONFIG_STATUS <<_ACEOF 21846 :end 21847 s/|#_!!_#|//g 21848 CEOF$ac_eof 21849 _ACEOF 21850 21851 21852 # VPATH may cause trouble with some makes, so we remove $(srcdir), 21853 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21854 # trailing colons and then remove the whole line if VPATH becomes empty 21855 # (actually we leave an empty line to preserve line numbers). 21856 if test "x$srcdir" = x.; then 21857 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21858 s/:*\$(srcdir):*/:/ 21859 s/:*\${srcdir}:*/:/ 21860 s/:*@srcdir@:*/:/ 21861 s/^\([^=]*=[ ]*\):*/\1/ 21862 s/:*$// 21863 s/^[^=]*=[ ]*$// 21864 }' 21865 fi 21866 21867 cat >>$CONFIG_STATUS <<\_ACEOF 21868 fi # test -n "$CONFIG_FILES" 21869 21870 21871 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 21872 do 21873 case $ac_tag in 21874 :[FHLC]) ac_mode=$ac_tag; continue;; 21875 esac 21876 case $ac_mode$ac_tag in 21877 :[FHL]*:*);; 21878 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21879 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21880 { (exit 1); exit 1; }; };; 21881 :[FH]-) ac_tag=-:-;; 21882 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21883 esac 21884 ac_save_IFS=$IFS 21885 IFS=: 21886 set x $ac_tag 21887 IFS=$ac_save_IFS 21888 shift 21889 ac_file=$1 21890 shift 21891 21892 case $ac_mode in 21893 :L) ac_source=$1;; 21894 :[FH]) 21895 ac_file_inputs= 21896 for ac_f 21897 do 21898 case $ac_f in 21899 -) ac_f="$tmp/stdin";; 21900 *) # Look for the file first in the build tree, then in the source tree 21901 # (if the path is not absolute). The absolute path cannot be DOS-style, 21902 # because $ac_f cannot contain `:'. 21903 test -f "$ac_f" || 21904 case $ac_f in 21905 [\\/$]*) false;; 21906 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21907 esac || 21908 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21909 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21910 { (exit 1); exit 1; }; };; 21911 esac 21912 ac_file_inputs="$ac_file_inputs $ac_f" 21913 done 21914 21915 # Let's still pretend it is `configure' which instantiates (i.e., don't 21916 # use $as_me), people would be surprised to read: 21917 # /* config.h. Generated by config.status. */ 21918 configure_input="Generated from "`IFS=: 21919 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21920 if test x"$ac_file" != x-; then 21921 configure_input="$ac_file. $configure_input" 21922 { echo "$as_me:$LINENO: creating $ac_file" >&5 21923 echo "$as_me: creating $ac_file" >&6;} 21924 fi 21925 21926 case $ac_tag in 21927 *:-:* | *:-) cat >"$tmp/stdin";; 21928 esac 21929 ;; 21930 esac 21931 21932 ac_dir=`$as_dirname -- "$ac_file" || 21933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21934 X"$ac_file" : 'X\(//\)[^/]' \| \ 21935 X"$ac_file" : 'X\(//\)$' \| \ 21936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21937 echo X"$ac_file" | 21938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21939 s//\1/ 21940 q 21941 } 21942 /^X\(\/\/\)[^/].*/{ 21943 s//\1/ 21944 q 21945 } 21946 /^X\(\/\/\)$/{ 21947 s//\1/ 21948 q 21949 } 21950 /^X\(\/\).*/{ 21951 s//\1/ 21952 q 21953 } 21954 s/.*/./; q'` 21955 { as_dir="$ac_dir" 21956 case $as_dir in #( 21957 -*) as_dir=./$as_dir;; 21958 esac 21959 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21960 as_dirs= 21961 while :; do 21962 case $as_dir in #( 21963 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21964 *) as_qdir=$as_dir;; 21965 esac 21966 as_dirs="'$as_qdir' $as_dirs" 21967 as_dir=`$as_dirname -- "$as_dir" || 21968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21969 X"$as_dir" : 'X\(//\)[^/]' \| \ 21970 X"$as_dir" : 'X\(//\)$' \| \ 21971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21972 echo X"$as_dir" | 21973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21974 s//\1/ 21975 q 21976 } 21977 /^X\(\/\/\)[^/].*/{ 21978 s//\1/ 21979 q 21980 } 21981 /^X\(\/\/\)$/{ 21982 s//\1/ 21983 q 21984 } 21985 /^X\(\/\).*/{ 21986 s//\1/ 21987 q 21988 } 21989 s/.*/./; q'` 21990 test -d "$as_dir" && break 21991 done 21992 test -z "$as_dirs" || eval "mkdir $as_dirs" 21993 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21994 echo "$as_me: error: cannot create directory $as_dir" >&2;} 21995 { (exit 1); exit 1; }; }; } 21996 ac_builddir=. 21997 21998 case "$ac_dir" in 21999 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22000 *) 22001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22002 # A ".." for each directory in $ac_dir_suffix. 22003 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22004 case $ac_top_builddir_sub in 22005 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22006 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22007 esac ;; 22008 esac 22009 ac_abs_top_builddir=$ac_pwd 22010 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22011 # for backward compatibility: 22012 ac_top_builddir=$ac_top_build_prefix 22013 22014 case $srcdir in 22015 .) # We are building in place. 22016 ac_srcdir=. 22017 ac_top_srcdir=$ac_top_builddir_sub 22018 ac_abs_top_srcdir=$ac_pwd ;; 22019 [\\/]* | ?:[\\/]* ) # Absolute name. 22020 ac_srcdir=$srcdir$ac_dir_suffix; 22021 ac_top_srcdir=$srcdir 22022 ac_abs_top_srcdir=$srcdir ;; 22023 *) # Relative name. 22024 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22025 ac_top_srcdir=$ac_top_build_prefix$srcdir 22026 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22027 esac 22028 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22029 22030 22031 case $ac_mode in 22032 :F) 22033 # 22034 # CONFIG_FILE 22035 # 22036 22037 case $INSTALL in 22038 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22039 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22040 esac 22041 _ACEOF 22042 22043 cat >>$CONFIG_STATUS <<\_ACEOF 22044 # If the template does not know about datarootdir, expand it. 22045 # FIXME: This hack should be removed a few years after 2.60. 22046 ac_datarootdir_hack=; ac_datarootdir_seen= 22047 22048 case `sed -n '/datarootdir/ { 22049 p 22050 q 22051 } 22052 /@datadir@/p 22053 /@docdir@/p 22054 /@infodir@/p 22055 /@localedir@/p 22056 /@mandir@/p 22057 ' $ac_file_inputs` in 22058 *datarootdir*) ac_datarootdir_seen=yes;; 22059 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22060 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22061 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22062 _ACEOF 22063 cat >>$CONFIG_STATUS <<_ACEOF 22064 ac_datarootdir_hack=' 22065 s&@datadir@&$datadir&g 22066 s&@docdir@&$docdir&g 22067 s&@infodir@&$infodir&g 22068 s&@localedir@&$localedir&g 22069 s&@mandir@&$mandir&g 22070 s&\\\${datarootdir}&$datarootdir&g' ;; 22071 esac 22072 _ACEOF 22073 22074 # Neutralize VPATH when `$srcdir' = `.'. 22075 # Shell code in configure.ac might set extrasub. 22076 # FIXME: do we really want to maintain this feature? 22077 cat >>$CONFIG_STATUS <<_ACEOF 22078 sed "$ac_vpsub 22079 $extrasub 22080 _ACEOF 22081 cat >>$CONFIG_STATUS <<\_ACEOF 22082 :t 22083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22084 s&@configure_input@&$configure_input&;t t 22085 s&@top_builddir@&$ac_top_builddir_sub&;t t 22086 s&@srcdir@&$ac_srcdir&;t t 22087 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22088 s&@top_srcdir@&$ac_top_srcdir&;t t 22089 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22090 s&@builddir@&$ac_builddir&;t t 22091 s&@abs_builddir@&$ac_abs_builddir&;t t 22092 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22093 s&@INSTALL@&$ac_INSTALL&;t t 22094 $ac_datarootdir_hack 22095 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22096 22097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22098 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22100 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22101 which seems to be undefined. Please make sure it is defined." >&5 22102 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22103 which seems to be undefined. Please make sure it is defined." >&2;} 22104 22105 rm -f "$tmp/stdin" 22106 case $ac_file in 22107 -) cat "$tmp/out"; rm -f "$tmp/out";; 22108 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22109 esac 22110 ;; 22111 22112 22113 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22114 echo "$as_me: executing $ac_file commands" >&6;} 22115 ;; 22116 esac 22117 22118 22119 case $ac_file$ac_mode in 22120 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 22121 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 22122 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 22123 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 22124 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile` 22125 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;; 22126 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 22127 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 22128 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile` 22129 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;; 22130 22131 esac 22132 done # for ac_tag 22133 22134 22135 { (exit 0); exit 0; } 22136 _ACEOF 22137 chmod +x $CONFIG_STATUS 22138 ac_clean_files=$ac_clean_files_save 22139 22140 22141 # configure is writing to config.log, and then calls config.status. 22142 # config.status does its own redirection, appending to config.log. 22143 # Unfortunately, on DOS this fails, as config.log is still kept open 22144 # by configure, so config.status won't be able to write to it; its 22145 # output is simply discarded. So we exec the FD to /dev/null, 22146 # effectively closing config.log, so it can be properly (re)opened and 22147 # appended to by config.status. When coming back to configure, we 22148 # need to make the FD available again. 22149 if test "$no_create" != yes; then 22150 ac_cs_success=: 22151 ac_config_status_args= 22152 test "$silent" = yes && 22153 ac_config_status_args="$ac_config_status_args --quiet" 22154 exec 5>/dev/null 22155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22156 exec 5>>config.log 22157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22158 # would make configure fail if this is the last instruction. 22159 $ac_cs_success || { (exit 1); exit 1; } 22160 fi 22161 22162 # 22163 # CONFIG_SUBDIRS section. 22164 # 22165 if test "$no_recursion" != yes; then 22166 22167 # Remove --cache-file and --srcdir arguments so they do not pile up. 22168 ac_sub_configure_args= 22169 ac_prev= 22170 eval "set x $ac_configure_args" 22171 shift 22172 for ac_arg 22173 do 22174 if test -n "$ac_prev"; then 22175 ac_prev= 22176 continue 22177 fi 22178 case $ac_arg in 22179 -cache-file | --cache-file | --cache-fil | --cache-fi \ 22180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 22181 ac_prev=cache_file ;; 22182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 22183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 22184 | --c=*) 22185 ;; 22186 --config-cache | -C) 22187 ;; 22188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 22189 ac_prev=srcdir ;; 22190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 22191 ;; 22192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 22193 ac_prev=prefix ;; 22194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 22195 ;; 22196 *) 22197 case $ac_arg in 22198 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22199 esac 22200 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 22201 esac 22202 done 22203 22204 # Always prepend --prefix to ensure using the same prefix 22205 # in subdir configurations. 22206 ac_arg="--prefix=$prefix" 22207 case $ac_arg in 22208 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22209 esac 22210 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 22211 22212 ac_popdir=`pwd` 22213 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 22214 22215 # Do not complain, so a configure script can configure whichever 22216 # parts of a large source tree are present. 22217 test -d "$srcdir/$ac_dir" || continue 22218 22219 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 22220 echo "$as_me:$LINENO: $ac_msg" >&5 22221 echo "$ac_msg" >&6 22222 { as_dir="$ac_dir" 22223 case $as_dir in #( 22224 -*) as_dir=./$as_dir;; 22225 esac 22226 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22227 as_dirs= 22228 while :; do 22229 case $as_dir in #( 22230 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22231 *) as_qdir=$as_dir;; 22232 esac 22233 as_dirs="'$as_qdir' $as_dirs" 22234 as_dir=`$as_dirname -- "$as_dir" || 22235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22236 X"$as_dir" : 'X\(//\)[^/]' \| \ 22237 X"$as_dir" : 'X\(//\)$' \| \ 22238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22239 echo X"$as_dir" | 22240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22241 s//\1/ 22242 q 22243 } 22244 /^X\(\/\/\)[^/].*/{ 22245 s//\1/ 22246 q 22247 } 22248 /^X\(\/\/\)$/{ 22249 s//\1/ 22250 q 22251 } 22252 /^X\(\/\).*/{ 22253 s//\1/ 22254 q 22255 } 22256 s/.*/./; q'` 22257 test -d "$as_dir" && break 22258 done 22259 test -z "$as_dirs" || eval "mkdir $as_dirs" 22260 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22261 echo "$as_me: error: cannot create directory $as_dir" >&2;} 22262 { (exit 1); exit 1; }; }; } 22263 ac_builddir=. 22264 22265 case "$ac_dir" in 22266 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22267 *) 22268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22269 # A ".." for each directory in $ac_dir_suffix. 22270 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22271 case $ac_top_builddir_sub in 22272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22274 esac ;; 22275 esac 22276 ac_abs_top_builddir=$ac_pwd 22277 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22278 # for backward compatibility: 22279 ac_top_builddir=$ac_top_build_prefix 22280 22281 case $srcdir in 22282 .) # We are building in place. 22283 ac_srcdir=. 22284 ac_top_srcdir=$ac_top_builddir_sub 22285 ac_abs_top_srcdir=$ac_pwd ;; 22286 [\\/]* | ?:[\\/]* ) # Absolute name. 22287 ac_srcdir=$srcdir$ac_dir_suffix; 22288 ac_top_srcdir=$srcdir 22289 ac_abs_top_srcdir=$srcdir ;; 22290 *) # Relative name. 22291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22292 ac_top_srcdir=$ac_top_build_prefix$srcdir 22293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22294 esac 22295 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22296 22297 22298 cd "$ac_dir" 22299 22300 # Check for guested configure; otherwise get Cygnus style configure. 22301 if test -f "$ac_srcdir/configure.gnu"; then 22302 ac_sub_configure=$ac_srcdir/configure.gnu 22303 elif test -f "$ac_srcdir/configure"; then 22304 ac_sub_configure=$ac_srcdir/configure 22305 elif test -f "$ac_srcdir/configure.in"; then 22306 # This should be Cygnus configure. 22307 ac_sub_configure=$ac_aux_dir/configure 22308 else 22309 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 22310 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 22311 ac_sub_configure= 22312 fi 22313 22314 # The recursion is here. 22315 if test -n "$ac_sub_configure"; then 22316 # Make the cache file name correct relative to the subdirectory. 22317 case $cache_file in 22318 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 22319 *) # Relative name. 22320 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 22321 esac 22322 22323 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 22324 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 22325 # The eval makes quoting arguments work. 22326 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 22327 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 22328 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 22329 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 22330 { (exit 1); exit 1; }; } 22331 fi 22332 22333 cd "$ac_popdir" 22334 done 22335 fi 22336 22337