1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn. 4 # 5 # Report bugs to <http://llvm.org/bugs/>. 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 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 13 ## --------------------- ## 14 ## M4sh Initialization. ## 15 ## --------------------- ## 16 17 # Be Bourne compatible 18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25 else 26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 27 fi 28 BIN_SH=xpg4; export BIN_SH # for Tru64 29 DUALCASE=1; export DUALCASE # for MKS sh 30 31 32 # PATH needs CR 33 # Avoid depending upon Character Ranges. 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37 as_cr_digits='0123456789' 38 as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40 # The user is always right. 41 if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51 fi 52 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 58 fi 59 60 61 # IFS 62 # We need space, tab and new line, in precisely that order. Quoting is 63 # there to prevent editors from complaining about space-tab. 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 68 IFS=" "" $as_nl" 69 70 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74 for as_dir in $PATH 75 do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79 done 80 IFS=$as_save_IFS 81 82 ;; 83 esac 84 # We did not find ourselves, most probably we were run as `sh COMMAND' 85 # in which case we are not to be found in the path. 86 if test "x$as_myself" = x; then 87 as_myself=$0 88 fi 89 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97 done 98 PS1='$ ' 99 PS2='> ' 100 PS4='+ ' 101 102 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113 done 114 115 # Required to use basename. 116 if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119 else 120 as_expr=false 121 fi 122 123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125 else 126 as_basename=false 127 fi 128 129 130 # Name of the executable. 131 as_me=`$as_basename -- "$0" || 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223 do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 # Be Bourne compatible 241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248 else 249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 250 fi 251 BIN_SH=xpg4; export BIN_SH # for Tru64 252 DUALCASE=1; export DUALCASE # for MKS sh 253 254 : 255 _ASEOF 256 }; then 257 CONFIG_SHELL=$as_shell 258 as_have_required=yes 259 if { "$as_shell" 2> /dev/null <<\_ASEOF 260 # Be Bourne compatible 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 270 fi 271 BIN_SH=xpg4; export BIN_SH # for Tru64 272 DUALCASE=1; export DUALCASE # for MKS sh 273 274 : 275 (as_func_return () { 276 (exit $1) 277 } 278 as_func_success () { 279 as_func_return 0 280 } 281 as_func_failure () { 282 as_func_return 1 283 } 284 as_func_ret_success () { 285 return 0 286 } 287 as_func_ret_failure () { 288 return 1 289 } 290 291 exitcode=0 292 if as_func_success; then 293 : 294 else 295 exitcode=1 296 echo as_func_success failed. 297 fi 298 299 if as_func_failure; then 300 exitcode=1 301 echo as_func_failure succeeded. 302 fi 303 304 if as_func_ret_success; then 305 : 306 else 307 exitcode=1 308 echo as_func_ret_success failed. 309 fi 310 311 if as_func_ret_failure; then 312 exitcode=1 313 echo as_func_ret_failure succeeded. 314 fi 315 316 if ( set x; as_func_ret_success y && test x = "$1" ); then 317 : 318 else 319 exitcode=1 320 echo positional parameters were not saved. 321 fi 322 323 test $exitcode = 0) || { (exit 1); exit 1; } 324 325 ( 326 as_lineno_1=$LINENO 327 as_lineno_2=$LINENO 328 test "x$as_lineno_1" != "x$as_lineno_2" && 329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 330 331 _ASEOF 332 }; then 333 break 334 fi 335 336 fi 337 338 done 339 340 if test "x$CONFIG_SHELL" != x; then 341 for as_var in BASH_ENV ENV 342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 343 done 344 export CONFIG_SHELL 345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 346 fi 347 348 349 if test $as_have_required = no; then 350 echo This script requires a shell more modern than all the 351 echo shells that I found on your system. Please install a 352 echo modern shell, or manually run the script under such a 353 echo shell if you do have one. 354 { (exit 1); exit 1; } 355 fi 356 357 358 fi 359 360 fi 361 362 363 364 (eval "as_func_return () { 365 (exit \$1) 366 } 367 as_func_success () { 368 as_func_return 0 369 } 370 as_func_failure () { 371 as_func_return 1 372 } 373 as_func_ret_success () { 374 return 0 375 } 376 as_func_ret_failure () { 377 return 1 378 } 379 380 exitcode=0 381 if as_func_success; then 382 : 383 else 384 exitcode=1 385 echo as_func_success failed. 386 fi 387 388 if as_func_failure; then 389 exitcode=1 390 echo as_func_failure succeeded. 391 fi 392 393 if as_func_ret_success; then 394 : 395 else 396 exitcode=1 397 echo as_func_ret_success failed. 398 fi 399 400 if as_func_ret_failure; then 401 exitcode=1 402 echo as_func_ret_failure succeeded. 403 fi 404 405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 406 : 407 else 408 exitcode=1 409 echo positional parameters were not saved. 410 fi 411 412 test \$exitcode = 0") || { 413 echo No shell found that supports shell functions. 414 echo Please tell autoconf@gnu.org about your system, 415 echo including any error possibly output before this 416 echo message 417 } 418 419 420 421 as_lineno_1=$LINENO 422 as_lineno_2=$LINENO 423 test "x$as_lineno_1" != "x$as_lineno_2" && 424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 425 426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 427 # uniformly replaced by the line number. The first 'sed' inserts a 428 # line-number line after each line using $LINENO; the second 'sed' 429 # does the real work. The second script uses 'N' to pair each 430 # line-number line with the line containing $LINENO, and appends 431 # trailing '-' during substitution so that $LINENO is not a special 432 # case at line end. 433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 434 # scripts with optimization help from Paolo Bonzini. Blame Lee 435 # E. McMahon (1931-1989) for sed's syntax. :-) 436 sed -n ' 437 p 438 /[$]LINENO/= 439 ' <$as_myself | 440 sed ' 441 s/[$]LINENO.*/&-/ 442 t lineno 443 b 444 :lineno 445 N 446 :loop 447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 448 t loop 449 s/-\n.*// 450 ' >$as_me.lineno && 451 chmod +x "$as_me.lineno" || 452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 453 { (exit 1); exit 1; }; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461 } 462 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 ECHO_C= ECHO_N= ECHO_T= 471 case `echo -n x` in 472 -n*) 473 case `echo 'x\c'` in 474 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 475 *) ECHO_C='\c';; 476 esac;; 477 *) 478 ECHO_N='-n';; 479 esac 480 481 if expr a : '\(a\)' >/dev/null 2>&1 && 482 test "X`expr 00001 : '.*\(...\)'`" = X001; then 483 as_expr=expr 484 else 485 as_expr=false 486 fi 487 488 rm -f conf$$ conf$$.exe conf$$.file 489 if test -d conf$$.dir; then 490 rm -f conf$$.dir/conf$$.file 491 else 492 rm -f conf$$.dir 493 mkdir conf$$.dir 494 fi 495 echo >conf$$.file 496 if ln -s conf$$.file conf$$ 2>/dev/null; then 497 as_ln_s='ln -s' 498 # ... but there are two gotchas: 499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 501 # In both cases, we have to default to `cp -p'. 502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 503 as_ln_s='cp -p' 504 elif ln conf$$.file conf$$ 2>/dev/null; then 505 as_ln_s=ln 506 else 507 as_ln_s='cp -p' 508 fi 509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510 rmdir conf$$.dir 2>/dev/null 511 512 if mkdir -p . 2>/dev/null; then 513 as_mkdir_p=: 514 else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517 fi 518 519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 520 # systems may use methods other than mode bits to determine executability. 521 cat >conf$$.file <<_ASEOF 522 #! /bin/sh 523 exit 0 524 _ASEOF 525 chmod +x conf$$.file 526 if test -x conf$$.file >/dev/null 2>&1; then 527 as_executable_p="test -x" 528 else 529 as_executable_p=: 530 fi 531 rm -f conf$$.file 532 533 # Sed expression to map a string onto a valid CPP name. 534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536 # Sed expression to map a string onto a valid variable name. 537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541 exec 7<&0 </dev/null 6>&1 542 543 # Name of the host. 544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 545 # so uname gets run too. 546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548 # 549 # Initializations. 550 # 551 ac_default_prefix=/usr/local 552 ac_clean_files= 553 ac_config_libobj_dir=. 554 LIBOBJS= 555 cross_compiling=no 556 subdirs= 557 MFLAGS= 558 MAKEFLAGS= 559 SHELL=${CONFIG_SHELL-/bin/sh} 560 561 # Identity of this package. 562 PACKAGE_NAME='LLVM' 563 PACKAGE_TARNAME='llvm' 564 PACKAGE_VERSION='3.4svn' 565 PACKAGE_STRING='LLVM 3.4svn' 566 PACKAGE_BUGREPORT='http://llvm.org/bugs/' 567 568 ac_unique_file="lib/IR/Module.cpp" 569 # Factoring default headers for most tests. 570 ac_includes_default="\ 571 #include <stdio.h> 572 #if HAVE_SYS_TYPES_H 573 # include <sys/types.h> 574 #endif 575 #if HAVE_SYS_STAT_H 576 # include <sys/stat.h> 577 #endif 578 #if STDC_HEADERS 579 # include <stdlib.h> 580 # include <stddef.h> 581 #else 582 # if HAVE_STDLIB_H 583 # include <stdlib.h> 584 # endif 585 #endif 586 #if HAVE_STRING_H 587 # if !STDC_HEADERS && HAVE_MEMORY_H 588 # include <memory.h> 589 # endif 590 # include <string.h> 591 #endif 592 #if HAVE_STRINGS_H 593 # include <strings.h> 594 #endif 595 #if HAVE_INTTYPES_H 596 # include <inttypes.h> 597 #endif 598 #if HAVE_STDINT_H 599 # include <stdint.h> 600 #endif 601 #if HAVE_UNISTD_H 602 # include <unistd.h> 603 #endif" 604 605 ac_subst_vars='SHELL 606 PATH_SEPARATOR 607 PACKAGE_NAME 608 PACKAGE_TARNAME 609 PACKAGE_VERSION 610 PACKAGE_STRING 611 PACKAGE_BUGREPORT 612 exec_prefix 613 prefix 614 program_transform_name 615 bindir 616 sbindir 617 libexecdir 618 datarootdir 619 datadir 620 sysconfdir 621 sharedstatedir 622 localstatedir 623 includedir 624 oldincludedir 625 docdir 626 infodir 627 htmldir 628 dvidir 629 pdfdir 630 psdir 631 libdir 632 localedir 633 mandir 634 DEFS 635 ECHO_C 636 ECHO_N 637 ECHO_T 638 LIBS 639 build_alias 640 host_alias 641 target_alias 642 LLVM_COPYRIGHT 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 subdirs 655 ENABLE_POLLY 656 LLVM_HAS_POLLY 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 HOST_ARCH 678 ENDIAN 679 GREP 680 EGREP 681 LLVM_CROSS_COMPILING 682 BUILD_CC 683 BUILD_EXEEXT 684 BUILD_CXX 685 CVSBUILD 686 ENABLE_LIBCPP 687 ENABLE_CXX11 688 ENABLE_SPLIT_DWARF 689 ENABLE_CLANG_ARCMT 690 ENABLE_CLANG_STATIC_ANALYZER 691 ENABLE_CLANG_REWRITER 692 ENABLE_OPTIMIZED 693 ENABLE_PROFILING 694 DISABLE_ASSERTIONS 695 ENABLE_WERROR 696 ENABLE_EXPENSIVE_CHECKS 697 EXPENSIVE_CHECKS 698 DEBUG_RUNTIME 699 DEBUG_SYMBOLS 700 KEEP_SYMBOLS 701 JIT 702 TARGET_HAS_JIT 703 ENABLE_DOCS 704 ENABLE_DOXYGEN 705 LLVM_ENABLE_THREADS 706 ENABLE_PTHREADS 707 LLVM_ENABLE_ZLIB 708 ENABLE_PIC 709 ENABLE_SHARED 710 ENABLE_EMBED_STDCXX 711 ENABLE_TIMESTAMPS 712 ENABLE_BACKTRACES 713 TARGETS_TO_BUILD 714 LLVM_ENUM_TARGETS 715 LLVM_ENUM_ASM_PRINTERS 716 LLVM_ENUM_ASM_PARSERS 717 LLVM_ENUM_DISASSEMBLERS 718 OPTIMIZE_OPTION 719 EXTRA_OPTIONS 720 EXTRA_LD_OPTIONS 721 CLANG_SRC_ROOT 722 BINUTILS_INCDIR 723 INTERNAL_PREFIX 724 NM 725 ifGNUmake 726 LN_S 727 CMP 728 CP 729 DATE 730 FIND 731 MKDIR 732 MV 733 RANLIB 734 AR 735 RM 736 SED 737 TAR 738 BINPWD 739 GRAPHVIZ 740 DOT 741 FDP 742 NEATO 743 TWOPI 744 CIRCO 745 GV 746 DOTTY 747 XDOT 748 INSTALL_PROGRAM 749 INSTALL_SCRIPT 750 INSTALL_DATA 751 BZIP2 752 CAT 753 DOXYGEN 754 GROFF 755 GZIPBIN 756 PDFROFF 757 ZIP 758 OCAMLC 759 OCAMLOPT 760 OCAMLDEP 761 OCAMLDOC 762 GAS 763 HAVE_LINK_VERSION_SCRIPT 764 INSTALL_LTDL_TRUE 765 INSTALL_LTDL_FALSE 766 CONVENIENCE_LTDL_TRUE 767 CONVENIENCE_LTDL_FALSE 768 LIBADD_DL 769 NO_VARIADIC_MACROS 770 NO_MISSING_FIELD_INITIALIZERS 771 COVERED_SWITCH_DEFAULT 772 NO_MAYBE_UNINITIALIZED 773 NO_UNINITIALIZED 774 PYTHON 775 USE_UDIS86 776 USE_OPROFILE 777 USE_INTEL_JITEVENTS 778 XML2CONFIG 779 LIBXML2_LIBS 780 LIBXML2_INC 781 CXXCPP 782 HAVE_PTHREAD 783 HAVE_LIBZ 784 HUGE_VAL_SANITY 785 MMAP_FILE 786 SHLIBEXT 787 SHLIBPATH_VAR 788 LLVM_PREFIX 789 LLVM_BINDIR 790 LLVM_DATADIR 791 LLVM_DOCSDIR 792 LLVM_ETCDIR 793 LLVM_INCLUDEDIR 794 LLVM_INFODIR 795 LLVM_MANDIR 796 LLVM_CONFIGTIME 797 BINDINGS_TO_BUILD 798 ALL_BINDINGS 799 OCAML_LIBDIR 800 ENABLE_VISIBILITY_INLINES_HIDDEN 801 RPATH 802 RDYNAMIC 803 program_prefix 804 LIBOBJS 805 LTLIBOBJS' 806 ac_subst_files='' 807 ac_precious_vars='build_alias 808 host_alias 809 target_alias 810 CC 811 CFLAGS 812 LDFLAGS 813 CPPFLAGS 814 CXX 815 CXXFLAGS 816 CCC 817 CPP 818 CXXCPP' 819 ac_subdirs_all='projects/llvm-gcc 820 projects/test-suite 821 projects/llvm-test 822 projects/poolalloc 823 projects/llvm-poolalloc 824 projects/sample 825 projects/privbracket 826 projects/llvm-stacker 827 projects/llvm-reopt 828 projects/llvm-java 829 projects/llvm-tv 830 projects/safecode 831 projects/llvm-kernel 832 tools/polly' 833 834 # Initialize some variables set by options. 835 ac_init_help= 836 ac_init_version=false 837 # The variables have the same names as the options, with 838 # dashes changed to underlines. 839 cache_file=/dev/null 840 exec_prefix=NONE 841 no_create= 842 no_recursion= 843 prefix=NONE 844 program_prefix=NONE 845 program_suffix=NONE 846 program_transform_name=s,x,x, 847 silent= 848 site= 849 srcdir= 850 verbose= 851 x_includes=NONE 852 x_libraries=NONE 853 854 # Installation directory options. 855 # These are left unexpanded so users can "make install exec_prefix=/foo" 856 # and all the variables that are supposed to be based on exec_prefix 857 # by default will actually change. 858 # Use braces instead of parens because sh, perl, etc. also accept them. 859 # (The list follows the same order as the GNU Coding Standards.) 860 bindir='${exec_prefix}/bin' 861 sbindir='${exec_prefix}/sbin' 862 libexecdir='${exec_prefix}/libexec' 863 datarootdir='${prefix}/share' 864 datadir='${datarootdir}' 865 sysconfdir='${prefix}/etc' 866 sharedstatedir='${prefix}/com' 867 localstatedir='${prefix}/var' 868 includedir='${prefix}/include' 869 oldincludedir='/usr/include' 870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 871 infodir='${datarootdir}/info' 872 htmldir='${docdir}' 873 dvidir='${docdir}' 874 pdfdir='${docdir}' 875 psdir='${docdir}' 876 libdir='${exec_prefix}/lib' 877 localedir='${datarootdir}/locale' 878 mandir='${datarootdir}/man' 879 880 ac_prev= 881 ac_dashdash= 882 for ac_option 883 do 884 # If the previous option needs an argument, assign it. 885 if test -n "$ac_prev"; then 886 eval $ac_prev=\$ac_option 887 ac_prev= 888 continue 889 fi 890 891 case $ac_option in 892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 893 *) ac_optarg=yes ;; 894 esac 895 896 # Accept the important Cygnus configure options, so we can diagnose typos. 897 898 case $ac_dashdash$ac_option in 899 --) 900 ac_dashdash=yes ;; 901 902 -bindir | --bindir | --bindi | --bind | --bin | --bi) 903 ac_prev=bindir ;; 904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 905 bindir=$ac_optarg ;; 906 907 -build | --build | --buil | --bui | --bu) 908 ac_prev=build_alias ;; 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 910 build_alias=$ac_optarg ;; 911 912 -cache-file | --cache-file | --cache-fil | --cache-fi \ 913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 914 ac_prev=cache_file ;; 915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 917 cache_file=$ac_optarg ;; 918 919 --config-cache | -C) 920 cache_file=config.cache ;; 921 922 -datadir | --datadir | --datadi | --datad) 923 ac_prev=datadir ;; 924 -datadir=* | --datadir=* | --datadi=* | --datad=*) 925 datadir=$ac_optarg ;; 926 927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 928 | --dataroo | --dataro | --datar) 929 ac_prev=datarootdir ;; 930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 932 datarootdir=$ac_optarg ;; 933 934 -disable-* | --disable-*) 935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 939 { (exit 1); exit 1; }; } 940 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 941 eval enable_$ac_feature=no ;; 942 943 -docdir | --docdir | --docdi | --doc | --do) 944 ac_prev=docdir ;; 945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 946 docdir=$ac_optarg ;; 947 948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 949 ac_prev=dvidir ;; 950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 951 dvidir=$ac_optarg ;; 952 953 -enable-* | --enable-*) 954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 958 { (exit 1); exit 1; }; } 959 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 960 eval enable_$ac_feature=\$ac_optarg ;; 961 962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964 | --exec | --exe | --ex) 965 ac_prev=exec_prefix ;; 966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968 | --exec=* | --exe=* | --ex=*) 969 exec_prefix=$ac_optarg ;; 970 971 -gas | --gas | --ga | --g) 972 # Obsolete; use --with-gas. 973 with_gas=yes ;; 974 975 -help | --help | --hel | --he | -h) 976 ac_init_help=long ;; 977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978 ac_init_help=recursive ;; 979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980 ac_init_help=short ;; 981 982 -host | --host | --hos | --ho) 983 ac_prev=host_alias ;; 984 -host=* | --host=* | --hos=* | --ho=*) 985 host_alias=$ac_optarg ;; 986 987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988 ac_prev=htmldir ;; 989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990 | --ht=*) 991 htmldir=$ac_optarg ;; 992 993 -includedir | --includedir | --includedi | --included | --include \ 994 | --includ | --inclu | --incl | --inc) 995 ac_prev=includedir ;; 996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997 | --includ=* | --inclu=* | --incl=* | --inc=*) 998 includedir=$ac_optarg ;; 999 1000 -infodir | --infodir | --infodi | --infod | --info | --inf) 1001 ac_prev=infodir ;; 1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003 infodir=$ac_optarg ;; 1004 1005 -libdir | --libdir | --libdi | --libd) 1006 ac_prev=libdir ;; 1007 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008 libdir=$ac_optarg ;; 1009 1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011 | --libexe | --libex | --libe) 1012 ac_prev=libexecdir ;; 1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014 | --libexe=* | --libex=* | --libe=*) 1015 libexecdir=$ac_optarg ;; 1016 1017 -localedir | --localedir | --localedi | --localed | --locale) 1018 ac_prev=localedir ;; 1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020 localedir=$ac_optarg ;; 1021 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023 | --localstate | --localstat | --localsta | --localst | --locals) 1024 ac_prev=localstatedir ;; 1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027 localstatedir=$ac_optarg ;; 1028 1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030 ac_prev=mandir ;; 1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032 mandir=$ac_optarg ;; 1033 1034 -nfp | --nfp | --nf) 1035 # Obsolete; use --without-fp. 1036 with_fp=no ;; 1037 1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039 | --no-cr | --no-c | -n) 1040 no_create=yes ;; 1041 1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044 no_recursion=yes ;; 1045 1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048 | --oldin | --oldi | --old | --ol | --o) 1049 ac_prev=oldincludedir ;; 1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053 oldincludedir=$ac_optarg ;; 1054 1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056 ac_prev=prefix ;; 1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058 prefix=$ac_optarg ;; 1059 1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061 | --program-pre | --program-pr | --program-p) 1062 ac_prev=program_prefix ;; 1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065 program_prefix=$ac_optarg ;; 1066 1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068 | --program-suf | --program-su | --program-s) 1069 ac_prev=program_suffix ;; 1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072 program_suffix=$ac_optarg ;; 1073 1074 -program-transform-name | --program-transform-name \ 1075 | --program-transform-nam | --program-transform-na \ 1076 | --program-transform-n | --program-transform- \ 1077 | --program-transform | --program-transfor \ 1078 | --program-transfo | --program-transf \ 1079 | --program-trans | --program-tran \ 1080 | --progr-tra | --program-tr | --program-t) 1081 ac_prev=program_transform_name ;; 1082 -program-transform-name=* | --program-transform-name=* \ 1083 | --program-transform-nam=* | --program-transform-na=* \ 1084 | --program-transform-n=* | --program-transform-=* \ 1085 | --program-transform=* | --program-transfor=* \ 1086 | --program-transfo=* | --program-transf=* \ 1087 | --program-trans=* | --program-tran=* \ 1088 | --progr-tra=* | --program-tr=* | --program-t=*) 1089 program_transform_name=$ac_optarg ;; 1090 1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092 ac_prev=pdfdir ;; 1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094 pdfdir=$ac_optarg ;; 1095 1096 -psdir | --psdir | --psdi | --psd | --ps) 1097 ac_prev=psdir ;; 1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099 psdir=$ac_optarg ;; 1100 1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102 | -silent | --silent | --silen | --sile | --sil) 1103 silent=yes ;; 1104 1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106 ac_prev=sbindir ;; 1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108 | --sbi=* | --sb=*) 1109 sbindir=$ac_optarg ;; 1110 1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113 | --sharedst | --shareds | --shared | --share | --shar \ 1114 | --sha | --sh) 1115 ac_prev=sharedstatedir ;; 1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119 | --sha=* | --sh=*) 1120 sharedstatedir=$ac_optarg ;; 1121 1122 -site | --site | --sit) 1123 ac_prev=site ;; 1124 -site=* | --site=* | --sit=*) 1125 site=$ac_optarg ;; 1126 1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128 ac_prev=srcdir ;; 1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130 srcdir=$ac_optarg ;; 1131 1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133 | --syscon | --sysco | --sysc | --sys | --sy) 1134 ac_prev=sysconfdir ;; 1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137 sysconfdir=$ac_optarg ;; 1138 1139 -target | --target | --targe | --targ | --tar | --ta | --t) 1140 ac_prev=target_alias ;; 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142 target_alias=$ac_optarg ;; 1143 1144 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145 verbose=yes ;; 1146 1147 -version | --version | --versio | --versi | --vers | -V) 1148 ac_init_version=: ;; 1149 1150 -with-* | --with-*) 1151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1154 { echo "$as_me: error: invalid package name: $ac_package" >&2 1155 { (exit 1); exit 1; }; } 1156 ac_package=`echo $ac_package| sed 's/-/_/g'` 1157 eval with_$ac_package=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1163 { echo "$as_me: error: invalid package name: $ac_package" >&2 1164 { (exit 1); exit 1; }; } 1165 ac_package=`echo $ac_package | sed 's/-/_/g'` 1166 eval with_$ac_package=no ;; 1167 1168 --x) 1169 # Obsolete; use --with-x. 1170 with_x=yes ;; 1171 1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1173 | --x-incl | --x-inc | --x-in | --x-i) 1174 ac_prev=x_includes ;; 1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1177 x_includes=$ac_optarg ;; 1178 1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1181 ac_prev=x_libraries ;; 1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 x_libraries=$ac_optarg ;; 1185 1186 -*) { echo "$as_me: error: unrecognized option: $ac_option 1187 Try \`$0 --help' for more information." >&2 1188 { (exit 1); exit 1; }; } 1189 ;; 1190 1191 *=*) 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1193 # Reject names that are not valid shell variable names. 1194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1196 { (exit 1); exit 1; }; } 1197 eval $ac_envvar=\$ac_optarg 1198 export $ac_envvar ;; 1199 1200 *) 1201 # FIXME: should be removed in autoconf 3.0. 1202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1206 ;; 1207 1208 esac 1209 done 1210 1211 if test -n "$ac_prev"; then 1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 { echo "$as_me: error: missing argument to $ac_option" >&2 1214 { (exit 1); exit 1; }; } 1215 fi 1216 1217 # Be sure to have absolute directory names. 1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1219 datadir sysconfdir sharedstatedir localstatedir includedir \ 1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1221 libdir localedir mandir 1222 do 1223 eval ac_val=\$$ac_var 1224 case $ac_val in 1225 [\\/$]* | ?:[\\/]* ) continue;; 1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1227 esac 1228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1229 { (exit 1); exit 1; }; } 1230 done 1231 1232 # There might be people who depend on the old broken behavior: `$host' 1233 # used to hold the argument of --host etc. 1234 # FIXME: To remove some day. 1235 build=$build_alias 1236 host=$host_alias 1237 target=$target_alias 1238 1239 # FIXME: To remove some day. 1240 if test "x$host_alias" != x; then 1241 if test "x$build_alias" = x; then 1242 cross_compiling=maybe 1243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1244 If a cross compiler is detected then cross compile mode will be used." >&2 1245 elif test "x$build_alias" != "x$host_alias"; then 1246 cross_compiling=yes 1247 fi 1248 fi 1249 1250 ac_tool_prefix= 1251 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1252 1253 test "$silent" = yes && exec 6>/dev/null 1254 1255 1256 ac_pwd=`pwd` && test -n "$ac_pwd" && 1257 ac_ls_di=`ls -di .` && 1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1259 { echo "$as_me: error: Working directory cannot be determined" >&2 1260 { (exit 1); exit 1; }; } 1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1262 { echo "$as_me: error: pwd does not report name of working directory" >&2 1263 { (exit 1); exit 1; }; } 1264 1265 1266 # Find the source files, if location was not specified. 1267 if test -z "$srcdir"; then 1268 ac_srcdir_defaulted=yes 1269 # Try the directory containing this script, then the parent directory. 1270 ac_confdir=`$as_dirname -- "$0" || 1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1272 X"$0" : 'X\(//\)[^/]' \| \ 1273 X"$0" : 'X\(//\)$' \| \ 1274 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1275 echo X"$0" | 1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)[^/].*/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\).*/{ 1289 s//\1/ 1290 q 1291 } 1292 s/.*/./; q'` 1293 srcdir=$ac_confdir 1294 if test ! -r "$srcdir/$ac_unique_file"; then 1295 srcdir=.. 1296 fi 1297 else 1298 ac_srcdir_defaulted=no 1299 fi 1300 if test ! -r "$srcdir/$ac_unique_file"; then 1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1303 { (exit 1); exit 1; }; } 1304 fi 1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1306 ac_abs_confdir=`( 1307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1308 { (exit 1); exit 1; }; } 1309 pwd)` 1310 # When building in place, set srcdir=. 1311 if test "$ac_abs_confdir" = "$ac_pwd"; then 1312 srcdir=. 1313 fi 1314 # Remove unnecessary trailing slashes from srcdir. 1315 # Double slashes in file names in object file debugging info 1316 # mess up M-x gdb in Emacs. 1317 case $srcdir in 1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1319 esac 1320 for ac_var in $ac_precious_vars; do 1321 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_env_${ac_var}_value=\$${ac_var} 1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1325 done 1326 1327 # 1328 # Report the --help message. 1329 # 1330 if test "$ac_init_help" = "long"; then 1331 # Omit some internal or obsolete options to make the list less imposing. 1332 # This message is too long to be a string in the A/UX 3.1 sh. 1333 cat <<_ACEOF 1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems. 1335 1336 Usage: $0 [OPTION]... [VAR=VALUE]... 1337 1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1339 VAR=VALUE. See below for descriptions of some of the useful variables. 1340 1341 Defaults for the options are specified in brackets. 1342 1343 Configuration: 1344 -h, --help display this help and exit 1345 --help=short display options specific to this package 1346 --help=recursive display the short help of all the included packages 1347 -V, --version display version information and exit 1348 -q, --quiet, --silent do not print \`checking...' messages 1349 --cache-file=FILE cache test results in FILE [disabled] 1350 -C, --config-cache alias for \`--cache-file=config.cache' 1351 -n, --no-create do not create output files 1352 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1353 1354 Installation directories: 1355 --prefix=PREFIX install architecture-independent files in PREFIX 1356 [$ac_default_prefix] 1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1358 [PREFIX] 1359 1360 By default, \`make install' will install all the files in 1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1363 for instance \`--prefix=\$HOME'. 1364 1365 For better control, use the options below. 1366 1367 Fine tuning of the installation directories: 1368 --bindir=DIR user executables [EPREFIX/bin] 1369 --sbindir=DIR system admin executables [EPREFIX/sbin] 1370 --libexecdir=DIR program executables [EPREFIX/libexec] 1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1374 --libdir=DIR object code libraries [EPREFIX/lib] 1375 --includedir=DIR C header files [PREFIX/include] 1376 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1379 --infodir=DIR info documentation [DATAROOTDIR/info] 1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1381 --mandir=DIR man documentation [DATAROOTDIR/man] 1382 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1383 --htmldir=DIR html documentation [DOCDIR] 1384 --dvidir=DIR dvi documentation [DOCDIR] 1385 --pdfdir=DIR pdf documentation [DOCDIR] 1386 --psdir=DIR ps documentation [DOCDIR] 1387 _ACEOF 1388 1389 cat <<\_ACEOF 1390 1391 System types: 1392 --build=BUILD configure for building on BUILD [guessed] 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1394 --target=TARGET configure for building compilers for TARGET [HOST] 1395 _ACEOF 1396 fi 1397 1398 if test -n "$ac_init_help"; then 1399 case $ac_init_help in 1400 short | recursive ) echo "Configuration of LLVM 3.4svn:";; 1401 esac 1402 cat <<\_ACEOF 1403 1404 Optional Features: 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1407 --enable-polly Use polly if available (default is YES) 1408 --enable-libcpp Use libc++ if available (default is NO) 1409 --enable-cxx11 Use c++11 if available (default is NO) 1410 --enable-split-dwarf Use split-dwarf if available (default is NO) 1411 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1412 --enable-clang-static-analyzer 1413 Enable building of clang Static Analyzer (default is 1414 YES) 1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES) 1416 --enable-optimized Compile with optimizations enabled (default is NO) 1417 --enable-profiling Compile with profiling enabled (default is NO) 1418 --enable-assertions Compile with assertion checks enabled (default is 1419 YES) 1420 --enable-werror Compile with -Werror enabled (default is NO) 1421 --enable-expensive-checks 1422 Compile with expensive debug checks enabled (default 1423 is NO) 1424 --enable-debug-runtime Build runtime libs with debug symbols (default is 1425 NO) 1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1427 optimization is on and YES if it's off) 1428 --enable-keep-symbols Do not strip installed executables) 1429 --enable-jit Enable Just In Time Compiling (default is YES) 1430 --enable-docs Build documents (default is YES) 1431 --enable-doxygen Build doxygen documentation (default is NO) 1432 --enable-threads Use threads if available (default is YES) 1433 --enable-pthreads Use pthreads if available (default is YES) 1434 --enable-zlib Use zlib for compression/decompression if available 1435 (default is YES) 1436 --enable-pic Build LLVM with Position Independent Code (default 1437 is YES) 1438 --enable-shared Build a shared library and link tools against it 1439 (default is NO) 1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1441 Win32 DLL (default is NO) 1442 --enable-timestamps Enable embedding timestamp information in build 1443 (default is YES) 1444 --enable-backtraces Enable embedding backtraces on crash (default is 1445 YES) 1446 --enable-targets Build specific host targets: all or 1447 target1,target2,... Valid targets are: host, x86, 1448 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon, 1449 xcore, msp430, nvptx, systemz, r600, and cpp 1450 (default=all) 1451 --enable-experimental-targets 1452 Build experimental host targets: disable or 1453 target1,target2,... (default=disable) 1454 --enable-bindings Build specific language bindings: 1455 all,auto,none,{binding-name} (default=auto) 1456 --enable-curses Use curses for querying terminal infomation if 1457 available (default is YES) 1458 --enable-libffi Check for the presence of libffi (default is NO) 1459 --enable-ltdl-install install libltdl 1460 1461 Optional Packages: 1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1464 --with-optimize-option Select the compiler options to use for optimized 1465 builds 1466 --with-extra-options Specify additional options to compile LLVM with 1467 --with-extra-ld-options Specify additional options to link LLVM with 1468 --with-ocaml-libdir Specify install location for ocaml bindings (default 1469 is stdlib) 1470 --with-clang-srcdir Directory to the out-of-tree Clang source 1471 --with-clang-resource-dir 1472 Relative directory from the Clang binary for 1473 resource files 1474 --with-c-include-dirs Colon separated list of directories clang will 1475 search for headers 1476 --with-gcc-toolchain Directory where gcc is installed. 1477 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1478 --with-binutils-include Specify path to binutils/include/ containing 1479 plugin-api.h file for gold plugin. 1480 --with-bug-report-url Specify the URL where bug reports should be 1481 submitted (default=http://llvm.org/bugs/) 1482 --with-internal-prefix Installation directory for internal files 1483 --with-python path to python 1484 --with-udis86=<path> Use udis86 external x86 disassembler library 1485 --with-oprofile=<prefix> 1486 Tell OProfile >= 0.9.4 how to symbolize JIT output 1487 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1488 1489 1490 Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1496 you have headers in a nonstandard directory <include dir> 1497 CXX C++ compiler command 1498 CXXFLAGS C++ compiler flags 1499 CPP C preprocessor 1500 CXXCPP C++ preprocessor 1501 1502 Use these variables to override the choices made by `configure' or to help 1503 it to find libraries and programs with nonstandard names/locations. 1504 1505 Report bugs to <http://llvm.org/bugs/>. 1506 _ACEOF 1507 ac_status=$? 1508 fi 1509 1510 if test "$ac_init_help" = "recursive"; then 1511 # If there are subdirs, report their specific --help. 1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1513 test -d "$ac_dir" || continue 1514 ac_builddir=. 1515 1516 case "$ac_dir" in 1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1518 *) 1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1520 # A ".." for each directory in $ac_dir_suffix. 1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1522 case $ac_top_builddir_sub in 1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1525 esac ;; 1526 esac 1527 ac_abs_top_builddir=$ac_pwd 1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1529 # for backward compatibility: 1530 ac_top_builddir=$ac_top_build_prefix 1531 1532 case $srcdir in 1533 .) # We are building in place. 1534 ac_srcdir=. 1535 ac_top_srcdir=$ac_top_builddir_sub 1536 ac_abs_top_srcdir=$ac_pwd ;; 1537 [\\/]* | ?:[\\/]* ) # Absolute name. 1538 ac_srcdir=$srcdir$ac_dir_suffix; 1539 ac_top_srcdir=$srcdir 1540 ac_abs_top_srcdir=$srcdir ;; 1541 *) # Relative name. 1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1543 ac_top_srcdir=$ac_top_build_prefix$srcdir 1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1545 esac 1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1547 1548 cd "$ac_dir" || { ac_status=$?; continue; } 1549 # Check for guested configure. 1550 if test -f "$ac_srcdir/configure.gnu"; then 1551 echo && 1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1553 elif test -f "$ac_srcdir/configure"; then 1554 echo && 1555 $SHELL "$ac_srcdir/configure" --help=recursive 1556 else 1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1558 fi || ac_status=$? 1559 cd "$ac_pwd" || { ac_status=$?; break; } 1560 done 1561 fi 1562 1563 test -n "$ac_init_help" && exit $ac_status 1564 if $ac_init_version; then 1565 cat <<\_ACEOF 1566 LLVM configure 3.4svn 1567 generated by GNU Autoconf 2.60 1568 1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1571 This configure script is free software; the Free Software Foundation 1572 gives unlimited permission to copy, distribute and modify it. 1573 1574 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 1575 _ACEOF 1576 exit 1577 fi 1578 cat >config.log <<_ACEOF 1579 This file contains any messages produced by compilers while 1580 running configure, to aid debugging if configure makes a mistake. 1581 1582 It was created by LLVM $as_me 3.4svn, which was 1583 generated by GNU Autoconf 2.60. Invocation command line was 1584 1585 $ $0 $@ 1586 1587 _ACEOF 1588 exec 5>>config.log 1589 { 1590 cat <<_ASUNAME 1591 ## --------- ## 1592 ## Platform. ## 1593 ## --------- ## 1594 1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1596 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1597 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1598 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1599 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1600 1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1603 1604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1611 1612 _ASUNAME 1613 1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1615 for as_dir in $PATH 1616 do 1617 IFS=$as_save_IFS 1618 test -z "$as_dir" && as_dir=. 1619 echo "PATH: $as_dir" 1620 done 1621 IFS=$as_save_IFS 1622 1623 } >&5 1624 1625 cat >&5 <<_ACEOF 1626 1627 1628 ## ----------- ## 1629 ## Core tests. ## 1630 ## ----------- ## 1631 1632 _ACEOF 1633 1634 1635 # Keep a trace of the command line. 1636 # Strip out --no-create and --no-recursion so they do not pile up. 1637 # Strip out --silent because we don't want to record it for future runs. 1638 # Also quote any args containing shell meta-characters. 1639 # Make two passes to allow for proper duplicate-argument suppression. 1640 ac_configure_args= 1641 ac_configure_args0= 1642 ac_configure_args1= 1643 ac_must_keep_next=false 1644 for ac_pass in 1 2 1645 do 1646 for ac_arg 1647 do 1648 case $ac_arg in 1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1651 | -silent | --silent | --silen | --sile | --sil) 1652 continue ;; 1653 *\'*) 1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1655 esac 1656 case $ac_pass in 1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1658 2) 1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1660 if test $ac_must_keep_next = true; then 1661 ac_must_keep_next=false # Got value, back to normal. 1662 else 1663 case $ac_arg in 1664 *=* | --config-cache | -C | -disable-* | --disable-* \ 1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1667 | -with-* | --with-* | -without-* | --without-* | --x) 1668 case "$ac_configure_args0 " in 1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1670 esac 1671 ;; 1672 -* ) ac_must_keep_next=true ;; 1673 esac 1674 fi 1675 ac_configure_args="$ac_configure_args '$ac_arg'" 1676 ;; 1677 esac 1678 done 1679 done 1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1682 1683 # When interrupted or exit'd, cleanup temporary files, and complete 1684 # config.log. We remove comments because anyway the quotes in there 1685 # would cause problems or look ugly. 1686 # WARNING: Use '\'' to represent an apostrophe within the trap. 1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1688 trap 'exit_status=$? 1689 # Save into config.log some information that might help in debugging. 1690 { 1691 echo 1692 1693 cat <<\_ASBOX 1694 ## ---------------- ## 1695 ## Cache variables. ## 1696 ## ---------------- ## 1697 _ASBOX 1698 echo 1699 # The following way of writing the cache mishandles newlines in values, 1700 ( 1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1702 eval ac_val=\$$ac_var 1703 case $ac_val in #( 1704 *${as_nl}*) 1705 case $ac_var in #( 1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1708 esac 1709 case $ac_var in #( 1710 _ | IFS | as_nl) ;; #( 1711 *) $as_unset $ac_var ;; 1712 esac ;; 1713 esac 1714 done 1715 (set) 2>&1 | 1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1717 *${as_nl}ac_space=\ *) 1718 sed -n \ 1719 "s/'\''/'\''\\\\'\'''\''/g; 1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1721 ;; #( 1722 *) 1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1724 ;; 1725 esac | 1726 sort 1727 ) 1728 echo 1729 1730 cat <<\_ASBOX 1731 ## ----------------- ## 1732 ## Output variables. ## 1733 ## ----------------- ## 1734 _ASBOX 1735 echo 1736 for ac_var in $ac_subst_vars 1737 do 1738 eval ac_val=\$$ac_var 1739 case $ac_val in 1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1741 esac 1742 echo "$ac_var='\''$ac_val'\''" 1743 done | sort 1744 echo 1745 1746 if test -n "$ac_subst_files"; then 1747 cat <<\_ASBOX 1748 ## ------------------- ## 1749 ## File substitutions. ## 1750 ## ------------------- ## 1751 _ASBOX 1752 echo 1753 for ac_var in $ac_subst_files 1754 do 1755 eval ac_val=\$$ac_var 1756 case $ac_val in 1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1758 esac 1759 echo "$ac_var='\''$ac_val'\''" 1760 done | sort 1761 echo 1762 fi 1763 1764 if test -s confdefs.h; then 1765 cat <<\_ASBOX 1766 ## ----------- ## 1767 ## confdefs.h. ## 1768 ## ----------- ## 1769 _ASBOX 1770 echo 1771 cat confdefs.h 1772 echo 1773 fi 1774 test "$ac_signal" != 0 && 1775 echo "$as_me: caught signal $ac_signal" 1776 echo "$as_me: exit $exit_status" 1777 } >&5 1778 rm -f core *.core core.conftest.* && 1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1780 exit $exit_status 1781 ' 0 1782 for ac_signal in 1 2 13 15; do 1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1784 done 1785 ac_signal=0 1786 1787 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1788 rm -f -r conftest* confdefs.h 1789 1790 # Predefined preprocessor variables. 1791 1792 cat >>confdefs.h <<_ACEOF 1793 #define PACKAGE_NAME "$PACKAGE_NAME" 1794 _ACEOF 1795 1796 1797 cat >>confdefs.h <<_ACEOF 1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1799 _ACEOF 1800 1801 1802 cat >>confdefs.h <<_ACEOF 1803 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1804 _ACEOF 1805 1806 1807 cat >>confdefs.h <<_ACEOF 1808 #define PACKAGE_STRING "$PACKAGE_STRING" 1809 _ACEOF 1810 1811 1812 cat >>confdefs.h <<_ACEOF 1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1814 _ACEOF 1815 1816 1817 # Let the site file select an alternate cache file if it wants to. 1818 # Prefer explicitly selected file to automatically selected ones. 1819 if test -n "$CONFIG_SITE"; then 1820 set x "$CONFIG_SITE" 1821 elif test "x$prefix" != xNONE; then 1822 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1823 else 1824 set x "$ac_default_prefix/share/config.site" \ 1825 "$ac_default_prefix/etc/config.site" 1826 fi 1827 shift 1828 for ac_site_file 1829 do 1830 if test -r "$ac_site_file"; then 1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1832 echo "$as_me: loading site script $ac_site_file" >&6;} 1833 sed 's/^/| /' "$ac_site_file" >&5 1834 . "$ac_site_file" 1835 fi 1836 done 1837 1838 if test -r "$cache_file"; then 1839 # Some versions of bash will fail to source /dev/null (special 1840 # files actually), so we avoid doing that. 1841 if test -f "$cache_file"; then 1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1843 echo "$as_me: loading cache $cache_file" >&6;} 1844 case $cache_file in 1845 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1846 *) . "./$cache_file";; 1847 esac 1848 fi 1849 else 1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1851 echo "$as_me: creating cache $cache_file" >&6;} 1852 >$cache_file 1853 fi 1854 1855 # Check that the precious variables saved in the cache have kept the same 1856 # value. 1857 ac_cache_corrupted=false 1858 for ac_var in $ac_precious_vars; do 1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1860 eval ac_new_set=\$ac_env_${ac_var}_set 1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1862 eval ac_new_val=\$ac_env_${ac_var}_value 1863 case $ac_old_set,$ac_new_set in 1864 set,) 1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1867 ac_cache_corrupted=: ;; 1868 ,set) 1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1871 ac_cache_corrupted=: ;; 1872 ,);; 1873 *) 1874 if test "x$ac_old_val" != "x$ac_new_val"; then 1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1878 echo "$as_me: former value: $ac_old_val" >&2;} 1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1880 echo "$as_me: current value: $ac_new_val" >&2;} 1881 ac_cache_corrupted=: 1882 fi;; 1883 esac 1884 # Pass precious variables to config.status. 1885 if test "$ac_new_set" = set; then 1886 case $ac_new_val in 1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1888 *) ac_arg=$ac_var=$ac_new_val ;; 1889 esac 1890 case " $ac_configure_args " in 1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1893 esac 1894 fi 1895 done 1896 if $ac_cache_corrupted; then 1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1901 { (exit 1); exit 1; }; } 1902 fi 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 ac_ext=c 1929 ac_cpp='$CPP $CPPFLAGS' 1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1933 1934 1935 1936 cat >>confdefs.h <<\_ACEOF 1937 #define LLVM_VERSION_MAJOR 3 1938 _ACEOF 1939 1940 1941 cat >>confdefs.h <<\_ACEOF 1942 #define LLVM_VERSION_MINOR 4 1943 _ACEOF 1944 1945 1946 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign." 1947 1948 1949 1950 1951 1952 1953 1954 ac_aux_dir= 1955 for ac_dir in autoconf "$srcdir"/autoconf; do 1956 if test -f "$ac_dir/install-sh"; then 1957 ac_aux_dir=$ac_dir 1958 ac_install_sh="$ac_aux_dir/install-sh -c" 1959 break 1960 elif test -f "$ac_dir/install.sh"; then 1961 ac_aux_dir=$ac_dir 1962 ac_install_sh="$ac_aux_dir/install.sh -c" 1963 break 1964 elif test -f "$ac_dir/shtool"; then 1965 ac_aux_dir=$ac_dir 1966 ac_install_sh="$ac_aux_dir/shtool install -c" 1967 break 1968 fi 1969 done 1970 if test -z "$ac_aux_dir"; then 1971 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1972 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1973 { (exit 1); exit 1; }; } 1974 fi 1975 1976 # These three variables are undocumented and unsupported, 1977 # and are intended to be withdrawn in a future Autoconf release. 1978 # They can cause serious problems if a builder's source tree is in a directory 1979 # whose full name contains unusual characters. 1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1982 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1983 1984 1985 1986 if test ${srcdir} != "." ; then 1987 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1988 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1989 echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1990 { (exit 1); exit 1; }; } 1991 fi 1992 fi 1993 1994 ${CFLAGS=} 1995 ${CXXFLAGS=} 1996 1997 ac_ext=c 1998 ac_cpp='$CPP $CPPFLAGS' 1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2002 if test -n "$ac_tool_prefix"; then 2003 for ac_prog in clang llvm-gcc gcc 2004 do 2005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2007 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2009 if test "${ac_cv_prog_CC+set}" = set; then 2010 echo $ECHO_N "(cached) $ECHO_C" >&6 2011 else 2012 if test -n "$CC"; then 2013 ac_cv_prog_CC="$CC" # Let the user override the test. 2014 else 2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2016 for as_dir in $PATH 2017 do 2018 IFS=$as_save_IFS 2019 test -z "$as_dir" && as_dir=. 2020 for ac_exec_ext in '' $ac_executable_extensions; do 2021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2024 break 2 2025 fi 2026 done 2027 done 2028 IFS=$as_save_IFS 2029 2030 fi 2031 fi 2032 CC=$ac_cv_prog_CC 2033 if test -n "$CC"; then 2034 { echo "$as_me:$LINENO: result: $CC" >&5 2035 echo "${ECHO_T}$CC" >&6; } 2036 else 2037 { echo "$as_me:$LINENO: result: no" >&5 2038 echo "${ECHO_T}no" >&6; } 2039 fi 2040 2041 2042 test -n "$CC" && break 2043 done 2044 fi 2045 if test -z "$CC"; then 2046 ac_ct_CC=$CC 2047 for ac_prog in clang llvm-gcc gcc 2048 do 2049 # Extract the first word of "$ac_prog", so it can be a program name with args. 2050 set dummy $ac_prog; ac_word=$2 2051 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2054 echo $ECHO_N "(cached) $ECHO_C" >&6 2055 else 2056 if test -n "$ac_ct_CC"; then 2057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2058 else 2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2060 for as_dir in $PATH 2061 do 2062 IFS=$as_save_IFS 2063 test -z "$as_dir" && as_dir=. 2064 for ac_exec_ext in '' $ac_executable_extensions; do 2065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2066 ac_cv_prog_ac_ct_CC="$ac_prog" 2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2068 break 2 2069 fi 2070 done 2071 done 2072 IFS=$as_save_IFS 2073 2074 fi 2075 fi 2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2077 if test -n "$ac_ct_CC"; then 2078 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2079 echo "${ECHO_T}$ac_ct_CC" >&6; } 2080 else 2081 { echo "$as_me:$LINENO: result: no" >&5 2082 echo "${ECHO_T}no" >&6; } 2083 fi 2084 2085 2086 test -n "$ac_ct_CC" && break 2087 done 2088 2089 if test "x$ac_ct_CC" = x; then 2090 CC="" 2091 else 2092 case $cross_compiling:$ac_tool_warned in 2093 yes:) 2094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2095 whose name does not start with the host triplet. If you think this 2096 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2098 whose name does not start with the host triplet. If you think this 2099 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2100 ac_tool_warned=yes ;; 2101 esac 2102 CC=$ac_ct_CC 2103 fi 2104 fi 2105 2106 2107 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2108 See \`config.log' for more details." >&5 2109 echo "$as_me: error: no acceptable C compiler found in \$PATH 2110 See \`config.log' for more details." >&2;} 2111 { (exit 1); exit 1; }; } 2112 2113 # Provide some information about the compiler. 2114 echo "$as_me:$LINENO: checking for C compiler version" >&5 2115 ac_compiler=`set X $ac_compile; echo $2` 2116 { (ac_try="$ac_compiler --version >&5" 2117 case "(($ac_try" in 2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2119 *) ac_try_echo=$ac_try;; 2120 esac 2121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2122 (eval "$ac_compiler --version >&5") 2>&5 2123 ac_status=$? 2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2125 (exit $ac_status); } 2126 { (ac_try="$ac_compiler -v >&5" 2127 case "(($ac_try" in 2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2129 *) ac_try_echo=$ac_try;; 2130 esac 2131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2132 (eval "$ac_compiler -v >&5") 2>&5 2133 ac_status=$? 2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2135 (exit $ac_status); } 2136 { (ac_try="$ac_compiler -V >&5" 2137 case "(($ac_try" in 2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2139 *) ac_try_echo=$ac_try;; 2140 esac 2141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2142 (eval "$ac_compiler -V >&5") 2>&5 2143 ac_status=$? 2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145 (exit $ac_status); } 2146 2147 cat >conftest.$ac_ext <<_ACEOF 2148 /* confdefs.h. */ 2149 _ACEOF 2150 cat confdefs.h >>conftest.$ac_ext 2151 cat >>conftest.$ac_ext <<_ACEOF 2152 /* end confdefs.h. */ 2153 2154 int 2155 main () 2156 { 2157 2158 ; 2159 return 0; 2160 } 2161 _ACEOF 2162 ac_clean_files_save=$ac_clean_files 2163 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2164 # Try to create an executable without -o first, disregard a.out. 2165 # It will help us diagnose broken compilers, and finding out an intuition 2166 # of exeext. 2167 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2170 # 2171 # List of possible output files, starting from the most likely. 2172 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2173 # only as a last resort. b.out is created by i960 compilers. 2174 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2175 # 2176 # The IRIX 6 linker writes into existing files which may not be 2177 # executable, retaining their permissions. Remove them first so a 2178 # subsequent execution test works. 2179 ac_rmfiles= 2180 for ac_file in $ac_files 2181 do 2182 case $ac_file in 2183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2184 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2185 esac 2186 done 2187 rm -f $ac_rmfiles 2188 2189 if { (ac_try="$ac_link_default" 2190 case "(($ac_try" in 2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2192 *) ac_try_echo=$ac_try;; 2193 esac 2194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2195 (eval "$ac_link_default") 2>&5 2196 ac_status=$? 2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2198 (exit $ac_status); }; then 2199 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2201 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2202 # so that the user can short-circuit this test for compilers unknown to 2203 # Autoconf. 2204 for ac_file in $ac_files 2205 do 2206 test -f "$ac_file" || continue 2207 case $ac_file in 2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2209 ;; 2210 [ab].out ) 2211 # We found the default executable, but exeext='' is most 2212 # certainly right. 2213 break;; 2214 *.* ) 2215 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2216 then :; else 2217 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2218 fi 2219 # We set ac_cv_exeext here because the later test for it is not 2220 # safe: cross compilers may not add the suffix if given an `-o' 2221 # argument, so we may need to know it at that point already. 2222 # Even if this section looks crufty: it has the advantage of 2223 # actually working. 2224 break;; 2225 * ) 2226 break;; 2227 esac 2228 done 2229 test "$ac_cv_exeext" = no && ac_cv_exeext= 2230 2231 else 2232 echo "$as_me: failed program was:" >&5 2233 sed 's/^/| /' conftest.$ac_ext >&5 2234 2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2236 See \`config.log' for more details." >&5 2237 echo "$as_me: error: C compiler cannot create executables 2238 See \`config.log' for more details." >&2;} 2239 { (exit 77); exit 77; }; } 2240 fi 2241 2242 ac_exeext=$ac_cv_exeext 2243 { echo "$as_me:$LINENO: result: $ac_file" >&5 2244 echo "${ECHO_T}$ac_file" >&6; } 2245 2246 # Check that the compiler produces executables we can run. If not, either 2247 # the compiler is broken, or we cross compile. 2248 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2251 # If not cross compiling, check that we can run a simple program. 2252 if test "$cross_compiling" != yes; then 2253 if { ac_try='./$ac_file' 2254 { (case "(($ac_try" in 2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2256 *) ac_try_echo=$ac_try;; 2257 esac 2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2259 (eval "$ac_try") 2>&5 2260 ac_status=$? 2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 (exit $ac_status); }; }; then 2263 cross_compiling=no 2264 else 2265 if test "$cross_compiling" = maybe; then 2266 cross_compiling=yes 2267 else 2268 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2269 If you meant to cross compile, use \`--host'. 2270 See \`config.log' for more details." >&5 2271 echo "$as_me: error: cannot run C compiled programs. 2272 If you meant to cross compile, use \`--host'. 2273 See \`config.log' for more details." >&2;} 2274 { (exit 1); exit 1; }; } 2275 fi 2276 fi 2277 fi 2278 { echo "$as_me:$LINENO: result: yes" >&5 2279 echo "${ECHO_T}yes" >&6; } 2280 2281 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2282 ac_clean_files=$ac_clean_files_save 2283 # Check that the compiler produces executables we can run. If not, either 2284 # the compiler is broken, or we cross compile. 2285 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2286 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2287 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2288 echo "${ECHO_T}$cross_compiling" >&6; } 2289 2290 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2291 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2292 if { (ac_try="$ac_link" 2293 case "(($ac_try" in 2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2295 *) ac_try_echo=$ac_try;; 2296 esac 2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2298 (eval "$ac_link") 2>&5 2299 ac_status=$? 2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2301 (exit $ac_status); }; then 2302 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2303 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2304 # work properly (i.e., refer to `conftest.exe'), while it won't with 2305 # `rm'. 2306 for ac_file in conftest.exe conftest conftest.*; do 2307 test -f "$ac_file" || continue 2308 case $ac_file in 2309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2310 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2311 break;; 2312 * ) break;; 2313 esac 2314 done 2315 else 2316 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2317 See \`config.log' for more details." >&5 2318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2319 See \`config.log' for more details." >&2;} 2320 { (exit 1); exit 1; }; } 2321 fi 2322 2323 rm -f conftest$ac_cv_exeext 2324 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2325 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2326 2327 rm -f conftest.$ac_ext 2328 EXEEXT=$ac_cv_exeext 2329 ac_exeext=$EXEEXT 2330 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2332 if test "${ac_cv_objext+set}" = set; then 2333 echo $ECHO_N "(cached) $ECHO_C" >&6 2334 else 2335 cat >conftest.$ac_ext <<_ACEOF 2336 /* confdefs.h. */ 2337 _ACEOF 2338 cat confdefs.h >>conftest.$ac_ext 2339 cat >>conftest.$ac_ext <<_ACEOF 2340 /* end confdefs.h. */ 2341 2342 int 2343 main () 2344 { 2345 2346 ; 2347 return 0; 2348 } 2349 _ACEOF 2350 rm -f conftest.o conftest.obj 2351 if { (ac_try="$ac_compile" 2352 case "(($ac_try" in 2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2354 *) ac_try_echo=$ac_try;; 2355 esac 2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2357 (eval "$ac_compile") 2>&5 2358 ac_status=$? 2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 (exit $ac_status); }; then 2361 for ac_file in conftest.o conftest.obj conftest.*; do 2362 test -f "$ac_file" || continue; 2363 case $ac_file in 2364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2365 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2366 break;; 2367 esac 2368 done 2369 else 2370 echo "$as_me: failed program was:" >&5 2371 sed 's/^/| /' conftest.$ac_ext >&5 2372 2373 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2374 See \`config.log' for more details." >&5 2375 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2376 See \`config.log' for more details." >&2;} 2377 { (exit 1); exit 1; }; } 2378 fi 2379 2380 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2381 fi 2382 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2383 echo "${ECHO_T}$ac_cv_objext" >&6; } 2384 OBJEXT=$ac_cv_objext 2385 ac_objext=$OBJEXT 2386 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2387 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2388 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2389 echo $ECHO_N "(cached) $ECHO_C" >&6 2390 else 2391 cat >conftest.$ac_ext <<_ACEOF 2392 /* confdefs.h. */ 2393 _ACEOF 2394 cat confdefs.h >>conftest.$ac_ext 2395 cat >>conftest.$ac_ext <<_ACEOF 2396 /* end confdefs.h. */ 2397 2398 int 2399 main () 2400 { 2401 #ifndef __GNUC__ 2402 choke me 2403 #endif 2404 2405 ; 2406 return 0; 2407 } 2408 _ACEOF 2409 rm -f conftest.$ac_objext 2410 if { (ac_try="$ac_compile" 2411 case "(($ac_try" in 2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2413 *) ac_try_echo=$ac_try;; 2414 esac 2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2416 (eval "$ac_compile") 2>conftest.er1 2417 ac_status=$? 2418 grep -v '^ *+' conftest.er1 >conftest.err 2419 rm -f conftest.er1 2420 cat conftest.err >&5 2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2422 (exit $ac_status); } && 2423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2424 { (case "(($ac_try" in 2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2426 *) ac_try_echo=$ac_try;; 2427 esac 2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2429 (eval "$ac_try") 2>&5 2430 ac_status=$? 2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2432 (exit $ac_status); }; } && 2433 { ac_try='test -s conftest.$ac_objext' 2434 { (case "(($ac_try" in 2435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2436 *) ac_try_echo=$ac_try;; 2437 esac 2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2439 (eval "$ac_try") 2>&5 2440 ac_status=$? 2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2442 (exit $ac_status); }; }; then 2443 ac_compiler_gnu=yes 2444 else 2445 echo "$as_me: failed program was:" >&5 2446 sed 's/^/| /' conftest.$ac_ext >&5 2447 2448 ac_compiler_gnu=no 2449 fi 2450 2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2452 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2453 2454 fi 2455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2457 GCC=`test $ac_compiler_gnu = yes && echo yes` 2458 ac_test_CFLAGS=${CFLAGS+set} 2459 ac_save_CFLAGS=$CFLAGS 2460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2462 if test "${ac_cv_prog_cc_g+set}" = set; then 2463 echo $ECHO_N "(cached) $ECHO_C" >&6 2464 else 2465 ac_save_c_werror_flag=$ac_c_werror_flag 2466 ac_c_werror_flag=yes 2467 ac_cv_prog_cc_g=no 2468 CFLAGS="-g" 2469 cat >conftest.$ac_ext <<_ACEOF 2470 /* confdefs.h. */ 2471 _ACEOF 2472 cat confdefs.h >>conftest.$ac_ext 2473 cat >>conftest.$ac_ext <<_ACEOF 2474 /* end confdefs.h. */ 2475 2476 int 2477 main () 2478 { 2479 2480 ; 2481 return 0; 2482 } 2483 _ACEOF 2484 rm -f conftest.$ac_objext 2485 if { (ac_try="$ac_compile" 2486 case "(($ac_try" in 2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2488 *) ac_try_echo=$ac_try;; 2489 esac 2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2491 (eval "$ac_compile") 2>conftest.er1 2492 ac_status=$? 2493 grep -v '^ *+' conftest.er1 >conftest.err 2494 rm -f conftest.er1 2495 cat conftest.err >&5 2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2497 (exit $ac_status); } && 2498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2499 { (case "(($ac_try" in 2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2501 *) ac_try_echo=$ac_try;; 2502 esac 2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2504 (eval "$ac_try") 2>&5 2505 ac_status=$? 2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2507 (exit $ac_status); }; } && 2508 { ac_try='test -s conftest.$ac_objext' 2509 { (case "(($ac_try" in 2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2511 *) ac_try_echo=$ac_try;; 2512 esac 2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2514 (eval "$ac_try") 2>&5 2515 ac_status=$? 2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2517 (exit $ac_status); }; }; then 2518 ac_cv_prog_cc_g=yes 2519 else 2520 echo "$as_me: failed program was:" >&5 2521 sed 's/^/| /' conftest.$ac_ext >&5 2522 2523 CFLAGS="" 2524 cat >conftest.$ac_ext <<_ACEOF 2525 /* confdefs.h. */ 2526 _ACEOF 2527 cat confdefs.h >>conftest.$ac_ext 2528 cat >>conftest.$ac_ext <<_ACEOF 2529 /* end confdefs.h. */ 2530 2531 int 2532 main () 2533 { 2534 2535 ; 2536 return 0; 2537 } 2538 _ACEOF 2539 rm -f conftest.$ac_objext 2540 if { (ac_try="$ac_compile" 2541 case "(($ac_try" in 2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2543 *) ac_try_echo=$ac_try;; 2544 esac 2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2546 (eval "$ac_compile") 2>conftest.er1 2547 ac_status=$? 2548 grep -v '^ *+' conftest.er1 >conftest.err 2549 rm -f conftest.er1 2550 cat conftest.err >&5 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); } && 2553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2554 { (case "(($ac_try" in 2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2556 *) ac_try_echo=$ac_try;; 2557 esac 2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2559 (eval "$ac_try") 2>&5 2560 ac_status=$? 2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2562 (exit $ac_status); }; } && 2563 { ac_try='test -s conftest.$ac_objext' 2564 { (case "(($ac_try" in 2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2566 *) ac_try_echo=$ac_try;; 2567 esac 2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2569 (eval "$ac_try") 2>&5 2570 ac_status=$? 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); }; }; then 2573 : 2574 else 2575 echo "$as_me: failed program was:" >&5 2576 sed 's/^/| /' conftest.$ac_ext >&5 2577 2578 ac_c_werror_flag=$ac_save_c_werror_flag 2579 CFLAGS="-g" 2580 cat >conftest.$ac_ext <<_ACEOF 2581 /* confdefs.h. */ 2582 _ACEOF 2583 cat confdefs.h >>conftest.$ac_ext 2584 cat >>conftest.$ac_ext <<_ACEOF 2585 /* end confdefs.h. */ 2586 2587 int 2588 main () 2589 { 2590 2591 ; 2592 return 0; 2593 } 2594 _ACEOF 2595 rm -f conftest.$ac_objext 2596 if { (ac_try="$ac_compile" 2597 case "(($ac_try" in 2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2599 *) ac_try_echo=$ac_try;; 2600 esac 2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2602 (eval "$ac_compile") 2>conftest.er1 2603 ac_status=$? 2604 grep -v '^ *+' conftest.er1 >conftest.err 2605 rm -f conftest.er1 2606 cat conftest.err >&5 2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2608 (exit $ac_status); } && 2609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2610 { (case "(($ac_try" in 2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2612 *) ac_try_echo=$ac_try;; 2613 esac 2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2615 (eval "$ac_try") 2>&5 2616 ac_status=$? 2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2618 (exit $ac_status); }; } && 2619 { ac_try='test -s conftest.$ac_objext' 2620 { (case "(($ac_try" in 2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2622 *) ac_try_echo=$ac_try;; 2623 esac 2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2625 (eval "$ac_try") 2>&5 2626 ac_status=$? 2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2628 (exit $ac_status); }; }; then 2629 ac_cv_prog_cc_g=yes 2630 else 2631 echo "$as_me: failed program was:" >&5 2632 sed 's/^/| /' conftest.$ac_ext >&5 2633 2634 2635 fi 2636 2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2638 fi 2639 2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2641 fi 2642 2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2644 ac_c_werror_flag=$ac_save_c_werror_flag 2645 fi 2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2648 if test "$ac_test_CFLAGS" = set; then 2649 CFLAGS=$ac_save_CFLAGS 2650 elif test $ac_cv_prog_cc_g = yes; then 2651 if test "$GCC" = yes; then 2652 CFLAGS="-g -O2" 2653 else 2654 CFLAGS="-g" 2655 fi 2656 else 2657 if test "$GCC" = yes; then 2658 CFLAGS="-O2" 2659 else 2660 CFLAGS= 2661 fi 2662 fi 2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2665 if test "${ac_cv_prog_cc_c89+set}" = set; then 2666 echo $ECHO_N "(cached) $ECHO_C" >&6 2667 else 2668 ac_cv_prog_cc_c89=no 2669 ac_save_CC=$CC 2670 cat >conftest.$ac_ext <<_ACEOF 2671 /* confdefs.h. */ 2672 _ACEOF 2673 cat confdefs.h >>conftest.$ac_ext 2674 cat >>conftest.$ac_ext <<_ACEOF 2675 /* end confdefs.h. */ 2676 #include <stdarg.h> 2677 #include <stdio.h> 2678 #include <sys/types.h> 2679 #include <sys/stat.h> 2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2681 struct buf { int x; }; 2682 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2683 static char *e (p, i) 2684 char **p; 2685 int i; 2686 { 2687 return p[i]; 2688 } 2689 static char *f (char * (*g) (char **, int), char **p, ...) 2690 { 2691 char *s; 2692 va_list v; 2693 va_start (v,p); 2694 s = g (p, va_arg (v,int)); 2695 va_end (v); 2696 return s; 2697 } 2698 2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2700 function prototypes and stuff, but not '\xHH' hex character constants. 2701 These don't provoke an error unfortunately, instead are silently treated 2702 as 'x'. The following induces an error, until -std is added to get 2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2704 array size at least. It's necessary to write '\x00'==0 to get something 2705 that's true only with -std. */ 2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2707 2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2709 inside strings and character constants. */ 2710 #define FOO(x) 'x' 2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2712 2713 int test (int i, double x); 2714 struct s1 {int (*f) (int a);}; 2715 struct s2 {int (*f) (double a);}; 2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2717 int argc; 2718 char **argv; 2719 int 2720 main () 2721 { 2722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2723 ; 2724 return 0; 2725 } 2726 _ACEOF 2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2729 do 2730 CC="$ac_save_CC $ac_arg" 2731 rm -f conftest.$ac_objext 2732 if { (ac_try="$ac_compile" 2733 case "(($ac_try" in 2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2735 *) ac_try_echo=$ac_try;; 2736 esac 2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2738 (eval "$ac_compile") 2>conftest.er1 2739 ac_status=$? 2740 grep -v '^ *+' conftest.er1 >conftest.err 2741 rm -f conftest.er1 2742 cat conftest.err >&5 2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2744 (exit $ac_status); } && 2745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2746 { (case "(($ac_try" in 2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2748 *) ac_try_echo=$ac_try;; 2749 esac 2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2751 (eval "$ac_try") 2>&5 2752 ac_status=$? 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); }; } && 2755 { ac_try='test -s conftest.$ac_objext' 2756 { (case "(($ac_try" in 2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2758 *) ac_try_echo=$ac_try;; 2759 esac 2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2761 (eval "$ac_try") 2>&5 2762 ac_status=$? 2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2764 (exit $ac_status); }; }; then 2765 ac_cv_prog_cc_c89=$ac_arg 2766 else 2767 echo "$as_me: failed program was:" >&5 2768 sed 's/^/| /' conftest.$ac_ext >&5 2769 2770 2771 fi 2772 2773 rm -f core conftest.err conftest.$ac_objext 2774 test "x$ac_cv_prog_cc_c89" != "xno" && break 2775 done 2776 rm -f conftest.$ac_ext 2777 CC=$ac_save_CC 2778 2779 fi 2780 # AC_CACHE_VAL 2781 case "x$ac_cv_prog_cc_c89" in 2782 x) 2783 { echo "$as_me:$LINENO: result: none needed" >&5 2784 echo "${ECHO_T}none needed" >&6; } ;; 2785 xno) 2786 { echo "$as_me:$LINENO: result: unsupported" >&5 2787 echo "${ECHO_T}unsupported" >&6; } ;; 2788 *) 2789 CC="$CC $ac_cv_prog_cc_c89" 2790 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2791 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2792 esac 2793 2794 2795 ac_ext=c 2796 ac_cpp='$CPP $CPPFLAGS' 2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2800 2801 ac_ext=cpp 2802 ac_cpp='$CXXCPP $CPPFLAGS' 2803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2806 if test -z "$CXX"; then 2807 if test -n "$CCC"; then 2808 CXX=$CCC 2809 else 2810 if test -n "$ac_tool_prefix"; then 2811 for ac_prog in clang++ llvm-g++ g++ 2812 do 2813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2817 if test "${ac_cv_prog_CXX+set}" = set; then 2818 echo $ECHO_N "(cached) $ECHO_C" >&6 2819 else 2820 if test -n "$CXX"; then 2821 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2822 else 2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824 for as_dir in $PATH 2825 do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2830 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834 done 2835 done 2836 IFS=$as_save_IFS 2837 2838 fi 2839 fi 2840 CXX=$ac_cv_prog_CXX 2841 if test -n "$CXX"; then 2842 { echo "$as_me:$LINENO: result: $CXX" >&5 2843 echo "${ECHO_T}$CXX" >&6; } 2844 else 2845 { echo "$as_me:$LINENO: result: no" >&5 2846 echo "${ECHO_T}no" >&6; } 2847 fi 2848 2849 2850 test -n "$CXX" && break 2851 done 2852 fi 2853 if test -z "$CXX"; then 2854 ac_ct_CXX=$CXX 2855 for ac_prog in clang++ llvm-g++ g++ 2856 do 2857 # Extract the first word of "$ac_prog", so it can be a program name with args. 2858 set dummy $ac_prog; ac_word=$2 2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2861 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2862 echo $ECHO_N "(cached) $ECHO_C" >&6 2863 else 2864 if test -n "$ac_ct_CXX"; then 2865 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2866 else 2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2868 for as_dir in $PATH 2869 do 2870 IFS=$as_save_IFS 2871 test -z "$as_dir" && as_dir=. 2872 for ac_exec_ext in '' $ac_executable_extensions; do 2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2874 ac_cv_prog_ac_ct_CXX="$ac_prog" 2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2876 break 2 2877 fi 2878 done 2879 done 2880 IFS=$as_save_IFS 2881 2882 fi 2883 fi 2884 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2885 if test -n "$ac_ct_CXX"; then 2886 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2887 echo "${ECHO_T}$ac_ct_CXX" >&6; } 2888 else 2889 { echo "$as_me:$LINENO: result: no" >&5 2890 echo "${ECHO_T}no" >&6; } 2891 fi 2892 2893 2894 test -n "$ac_ct_CXX" && break 2895 done 2896 2897 if test "x$ac_ct_CXX" = x; then 2898 CXX="g++" 2899 else 2900 case $cross_compiling:$ac_tool_warned in 2901 yes:) 2902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2903 whose name does not start with the host triplet. If you think this 2904 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2906 whose name does not start with the host triplet. If you think this 2907 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2908 ac_tool_warned=yes ;; 2909 esac 2910 CXX=$ac_ct_CXX 2911 fi 2912 fi 2913 2914 fi 2915 fi 2916 # Provide some information about the compiler. 2917 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2918 ac_compiler=`set X $ac_compile; echo $2` 2919 { (ac_try="$ac_compiler --version >&5" 2920 case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923 esac 2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2925 (eval "$ac_compiler --version >&5") 2>&5 2926 ac_status=$? 2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2928 (exit $ac_status); } 2929 { (ac_try="$ac_compiler -v >&5" 2930 case "(($ac_try" in 2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2932 *) ac_try_echo=$ac_try;; 2933 esac 2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2935 (eval "$ac_compiler -v >&5") 2>&5 2936 ac_status=$? 2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); } 2939 { (ac_try="$ac_compiler -V >&5" 2940 case "(($ac_try" in 2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2942 *) ac_try_echo=$ac_try;; 2943 esac 2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2945 (eval "$ac_compiler -V >&5") 2>&5 2946 ac_status=$? 2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2948 (exit $ac_status); } 2949 2950 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2951 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2952 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2953 echo $ECHO_N "(cached) $ECHO_C" >&6 2954 else 2955 cat >conftest.$ac_ext <<_ACEOF 2956 /* confdefs.h. */ 2957 _ACEOF 2958 cat confdefs.h >>conftest.$ac_ext 2959 cat >>conftest.$ac_ext <<_ACEOF 2960 /* end confdefs.h. */ 2961 2962 int 2963 main () 2964 { 2965 #ifndef __GNUC__ 2966 choke me 2967 #endif 2968 2969 ; 2970 return 0; 2971 } 2972 _ACEOF 2973 rm -f conftest.$ac_objext 2974 if { (ac_try="$ac_compile" 2975 case "(($ac_try" in 2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2977 *) ac_try_echo=$ac_try;; 2978 esac 2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2980 (eval "$ac_compile") 2>conftest.er1 2981 ac_status=$? 2982 grep -v '^ *+' conftest.er1 >conftest.err 2983 rm -f conftest.er1 2984 cat conftest.err >&5 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2986 (exit $ac_status); } && 2987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2988 { (case "(($ac_try" in 2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2990 *) ac_try_echo=$ac_try;; 2991 esac 2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2993 (eval "$ac_try") 2>&5 2994 ac_status=$? 2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2996 (exit $ac_status); }; } && 2997 { ac_try='test -s conftest.$ac_objext' 2998 { (case "(($ac_try" in 2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3000 *) ac_try_echo=$ac_try;; 3001 esac 3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3003 (eval "$ac_try") 2>&5 3004 ac_status=$? 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); }; }; then 3007 ac_compiler_gnu=yes 3008 else 3009 echo "$as_me: failed program was:" >&5 3010 sed 's/^/| /' conftest.$ac_ext >&5 3011 3012 ac_compiler_gnu=no 3013 fi 3014 3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3016 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3017 3018 fi 3019 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3020 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3021 GXX=`test $ac_compiler_gnu = yes && echo yes` 3022 ac_test_CXXFLAGS=${CXXFLAGS+set} 3023 ac_save_CXXFLAGS=$CXXFLAGS 3024 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3025 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3026 if test "${ac_cv_prog_cxx_g+set}" = set; then 3027 echo $ECHO_N "(cached) $ECHO_C" >&6 3028 else 3029 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3030 ac_cxx_werror_flag=yes 3031 ac_cv_prog_cxx_g=no 3032 CXXFLAGS="-g" 3033 cat >conftest.$ac_ext <<_ACEOF 3034 /* confdefs.h. */ 3035 _ACEOF 3036 cat confdefs.h >>conftest.$ac_ext 3037 cat >>conftest.$ac_ext <<_ACEOF 3038 /* end confdefs.h. */ 3039 3040 int 3041 main () 3042 { 3043 3044 ; 3045 return 0; 3046 } 3047 _ACEOF 3048 rm -f conftest.$ac_objext 3049 if { (ac_try="$ac_compile" 3050 case "(($ac_try" in 3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3052 *) ac_try_echo=$ac_try;; 3053 esac 3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3055 (eval "$ac_compile") 2>conftest.er1 3056 ac_status=$? 3057 grep -v '^ *+' conftest.er1 >conftest.err 3058 rm -f conftest.er1 3059 cat conftest.err >&5 3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3061 (exit $ac_status); } && 3062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3063 { (case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066 esac 3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3068 (eval "$ac_try") 2>&5 3069 ac_status=$? 3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3071 (exit $ac_status); }; } && 3072 { ac_try='test -s conftest.$ac_objext' 3073 { (case "(($ac_try" in 3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3075 *) ac_try_echo=$ac_try;; 3076 esac 3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3078 (eval "$ac_try") 2>&5 3079 ac_status=$? 3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3081 (exit $ac_status); }; }; then 3082 ac_cv_prog_cxx_g=yes 3083 else 3084 echo "$as_me: failed program was:" >&5 3085 sed 's/^/| /' conftest.$ac_ext >&5 3086 3087 CXXFLAGS="" 3088 cat >conftest.$ac_ext <<_ACEOF 3089 /* confdefs.h. */ 3090 _ACEOF 3091 cat confdefs.h >>conftest.$ac_ext 3092 cat >>conftest.$ac_ext <<_ACEOF 3093 /* end confdefs.h. */ 3094 3095 int 3096 main () 3097 { 3098 3099 ; 3100 return 0; 3101 } 3102 _ACEOF 3103 rm -f conftest.$ac_objext 3104 if { (ac_try="$ac_compile" 3105 case "(($ac_try" in 3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3107 *) ac_try_echo=$ac_try;; 3108 esac 3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3110 (eval "$ac_compile") 2>conftest.er1 3111 ac_status=$? 3112 grep -v '^ *+' conftest.er1 >conftest.err 3113 rm -f conftest.er1 3114 cat conftest.err >&5 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); } && 3117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3118 { (case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121 esac 3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3123 (eval "$ac_try") 2>&5 3124 ac_status=$? 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3126 (exit $ac_status); }; } && 3127 { ac_try='test -s conftest.$ac_objext' 3128 { (case "(($ac_try" in 3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3130 *) ac_try_echo=$ac_try;; 3131 esac 3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3133 (eval "$ac_try") 2>&5 3134 ac_status=$? 3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); }; }; then 3137 : 3138 else 3139 echo "$as_me: failed program was:" >&5 3140 sed 's/^/| /' conftest.$ac_ext >&5 3141 3142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3143 CXXFLAGS="-g" 3144 cat >conftest.$ac_ext <<_ACEOF 3145 /* confdefs.h. */ 3146 _ACEOF 3147 cat confdefs.h >>conftest.$ac_ext 3148 cat >>conftest.$ac_ext <<_ACEOF 3149 /* end confdefs.h. */ 3150 3151 int 3152 main () 3153 { 3154 3155 ; 3156 return 0; 3157 } 3158 _ACEOF 3159 rm -f conftest.$ac_objext 3160 if { (ac_try="$ac_compile" 3161 case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164 esac 3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3166 (eval "$ac_compile") 2>conftest.er1 3167 ac_status=$? 3168 grep -v '^ *+' conftest.er1 >conftest.err 3169 rm -f conftest.er1 3170 cat conftest.err >&5 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3172 (exit $ac_status); } && 3173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3174 { (case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177 esac 3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3179 (eval "$ac_try") 2>&5 3180 ac_status=$? 3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3182 (exit $ac_status); }; } && 3183 { ac_try='test -s conftest.$ac_objext' 3184 { (case "(($ac_try" in 3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3186 *) ac_try_echo=$ac_try;; 3187 esac 3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3189 (eval "$ac_try") 2>&5 3190 ac_status=$? 3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 (exit $ac_status); }; }; then 3193 ac_cv_prog_cxx_g=yes 3194 else 3195 echo "$as_me: failed program was:" >&5 3196 sed 's/^/| /' conftest.$ac_ext >&5 3197 3198 3199 fi 3200 3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3202 fi 3203 3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3205 fi 3206 3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3208 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3209 fi 3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3211 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3212 if test "$ac_test_CXXFLAGS" = set; then 3213 CXXFLAGS=$ac_save_CXXFLAGS 3214 elif test $ac_cv_prog_cxx_g = yes; then 3215 if test "$GXX" = yes; then 3216 CXXFLAGS="-g -O2" 3217 else 3218 CXXFLAGS="-g" 3219 fi 3220 else 3221 if test "$GXX" = yes; then 3222 CXXFLAGS="-O2" 3223 else 3224 CXXFLAGS= 3225 fi 3226 fi 3227 ac_ext=c 3228 ac_cpp='$CPP $CPPFLAGS' 3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3232 3233 ac_ext=c 3234 ac_cpp='$CPP $CPPFLAGS' 3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3240 # On Suns, sometimes $CPP names a directory. 3241 if test -n "$CPP" && test -d "$CPP"; then 3242 CPP= 3243 fi 3244 if test -z "$CPP"; then 3245 if test "${ac_cv_prog_CPP+set}" = set; then 3246 echo $ECHO_N "(cached) $ECHO_C" >&6 3247 else 3248 # Double quotes because CPP needs to be expanded 3249 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3250 do 3251 ac_preproc_ok=false 3252 for ac_c_preproc_warn_flag in '' yes 3253 do 3254 # Use a header file that comes with gcc, so configuring glibc 3255 # with a fresh cross-compiler works. 3256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3257 # <limits.h> exists even on freestanding compilers. 3258 # On the NeXT, cc -E runs the code through the compiler's parser, 3259 # not just through cpp. "Syntax error" is here to catch this case. 3260 cat >conftest.$ac_ext <<_ACEOF 3261 /* confdefs.h. */ 3262 _ACEOF 3263 cat confdefs.h >>conftest.$ac_ext 3264 cat >>conftest.$ac_ext <<_ACEOF 3265 /* end confdefs.h. */ 3266 #ifdef __STDC__ 3267 # include <limits.h> 3268 #else 3269 # include <assert.h> 3270 #endif 3271 Syntax error 3272 _ACEOF 3273 if { (ac_try="$ac_cpp conftest.$ac_ext" 3274 case "(($ac_try" in 3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3276 *) ac_try_echo=$ac_try;; 3277 esac 3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3280 ac_status=$? 3281 grep -v '^ *+' conftest.er1 >conftest.err 3282 rm -f conftest.er1 3283 cat conftest.err >&5 3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3285 (exit $ac_status); } >/dev/null; then 3286 if test -s conftest.err; then 3287 ac_cpp_err=$ac_c_preproc_warn_flag 3288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3289 else 3290 ac_cpp_err= 3291 fi 3292 else 3293 ac_cpp_err=yes 3294 fi 3295 if test -z "$ac_cpp_err"; then 3296 : 3297 else 3298 echo "$as_me: failed program was:" >&5 3299 sed 's/^/| /' conftest.$ac_ext >&5 3300 3301 # Broken: fails on valid input. 3302 continue 3303 fi 3304 3305 rm -f conftest.err conftest.$ac_ext 3306 3307 # OK, works on sane cases. Now check whether nonexistent headers 3308 # can be detected and how. 3309 cat >conftest.$ac_ext <<_ACEOF 3310 /* confdefs.h. */ 3311 _ACEOF 3312 cat confdefs.h >>conftest.$ac_ext 3313 cat >>conftest.$ac_ext <<_ACEOF 3314 /* end confdefs.h. */ 3315 #include <ac_nonexistent.h> 3316 _ACEOF 3317 if { (ac_try="$ac_cpp conftest.$ac_ext" 3318 case "(($ac_try" in 3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3320 *) ac_try_echo=$ac_try;; 3321 esac 3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3324 ac_status=$? 3325 grep -v '^ *+' conftest.er1 >conftest.err 3326 rm -f conftest.er1 3327 cat conftest.err >&5 3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); } >/dev/null; then 3330 if test -s conftest.err; then 3331 ac_cpp_err=$ac_c_preproc_warn_flag 3332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3333 else 3334 ac_cpp_err= 3335 fi 3336 else 3337 ac_cpp_err=yes 3338 fi 3339 if test -z "$ac_cpp_err"; then 3340 # Broken: success on invalid input. 3341 continue 3342 else 3343 echo "$as_me: failed program was:" >&5 3344 sed 's/^/| /' conftest.$ac_ext >&5 3345 3346 # Passes both tests. 3347 ac_preproc_ok=: 3348 break 3349 fi 3350 3351 rm -f conftest.err conftest.$ac_ext 3352 3353 done 3354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3355 rm -f conftest.err conftest.$ac_ext 3356 if $ac_preproc_ok; then 3357 break 3358 fi 3359 3360 done 3361 ac_cv_prog_CPP=$CPP 3362 3363 fi 3364 CPP=$ac_cv_prog_CPP 3365 else 3366 ac_cv_prog_CPP=$CPP 3367 fi 3368 { echo "$as_me:$LINENO: result: $CPP" >&5 3369 echo "${ECHO_T}$CPP" >&6; } 3370 ac_preproc_ok=false 3371 for ac_c_preproc_warn_flag in '' yes 3372 do 3373 # Use a header file that comes with gcc, so configuring glibc 3374 # with a fresh cross-compiler works. 3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3376 # <limits.h> exists even on freestanding compilers. 3377 # On the NeXT, cc -E runs the code through the compiler's parser, 3378 # not just through cpp. "Syntax error" is here to catch this case. 3379 cat >conftest.$ac_ext <<_ACEOF 3380 /* confdefs.h. */ 3381 _ACEOF 3382 cat confdefs.h >>conftest.$ac_ext 3383 cat >>conftest.$ac_ext <<_ACEOF 3384 /* end confdefs.h. */ 3385 #ifdef __STDC__ 3386 # include <limits.h> 3387 #else 3388 # include <assert.h> 3389 #endif 3390 Syntax error 3391 _ACEOF 3392 if { (ac_try="$ac_cpp conftest.$ac_ext" 3393 case "(($ac_try" in 3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3395 *) ac_try_echo=$ac_try;; 3396 esac 3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3399 ac_status=$? 3400 grep -v '^ *+' conftest.er1 >conftest.err 3401 rm -f conftest.er1 3402 cat conftest.err >&5 3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3404 (exit $ac_status); } >/dev/null; then 3405 if test -s conftest.err; then 3406 ac_cpp_err=$ac_c_preproc_warn_flag 3407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3408 else 3409 ac_cpp_err= 3410 fi 3411 else 3412 ac_cpp_err=yes 3413 fi 3414 if test -z "$ac_cpp_err"; then 3415 : 3416 else 3417 echo "$as_me: failed program was:" >&5 3418 sed 's/^/| /' conftest.$ac_ext >&5 3419 3420 # Broken: fails on valid input. 3421 continue 3422 fi 3423 3424 rm -f conftest.err conftest.$ac_ext 3425 3426 # OK, works on sane cases. Now check whether nonexistent headers 3427 # can be detected and how. 3428 cat >conftest.$ac_ext <<_ACEOF 3429 /* confdefs.h. */ 3430 _ACEOF 3431 cat confdefs.h >>conftest.$ac_ext 3432 cat >>conftest.$ac_ext <<_ACEOF 3433 /* end confdefs.h. */ 3434 #include <ac_nonexistent.h> 3435 _ACEOF 3436 if { (ac_try="$ac_cpp conftest.$ac_ext" 3437 case "(($ac_try" in 3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3439 *) ac_try_echo=$ac_try;; 3440 esac 3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3443 ac_status=$? 3444 grep -v '^ *+' conftest.er1 >conftest.err 3445 rm -f conftest.er1 3446 cat conftest.err >&5 3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3448 (exit $ac_status); } >/dev/null; then 3449 if test -s conftest.err; then 3450 ac_cpp_err=$ac_c_preproc_warn_flag 3451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3452 else 3453 ac_cpp_err= 3454 fi 3455 else 3456 ac_cpp_err=yes 3457 fi 3458 if test -z "$ac_cpp_err"; then 3459 # Broken: success on invalid input. 3460 continue 3461 else 3462 echo "$as_me: failed program was:" >&5 3463 sed 's/^/| /' conftest.$ac_ext >&5 3464 3465 # Passes both tests. 3466 ac_preproc_ok=: 3467 break 3468 fi 3469 3470 rm -f conftest.err conftest.$ac_ext 3471 3472 done 3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3474 rm -f conftest.err conftest.$ac_ext 3475 if $ac_preproc_ok; then 3476 : 3477 else 3478 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3479 See \`config.log' for more details." >&5 3480 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3481 See \`config.log' for more details." >&2;} 3482 { (exit 1); exit 1; }; } 3483 fi 3484 3485 ac_ext=c 3486 ac_cpp='$CPP $CPPFLAGS' 3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3490 3491 3492 if test "$CXX" = "clang++" ; then 3493 { echo "$as_me:$LINENO: checking whether clang works" >&5 3494 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3495 ac_ext=cpp 3496 ac_cpp='$CXXCPP $CPPFLAGS' 3497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3500 3501 3502 cat >conftest.$ac_ext <<_ACEOF 3503 /* confdefs.h. */ 3504 _ACEOF 3505 cat confdefs.h >>conftest.$ac_ext 3506 cat >>conftest.$ac_ext <<_ACEOF 3507 /* end confdefs.h. */ 3508 #include <limits> 3509 #if __has_include (<cxxabi.h>) 3510 #include <cxxabi.h> 3511 #endif 3512 #if __has_include (<unwind.h>) 3513 #include <unwind.h> 3514 #endif 3515 3516 int 3517 main () 3518 { 3519 3520 ; 3521 return 0; 3522 } 3523 _ACEOF 3524 rm -f conftest.$ac_objext 3525 if { (ac_try="$ac_compile" 3526 case "(($ac_try" in 3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3528 *) ac_try_echo=$ac_try;; 3529 esac 3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3531 (eval "$ac_compile") 2>conftest.er1 3532 ac_status=$? 3533 grep -v '^ *+' conftest.er1 >conftest.err 3534 rm -f conftest.er1 3535 cat conftest.err >&5 3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3537 (exit $ac_status); } && 3538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3539 { (case "(($ac_try" in 3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3541 *) ac_try_echo=$ac_try;; 3542 esac 3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3544 (eval "$ac_try") 2>&5 3545 ac_status=$? 3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3547 (exit $ac_status); }; } && 3548 { ac_try='test -s conftest.$ac_objext' 3549 { (case "(($ac_try" in 3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3551 *) ac_try_echo=$ac_try;; 3552 esac 3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3554 (eval "$ac_try") 2>&5 3555 ac_status=$? 3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3557 (exit $ac_status); }; }; then 3558 3559 { echo "$as_me:$LINENO: result: yes" >&5 3560 echo "${ECHO_T}yes" >&6; } 3561 3562 else 3563 echo "$as_me: failed program was:" >&5 3564 sed 's/^/| /' conftest.$ac_ext >&5 3565 3566 3567 { echo "$as_me:$LINENO: result: no" >&5 3568 echo "${ECHO_T}no" >&6; } 3569 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5 3570 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;} 3571 { (exit 1); exit 1; }; } 3572 3573 fi 3574 3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3576 ac_ext=c 3577 ac_cpp='$CPP $CPPFLAGS' 3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3581 3582 fi 3583 3584 3585 3586 if test -d ${srcdir}/projects/llvm-gcc ; then 3587 subdirs="$subdirs projects/llvm-gcc" 3588 3589 fi 3590 3591 if test -d ${srcdir}/projects/test-suite ; then 3592 subdirs="$subdirs projects/test-suite" 3593 3594 fi 3595 3596 if test -d ${srcdir}/projects/llvm-test ; then 3597 subdirs="$subdirs projects/llvm-test" 3598 3599 fi 3600 3601 if test -d ${srcdir}/projects/poolalloc ; then 3602 subdirs="$subdirs projects/poolalloc" 3603 3604 fi 3605 3606 if test -d ${srcdir}/projects/llvm-poolalloc ; then 3607 subdirs="$subdirs projects/llvm-poolalloc" 3608 3609 fi 3610 3611 for i in `ls ${srcdir}/projects` 3612 do 3613 if test -d ${srcdir}/projects/${i} ; then 3614 case ${i} in 3615 sample) subdirs="$subdirs projects/sample" 3616 ;; 3617 privbracket) subdirs="$subdirs projects/privbracket" 3618 ;; 3619 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3620 ;; 3621 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3622 ;; 3623 llvm-java) subdirs="$subdirs projects/llvm-java" 3624 ;; 3625 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3626 ;; 3627 safecode) subdirs="$subdirs projects/safecode" 3628 ;; 3629 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3630 ;; 3631 compiler-rt) ;; 3632 llvm-gcc) ;; 3633 test-suite) ;; 3634 llvm-test) ;; 3635 poolalloc) ;; 3636 llvm-poolalloc) ;; 3637 *) 3638 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3639 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3640 ;; 3641 esac 3642 fi 3643 done 3644 3645 # Check whether --enable-polly was given. 3646 if test "${enable_polly+set}" = set; then 3647 enableval=$enable_polly; 3648 else 3649 enableval=default 3650 fi 3651 3652 case "$enableval" in 3653 yes) ENABLE_POLLY=1 3654 ;; 3655 no) ENABLE_POLLY=0 3656 ;; 3657 default) ENABLE_POLLY=1 3658 ;; 3659 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3660 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3661 { (exit 1); exit 1; }; } ;; 3662 esac 3663 3664 3665 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3666 LLVM_HAS_POLLY=1 3667 3668 subdirs="$subdirs tools/polly" 3669 3670 fi 3671 3672 3673 # Make sure we can run config.sub. 3674 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3675 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3676 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3677 { (exit 1); exit 1; }; } 3678 3679 { echo "$as_me:$LINENO: checking build system type" >&5 3680 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3681 if test "${ac_cv_build+set}" = set; then 3682 echo $ECHO_N "(cached) $ECHO_C" >&6 3683 else 3684 ac_build_alias=$build_alias 3685 test "x$ac_build_alias" = x && 3686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3687 test "x$ac_build_alias" = x && 3688 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3689 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3690 { (exit 1); exit 1; }; } 3691 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3692 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3693 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3694 { (exit 1); exit 1; }; } 3695 3696 fi 3697 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3698 echo "${ECHO_T}$ac_cv_build" >&6; } 3699 case $ac_cv_build in 3700 *-*-*) ;; 3701 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3702 echo "$as_me: error: invalid value of canonical build" >&2;} 3703 { (exit 1); exit 1; }; };; 3704 esac 3705 build=$ac_cv_build 3706 ac_save_IFS=$IFS; IFS='-' 3707 set x $ac_cv_build 3708 shift 3709 build_cpu=$1 3710 build_vendor=$2 3711 shift; shift 3712 # Remember, the first character of IFS is used to create $*, 3713 # except with old shells: 3714 build_os=$* 3715 IFS=$ac_save_IFS 3716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3717 3718 3719 { echo "$as_me:$LINENO: checking host system type" >&5 3720 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3721 if test "${ac_cv_host+set}" = set; then 3722 echo $ECHO_N "(cached) $ECHO_C" >&6 3723 else 3724 if test "x$host_alias" = x; then 3725 ac_cv_host=$ac_cv_build 3726 else 3727 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3728 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3729 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3730 { (exit 1); exit 1; }; } 3731 fi 3732 3733 fi 3734 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3735 echo "${ECHO_T}$ac_cv_host" >&6; } 3736 case $ac_cv_host in 3737 *-*-*) ;; 3738 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3739 echo "$as_me: error: invalid value of canonical host" >&2;} 3740 { (exit 1); exit 1; }; };; 3741 esac 3742 host=$ac_cv_host 3743 ac_save_IFS=$IFS; IFS='-' 3744 set x $ac_cv_host 3745 shift 3746 host_cpu=$1 3747 host_vendor=$2 3748 shift; shift 3749 # Remember, the first character of IFS is used to create $*, 3750 # except with old shells: 3751 host_os=$* 3752 IFS=$ac_save_IFS 3753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3754 3755 3756 { echo "$as_me:$LINENO: checking target system type" >&5 3757 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3758 if test "${ac_cv_target+set}" = set; then 3759 echo $ECHO_N "(cached) $ECHO_C" >&6 3760 else 3761 if test "x$target_alias" = x; then 3762 ac_cv_target=$ac_cv_host 3763 else 3764 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3765 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3766 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3767 { (exit 1); exit 1; }; } 3768 fi 3769 3770 fi 3771 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3772 echo "${ECHO_T}$ac_cv_target" >&6; } 3773 case $ac_cv_target in 3774 *-*-*) ;; 3775 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3776 echo "$as_me: error: invalid value of canonical target" >&2;} 3777 { (exit 1); exit 1; }; };; 3778 esac 3779 target=$ac_cv_target 3780 ac_save_IFS=$IFS; IFS='-' 3781 set x $ac_cv_target 3782 shift 3783 target_cpu=$1 3784 target_vendor=$2 3785 shift; shift 3786 # Remember, the first character of IFS is used to create $*, 3787 # except with old shells: 3788 target_os=$* 3789 IFS=$ac_save_IFS 3790 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3791 3792 3793 # The aliases save the names the user supplied, while $host etc. 3794 # will get canonicalized. 3795 test -n "$target_alias" && 3796 test "$program_prefix$program_suffix$program_transform_name" = \ 3797 NONENONEs,x,x, && 3798 program_prefix=${target_alias}- 3799 3800 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3801 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3802 if test "${llvm_cv_os_type+set}" = set; then 3803 echo $ECHO_N "(cached) $ECHO_C" >&6 3804 else 3805 case $host in 3806 *-*-aix*) 3807 llvm_cv_link_all_option="-Wl,--whole-archive" 3808 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3809 llvm_cv_os_type="AIX" 3810 llvm_cv_platform_type="Unix" ;; 3811 *-*-irix*) 3812 llvm_cv_link_all_option="-Wl,--whole-archive" 3813 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3814 llvm_cv_os_type="IRIX" 3815 llvm_cv_platform_type="Unix" ;; 3816 *-*-cygwin*) 3817 llvm_cv_link_all_option="-Wl,--whole-archive" 3818 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3819 llvm_cv_os_type="Cygwin" 3820 llvm_cv_platform_type="Unix" ;; 3821 *-*-darwin*) 3822 llvm_cv_link_all_option="-Wl,-all_load" 3823 llvm_cv_no_link_all_option="-Wl,-noall_load" 3824 llvm_cv_os_type="Darwin" 3825 llvm_cv_platform_type="Unix" ;; 3826 *-*-minix*) 3827 llvm_cv_link_all_option="-Wl,-all_load" 3828 llvm_cv_no_link_all_option="-Wl,-noall_load" 3829 llvm_cv_os_type="Minix" 3830 llvm_cv_platform_type="Unix" ;; 3831 *-*-freebsd*) 3832 llvm_cv_link_all_option="-Wl,--whole-archive" 3833 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3834 llvm_cv_os_type="FreeBSD" 3835 llvm_cv_platform_type="Unix" ;; 3836 *-*-kfreebsd-gnu) 3837 llvm_cv_link_all_option="-Wl,--whole-archive" 3838 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3839 llvm_cv_os_type="GNU/kFreeBSD" 3840 llvm_cv_platform_type="Unix" ;; 3841 *-*-openbsd*) 3842 llvm_cv_link_all_option="-Wl,--whole-archive" 3843 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3844 llvm_cv_os_type="OpenBSD" 3845 llvm_cv_platform_type="Unix" ;; 3846 *-*-netbsd*) 3847 llvm_cv_link_all_option="-Wl,--whole-archive" 3848 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3849 llvm_cv_os_type="NetBSD" 3850 llvm_cv_platform_type="Unix" ;; 3851 *-*-dragonfly*) 3852 llvm_cv_link_all_option="-Wl,--whole-archive" 3853 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3854 llvm_cv_os_type="DragonFly" 3855 llvm_cv_platform_type="Unix" ;; 3856 *-*-hpux*) 3857 llvm_cv_link_all_option="-Wl,--whole-archive" 3858 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3859 llvm_cv_os_type="HP-UX" 3860 llvm_cv_platform_type="Unix" ;; 3861 *-*-interix*) 3862 llvm_cv_link_all_option="-Wl,--whole-archive" 3863 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3864 llvm_cv_os_type="Interix" 3865 llvm_cv_platform_type="Unix" ;; 3866 *-*-linux*) 3867 llvm_cv_link_all_option="-Wl,--whole-archive" 3868 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3869 llvm_cv_os_type="Linux" 3870 llvm_cv_platform_type="Unix" ;; 3871 *-*-gnu*) 3872 llvm_cv_link_all_option="-Wl,--whole-archive" 3873 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3874 llvm_cv_os_type="GNU" 3875 llvm_cv_platform_type="Unix" ;; 3876 *-*-solaris*) 3877 llvm_cv_link_all_option="-Wl,-z,allextract" 3878 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3879 llvm_cv_os_type="SunOS" 3880 llvm_cv_platform_type="Unix" ;; 3881 *-*-auroraux*) 3882 llvm_cv_link_all_option="-Wl,-z,allextract" 3883 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3884 llvm_cv_os_type="AuroraUX" 3885 llvm_cv_platform_type="Unix" ;; 3886 *-*-win32*) 3887 llvm_cv_link_all_option="-Wl,--whole-archive" 3888 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3889 llvm_cv_os_type="Win32" 3890 llvm_cv_platform_type="Win32" ;; 3891 *-*-mingw*) 3892 llvm_cv_link_all_option="-Wl,--whole-archive" 3893 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3894 llvm_cv_os_type="MingW" 3895 llvm_cv_platform_type="Win32" ;; 3896 *-*-haiku*) 3897 llvm_cv_link_all_option="-Wl,--whole-archive" 3898 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3899 llvm_cv_os_type="Haiku" 3900 llvm_cv_platform_type="Unix" ;; 3901 *-unknown-eabi*) 3902 llvm_cv_link_all_option="-Wl,--whole-archive" 3903 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3904 llvm_cv_os_type="Freestanding" 3905 llvm_cv_platform_type="Unix" ;; 3906 *-unknown-elf*) 3907 llvm_cv_link_all_option="-Wl,--whole-archive" 3908 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3909 llvm_cv_os_type="Freestanding" 3910 llvm_cv_platform_type="Unix" ;; 3911 *) 3912 llvm_cv_link_all_option="" 3913 llvm_cv_no_link_all_option="" 3914 llvm_cv_os_type="Unknown" 3915 llvm_cv_platform_type="Unknown" ;; 3916 esac 3917 fi 3918 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3919 echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3920 3921 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3922 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3923 if test "${llvm_cv_target_os_type+set}" = set; then 3924 echo $ECHO_N "(cached) $ECHO_C" >&6 3925 else 3926 case $target in 3927 *-*-aix*) 3928 llvm_cv_target_os_type="AIX" ;; 3929 *-*-irix*) 3930 llvm_cv_target_os_type="IRIX" ;; 3931 *-*-cygwin*) 3932 llvm_cv_target_os_type="Cygwin" ;; 3933 *-*-darwin*) 3934 llvm_cv_target_os_type="Darwin" ;; 3935 *-*-minix*) 3936 llvm_cv_target_os_type="Minix" ;; 3937 *-*-freebsd*) 3938 llvm_cv_target_os_type="FreeBSD" ;; 3939 *-*-kfreebsd-gnu) 3940 llvm_cv_target_os_type="GNU/kFreeBSD" ;; 3941 *-*-openbsd*) 3942 llvm_cv_target_os_type="OpenBSD" ;; 3943 *-*-netbsd*) 3944 llvm_cv_target_os_type="NetBSD" ;; 3945 *-*-dragonfly*) 3946 llvm_cv_target_os_type="DragonFly" ;; 3947 *-*-hpux*) 3948 llvm_cv_target_os_type="HP-UX" ;; 3949 *-*-interix*) 3950 llvm_cv_target_os_type="Interix" ;; 3951 *-*-linux*) 3952 llvm_cv_target_os_type="Linux" ;; 3953 *-*-gnu*) 3954 llvm_cv_target_os_type="GNU" ;; 3955 *-*-solaris*) 3956 llvm_cv_target_os_type="SunOS" ;; 3957 *-*-auroraux*) 3958 llvm_cv_target_os_type="AuroraUX" ;; 3959 *-*-win32*) 3960 llvm_cv_target_os_type="Win32" ;; 3961 *-*-mingw*) 3962 llvm_cv_target_os_type="MingW" ;; 3963 *-*-haiku*) 3964 llvm_cv_target_os_type="Haiku" ;; 3965 *-*-rtems*) 3966 llvm_cv_target_os_type="RTEMS" ;; 3967 *-*-nacl*) 3968 llvm_cv_target_os_type="NativeClient" ;; 3969 *-unknown-eabi*) 3970 llvm_cv_target_os_type="Freestanding" ;; 3971 *) 3972 llvm_cv_target_os_type="Unknown" ;; 3973 esac 3974 fi 3975 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3976 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3977 3978 if test "$llvm_cv_os_type" = "Unknown" ; then 3979 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3980 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3981 { (exit 1); exit 1; }; } 3982 fi 3983 3984 OS=$llvm_cv_os_type 3985 3986 HOST_OS=$llvm_cv_os_type 3987 3988 TARGET_OS=$llvm_cv_target_os_type 3989 3990 3991 LINKALL=$llvm_cv_link_all_option 3992 3993 NOLINKALL=$llvm_cv_no_link_all_option 3994 3995 3996 case $llvm_cv_platform_type in 3997 Unix) 3998 3999 cat >>confdefs.h <<\_ACEOF 4000 #define LLVM_ON_UNIX 1 4001 _ACEOF 4002 4003 LLVM_ON_UNIX=1 4004 4005 LLVM_ON_WIN32=0 4006 4007 ;; 4008 Win32) 4009 4010 cat >>confdefs.h <<\_ACEOF 4011 #define LLVM_ON_WIN32 1 4012 _ACEOF 4013 4014 LLVM_ON_UNIX=0 4015 4016 LLVM_ON_WIN32=1 4017 4018 ;; 4019 esac 4020 4021 { echo "$as_me:$LINENO: checking target architecture" >&5 4022 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 4023 if test "${llvm_cv_target_arch+set}" = set; then 4024 echo $ECHO_N "(cached) $ECHO_C" >&6 4025 else 4026 case $target in 4027 i?86-*) llvm_cv_target_arch="x86" ;; 4028 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4029 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4030 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4031 arm*-*) llvm_cv_target_arch="ARM" ;; 4032 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4033 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4034 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4035 xcore-*) llvm_cv_target_arch="XCore" ;; 4036 msp430-*) llvm_cv_target_arch="MSP430" ;; 4037 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4038 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4039 s390x-*) llvm_cv_target_arch="SystemZ" ;; 4040 *) llvm_cv_target_arch="Unknown" ;; 4041 esac 4042 fi 4043 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 4044 echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 4045 4046 if test "$llvm_cv_target_arch" = "Unknown" ; then 4047 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 4048 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4049 fi 4050 4051 case "$llvm_cv_target_arch" in 4052 x86) LLVM_NATIVE_ARCH="X86" ;; 4053 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4054 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4055 esac 4056 4057 ARCH=$llvm_cv_target_arch 4058 4059 4060 case $host in 4061 i?86-*) host_arch="x86" ;; 4062 amd64-* | x86_64-*) host_arch="x86_64" ;; 4063 sparc*-*) host_arch="Sparc" ;; 4064 powerpc*-*) host_arch="PowerPC" ;; 4065 arm*-*) host_arch="ARM" ;; 4066 aarch64*-*) host_arch="AArch64" ;; 4067 mips-* | mips64-*) host_arch="Mips" ;; 4068 mipsel-* | mips64el-*) host_arch="Mips" ;; 4069 xcore-*) host_arch="XCore" ;; 4070 msp430-*) host_arch="MSP430" ;; 4071 hexagon-*) host_arch="Hexagon" ;; 4072 s390x-*) host_arch="SystemZ" ;; 4073 *) host_arch="Unknown" ;; 4074 esac 4075 4076 if test "$host_arch" = "Unknown" ; then 4077 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4079 fi 4080 4081 HOST_ARCH=$host_arch 4082 4083 4084 4085 4086 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4087 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4088 if test "${ac_cv_path_GREP+set}" = set; then 4089 echo $ECHO_N "(cached) $ECHO_C" >&6 4090 else 4091 # Extract the first word of "grep ggrep" to use in msg output 4092 if test -z "$GREP"; then 4093 set dummy grep ggrep; ac_prog_name=$2 4094 if test "${ac_cv_path_GREP+set}" = set; then 4095 echo $ECHO_N "(cached) $ECHO_C" >&6 4096 else 4097 ac_path_GREP_found=false 4098 # Loop through the user's path and test for each of PROGNAME-LIST 4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4101 do 4102 IFS=$as_save_IFS 4103 test -z "$as_dir" && as_dir=. 4104 for ac_prog in grep ggrep; do 4105 for ac_exec_ext in '' $ac_executable_extensions; do 4106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4107 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4108 # Check for GNU ac_path_GREP and select it if it is found. 4109 # Check for GNU $ac_path_GREP 4110 case `"$ac_path_GREP" --version 2>&1` in 4111 *GNU*) 4112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4113 *) 4114 ac_count=0 4115 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4116 while : 4117 do 4118 cat "conftest.in" "conftest.in" >"conftest.tmp" 4119 mv "conftest.tmp" "conftest.in" 4120 cp "conftest.in" "conftest.nl" 4121 echo 'GREP' >> "conftest.nl" 4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4124 ac_count=`expr $ac_count + 1` 4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4126 # Best one so far, save it but keep looking for a better one 4127 ac_cv_path_GREP="$ac_path_GREP" 4128 ac_path_GREP_max=$ac_count 4129 fi 4130 # 10*(2^10) chars as input seems more than enough 4131 test $ac_count -gt 10 && break 4132 done 4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4134 esac 4135 4136 4137 $ac_path_GREP_found && break 3 4138 done 4139 done 4140 4141 done 4142 IFS=$as_save_IFS 4143 4144 4145 fi 4146 4147 GREP="$ac_cv_path_GREP" 4148 if test -z "$GREP"; then 4149 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4150 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4151 { (exit 1); exit 1; }; } 4152 fi 4153 4154 else 4155 ac_cv_path_GREP=$GREP 4156 fi 4157 4158 4159 fi 4160 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4161 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4162 GREP="$ac_cv_path_GREP" 4163 4164 4165 { echo "$as_me:$LINENO: checking for egrep" >&5 4166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4167 if test "${ac_cv_path_EGREP+set}" = set; then 4168 echo $ECHO_N "(cached) $ECHO_C" >&6 4169 else 4170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4171 then ac_cv_path_EGREP="$GREP -E" 4172 else 4173 # Extract the first word of "egrep" to use in msg output 4174 if test -z "$EGREP"; then 4175 set dummy egrep; ac_prog_name=$2 4176 if test "${ac_cv_path_EGREP+set}" = set; then 4177 echo $ECHO_N "(cached) $ECHO_C" >&6 4178 else 4179 ac_path_EGREP_found=false 4180 # Loop through the user's path and test for each of PROGNAME-LIST 4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4183 do 4184 IFS=$as_save_IFS 4185 test -z "$as_dir" && as_dir=. 4186 for ac_prog in egrep; do 4187 for ac_exec_ext in '' $ac_executable_extensions; do 4188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4189 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4190 # Check for GNU ac_path_EGREP and select it if it is found. 4191 # Check for GNU $ac_path_EGREP 4192 case `"$ac_path_EGREP" --version 2>&1` in 4193 *GNU*) 4194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4195 *) 4196 ac_count=0 4197 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4198 while : 4199 do 4200 cat "conftest.in" "conftest.in" >"conftest.tmp" 4201 mv "conftest.tmp" "conftest.in" 4202 cp "conftest.in" "conftest.nl" 4203 echo 'EGREP' >> "conftest.nl" 4204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4206 ac_count=`expr $ac_count + 1` 4207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4208 # Best one so far, save it but keep looking for a better one 4209 ac_cv_path_EGREP="$ac_path_EGREP" 4210 ac_path_EGREP_max=$ac_count 4211 fi 4212 # 10*(2^10) chars as input seems more than enough 4213 test $ac_count -gt 10 && break 4214 done 4215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4216 esac 4217 4218 4219 $ac_path_EGREP_found && break 3 4220 done 4221 done 4222 4223 done 4224 IFS=$as_save_IFS 4225 4226 4227 fi 4228 4229 EGREP="$ac_cv_path_EGREP" 4230 if test -z "$EGREP"; then 4231 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4232 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4233 { (exit 1); exit 1; }; } 4234 fi 4235 4236 else 4237 ac_cv_path_EGREP=$EGREP 4238 fi 4239 4240 4241 fi 4242 fi 4243 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4244 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4245 EGREP="$ac_cv_path_EGREP" 4246 4247 4248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4250 if test "${ac_cv_header_stdc+set}" = set; then 4251 echo $ECHO_N "(cached) $ECHO_C" >&6 4252 else 4253 cat >conftest.$ac_ext <<_ACEOF 4254 /* confdefs.h. */ 4255 _ACEOF 4256 cat confdefs.h >>conftest.$ac_ext 4257 cat >>conftest.$ac_ext <<_ACEOF 4258 /* end confdefs.h. */ 4259 #include <stdlib.h> 4260 #include <stdarg.h> 4261 #include <string.h> 4262 #include <float.h> 4263 4264 int 4265 main () 4266 { 4267 4268 ; 4269 return 0; 4270 } 4271 _ACEOF 4272 rm -f conftest.$ac_objext 4273 if { (ac_try="$ac_compile" 4274 case "(($ac_try" in 4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4276 *) ac_try_echo=$ac_try;; 4277 esac 4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4279 (eval "$ac_compile") 2>conftest.er1 4280 ac_status=$? 4281 grep -v '^ *+' conftest.er1 >conftest.err 4282 rm -f conftest.er1 4283 cat conftest.err >&5 4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4285 (exit $ac_status); } && 4286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4287 { (case "(($ac_try" in 4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4289 *) ac_try_echo=$ac_try;; 4290 esac 4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4292 (eval "$ac_try") 2>&5 4293 ac_status=$? 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4295 (exit $ac_status); }; } && 4296 { ac_try='test -s conftest.$ac_objext' 4297 { (case "(($ac_try" in 4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4299 *) ac_try_echo=$ac_try;; 4300 esac 4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4302 (eval "$ac_try") 2>&5 4303 ac_status=$? 4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4305 (exit $ac_status); }; }; then 4306 ac_cv_header_stdc=yes 4307 else 4308 echo "$as_me: failed program was:" >&5 4309 sed 's/^/| /' conftest.$ac_ext >&5 4310 4311 ac_cv_header_stdc=no 4312 fi 4313 4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4315 4316 if test $ac_cv_header_stdc = yes; then 4317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4318 cat >conftest.$ac_ext <<_ACEOF 4319 /* confdefs.h. */ 4320 _ACEOF 4321 cat confdefs.h >>conftest.$ac_ext 4322 cat >>conftest.$ac_ext <<_ACEOF 4323 /* end confdefs.h. */ 4324 #include <string.h> 4325 4326 _ACEOF 4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4328 $EGREP "memchr" >/dev/null 2>&1; then 4329 : 4330 else 4331 ac_cv_header_stdc=no 4332 fi 4333 rm -f conftest* 4334 4335 fi 4336 4337 if test $ac_cv_header_stdc = yes; then 4338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4339 cat >conftest.$ac_ext <<_ACEOF 4340 /* confdefs.h. */ 4341 _ACEOF 4342 cat confdefs.h >>conftest.$ac_ext 4343 cat >>conftest.$ac_ext <<_ACEOF 4344 /* end confdefs.h. */ 4345 #include <stdlib.h> 4346 4347 _ACEOF 4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4349 $EGREP "free" >/dev/null 2>&1; then 4350 : 4351 else 4352 ac_cv_header_stdc=no 4353 fi 4354 rm -f conftest* 4355 4356 fi 4357 4358 if test $ac_cv_header_stdc = yes; then 4359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4360 if test "$cross_compiling" = yes; then 4361 : 4362 else 4363 cat >conftest.$ac_ext <<_ACEOF 4364 /* confdefs.h. */ 4365 _ACEOF 4366 cat confdefs.h >>conftest.$ac_ext 4367 cat >>conftest.$ac_ext <<_ACEOF 4368 /* end confdefs.h. */ 4369 #include <ctype.h> 4370 #include <stdlib.h> 4371 #if ((' ' & 0x0FF) == 0x020) 4372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4374 #else 4375 # define ISLOWER(c) \ 4376 (('a' <= (c) && (c) <= 'i') \ 4377 || ('j' <= (c) && (c) <= 'r') \ 4378 || ('s' <= (c) && (c) <= 'z')) 4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4380 #endif 4381 4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4383 int 4384 main () 4385 { 4386 int i; 4387 for (i = 0; i < 256; i++) 4388 if (XOR (islower (i), ISLOWER (i)) 4389 || toupper (i) != TOUPPER (i)) 4390 return 2; 4391 return 0; 4392 } 4393 _ACEOF 4394 rm -f conftest$ac_exeext 4395 if { (ac_try="$ac_link" 4396 case "(($ac_try" in 4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4398 *) ac_try_echo=$ac_try;; 4399 esac 4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4401 (eval "$ac_link") 2>&5 4402 ac_status=$? 4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4405 { (case "(($ac_try" in 4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4407 *) ac_try_echo=$ac_try;; 4408 esac 4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4410 (eval "$ac_try") 2>&5 4411 ac_status=$? 4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4413 (exit $ac_status); }; }; then 4414 : 4415 else 4416 echo "$as_me: program exited with status $ac_status" >&5 4417 echo "$as_me: failed program was:" >&5 4418 sed 's/^/| /' conftest.$ac_ext >&5 4419 4420 ( exit $ac_status ) 4421 ac_cv_header_stdc=no 4422 fi 4423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4424 fi 4425 4426 4427 fi 4428 fi 4429 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4430 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4431 if test $ac_cv_header_stdc = yes; then 4432 4433 cat >>confdefs.h <<\_ACEOF 4434 #define STDC_HEADERS 1 4435 _ACEOF 4436 4437 fi 4438 4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4450 inttypes.h stdint.h unistd.h 4451 do 4452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4453 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4456 echo $ECHO_N "(cached) $ECHO_C" >&6 4457 else 4458 cat >conftest.$ac_ext <<_ACEOF 4459 /* confdefs.h. */ 4460 _ACEOF 4461 cat confdefs.h >>conftest.$ac_ext 4462 cat >>conftest.$ac_ext <<_ACEOF 4463 /* end confdefs.h. */ 4464 $ac_includes_default 4465 4466 #include <$ac_header> 4467 _ACEOF 4468 rm -f conftest.$ac_objext 4469 if { (ac_try="$ac_compile" 4470 case "(($ac_try" in 4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4472 *) ac_try_echo=$ac_try;; 4473 esac 4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4475 (eval "$ac_compile") 2>conftest.er1 4476 ac_status=$? 4477 grep -v '^ *+' conftest.er1 >conftest.err 4478 rm -f conftest.er1 4479 cat conftest.err >&5 4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4481 (exit $ac_status); } && 4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4483 { (case "(($ac_try" in 4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4485 *) ac_try_echo=$ac_try;; 4486 esac 4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4488 (eval "$ac_try") 2>&5 4489 ac_status=$? 4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4491 (exit $ac_status); }; } && 4492 { ac_try='test -s conftest.$ac_objext' 4493 { (case "(($ac_try" in 4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4495 *) ac_try_echo=$ac_try;; 4496 esac 4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4498 (eval "$ac_try") 2>&5 4499 ac_status=$? 4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4501 (exit $ac_status); }; }; then 4502 eval "$as_ac_Header=yes" 4503 else 4504 echo "$as_me: failed program was:" >&5 4505 sed 's/^/| /' conftest.$ac_ext >&5 4506 4507 eval "$as_ac_Header=no" 4508 fi 4509 4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4511 fi 4512 ac_res=`eval echo '${'$as_ac_Header'}'` 4513 { echo "$as_me:$LINENO: result: $ac_res" >&5 4514 echo "${ECHO_T}$ac_res" >&6; } 4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4516 cat >>confdefs.h <<_ACEOF 4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4518 _ACEOF 4519 4520 fi 4521 4522 done 4523 4524 4525 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4526 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4527 if test "${ac_cv_c_bigendian+set}" = set; then 4528 echo $ECHO_N "(cached) $ECHO_C" >&6 4529 else 4530 # See if sys/param.h defines the BYTE_ORDER macro. 4531 cat >conftest.$ac_ext <<_ACEOF 4532 /* confdefs.h. */ 4533 _ACEOF 4534 cat confdefs.h >>conftest.$ac_ext 4535 cat >>conftest.$ac_ext <<_ACEOF 4536 /* end confdefs.h. */ 4537 #include <sys/types.h> 4538 #include <sys/param.h> 4539 4540 int 4541 main () 4542 { 4543 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4544 bogus endian macros 4545 #endif 4546 4547 ; 4548 return 0; 4549 } 4550 _ACEOF 4551 rm -f conftest.$ac_objext 4552 if { (ac_try="$ac_compile" 4553 case "(($ac_try" in 4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4555 *) ac_try_echo=$ac_try;; 4556 esac 4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4558 (eval "$ac_compile") 2>conftest.er1 4559 ac_status=$? 4560 grep -v '^ *+' conftest.er1 >conftest.err 4561 rm -f conftest.er1 4562 cat conftest.err >&5 4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564 (exit $ac_status); } && 4565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4566 { (case "(($ac_try" in 4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4568 *) ac_try_echo=$ac_try;; 4569 esac 4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4571 (eval "$ac_try") 2>&5 4572 ac_status=$? 4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); }; } && 4575 { ac_try='test -s conftest.$ac_objext' 4576 { (case "(($ac_try" in 4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4578 *) ac_try_echo=$ac_try;; 4579 esac 4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4581 (eval "$ac_try") 2>&5 4582 ac_status=$? 4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4584 (exit $ac_status); }; }; then 4585 # It does; now see whether it defined to BIG_ENDIAN or not. 4586 cat >conftest.$ac_ext <<_ACEOF 4587 /* confdefs.h. */ 4588 _ACEOF 4589 cat confdefs.h >>conftest.$ac_ext 4590 cat >>conftest.$ac_ext <<_ACEOF 4591 /* end confdefs.h. */ 4592 #include <sys/types.h> 4593 #include <sys/param.h> 4594 4595 int 4596 main () 4597 { 4598 #if BYTE_ORDER != BIG_ENDIAN 4599 not big endian 4600 #endif 4601 4602 ; 4603 return 0; 4604 } 4605 _ACEOF 4606 rm -f conftest.$ac_objext 4607 if { (ac_try="$ac_compile" 4608 case "(($ac_try" in 4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4610 *) ac_try_echo=$ac_try;; 4611 esac 4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4613 (eval "$ac_compile") 2>conftest.er1 4614 ac_status=$? 4615 grep -v '^ *+' conftest.er1 >conftest.err 4616 rm -f conftest.er1 4617 cat conftest.err >&5 4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4619 (exit $ac_status); } && 4620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4621 { (case "(($ac_try" in 4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4623 *) ac_try_echo=$ac_try;; 4624 esac 4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4626 (eval "$ac_try") 2>&5 4627 ac_status=$? 4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4629 (exit $ac_status); }; } && 4630 { ac_try='test -s conftest.$ac_objext' 4631 { (case "(($ac_try" in 4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4633 *) ac_try_echo=$ac_try;; 4634 esac 4635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4636 (eval "$ac_try") 2>&5 4637 ac_status=$? 4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4639 (exit $ac_status); }; }; then 4640 ac_cv_c_bigendian=yes 4641 else 4642 echo "$as_me: failed program was:" >&5 4643 sed 's/^/| /' conftest.$ac_ext >&5 4644 4645 ac_cv_c_bigendian=no 4646 fi 4647 4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4649 else 4650 echo "$as_me: failed program was:" >&5 4651 sed 's/^/| /' conftest.$ac_ext >&5 4652 4653 # It does not; compile a test program. 4654 if test "$cross_compiling" = yes; then 4655 # try to guess the endianness by grepping values into an object file 4656 ac_cv_c_bigendian=unknown 4657 cat >conftest.$ac_ext <<_ACEOF 4658 /* confdefs.h. */ 4659 _ACEOF 4660 cat confdefs.h >>conftest.$ac_ext 4661 cat >>conftest.$ac_ext <<_ACEOF 4662 /* end confdefs.h. */ 4663 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4664 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4665 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4666 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4667 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4668 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4669 int 4670 main () 4671 { 4672 _ascii (); _ebcdic (); 4673 ; 4674 return 0; 4675 } 4676 _ACEOF 4677 rm -f conftest.$ac_objext 4678 if { (ac_try="$ac_compile" 4679 case "(($ac_try" in 4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4681 *) ac_try_echo=$ac_try;; 4682 esac 4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4684 (eval "$ac_compile") 2>conftest.er1 4685 ac_status=$? 4686 grep -v '^ *+' conftest.er1 >conftest.err 4687 rm -f conftest.er1 4688 cat conftest.err >&5 4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4690 (exit $ac_status); } && 4691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4692 { (case "(($ac_try" in 4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4694 *) ac_try_echo=$ac_try;; 4695 esac 4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4697 (eval "$ac_try") 2>&5 4698 ac_status=$? 4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4700 (exit $ac_status); }; } && 4701 { ac_try='test -s conftest.$ac_objext' 4702 { (case "(($ac_try" in 4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4704 *) ac_try_echo=$ac_try;; 4705 esac 4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4707 (eval "$ac_try") 2>&5 4708 ac_status=$? 4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4710 (exit $ac_status); }; }; then 4711 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4712 ac_cv_c_bigendian=yes 4713 fi 4714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4715 if test "$ac_cv_c_bigendian" = unknown; then 4716 ac_cv_c_bigendian=no 4717 else 4718 # finding both strings is unlikely to happen, but who knows? 4719 ac_cv_c_bigendian=unknown 4720 fi 4721 fi 4722 else 4723 echo "$as_me: failed program was:" >&5 4724 sed 's/^/| /' conftest.$ac_ext >&5 4725 4726 4727 fi 4728 4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4730 else 4731 cat >conftest.$ac_ext <<_ACEOF 4732 /* confdefs.h. */ 4733 _ACEOF 4734 cat confdefs.h >>conftest.$ac_ext 4735 cat >>conftest.$ac_ext <<_ACEOF 4736 /* end confdefs.h. */ 4737 $ac_includes_default 4738 int 4739 main () 4740 { 4741 4742 /* Are we little or big endian? From Harbison&Steele. */ 4743 union 4744 { 4745 long int l; 4746 char c[sizeof (long int)]; 4747 } u; 4748 u.l = 1; 4749 return u.c[sizeof (long int) - 1] == 1; 4750 4751 ; 4752 return 0; 4753 } 4754 _ACEOF 4755 rm -f conftest$ac_exeext 4756 if { (ac_try="$ac_link" 4757 case "(($ac_try" in 4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4759 *) ac_try_echo=$ac_try;; 4760 esac 4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4762 (eval "$ac_link") 2>&5 4763 ac_status=$? 4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4766 { (case "(($ac_try" in 4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4768 *) ac_try_echo=$ac_try;; 4769 esac 4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4771 (eval "$ac_try") 2>&5 4772 ac_status=$? 4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4774 (exit $ac_status); }; }; then 4775 ac_cv_c_bigendian=no 4776 else 4777 echo "$as_me: program exited with status $ac_status" >&5 4778 echo "$as_me: failed program was:" >&5 4779 sed 's/^/| /' conftest.$ac_ext >&5 4780 4781 ( exit $ac_status ) 4782 ac_cv_c_bigendian=yes 4783 fi 4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4785 fi 4786 4787 4788 fi 4789 4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4791 fi 4792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4794 case $ac_cv_c_bigendian in 4795 yes) 4796 ENDIAN=big 4797 ;; 4798 no) 4799 ENDIAN=little 4800 ;; 4801 *) 4802 { { echo "$as_me:$LINENO: error: unknown endianness 4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4804 echo "$as_me: error: unknown endianness 4805 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4806 { (exit 1); exit 1; }; } ;; 4807 esac 4808 4809 4810 if test "$cross_compiling" = yes; then 4811 LLVM_CROSS_COMPILING=1 4812 4813 4814 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4815 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4816 if test "${ac_cv_build_exeext+set}" = set; then 4817 echo $ECHO_N "(cached) $ECHO_C" >&6 4818 else 4819 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4820 ac_cv_build_exeext=.exe 4821 else 4822 ac_build_prefix=${build_alias}- 4823 4824 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4825 set dummy ${ac_build_prefix}gcc; ac_word=$2 4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4828 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4829 echo $ECHO_N "(cached) $ECHO_C" >&6 4830 else 4831 if test -n "$BUILD_CC"; then 4832 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4833 else 4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4835 for as_dir in $PATH 4836 do 4837 IFS=$as_save_IFS 4838 test -z "$as_dir" && as_dir=. 4839 for ac_exec_ext in '' $ac_executable_extensions; do 4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4841 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4843 break 2 4844 fi 4845 done 4846 done 4847 IFS=$as_save_IFS 4848 4849 fi 4850 fi 4851 BUILD_CC=$ac_cv_prog_BUILD_CC 4852 if test -n "$BUILD_CC"; then 4853 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4854 echo "${ECHO_T}$BUILD_CC" >&6; } 4855 else 4856 { echo "$as_me:$LINENO: result: no" >&5 4857 echo "${ECHO_T}no" >&6; } 4858 fi 4859 4860 4861 if test -z "$BUILD_CC"; then 4862 # Extract the first word of "gcc", so it can be a program name with args. 4863 set dummy gcc; ac_word=$2 4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4866 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4867 echo $ECHO_N "(cached) $ECHO_C" >&6 4868 else 4869 if test -n "$BUILD_CC"; then 4870 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4871 else 4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4873 for as_dir in $PATH 4874 do 4875 IFS=$as_save_IFS 4876 test -z "$as_dir" && as_dir=. 4877 for ac_exec_ext in '' $ac_executable_extensions; do 4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4879 ac_cv_prog_BUILD_CC="gcc" 4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4881 break 2 4882 fi 4883 done 4884 done 4885 IFS=$as_save_IFS 4886 4887 fi 4888 fi 4889 BUILD_CC=$ac_cv_prog_BUILD_CC 4890 if test -n "$BUILD_CC"; then 4891 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4892 echo "${ECHO_T}$BUILD_CC" >&6; } 4893 else 4894 { echo "$as_me:$LINENO: result: no" >&5 4895 echo "${ECHO_T}no" >&6; } 4896 fi 4897 4898 4899 if test -z "$BUILD_CC"; then 4900 # Extract the first word of "cc", so it can be a program name with args. 4901 set dummy cc; ac_word=$2 4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4904 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4905 echo $ECHO_N "(cached) $ECHO_C" >&6 4906 else 4907 if test -n "$BUILD_CC"; then 4908 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4909 else 4910 ac_prog_rejected=no 4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4912 for as_dir in $PATH 4913 do 4914 IFS=$as_save_IFS 4915 test -z "$as_dir" && as_dir=. 4916 for ac_exec_ext in '' $ac_executable_extensions; do 4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4919 ac_prog_rejected=yes 4920 continue 4921 fi 4922 ac_cv_prog_BUILD_CC="cc" 4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4924 break 2 4925 fi 4926 done 4927 done 4928 IFS=$as_save_IFS 4929 4930 if test $ac_prog_rejected = yes; then 4931 # We found a bogon in the path, so make sure we never use it. 4932 set dummy $ac_cv_prog_BUILD_CC 4933 shift 4934 if test $# != 0; then 4935 # We chose a different compiler from the bogus one. 4936 # However, it has the same basename, so the bogon will be chosen 4937 # first if we set BUILD_CC to just the basename; use the full file name. 4938 shift 4939 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4940 fi 4941 fi 4942 fi 4943 fi 4944 BUILD_CC=$ac_cv_prog_BUILD_CC 4945 if test -n "$BUILD_CC"; then 4946 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4947 echo "${ECHO_T}$BUILD_CC" >&6; } 4948 else 4949 { echo "$as_me:$LINENO: result: no" >&5 4950 echo "${ECHO_T}no" >&6; } 4951 fi 4952 4953 4954 fi 4955 fi 4956 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4957 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4958 { (exit 1); exit 1; }; } 4959 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4960 rm -f conftest* 4961 echo 'int main () { return 0; }' > conftest.$ac_ext 4962 ac_cv_build_exeext= 4963 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4964 (eval $ac_build_link) 2>&5 4965 ac_status=$? 4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4967 (exit $ac_status); }; then 4968 for file in conftest.*; do 4969 case $file in 4970 *.c | *.o | *.obj | *.dSYM) ;; 4971 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4972 esac 4973 done 4974 else 4975 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4976 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4977 { (exit 1); exit 1; }; } 4978 fi 4979 rm -f conftest* 4980 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4981 fi 4982 fi 4983 4984 BUILD_EXEEXT="" 4985 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4986 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4987 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4988 ac_build_exeext=$BUILD_EXEEXT 4989 4990 ac_build_prefix=${build_alias}- 4991 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4992 set dummy ${ac_build_prefix}g++; ac_word=$2 4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4995 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4996 echo $ECHO_N "(cached) $ECHO_C" >&6 4997 else 4998 if test -n "$BUILD_CXX"; then 4999 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5000 else 5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5002 for as_dir in $PATH 5003 do 5004 IFS=$as_save_IFS 5005 test -z "$as_dir" && as_dir=. 5006 for ac_exec_ext in '' $ac_executable_extensions; do 5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5008 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5010 break 2 5011 fi 5012 done 5013 done 5014 IFS=$as_save_IFS 5015 5016 fi 5017 fi 5018 BUILD_CXX=$ac_cv_prog_BUILD_CXX 5019 if test -n "$BUILD_CXX"; then 5020 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5021 echo "${ECHO_T}$BUILD_CXX" >&6; } 5022 else 5023 { echo "$as_me:$LINENO: result: no" >&5 5024 echo "${ECHO_T}no" >&6; } 5025 fi 5026 5027 5028 if test -z "$BUILD_CXX"; then 5029 # Extract the first word of "g++", so it can be a program name with args. 5030 set dummy g++; ac_word=$2 5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5033 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5034 echo $ECHO_N "(cached) $ECHO_C" >&6 5035 else 5036 if test -n "$BUILD_CXX"; then 5037 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5038 else 5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5040 for as_dir in $PATH 5041 do 5042 IFS=$as_save_IFS 5043 test -z "$as_dir" && as_dir=. 5044 for ac_exec_ext in '' $ac_executable_extensions; do 5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5046 ac_cv_prog_BUILD_CXX="g++" 5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5048 break 2 5049 fi 5050 done 5051 done 5052 IFS=$as_save_IFS 5053 5054 fi 5055 fi 5056 BUILD_CXX=$ac_cv_prog_BUILD_CXX 5057 if test -n "$BUILD_CXX"; then 5058 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5059 echo "${ECHO_T}$BUILD_CXX" >&6; } 5060 else 5061 { echo "$as_me:$LINENO: result: no" >&5 5062 echo "${ECHO_T}no" >&6; } 5063 fi 5064 5065 5066 if test -z "$BUILD_CXX"; then 5067 # Extract the first word of "c++", so it can be a program name with args. 5068 set dummy c++; ac_word=$2 5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5071 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5072 echo $ECHO_N "(cached) $ECHO_C" >&6 5073 else 5074 if test -n "$BUILD_CXX"; then 5075 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5076 else 5077 ac_prog_rejected=no 5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5079 for as_dir in $PATH 5080 do 5081 IFS=$as_save_IFS 5082 test -z "$as_dir" && as_dir=. 5083 for ac_exec_ext in '' $ac_executable_extensions; do 5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 5086 ac_prog_rejected=yes 5087 continue 5088 fi 5089 ac_cv_prog_BUILD_CXX="c++" 5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5091 break 2 5092 fi 5093 done 5094 done 5095 IFS=$as_save_IFS 5096 5097 if test $ac_prog_rejected = yes; then 5098 # We found a bogon in the path, so make sure we never use it. 5099 set dummy $ac_cv_prog_BUILD_CXX 5100 shift 5101 if test $# != 0; then 5102 # We chose a different compiler from the bogus one. 5103 # However, it has the same basename, so the bogon will be chosen 5104 # first if we set BUILD_CXX to just the basename; use the full file name. 5105 shift 5106 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 5107 fi 5108 fi 5109 fi 5110 fi 5111 BUILD_CXX=$ac_cv_prog_BUILD_CXX 5112 if test -n "$BUILD_CXX"; then 5113 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5114 echo "${ECHO_T}$BUILD_CXX" >&6; } 5115 else 5116 { echo "$as_me:$LINENO: result: no" >&5 5117 echo "${ECHO_T}no" >&6; } 5118 fi 5119 5120 5121 fi 5122 fi 5123 else 5124 LLVM_CROSS_COMPILING=0 5125 5126 fi 5127 5128 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 5129 cvsbuild="yes" 5130 optimize="no" 5131 CVSBUILD=CVSBUILD=1 5132 5133 else 5134 cvsbuild="no" 5135 optimize="yes" 5136 fi 5137 5138 5139 # Check whether --enable-libcpp was given. 5140 if test "${enable_libcpp+set}" = set; then 5141 enableval=$enable_libcpp; 5142 else 5143 enableval=default 5144 fi 5145 5146 case "$enableval" in 5147 yes) ENABLE_LIBCPP=1 5148 ;; 5149 no) ENABLE_LIBCPP=0 5150 ;; 5151 default) ENABLE_LIBCPP=0 5152 ;; 5153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 5154 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 5155 { (exit 1); exit 1; }; } ;; 5156 esac 5157 5158 # Check whether --enable-cxx11 was given. 5159 if test "${enable_cxx11+set}" = set; then 5160 enableval=$enable_cxx11; 5161 else 5162 enableval=default 5163 fi 5164 5165 case "$enableval" in 5166 yes) ENABLE_CXX11=1 5167 ;; 5168 no) ENABLE_CXX11=0 5169 ;; 5170 default) ENABLE_CXX11=0 5171 ;; 5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 5173 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} 5174 { (exit 1); exit 1; }; } ;; 5175 esac 5176 5177 # Check whether --enable-split-dwarf was given. 5178 if test "${enable_split_dwarf+set}" = set; then 5179 enableval=$enable_split_dwarf; 5180 else 5181 enableval=default 5182 fi 5183 5184 case "$enableval" in 5185 yes) ENABLE_SPLIT_DWARF=1 5186 ;; 5187 no) ENABLE_SPLIT_DWARF=0 5188 ;; 5189 default) ENABLE_SPLIT_DWARF=0 5190 ;; 5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5 5192 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;} 5193 { (exit 1); exit 1; }; } ;; 5194 esac 5195 5196 clang_arcmt="yes" 5197 # Check whether --enable-clang-arcmt was given. 5198 if test "${enable_clang_arcmt+set}" = set; then 5199 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 5200 else 5201 enableval="yes" 5202 fi 5203 5204 case "$enableval" in 5205 yes) ENABLE_CLANG_ARCMT=1 5206 ;; 5207 no) ENABLE_CLANG_ARCMT=0 5208 ;; 5209 default) ENABLE_CLANG_ARCMT=1 5210 ;; 5211 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 5212 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} 5213 { (exit 1); exit 1; }; } ;; 5214 esac 5215 5216 clang_static_analyzer="yes" 5217 # Check whether --enable-clang-static-analyzer was given. 5218 if test "${enable_clang_static_analyzer+set}" = set; then 5219 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 5220 else 5221 enableval="yes" 5222 fi 5223 5224 case "$enableval" in 5225 yes) ENABLE_CLANG_STATIC_ANALYZER=1 5226 ;; 5227 no) ENABLE_CLANG_STATIC_ANALYZER=0 5228 ;; 5229 default) ENABLE_CLANG_STATIC_ANALYZER=1 5230 ;; 5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 5232 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} 5233 { (exit 1); exit 1; }; } ;; 5234 esac 5235 5236 # Check whether --enable-clang-rewriter was given. 5237 if test "${enable_clang_rewriter+set}" = set; then 5238 enableval=$enable_clang_rewriter; 5239 else 5240 enableval="yes" 5241 fi 5242 5243 case "$enableval" in 5244 yes) ENABLE_CLANG_REWRITER=1 5245 ;; 5246 no) 5247 if test ${clang_arcmt} != "no" ; then 5248 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5 5249 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;} 5250 { (exit 1); exit 1; }; } 5251 fi 5252 if test ${clang_static_analyzer} != "no" ; then 5253 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5 5254 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;} 5255 { (exit 1); exit 1; }; } 5256 fi 5257 ENABLE_CLANG_REWRITER=0 5258 5259 ;; 5260 default) ENABLE_CLANG_REWRITER=1 5261 ;; 5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5 5263 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;} 5264 { (exit 1); exit 1; }; } ;; 5265 esac 5266 5267 # Check whether --enable-optimized was given. 5268 if test "${enable_optimized+set}" = set; then 5269 enableval=$enable_optimized; 5270 else 5271 enableval=$optimize 5272 fi 5273 5274 if test ${enableval} = "no" ; then 5275 ENABLE_OPTIMIZED= 5276 5277 else 5278 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 5279 5280 fi 5281 5282 # Check whether --enable-profiling was given. 5283 if test "${enable_profiling+set}" = set; then 5284 enableval=$enable_profiling; 5285 else 5286 enableval="no" 5287 fi 5288 5289 if test ${enableval} = "no" ; then 5290 ENABLE_PROFILING= 5291 5292 else 5293 ENABLE_PROFILING=ENABLE_PROFILING=1 5294 5295 fi 5296 5297 # Check whether --enable-assertions was given. 5298 if test "${enable_assertions+set}" = set; then 5299 enableval=$enable_assertions; 5300 else 5301 enableval="yes" 5302 fi 5303 5304 if test ${enableval} = "yes" ; then 5305 DISABLE_ASSERTIONS= 5306 5307 else 5308 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5309 5310 fi 5311 5312 # Check whether --enable-werror was given. 5313 if test "${enable_werror+set}" = set; then 5314 enableval=$enable_werror; 5315 else 5316 enableval="no" 5317 fi 5318 5319 case "$enableval" in 5320 yes) ENABLE_WERROR=1 5321 ;; 5322 no) ENABLE_WERROR=0 5323 ;; 5324 default) ENABLE_WERROR=0 5325 ;; 5326 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5327 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5328 { (exit 1); exit 1; }; } ;; 5329 esac 5330 5331 # Check whether --enable-expensive-checks was given. 5332 if test "${enable_expensive_checks+set}" = set; then 5333 enableval=$enable_expensive_checks; 5334 else 5335 enableval="no" 5336 fi 5337 5338 if test ${enableval} = "yes" ; then 5339 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5340 5341 EXPENSIVE_CHECKS=yes 5342 5343 else 5344 ENABLE_EXPENSIVE_CHECKS= 5345 5346 EXPENSIVE_CHECKS=no 5347 5348 fi 5349 5350 # Check whether --enable-debug-runtime was given. 5351 if test "${enable_debug_runtime+set}" = set; then 5352 enableval=$enable_debug_runtime; 5353 else 5354 enableval=no 5355 fi 5356 5357 if test ${enableval} = "no" ; then 5358 DEBUG_RUNTIME= 5359 5360 else 5361 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5362 5363 fi 5364 5365 # Check whether --enable-debug-symbols was given. 5366 if test "${enable_debug_symbols+set}" = set; then 5367 enableval=$enable_debug_symbols; 5368 else 5369 enableval=no 5370 fi 5371 5372 if test ${enableval} = "no" ; then 5373 DEBUG_SYMBOLS= 5374 5375 else 5376 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5377 5378 fi 5379 5380 # Check whether --enable-keep-symbols was given. 5381 if test "${enable_keep_symbols+set}" = set; then 5382 enableval=$enable_keep_symbols; 5383 else 5384 enableval=no 5385 fi 5386 5387 if test ${enableval} = "no" ; then 5388 KEEP_SYMBOLS= 5389 5390 else 5391 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5392 5393 fi 5394 5395 # Check whether --enable-jit was given. 5396 if test "${enable_jit+set}" = set; then 5397 enableval=$enable_jit; 5398 else 5399 enableval=default 5400 fi 5401 5402 if test ${enableval} = "no" 5403 then 5404 JIT= 5405 5406 else 5407 case "$llvm_cv_target_arch" in 5408 x86) TARGET_HAS_JIT=1 5409 ;; 5410 Sparc) TARGET_HAS_JIT=0 5411 ;; 5412 PowerPC) TARGET_HAS_JIT=1 5413 ;; 5414 x86_64) TARGET_HAS_JIT=1 5415 ;; 5416 ARM) TARGET_HAS_JIT=1 5417 ;; 5418 AArch64) TARGET_HAS_JIT=0 5419 ;; 5420 Mips) TARGET_HAS_JIT=1 5421 ;; 5422 XCore) TARGET_HAS_JIT=0 5423 ;; 5424 MSP430) TARGET_HAS_JIT=0 5425 ;; 5426 Hexagon) TARGET_HAS_JIT=0 5427 ;; 5428 NVPTX) TARGET_HAS_JIT=0 5429 ;; 5430 SystemZ) TARGET_HAS_JIT=1 5431 ;; 5432 *) TARGET_HAS_JIT=0 5433 ;; 5434 esac 5435 fi 5436 5437 # Check whether --enable-docs was given. 5438 if test "${enable_docs+set}" = set; then 5439 enableval=$enable_docs; 5440 else 5441 enableval=default 5442 fi 5443 5444 case "$enableval" in 5445 yes) ENABLE_DOCS=1 5446 ;; 5447 no) ENABLE_DOCS=0 5448 ;; 5449 default) ENABLE_DOCS=1 5450 ;; 5451 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5452 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5453 { (exit 1); exit 1; }; } ;; 5454 esac 5455 5456 # Check whether --enable-doxygen was given. 5457 if test "${enable_doxygen+set}" = set; then 5458 enableval=$enable_doxygen; 5459 else 5460 enableval=default 5461 fi 5462 5463 case "$enableval" in 5464 yes) ENABLE_DOXYGEN=1 5465 ;; 5466 no) ENABLE_DOXYGEN=0 5467 ;; 5468 default) ENABLE_DOXYGEN=0 5469 ;; 5470 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5471 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5472 { (exit 1); exit 1; }; } ;; 5473 esac 5474 5475 # Check whether --enable-threads was given. 5476 if test "${enable_threads+set}" = set; then 5477 enableval=$enable_threads; 5478 else 5479 enableval=default 5480 fi 5481 5482 case "$enableval" in 5483 yes) LLVM_ENABLE_THREADS=1 5484 ;; 5485 no) LLVM_ENABLE_THREADS=0 5486 ;; 5487 default) LLVM_ENABLE_THREADS=1 5488 ;; 5489 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5490 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5491 { (exit 1); exit 1; }; } ;; 5492 esac 5493 5494 cat >>confdefs.h <<_ACEOF 5495 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5496 _ACEOF 5497 5498 5499 # Check whether --enable-pthreads was given. 5500 if test "${enable_pthreads+set}" = set; then 5501 enableval=$enable_pthreads; 5502 else 5503 enableval=default 5504 fi 5505 5506 case "$enableval" in 5507 yes) ENABLE_PTHREADS=1 5508 ;; 5509 no) ENABLE_PTHREADS=0 5510 ;; 5511 default) ENABLE_PTHREADS=1 5512 ;; 5513 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5514 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5515 { (exit 1); exit 1; }; } ;; 5516 esac 5517 5518 # Check whether --enable-zlib was given. 5519 if test "${enable_zlib+set}" = set; then 5520 enableval=$enable_zlib; 5521 else 5522 enableval=default 5523 fi 5524 5525 case "$enableval" in 5526 yes) LLVM_ENABLE_ZLIB=1 5527 ;; 5528 no) LLVM_ENABLE_ZLIB=0 5529 ;; 5530 default) LLVM_ENABLE_ZLIB=1 5531 ;; 5532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5 5533 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;} 5534 { (exit 1); exit 1; }; } ;; 5535 esac 5536 5537 cat >>confdefs.h <<_ACEOF 5538 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB 5539 _ACEOF 5540 5541 5542 # Check whether --enable-pic was given. 5543 if test "${enable_pic+set}" = set; then 5544 enableval=$enable_pic; 5545 else 5546 enableval=default 5547 fi 5548 5549 case "$enableval" in 5550 yes) ENABLE_PIC=1 5551 ;; 5552 no) ENABLE_PIC=0 5553 ;; 5554 default) ENABLE_PIC=1 5555 ;; 5556 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5557 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5558 { (exit 1); exit 1; }; } ;; 5559 esac 5560 5561 cat >>confdefs.h <<_ACEOF 5562 #define ENABLE_PIC $ENABLE_PIC 5563 _ACEOF 5564 5565 5566 # Check whether --enable-shared was given. 5567 if test "${enable_shared+set}" = set; then 5568 enableval=$enable_shared; 5569 else 5570 enableval=default 5571 fi 5572 5573 case "$enableval" in 5574 yes) ENABLE_SHARED=1 5575 ;; 5576 no) ENABLE_SHARED=0 5577 ;; 5578 default) ENABLE_SHARED=0 5579 ;; 5580 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5581 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5582 { (exit 1); exit 1; }; } ;; 5583 esac 5584 5585 # Check whether --enable-embed-stdcxx was given. 5586 if test "${enable_embed_stdcxx+set}" = set; then 5587 enableval=$enable_embed_stdcxx; 5588 else 5589 enableval=default 5590 fi 5591 5592 case "$enableval" in 5593 yes) ENABLE_EMBED_STDCXX=1 5594 ;; 5595 no) ENABLE_EMBED_STDCXX=0 5596 ;; 5597 default) ENABLE_EMBED_STDCXX=0 5598 ;; 5599 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5600 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5601 { (exit 1); exit 1; }; } ;; 5602 esac 5603 5604 # Check whether --enable-timestamps was given. 5605 if test "${enable_timestamps+set}" = set; then 5606 enableval=$enable_timestamps; 5607 else 5608 enableval=default 5609 fi 5610 5611 case "$enableval" in 5612 yes) ENABLE_TIMESTAMPS=1 5613 ;; 5614 no) ENABLE_TIMESTAMPS=0 5615 ;; 5616 default) ENABLE_TIMESTAMPS=1 5617 ;; 5618 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5619 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5620 { (exit 1); exit 1; }; } ;; 5621 esac 5622 5623 cat >>confdefs.h <<_ACEOF 5624 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5625 _ACEOF 5626 5627 5628 5629 # Check whether --enable-backtraces was given. 5630 if test "${enable_backtraces+set}" = set; then 5631 enableval=$enable_backtraces; 5632 else 5633 enableval=default 5634 fi 5635 5636 case "$enableval" in 5637 yes) ENABLE_BACKTRACES=1 5638 ;; 5639 no) ENABLE_BACKTRACES=0 5640 ;; 5641 default) ENABLE_BACKTRACES=1 5642 ;; 5643 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 5644 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} 5645 { (exit 1); exit 1; }; } ;; 5646 esac 5647 5648 cat >>confdefs.h <<_ACEOF 5649 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES 5650 _ACEOF 5651 5652 5653 TARGETS_TO_BUILD="" 5654 # Check whether --enable-targets was given. 5655 if test "${enable_targets+set}" = set; then 5656 enableval=$enable_targets; 5657 else 5658 enableval=all 5659 fi 5660 5661 if test "$enableval" = host-only ; then 5662 enableval=host 5663 fi 5664 case "$enableval" in 5665 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;; 5666 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5667 case "$a_target" in 5668 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5669 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5670 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5671 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5672 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5673 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5674 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5675 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5676 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5677 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5678 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5679 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5680 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5681 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5682 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5683 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5684 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;; 5685 host) case "$llvm_cv_target_arch" in 5686 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5687 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5688 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5689 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5690 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5691 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5692 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5693 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5694 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5695 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5696 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5697 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5698 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5699 echo "$as_me: error: Can not set target to build" >&2;} 5700 { (exit 1); exit 1; }; } ;; 5701 esac ;; 5702 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5703 echo "$as_me: error: Unrecognized target $a_target" >&2;} 5704 { (exit 1); exit 1; }; } ;; 5705 esac 5706 done 5707 ;; 5708 esac 5709 5710 # Check whether --enable-experimental-targets was given. 5711 if test "${enable_experimental_targets+set}" = set; then 5712 enableval=$enable_experimental_targets; 5713 else 5714 enableval=disable 5715 fi 5716 5717 5718 if test ${enableval} != "disable" 5719 then 5720 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5721 fi 5722 5723 TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5724 5725 5726 for a_target in $TARGETS_TO_BUILD; do 5727 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5728 5729 cat >>confdefs.h <<_ACEOF 5730 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5731 _ACEOF 5732 5733 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5734 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5735 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5736 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5737 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5738 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5739 fi 5740 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5741 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5742 fi 5743 5744 cat >>confdefs.h <<_ACEOF 5745 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5746 _ACEOF 5747 5748 5749 cat >>confdefs.h <<_ACEOF 5750 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5751 _ACEOF 5752 5753 5754 cat >>confdefs.h <<_ACEOF 5755 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5756 _ACEOF 5757 5758 5759 cat >>confdefs.h <<_ACEOF 5760 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5761 _ACEOF 5762 5763 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5764 5765 cat >>confdefs.h <<_ACEOF 5766 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5767 _ACEOF 5768 5769 fi 5770 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5771 5772 cat >>confdefs.h <<_ACEOF 5773 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5774 _ACEOF 5775 5776 fi 5777 fi 5778 done 5779 5780 LLVM_ENUM_TARGETS="" 5781 LLVM_ENUM_ASM_PRINTERS="" 5782 LLVM_ENUM_ASM_PARSERS="" 5783 LLVM_ENUM_DISASSEMBLERS="" 5784 for target_to_build in $TARGETS_TO_BUILD; do 5785 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5786 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5787 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5788 fi 5789 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5790 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5791 fi 5792 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5793 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5794 fi 5795 done 5796 5797 5798 5799 5800 5801 5802 # Check whether --with-optimize-option was given. 5803 if test "${with_optimize_option+set}" = set; then 5804 withval=$with_optimize_option; 5805 else 5806 withval=default 5807 fi 5808 5809 { echo "$as_me:$LINENO: checking optimization flags" >&5 5810 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5811 case "$withval" in 5812 default) 5813 case "$llvm_cv_os_type" in 5814 FreeBSD) optimize_option=-O2 ;; 5815 MingW) optimize_option=-O2 ;; 5816 *) optimize_option=-O3 ;; 5817 esac ;; 5818 *) optimize_option="$withval" ;; 5819 esac 5820 OPTIMIZE_OPTION=$optimize_option 5821 5822 { echo "$as_me:$LINENO: result: $optimize_option" >&5 5823 echo "${ECHO_T}$optimize_option" >&6; } 5824 5825 5826 # Check whether --with-extra-options was given. 5827 if test "${with_extra_options+set}" = set; then 5828 withval=$with_extra_options; 5829 else 5830 withval=default 5831 fi 5832 5833 case "$withval" in 5834 default) EXTRA_OPTIONS= ;; 5835 *) EXTRA_OPTIONS=$withval ;; 5836 esac 5837 EXTRA_OPTIONS=$EXTRA_OPTIONS 5838 5839 5840 5841 # Check whether --with-extra-ld-options was given. 5842 if test "${with_extra_ld_options+set}" = set; then 5843 withval=$with_extra_ld_options; 5844 else 5845 withval=default 5846 fi 5847 5848 case "$withval" in 5849 default) EXTRA_LD_OPTIONS= ;; 5850 *) EXTRA_LD_OPTIONS=$withval ;; 5851 esac 5852 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5853 5854 5855 # Check whether --enable-bindings was given. 5856 if test "${enable_bindings+set}" = set; then 5857 enableval=$enable_bindings; 5858 else 5859 enableval=default 5860 fi 5861 5862 BINDINGS_TO_BUILD="" 5863 case "$enableval" in 5864 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5865 all ) BINDINGS_TO_BUILD="ocaml" ;; 5866 none | no) BINDINGS_TO_BUILD="" ;; 5867 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5868 case "$a_binding" in 5869 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5870 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5871 echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5872 { (exit 1); exit 1; }; } ;; 5873 esac 5874 done 5875 ;; 5876 esac 5877 5878 5879 # Check whether --with-ocaml-libdir was given. 5880 if test "${with_ocaml_libdir+set}" = set; then 5881 withval=$with_ocaml_libdir; 5882 else 5883 withval=auto 5884 fi 5885 5886 case "$withval" in 5887 auto) with_ocaml_libdir="$withval" ;; 5888 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5889 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5890 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5891 { (exit 1); exit 1; }; } ;; 5892 esac 5893 5894 5895 # Check whether --with-clang-srcdir was given. 5896 if test "${with_clang_srcdir+set}" = set; then 5897 withval=$with_clang_srcdir; 5898 else 5899 withval="-" 5900 fi 5901 5902 case "$withval" in 5903 -) clang_src_root="" ;; 5904 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5905 *) clang_src_root="$ac_pwd/$withval" ;; 5906 esac 5907 CLANG_SRC_ROOT=$clang_src_root 5908 5909 5910 5911 # Check whether --with-clang-resource-dir was given. 5912 if test "${with_clang_resource_dir+set}" = set; then 5913 withval=$with_clang_resource_dir; 5914 else 5915 withval="" 5916 fi 5917 5918 5919 cat >>confdefs.h <<_ACEOF 5920 #define CLANG_RESOURCE_DIR "$withval" 5921 _ACEOF 5922 5923 5924 5925 # Check whether --with-c-include-dirs was given. 5926 if test "${with_c_include_dirs+set}" = set; then 5927 withval=$with_c_include_dirs; 5928 else 5929 withval="" 5930 fi 5931 5932 5933 cat >>confdefs.h <<_ACEOF 5934 #define C_INCLUDE_DIRS "$withval" 5935 _ACEOF 5936 5937 5938 # Clang normally uses the system c++ headers and libraries. With this option, 5939 # clang will use the ones provided by a gcc installation instead. This option should 5940 # be passed the same value that was used with --prefix when configuring gcc. 5941 5942 # Check whether --with-gcc-toolchain was given. 5943 if test "${with_gcc_toolchain+set}" = set; then 5944 withval=$with_gcc_toolchain; 5945 else 5946 withval="" 5947 fi 5948 5949 5950 cat >>confdefs.h <<_ACEOF 5951 #define GCC_INSTALL_PREFIX "$withval" 5952 _ACEOF 5953 5954 5955 5956 # Check whether --with-default-sysroot was given. 5957 if test "${with_default_sysroot+set}" = set; then 5958 withval=$with_default_sysroot; 5959 else 5960 withval="" 5961 fi 5962 5963 5964 cat >>confdefs.h <<_ACEOF 5965 #define DEFAULT_SYSROOT "$withval" 5966 _ACEOF 5967 5968 5969 5970 # Check whether --with-binutils-include was given. 5971 if test "${with_binutils_include+set}" = set; then 5972 withval=$with_binutils_include; 5973 else 5974 withval=default 5975 fi 5976 5977 case "$withval" in 5978 default) WITH_BINUTILS_INCDIR=default ;; 5979 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5980 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5981 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5982 { (exit 1); exit 1; }; } ;; 5983 esac 5984 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5985 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5986 5987 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5988 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5989 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5990 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5991 { (exit 1); exit 1; }; }; 5992 fi 5993 fi 5994 5995 5996 # Check whether --with-bug-report-url was given. 5997 if test "${with_bug_report_url+set}" = set; then 5998 withval=$with_bug_report_url; 5999 else 6000 withval="http://llvm.org/bugs/" 6001 fi 6002 6003 6004 cat >>confdefs.h <<_ACEOF 6005 #define BUG_REPORT_URL "$withval" 6006 _ACEOF 6007 6008 6009 # Check whether --enable-curses was given. 6010 if test "${enable_curses+set}" = set; then 6011 enableval=$enable_curses; case "$enableval" in 6012 yes) llvm_cv_enable_curses="yes" ;; 6013 no) llvm_cv_enable_curses="no" ;; 6014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-curses. Use \"yes\" or \"no\"" >&5 6015 echo "$as_me: error: Invalid setting for --enable-curses. Use \"yes\" or \"no\"" >&2;} 6016 { (exit 1); exit 1; }; } ;; 6017 esac 6018 else 6019 llvm_cv_enable_curses="yes" 6020 fi 6021 6022 6023 # Check whether --enable-libffi was given. 6024 if test "${enable_libffi+set}" = set; then 6025 enableval=$enable_libffi; case "$enableval" in 6026 yes) llvm_cv_enable_libffi="yes" ;; 6027 no) llvm_cv_enable_libffi="no" ;; 6028 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 6029 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 6030 { (exit 1); exit 1; }; } ;; 6031 esac 6032 else 6033 llvm_cv_enable_libffi=no 6034 fi 6035 6036 6037 6038 # Check whether --with-internal-prefix was given. 6039 if test "${with_internal_prefix+set}" = set; then 6040 withval=$with_internal_prefix; 6041 else 6042 withval="" 6043 fi 6044 6045 INTERNAL_PREFIX=$withval 6046 6047 6048 6049 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6050 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6051 if test "${lt_cv_path_NM+set}" = set; then 6052 echo $ECHO_N "(cached) $ECHO_C" >&6 6053 else 6054 if test -n "$NM"; then 6055 # Let the user override the test. 6056 lt_cv_path_NM="$NM" 6057 else 6058 lt_nm_to_check="${ac_tool_prefix}nm" 6059 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6060 lt_nm_to_check="$lt_nm_to_check nm" 6061 fi 6062 for lt_tmp_nm in $lt_nm_to_check; do 6063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6064 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6065 IFS="$lt_save_ifs" 6066 test -z "$ac_dir" && ac_dir=. 6067 tmp_nm="$ac_dir/$lt_tmp_nm" 6068 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6069 # Check to see if the nm accepts a BSD-compat flag. 6070 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6071 # nm: unknown option "B" ignored 6072 # Tru64's nm complains that /dev/null is an invalid object file 6073 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6074 */dev/null* | *'Invalid file or object type'*) 6075 lt_cv_path_NM="$tmp_nm -B" 6076 break 6077 ;; 6078 *) 6079 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6080 */dev/null*) 6081 lt_cv_path_NM="$tmp_nm -p" 6082 break 6083 ;; 6084 *) 6085 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6086 continue # so that we can try to find one that supports BSD flags 6087 ;; 6088 esac 6089 ;; 6090 esac 6091 fi 6092 done 6093 IFS="$lt_save_ifs" 6094 done 6095 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6096 fi 6097 fi 6098 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6099 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6100 NM="$lt_cv_path_NM" 6101 6102 6103 6104 { echo "$as_me:$LINENO: checking for GNU make" >&5 6105 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6106 if test "${llvm_cv_gnu_make_command+set}" = set; then 6107 echo $ECHO_N "(cached) $ECHO_C" >&6 6108 else 6109 llvm_cv_gnu_make_command='' 6110 for a in "$MAKE" make gmake gnumake ; do 6111 if test -z "$a" ; then continue ; fi ; 6112 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6113 then 6114 llvm_cv_gnu_make_command=$a ; 6115 break; 6116 fi 6117 done 6118 fi 6119 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6120 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6121 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6122 ifGNUmake='' ; 6123 else 6124 ifGNUmake='#' ; 6125 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6126 echo "${ECHO_T}\"Not found\"" >&6; }; 6127 fi 6128 6129 6130 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 6131 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6132 LN_S=$as_ln_s 6133 if test "$LN_S" = "ln -s"; then 6134 { echo "$as_me:$LINENO: result: yes" >&5 6135 echo "${ECHO_T}yes" >&6; } 6136 else 6137 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6138 echo "${ECHO_T}no, using $LN_S" >&6; } 6139 fi 6140 6141 # Extract the first word of "cmp", so it can be a program name with args. 6142 set dummy cmp; ac_word=$2 6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6145 if test "${ac_cv_path_CMP+set}" = set; then 6146 echo $ECHO_N "(cached) $ECHO_C" >&6 6147 else 6148 case $CMP in 6149 [\\/]* | ?:[\\/]*) 6150 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6151 ;; 6152 *) 6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154 for as_dir in $PATH 6155 do 6156 IFS=$as_save_IFS 6157 test -z "$as_dir" && as_dir=. 6158 for ac_exec_ext in '' $ac_executable_extensions; do 6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6160 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6162 break 2 6163 fi 6164 done 6165 done 6166 IFS=$as_save_IFS 6167 6168 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6169 ;; 6170 esac 6171 fi 6172 CMP=$ac_cv_path_CMP 6173 if test -n "$CMP"; then 6174 { echo "$as_me:$LINENO: result: $CMP" >&5 6175 echo "${ECHO_T}$CMP" >&6; } 6176 else 6177 { echo "$as_me:$LINENO: result: no" >&5 6178 echo "${ECHO_T}no" >&6; } 6179 fi 6180 6181 6182 # Extract the first word of "cp", so it can be a program name with args. 6183 set dummy cp; ac_word=$2 6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6186 if test "${ac_cv_path_CP+set}" = set; then 6187 echo $ECHO_N "(cached) $ECHO_C" >&6 6188 else 6189 case $CP in 6190 [\\/]* | ?:[\\/]*) 6191 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6192 ;; 6193 *) 6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6195 for as_dir in $PATH 6196 do 6197 IFS=$as_save_IFS 6198 test -z "$as_dir" && as_dir=. 6199 for ac_exec_ext in '' $ac_executable_extensions; do 6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6201 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6203 break 2 6204 fi 6205 done 6206 done 6207 IFS=$as_save_IFS 6208 6209 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6210 ;; 6211 esac 6212 fi 6213 CP=$ac_cv_path_CP 6214 if test -n "$CP"; then 6215 { echo "$as_me:$LINENO: result: $CP" >&5 6216 echo "${ECHO_T}$CP" >&6; } 6217 else 6218 { echo "$as_me:$LINENO: result: no" >&5 6219 echo "${ECHO_T}no" >&6; } 6220 fi 6221 6222 6223 # Extract the first word of "date", so it can be a program name with args. 6224 set dummy date; ac_word=$2 6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6227 if test "${ac_cv_path_DATE+set}" = set; then 6228 echo $ECHO_N "(cached) $ECHO_C" >&6 6229 else 6230 case $DATE in 6231 [\\/]* | ?:[\\/]*) 6232 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6233 ;; 6234 *) 6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236 for as_dir in $PATH 6237 do 6238 IFS=$as_save_IFS 6239 test -z "$as_dir" && as_dir=. 6240 for ac_exec_ext in '' $ac_executable_extensions; do 6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6242 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6244 break 2 6245 fi 6246 done 6247 done 6248 IFS=$as_save_IFS 6249 6250 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6251 ;; 6252 esac 6253 fi 6254 DATE=$ac_cv_path_DATE 6255 if test -n "$DATE"; then 6256 { echo "$as_me:$LINENO: result: $DATE" >&5 6257 echo "${ECHO_T}$DATE" >&6; } 6258 else 6259 { echo "$as_me:$LINENO: result: no" >&5 6260 echo "${ECHO_T}no" >&6; } 6261 fi 6262 6263 6264 # Extract the first word of "find", so it can be a program name with args. 6265 set dummy find; ac_word=$2 6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6268 if test "${ac_cv_path_FIND+set}" = set; then 6269 echo $ECHO_N "(cached) $ECHO_C" >&6 6270 else 6271 case $FIND in 6272 [\\/]* | ?:[\\/]*) 6273 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6274 ;; 6275 *) 6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6277 for as_dir in $PATH 6278 do 6279 IFS=$as_save_IFS 6280 test -z "$as_dir" && as_dir=. 6281 for ac_exec_ext in '' $ac_executable_extensions; do 6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6283 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6285 break 2 6286 fi 6287 done 6288 done 6289 IFS=$as_save_IFS 6290 6291 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6292 ;; 6293 esac 6294 fi 6295 FIND=$ac_cv_path_FIND 6296 if test -n "$FIND"; then 6297 { echo "$as_me:$LINENO: result: $FIND" >&5 6298 echo "${ECHO_T}$FIND" >&6; } 6299 else 6300 { echo "$as_me:$LINENO: result: no" >&5 6301 echo "${ECHO_T}no" >&6; } 6302 fi 6303 6304 6305 # Extract the first word of "grep", so it can be a program name with args. 6306 set dummy grep; ac_word=$2 6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6309 if test "${ac_cv_path_GREP+set}" = set; then 6310 echo $ECHO_N "(cached) $ECHO_C" >&6 6311 else 6312 case $GREP in 6313 [\\/]* | ?:[\\/]*) 6314 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6315 ;; 6316 *) 6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6318 for as_dir in $PATH 6319 do 6320 IFS=$as_save_IFS 6321 test -z "$as_dir" && as_dir=. 6322 for ac_exec_ext in '' $ac_executable_extensions; do 6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6324 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6326 break 2 6327 fi 6328 done 6329 done 6330 IFS=$as_save_IFS 6331 6332 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6333 ;; 6334 esac 6335 fi 6336 GREP=$ac_cv_path_GREP 6337 if test -n "$GREP"; then 6338 { echo "$as_me:$LINENO: result: $GREP" >&5 6339 echo "${ECHO_T}$GREP" >&6; } 6340 else 6341 { echo "$as_me:$LINENO: result: no" >&5 6342 echo "${ECHO_T}no" >&6; } 6343 fi 6344 6345 6346 # Extract the first word of "mkdir", so it can be a program name with args. 6347 set dummy mkdir; ac_word=$2 6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6350 if test "${ac_cv_path_MKDIR+set}" = set; then 6351 echo $ECHO_N "(cached) $ECHO_C" >&6 6352 else 6353 case $MKDIR in 6354 [\\/]* | ?:[\\/]*) 6355 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6356 ;; 6357 *) 6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6359 for as_dir in $PATH 6360 do 6361 IFS=$as_save_IFS 6362 test -z "$as_dir" && as_dir=. 6363 for ac_exec_ext in '' $ac_executable_extensions; do 6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6365 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6367 break 2 6368 fi 6369 done 6370 done 6371 IFS=$as_save_IFS 6372 6373 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6374 ;; 6375 esac 6376 fi 6377 MKDIR=$ac_cv_path_MKDIR 6378 if test -n "$MKDIR"; then 6379 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6380 echo "${ECHO_T}$MKDIR" >&6; } 6381 else 6382 { echo "$as_me:$LINENO: result: no" >&5 6383 echo "${ECHO_T}no" >&6; } 6384 fi 6385 6386 6387 # Extract the first word of "mv", so it can be a program name with args. 6388 set dummy mv; ac_word=$2 6389 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6391 if test "${ac_cv_path_MV+set}" = set; then 6392 echo $ECHO_N "(cached) $ECHO_C" >&6 6393 else 6394 case $MV in 6395 [\\/]* | ?:[\\/]*) 6396 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6397 ;; 6398 *) 6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6400 for as_dir in $PATH 6401 do 6402 IFS=$as_save_IFS 6403 test -z "$as_dir" && as_dir=. 6404 for ac_exec_ext in '' $ac_executable_extensions; do 6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6406 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6408 break 2 6409 fi 6410 done 6411 done 6412 IFS=$as_save_IFS 6413 6414 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6415 ;; 6416 esac 6417 fi 6418 MV=$ac_cv_path_MV 6419 if test -n "$MV"; then 6420 { echo "$as_me:$LINENO: result: $MV" >&5 6421 echo "${ECHO_T}$MV" >&6; } 6422 else 6423 { echo "$as_me:$LINENO: result: no" >&5 6424 echo "${ECHO_T}no" >&6; } 6425 fi 6426 6427 6428 if test -n "$ac_tool_prefix"; then 6429 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6430 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6431 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6433 if test "${ac_cv_prog_RANLIB+set}" = set; then 6434 echo $ECHO_N "(cached) $ECHO_C" >&6 6435 else 6436 if test -n "$RANLIB"; then 6437 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6438 else 6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440 for as_dir in $PATH 6441 do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6446 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6448 break 2 6449 fi 6450 done 6451 done 6452 IFS=$as_save_IFS 6453 6454 fi 6455 fi 6456 RANLIB=$ac_cv_prog_RANLIB 6457 if test -n "$RANLIB"; then 6458 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6459 echo "${ECHO_T}$RANLIB" >&6; } 6460 else 6461 { echo "$as_me:$LINENO: result: no" >&5 6462 echo "${ECHO_T}no" >&6; } 6463 fi 6464 6465 6466 fi 6467 if test -z "$ac_cv_prog_RANLIB"; then 6468 ac_ct_RANLIB=$RANLIB 6469 # Extract the first word of "ranlib", so it can be a program name with args. 6470 set dummy ranlib; ac_word=$2 6471 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6474 echo $ECHO_N "(cached) $ECHO_C" >&6 6475 else 6476 if test -n "$ac_ct_RANLIB"; then 6477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6478 else 6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480 for as_dir in $PATH 6481 do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6486 ac_cv_prog_ac_ct_RANLIB="ranlib" 6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490 done 6491 done 6492 IFS=$as_save_IFS 6493 6494 fi 6495 fi 6496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6497 if test -n "$ac_ct_RANLIB"; then 6498 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6499 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6500 else 6501 { echo "$as_me:$LINENO: result: no" >&5 6502 echo "${ECHO_T}no" >&6; } 6503 fi 6504 6505 if test "x$ac_ct_RANLIB" = x; then 6506 RANLIB=":" 6507 else 6508 case $cross_compiling:$ac_tool_warned in 6509 yes:) 6510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6511 whose name does not start with the host triplet. If you think this 6512 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6514 whose name does not start with the host triplet. If you think this 6515 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6516 ac_tool_warned=yes ;; 6517 esac 6518 RANLIB=$ac_ct_RANLIB 6519 fi 6520 else 6521 RANLIB="$ac_cv_prog_RANLIB" 6522 fi 6523 6524 if test -n "$ac_tool_prefix"; then 6525 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6526 set dummy ${ac_tool_prefix}ar; ac_word=$2 6527 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6529 if test "${ac_cv_prog_AR+set}" = set; then 6530 echo $ECHO_N "(cached) $ECHO_C" >&6 6531 else 6532 if test -n "$AR"; then 6533 ac_cv_prog_AR="$AR" # Let the user override the test. 6534 else 6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6536 for as_dir in $PATH 6537 do 6538 IFS=$as_save_IFS 6539 test -z "$as_dir" && as_dir=. 6540 for ac_exec_ext in '' $ac_executable_extensions; do 6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6542 ac_cv_prog_AR="${ac_tool_prefix}ar" 6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6544 break 2 6545 fi 6546 done 6547 done 6548 IFS=$as_save_IFS 6549 6550 fi 6551 fi 6552 AR=$ac_cv_prog_AR 6553 if test -n "$AR"; then 6554 { echo "$as_me:$LINENO: result: $AR" >&5 6555 echo "${ECHO_T}$AR" >&6; } 6556 else 6557 { echo "$as_me:$LINENO: result: no" >&5 6558 echo "${ECHO_T}no" >&6; } 6559 fi 6560 6561 6562 fi 6563 if test -z "$ac_cv_prog_AR"; then 6564 ac_ct_AR=$AR 6565 # Extract the first word of "ar", so it can be a program name with args. 6566 set dummy ar; ac_word=$2 6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6569 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6570 echo $ECHO_N "(cached) $ECHO_C" >&6 6571 else 6572 if test -n "$ac_ct_AR"; then 6573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6574 else 6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6576 for as_dir in $PATH 6577 do 6578 IFS=$as_save_IFS 6579 test -z "$as_dir" && as_dir=. 6580 for ac_exec_ext in '' $ac_executable_extensions; do 6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6582 ac_cv_prog_ac_ct_AR="ar" 6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6584 break 2 6585 fi 6586 done 6587 done 6588 IFS=$as_save_IFS 6589 6590 fi 6591 fi 6592 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6593 if test -n "$ac_ct_AR"; then 6594 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6595 echo "${ECHO_T}$ac_ct_AR" >&6; } 6596 else 6597 { echo "$as_me:$LINENO: result: no" >&5 6598 echo "${ECHO_T}no" >&6; } 6599 fi 6600 6601 if test "x$ac_ct_AR" = x; then 6602 AR="false" 6603 else 6604 case $cross_compiling:$ac_tool_warned in 6605 yes:) 6606 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6607 whose name does not start with the host triplet. If you think this 6608 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6609 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6610 whose name does not start with the host triplet. If you think this 6611 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6612 ac_tool_warned=yes ;; 6613 esac 6614 AR=$ac_ct_AR 6615 fi 6616 else 6617 AR="$ac_cv_prog_AR" 6618 fi 6619 6620 # Extract the first word of "rm", so it can be a program name with args. 6621 set dummy rm; ac_word=$2 6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6624 if test "${ac_cv_path_RM+set}" = set; then 6625 echo $ECHO_N "(cached) $ECHO_C" >&6 6626 else 6627 case $RM in 6628 [\\/]* | ?:[\\/]*) 6629 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6630 ;; 6631 *) 6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6633 for as_dir in $PATH 6634 do 6635 IFS=$as_save_IFS 6636 test -z "$as_dir" && as_dir=. 6637 for ac_exec_ext in '' $ac_executable_extensions; do 6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6639 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6641 break 2 6642 fi 6643 done 6644 done 6645 IFS=$as_save_IFS 6646 6647 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6648 ;; 6649 esac 6650 fi 6651 RM=$ac_cv_path_RM 6652 if test -n "$RM"; then 6653 { echo "$as_me:$LINENO: result: $RM" >&5 6654 echo "${ECHO_T}$RM" >&6; } 6655 else 6656 { echo "$as_me:$LINENO: result: no" >&5 6657 echo "${ECHO_T}no" >&6; } 6658 fi 6659 6660 6661 # Extract the first word of "sed", so it can be a program name with args. 6662 set dummy sed; ac_word=$2 6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6665 if test "${ac_cv_path_SED+set}" = set; then 6666 echo $ECHO_N "(cached) $ECHO_C" >&6 6667 else 6668 case $SED in 6669 [\\/]* | ?:[\\/]*) 6670 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6671 ;; 6672 *) 6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6674 for as_dir in $PATH 6675 do 6676 IFS=$as_save_IFS 6677 test -z "$as_dir" && as_dir=. 6678 for ac_exec_ext in '' $ac_executable_extensions; do 6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6680 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6682 break 2 6683 fi 6684 done 6685 done 6686 IFS=$as_save_IFS 6687 6688 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6689 ;; 6690 esac 6691 fi 6692 SED=$ac_cv_path_SED 6693 if test -n "$SED"; then 6694 { echo "$as_me:$LINENO: result: $SED" >&5 6695 echo "${ECHO_T}$SED" >&6; } 6696 else 6697 { echo "$as_me:$LINENO: result: no" >&5 6698 echo "${ECHO_T}no" >&6; } 6699 fi 6700 6701 6702 # Extract the first word of "tar", so it can be a program name with args. 6703 set dummy tar; ac_word=$2 6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6706 if test "${ac_cv_path_TAR+set}" = set; then 6707 echo $ECHO_N "(cached) $ECHO_C" >&6 6708 else 6709 case $TAR in 6710 [\\/]* | ?:[\\/]*) 6711 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6712 ;; 6713 *) 6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6715 for as_dir in $PATH 6716 do 6717 IFS=$as_save_IFS 6718 test -z "$as_dir" && as_dir=. 6719 for ac_exec_ext in '' $ac_executable_extensions; do 6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6721 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6723 break 2 6724 fi 6725 done 6726 done 6727 IFS=$as_save_IFS 6728 6729 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6730 ;; 6731 esac 6732 fi 6733 TAR=$ac_cv_path_TAR 6734 if test -n "$TAR"; then 6735 { echo "$as_me:$LINENO: result: $TAR" >&5 6736 echo "${ECHO_T}$TAR" >&6; } 6737 else 6738 { echo "$as_me:$LINENO: result: no" >&5 6739 echo "${ECHO_T}no" >&6; } 6740 fi 6741 6742 6743 # Extract the first word of "pwd", so it can be a program name with args. 6744 set dummy pwd; ac_word=$2 6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6747 if test "${ac_cv_path_BINPWD+set}" = set; then 6748 echo $ECHO_N "(cached) $ECHO_C" >&6 6749 else 6750 case $BINPWD in 6751 [\\/]* | ?:[\\/]*) 6752 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6753 ;; 6754 *) 6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756 for as_dir in $PATH 6757 do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6762 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766 done 6767 done 6768 IFS=$as_save_IFS 6769 6770 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6771 ;; 6772 esac 6773 fi 6774 BINPWD=$ac_cv_path_BINPWD 6775 if test -n "$BINPWD"; then 6776 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6777 echo "${ECHO_T}$BINPWD" >&6; } 6778 else 6779 { echo "$as_me:$LINENO: result: no" >&5 6780 echo "${ECHO_T}no" >&6; } 6781 fi 6782 6783 6784 6785 # Extract the first word of "Graphviz", so it can be a program name with args. 6786 set dummy Graphviz; ac_word=$2 6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6789 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6790 echo $ECHO_N "(cached) $ECHO_C" >&6 6791 else 6792 case $GRAPHVIZ in 6793 [\\/]* | ?:[\\/]*) 6794 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6795 ;; 6796 *) 6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6798 for as_dir in $PATH 6799 do 6800 IFS=$as_save_IFS 6801 test -z "$as_dir" && as_dir=. 6802 for ac_exec_ext in '' $ac_executable_extensions; do 6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6804 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6806 break 2 6807 fi 6808 done 6809 done 6810 IFS=$as_save_IFS 6811 6812 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6813 ;; 6814 esac 6815 fi 6816 GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6817 if test -n "$GRAPHVIZ"; then 6818 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6819 echo "${ECHO_T}$GRAPHVIZ" >&6; } 6820 else 6821 { echo "$as_me:$LINENO: result: no" >&5 6822 echo "${ECHO_T}no" >&6; } 6823 fi 6824 6825 6826 if test "$GRAPHVIZ" != "echo Graphviz" ; then 6827 6828 cat >>confdefs.h <<\_ACEOF 6829 #define HAVE_GRAPHVIZ 1 6830 _ACEOF 6831 6832 if test "$llvm_cv_os_type" = "MingW" ; then 6833 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6834 fi 6835 6836 cat >>confdefs.h <<_ACEOF 6837 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6838 _ACEOF 6839 6840 fi 6841 # Extract the first word of "dot", so it can be a program name with args. 6842 set dummy dot; ac_word=$2 6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6845 if test "${ac_cv_path_DOT+set}" = set; then 6846 echo $ECHO_N "(cached) $ECHO_C" >&6 6847 else 6848 case $DOT in 6849 [\\/]* | ?:[\\/]*) 6850 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6851 ;; 6852 *) 6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6854 for as_dir in $PATH 6855 do 6856 IFS=$as_save_IFS 6857 test -z "$as_dir" && as_dir=. 6858 for ac_exec_ext in '' $ac_executable_extensions; do 6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6860 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6862 break 2 6863 fi 6864 done 6865 done 6866 IFS=$as_save_IFS 6867 6868 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6869 ;; 6870 esac 6871 fi 6872 DOT=$ac_cv_path_DOT 6873 if test -n "$DOT"; then 6874 { echo "$as_me:$LINENO: result: $DOT" >&5 6875 echo "${ECHO_T}$DOT" >&6; } 6876 else 6877 { echo "$as_me:$LINENO: result: no" >&5 6878 echo "${ECHO_T}no" >&6; } 6879 fi 6880 6881 6882 if test "$DOT" != "echo dot" ; then 6883 6884 cat >>confdefs.h <<\_ACEOF 6885 #define HAVE_DOT 1 6886 _ACEOF 6887 6888 if test "$llvm_cv_os_type" = "MingW" ; then 6889 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6890 fi 6891 6892 cat >>confdefs.h <<_ACEOF 6893 #define LLVM_PATH_DOT "$DOT${EXEEXT}" 6894 _ACEOF 6895 6896 fi 6897 # Extract the first word of "fdp", so it can be a program name with args. 6898 set dummy fdp; ac_word=$2 6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6901 if test "${ac_cv_path_FDP+set}" = set; then 6902 echo $ECHO_N "(cached) $ECHO_C" >&6 6903 else 6904 case $FDP in 6905 [\\/]* | ?:[\\/]*) 6906 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6907 ;; 6908 *) 6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6910 for as_dir in $PATH 6911 do 6912 IFS=$as_save_IFS 6913 test -z "$as_dir" && as_dir=. 6914 for ac_exec_ext in '' $ac_executable_extensions; do 6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6916 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6918 break 2 6919 fi 6920 done 6921 done 6922 IFS=$as_save_IFS 6923 6924 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6925 ;; 6926 esac 6927 fi 6928 FDP=$ac_cv_path_FDP 6929 if test -n "$FDP"; then 6930 { echo "$as_me:$LINENO: result: $FDP" >&5 6931 echo "${ECHO_T}$FDP" >&6; } 6932 else 6933 { echo "$as_me:$LINENO: result: no" >&5 6934 echo "${ECHO_T}no" >&6; } 6935 fi 6936 6937 6938 if test "$FDP" != "echo fdp" ; then 6939 6940 cat >>confdefs.h <<\_ACEOF 6941 #define HAVE_FDP 1 6942 _ACEOF 6943 6944 if test "$llvm_cv_os_type" = "MingW" ; then 6945 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6946 fi 6947 6948 cat >>confdefs.h <<_ACEOF 6949 #define LLVM_PATH_FDP "$FDP${EXEEXT}" 6950 _ACEOF 6951 6952 fi 6953 # Extract the first word of "neato", so it can be a program name with args. 6954 set dummy neato; 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_NEATO+set}" = set; then 6958 echo $ECHO_N "(cached) $ECHO_C" >&6 6959 else 6960 case $NEATO in 6961 [\\/]* | ?:[\\/]*) 6962 ac_cv_path_NEATO="$NEATO" # 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_NEATO="$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 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6981 ;; 6982 esac 6983 fi 6984 NEATO=$ac_cv_path_NEATO 6985 if test -n "$NEATO"; then 6986 { echo "$as_me:$LINENO: result: $NEATO" >&5 6987 echo "${ECHO_T}$NEATO" >&6; } 6988 else 6989 { echo "$as_me:$LINENO: result: no" >&5 6990 echo "${ECHO_T}no" >&6; } 6991 fi 6992 6993 6994 if test "$NEATO" != "echo neato" ; then 6995 6996 cat >>confdefs.h <<\_ACEOF 6997 #define HAVE_NEATO 1 6998 _ACEOF 6999 7000 if test "$llvm_cv_os_type" = "MingW" ; then 7001 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7002 fi 7003 7004 cat >>confdefs.h <<_ACEOF 7005 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 7006 _ACEOF 7007 7008 fi 7009 # Extract the first word of "twopi", so it can be a program name with args. 7010 set dummy twopi; ac_word=$2 7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7013 if test "${ac_cv_path_TWOPI+set}" = set; then 7014 echo $ECHO_N "(cached) $ECHO_C" >&6 7015 else 7016 case $TWOPI in 7017 [\\/]* | ?:[\\/]*) 7018 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 7019 ;; 7020 *) 7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7022 for as_dir in $PATH 7023 do 7024 IFS=$as_save_IFS 7025 test -z "$as_dir" && as_dir=. 7026 for ac_exec_ext in '' $ac_executable_extensions; do 7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7028 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7030 break 2 7031 fi 7032 done 7033 done 7034 IFS=$as_save_IFS 7035 7036 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 7037 ;; 7038 esac 7039 fi 7040 TWOPI=$ac_cv_path_TWOPI 7041 if test -n "$TWOPI"; then 7042 { echo "$as_me:$LINENO: result: $TWOPI" >&5 7043 echo "${ECHO_T}$TWOPI" >&6; } 7044 else 7045 { echo "$as_me:$LINENO: result: no" >&5 7046 echo "${ECHO_T}no" >&6; } 7047 fi 7048 7049 7050 if test "$TWOPI" != "echo twopi" ; then 7051 7052 cat >>confdefs.h <<\_ACEOF 7053 #define HAVE_TWOPI 1 7054 _ACEOF 7055 7056 if test "$llvm_cv_os_type" = "MingW" ; then 7057 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7058 fi 7059 7060 cat >>confdefs.h <<_ACEOF 7061 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 7062 _ACEOF 7063 7064 fi 7065 # Extract the first word of "circo", so it can be a program name with args. 7066 set dummy circo; ac_word=$2 7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7069 if test "${ac_cv_path_CIRCO+set}" = set; then 7070 echo $ECHO_N "(cached) $ECHO_C" >&6 7071 else 7072 case $CIRCO in 7073 [\\/]* | ?:[\\/]*) 7074 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 7075 ;; 7076 *) 7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7078 for as_dir in $PATH 7079 do 7080 IFS=$as_save_IFS 7081 test -z "$as_dir" && as_dir=. 7082 for ac_exec_ext in '' $ac_executable_extensions; do 7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7084 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7086 break 2 7087 fi 7088 done 7089 done 7090 IFS=$as_save_IFS 7091 7092 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7093 ;; 7094 esac 7095 fi 7096 CIRCO=$ac_cv_path_CIRCO 7097 if test -n "$CIRCO"; then 7098 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7099 echo "${ECHO_T}$CIRCO" >&6; } 7100 else 7101 { echo "$as_me:$LINENO: result: no" >&5 7102 echo "${ECHO_T}no" >&6; } 7103 fi 7104 7105 7106 if test "$CIRCO" != "echo circo" ; then 7107 7108 cat >>confdefs.h <<\_ACEOF 7109 #define HAVE_CIRCO 1 7110 _ACEOF 7111 7112 if test "$llvm_cv_os_type" = "MingW" ; then 7113 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7114 fi 7115 7116 cat >>confdefs.h <<_ACEOF 7117 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7118 _ACEOF 7119 7120 fi 7121 for ac_prog in gv gsview32 7122 do 7123 # Extract the first word of "$ac_prog", so it can be a program name with args. 7124 set dummy $ac_prog; ac_word=$2 7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7127 if test "${ac_cv_path_GV+set}" = set; then 7128 echo $ECHO_N "(cached) $ECHO_C" >&6 7129 else 7130 case $GV in 7131 [\\/]* | ?:[\\/]*) 7132 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7133 ;; 7134 *) 7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7136 for as_dir in $PATH 7137 do 7138 IFS=$as_save_IFS 7139 test -z "$as_dir" && as_dir=. 7140 for ac_exec_ext in '' $ac_executable_extensions; do 7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7142 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7144 break 2 7145 fi 7146 done 7147 done 7148 IFS=$as_save_IFS 7149 7150 ;; 7151 esac 7152 fi 7153 GV=$ac_cv_path_GV 7154 if test -n "$GV"; then 7155 { echo "$as_me:$LINENO: result: $GV" >&5 7156 echo "${ECHO_T}$GV" >&6; } 7157 else 7158 { echo "$as_me:$LINENO: result: no" >&5 7159 echo "${ECHO_T}no" >&6; } 7160 fi 7161 7162 7163 test -n "$GV" && break 7164 done 7165 test -n "$GV" || GV="echo gv" 7166 7167 if test "$GV" != "echo gv" ; then 7168 7169 cat >>confdefs.h <<\_ACEOF 7170 #define HAVE_GV 1 7171 _ACEOF 7172 7173 if test "$llvm_cv_os_type" = "MingW" ; then 7174 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7175 fi 7176 7177 cat >>confdefs.h <<_ACEOF 7178 #define LLVM_PATH_GV "$GV${EXEEXT}" 7179 _ACEOF 7180 7181 fi 7182 # Extract the first word of "dotty", so it can be a program name with args. 7183 set dummy dotty; ac_word=$2 7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7186 if test "${ac_cv_path_DOTTY+set}" = set; then 7187 echo $ECHO_N "(cached) $ECHO_C" >&6 7188 else 7189 case $DOTTY in 7190 [\\/]* | ?:[\\/]*) 7191 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7192 ;; 7193 *) 7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7195 for as_dir in $PATH 7196 do 7197 IFS=$as_save_IFS 7198 test -z "$as_dir" && as_dir=. 7199 for ac_exec_ext in '' $ac_executable_extensions; do 7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7201 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7203 break 2 7204 fi 7205 done 7206 done 7207 IFS=$as_save_IFS 7208 7209 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7210 ;; 7211 esac 7212 fi 7213 DOTTY=$ac_cv_path_DOTTY 7214 if test -n "$DOTTY"; then 7215 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7216 echo "${ECHO_T}$DOTTY" >&6; } 7217 else 7218 { echo "$as_me:$LINENO: result: no" >&5 7219 echo "${ECHO_T}no" >&6; } 7220 fi 7221 7222 7223 if test "$DOTTY" != "echo dotty" ; then 7224 7225 cat >>confdefs.h <<\_ACEOF 7226 #define HAVE_DOTTY 1 7227 _ACEOF 7228 7229 if test "$llvm_cv_os_type" = "MingW" ; then 7230 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7231 fi 7232 7233 cat >>confdefs.h <<_ACEOF 7234 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7235 _ACEOF 7236 7237 fi 7238 for ac_prog in xdot xdot.py 7239 do 7240 # Extract the first word of "$ac_prog", so it can be a program name with args. 7241 set dummy $ac_prog; ac_word=$2 7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7244 if test "${ac_cv_path_XDOT+set}" = set; then 7245 echo $ECHO_N "(cached) $ECHO_C" >&6 7246 else 7247 case $XDOT in 7248 [\\/]* | ?:[\\/]*) 7249 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path. 7250 ;; 7251 *) 7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7253 for as_dir in $PATH 7254 do 7255 IFS=$as_save_IFS 7256 test -z "$as_dir" && as_dir=. 7257 for ac_exec_ext in '' $ac_executable_extensions; do 7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7259 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext" 7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7261 break 2 7262 fi 7263 done 7264 done 7265 IFS=$as_save_IFS 7266 7267 ;; 7268 esac 7269 fi 7270 XDOT=$ac_cv_path_XDOT 7271 if test -n "$XDOT"; then 7272 { echo "$as_me:$LINENO: result: $XDOT" >&5 7273 echo "${ECHO_T}$XDOT" >&6; } 7274 else 7275 { echo "$as_me:$LINENO: result: no" >&5 7276 echo "${ECHO_T}no" >&6; } 7277 fi 7278 7279 7280 test -n "$XDOT" && break 7281 done 7282 test -n "$XDOT" || XDOT="echo xdot" 7283 7284 if test "$XDOT" != "echo xdot" ; then 7285 7286 cat >>confdefs.h <<\_ACEOF 7287 #define HAVE_XDOT 1 7288 _ACEOF 7289 7290 if test "$llvm_cv_os_type" = "MingW" ; then 7291 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7292 fi 7293 7294 cat >>confdefs.h <<_ACEOF 7295 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}" 7296 _ACEOF 7297 7298 fi 7299 7300 # Find a good install program. We prefer a C program (faster), 7301 # so one script is as good as another. But avoid the broken or 7302 # incompatible versions: 7303 # SysV /etc/install, /usr/sbin/install 7304 # SunOS /usr/etc/install 7305 # IRIX /sbin/install 7306 # AIX /bin/install 7307 # AmigaOS /C/install, which installs bootblocks on floppy discs 7308 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7309 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 7310 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7311 # OS/2's system install, which has a completely different semantic 7312 # ./install, which can be erroneously created by make from ./install.sh. 7313 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7314 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7315 if test -z "$INSTALL"; then 7316 if test "${ac_cv_path_install+set}" = set; then 7317 echo $ECHO_N "(cached) $ECHO_C" >&6 7318 else 7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7320 for as_dir in $PATH 7321 do 7322 IFS=$as_save_IFS 7323 test -z "$as_dir" && as_dir=. 7324 # Account for people who put trailing slashes in PATH elements. 7325 case $as_dir/ in 7326 ./ | .// | /cC/* | \ 7327 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7328 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7329 /usr/ucb/* ) ;; 7330 *) 7331 # OSF1 and SCO ODT 3.0 have their own names for install. 7332 # Don't use installbsd from OSF since it installs stuff as root 7333 # by default. 7334 for ac_prog in ginstall scoinst install; do 7335 for ac_exec_ext in '' $ac_executable_extensions; do 7336 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7337 if test $ac_prog = install && 7338 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7339 # AIX install. It has an incompatible calling convention. 7340 : 7341 elif test $ac_prog = install && 7342 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7343 # program-specific install script used by HP pwplus--don't use. 7344 : 7345 else 7346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7347 break 3 7348 fi 7349 fi 7350 done 7351 done 7352 ;; 7353 esac 7354 done 7355 IFS=$as_save_IFS 7356 7357 7358 fi 7359 if test "${ac_cv_path_install+set}" = set; then 7360 INSTALL=$ac_cv_path_install 7361 else 7362 # As a last resort, use the slow shell script. Don't cache a 7363 # value for INSTALL within a source directory, because that will 7364 # break other packages using the cache if that directory is 7365 # removed, or if the value is a relative name. 7366 INSTALL=$ac_install_sh 7367 fi 7368 fi 7369 { echo "$as_me:$LINENO: result: $INSTALL" >&5 7370 echo "${ECHO_T}$INSTALL" >&6; } 7371 7372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7373 # It thinks the first close brace ends the variable substitution. 7374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7375 7376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7377 7378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7379 7380 case "$INSTALL" in 7381 [\\/$]* | ?:[\\/]* ) ;; 7382 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7383 esac 7384 7385 # Extract the first word of "bzip2", so it can be a program name with args. 7386 set dummy bzip2; ac_word=$2 7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7389 if test "${ac_cv_path_BZIP2+set}" = set; then 7390 echo $ECHO_N "(cached) $ECHO_C" >&6 7391 else 7392 case $BZIP2 in 7393 [\\/]* | ?:[\\/]*) 7394 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7395 ;; 7396 *) 7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7398 for as_dir in $PATH 7399 do 7400 IFS=$as_save_IFS 7401 test -z "$as_dir" && as_dir=. 7402 for ac_exec_ext in '' $ac_executable_extensions; do 7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7404 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7406 break 2 7407 fi 7408 done 7409 done 7410 IFS=$as_save_IFS 7411 7412 ;; 7413 esac 7414 fi 7415 BZIP2=$ac_cv_path_BZIP2 7416 if test -n "$BZIP2"; then 7417 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7418 echo "${ECHO_T}$BZIP2" >&6; } 7419 else 7420 { echo "$as_me:$LINENO: result: no" >&5 7421 echo "${ECHO_T}no" >&6; } 7422 fi 7423 7424 7425 # Extract the first word of "cat", so it can be a program name with args. 7426 set dummy cat; ac_word=$2 7427 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7429 if test "${ac_cv_path_CAT+set}" = set; then 7430 echo $ECHO_N "(cached) $ECHO_C" >&6 7431 else 7432 case $CAT in 7433 [\\/]* | ?:[\\/]*) 7434 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7435 ;; 7436 *) 7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7438 for as_dir in $PATH 7439 do 7440 IFS=$as_save_IFS 7441 test -z "$as_dir" && as_dir=. 7442 for ac_exec_ext in '' $ac_executable_extensions; do 7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7444 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7446 break 2 7447 fi 7448 done 7449 done 7450 IFS=$as_save_IFS 7451 7452 ;; 7453 esac 7454 fi 7455 CAT=$ac_cv_path_CAT 7456 if test -n "$CAT"; then 7457 { echo "$as_me:$LINENO: result: $CAT" >&5 7458 echo "${ECHO_T}$CAT" >&6; } 7459 else 7460 { echo "$as_me:$LINENO: result: no" >&5 7461 echo "${ECHO_T}no" >&6; } 7462 fi 7463 7464 7465 # Extract the first word of "doxygen", so it can be a program name with args. 7466 set dummy doxygen; ac_word=$2 7467 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7469 if test "${ac_cv_path_DOXYGEN+set}" = set; then 7470 echo $ECHO_N "(cached) $ECHO_C" >&6 7471 else 7472 case $DOXYGEN in 7473 [\\/]* | ?:[\\/]*) 7474 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7475 ;; 7476 *) 7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7478 for as_dir in $PATH 7479 do 7480 IFS=$as_save_IFS 7481 test -z "$as_dir" && as_dir=. 7482 for ac_exec_ext in '' $ac_executable_extensions; do 7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7484 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7486 break 2 7487 fi 7488 done 7489 done 7490 IFS=$as_save_IFS 7491 7492 ;; 7493 esac 7494 fi 7495 DOXYGEN=$ac_cv_path_DOXYGEN 7496 if test -n "$DOXYGEN"; then 7497 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7498 echo "${ECHO_T}$DOXYGEN" >&6; } 7499 else 7500 { echo "$as_me:$LINENO: result: no" >&5 7501 echo "${ECHO_T}no" >&6; } 7502 fi 7503 7504 7505 # Extract the first word of "groff", so it can be a program name with args. 7506 set dummy groff; ac_word=$2 7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7509 if test "${ac_cv_path_GROFF+set}" = set; then 7510 echo $ECHO_N "(cached) $ECHO_C" >&6 7511 else 7512 case $GROFF in 7513 [\\/]* | ?:[\\/]*) 7514 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7515 ;; 7516 *) 7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7518 for as_dir in $PATH 7519 do 7520 IFS=$as_save_IFS 7521 test -z "$as_dir" && as_dir=. 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7524 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528 done 7529 done 7530 IFS=$as_save_IFS 7531 7532 ;; 7533 esac 7534 fi 7535 GROFF=$ac_cv_path_GROFF 7536 if test -n "$GROFF"; then 7537 { echo "$as_me:$LINENO: result: $GROFF" >&5 7538 echo "${ECHO_T}$GROFF" >&6; } 7539 else 7540 { echo "$as_me:$LINENO: result: no" >&5 7541 echo "${ECHO_T}no" >&6; } 7542 fi 7543 7544 7545 # Extract the first word of "gzip", so it can be a program name with args. 7546 set dummy gzip; ac_word=$2 7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7549 if test "${ac_cv_path_GZIPBIN+set}" = set; then 7550 echo $ECHO_N "(cached) $ECHO_C" >&6 7551 else 7552 case $GZIPBIN in 7553 [\\/]* | ?:[\\/]*) 7554 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7555 ;; 7556 *) 7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558 for as_dir in $PATH 7559 do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7564 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568 done 7569 done 7570 IFS=$as_save_IFS 7571 7572 ;; 7573 esac 7574 fi 7575 GZIPBIN=$ac_cv_path_GZIPBIN 7576 if test -n "$GZIPBIN"; then 7577 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7578 echo "${ECHO_T}$GZIPBIN" >&6; } 7579 else 7580 { echo "$as_me:$LINENO: result: no" >&5 7581 echo "${ECHO_T}no" >&6; } 7582 fi 7583 7584 7585 # Extract the first word of "pdfroff", so it can be a program name with args. 7586 set dummy pdfroff; ac_word=$2 7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7589 if test "${ac_cv_path_PDFROFF+set}" = set; then 7590 echo $ECHO_N "(cached) $ECHO_C" >&6 7591 else 7592 case $PDFROFF in 7593 [\\/]* | ?:[\\/]*) 7594 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7595 ;; 7596 *) 7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7598 for as_dir in $PATH 7599 do 7600 IFS=$as_save_IFS 7601 test -z "$as_dir" && as_dir=. 7602 for ac_exec_ext in '' $ac_executable_extensions; do 7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7604 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7606 break 2 7607 fi 7608 done 7609 done 7610 IFS=$as_save_IFS 7611 7612 ;; 7613 esac 7614 fi 7615 PDFROFF=$ac_cv_path_PDFROFF 7616 if test -n "$PDFROFF"; then 7617 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7618 echo "${ECHO_T}$PDFROFF" >&6; } 7619 else 7620 { echo "$as_me:$LINENO: result: no" >&5 7621 echo "${ECHO_T}no" >&6; } 7622 fi 7623 7624 7625 # Extract the first word of "zip", so it can be a program name with args. 7626 set dummy zip; 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_ZIP+set}" = set; then 7630 echo $ECHO_N "(cached) $ECHO_C" >&6 7631 else 7632 case $ZIP in 7633 [\\/]* | ?:[\\/]*) 7634 ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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 ZIP=$ac_cv_path_ZIP 7656 if test -n "$ZIP"; then 7657 { echo "$as_me:$LINENO: result: $ZIP" >&5 7658 echo "${ECHO_T}$ZIP" >&6; } 7659 else 7660 { echo "$as_me:$LINENO: result: no" >&5 7661 echo "${ECHO_T}no" >&6; } 7662 fi 7663 7664 7665 for ac_prog in ocamlc 7666 do 7667 # Extract the first word of "$ac_prog", so it can be a program name with args. 7668 set dummy $ac_prog; ac_word=$2 7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7671 if test "${ac_cv_path_OCAMLC+set}" = set; then 7672 echo $ECHO_N "(cached) $ECHO_C" >&6 7673 else 7674 case $OCAMLC in 7675 [\\/]* | ?:[\\/]*) 7676 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7677 ;; 7678 *) 7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7680 for as_dir in $PATH 7681 do 7682 IFS=$as_save_IFS 7683 test -z "$as_dir" && as_dir=. 7684 for ac_exec_ext in '' $ac_executable_extensions; do 7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7686 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7688 break 2 7689 fi 7690 done 7691 done 7692 IFS=$as_save_IFS 7693 7694 ;; 7695 esac 7696 fi 7697 OCAMLC=$ac_cv_path_OCAMLC 7698 if test -n "$OCAMLC"; then 7699 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7700 echo "${ECHO_T}$OCAMLC" >&6; } 7701 else 7702 { echo "$as_me:$LINENO: result: no" >&5 7703 echo "${ECHO_T}no" >&6; } 7704 fi 7705 7706 7707 test -n "$OCAMLC" && break 7708 done 7709 7710 for ac_prog in ocamlopt 7711 do 7712 # Extract the first word of "$ac_prog", so it can be a program name with args. 7713 set dummy $ac_prog; ac_word=$2 7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7716 if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7717 echo $ECHO_N "(cached) $ECHO_C" >&6 7718 else 7719 case $OCAMLOPT in 7720 [\\/]* | ?:[\\/]*) 7721 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7722 ;; 7723 *) 7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7725 for as_dir in $PATH 7726 do 7727 IFS=$as_save_IFS 7728 test -z "$as_dir" && as_dir=. 7729 for ac_exec_ext in '' $ac_executable_extensions; do 7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7731 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7733 break 2 7734 fi 7735 done 7736 done 7737 IFS=$as_save_IFS 7738 7739 ;; 7740 esac 7741 fi 7742 OCAMLOPT=$ac_cv_path_OCAMLOPT 7743 if test -n "$OCAMLOPT"; then 7744 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7745 echo "${ECHO_T}$OCAMLOPT" >&6; } 7746 else 7747 { echo "$as_me:$LINENO: result: no" >&5 7748 echo "${ECHO_T}no" >&6; } 7749 fi 7750 7751 7752 test -n "$OCAMLOPT" && break 7753 done 7754 7755 for ac_prog in ocamldep 7756 do 7757 # Extract the first word of "$ac_prog", so it can be a program name with args. 7758 set dummy $ac_prog; ac_word=$2 7759 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7761 if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7762 echo $ECHO_N "(cached) $ECHO_C" >&6 7763 else 7764 case $OCAMLDEP in 7765 [\\/]* | ?:[\\/]*) 7766 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7767 ;; 7768 *) 7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7770 for as_dir in $PATH 7771 do 7772 IFS=$as_save_IFS 7773 test -z "$as_dir" && as_dir=. 7774 for ac_exec_ext in '' $ac_executable_extensions; do 7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7776 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7778 break 2 7779 fi 7780 done 7781 done 7782 IFS=$as_save_IFS 7783 7784 ;; 7785 esac 7786 fi 7787 OCAMLDEP=$ac_cv_path_OCAMLDEP 7788 if test -n "$OCAMLDEP"; then 7789 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7790 echo "${ECHO_T}$OCAMLDEP" >&6; } 7791 else 7792 { echo "$as_me:$LINENO: result: no" >&5 7793 echo "${ECHO_T}no" >&6; } 7794 fi 7795 7796 7797 test -n "$OCAMLDEP" && break 7798 done 7799 7800 for ac_prog in ocamldoc 7801 do 7802 # Extract the first word of "$ac_prog", so it can be a program name with args. 7803 set dummy $ac_prog; ac_word=$2 7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7806 if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7807 echo $ECHO_N "(cached) $ECHO_C" >&6 7808 else 7809 case $OCAMLDOC in 7810 [\\/]* | ?:[\\/]*) 7811 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7812 ;; 7813 *) 7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7815 for as_dir in $PATH 7816 do 7817 IFS=$as_save_IFS 7818 test -z "$as_dir" && as_dir=. 7819 for ac_exec_ext in '' $ac_executable_extensions; do 7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7821 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7823 break 2 7824 fi 7825 done 7826 done 7827 IFS=$as_save_IFS 7828 7829 ;; 7830 esac 7831 fi 7832 OCAMLDOC=$ac_cv_path_OCAMLDOC 7833 if test -n "$OCAMLDOC"; then 7834 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7835 echo "${ECHO_T}$OCAMLDOC" >&6; } 7836 else 7837 { echo "$as_me:$LINENO: result: no" >&5 7838 echo "${ECHO_T}no" >&6; } 7839 fi 7840 7841 7842 test -n "$OCAMLDOC" && break 7843 done 7844 7845 for ac_prog in gas as 7846 do 7847 # Extract the first word of "$ac_prog", so it can be a program name with args. 7848 set dummy $ac_prog; ac_word=$2 7849 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7851 if test "${ac_cv_path_GAS+set}" = set; then 7852 echo $ECHO_N "(cached) $ECHO_C" >&6 7853 else 7854 case $GAS in 7855 [\\/]* | ?:[\\/]*) 7856 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7857 ;; 7858 *) 7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7860 for as_dir in $PATH 7861 do 7862 IFS=$as_save_IFS 7863 test -z "$as_dir" && as_dir=. 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7866 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870 done 7871 done 7872 IFS=$as_save_IFS 7873 7874 ;; 7875 esac 7876 fi 7877 GAS=$ac_cv_path_GAS 7878 if test -n "$GAS"; then 7879 { echo "$as_me:$LINENO: result: $GAS" >&5 7880 echo "${ECHO_T}$GAS" >&6; } 7881 else 7882 { echo "$as_me:$LINENO: result: no" >&5 7883 echo "${ECHO_T}no" >&6; } 7884 fi 7885 7886 7887 test -n "$GAS" && break 7888 done 7889 7890 7891 { echo "$as_me:$LINENO: checking for linker version" >&5 7892 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7893 if test "${llvm_cv_link_version+set}" = set; then 7894 echo $ECHO_N "(cached) $ECHO_C" >&6 7895 else 7896 7897 version_string="$(ld -v 2>&1 | head -1)" 7898 7899 # Check for ld64. 7900 if (echo "$version_string" | grep -q "ld64"); then 7901 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7902 else 7903 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7904 fi 7905 7906 fi 7907 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7908 echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7909 7910 cat >>confdefs.h <<_ACEOF 7911 #define HOST_LINK_VERSION "$llvm_cv_link_version" 7912 _ACEOF 7913 7914 7915 7916 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7917 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7918 if test "${llvm_cv_link_use_r+set}" = set; then 7919 echo $ECHO_N "(cached) $ECHO_C" >&6 7920 else 7921 ac_ext=c 7922 ac_cpp='$CPP $CPPFLAGS' 7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7926 7927 oldcflags="$CFLAGS" 7928 CFLAGS="$CFLAGS -Wl,-R." 7929 cat >conftest.$ac_ext <<_ACEOF 7930 /* confdefs.h. */ 7931 _ACEOF 7932 cat confdefs.h >>conftest.$ac_ext 7933 cat >>conftest.$ac_ext <<_ACEOF 7934 /* end confdefs.h. */ 7935 7936 int 7937 main () 7938 { 7939 7940 ; 7941 return 0; 7942 } 7943 _ACEOF 7944 rm -f conftest.$ac_objext conftest$ac_exeext 7945 if { (ac_try="$ac_link" 7946 case "(($ac_try" in 7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7948 *) ac_try_echo=$ac_try;; 7949 esac 7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7951 (eval "$ac_link") 2>conftest.er1 7952 ac_status=$? 7953 grep -v '^ *+' conftest.er1 >conftest.err 7954 rm -f conftest.er1 7955 cat conftest.err >&5 7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 (exit $ac_status); } && 7958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7959 { (case "(($ac_try" in 7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7961 *) ac_try_echo=$ac_try;; 7962 esac 7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7964 (eval "$ac_try") 2>&5 7965 ac_status=$? 7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7967 (exit $ac_status); }; } && 7968 { ac_try='test -s conftest$ac_exeext' 7969 { (case "(($ac_try" in 7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7971 *) ac_try_echo=$ac_try;; 7972 esac 7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7974 (eval "$ac_try") 2>&5 7975 ac_status=$? 7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7977 (exit $ac_status); }; }; then 7978 llvm_cv_link_use_r=yes 7979 else 7980 echo "$as_me: failed program was:" >&5 7981 sed 's/^/| /' conftest.$ac_ext >&5 7982 7983 llvm_cv_link_use_r=no 7984 fi 7985 7986 rm -f core conftest.err conftest.$ac_objext \ 7987 conftest$ac_exeext conftest.$ac_ext 7988 CFLAGS="$oldcflags" 7989 ac_ext=c 7990 ac_cpp='$CPP $CPPFLAGS' 7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7994 7995 7996 fi 7997 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7998 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7999 if test "$llvm_cv_link_use_r" = yes ; then 8000 8001 cat >>confdefs.h <<\_ACEOF 8002 #define HAVE_LINK_R 1 8003 _ACEOF 8004 8005 fi 8006 8007 8008 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5 8009 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; } 8010 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 8011 echo $ECHO_N "(cached) $ECHO_C" >&6 8012 else 8013 ac_ext=c 8014 ac_cpp='$CPP $CPPFLAGS' 8015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8017 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8018 8019 oldcflags="$CFLAGS" 8020 CFLAGS="$CFLAGS -rdynamic" 8021 cat >conftest.$ac_ext <<_ACEOF 8022 /* confdefs.h. */ 8023 _ACEOF 8024 cat confdefs.h >>conftest.$ac_ext 8025 cat >>conftest.$ac_ext <<_ACEOF 8026 /* end confdefs.h. */ 8027 8028 int 8029 main () 8030 { 8031 8032 ; 8033 return 0; 8034 } 8035 _ACEOF 8036 rm -f conftest.$ac_objext conftest$ac_exeext 8037 if { (ac_try="$ac_link" 8038 case "(($ac_try" in 8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8040 *) ac_try_echo=$ac_try;; 8041 esac 8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8043 (eval "$ac_link") 2>conftest.er1 8044 ac_status=$? 8045 grep -v '^ *+' conftest.er1 >conftest.err 8046 rm -f conftest.er1 8047 cat conftest.err >&5 8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8049 (exit $ac_status); } && 8050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8051 { (case "(($ac_try" in 8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8053 *) ac_try_echo=$ac_try;; 8054 esac 8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8056 (eval "$ac_try") 2>&5 8057 ac_status=$? 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 (exit $ac_status); }; } && 8060 { ac_try='test -s conftest$ac_exeext' 8061 { (case "(($ac_try" in 8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8063 *) ac_try_echo=$ac_try;; 8064 esac 8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8066 (eval "$ac_try") 2>&5 8067 ac_status=$? 8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8069 (exit $ac_status); }; }; then 8070 llvm_cv_link_use_export_dynamic=yes 8071 else 8072 echo "$as_me: failed program was:" >&5 8073 sed 's/^/| /' conftest.$ac_ext >&5 8074 8075 llvm_cv_link_use_export_dynamic=no 8076 fi 8077 8078 rm -f core conftest.err conftest.$ac_objext \ 8079 conftest$ac_exeext conftest.$ac_ext 8080 CFLAGS="$oldcflags" 8081 ac_ext=c 8082 ac_cpp='$CPP $CPPFLAGS' 8083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8085 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8086 8087 8088 fi 8089 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 8090 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 8091 if test "$llvm_cv_link_use_export_dynamic" = yes ; then 8092 8093 cat >>confdefs.h <<\_ACEOF 8094 #define HAVE_LINK_EXPORT_DYNAMIC 1 8095 _ACEOF 8096 8097 fi 8098 8099 8100 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 8101 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 8102 if test "${llvm_cv_link_use_version_script+set}" = set; then 8103 echo $ECHO_N "(cached) $ECHO_C" >&6 8104 else 8105 ac_ext=c 8106 ac_cpp='$CPP $CPPFLAGS' 8107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8109 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8110 8111 oldcflags="$CFLAGS" 8112 8113 # The following code is from the autoconf manual, 8114 # "11.13: Limitations of Usual Tools". 8115 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 8116 # Use mktemp if possible; otherwise fall back on mkdir, 8117 # with $RANDOM to make collisions less likely. 8118 : ${TMPDIR=/tmp} 8119 { 8120 tmp=` 8121 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 8122 ` && 8123 test -n "$tmp" && test -d "$tmp" 8124 } || { 8125 tmp=$TMPDIR/foo$$-$RANDOM 8126 (umask 077 && mkdir "$tmp") 8127 } || exit $? 8128 8129 echo "{" > "$tmp/export.map" 8130 echo " global: main;" >> "$tmp/export.map" 8131 echo " local: *;" >> "$tmp/export.map" 8132 echo "};" >> "$tmp/export.map" 8133 8134 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 8135 cat >conftest.$ac_ext <<_ACEOF 8136 /* confdefs.h. */ 8137 _ACEOF 8138 cat confdefs.h >>conftest.$ac_ext 8139 cat >>conftest.$ac_ext <<_ACEOF 8140 /* end confdefs.h. */ 8141 8142 int 8143 main () 8144 { 8145 8146 ; 8147 return 0; 8148 } 8149 _ACEOF 8150 rm -f conftest.$ac_objext conftest$ac_exeext 8151 if { (ac_try="$ac_link" 8152 case "(($ac_try" in 8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8154 *) ac_try_echo=$ac_try;; 8155 esac 8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8157 (eval "$ac_link") 2>conftest.er1 8158 ac_status=$? 8159 grep -v '^ *+' conftest.er1 >conftest.err 8160 rm -f conftest.er1 8161 cat conftest.err >&5 8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8163 (exit $ac_status); } && 8164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8165 { (case "(($ac_try" in 8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8167 *) ac_try_echo=$ac_try;; 8168 esac 8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8170 (eval "$ac_try") 2>&5 8171 ac_status=$? 8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8173 (exit $ac_status); }; } && 8174 { ac_try='test -s conftest$ac_exeext' 8175 { (case "(($ac_try" in 8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8177 *) ac_try_echo=$ac_try;; 8178 esac 8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8180 (eval "$ac_try") 2>&5 8181 ac_status=$? 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8183 (exit $ac_status); }; }; then 8184 llvm_cv_link_use_version_script=yes 8185 else 8186 echo "$as_me: failed program was:" >&5 8187 sed 's/^/| /' conftest.$ac_ext >&5 8188 8189 llvm_cv_link_use_version_script=no 8190 fi 8191 8192 rm -f core conftest.err conftest.$ac_objext \ 8193 conftest$ac_exeext conftest.$ac_ext 8194 rm "$tmp/export.map" 8195 rmdir "$tmp" 8196 CFLAGS="$oldcflags" 8197 ac_ext=c 8198 ac_cpp='$CPP $CPPFLAGS' 8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8202 8203 8204 fi 8205 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 8206 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 8207 if test "$llvm_cv_link_use_version_script" = yes ; then 8208 HAVE_LINK_VERSION_SCRIPT=1 8209 8210 fi 8211 8212 8213 8214 8215 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8216 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8217 if test "${ac_cv_c_const+set}" = set; then 8218 echo $ECHO_N "(cached) $ECHO_C" >&6 8219 else 8220 cat >conftest.$ac_ext <<_ACEOF 8221 /* confdefs.h. */ 8222 _ACEOF 8223 cat confdefs.h >>conftest.$ac_ext 8224 cat >>conftest.$ac_ext <<_ACEOF 8225 /* end confdefs.h. */ 8226 8227 int 8228 main () 8229 { 8230 /* FIXME: Include the comments suggested by Paul. */ 8231 #ifndef __cplusplus 8232 /* Ultrix mips cc rejects this. */ 8233 typedef int charset[2]; 8234 const charset x; 8235 /* SunOS 4.1.1 cc rejects this. */ 8236 char const *const *ccp; 8237 char **p; 8238 /* NEC SVR4.0.2 mips cc rejects this. */ 8239 struct point {int x, y;}; 8240 static struct point const zero = {0,0}; 8241 /* AIX XL C 1.02.0.0 rejects this. 8242 It does not let you subtract one const X* pointer from another in 8243 an arm of an if-expression whose if-part is not a constant 8244 expression */ 8245 const char *g = "string"; 8246 ccp = &g + (g ? g-g : 0); 8247 /* HPUX 7.0 cc rejects these. */ 8248 ++ccp; 8249 p = (char**) ccp; 8250 ccp = (char const *const *) p; 8251 { /* SCO 3.2v4 cc rejects this. */ 8252 char *t; 8253 char const *s = 0 ? (char *) 0 : (char const *) 0; 8254 8255 *t++ = 0; 8256 if (s) return 0; 8257 } 8258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8259 int x[] = {25, 17}; 8260 const int *foo = &x[0]; 8261 ++foo; 8262 } 8263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8264 typedef const int *iptr; 8265 iptr p = 0; 8266 ++p; 8267 } 8268 { /* AIX XL C 1.02.0.0 rejects this saying 8269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8270 struct s { int j; const int *ap[3]; }; 8271 struct s *b; b->j = 5; 8272 } 8273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8274 const int foo = 10; 8275 if (!foo) return 0; 8276 } 8277 return !x[0] && !zero.x; 8278 #endif 8279 8280 ; 8281 return 0; 8282 } 8283 _ACEOF 8284 rm -f conftest.$ac_objext 8285 if { (ac_try="$ac_compile" 8286 case "(($ac_try" in 8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8288 *) ac_try_echo=$ac_try;; 8289 esac 8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8291 (eval "$ac_compile") 2>conftest.er1 8292 ac_status=$? 8293 grep -v '^ *+' conftest.er1 >conftest.err 8294 rm -f conftest.er1 8295 cat conftest.err >&5 8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8297 (exit $ac_status); } && 8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8299 { (case "(($ac_try" in 8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8301 *) ac_try_echo=$ac_try;; 8302 esac 8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8304 (eval "$ac_try") 2>&5 8305 ac_status=$? 8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 (exit $ac_status); }; } && 8308 { ac_try='test -s conftest.$ac_objext' 8309 { (case "(($ac_try" in 8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8311 *) ac_try_echo=$ac_try;; 8312 esac 8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8314 (eval "$ac_try") 2>&5 8315 ac_status=$? 8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8317 (exit $ac_status); }; }; then 8318 ac_cv_c_const=yes 8319 else 8320 echo "$as_me: failed program was:" >&5 8321 sed 's/^/| /' conftest.$ac_ext >&5 8322 8323 ac_cv_c_const=no 8324 fi 8325 8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8327 fi 8328 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8329 echo "${ECHO_T}$ac_cv_c_const" >&6; } 8330 if test $ac_cv_c_const = no; then 8331 8332 cat >>confdefs.h <<\_ACEOF 8333 #define const 8334 _ACEOF 8335 8336 fi 8337 8338 8339 8340 8341 8342 8343 ac_header_dirent=no 8344 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8345 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8346 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8347 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8349 echo $ECHO_N "(cached) $ECHO_C" >&6 8350 else 8351 cat >conftest.$ac_ext <<_ACEOF 8352 /* confdefs.h. */ 8353 _ACEOF 8354 cat confdefs.h >>conftest.$ac_ext 8355 cat >>conftest.$ac_ext <<_ACEOF 8356 /* end confdefs.h. */ 8357 #include <sys/types.h> 8358 #include <$ac_hdr> 8359 8360 int 8361 main () 8362 { 8363 if ((DIR *) 0) 8364 return 0; 8365 ; 8366 return 0; 8367 } 8368 _ACEOF 8369 rm -f conftest.$ac_objext 8370 if { (ac_try="$ac_compile" 8371 case "(($ac_try" in 8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8373 *) ac_try_echo=$ac_try;; 8374 esac 8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8376 (eval "$ac_compile") 2>conftest.er1 8377 ac_status=$? 8378 grep -v '^ *+' conftest.er1 >conftest.err 8379 rm -f conftest.er1 8380 cat conftest.err >&5 8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8382 (exit $ac_status); } && 8383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8384 { (case "(($ac_try" in 8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8386 *) ac_try_echo=$ac_try;; 8387 esac 8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8389 (eval "$ac_try") 2>&5 8390 ac_status=$? 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8392 (exit $ac_status); }; } && 8393 { ac_try='test -s conftest.$ac_objext' 8394 { (case "(($ac_try" in 8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8396 *) ac_try_echo=$ac_try;; 8397 esac 8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8399 (eval "$ac_try") 2>&5 8400 ac_status=$? 8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8402 (exit $ac_status); }; }; then 8403 eval "$as_ac_Header=yes" 8404 else 8405 echo "$as_me: failed program was:" >&5 8406 sed 's/^/| /' conftest.$ac_ext >&5 8407 8408 eval "$as_ac_Header=no" 8409 fi 8410 8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8412 fi 8413 ac_res=`eval echo '${'$as_ac_Header'}'` 8414 { echo "$as_me:$LINENO: result: $ac_res" >&5 8415 echo "${ECHO_T}$ac_res" >&6; } 8416 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8417 cat >>confdefs.h <<_ACEOF 8418 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8419 _ACEOF 8420 8421 ac_header_dirent=$ac_hdr; break 8422 fi 8423 8424 done 8425 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8426 if test $ac_header_dirent = dirent.h; then 8427 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8428 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8429 if test "${ac_cv_search_opendir+set}" = set; then 8430 echo $ECHO_N "(cached) $ECHO_C" >&6 8431 else 8432 ac_func_search_save_LIBS=$LIBS 8433 cat >conftest.$ac_ext <<_ACEOF 8434 /* confdefs.h. */ 8435 _ACEOF 8436 cat confdefs.h >>conftest.$ac_ext 8437 cat >>conftest.$ac_ext <<_ACEOF 8438 /* end confdefs.h. */ 8439 8440 /* Override any GCC internal prototype to avoid an error. 8441 Use char because int might match the return type of a GCC 8442 builtin and then its argument prototype would still apply. */ 8443 #ifdef __cplusplus 8444 extern "C" 8445 #endif 8446 char opendir (); 8447 int 8448 main () 8449 { 8450 return opendir (); 8451 ; 8452 return 0; 8453 } 8454 _ACEOF 8455 for ac_lib in '' dir; do 8456 if test -z "$ac_lib"; then 8457 ac_res="none required" 8458 else 8459 ac_res=-l$ac_lib 8460 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8461 fi 8462 rm -f conftest.$ac_objext conftest$ac_exeext 8463 if { (ac_try="$ac_link" 8464 case "(($ac_try" in 8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8466 *) ac_try_echo=$ac_try;; 8467 esac 8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8469 (eval "$ac_link") 2>conftest.er1 8470 ac_status=$? 8471 grep -v '^ *+' conftest.er1 >conftest.err 8472 rm -f conftest.er1 8473 cat conftest.err >&5 8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8475 (exit $ac_status); } && 8476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8477 { (case "(($ac_try" in 8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8479 *) ac_try_echo=$ac_try;; 8480 esac 8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8482 (eval "$ac_try") 2>&5 8483 ac_status=$? 8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8485 (exit $ac_status); }; } && 8486 { ac_try='test -s conftest$ac_exeext' 8487 { (case "(($ac_try" in 8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8489 *) ac_try_echo=$ac_try;; 8490 esac 8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8492 (eval "$ac_try") 2>&5 8493 ac_status=$? 8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8495 (exit $ac_status); }; }; then 8496 ac_cv_search_opendir=$ac_res 8497 else 8498 echo "$as_me: failed program was:" >&5 8499 sed 's/^/| /' conftest.$ac_ext >&5 8500 8501 8502 fi 8503 8504 rm -f core conftest.err conftest.$ac_objext \ 8505 conftest$ac_exeext 8506 if test "${ac_cv_search_opendir+set}" = set; then 8507 break 8508 fi 8509 done 8510 if test "${ac_cv_search_opendir+set}" = set; then 8511 : 8512 else 8513 ac_cv_search_opendir=no 8514 fi 8515 rm conftest.$ac_ext 8516 LIBS=$ac_func_search_save_LIBS 8517 fi 8518 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8519 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8520 ac_res=$ac_cv_search_opendir 8521 if test "$ac_res" != no; then 8522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8523 8524 fi 8525 8526 else 8527 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8528 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8529 if test "${ac_cv_search_opendir+set}" = set; then 8530 echo $ECHO_N "(cached) $ECHO_C" >&6 8531 else 8532 ac_func_search_save_LIBS=$LIBS 8533 cat >conftest.$ac_ext <<_ACEOF 8534 /* confdefs.h. */ 8535 _ACEOF 8536 cat confdefs.h >>conftest.$ac_ext 8537 cat >>conftest.$ac_ext <<_ACEOF 8538 /* end confdefs.h. */ 8539 8540 /* Override any GCC internal prototype to avoid an error. 8541 Use char because int might match the return type of a GCC 8542 builtin and then its argument prototype would still apply. */ 8543 #ifdef __cplusplus 8544 extern "C" 8545 #endif 8546 char opendir (); 8547 int 8548 main () 8549 { 8550 return opendir (); 8551 ; 8552 return 0; 8553 } 8554 _ACEOF 8555 for ac_lib in '' x; do 8556 if test -z "$ac_lib"; then 8557 ac_res="none required" 8558 else 8559 ac_res=-l$ac_lib 8560 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8561 fi 8562 rm -f conftest.$ac_objext conftest$ac_exeext 8563 if { (ac_try="$ac_link" 8564 case "(($ac_try" in 8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8566 *) ac_try_echo=$ac_try;; 8567 esac 8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8569 (eval "$ac_link") 2>conftest.er1 8570 ac_status=$? 8571 grep -v '^ *+' conftest.er1 >conftest.err 8572 rm -f conftest.er1 8573 cat conftest.err >&5 8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8575 (exit $ac_status); } && 8576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8577 { (case "(($ac_try" in 8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8579 *) ac_try_echo=$ac_try;; 8580 esac 8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8582 (eval "$ac_try") 2>&5 8583 ac_status=$? 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 (exit $ac_status); }; } && 8586 { ac_try='test -s conftest$ac_exeext' 8587 { (case "(($ac_try" in 8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8589 *) ac_try_echo=$ac_try;; 8590 esac 8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8592 (eval "$ac_try") 2>&5 8593 ac_status=$? 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 (exit $ac_status); }; }; then 8596 ac_cv_search_opendir=$ac_res 8597 else 8598 echo "$as_me: failed program was:" >&5 8599 sed 's/^/| /' conftest.$ac_ext >&5 8600 8601 8602 fi 8603 8604 rm -f core conftest.err conftest.$ac_objext \ 8605 conftest$ac_exeext 8606 if test "${ac_cv_search_opendir+set}" = set; then 8607 break 8608 fi 8609 done 8610 if test "${ac_cv_search_opendir+set}" = set; then 8611 : 8612 else 8613 ac_cv_search_opendir=no 8614 fi 8615 rm conftest.$ac_ext 8616 LIBS=$ac_func_search_save_LIBS 8617 fi 8618 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8619 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8620 ac_res=$ac_cv_search_opendir 8621 if test "$ac_res" != no; then 8622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8623 8624 fi 8625 8626 fi 8627 8628 8629 for ac_header in dlfcn.h 8630 do 8631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8633 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8636 echo $ECHO_N "(cached) $ECHO_C" >&6 8637 fi 8638 ac_res=`eval echo '${'$as_ac_Header'}'` 8639 { echo "$as_me:$LINENO: result: $ac_res" >&5 8640 echo "${ECHO_T}$ac_res" >&6; } 8641 else 8642 # Is the header compilable? 8643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 8644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8645 cat >conftest.$ac_ext <<_ACEOF 8646 /* confdefs.h. */ 8647 _ACEOF 8648 cat confdefs.h >>conftest.$ac_ext 8649 cat >>conftest.$ac_ext <<_ACEOF 8650 /* end confdefs.h. */ 8651 $ac_includes_default 8652 #include <$ac_header> 8653 _ACEOF 8654 rm -f conftest.$ac_objext 8655 if { (ac_try="$ac_compile" 8656 case "(($ac_try" in 8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8658 *) ac_try_echo=$ac_try;; 8659 esac 8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8661 (eval "$ac_compile") 2>conftest.er1 8662 ac_status=$? 8663 grep -v '^ *+' conftest.er1 >conftest.err 8664 rm -f conftest.er1 8665 cat conftest.err >&5 8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8667 (exit $ac_status); } && 8668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8669 { (case "(($ac_try" in 8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8671 *) ac_try_echo=$ac_try;; 8672 esac 8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8674 (eval "$ac_try") 2>&5 8675 ac_status=$? 8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8677 (exit $ac_status); }; } && 8678 { ac_try='test -s conftest.$ac_objext' 8679 { (case "(($ac_try" in 8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8681 *) ac_try_echo=$ac_try;; 8682 esac 8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8684 (eval "$ac_try") 2>&5 8685 ac_status=$? 8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8687 (exit $ac_status); }; }; then 8688 ac_header_compiler=yes 8689 else 8690 echo "$as_me: failed program was:" >&5 8691 sed 's/^/| /' conftest.$ac_ext >&5 8692 8693 ac_header_compiler=no 8694 fi 8695 8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8698 echo "${ECHO_T}$ac_header_compiler" >&6; } 8699 8700 # Is the header present? 8701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 8702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8703 cat >conftest.$ac_ext <<_ACEOF 8704 /* confdefs.h. */ 8705 _ACEOF 8706 cat confdefs.h >>conftest.$ac_ext 8707 cat >>conftest.$ac_ext <<_ACEOF 8708 /* end confdefs.h. */ 8709 #include <$ac_header> 8710 _ACEOF 8711 if { (ac_try="$ac_cpp conftest.$ac_ext" 8712 case "(($ac_try" in 8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8714 *) ac_try_echo=$ac_try;; 8715 esac 8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8718 ac_status=$? 8719 grep -v '^ *+' conftest.er1 >conftest.err 8720 rm -f conftest.er1 8721 cat conftest.err >&5 8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8723 (exit $ac_status); } >/dev/null; then 8724 if test -s conftest.err; then 8725 ac_cpp_err=$ac_c_preproc_warn_flag 8726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8727 else 8728 ac_cpp_err= 8729 fi 8730 else 8731 ac_cpp_err=yes 8732 fi 8733 if test -z "$ac_cpp_err"; then 8734 ac_header_preproc=yes 8735 else 8736 echo "$as_me: failed program was:" >&5 8737 sed 's/^/| /' conftest.$ac_ext >&5 8738 8739 ac_header_preproc=no 8740 fi 8741 8742 rm -f conftest.err conftest.$ac_ext 8743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8744 echo "${ECHO_T}$ac_header_preproc" >&6; } 8745 8746 # So? What about this header? 8747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8748 yes:no: ) 8749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8753 ac_header_preproc=yes 8754 ;; 8755 no:yes:* ) 8756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8768 ( cat <<\_ASBOX 8769 ## ------------------------------------ ## 8770 ## Report this to http://llvm.org/bugs/ ## 8771 ## ------------------------------------ ## 8772 _ASBOX 8773 ) | sed "s/^/$as_me: WARNING: /" >&2 8774 ;; 8775 esac 8776 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8779 echo $ECHO_N "(cached) $ECHO_C" >&6 8780 else 8781 eval "$as_ac_Header=\$ac_header_preproc" 8782 fi 8783 ac_res=`eval echo '${'$as_ac_Header'}'` 8784 { echo "$as_me:$LINENO: result: $ac_res" >&5 8785 echo "${ECHO_T}$ac_res" >&6; } 8786 8787 fi 8788 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8789 cat >>confdefs.h <<_ACEOF 8790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8791 _ACEOF 8792 8793 fi 8794 8795 done 8796 8797 # Check whether --enable-ltdl-install was given. 8798 if test "${enable_ltdl_install+set}" = set; then 8799 enableval=$enable_ltdl_install; 8800 fi 8801 8802 8803 8804 8805 if test x"${enable_ltdl_install-no}" != xno; then 8806 INSTALL_LTDL_TRUE= 8807 INSTALL_LTDL_FALSE='#' 8808 else 8809 INSTALL_LTDL_TRUE='#' 8810 INSTALL_LTDL_FALSE= 8811 fi 8812 8813 8814 8815 if test x"${enable_ltdl_convenience-no}" != xno; then 8816 CONVENIENCE_LTDL_TRUE= 8817 CONVENIENCE_LTDL_FALSE='#' 8818 else 8819 CONVENIENCE_LTDL_TRUE='#' 8820 CONVENIENCE_LTDL_FALSE= 8821 fi 8822 8823 8824 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8825 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8826 library_names_spec= 8827 libname_spec='lib$name' 8828 soname_spec= 8829 shrext_cmds=".so" 8830 postinstall_cmds= 8831 postuninstall_cmds= 8832 finish_cmds= 8833 finish_eval= 8834 shlibpath_var= 8835 shlibpath_overrides_runpath=unknown 8836 version_type=none 8837 dynamic_linker="$host_os ld.so" 8838 sys_lib_dlsearch_path_spec="/lib /usr/lib" 8839 if test "$GCC" = yes; then 8840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8841 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8842 # if the path contains ";" then we assume it to be the separator 8843 # otherwise default to the standard path separator (i.e. ":") - it is 8844 # assumed that no part of a normal pathname contains ";" but that should 8845 # okay in the real world where ";" in dirpaths is itself problematic. 8846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8847 else 8848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8849 fi 8850 else 8851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8852 fi 8853 need_lib_prefix=unknown 8854 hardcode_into_libs=no 8855 8856 # when you set need_version to no, make sure it does not cause -set_version 8857 # flags to be left without arguments 8858 need_version=unknown 8859 8860 case $host_os in 8861 aix3*) 8862 version_type=linux 8863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8864 shlibpath_var=LIBPATH 8865 8866 # AIX 3 has no versioning support, so we append a major version to the name. 8867 soname_spec='${libname}${release}${shared_ext}$major' 8868 ;; 8869 8870 aix4* | aix5*) 8871 version_type=linux 8872 need_lib_prefix=no 8873 need_version=no 8874 hardcode_into_libs=yes 8875 if test "$host_cpu" = ia64; then 8876 # AIX 5 supports IA64 8877 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8878 shlibpath_var=LD_LIBRARY_PATH 8879 else 8880 # With GCC up to 2.95.x, collect2 would create an import file 8881 # for dependence libraries. The import file would start with 8882 # the line `#! .'. This would cause the generated library to 8883 # depend on `.', always an invalid library. This was fixed in 8884 # development snapshots of GCC prior to 3.0. 8885 case $host_os in 8886 aix4 | aix4.[01] | aix4.[01].*) 8887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8888 echo ' yes ' 8889 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8890 : 8891 else 8892 can_build_shared=no 8893 fi 8894 ;; 8895 esac 8896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8897 # soname into executable. Probably we can add versioning support to 8898 # collect2, so additional links can be useful in future. 8899 if test "$aix_use_runtimelinking" = yes; then 8900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8901 # instead of lib<name>.a to let people know that these are not 8902 # typical AIX shared libraries. 8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8904 else 8905 # We preserve .a as extension for shared libraries through AIX4.2 8906 # and later when we are not doing run time linking. 8907 library_names_spec='${libname}${release}.a $libname.a' 8908 soname_spec='${libname}${release}${shared_ext}$major' 8909 fi 8910 shlibpath_var=LIBPATH 8911 fi 8912 ;; 8913 8914 amigaos*) 8915 library_names_spec='$libname.ixlibrary $libname.a' 8916 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8917 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' 8918 ;; 8919 8920 beos*) 8921 library_names_spec='${libname}${shared_ext}' 8922 dynamic_linker="$host_os ld.so" 8923 shlibpath_var=LIBRARY_PATH 8924 ;; 8925 8926 bsdi[45]*) 8927 version_type=linux 8928 need_version=no 8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8930 soname_spec='${libname}${release}${shared_ext}$major' 8931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8932 shlibpath_var=LD_LIBRARY_PATH 8933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8935 # the default ld.so.conf also contains /usr/contrib/lib and 8936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8937 # libtool to hard-code these into programs 8938 ;; 8939 8940 cygwin* | mingw* | pw32*) 8941 version_type=windows 8942 shrext_cmds=".dll" 8943 need_version=no 8944 need_lib_prefix=no 8945 8946 case $GCC,$host_os in 8947 yes,cygwin* | yes,mingw* | yes,pw32*) 8948 library_names_spec='$libname.dll.a' 8949 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8950 postinstall_cmds='base_file=`basename \${file}`~ 8951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8952 dldir=$destdir/`dirname \$dlpath`~ 8953 test -d \$dldir || mkdir -p \$dldir~ 8954 $install_prog $dir/$dlname \$dldir/$dlname~ 8955 chmod a+x \$dldir/$dlname' 8956 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8957 dlpath=$dir/\$dldll~ 8958 $rm \$dlpath' 8959 shlibpath_overrides_runpath=yes 8960 8961 case $host_os in 8962 cygwin*) 8963 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8965 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8966 ;; 8967 mingw*) 8968 # MinGW DLLs use traditional 'lib' prefix 8969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8970 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8971 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8972 # It is most probably a Windows format PATH printed by 8973 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8974 # path with ; separators, and with drive letters. We can handle the 8975 # drive letters (cygwin fileutils understands them), so leave them, 8976 # especially as we might pass files found there to a mingw objdump, 8977 # which wouldn't understand a cygwinified path. Ahh. 8978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8979 else 8980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8981 fi 8982 ;; 8983 pw32*) 8984 # pw32 DLLs use 'pw' prefix rather than 'lib' 8985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8986 ;; 8987 esac 8988 ;; 8989 8990 *) 8991 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8992 ;; 8993 esac 8994 dynamic_linker='Win32 ld.exe' 8995 # FIXME: first we should search . and the directory the executable is in 8996 shlibpath_var=PATH 8997 ;; 8998 8999 darwin* | rhapsody*) 9000 dynamic_linker="$host_os dyld" 9001 version_type=darwin 9002 need_lib_prefix=no 9003 need_version=no 9004 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9005 soname_spec='${libname}${release}${major}$shared_ext' 9006 shlibpath_overrides_runpath=yes 9007 shlibpath_var=DYLD_LIBRARY_PATH 9008 shrext_cmds='.dylib' 9009 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9010 if test "$GCC" = yes; then 9011 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"` 9012 else 9013 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9014 fi 9015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9016 ;; 9017 9018 dgux*) 9019 version_type=linux 9020 need_lib_prefix=no 9021 need_version=no 9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9023 soname_spec='${libname}${release}${shared_ext}$major' 9024 shlibpath_var=LD_LIBRARY_PATH 9025 ;; 9026 9027 freebsd1.*) 9028 dynamic_linker=no 9029 ;; 9030 9031 kfreebsd*-gnu) 9032 version_type=linux 9033 need_lib_prefix=no 9034 need_version=no 9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9036 soname_spec='${libname}${release}${shared_ext}$major' 9037 shlibpath_var=LD_LIBRARY_PATH 9038 shlibpath_overrides_runpath=no 9039 hardcode_into_libs=yes 9040 dynamic_linker='GNU ld.so' 9041 ;; 9042 9043 freebsd* | dragonfly*) 9044 # DragonFly does not have aout. When/if they implement a new 9045 # versioning mechanism, adjust this. 9046 if test -x /usr/bin/objformat; then 9047 objformat=`/usr/bin/objformat` 9048 else 9049 case $host_os in 9050 freebsd[123].*) objformat=aout ;; 9051 *) objformat=elf ;; 9052 esac 9053 fi 9054 version_type=freebsd-$objformat 9055 case $version_type in 9056 freebsd-elf*) 9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9058 need_version=no 9059 need_lib_prefix=no 9060 ;; 9061 freebsd-*) 9062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9063 need_version=yes 9064 ;; 9065 esac 9066 shlibpath_var=LD_LIBRARY_PATH 9067 case $host_os in 9068 freebsd2.*) 9069 shlibpath_overrides_runpath=yes 9070 ;; 9071 freebsd3.[01]* | freebsdelf3.[01]*) 9072 shlibpath_overrides_runpath=yes 9073 hardcode_into_libs=yes 9074 ;; 9075 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9076 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9077 shlibpath_overrides_runpath=no 9078 hardcode_into_libs=yes 9079 ;; 9080 freebsd*) # from 4.6 on 9081 shlibpath_overrides_runpath=yes 9082 hardcode_into_libs=yes 9083 ;; 9084 esac 9085 ;; 9086 9087 gnu*) 9088 version_type=linux 9089 need_lib_prefix=no 9090 need_version=no 9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9092 soname_spec='${libname}${release}${shared_ext}$major' 9093 shlibpath_var=LD_LIBRARY_PATH 9094 hardcode_into_libs=yes 9095 ;; 9096 9097 hpux9* | hpux10* | hpux11*) 9098 # Give a soname corresponding to the major version so that dld.sl refuses to 9099 # link against other versions. 9100 version_type=sunos 9101 need_lib_prefix=no 9102 need_version=no 9103 case $host_cpu in 9104 ia64*) 9105 shrext_cmds='.so' 9106 hardcode_into_libs=yes 9107 dynamic_linker="$host_os dld.so" 9108 shlibpath_var=LD_LIBRARY_PATH 9109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9111 soname_spec='${libname}${release}${shared_ext}$major' 9112 if test "X$HPUX_IA64_MODE" = X32; then 9113 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9114 else 9115 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9116 fi 9117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9118 ;; 9119 hppa*64*) 9120 shrext_cmds='.sl' 9121 hardcode_into_libs=yes 9122 dynamic_linker="$host_os dld.sl" 9123 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9129 ;; 9130 *) 9131 shrext_cmds='.sl' 9132 dynamic_linker="$host_os dld.sl" 9133 shlibpath_var=SHLIB_PATH 9134 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9136 soname_spec='${libname}${release}${shared_ext}$major' 9137 ;; 9138 esac 9139 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9140 postinstall_cmds='chmod 555 $lib' 9141 ;; 9142 9143 interix3*) 9144 version_type=linux 9145 need_lib_prefix=no 9146 need_version=no 9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9148 soname_spec='${libname}${release}${shared_ext}$major' 9149 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9150 shlibpath_var=LD_LIBRARY_PATH 9151 shlibpath_overrides_runpath=no 9152 hardcode_into_libs=yes 9153 ;; 9154 9155 irix5* | irix6* | nonstopux*) 9156 case $host_os in 9157 nonstopux*) version_type=nonstopux ;; 9158 *) 9159 if test "$lt_cv_prog_gnu_ld" = yes; then 9160 version_type=linux 9161 else 9162 version_type=irix 9163 fi ;; 9164 esac 9165 need_lib_prefix=no 9166 need_version=no 9167 soname_spec='${libname}${release}${shared_ext}$major' 9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9169 case $host_os in 9170 irix5* | nonstopux*) 9171 libsuff= shlibsuff= 9172 ;; 9173 *) 9174 case $LD in # libtool.m4 will add one of these switches to LD 9175 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9176 libsuff= shlibsuff= libmagic=32-bit;; 9177 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9178 libsuff=32 shlibsuff=N32 libmagic=N32;; 9179 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9180 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9181 *) libsuff= shlibsuff= libmagic=never-match;; 9182 esac 9183 ;; 9184 esac 9185 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9186 shlibpath_overrides_runpath=no 9187 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9188 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9189 hardcode_into_libs=yes 9190 ;; 9191 9192 # No shared lib support for Linux oldld, aout, or coff. 9193 linux*oldld* | linux*aout* | linux*coff*) 9194 dynamic_linker=no 9195 ;; 9196 9197 # This must be Linux ELF. 9198 linux*) 9199 version_type=linux 9200 need_lib_prefix=no 9201 need_version=no 9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9203 soname_spec='${libname}${release}${shared_ext}$major' 9204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9205 shlibpath_var=LD_LIBRARY_PATH 9206 shlibpath_overrides_runpath=no 9207 # This implies no fast_install, which is unacceptable. 9208 # Some rework will be needed to allow for fast_install 9209 # before this can be enabled. 9210 hardcode_into_libs=yes 9211 9212 # Append ld.so.conf contents to the search path 9213 if test -f /etc/ld.so.conf; then 9214 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' ' '` 9215 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9216 fi 9217 9218 # We used to test for /lib/ld.so.1 and disable shared libraries on 9219 # powerpc, because MkLinux only supported shared libraries with the 9220 # GNU dynamic linker. Since this was broken with cross compilers, 9221 # most powerpc-linux boxes support dynamic linking these days and 9222 # people can always --disable-shared, the test was removed, and we 9223 # assume the GNU/Linux dynamic linker is in use. 9224 dynamic_linker='GNU/Linux ld.so' 9225 ;; 9226 9227 knetbsd*-gnu) 9228 version_type=linux 9229 need_lib_prefix=no 9230 need_version=no 9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9232 soname_spec='${libname}${release}${shared_ext}$major' 9233 shlibpath_var=LD_LIBRARY_PATH 9234 shlibpath_overrides_runpath=no 9235 hardcode_into_libs=yes 9236 dynamic_linker='GNU ld.so' 9237 ;; 9238 9239 netbsd*) 9240 version_type=sunos 9241 need_lib_prefix=no 9242 need_version=no 9243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9246 dynamic_linker='NetBSD (a.out) ld.so' 9247 else 9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9249 soname_spec='${libname}${release}${shared_ext}$major' 9250 dynamic_linker='NetBSD ld.elf_so' 9251 fi 9252 shlibpath_var=LD_LIBRARY_PATH 9253 shlibpath_overrides_runpath=yes 9254 hardcode_into_libs=yes 9255 ;; 9256 9257 newsos6) 9258 version_type=linux 9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9260 shlibpath_var=LD_LIBRARY_PATH 9261 shlibpath_overrides_runpath=yes 9262 ;; 9263 9264 nto-qnx*) 9265 version_type=linux 9266 need_lib_prefix=no 9267 need_version=no 9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9269 soname_spec='${libname}${release}${shared_ext}$major' 9270 shlibpath_var=LD_LIBRARY_PATH 9271 shlibpath_overrides_runpath=yes 9272 ;; 9273 9274 openbsd* | bitrig*) 9275 version_type=sunos 9276 sys_lib_dlsearch_path_spec="/usr/lib" 9277 need_lib_prefix=no 9278 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9279 case $host_os in 9280 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9281 *) need_version=no ;; 9282 esac 9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9285 shlibpath_var=LD_LIBRARY_PATH 9286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9287 case $host_os in 9288 openbsd2.[89] | openbsd2.[89].*) 9289 shlibpath_overrides_runpath=no 9290 ;; 9291 *) 9292 shlibpath_overrides_runpath=yes 9293 ;; 9294 esac 9295 else 9296 shlibpath_overrides_runpath=yes 9297 fi 9298 ;; 9299 9300 os2*) 9301 libname_spec='$name' 9302 shrext_cmds=".dll" 9303 need_lib_prefix=no 9304 library_names_spec='$libname${shared_ext} $libname.a' 9305 dynamic_linker='OS/2 ld.exe' 9306 shlibpath_var=LIBPATH 9307 ;; 9308 9309 osf3* | osf4* | osf5*) 9310 version_type=osf 9311 need_lib_prefix=no 9312 need_version=no 9313 soname_spec='${libname}${release}${shared_ext}$major' 9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9315 shlibpath_var=LD_LIBRARY_PATH 9316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9317 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9318 ;; 9319 9320 solaris*) 9321 version_type=linux 9322 need_lib_prefix=no 9323 need_version=no 9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9325 soname_spec='${libname}${release}${shared_ext}$major' 9326 shlibpath_var=LD_LIBRARY_PATH 9327 shlibpath_overrides_runpath=yes 9328 hardcode_into_libs=yes 9329 # ldd complains unless libraries are executable 9330 postinstall_cmds='chmod +x $lib' 9331 ;; 9332 9333 sunos4*) 9334 version_type=sunos 9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9336 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9337 shlibpath_var=LD_LIBRARY_PATH 9338 shlibpath_overrides_runpath=yes 9339 if test "$with_gnu_ld" = yes; then 9340 need_lib_prefix=no 9341 fi 9342 need_version=yes 9343 ;; 9344 9345 sysv4 | sysv4.3*) 9346 version_type=linux 9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9348 soname_spec='${libname}${release}${shared_ext}$major' 9349 shlibpath_var=LD_LIBRARY_PATH 9350 case $host_vendor in 9351 sni) 9352 shlibpath_overrides_runpath=no 9353 need_lib_prefix=no 9354 export_dynamic_flag_spec='${wl}-Blargedynsym' 9355 runpath_var=LD_RUN_PATH 9356 ;; 9357 siemens) 9358 need_lib_prefix=no 9359 ;; 9360 motorola) 9361 need_lib_prefix=no 9362 need_version=no 9363 shlibpath_overrides_runpath=no 9364 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9365 ;; 9366 esac 9367 ;; 9368 9369 sysv4*MP*) 9370 if test -d /usr/nec ;then 9371 version_type=linux 9372 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9373 soname_spec='$libname${shared_ext}.$major' 9374 shlibpath_var=LD_LIBRARY_PATH 9375 fi 9376 ;; 9377 9378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9379 version_type=freebsd-elf 9380 need_lib_prefix=no 9381 need_version=no 9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9383 soname_spec='${libname}${release}${shared_ext}$major' 9384 shlibpath_var=LD_LIBRARY_PATH 9385 hardcode_into_libs=yes 9386 if test "$with_gnu_ld" = yes; then 9387 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9388 shlibpath_overrides_runpath=no 9389 else 9390 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9391 shlibpath_overrides_runpath=yes 9392 case $host_os in 9393 sco3.2v5*) 9394 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9395 ;; 9396 esac 9397 fi 9398 sys_lib_dlsearch_path_spec='/usr/lib' 9399 ;; 9400 9401 uts4*) 9402 version_type=linux 9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9404 soname_spec='${libname}${release}${shared_ext}$major' 9405 shlibpath_var=LD_LIBRARY_PATH 9406 ;; 9407 9408 *) 9409 dynamic_linker=no 9410 ;; 9411 esac 9412 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9413 echo "${ECHO_T}$dynamic_linker" >&6; } 9414 test "$dynamic_linker" = no && can_build_shared=no 9415 9416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9417 if test "$GCC" = yes; then 9418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9419 fi 9420 9421 9422 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9423 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9424 if test "${libltdl_cv_shlibext+set}" = set; then 9425 echo $ECHO_N "(cached) $ECHO_C" >&6 9426 else 9427 9428 module=yes 9429 eval libltdl_cv_shlibext=$shrext_cmds 9430 9431 fi 9432 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9433 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9434 if test -n "$libltdl_cv_shlibext"; then 9435 9436 cat >>confdefs.h <<_ACEOF 9437 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9438 _ACEOF 9439 9440 fi 9441 9442 9443 { echo "$as_me:$LINENO: checking for the default library search path" >&5 9444 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9445 if test "${libltdl_cv_sys_search_path+set}" = set; then 9446 echo $ECHO_N "(cached) $ECHO_C" >&6 9447 else 9448 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9449 fi 9450 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9451 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9452 if test -n "$libltdl_cv_sys_search_path"; then 9453 sys_search_path= 9454 for dir in $libltdl_cv_sys_search_path; do 9455 if test -z "$sys_search_path"; then 9456 sys_search_path="$dir" 9457 else 9458 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9459 fi 9460 done 9461 9462 cat >>confdefs.h <<_ACEOF 9463 #define LTDL_SYSSEARCHPATH "$sys_search_path" 9464 _ACEOF 9465 9466 fi 9467 9468 { echo "$as_me:$LINENO: checking for objdir" >&5 9469 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9470 if test "${libltdl_cv_objdir+set}" = set; then 9471 echo $ECHO_N "(cached) $ECHO_C" >&6 9472 else 9473 libltdl_cv_objdir="$objdir" 9474 if test -n "$objdir"; then 9475 : 9476 else 9477 rm -f .libs 2>/dev/null 9478 mkdir .libs 2>/dev/null 9479 if test -d .libs; then 9480 libltdl_cv_objdir=.libs 9481 else 9482 # MS-DOS does not allow filenames that begin with a dot. 9483 libltdl_cv_objdir=_libs 9484 fi 9485 rmdir .libs 2>/dev/null 9486 fi 9487 9488 fi 9489 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9490 echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9491 9492 cat >>confdefs.h <<_ACEOF 9493 #define LTDL_OBJDIR "$libltdl_cv_objdir/" 9494 _ACEOF 9495 9496 9497 9498 9499 9500 9501 # Check for command to grab the raw symbol name followed by C symbol from nm. 9502 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9503 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9505 echo $ECHO_N "(cached) $ECHO_C" >&6 9506 else 9507 9508 # These are sane defaults that work on at least a few old systems. 9509 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 9510 9511 # Character class describing NM global symbol codes. 9512 symcode='[BCDEGRST]' 9513 9514 # Regexp to match symbols that can be accessed directly from C. 9515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9516 9517 # Transform an extracted symbol line into a proper C declaration 9518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9519 9520 # Transform an extracted symbol line into symbol name and symbol address 9521 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'" 9522 9523 # Define system-specific variables. 9524 case $host_os in 9525 aix*) 9526 symcode='[BCDT]' 9527 ;; 9528 cygwin* | mingw* | pw32*) 9529 symcode='[ABCDGISTW]' 9530 ;; 9531 hpux*) # Its linker distinguishes data from code symbols 9532 if test "$host_cpu" = ia64; then 9533 symcode='[ABCDEGRST]' 9534 fi 9535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9536 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'" 9537 ;; 9538 linux*) 9539 if test "$host_cpu" = ia64; then 9540 symcode='[ABCDGIRSTW]' 9541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9542 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'" 9543 fi 9544 ;; 9545 irix* | nonstopux*) 9546 symcode='[BCDEGRST]' 9547 ;; 9548 osf*) 9549 symcode='[BCDEGQRST]' 9550 ;; 9551 solaris*) 9552 symcode='[BDRT]' 9553 ;; 9554 sco3.2v5*) 9555 symcode='[DT]' 9556 ;; 9557 sysv4.2uw2*) 9558 symcode='[DT]' 9559 ;; 9560 sysv5* | sco5v6* | unixware* | OpenUNIX*) 9561 symcode='[ABDT]' 9562 ;; 9563 sysv4) 9564 symcode='[DFNSTU]' 9565 ;; 9566 esac 9567 9568 # Handle CRLF in mingw tool chain 9569 opt_cr= 9570 case $build_os in 9571 mingw*) 9572 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9573 ;; 9574 esac 9575 9576 # If we're using GNU nm, then use its standard symbol codes. 9577 case `$NM -V 2>&1` in 9578 *GNU* | *'with BFD'*) 9579 symcode='[ABCDGIRSTW]' ;; 9580 esac 9581 9582 # Try without a prefix undercore, then with it. 9583 for ac_symprfx in "" "_"; do 9584 9585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9586 symxfrm="\\1 $ac_symprfx\\2 \\2" 9587 9588 # Write the raw and C identifiers. 9589 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9590 9591 # Check to see that the pipe works correctly. 9592 pipe_works=no 9593 9594 rm -f conftest* 9595 cat > conftest.$ac_ext <<EOF 9596 #ifdef __cplusplus 9597 extern "C" { 9598 #endif 9599 char nm_test_var; 9600 void nm_test_func(){} 9601 #ifdef __cplusplus 9602 } 9603 #endif 9604 int main(){nm_test_var='a';nm_test_func();return(0);} 9605 EOF 9606 9607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9608 (eval $ac_compile) 2>&5 9609 ac_status=$? 9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9611 (exit $ac_status); }; then 9612 # Now try to grab the symbols. 9613 nlist=conftest.nm 9614 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9615 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9616 ac_status=$? 9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9618 (exit $ac_status); } && test -s "$nlist"; then 9619 # Try sorting and uniquifying the output. 9620 if sort "$nlist" | uniq > "$nlist"T; then 9621 mv -f "$nlist"T "$nlist" 9622 else 9623 rm -f "$nlist"T 9624 fi 9625 9626 # Make sure that we snagged all the symbols we need. 9627 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9628 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9629 cat <<EOF > conftest.$ac_ext 9630 #ifdef __cplusplus 9631 extern "C" { 9632 #endif 9633 9634 EOF 9635 # Now generate the symbol file. 9636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9637 9638 cat <<EOF >> conftest.$ac_ext 9639 #if defined (__STDC__) && __STDC__ 9640 # define lt_ptr_t void * 9641 #else 9642 # define lt_ptr_t char * 9643 # define const 9644 #endif 9645 9646 /* The mapping between symbol names and symbols. */ 9647 const struct { 9648 const char *name; 9649 lt_ptr_t address; 9650 } 9651 lt_preloaded_symbols[] = 9652 { 9653 EOF 9654 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9655 cat <<\EOF >> conftest.$ac_ext 9656 {0, (lt_ptr_t) 0} 9657 }; 9658 9659 #ifdef __cplusplus 9660 } 9661 #endif 9662 EOF 9663 # Now try linking the two files. 9664 mv conftest.$ac_objext conftstm.$ac_objext 9665 lt_save_LIBS="$LIBS" 9666 lt_save_CFLAGS="$CFLAGS" 9667 LIBS="conftstm.$ac_objext" 9668 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9670 (eval $ac_link) 2>&5 9671 ac_status=$? 9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9673 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9674 pipe_works=yes 9675 fi 9676 LIBS="$lt_save_LIBS" 9677 CFLAGS="$lt_save_CFLAGS" 9678 else 9679 echo "cannot find nm_test_func in $nlist" >&5 9680 fi 9681 else 9682 echo "cannot find nm_test_var in $nlist" >&5 9683 fi 9684 else 9685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9686 fi 9687 else 9688 echo "$progname: failed program was:" >&5 9689 cat conftest.$ac_ext >&5 9690 fi 9691 rm -f conftest* conftst* 9692 9693 # Do not use the global_symbol_pipe unless it works. 9694 if test "$pipe_works" = yes; then 9695 break 9696 else 9697 lt_cv_sys_global_symbol_pipe= 9698 fi 9699 done 9700 9701 fi 9702 9703 if test -z "$lt_cv_sys_global_symbol_pipe"; then 9704 lt_cv_sys_global_symbol_to_cdecl= 9705 fi 9706 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9707 { echo "$as_me:$LINENO: result: failed" >&5 9708 echo "${ECHO_T}failed" >&6; } 9709 else 9710 { echo "$as_me:$LINENO: result: ok" >&5 9711 echo "${ECHO_T}ok" >&6; } 9712 fi 9713 9714 9715 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9716 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9717 if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9718 echo $ECHO_N "(cached) $ECHO_C" >&6 9719 else 9720 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9721 libltdl_cv_preloaded_symbols=yes 9722 else 9723 libltdl_cv_preloaded_symbols=no 9724 fi 9725 9726 fi 9727 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9728 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9729 if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9730 9731 cat >>confdefs.h <<\_ACEOF 9732 #define HAVE_PRELOADED_SYMBOLS 1 9733 _ACEOF 9734 9735 fi 9736 9737 LIBADD_DL= 9738 9739 ac_ext=c 9740 ac_cpp='$CPP $CPPFLAGS' 9741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9743 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9744 9745 9746 { echo "$as_me:$LINENO: checking for shl_load" >&5 9747 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9748 if test "${ac_cv_func_shl_load+set}" = set; then 9749 echo $ECHO_N "(cached) $ECHO_C" >&6 9750 else 9751 cat >conftest.$ac_ext <<_ACEOF 9752 /* confdefs.h. */ 9753 _ACEOF 9754 cat confdefs.h >>conftest.$ac_ext 9755 cat >>conftest.$ac_ext <<_ACEOF 9756 /* end confdefs.h. */ 9757 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9758 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9759 #define shl_load innocuous_shl_load 9760 9761 /* System header to define __stub macros and hopefully few prototypes, 9762 which can conflict with char shl_load (); below. 9763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9764 <limits.h> exists even on freestanding compilers. */ 9765 9766 #ifdef __STDC__ 9767 # include <limits.h> 9768 #else 9769 # include <assert.h> 9770 #endif 9771 9772 #undef shl_load 9773 9774 /* Override any GCC internal prototype to avoid an error. 9775 Use char because int might match the return type of a GCC 9776 builtin and then its argument prototype would still apply. */ 9777 #ifdef __cplusplus 9778 extern "C" 9779 #endif 9780 char shl_load (); 9781 /* The GNU C library defines this for functions which it implements 9782 to always fail with ENOSYS. Some functions are actually named 9783 something starting with __ and the normal name is an alias. */ 9784 #if defined __stub_shl_load || defined __stub___shl_load 9785 choke me 9786 #endif 9787 9788 int 9789 main () 9790 { 9791 return shl_load (); 9792 ; 9793 return 0; 9794 } 9795 _ACEOF 9796 rm -f conftest.$ac_objext conftest$ac_exeext 9797 if { (ac_try="$ac_link" 9798 case "(($ac_try" in 9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9800 *) ac_try_echo=$ac_try;; 9801 esac 9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9803 (eval "$ac_link") 2>conftest.er1 9804 ac_status=$? 9805 grep -v '^ *+' conftest.er1 >conftest.err 9806 rm -f conftest.er1 9807 cat conftest.err >&5 9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9809 (exit $ac_status); } && 9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9811 { (case "(($ac_try" in 9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9813 *) ac_try_echo=$ac_try;; 9814 esac 9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9816 (eval "$ac_try") 2>&5 9817 ac_status=$? 9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9819 (exit $ac_status); }; } && 9820 { ac_try='test -s conftest$ac_exeext' 9821 { (case "(($ac_try" in 9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9823 *) ac_try_echo=$ac_try;; 9824 esac 9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9826 (eval "$ac_try") 2>&5 9827 ac_status=$? 9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9829 (exit $ac_status); }; }; then 9830 ac_cv_func_shl_load=yes 9831 else 9832 echo "$as_me: failed program was:" >&5 9833 sed 's/^/| /' conftest.$ac_ext >&5 9834 9835 ac_cv_func_shl_load=no 9836 fi 9837 9838 rm -f core conftest.err conftest.$ac_objext \ 9839 conftest$ac_exeext conftest.$ac_ext 9840 fi 9841 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9843 if test $ac_cv_func_shl_load = yes; then 9844 9845 cat >>confdefs.h <<\_ACEOF 9846 #define HAVE_SHL_LOAD 1 9847 _ACEOF 9848 9849 else 9850 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9853 echo $ECHO_N "(cached) $ECHO_C" >&6 9854 else 9855 ac_check_lib_save_LIBS=$LIBS 9856 LIBS="-ldld $LIBS" 9857 cat >conftest.$ac_ext <<_ACEOF 9858 /* confdefs.h. */ 9859 _ACEOF 9860 cat confdefs.h >>conftest.$ac_ext 9861 cat >>conftest.$ac_ext <<_ACEOF 9862 /* end confdefs.h. */ 9863 9864 /* Override any GCC internal prototype to avoid an error. 9865 Use char because int might match the return type of a GCC 9866 builtin and then its argument prototype would still apply. */ 9867 #ifdef __cplusplus 9868 extern "C" 9869 #endif 9870 char shl_load (); 9871 int 9872 main () 9873 { 9874 return shl_load (); 9875 ; 9876 return 0; 9877 } 9878 _ACEOF 9879 rm -f conftest.$ac_objext conftest$ac_exeext 9880 if { (ac_try="$ac_link" 9881 case "(($ac_try" in 9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9883 *) ac_try_echo=$ac_try;; 9884 esac 9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9886 (eval "$ac_link") 2>conftest.er1 9887 ac_status=$? 9888 grep -v '^ *+' conftest.er1 >conftest.err 9889 rm -f conftest.er1 9890 cat conftest.err >&5 9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9892 (exit $ac_status); } && 9893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9894 { (case "(($ac_try" in 9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9896 *) ac_try_echo=$ac_try;; 9897 esac 9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9899 (eval "$ac_try") 2>&5 9900 ac_status=$? 9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9902 (exit $ac_status); }; } && 9903 { ac_try='test -s conftest$ac_exeext' 9904 { (case "(($ac_try" in 9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9906 *) ac_try_echo=$ac_try;; 9907 esac 9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9909 (eval "$ac_try") 2>&5 9910 ac_status=$? 9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9912 (exit $ac_status); }; }; then 9913 ac_cv_lib_dld_shl_load=yes 9914 else 9915 echo "$as_me: failed program was:" >&5 9916 sed 's/^/| /' conftest.$ac_ext >&5 9917 9918 ac_cv_lib_dld_shl_load=no 9919 fi 9920 9921 rm -f core conftest.err conftest.$ac_objext \ 9922 conftest$ac_exeext conftest.$ac_ext 9923 LIBS=$ac_check_lib_save_LIBS 9924 fi 9925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9926 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9927 if test $ac_cv_lib_dld_shl_load = yes; then 9928 9929 cat >>confdefs.h <<\_ACEOF 9930 #define HAVE_SHL_LOAD 1 9931 _ACEOF 9932 9933 LIBADD_DL="$LIBADD_DL -ldld" 9934 else 9935 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9936 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9938 echo $ECHO_N "(cached) $ECHO_C" >&6 9939 else 9940 ac_check_lib_save_LIBS=$LIBS 9941 LIBS="-ldl $LIBS" 9942 cat >conftest.$ac_ext <<_ACEOF 9943 /* confdefs.h. */ 9944 _ACEOF 9945 cat confdefs.h >>conftest.$ac_ext 9946 cat >>conftest.$ac_ext <<_ACEOF 9947 /* end confdefs.h. */ 9948 9949 /* Override any GCC internal prototype to avoid an error. 9950 Use char because int might match the return type of a GCC 9951 builtin and then its argument prototype would still apply. */ 9952 #ifdef __cplusplus 9953 extern "C" 9954 #endif 9955 char dlopen (); 9956 int 9957 main () 9958 { 9959 return dlopen (); 9960 ; 9961 return 0; 9962 } 9963 _ACEOF 9964 rm -f conftest.$ac_objext conftest$ac_exeext 9965 if { (ac_try="$ac_link" 9966 case "(($ac_try" in 9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9968 *) ac_try_echo=$ac_try;; 9969 esac 9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9971 (eval "$ac_link") 2>conftest.er1 9972 ac_status=$? 9973 grep -v '^ *+' conftest.er1 >conftest.err 9974 rm -f conftest.er1 9975 cat conftest.err >&5 9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9977 (exit $ac_status); } && 9978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9979 { (case "(($ac_try" in 9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9981 *) ac_try_echo=$ac_try;; 9982 esac 9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9984 (eval "$ac_try") 2>&5 9985 ac_status=$? 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); }; } && 9988 { ac_try='test -s conftest$ac_exeext' 9989 { (case "(($ac_try" in 9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9991 *) ac_try_echo=$ac_try;; 9992 esac 9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9994 (eval "$ac_try") 2>&5 9995 ac_status=$? 9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9997 (exit $ac_status); }; }; then 9998 ac_cv_lib_dl_dlopen=yes 9999 else 10000 echo "$as_me: failed program was:" >&5 10001 sed 's/^/| /' conftest.$ac_ext >&5 10002 10003 ac_cv_lib_dl_dlopen=no 10004 fi 10005 10006 rm -f core conftest.err conftest.$ac_objext \ 10007 conftest$ac_exeext conftest.$ac_ext 10008 LIBS=$ac_check_lib_save_LIBS 10009 fi 10010 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10012 if test $ac_cv_lib_dl_dlopen = yes; then 10013 10014 cat >>confdefs.h <<\_ACEOF 10015 #define HAVE_LIBDL 1 10016 _ACEOF 10017 10018 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 10019 else 10020 cat >conftest.$ac_ext <<_ACEOF 10021 /* confdefs.h. */ 10022 _ACEOF 10023 cat confdefs.h >>conftest.$ac_ext 10024 cat >>conftest.$ac_ext <<_ACEOF 10025 /* end confdefs.h. */ 10026 #if HAVE_DLFCN_H 10027 # include <dlfcn.h> 10028 #endif 10029 10030 int 10031 main () 10032 { 10033 dlopen(0, 0); 10034 ; 10035 return 0; 10036 } 10037 _ACEOF 10038 rm -f conftest.$ac_objext conftest$ac_exeext 10039 if { (ac_try="$ac_link" 10040 case "(($ac_try" in 10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10042 *) ac_try_echo=$ac_try;; 10043 esac 10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10045 (eval "$ac_link") 2>conftest.er1 10046 ac_status=$? 10047 grep -v '^ *+' conftest.er1 >conftest.err 10048 rm -f conftest.er1 10049 cat conftest.err >&5 10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10051 (exit $ac_status); } && 10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10053 { (case "(($ac_try" in 10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10055 *) ac_try_echo=$ac_try;; 10056 esac 10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10058 (eval "$ac_try") 2>&5 10059 ac_status=$? 10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10061 (exit $ac_status); }; } && 10062 { ac_try='test -s conftest$ac_exeext' 10063 { (case "(($ac_try" in 10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10065 *) ac_try_echo=$ac_try;; 10066 esac 10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10068 (eval "$ac_try") 2>&5 10069 ac_status=$? 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); }; }; then 10072 10073 cat >>confdefs.h <<\_ACEOF 10074 #define HAVE_LIBDL 1 10075 _ACEOF 10076 libltdl_cv_func_dlopen="yes" 10077 else 10078 echo "$as_me: failed program was:" >&5 10079 sed 's/^/| /' conftest.$ac_ext >&5 10080 10081 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10082 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10083 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10084 echo $ECHO_N "(cached) $ECHO_C" >&6 10085 else 10086 ac_check_lib_save_LIBS=$LIBS 10087 LIBS="-lsvld $LIBS" 10088 cat >conftest.$ac_ext <<_ACEOF 10089 /* confdefs.h. */ 10090 _ACEOF 10091 cat confdefs.h >>conftest.$ac_ext 10092 cat >>conftest.$ac_ext <<_ACEOF 10093 /* end confdefs.h. */ 10094 10095 /* Override any GCC internal prototype to avoid an error. 10096 Use char because int might match the return type of a GCC 10097 builtin and then its argument prototype would still apply. */ 10098 #ifdef __cplusplus 10099 extern "C" 10100 #endif 10101 char dlopen (); 10102 int 10103 main () 10104 { 10105 return dlopen (); 10106 ; 10107 return 0; 10108 } 10109 _ACEOF 10110 rm -f conftest.$ac_objext conftest$ac_exeext 10111 if { (ac_try="$ac_link" 10112 case "(($ac_try" in 10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10114 *) ac_try_echo=$ac_try;; 10115 esac 10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10117 (eval "$ac_link") 2>conftest.er1 10118 ac_status=$? 10119 grep -v '^ *+' conftest.er1 >conftest.err 10120 rm -f conftest.er1 10121 cat conftest.err >&5 10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10123 (exit $ac_status); } && 10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10125 { (case "(($ac_try" in 10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10127 *) ac_try_echo=$ac_try;; 10128 esac 10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10130 (eval "$ac_try") 2>&5 10131 ac_status=$? 10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10133 (exit $ac_status); }; } && 10134 { ac_try='test -s conftest$ac_exeext' 10135 { (case "(($ac_try" in 10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10137 *) ac_try_echo=$ac_try;; 10138 esac 10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10140 (eval "$ac_try") 2>&5 10141 ac_status=$? 10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10143 (exit $ac_status); }; }; then 10144 ac_cv_lib_svld_dlopen=yes 10145 else 10146 echo "$as_me: failed program was:" >&5 10147 sed 's/^/| /' conftest.$ac_ext >&5 10148 10149 ac_cv_lib_svld_dlopen=no 10150 fi 10151 10152 rm -f core conftest.err conftest.$ac_objext \ 10153 conftest$ac_exeext conftest.$ac_ext 10154 LIBS=$ac_check_lib_save_LIBS 10155 fi 10156 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10157 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10158 if test $ac_cv_lib_svld_dlopen = yes; then 10159 10160 cat >>confdefs.h <<\_ACEOF 10161 #define HAVE_LIBDL 1 10162 _ACEOF 10163 10164 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10165 else 10166 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10167 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10168 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10169 echo $ECHO_N "(cached) $ECHO_C" >&6 10170 else 10171 ac_check_lib_save_LIBS=$LIBS 10172 LIBS="-ldld $LIBS" 10173 cat >conftest.$ac_ext <<_ACEOF 10174 /* confdefs.h. */ 10175 _ACEOF 10176 cat confdefs.h >>conftest.$ac_ext 10177 cat >>conftest.$ac_ext <<_ACEOF 10178 /* end confdefs.h. */ 10179 10180 /* Override any GCC internal prototype to avoid an error. 10181 Use char because int might match the return type of a GCC 10182 builtin and then its argument prototype would still apply. */ 10183 #ifdef __cplusplus 10184 extern "C" 10185 #endif 10186 char dld_link (); 10187 int 10188 main () 10189 { 10190 return dld_link (); 10191 ; 10192 return 0; 10193 } 10194 _ACEOF 10195 rm -f conftest.$ac_objext conftest$ac_exeext 10196 if { (ac_try="$ac_link" 10197 case "(($ac_try" in 10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10199 *) ac_try_echo=$ac_try;; 10200 esac 10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10202 (eval "$ac_link") 2>conftest.er1 10203 ac_status=$? 10204 grep -v '^ *+' conftest.er1 >conftest.err 10205 rm -f conftest.er1 10206 cat conftest.err >&5 10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10208 (exit $ac_status); } && 10209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10210 { (case "(($ac_try" in 10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10212 *) ac_try_echo=$ac_try;; 10213 esac 10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10215 (eval "$ac_try") 2>&5 10216 ac_status=$? 10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10218 (exit $ac_status); }; } && 10219 { ac_try='test -s conftest$ac_exeext' 10220 { (case "(($ac_try" in 10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10222 *) ac_try_echo=$ac_try;; 10223 esac 10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10225 (eval "$ac_try") 2>&5 10226 ac_status=$? 10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10228 (exit $ac_status); }; }; then 10229 ac_cv_lib_dld_dld_link=yes 10230 else 10231 echo "$as_me: failed program was:" >&5 10232 sed 's/^/| /' conftest.$ac_ext >&5 10233 10234 ac_cv_lib_dld_dld_link=no 10235 fi 10236 10237 rm -f core conftest.err conftest.$ac_objext \ 10238 conftest$ac_exeext conftest.$ac_ext 10239 LIBS=$ac_check_lib_save_LIBS 10240 fi 10241 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10242 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10243 if test $ac_cv_lib_dld_dld_link = yes; then 10244 10245 cat >>confdefs.h <<\_ACEOF 10246 #define HAVE_DLD 1 10247 _ACEOF 10248 10249 LIBADD_DL="$LIBADD_DL -ldld" 10250 else 10251 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10252 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10253 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10254 echo $ECHO_N "(cached) $ECHO_C" >&6 10255 else 10256 cat >conftest.$ac_ext <<_ACEOF 10257 /* confdefs.h. */ 10258 _ACEOF 10259 cat confdefs.h >>conftest.$ac_ext 10260 cat >>conftest.$ac_ext <<_ACEOF 10261 /* end confdefs.h. */ 10262 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10263 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10264 #define _dyld_func_lookup innocuous__dyld_func_lookup 10265 10266 /* System header to define __stub macros and hopefully few prototypes, 10267 which can conflict with char _dyld_func_lookup (); below. 10268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10269 <limits.h> exists even on freestanding compilers. */ 10270 10271 #ifdef __STDC__ 10272 # include <limits.h> 10273 #else 10274 # include <assert.h> 10275 #endif 10276 10277 #undef _dyld_func_lookup 10278 10279 /* Override any GCC internal prototype to avoid an error. 10280 Use char because int might match the return type of a GCC 10281 builtin and then its argument prototype would still apply. */ 10282 #ifdef __cplusplus 10283 extern "C" 10284 #endif 10285 char _dyld_func_lookup (); 10286 /* The GNU C library defines this for functions which it implements 10287 to always fail with ENOSYS. Some functions are actually named 10288 something starting with __ and the normal name is an alias. */ 10289 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10290 choke me 10291 #endif 10292 10293 int 10294 main () 10295 { 10296 return _dyld_func_lookup (); 10297 ; 10298 return 0; 10299 } 10300 _ACEOF 10301 rm -f conftest.$ac_objext conftest$ac_exeext 10302 if { (ac_try="$ac_link" 10303 case "(($ac_try" in 10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10305 *) ac_try_echo=$ac_try;; 10306 esac 10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10308 (eval "$ac_link") 2>conftest.er1 10309 ac_status=$? 10310 grep -v '^ *+' conftest.er1 >conftest.err 10311 rm -f conftest.er1 10312 cat conftest.err >&5 10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10314 (exit $ac_status); } && 10315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10316 { (case "(($ac_try" in 10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10318 *) ac_try_echo=$ac_try;; 10319 esac 10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10321 (eval "$ac_try") 2>&5 10322 ac_status=$? 10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10324 (exit $ac_status); }; } && 10325 { ac_try='test -s conftest$ac_exeext' 10326 { (case "(($ac_try" in 10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10328 *) ac_try_echo=$ac_try;; 10329 esac 10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10331 (eval "$ac_try") 2>&5 10332 ac_status=$? 10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10334 (exit $ac_status); }; }; then 10335 ac_cv_func__dyld_func_lookup=yes 10336 else 10337 echo "$as_me: failed program was:" >&5 10338 sed 's/^/| /' conftest.$ac_ext >&5 10339 10340 ac_cv_func__dyld_func_lookup=no 10341 fi 10342 10343 rm -f core conftest.err conftest.$ac_objext \ 10344 conftest$ac_exeext conftest.$ac_ext 10345 fi 10346 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10347 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10348 if test $ac_cv_func__dyld_func_lookup = yes; then 10349 10350 cat >>confdefs.h <<\_ACEOF 10351 #define HAVE_DYLD 1 10352 _ACEOF 10353 10354 fi 10355 10356 10357 fi 10358 10359 10360 fi 10361 10362 10363 fi 10364 10365 rm -f core conftest.err conftest.$ac_objext \ 10366 conftest$ac_exeext conftest.$ac_ext 10367 10368 fi 10369 10370 10371 fi 10372 10373 10374 fi 10375 10376 10377 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10378 then 10379 lt_save_LIBS="$LIBS" 10380 LIBS="$LIBS $LIBADD_DL" 10381 10382 for ac_func in dlerror 10383 do 10384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10385 { echo "$as_me:$LINENO: checking for $ac_func" >&5 10386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10388 echo $ECHO_N "(cached) $ECHO_C" >&6 10389 else 10390 cat >conftest.$ac_ext <<_ACEOF 10391 /* confdefs.h. */ 10392 _ACEOF 10393 cat confdefs.h >>conftest.$ac_ext 10394 cat >>conftest.$ac_ext <<_ACEOF 10395 /* end confdefs.h. */ 10396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10397 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10398 #define $ac_func innocuous_$ac_func 10399 10400 /* System header to define __stub macros and hopefully few prototypes, 10401 which can conflict with char $ac_func (); below. 10402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10403 <limits.h> exists even on freestanding compilers. */ 10404 10405 #ifdef __STDC__ 10406 # include <limits.h> 10407 #else 10408 # include <assert.h> 10409 #endif 10410 10411 #undef $ac_func 10412 10413 /* Override any GCC internal prototype to avoid an error. 10414 Use char because int might match the return type of a GCC 10415 builtin and then its argument prototype would still apply. */ 10416 #ifdef __cplusplus 10417 extern "C" 10418 #endif 10419 char $ac_func (); 10420 /* The GNU C library defines this for functions which it implements 10421 to always fail with ENOSYS. Some functions are actually named 10422 something starting with __ and the normal name is an alias. */ 10423 #if defined __stub_$ac_func || defined __stub___$ac_func 10424 choke me 10425 #endif 10426 10427 int 10428 main () 10429 { 10430 return $ac_func (); 10431 ; 10432 return 0; 10433 } 10434 _ACEOF 10435 rm -f conftest.$ac_objext conftest$ac_exeext 10436 if { (ac_try="$ac_link" 10437 case "(($ac_try" in 10438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10439 *) ac_try_echo=$ac_try;; 10440 esac 10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10442 (eval "$ac_link") 2>conftest.er1 10443 ac_status=$? 10444 grep -v '^ *+' conftest.er1 >conftest.err 10445 rm -f conftest.er1 10446 cat conftest.err >&5 10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10448 (exit $ac_status); } && 10449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10450 { (case "(($ac_try" in 10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10452 *) ac_try_echo=$ac_try;; 10453 esac 10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10455 (eval "$ac_try") 2>&5 10456 ac_status=$? 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10458 (exit $ac_status); }; } && 10459 { ac_try='test -s conftest$ac_exeext' 10460 { (case "(($ac_try" in 10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10462 *) ac_try_echo=$ac_try;; 10463 esac 10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10465 (eval "$ac_try") 2>&5 10466 ac_status=$? 10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10468 (exit $ac_status); }; }; then 10469 eval "$as_ac_var=yes" 10470 else 10471 echo "$as_me: failed program was:" >&5 10472 sed 's/^/| /' conftest.$ac_ext >&5 10473 10474 eval "$as_ac_var=no" 10475 fi 10476 10477 rm -f core conftest.err conftest.$ac_objext \ 10478 conftest$ac_exeext conftest.$ac_ext 10479 fi 10480 ac_res=`eval echo '${'$as_ac_var'}'` 10481 { echo "$as_me:$LINENO: result: $ac_res" >&5 10482 echo "${ECHO_T}$ac_res" >&6; } 10483 if test `eval echo '${'$as_ac_var'}'` = yes; then 10484 cat >>confdefs.h <<_ACEOF 10485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10486 _ACEOF 10487 10488 fi 10489 done 10490 10491 LIBS="$lt_save_LIBS" 10492 fi 10493 ac_ext=c 10494 ac_cpp='$CPP $CPPFLAGS' 10495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10497 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10498 10499 10500 10501 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10502 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10503 if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10504 echo $ECHO_N "(cached) $ECHO_C" >&6 10505 else 10506 ac_cv_sys_symbol_underscore=no 10507 cat > conftest.$ac_ext <<EOF 10508 void nm_test_func(){} 10509 int main(){nm_test_func;return 0;} 10510 EOF 10511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10512 (eval $ac_compile) 2>&5 10513 ac_status=$? 10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10515 (exit $ac_status); }; then 10516 # Now try to grab the symbols. 10517 ac_nlist=conftest.nm 10518 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10519 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10520 ac_status=$? 10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10522 (exit $ac_status); } && test -s "$ac_nlist"; then 10523 # See whether the symbols have a leading underscore. 10524 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10525 ac_cv_sys_symbol_underscore=yes 10526 else 10527 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10528 : 10529 else 10530 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10531 fi 10532 fi 10533 else 10534 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10535 fi 10536 else 10537 echo "configure: failed program was:" >&5 10538 cat conftest.c >&5 10539 fi 10540 rm -rf conftest* 10541 10542 fi 10543 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10544 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10545 10546 10547 if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10548 if test x"$libltdl_cv_func_dlopen" = xyes || 10549 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10550 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10551 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10552 if test "${libltdl_cv_need_uscore+set}" = set; then 10553 echo $ECHO_N "(cached) $ECHO_C" >&6 10554 else 10555 libltdl_cv_need_uscore=unknown 10556 save_LIBS="$LIBS" 10557 LIBS="$LIBS $LIBADD_DL" 10558 if test "$cross_compiling" = yes; then : 10559 libltdl_cv_need_uscore=cross 10560 else 10561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10562 lt_status=$lt_dlunknown 10563 cat > conftest.$ac_ext <<EOF 10564 #line 10564 "configure" 10565 #include "confdefs.h" 10566 10567 #if HAVE_DLFCN_H 10568 #include <dlfcn.h> 10569 #endif 10570 10571 #include <stdio.h> 10572 10573 #ifdef RTLD_GLOBAL 10574 # define LT_DLGLOBAL RTLD_GLOBAL 10575 #else 10576 # ifdef DL_GLOBAL 10577 # define LT_DLGLOBAL DL_GLOBAL 10578 # else 10579 # define LT_DLGLOBAL 0 10580 # endif 10581 #endif 10582 10583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10584 find out it does not work in some platform. */ 10585 #ifndef LT_DLLAZY_OR_NOW 10586 # ifdef RTLD_LAZY 10587 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10588 # else 10589 # ifdef DL_LAZY 10590 # define LT_DLLAZY_OR_NOW DL_LAZY 10591 # else 10592 # ifdef RTLD_NOW 10593 # define LT_DLLAZY_OR_NOW RTLD_NOW 10594 # else 10595 # ifdef DL_NOW 10596 # define LT_DLLAZY_OR_NOW DL_NOW 10597 # else 10598 # define LT_DLLAZY_OR_NOW 0 10599 # endif 10600 # endif 10601 # endif 10602 # endif 10603 #endif 10604 10605 #ifdef __cplusplus 10606 extern "C" void exit (int); 10607 #endif 10608 10609 void fnord() { int i=42;} 10610 int main () 10611 { 10612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10613 int status = $lt_dlunknown; 10614 10615 if (self) 10616 { 10617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10619 /* dlclose (self); */ 10620 } 10621 else 10622 puts (dlerror ()); 10623 10624 exit (status); 10625 } 10626 EOF 10627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10628 (eval $ac_link) 2>&5 10629 ac_status=$? 10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10632 (./conftest; exit; ) >&5 2>/dev/null 10633 lt_status=$? 10634 case x$lt_status in 10635 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10636 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10637 x$lt_dlunknown|x*) ;; 10638 esac 10639 else : 10640 # compilation failed 10641 10642 fi 10643 fi 10644 rm -fr conftest* 10645 10646 LIBS="$save_LIBS" 10647 10648 fi 10649 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10650 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10651 fi 10652 fi 10653 10654 if test x"$libltdl_cv_need_uscore" = xyes; then 10655 10656 cat >>confdefs.h <<\_ACEOF 10657 #define NEED_USCORE 1 10658 _ACEOF 10659 10660 fi 10661 10662 10663 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10664 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10665 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10666 echo $ECHO_N "(cached) $ECHO_C" >&6 10667 else 10668 # PORTME does your system automatically load deplibs for dlopen? 10669 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10670 # For now, we just catch OSes we know something about -- in the 10671 # future, we'll try test this programmatically. 10672 libltdl_cv_sys_dlopen_deplibs=unknown 10673 case "$host_os" in 10674 aix3*|aix4.1.*|aix4.2.*) 10675 # Unknown whether this is true for these versions of AIX, but 10676 # we want this `case' here to explicitly catch those versions. 10677 libltdl_cv_sys_dlopen_deplibs=unknown 10678 ;; 10679 aix[45]*) 10680 libltdl_cv_sys_dlopen_deplibs=yes 10681 ;; 10682 darwin*) 10683 # Assuming the user has installed a libdl from somewhere, this is true 10684 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10685 libltdl_cv_sys_dlopen_deplibs=yes 10686 ;; 10687 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10688 # GNU and its variants, using gnu ld.so (Glibc) 10689 libltdl_cv_sys_dlopen_deplibs=yes 10690 ;; 10691 hpux10*|hpux11*) 10692 libltdl_cv_sys_dlopen_deplibs=yes 10693 ;; 10694 interix*) 10695 libltdl_cv_sys_dlopen_deplibs=yes 10696 ;; 10697 irix[12345]*|irix6.[01]*) 10698 # Catch all versions of IRIX before 6.2, and indicate that we don't 10699 # know how it worked for any of those versions. 10700 libltdl_cv_sys_dlopen_deplibs=unknown 10701 ;; 10702 irix*) 10703 # The case above catches anything before 6.2, and it's known that 10704 # at 6.2 and later dlopen does load deplibs. 10705 libltdl_cv_sys_dlopen_deplibs=yes 10706 ;; 10707 netbsd*) 10708 libltdl_cv_sys_dlopen_deplibs=yes 10709 ;; 10710 openbsd*) 10711 libltdl_cv_sys_dlopen_deplibs=yes 10712 ;; 10713 osf[1234]*) 10714 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10715 # it did *not* use an RPATH in a shared library to find objects the 10716 # library depends on, so we explicitly say `no'. 10717 libltdl_cv_sys_dlopen_deplibs=no 10718 ;; 10719 osf5.0|osf5.0a|osf5.1) 10720 # dlopen *does* load deplibs and with the right loader patch applied 10721 # it even uses RPATH in a shared library to search for shared objects 10722 # that the library depends on, but there's no easy way to know if that 10723 # patch is installed. Since this is the case, all we can really 10724 # say is unknown -- it depends on the patch being installed. If 10725 # it is, this changes to `yes'. Without it, it would be `no'. 10726 libltdl_cv_sys_dlopen_deplibs=unknown 10727 ;; 10728 osf*) 10729 # the two cases above should catch all versions of osf <= 5.1. Read 10730 # the comments above for what we know about them. 10731 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10732 # is used to find them so we can finally say `yes'. 10733 libltdl_cv_sys_dlopen_deplibs=yes 10734 ;; 10735 solaris*) 10736 libltdl_cv_sys_dlopen_deplibs=yes 10737 ;; 10738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10739 libltdl_cv_sys_dlopen_deplibs=yes 10740 ;; 10741 esac 10742 10743 fi 10744 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10745 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10746 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10747 10748 cat >>confdefs.h <<\_ACEOF 10749 #define LTDL_DLOPEN_DEPLIBS 1 10750 _ACEOF 10751 10752 fi 10753 10754 10755 for ac_header in argz.h 10756 do 10757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10759 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10762 echo $ECHO_N "(cached) $ECHO_C" >&6 10763 fi 10764 ac_res=`eval echo '${'$as_ac_Header'}'` 10765 { echo "$as_me:$LINENO: result: $ac_res" >&5 10766 echo "${ECHO_T}$ac_res" >&6; } 10767 else 10768 # Is the header compilable? 10769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 10770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10771 cat >conftest.$ac_ext <<_ACEOF 10772 /* confdefs.h. */ 10773 _ACEOF 10774 cat confdefs.h >>conftest.$ac_ext 10775 cat >>conftest.$ac_ext <<_ACEOF 10776 /* end confdefs.h. */ 10777 $ac_includes_default 10778 #include <$ac_header> 10779 _ACEOF 10780 rm -f conftest.$ac_objext 10781 if { (ac_try="$ac_compile" 10782 case "(($ac_try" in 10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10784 *) ac_try_echo=$ac_try;; 10785 esac 10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10787 (eval "$ac_compile") 2>conftest.er1 10788 ac_status=$? 10789 grep -v '^ *+' conftest.er1 >conftest.err 10790 rm -f conftest.er1 10791 cat conftest.err >&5 10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10793 (exit $ac_status); } && 10794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10795 { (case "(($ac_try" in 10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10797 *) ac_try_echo=$ac_try;; 10798 esac 10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10800 (eval "$ac_try") 2>&5 10801 ac_status=$? 10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10803 (exit $ac_status); }; } && 10804 { ac_try='test -s conftest.$ac_objext' 10805 { (case "(($ac_try" in 10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10807 *) ac_try_echo=$ac_try;; 10808 esac 10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10810 (eval "$ac_try") 2>&5 10811 ac_status=$? 10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10813 (exit $ac_status); }; }; then 10814 ac_header_compiler=yes 10815 else 10816 echo "$as_me: failed program was:" >&5 10817 sed 's/^/| /' conftest.$ac_ext >&5 10818 10819 ac_header_compiler=no 10820 fi 10821 10822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10824 echo "${ECHO_T}$ac_header_compiler" >&6; } 10825 10826 # Is the header present? 10827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 10828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10829 cat >conftest.$ac_ext <<_ACEOF 10830 /* confdefs.h. */ 10831 _ACEOF 10832 cat confdefs.h >>conftest.$ac_ext 10833 cat >>conftest.$ac_ext <<_ACEOF 10834 /* end confdefs.h. */ 10835 #include <$ac_header> 10836 _ACEOF 10837 if { (ac_try="$ac_cpp conftest.$ac_ext" 10838 case "(($ac_try" in 10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10840 *) ac_try_echo=$ac_try;; 10841 esac 10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10844 ac_status=$? 10845 grep -v '^ *+' conftest.er1 >conftest.err 10846 rm -f conftest.er1 10847 cat conftest.err >&5 10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10849 (exit $ac_status); } >/dev/null; then 10850 if test -s conftest.err; then 10851 ac_cpp_err=$ac_c_preproc_warn_flag 10852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10853 else 10854 ac_cpp_err= 10855 fi 10856 else 10857 ac_cpp_err=yes 10858 fi 10859 if test -z "$ac_cpp_err"; then 10860 ac_header_preproc=yes 10861 else 10862 echo "$as_me: failed program was:" >&5 10863 sed 's/^/| /' conftest.$ac_ext >&5 10864 10865 ac_header_preproc=no 10866 fi 10867 10868 rm -f conftest.err conftest.$ac_ext 10869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10870 echo "${ECHO_T}$ac_header_preproc" >&6; } 10871 10872 # So? What about this header? 10873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10874 yes:no: ) 10875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10879 ac_header_preproc=yes 10880 ;; 10881 no:yes:* ) 10882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10894 ( cat <<\_ASBOX 10895 ## ------------------------------------ ## 10896 ## Report this to http://llvm.org/bugs/ ## 10897 ## ------------------------------------ ## 10898 _ASBOX 10899 ) | sed "s/^/$as_me: WARNING: /" >&2 10900 ;; 10901 esac 10902 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10905 echo $ECHO_N "(cached) $ECHO_C" >&6 10906 else 10907 eval "$as_ac_Header=\$ac_header_preproc" 10908 fi 10909 ac_res=`eval echo '${'$as_ac_Header'}'` 10910 { echo "$as_me:$LINENO: result: $ac_res" >&5 10911 echo "${ECHO_T}$ac_res" >&6; } 10912 10913 fi 10914 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10915 cat >>confdefs.h <<_ACEOF 10916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10917 _ACEOF 10918 10919 fi 10920 10921 done 10922 10923 10924 { echo "$as_me:$LINENO: checking for error_t" >&5 10925 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10926 if test "${ac_cv_type_error_t+set}" = set; then 10927 echo $ECHO_N "(cached) $ECHO_C" >&6 10928 else 10929 cat >conftest.$ac_ext <<_ACEOF 10930 /* confdefs.h. */ 10931 _ACEOF 10932 cat confdefs.h >>conftest.$ac_ext 10933 cat >>conftest.$ac_ext <<_ACEOF 10934 /* end confdefs.h. */ 10935 #if HAVE_ARGZ_H 10936 # include <argz.h> 10937 #endif 10938 10939 typedef error_t ac__type_new_; 10940 int 10941 main () 10942 { 10943 if ((ac__type_new_ *) 0) 10944 return 0; 10945 if (sizeof (ac__type_new_)) 10946 return 0; 10947 ; 10948 return 0; 10949 } 10950 _ACEOF 10951 rm -f conftest.$ac_objext 10952 if { (ac_try="$ac_compile" 10953 case "(($ac_try" in 10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10955 *) ac_try_echo=$ac_try;; 10956 esac 10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10958 (eval "$ac_compile") 2>conftest.er1 10959 ac_status=$? 10960 grep -v '^ *+' conftest.er1 >conftest.err 10961 rm -f conftest.er1 10962 cat conftest.err >&5 10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10964 (exit $ac_status); } && 10965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10966 { (case "(($ac_try" in 10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10968 *) ac_try_echo=$ac_try;; 10969 esac 10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10971 (eval "$ac_try") 2>&5 10972 ac_status=$? 10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10974 (exit $ac_status); }; } && 10975 { ac_try='test -s conftest.$ac_objext' 10976 { (case "(($ac_try" in 10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10978 *) ac_try_echo=$ac_try;; 10979 esac 10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10981 (eval "$ac_try") 2>&5 10982 ac_status=$? 10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10984 (exit $ac_status); }; }; then 10985 ac_cv_type_error_t=yes 10986 else 10987 echo "$as_me: failed program was:" >&5 10988 sed 's/^/| /' conftest.$ac_ext >&5 10989 10990 ac_cv_type_error_t=no 10991 fi 10992 10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10994 fi 10995 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10996 echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10997 if test $ac_cv_type_error_t = yes; then 10998 10999 cat >>confdefs.h <<_ACEOF 11000 #define HAVE_ERROR_T 1 11001 _ACEOF 11002 11003 11004 else 11005 11006 cat >>confdefs.h <<\_ACEOF 11007 #define error_t int 11008 _ACEOF 11009 11010 fi 11011 11012 11013 11014 11015 11016 11017 11018 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 11019 do 11020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11021 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11024 echo $ECHO_N "(cached) $ECHO_C" >&6 11025 else 11026 cat >conftest.$ac_ext <<_ACEOF 11027 /* confdefs.h. */ 11028 _ACEOF 11029 cat confdefs.h >>conftest.$ac_ext 11030 cat >>conftest.$ac_ext <<_ACEOF 11031 /* end confdefs.h. */ 11032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11033 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11034 #define $ac_func innocuous_$ac_func 11035 11036 /* System header to define __stub macros and hopefully few prototypes, 11037 which can conflict with char $ac_func (); below. 11038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11039 <limits.h> exists even on freestanding compilers. */ 11040 11041 #ifdef __STDC__ 11042 # include <limits.h> 11043 #else 11044 # include <assert.h> 11045 #endif 11046 11047 #undef $ac_func 11048 11049 /* Override any GCC internal prototype to avoid an error. 11050 Use char because int might match the return type of a GCC 11051 builtin and then its argument prototype would still apply. */ 11052 #ifdef __cplusplus 11053 extern "C" 11054 #endif 11055 char $ac_func (); 11056 /* The GNU C library defines this for functions which it implements 11057 to always fail with ENOSYS. Some functions are actually named 11058 something starting with __ and the normal name is an alias. */ 11059 #if defined __stub_$ac_func || defined __stub___$ac_func 11060 choke me 11061 #endif 11062 11063 int 11064 main () 11065 { 11066 return $ac_func (); 11067 ; 11068 return 0; 11069 } 11070 _ACEOF 11071 rm -f conftest.$ac_objext conftest$ac_exeext 11072 if { (ac_try="$ac_link" 11073 case "(($ac_try" in 11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11075 *) ac_try_echo=$ac_try;; 11076 esac 11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11078 (eval "$ac_link") 2>conftest.er1 11079 ac_status=$? 11080 grep -v '^ *+' conftest.er1 >conftest.err 11081 rm -f conftest.er1 11082 cat conftest.err >&5 11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11084 (exit $ac_status); } && 11085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11086 { (case "(($ac_try" in 11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11088 *) ac_try_echo=$ac_try;; 11089 esac 11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11091 (eval "$ac_try") 2>&5 11092 ac_status=$? 11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11094 (exit $ac_status); }; } && 11095 { ac_try='test -s conftest$ac_exeext' 11096 { (case "(($ac_try" in 11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11098 *) ac_try_echo=$ac_try;; 11099 esac 11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11101 (eval "$ac_try") 2>&5 11102 ac_status=$? 11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11104 (exit $ac_status); }; }; then 11105 eval "$as_ac_var=yes" 11106 else 11107 echo "$as_me: failed program was:" >&5 11108 sed 's/^/| /' conftest.$ac_ext >&5 11109 11110 eval "$as_ac_var=no" 11111 fi 11112 11113 rm -f core conftest.err conftest.$ac_objext \ 11114 conftest$ac_exeext conftest.$ac_ext 11115 fi 11116 ac_res=`eval echo '${'$as_ac_var'}'` 11117 { echo "$as_me:$LINENO: result: $ac_res" >&5 11118 echo "${ECHO_T}$ac_res" >&6; } 11119 if test `eval echo '${'$as_ac_var'}'` = yes; then 11120 cat >>confdefs.h <<_ACEOF 11121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11122 _ACEOF 11123 11124 fi 11125 done 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 for ac_header in errno.h malloc.h memory.h unistd.h 11150 do 11151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11153 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11156 echo $ECHO_N "(cached) $ECHO_C" >&6 11157 fi 11158 ac_res=`eval echo '${'$as_ac_Header'}'` 11159 { echo "$as_me:$LINENO: result: $ac_res" >&5 11160 echo "${ECHO_T}$ac_res" >&6; } 11161 else 11162 # Is the header compilable? 11163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11165 cat >conftest.$ac_ext <<_ACEOF 11166 /* confdefs.h. */ 11167 _ACEOF 11168 cat confdefs.h >>conftest.$ac_ext 11169 cat >>conftest.$ac_ext <<_ACEOF 11170 /* end confdefs.h. */ 11171 $ac_includes_default 11172 #include <$ac_header> 11173 _ACEOF 11174 rm -f conftest.$ac_objext 11175 if { (ac_try="$ac_compile" 11176 case "(($ac_try" in 11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11178 *) ac_try_echo=$ac_try;; 11179 esac 11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11181 (eval "$ac_compile") 2>conftest.er1 11182 ac_status=$? 11183 grep -v '^ *+' conftest.er1 >conftest.err 11184 rm -f conftest.er1 11185 cat conftest.err >&5 11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11187 (exit $ac_status); } && 11188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11189 { (case "(($ac_try" in 11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11191 *) ac_try_echo=$ac_try;; 11192 esac 11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11194 (eval "$ac_try") 2>&5 11195 ac_status=$? 11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11197 (exit $ac_status); }; } && 11198 { ac_try='test -s conftest.$ac_objext' 11199 { (case "(($ac_try" in 11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11201 *) ac_try_echo=$ac_try;; 11202 esac 11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11204 (eval "$ac_try") 2>&5 11205 ac_status=$? 11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11207 (exit $ac_status); }; }; then 11208 ac_header_compiler=yes 11209 else 11210 echo "$as_me: failed program was:" >&5 11211 sed 's/^/| /' conftest.$ac_ext >&5 11212 11213 ac_header_compiler=no 11214 fi 11215 11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11218 echo "${ECHO_T}$ac_header_compiler" >&6; } 11219 11220 # Is the header present? 11221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11223 cat >conftest.$ac_ext <<_ACEOF 11224 /* confdefs.h. */ 11225 _ACEOF 11226 cat confdefs.h >>conftest.$ac_ext 11227 cat >>conftest.$ac_ext <<_ACEOF 11228 /* end confdefs.h. */ 11229 #include <$ac_header> 11230 _ACEOF 11231 if { (ac_try="$ac_cpp conftest.$ac_ext" 11232 case "(($ac_try" in 11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11234 *) ac_try_echo=$ac_try;; 11235 esac 11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11238 ac_status=$? 11239 grep -v '^ *+' conftest.er1 >conftest.err 11240 rm -f conftest.er1 11241 cat conftest.err >&5 11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11243 (exit $ac_status); } >/dev/null; then 11244 if test -s conftest.err; then 11245 ac_cpp_err=$ac_c_preproc_warn_flag 11246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11247 else 11248 ac_cpp_err= 11249 fi 11250 else 11251 ac_cpp_err=yes 11252 fi 11253 if test -z "$ac_cpp_err"; then 11254 ac_header_preproc=yes 11255 else 11256 echo "$as_me: failed program was:" >&5 11257 sed 's/^/| /' conftest.$ac_ext >&5 11258 11259 ac_header_preproc=no 11260 fi 11261 11262 rm -f conftest.err conftest.$ac_ext 11263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11264 echo "${ECHO_T}$ac_header_preproc" >&6; } 11265 11266 # So? What about this header? 11267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11268 yes:no: ) 11269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11273 ac_header_preproc=yes 11274 ;; 11275 no:yes:* ) 11276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11288 ( cat <<\_ASBOX 11289 ## ------------------------------------ ## 11290 ## Report this to http://llvm.org/bugs/ ## 11291 ## ------------------------------------ ## 11292 _ASBOX 11293 ) | sed "s/^/$as_me: WARNING: /" >&2 11294 ;; 11295 esac 11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11299 echo $ECHO_N "(cached) $ECHO_C" >&6 11300 else 11301 eval "$as_ac_Header=\$ac_header_preproc" 11302 fi 11303 ac_res=`eval echo '${'$as_ac_Header'}'` 11304 { echo "$as_me:$LINENO: result: $ac_res" >&5 11305 echo "${ECHO_T}$ac_res" >&6; } 11306 11307 fi 11308 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11309 cat >>confdefs.h <<_ACEOF 11310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11311 _ACEOF 11312 11313 fi 11314 11315 done 11316 11317 11318 for ac_header in mach-o/dyld.h 11319 do 11320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11322 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11325 echo $ECHO_N "(cached) $ECHO_C" >&6 11326 fi 11327 ac_res=`eval echo '${'$as_ac_Header'}'` 11328 { echo "$as_me:$LINENO: result: $ac_res" >&5 11329 echo "${ECHO_T}$ac_res" >&6; } 11330 else 11331 # Is the header compilable? 11332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11334 cat >conftest.$ac_ext <<_ACEOF 11335 /* confdefs.h. */ 11336 _ACEOF 11337 cat confdefs.h >>conftest.$ac_ext 11338 cat >>conftest.$ac_ext <<_ACEOF 11339 /* end confdefs.h. */ 11340 $ac_includes_default 11341 #include <$ac_header> 11342 _ACEOF 11343 rm -f conftest.$ac_objext 11344 if { (ac_try="$ac_compile" 11345 case "(($ac_try" in 11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11347 *) ac_try_echo=$ac_try;; 11348 esac 11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11350 (eval "$ac_compile") 2>conftest.er1 11351 ac_status=$? 11352 grep -v '^ *+' conftest.er1 >conftest.err 11353 rm -f conftest.er1 11354 cat conftest.err >&5 11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11356 (exit $ac_status); } && 11357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11358 { (case "(($ac_try" in 11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11360 *) ac_try_echo=$ac_try;; 11361 esac 11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11363 (eval "$ac_try") 2>&5 11364 ac_status=$? 11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11366 (exit $ac_status); }; } && 11367 { ac_try='test -s conftest.$ac_objext' 11368 { (case "(($ac_try" in 11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11370 *) ac_try_echo=$ac_try;; 11371 esac 11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11373 (eval "$ac_try") 2>&5 11374 ac_status=$? 11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11376 (exit $ac_status); }; }; then 11377 ac_header_compiler=yes 11378 else 11379 echo "$as_me: failed program was:" >&5 11380 sed 's/^/| /' conftest.$ac_ext >&5 11381 11382 ac_header_compiler=no 11383 fi 11384 11385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11387 echo "${ECHO_T}$ac_header_compiler" >&6; } 11388 11389 # Is the header present? 11390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11392 cat >conftest.$ac_ext <<_ACEOF 11393 /* confdefs.h. */ 11394 _ACEOF 11395 cat confdefs.h >>conftest.$ac_ext 11396 cat >>conftest.$ac_ext <<_ACEOF 11397 /* end confdefs.h. */ 11398 #include <$ac_header> 11399 _ACEOF 11400 if { (ac_try="$ac_cpp conftest.$ac_ext" 11401 case "(($ac_try" in 11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11403 *) ac_try_echo=$ac_try;; 11404 esac 11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11407 ac_status=$? 11408 grep -v '^ *+' conftest.er1 >conftest.err 11409 rm -f conftest.er1 11410 cat conftest.err >&5 11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11412 (exit $ac_status); } >/dev/null; then 11413 if test -s conftest.err; then 11414 ac_cpp_err=$ac_c_preproc_warn_flag 11415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11416 else 11417 ac_cpp_err= 11418 fi 11419 else 11420 ac_cpp_err=yes 11421 fi 11422 if test -z "$ac_cpp_err"; then 11423 ac_header_preproc=yes 11424 else 11425 echo "$as_me: failed program was:" >&5 11426 sed 's/^/| /' conftest.$ac_ext >&5 11427 11428 ac_header_preproc=no 11429 fi 11430 11431 rm -f conftest.err conftest.$ac_ext 11432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11433 echo "${ECHO_T}$ac_header_preproc" >&6; } 11434 11435 # So? What about this header? 11436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11437 yes:no: ) 11438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11442 ac_header_preproc=yes 11443 ;; 11444 no:yes:* ) 11445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11457 ( cat <<\_ASBOX 11458 ## ------------------------------------ ## 11459 ## Report this to http://llvm.org/bugs/ ## 11460 ## ------------------------------------ ## 11461 _ASBOX 11462 ) | sed "s/^/$as_me: WARNING: /" >&2 11463 ;; 11464 esac 11465 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11468 echo $ECHO_N "(cached) $ECHO_C" >&6 11469 else 11470 eval "$as_ac_Header=\$ac_header_preproc" 11471 fi 11472 ac_res=`eval echo '${'$as_ac_Header'}'` 11473 { echo "$as_me:$LINENO: result: $ac_res" >&5 11474 echo "${ECHO_T}$ac_res" >&6; } 11475 11476 fi 11477 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11478 cat >>confdefs.h <<_ACEOF 11479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11480 _ACEOF 11481 11482 fi 11483 11484 done 11485 11486 11487 11488 11489 11490 for ac_func in closedir opendir readdir 11491 do 11492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11493 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11496 echo $ECHO_N "(cached) $ECHO_C" >&6 11497 else 11498 cat >conftest.$ac_ext <<_ACEOF 11499 /* confdefs.h. */ 11500 _ACEOF 11501 cat confdefs.h >>conftest.$ac_ext 11502 cat >>conftest.$ac_ext <<_ACEOF 11503 /* end confdefs.h. */ 11504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11505 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11506 #define $ac_func innocuous_$ac_func 11507 11508 /* System header to define __stub macros and hopefully few prototypes, 11509 which can conflict with char $ac_func (); below. 11510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11511 <limits.h> exists even on freestanding compilers. */ 11512 11513 #ifdef __STDC__ 11514 # include <limits.h> 11515 #else 11516 # include <assert.h> 11517 #endif 11518 11519 #undef $ac_func 11520 11521 /* Override any GCC internal prototype to avoid an error. 11522 Use char because int might match the return type of a GCC 11523 builtin and then its argument prototype would still apply. */ 11524 #ifdef __cplusplus 11525 extern "C" 11526 #endif 11527 char $ac_func (); 11528 /* The GNU C library defines this for functions which it implements 11529 to always fail with ENOSYS. Some functions are actually named 11530 something starting with __ and the normal name is an alias. */ 11531 #if defined __stub_$ac_func || defined __stub___$ac_func 11532 choke me 11533 #endif 11534 11535 int 11536 main () 11537 { 11538 return $ac_func (); 11539 ; 11540 return 0; 11541 } 11542 _ACEOF 11543 rm -f conftest.$ac_objext conftest$ac_exeext 11544 if { (ac_try="$ac_link" 11545 case "(($ac_try" in 11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11547 *) ac_try_echo=$ac_try;; 11548 esac 11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11550 (eval "$ac_link") 2>conftest.er1 11551 ac_status=$? 11552 grep -v '^ *+' conftest.er1 >conftest.err 11553 rm -f conftest.er1 11554 cat conftest.err >&5 11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11556 (exit $ac_status); } && 11557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11558 { (case "(($ac_try" in 11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11560 *) ac_try_echo=$ac_try;; 11561 esac 11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11563 (eval "$ac_try") 2>&5 11564 ac_status=$? 11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11566 (exit $ac_status); }; } && 11567 { ac_try='test -s conftest$ac_exeext' 11568 { (case "(($ac_try" in 11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11570 *) ac_try_echo=$ac_try;; 11571 esac 11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11573 (eval "$ac_try") 2>&5 11574 ac_status=$? 11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11576 (exit $ac_status); }; }; then 11577 eval "$as_ac_var=yes" 11578 else 11579 echo "$as_me: failed program was:" >&5 11580 sed 's/^/| /' conftest.$ac_ext >&5 11581 11582 eval "$as_ac_var=no" 11583 fi 11584 11585 rm -f core conftest.err conftest.$ac_objext \ 11586 conftest$ac_exeext conftest.$ac_ext 11587 fi 11588 ac_res=`eval echo '${'$as_ac_var'}'` 11589 { echo "$as_me:$LINENO: result: $ac_res" >&5 11590 echo "${ECHO_T}$ac_res" >&6; } 11591 if test `eval echo '${'$as_ac_var'}'` = yes; then 11592 cat >>confdefs.h <<_ACEOF 11593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11594 _ACEOF 11595 11596 fi 11597 done 11598 11599 11600 11601 { echo "$as_me:$LINENO: checking tool compatibility" >&5 11602 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 11603 11604 ICC=no 11605 IXX=no 11606 case $CC in 11607 icc*|icpc*) 11608 ICC=yes 11609 IXX=yes 11610 ;; 11611 *) 11612 ;; 11613 esac 11614 11615 if test "$GCC" != "yes" && test "$ICC" != "yes" 11616 then 11617 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 11618 echo "$as_me: error: gcc|icc required but not found" >&2;} 11619 { (exit 1); exit 1; }; } 11620 fi 11621 11622 if test "$GXX" != "yes" && test "$IXX" != "yes" 11623 then 11624 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 11625 echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 11626 { (exit 1); exit 1; }; } 11627 fi 11628 11629 if test "$GCC" = "yes" 11630 then 11631 cat >conftest.$ac_ext <<_ACEOF 11632 11633 /* confdefs.h. */ 11634 _ACEOF 11635 cat confdefs.h >>conftest.$ac_ext 11636 cat >>conftest.$ac_ext <<_ACEOF 11637 /* end confdefs.h. */ 11638 11639 #if !defined(__GNUC__) || __GNUC__ < 3 11640 #error Unsupported GCC version 11641 #endif 11642 11643 11644 _ACEOF 11645 rm -f conftest.$ac_objext 11646 if { (ac_try="$ac_compile" 11647 case "(($ac_try" in 11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11649 *) ac_try_echo=$ac_try;; 11650 esac 11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11652 (eval "$ac_compile") 2>conftest.er1 11653 ac_status=$? 11654 grep -v '^ *+' conftest.er1 >conftest.err 11655 rm -f conftest.er1 11656 cat conftest.err >&5 11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11658 (exit $ac_status); } && 11659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11660 { (case "(($ac_try" in 11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11662 *) ac_try_echo=$ac_try;; 11663 esac 11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11665 (eval "$ac_try") 2>&5 11666 ac_status=$? 11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11668 (exit $ac_status); }; } && 11669 { ac_try='test -s conftest.$ac_objext' 11670 { (case "(($ac_try" in 11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11672 *) ac_try_echo=$ac_try;; 11673 esac 11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11675 (eval "$ac_try") 2>&5 11676 ac_status=$? 11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11678 (exit $ac_status); }; }; then 11679 : 11680 else 11681 echo "$as_me: failed program was:" >&5 11682 sed 's/^/| /' conftest.$ac_ext >&5 11683 11684 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 11685 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 11686 { (exit 1); exit 1; }; } 11687 fi 11688 11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11690 fi 11691 11692 if test -z "$llvm_cv_gnu_make_command" 11693 then 11694 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 11695 echo "$as_me: error: GNU Make required but not found" >&2;} 11696 { (exit 1); exit 1; }; } 11697 fi 11698 11699 { echo "$as_me:$LINENO: result: ok" >&5 11700 echo "${ECHO_T}ok" >&6; } 11701 11702 { echo "$as_me:$LINENO: checking optional compiler flags" >&5 11703 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 11704 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 11705 11706 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 11707 11708 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 11709 11710 11711 NO_UNINITIALIZED= 11712 NO_MAYBE_UNINITIALIZED= 11713 if test "$GXX" = "yes" 11714 then 11715 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 11716 11717 if test -z "$NO_MAYBE_UNINITIALIZED" 11718 then 11719 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 11720 11721 fi 11722 fi 11723 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5 11724 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; } 11725 11726 11727 # Check whether --with-python was given. 11728 if test "${with_python+set}" = set; then 11729 withval=$with_python; PYTHON="$withval" 11730 fi 11731 11732 11733 if test -n "$PYTHON" && test -x "$PYTHON" ; then 11734 { echo "$as_me:$LINENO: checking for python" >&5 11735 echo $ECHO_N "checking for python... $ECHO_C" >&6; } 11736 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5 11737 echo "${ECHO_T}user defined: $with_python" >&6; } 11738 else 11739 if test -n "$PYTHON" ; then 11740 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5 11741 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;} 11742 fi 11743 11744 # Extract the first word of "python python2 python26", so it can be a program name with args. 11745 set dummy python python2 python26; ac_word=$2 11746 { echo "$as_me:$LINENO: checking for $ac_word" >&5 11747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11748 if test "${ac_cv_path_PYTHON+set}" = set; then 11749 echo $ECHO_N "(cached) $ECHO_C" >&6 11750 else 11751 case $PYTHON in 11752 [\\/]* | ?:[\\/]*) 11753 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 11754 ;; 11755 *) 11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11757 for as_dir in $PATH 11758 do 11759 IFS=$as_save_IFS 11760 test -z "$as_dir" && as_dir=. 11761 for ac_exec_ext in '' $ac_executable_extensions; do 11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 11763 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 11764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11765 break 2 11766 fi 11767 done 11768 done 11769 IFS=$as_save_IFS 11770 11771 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5 11772 echo "${ECHO_T}not found" >&6; } 11773 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5 11774 echo "$as_me: error: could not find python 2.5 or higher" >&2;} 11775 { (exit 1); exit 1; }; }" 11776 ;; 11777 esac 11778 fi 11779 PYTHON=$ac_cv_path_PYTHON 11780 if test -n "$PYTHON"; then 11781 { echo "$as_me:$LINENO: result: $PYTHON" >&5 11782 echo "${ECHO_T}$PYTHON" >&6; } 11783 else 11784 { echo "$as_me:$LINENO: result: no" >&5 11785 echo "${ECHO_T}no" >&6; } 11786 fi 11787 11788 11789 fi 11790 11791 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5 11792 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; } 11793 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'` 11794 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1` 11795 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2` 11796 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3` 11797 if test "$ac_python_version_major" -eq "2" \ 11798 && test "$ac_python_version_minor" -ge "5" ; then 11799 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5 11800 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; } 11801 else 11802 { echo "$as_me:$LINENO: result: not found" >&5 11803 echo "${ECHO_T}not found" >&6; } 11804 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5 11805 See \`config.log' for more details." >&5 11806 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5 11807 See \`config.log' for more details." >&2;} 11808 { (exit 1); exit 1; }; } 11809 fi 11810 11811 11812 11813 { echo "$as_me:$LINENO: checking for sin in -lm" >&5 11814 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 11815 if test "${ac_cv_lib_m_sin+set}" = set; then 11816 echo $ECHO_N "(cached) $ECHO_C" >&6 11817 else 11818 ac_check_lib_save_LIBS=$LIBS 11819 LIBS="-lm $LIBS" 11820 cat >conftest.$ac_ext <<_ACEOF 11821 /* confdefs.h. */ 11822 _ACEOF 11823 cat confdefs.h >>conftest.$ac_ext 11824 cat >>conftest.$ac_ext <<_ACEOF 11825 /* end confdefs.h. */ 11826 11827 /* Override any GCC internal prototype to avoid an error. 11828 Use char because int might match the return type of a GCC 11829 builtin and then its argument prototype would still apply. */ 11830 #ifdef __cplusplus 11831 extern "C" 11832 #endif 11833 char sin (); 11834 int 11835 main () 11836 { 11837 return sin (); 11838 ; 11839 return 0; 11840 } 11841 _ACEOF 11842 rm -f conftest.$ac_objext conftest$ac_exeext 11843 if { (ac_try="$ac_link" 11844 case "(($ac_try" in 11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11846 *) ac_try_echo=$ac_try;; 11847 esac 11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11849 (eval "$ac_link") 2>conftest.er1 11850 ac_status=$? 11851 grep -v '^ *+' conftest.er1 >conftest.err 11852 rm -f conftest.er1 11853 cat conftest.err >&5 11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11855 (exit $ac_status); } && 11856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11857 { (case "(($ac_try" in 11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11859 *) ac_try_echo=$ac_try;; 11860 esac 11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11862 (eval "$ac_try") 2>&5 11863 ac_status=$? 11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11865 (exit $ac_status); }; } && 11866 { ac_try='test -s conftest$ac_exeext' 11867 { (case "(($ac_try" in 11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11869 *) ac_try_echo=$ac_try;; 11870 esac 11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11872 (eval "$ac_try") 2>&5 11873 ac_status=$? 11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11875 (exit $ac_status); }; }; then 11876 ac_cv_lib_m_sin=yes 11877 else 11878 echo "$as_me: failed program was:" >&5 11879 sed 's/^/| /' conftest.$ac_ext >&5 11880 11881 ac_cv_lib_m_sin=no 11882 fi 11883 11884 rm -f core conftest.err conftest.$ac_objext \ 11885 conftest$ac_exeext conftest.$ac_ext 11886 LIBS=$ac_check_lib_save_LIBS 11887 fi 11888 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 11889 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 11890 if test $ac_cv_lib_m_sin = yes; then 11891 cat >>confdefs.h <<_ACEOF 11892 #define HAVE_LIBM 1 11893 _ACEOF 11894 11895 LIBS="-lm $LIBS" 11896 11897 fi 11898 11899 if test "$llvm_cv_os_type" = "MingW" ; then 11900 11901 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 11902 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 11903 if test "${ac_cv_lib_imagehlp_main+set}" = set; then 11904 echo $ECHO_N "(cached) $ECHO_C" >&6 11905 else 11906 ac_check_lib_save_LIBS=$LIBS 11907 LIBS="-limagehlp $LIBS" 11908 cat >conftest.$ac_ext <<_ACEOF 11909 /* confdefs.h. */ 11910 _ACEOF 11911 cat confdefs.h >>conftest.$ac_ext 11912 cat >>conftest.$ac_ext <<_ACEOF 11913 /* end confdefs.h. */ 11914 11915 11916 int 11917 main () 11918 { 11919 return main (); 11920 ; 11921 return 0; 11922 } 11923 _ACEOF 11924 rm -f conftest.$ac_objext conftest$ac_exeext 11925 if { (ac_try="$ac_link" 11926 case "(($ac_try" in 11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11928 *) ac_try_echo=$ac_try;; 11929 esac 11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11931 (eval "$ac_link") 2>conftest.er1 11932 ac_status=$? 11933 grep -v '^ *+' conftest.er1 >conftest.err 11934 rm -f conftest.er1 11935 cat conftest.err >&5 11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11937 (exit $ac_status); } && 11938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11939 { (case "(($ac_try" in 11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11941 *) ac_try_echo=$ac_try;; 11942 esac 11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11944 (eval "$ac_try") 2>&5 11945 ac_status=$? 11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11947 (exit $ac_status); }; } && 11948 { ac_try='test -s conftest$ac_exeext' 11949 { (case "(($ac_try" in 11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11951 *) ac_try_echo=$ac_try;; 11952 esac 11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11954 (eval "$ac_try") 2>&5 11955 ac_status=$? 11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11957 (exit $ac_status); }; }; then 11958 ac_cv_lib_imagehlp_main=yes 11959 else 11960 echo "$as_me: failed program was:" >&5 11961 sed 's/^/| /' conftest.$ac_ext >&5 11962 11963 ac_cv_lib_imagehlp_main=no 11964 fi 11965 11966 rm -f core conftest.err conftest.$ac_objext \ 11967 conftest$ac_exeext conftest.$ac_ext 11968 LIBS=$ac_check_lib_save_LIBS 11969 fi 11970 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 11971 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 11972 if test $ac_cv_lib_imagehlp_main = yes; then 11973 cat >>confdefs.h <<_ACEOF 11974 #define HAVE_LIBIMAGEHLP 1 11975 _ACEOF 11976 11977 LIBS="-limagehlp $LIBS" 11978 11979 fi 11980 11981 11982 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 11983 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 11984 if test "${ac_cv_lib_psapi_main+set}" = set; then 11985 echo $ECHO_N "(cached) $ECHO_C" >&6 11986 else 11987 ac_check_lib_save_LIBS=$LIBS 11988 LIBS="-lpsapi $LIBS" 11989 cat >conftest.$ac_ext <<_ACEOF 11990 /* confdefs.h. */ 11991 _ACEOF 11992 cat confdefs.h >>conftest.$ac_ext 11993 cat >>conftest.$ac_ext <<_ACEOF 11994 /* end confdefs.h. */ 11995 11996 11997 int 11998 main () 11999 { 12000 return main (); 12001 ; 12002 return 0; 12003 } 12004 _ACEOF 12005 rm -f conftest.$ac_objext conftest$ac_exeext 12006 if { (ac_try="$ac_link" 12007 case "(($ac_try" in 12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12009 *) ac_try_echo=$ac_try;; 12010 esac 12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12012 (eval "$ac_link") 2>conftest.er1 12013 ac_status=$? 12014 grep -v '^ *+' conftest.er1 >conftest.err 12015 rm -f conftest.er1 12016 cat conftest.err >&5 12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12018 (exit $ac_status); } && 12019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12020 { (case "(($ac_try" in 12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12022 *) ac_try_echo=$ac_try;; 12023 esac 12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12025 (eval "$ac_try") 2>&5 12026 ac_status=$? 12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12028 (exit $ac_status); }; } && 12029 { ac_try='test -s conftest$ac_exeext' 12030 { (case "(($ac_try" in 12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12032 *) ac_try_echo=$ac_try;; 12033 esac 12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12035 (eval "$ac_try") 2>&5 12036 ac_status=$? 12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12038 (exit $ac_status); }; }; then 12039 ac_cv_lib_psapi_main=yes 12040 else 12041 echo "$as_me: failed program was:" >&5 12042 sed 's/^/| /' conftest.$ac_ext >&5 12043 12044 ac_cv_lib_psapi_main=no 12045 fi 12046 12047 rm -f core conftest.err conftest.$ac_objext \ 12048 conftest$ac_exeext conftest.$ac_ext 12049 LIBS=$ac_check_lib_save_LIBS 12050 fi 12051 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12052 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12053 if test $ac_cv_lib_psapi_main = yes; then 12054 cat >>confdefs.h <<_ACEOF 12055 #define HAVE_LIBPSAPI 1 12056 _ACEOF 12057 12058 LIBS="-lpsapi $LIBS" 12059 12060 fi 12061 12062 fi 12063 12064 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12065 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12066 if test "${ac_cv_search_dlopen+set}" = set; then 12067 echo $ECHO_N "(cached) $ECHO_C" >&6 12068 else 12069 ac_func_search_save_LIBS=$LIBS 12070 cat >conftest.$ac_ext <<_ACEOF 12071 /* confdefs.h. */ 12072 _ACEOF 12073 cat confdefs.h >>conftest.$ac_ext 12074 cat >>conftest.$ac_ext <<_ACEOF 12075 /* end confdefs.h. */ 12076 12077 /* Override any GCC internal prototype to avoid an error. 12078 Use char because int might match the return type of a GCC 12079 builtin and then its argument prototype would still apply. */ 12080 #ifdef __cplusplus 12081 extern "C" 12082 #endif 12083 char dlopen (); 12084 int 12085 main () 12086 { 12087 return dlopen (); 12088 ; 12089 return 0; 12090 } 12091 _ACEOF 12092 for ac_lib in '' dl; do 12093 if test -z "$ac_lib"; then 12094 ac_res="none required" 12095 else 12096 ac_res=-l$ac_lib 12097 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12098 fi 12099 rm -f conftest.$ac_objext conftest$ac_exeext 12100 if { (ac_try="$ac_link" 12101 case "(($ac_try" in 12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12103 *) ac_try_echo=$ac_try;; 12104 esac 12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12106 (eval "$ac_link") 2>conftest.er1 12107 ac_status=$? 12108 grep -v '^ *+' conftest.er1 >conftest.err 12109 rm -f conftest.er1 12110 cat conftest.err >&5 12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12112 (exit $ac_status); } && 12113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12114 { (case "(($ac_try" in 12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12116 *) ac_try_echo=$ac_try;; 12117 esac 12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12119 (eval "$ac_try") 2>&5 12120 ac_status=$? 12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12122 (exit $ac_status); }; } && 12123 { ac_try='test -s conftest$ac_exeext' 12124 { (case "(($ac_try" in 12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12126 *) ac_try_echo=$ac_try;; 12127 esac 12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12129 (eval "$ac_try") 2>&5 12130 ac_status=$? 12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12132 (exit $ac_status); }; }; then 12133 ac_cv_search_dlopen=$ac_res 12134 else 12135 echo "$as_me: failed program was:" >&5 12136 sed 's/^/| /' conftest.$ac_ext >&5 12137 12138 12139 fi 12140 12141 rm -f core conftest.err conftest.$ac_objext \ 12142 conftest$ac_exeext 12143 if test "${ac_cv_search_dlopen+set}" = set; then 12144 break 12145 fi 12146 done 12147 if test "${ac_cv_search_dlopen+set}" = set; then 12148 : 12149 else 12150 ac_cv_search_dlopen=no 12151 fi 12152 rm conftest.$ac_ext 12153 LIBS=$ac_func_search_save_LIBS 12154 fi 12155 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12156 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12157 ac_res=$ac_cv_search_dlopen 12158 if test "$ac_res" != no; then 12159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12160 12161 cat >>confdefs.h <<\_ACEOF 12162 #define HAVE_DLOPEN 1 12163 _ACEOF 12164 12165 else 12166 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12167 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12168 fi 12169 12170 12171 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 12172 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } 12173 if test "${ac_cv_search_clock_gettime+set}" = set; then 12174 echo $ECHO_N "(cached) $ECHO_C" >&6 12175 else 12176 ac_func_search_save_LIBS=$LIBS 12177 cat >conftest.$ac_ext <<_ACEOF 12178 /* confdefs.h. */ 12179 _ACEOF 12180 cat confdefs.h >>conftest.$ac_ext 12181 cat >>conftest.$ac_ext <<_ACEOF 12182 /* end confdefs.h. */ 12183 12184 /* Override any GCC internal prototype to avoid an error. 12185 Use char because int might match the return type of a GCC 12186 builtin and then its argument prototype would still apply. */ 12187 #ifdef __cplusplus 12188 extern "C" 12189 #endif 12190 char clock_gettime (); 12191 int 12192 main () 12193 { 12194 return clock_gettime (); 12195 ; 12196 return 0; 12197 } 12198 _ACEOF 12199 for ac_lib in '' rt; do 12200 if test -z "$ac_lib"; then 12201 ac_res="none required" 12202 else 12203 ac_res=-l$ac_lib 12204 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12205 fi 12206 rm -f conftest.$ac_objext conftest$ac_exeext 12207 if { (ac_try="$ac_link" 12208 case "(($ac_try" in 12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12210 *) ac_try_echo=$ac_try;; 12211 esac 12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12213 (eval "$ac_link") 2>conftest.er1 12214 ac_status=$? 12215 grep -v '^ *+' conftest.er1 >conftest.err 12216 rm -f conftest.er1 12217 cat conftest.err >&5 12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12219 (exit $ac_status); } && 12220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12221 { (case "(($ac_try" in 12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12223 *) ac_try_echo=$ac_try;; 12224 esac 12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12226 (eval "$ac_try") 2>&5 12227 ac_status=$? 12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12229 (exit $ac_status); }; } && 12230 { ac_try='test -s conftest$ac_exeext' 12231 { (case "(($ac_try" in 12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12233 *) ac_try_echo=$ac_try;; 12234 esac 12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12236 (eval "$ac_try") 2>&5 12237 ac_status=$? 12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12239 (exit $ac_status); }; }; then 12240 ac_cv_search_clock_gettime=$ac_res 12241 else 12242 echo "$as_me: failed program was:" >&5 12243 sed 's/^/| /' conftest.$ac_ext >&5 12244 12245 12246 fi 12247 12248 rm -f core conftest.err conftest.$ac_objext \ 12249 conftest$ac_exeext 12250 if test "${ac_cv_search_clock_gettime+set}" = set; then 12251 break 12252 fi 12253 done 12254 if test "${ac_cv_search_clock_gettime+set}" = set; then 12255 : 12256 else 12257 ac_cv_search_clock_gettime=no 12258 fi 12259 rm conftest.$ac_ext 12260 LIBS=$ac_func_search_save_LIBS 12261 fi 12262 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 12263 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } 12264 ac_res=$ac_cv_search_clock_gettime 12265 if test "$ac_res" != no; then 12266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12267 12268 fi 12269 12270 12271 if test "$llvm_cv_enable_curses" = "yes" ; then 12272 { echo "$as_me:$LINENO: checking for library containing has_colors" >&5 12273 echo $ECHO_N "checking for library containing has_colors... $ECHO_C" >&6; } 12274 if test "${ac_cv_search_has_colors+set}" = set; then 12275 echo $ECHO_N "(cached) $ECHO_C" >&6 12276 else 12277 ac_func_search_save_LIBS=$LIBS 12278 cat >conftest.$ac_ext <<_ACEOF 12279 /* confdefs.h. */ 12280 _ACEOF 12281 cat confdefs.h >>conftest.$ac_ext 12282 cat >>conftest.$ac_ext <<_ACEOF 12283 /* end confdefs.h. */ 12284 12285 /* Override any GCC internal prototype to avoid an error. 12286 Use char because int might match the return type of a GCC 12287 builtin and then its argument prototype would still apply. */ 12288 #ifdef __cplusplus 12289 extern "C" 12290 #endif 12291 char has_colors (); 12292 int 12293 main () 12294 { 12295 return has_colors (); 12296 ; 12297 return 0; 12298 } 12299 _ACEOF 12300 for ac_lib in '' curses ncurses ncursesw; do 12301 if test -z "$ac_lib"; then 12302 ac_res="none required" 12303 else 12304 ac_res=-l$ac_lib 12305 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12306 fi 12307 rm -f conftest.$ac_objext conftest$ac_exeext 12308 if { (ac_try="$ac_link" 12309 case "(($ac_try" in 12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12311 *) ac_try_echo=$ac_try;; 12312 esac 12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12314 (eval "$ac_link") 2>conftest.er1 12315 ac_status=$? 12316 grep -v '^ *+' conftest.er1 >conftest.err 12317 rm -f conftest.er1 12318 cat conftest.err >&5 12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12320 (exit $ac_status); } && 12321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12322 { (case "(($ac_try" in 12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12324 *) ac_try_echo=$ac_try;; 12325 esac 12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12327 (eval "$ac_try") 2>&5 12328 ac_status=$? 12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12330 (exit $ac_status); }; } && 12331 { ac_try='test -s conftest$ac_exeext' 12332 { (case "(($ac_try" in 12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12334 *) ac_try_echo=$ac_try;; 12335 esac 12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12337 (eval "$ac_try") 2>&5 12338 ac_status=$? 12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12340 (exit $ac_status); }; }; then 12341 ac_cv_search_has_colors=$ac_res 12342 else 12343 echo "$as_me: failed program was:" >&5 12344 sed 's/^/| /' conftest.$ac_ext >&5 12345 12346 12347 fi 12348 12349 rm -f core conftest.err conftest.$ac_objext \ 12350 conftest$ac_exeext 12351 if test "${ac_cv_search_has_colors+set}" = set; then 12352 break 12353 fi 12354 done 12355 if test "${ac_cv_search_has_colors+set}" = set; then 12356 : 12357 else 12358 ac_cv_search_has_colors=no 12359 fi 12360 rm conftest.$ac_ext 12361 LIBS=$ac_func_search_save_LIBS 12362 fi 12363 { echo "$as_me:$LINENO: result: $ac_cv_search_has_colors" >&5 12364 echo "${ECHO_T}$ac_cv_search_has_colors" >&6; } 12365 ac_res=$ac_cv_search_has_colors 12366 if test "$ac_res" != no; then 12367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12368 12369 cat >>confdefs.h <<\_ACEOF 12370 #define HAVE_CURSES 1 12371 _ACEOF 12372 12373 fi 12374 12375 fi 12376 12377 if test "$llvm_cv_enable_libffi" = "yes" ; then 12378 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12379 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12380 if test "${ac_cv_search_ffi_call+set}" = set; then 12381 echo $ECHO_N "(cached) $ECHO_C" >&6 12382 else 12383 ac_func_search_save_LIBS=$LIBS 12384 cat >conftest.$ac_ext <<_ACEOF 12385 /* confdefs.h. */ 12386 _ACEOF 12387 cat confdefs.h >>conftest.$ac_ext 12388 cat >>conftest.$ac_ext <<_ACEOF 12389 /* end confdefs.h. */ 12390 12391 /* Override any GCC internal prototype to avoid an error. 12392 Use char because int might match the return type of a GCC 12393 builtin and then its argument prototype would still apply. */ 12394 #ifdef __cplusplus 12395 extern "C" 12396 #endif 12397 char ffi_call (); 12398 int 12399 main () 12400 { 12401 return ffi_call (); 12402 ; 12403 return 0; 12404 } 12405 _ACEOF 12406 for ac_lib in '' ffi; do 12407 if test -z "$ac_lib"; then 12408 ac_res="none required" 12409 else 12410 ac_res=-l$ac_lib 12411 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12412 fi 12413 rm -f conftest.$ac_objext conftest$ac_exeext 12414 if { (ac_try="$ac_link" 12415 case "(($ac_try" in 12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12417 *) ac_try_echo=$ac_try;; 12418 esac 12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12420 (eval "$ac_link") 2>conftest.er1 12421 ac_status=$? 12422 grep -v '^ *+' conftest.er1 >conftest.err 12423 rm -f conftest.er1 12424 cat conftest.err >&5 12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12426 (exit $ac_status); } && 12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12428 { (case "(($ac_try" in 12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12430 *) ac_try_echo=$ac_try;; 12431 esac 12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12433 (eval "$ac_try") 2>&5 12434 ac_status=$? 12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12436 (exit $ac_status); }; } && 12437 { ac_try='test -s conftest$ac_exeext' 12438 { (case "(($ac_try" in 12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12440 *) ac_try_echo=$ac_try;; 12441 esac 12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12443 (eval "$ac_try") 2>&5 12444 ac_status=$? 12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12446 (exit $ac_status); }; }; then 12447 ac_cv_search_ffi_call=$ac_res 12448 else 12449 echo "$as_me: failed program was:" >&5 12450 sed 's/^/| /' conftest.$ac_ext >&5 12451 12452 12453 fi 12454 12455 rm -f core conftest.err conftest.$ac_objext \ 12456 conftest$ac_exeext 12457 if test "${ac_cv_search_ffi_call+set}" = set; then 12458 break 12459 fi 12460 done 12461 if test "${ac_cv_search_ffi_call+set}" = set; then 12462 : 12463 else 12464 ac_cv_search_ffi_call=no 12465 fi 12466 rm conftest.$ac_ext 12467 LIBS=$ac_func_search_save_LIBS 12468 fi 12469 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12470 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12471 ac_res=$ac_cv_search_ffi_call 12472 if test "$ac_res" != no; then 12473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12474 12475 cat >>confdefs.h <<\_ACEOF 12476 #define HAVE_FFI_CALL 1 12477 _ACEOF 12478 12479 else 12480 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12481 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12482 { (exit 1); exit 1; }; } 12483 fi 12484 12485 fi 12486 12487 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12488 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12489 if test "${ac_cv_search_mallinfo+set}" = set; then 12490 echo $ECHO_N "(cached) $ECHO_C" >&6 12491 else 12492 ac_func_search_save_LIBS=$LIBS 12493 cat >conftest.$ac_ext <<_ACEOF 12494 /* confdefs.h. */ 12495 _ACEOF 12496 cat confdefs.h >>conftest.$ac_ext 12497 cat >>conftest.$ac_ext <<_ACEOF 12498 /* end confdefs.h. */ 12499 12500 /* Override any GCC internal prototype to avoid an error. 12501 Use char because int might match the return type of a GCC 12502 builtin and then its argument prototype would still apply. */ 12503 #ifdef __cplusplus 12504 extern "C" 12505 #endif 12506 char mallinfo (); 12507 int 12508 main () 12509 { 12510 return mallinfo (); 12511 ; 12512 return 0; 12513 } 12514 _ACEOF 12515 for ac_lib in '' malloc; do 12516 if test -z "$ac_lib"; then 12517 ac_res="none required" 12518 else 12519 ac_res=-l$ac_lib 12520 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12521 fi 12522 rm -f conftest.$ac_objext conftest$ac_exeext 12523 if { (ac_try="$ac_link" 12524 case "(($ac_try" in 12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12526 *) ac_try_echo=$ac_try;; 12527 esac 12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12529 (eval "$ac_link") 2>conftest.er1 12530 ac_status=$? 12531 grep -v '^ *+' conftest.er1 >conftest.err 12532 rm -f conftest.er1 12533 cat conftest.err >&5 12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12535 (exit $ac_status); } && 12536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12537 { (case "(($ac_try" in 12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12539 *) ac_try_echo=$ac_try;; 12540 esac 12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12542 (eval "$ac_try") 2>&5 12543 ac_status=$? 12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12545 (exit $ac_status); }; } && 12546 { ac_try='test -s conftest$ac_exeext' 12547 { (case "(($ac_try" in 12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12549 *) ac_try_echo=$ac_try;; 12550 esac 12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12552 (eval "$ac_try") 2>&5 12553 ac_status=$? 12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12555 (exit $ac_status); }; }; then 12556 ac_cv_search_mallinfo=$ac_res 12557 else 12558 echo "$as_me: failed program was:" >&5 12559 sed 's/^/| /' conftest.$ac_ext >&5 12560 12561 12562 fi 12563 12564 rm -f core conftest.err conftest.$ac_objext \ 12565 conftest$ac_exeext 12566 if test "${ac_cv_search_mallinfo+set}" = set; then 12567 break 12568 fi 12569 done 12570 if test "${ac_cv_search_mallinfo+set}" = set; then 12571 : 12572 else 12573 ac_cv_search_mallinfo=no 12574 fi 12575 rm conftest.$ac_ext 12576 LIBS=$ac_func_search_save_LIBS 12577 fi 12578 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 12579 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 12580 ac_res=$ac_cv_search_mallinfo 12581 if test "$ac_res" != no; then 12582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12583 12584 cat >>confdefs.h <<\_ACEOF 12585 #define HAVE_MALLINFO 1 12586 _ACEOF 12587 12588 fi 12589 12590 12591 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12592 12593 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 12594 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 12595 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 12596 echo $ECHO_N "(cached) $ECHO_C" >&6 12597 else 12598 ac_check_lib_save_LIBS=$LIBS 12599 LIBS="-lpthread $LIBS" 12600 cat >conftest.$ac_ext <<_ACEOF 12601 /* confdefs.h. */ 12602 _ACEOF 12603 cat confdefs.h >>conftest.$ac_ext 12604 cat >>conftest.$ac_ext <<_ACEOF 12605 /* end confdefs.h. */ 12606 12607 /* Override any GCC internal prototype to avoid an error. 12608 Use char because int might match the return type of a GCC 12609 builtin and then its argument prototype would still apply. */ 12610 #ifdef __cplusplus 12611 extern "C" 12612 #endif 12613 char pthread_mutex_init (); 12614 int 12615 main () 12616 { 12617 return pthread_mutex_init (); 12618 ; 12619 return 0; 12620 } 12621 _ACEOF 12622 rm -f conftest.$ac_objext conftest$ac_exeext 12623 if { (ac_try="$ac_link" 12624 case "(($ac_try" in 12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12626 *) ac_try_echo=$ac_try;; 12627 esac 12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12629 (eval "$ac_link") 2>conftest.er1 12630 ac_status=$? 12631 grep -v '^ *+' conftest.er1 >conftest.err 12632 rm -f conftest.er1 12633 cat conftest.err >&5 12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12635 (exit $ac_status); } && 12636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12637 { (case "(($ac_try" in 12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12639 *) ac_try_echo=$ac_try;; 12640 esac 12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12642 (eval "$ac_try") 2>&5 12643 ac_status=$? 12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12645 (exit $ac_status); }; } && 12646 { ac_try='test -s conftest$ac_exeext' 12647 { (case "(($ac_try" in 12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12649 *) ac_try_echo=$ac_try;; 12650 esac 12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12652 (eval "$ac_try") 2>&5 12653 ac_status=$? 12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12655 (exit $ac_status); }; }; then 12656 ac_cv_lib_pthread_pthread_mutex_init=yes 12657 else 12658 echo "$as_me: failed program was:" >&5 12659 sed 's/^/| /' conftest.$ac_ext >&5 12660 12661 ac_cv_lib_pthread_pthread_mutex_init=no 12662 fi 12663 12664 rm -f core conftest.err conftest.$ac_objext \ 12665 conftest$ac_exeext conftest.$ac_ext 12666 LIBS=$ac_check_lib_save_LIBS 12667 fi 12668 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 12669 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 12670 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 12671 cat >>confdefs.h <<_ACEOF 12672 #define HAVE_LIBPTHREAD 1 12673 _ACEOF 12674 12675 LIBS="-lpthread $LIBS" 12676 12677 fi 12678 12679 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 12680 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 12681 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12682 echo $ECHO_N "(cached) $ECHO_C" >&6 12683 else 12684 ac_func_search_save_LIBS=$LIBS 12685 cat >conftest.$ac_ext <<_ACEOF 12686 /* confdefs.h. */ 12687 _ACEOF 12688 cat confdefs.h >>conftest.$ac_ext 12689 cat >>conftest.$ac_ext <<_ACEOF 12690 /* end confdefs.h. */ 12691 12692 /* Override any GCC internal prototype to avoid an error. 12693 Use char because int might match the return type of a GCC 12694 builtin and then its argument prototype would still apply. */ 12695 #ifdef __cplusplus 12696 extern "C" 12697 #endif 12698 char pthread_mutex_lock (); 12699 int 12700 main () 12701 { 12702 return pthread_mutex_lock (); 12703 ; 12704 return 0; 12705 } 12706 _ACEOF 12707 for ac_lib in '' pthread; do 12708 if test -z "$ac_lib"; then 12709 ac_res="none required" 12710 else 12711 ac_res=-l$ac_lib 12712 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12713 fi 12714 rm -f conftest.$ac_objext conftest$ac_exeext 12715 if { (ac_try="$ac_link" 12716 case "(($ac_try" in 12717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12718 *) ac_try_echo=$ac_try;; 12719 esac 12720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12721 (eval "$ac_link") 2>conftest.er1 12722 ac_status=$? 12723 grep -v '^ *+' conftest.er1 >conftest.err 12724 rm -f conftest.er1 12725 cat conftest.err >&5 12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12727 (exit $ac_status); } && 12728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12729 { (case "(($ac_try" in 12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12731 *) ac_try_echo=$ac_try;; 12732 esac 12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12734 (eval "$ac_try") 2>&5 12735 ac_status=$? 12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12737 (exit $ac_status); }; } && 12738 { ac_try='test -s conftest$ac_exeext' 12739 { (case "(($ac_try" in 12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12741 *) ac_try_echo=$ac_try;; 12742 esac 12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12744 (eval "$ac_try") 2>&5 12745 ac_status=$? 12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12747 (exit $ac_status); }; }; then 12748 ac_cv_search_pthread_mutex_lock=$ac_res 12749 else 12750 echo "$as_me: failed program was:" >&5 12751 sed 's/^/| /' conftest.$ac_ext >&5 12752 12753 12754 fi 12755 12756 rm -f core conftest.err conftest.$ac_objext \ 12757 conftest$ac_exeext 12758 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12759 break 12760 fi 12761 done 12762 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12763 : 12764 else 12765 ac_cv_search_pthread_mutex_lock=no 12766 fi 12767 rm conftest.$ac_ext 12768 LIBS=$ac_func_search_save_LIBS 12769 fi 12770 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 12771 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 12772 ac_res=$ac_cv_search_pthread_mutex_lock 12773 if test "$ac_res" != no; then 12774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12775 12776 cat >>confdefs.h <<\_ACEOF 12777 #define HAVE_PTHREAD_MUTEX_LOCK 1 12778 _ACEOF 12779 12780 fi 12781 12782 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 12783 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 12784 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12785 echo $ECHO_N "(cached) $ECHO_C" >&6 12786 else 12787 ac_func_search_save_LIBS=$LIBS 12788 cat >conftest.$ac_ext <<_ACEOF 12789 /* confdefs.h. */ 12790 _ACEOF 12791 cat confdefs.h >>conftest.$ac_ext 12792 cat >>conftest.$ac_ext <<_ACEOF 12793 /* end confdefs.h. */ 12794 12795 /* Override any GCC internal prototype to avoid an error. 12796 Use char because int might match the return type of a GCC 12797 builtin and then its argument prototype would still apply. */ 12798 #ifdef __cplusplus 12799 extern "C" 12800 #endif 12801 char pthread_rwlock_init (); 12802 int 12803 main () 12804 { 12805 return pthread_rwlock_init (); 12806 ; 12807 return 0; 12808 } 12809 _ACEOF 12810 for ac_lib in '' pthread; do 12811 if test -z "$ac_lib"; then 12812 ac_res="none required" 12813 else 12814 ac_res=-l$ac_lib 12815 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12816 fi 12817 rm -f conftest.$ac_objext conftest$ac_exeext 12818 if { (ac_try="$ac_link" 12819 case "(($ac_try" in 12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12821 *) ac_try_echo=$ac_try;; 12822 esac 12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12824 (eval "$ac_link") 2>conftest.er1 12825 ac_status=$? 12826 grep -v '^ *+' conftest.er1 >conftest.err 12827 rm -f conftest.er1 12828 cat conftest.err >&5 12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12830 (exit $ac_status); } && 12831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12832 { (case "(($ac_try" in 12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12834 *) ac_try_echo=$ac_try;; 12835 esac 12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12837 (eval "$ac_try") 2>&5 12838 ac_status=$? 12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12840 (exit $ac_status); }; } && 12841 { ac_try='test -s conftest$ac_exeext' 12842 { (case "(($ac_try" in 12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12844 *) ac_try_echo=$ac_try;; 12845 esac 12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12847 (eval "$ac_try") 2>&5 12848 ac_status=$? 12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12850 (exit $ac_status); }; }; then 12851 ac_cv_search_pthread_rwlock_init=$ac_res 12852 else 12853 echo "$as_me: failed program was:" >&5 12854 sed 's/^/| /' conftest.$ac_ext >&5 12855 12856 12857 fi 12858 12859 rm -f core conftest.err conftest.$ac_objext \ 12860 conftest$ac_exeext 12861 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12862 break 12863 fi 12864 done 12865 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12866 : 12867 else 12868 ac_cv_search_pthread_rwlock_init=no 12869 fi 12870 rm conftest.$ac_ext 12871 LIBS=$ac_func_search_save_LIBS 12872 fi 12873 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 12874 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 12875 ac_res=$ac_cv_search_pthread_rwlock_init 12876 if test "$ac_res" != no; then 12877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12878 12879 cat >>confdefs.h <<\_ACEOF 12880 #define HAVE_PTHREAD_RWLOCK_INIT 1 12881 _ACEOF 12882 12883 fi 12884 12885 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 12886 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 12887 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12888 echo $ECHO_N "(cached) $ECHO_C" >&6 12889 else 12890 ac_func_search_save_LIBS=$LIBS 12891 cat >conftest.$ac_ext <<_ACEOF 12892 /* confdefs.h. */ 12893 _ACEOF 12894 cat confdefs.h >>conftest.$ac_ext 12895 cat >>conftest.$ac_ext <<_ACEOF 12896 /* end confdefs.h. */ 12897 12898 /* Override any GCC internal prototype to avoid an error. 12899 Use char because int might match the return type of a GCC 12900 builtin and then its argument prototype would still apply. */ 12901 #ifdef __cplusplus 12902 extern "C" 12903 #endif 12904 char pthread_getspecific (); 12905 int 12906 main () 12907 { 12908 return pthread_getspecific (); 12909 ; 12910 return 0; 12911 } 12912 _ACEOF 12913 for ac_lib in '' pthread; do 12914 if test -z "$ac_lib"; then 12915 ac_res="none required" 12916 else 12917 ac_res=-l$ac_lib 12918 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12919 fi 12920 rm -f conftest.$ac_objext conftest$ac_exeext 12921 if { (ac_try="$ac_link" 12922 case "(($ac_try" in 12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12924 *) ac_try_echo=$ac_try;; 12925 esac 12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12927 (eval "$ac_link") 2>conftest.er1 12928 ac_status=$? 12929 grep -v '^ *+' conftest.er1 >conftest.err 12930 rm -f conftest.er1 12931 cat conftest.err >&5 12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12933 (exit $ac_status); } && 12934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12935 { (case "(($ac_try" in 12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12937 *) ac_try_echo=$ac_try;; 12938 esac 12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12940 (eval "$ac_try") 2>&5 12941 ac_status=$? 12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12943 (exit $ac_status); }; } && 12944 { ac_try='test -s conftest$ac_exeext' 12945 { (case "(($ac_try" in 12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12947 *) ac_try_echo=$ac_try;; 12948 esac 12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12950 (eval "$ac_try") 2>&5 12951 ac_status=$? 12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12953 (exit $ac_status); }; }; then 12954 ac_cv_search_pthread_getspecific=$ac_res 12955 else 12956 echo "$as_me: failed program was:" >&5 12957 sed 's/^/| /' conftest.$ac_ext >&5 12958 12959 12960 fi 12961 12962 rm -f core conftest.err conftest.$ac_objext \ 12963 conftest$ac_exeext 12964 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12965 break 12966 fi 12967 done 12968 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12969 : 12970 else 12971 ac_cv_search_pthread_getspecific=no 12972 fi 12973 rm conftest.$ac_ext 12974 LIBS=$ac_func_search_save_LIBS 12975 fi 12976 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 12977 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 12978 ac_res=$ac_cv_search_pthread_getspecific 12979 if test "$ac_res" != no; then 12980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12981 12982 cat >>confdefs.h <<\_ACEOF 12983 #define HAVE_PTHREAD_GETSPECIFIC 1 12984 _ACEOF 12985 12986 fi 12987 12988 fi 12989 12990 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 12991 12992 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 12993 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } 12994 if test "${ac_cv_lib_z_compress2+set}" = set; then 12995 echo $ECHO_N "(cached) $ECHO_C" >&6 12996 else 12997 ac_check_lib_save_LIBS=$LIBS 12998 LIBS="-lz $LIBS" 12999 cat >conftest.$ac_ext <<_ACEOF 13000 /* confdefs.h. */ 13001 _ACEOF 13002 cat confdefs.h >>conftest.$ac_ext 13003 cat >>conftest.$ac_ext <<_ACEOF 13004 /* end confdefs.h. */ 13005 13006 /* Override any GCC internal prototype to avoid an error. 13007 Use char because int might match the return type of a GCC 13008 builtin and then its argument prototype would still apply. */ 13009 #ifdef __cplusplus 13010 extern "C" 13011 #endif 13012 char compress2 (); 13013 int 13014 main () 13015 { 13016 return compress2 (); 13017 ; 13018 return 0; 13019 } 13020 _ACEOF 13021 rm -f conftest.$ac_objext conftest$ac_exeext 13022 if { (ac_try="$ac_link" 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_link") 2>conftest.er1 13029 ac_status=$? 13030 grep -v '^ *+' conftest.er1 >conftest.err 13031 rm -f conftest.er1 13032 cat conftest.err >&5 13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13034 (exit $ac_status); } && 13035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13036 { (case "(($ac_try" in 13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13038 *) ac_try_echo=$ac_try;; 13039 esac 13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13041 (eval "$ac_try") 2>&5 13042 ac_status=$? 13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13044 (exit $ac_status); }; } && 13045 { ac_try='test -s conftest$ac_exeext' 13046 { (case "(($ac_try" in 13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13048 *) ac_try_echo=$ac_try;; 13049 esac 13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13051 (eval "$ac_try") 2>&5 13052 ac_status=$? 13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13054 (exit $ac_status); }; }; then 13055 ac_cv_lib_z_compress2=yes 13056 else 13057 echo "$as_me: failed program was:" >&5 13058 sed 's/^/| /' conftest.$ac_ext >&5 13059 13060 ac_cv_lib_z_compress2=no 13061 fi 13062 13063 rm -f core conftest.err conftest.$ac_objext \ 13064 conftest$ac_exeext conftest.$ac_ext 13065 LIBS=$ac_check_lib_save_LIBS 13066 fi 13067 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 13068 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; } 13069 if test $ac_cv_lib_z_compress2 = yes; then 13070 cat >>confdefs.h <<_ACEOF 13071 #define HAVE_LIBZ 1 13072 _ACEOF 13073 13074 LIBS="-lz $LIBS" 13075 13076 fi 13077 13078 fi 13079 13080 13081 # Check whether --with-udis86 was given. 13082 if test "${with_udis86+set}" = set; then 13083 withval=$with_udis86; 13084 USE_UDIS86=1 13085 13086 case "$withval" in 13087 /usr/lib|yes) ;; 13088 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13089 esac 13090 13091 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13092 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13093 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13094 echo $ECHO_N "(cached) $ECHO_C" >&6 13095 else 13096 ac_check_lib_save_LIBS=$LIBS 13097 LIBS="-ludis86 $LIBS" 13098 cat >conftest.$ac_ext <<_ACEOF 13099 /* confdefs.h. */ 13100 _ACEOF 13101 cat confdefs.h >>conftest.$ac_ext 13102 cat >>conftest.$ac_ext <<_ACEOF 13103 /* end confdefs.h. */ 13104 13105 /* Override any GCC internal prototype to avoid an error. 13106 Use char because int might match the return type of a GCC 13107 builtin and then its argument prototype would still apply. */ 13108 #ifdef __cplusplus 13109 extern "C" 13110 #endif 13111 char ud_init (); 13112 int 13113 main () 13114 { 13115 return ud_init (); 13116 ; 13117 return 0; 13118 } 13119 _ACEOF 13120 rm -f conftest.$ac_objext conftest$ac_exeext 13121 if { (ac_try="$ac_link" 13122 case "(($ac_try" in 13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13124 *) ac_try_echo=$ac_try;; 13125 esac 13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13127 (eval "$ac_link") 2>conftest.er1 13128 ac_status=$? 13129 grep -v '^ *+' conftest.er1 >conftest.err 13130 rm -f conftest.er1 13131 cat conftest.err >&5 13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13133 (exit $ac_status); } && 13134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13135 { (case "(($ac_try" in 13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13137 *) ac_try_echo=$ac_try;; 13138 esac 13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13140 (eval "$ac_try") 2>&5 13141 ac_status=$? 13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13143 (exit $ac_status); }; } && 13144 { ac_try='test -s conftest$ac_exeext' 13145 { (case "(($ac_try" in 13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13147 *) ac_try_echo=$ac_try;; 13148 esac 13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13150 (eval "$ac_try") 2>&5 13151 ac_status=$? 13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13153 (exit $ac_status); }; }; then 13154 ac_cv_lib_udis86_ud_init=yes 13155 else 13156 echo "$as_me: failed program was:" >&5 13157 sed 's/^/| /' conftest.$ac_ext >&5 13158 13159 ac_cv_lib_udis86_ud_init=no 13160 fi 13161 13162 rm -f core conftest.err conftest.$ac_objext \ 13163 conftest$ac_exeext conftest.$ac_ext 13164 LIBS=$ac_check_lib_save_LIBS 13165 fi 13166 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13167 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13168 if test $ac_cv_lib_udis86_ud_init = yes; then 13169 cat >>confdefs.h <<_ACEOF 13170 #define HAVE_LIBUDIS86 1 13171 _ACEOF 13172 13173 LIBS="-ludis86 $LIBS" 13174 13175 else 13176 13177 echo "Error! You need to have libudis86 around." 13178 exit -1 13179 13180 fi 13181 13182 13183 else 13184 USE_UDIS86=0 13185 13186 fi 13187 13188 13189 cat >>confdefs.h <<_ACEOF 13190 #define USE_UDIS86 $USE_UDIS86 13191 _ACEOF 13192 13193 13194 13195 # Check whether --with-oprofile was given. 13196 if test "${with_oprofile+set}" = set; then 13197 withval=$with_oprofile; 13198 USE_OPROFILE=1 13199 13200 case "$withval" in 13201 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13202 no) llvm_cv_oppath= 13203 USE_OPROFILE=0 13204 ;; 13205 *) llvm_cv_oppath="${withval}/lib/oprofile" 13206 CPPFLAGS="-I${withval}/include";; 13207 esac 13208 case $llvm_cv_os_type in 13209 Linux) 13210 if test -n "$llvm_cv_oppath" ; then 13211 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13212 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13213 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13214 if test "${ac_cv_search_bfd_init+set}" = set; then 13215 echo $ECHO_N "(cached) $ECHO_C" >&6 13216 else 13217 ac_func_search_save_LIBS=$LIBS 13218 cat >conftest.$ac_ext <<_ACEOF 13219 /* confdefs.h. */ 13220 _ACEOF 13221 cat confdefs.h >>conftest.$ac_ext 13222 cat >>conftest.$ac_ext <<_ACEOF 13223 /* end confdefs.h. */ 13224 13225 /* Override any GCC internal prototype to avoid an error. 13226 Use char because int might match the return type of a GCC 13227 builtin and then its argument prototype would still apply. */ 13228 #ifdef __cplusplus 13229 extern "C" 13230 #endif 13231 char bfd_init (); 13232 int 13233 main () 13234 { 13235 return bfd_init (); 13236 ; 13237 return 0; 13238 } 13239 _ACEOF 13240 for ac_lib in '' bfd; do 13241 if test -z "$ac_lib"; then 13242 ac_res="none required" 13243 else 13244 ac_res=-l$ac_lib 13245 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13246 fi 13247 rm -f conftest.$ac_objext conftest$ac_exeext 13248 if { (ac_try="$ac_link" 13249 case "(($ac_try" in 13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13251 *) ac_try_echo=$ac_try;; 13252 esac 13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13254 (eval "$ac_link") 2>conftest.er1 13255 ac_status=$? 13256 grep -v '^ *+' conftest.er1 >conftest.err 13257 rm -f conftest.er1 13258 cat conftest.err >&5 13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13260 (exit $ac_status); } && 13261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13262 { (case "(($ac_try" in 13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13264 *) ac_try_echo=$ac_try;; 13265 esac 13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13267 (eval "$ac_try") 2>&5 13268 ac_status=$? 13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13270 (exit $ac_status); }; } && 13271 { ac_try='test -s conftest$ac_exeext' 13272 { (case "(($ac_try" in 13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13274 *) ac_try_echo=$ac_try;; 13275 esac 13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13277 (eval "$ac_try") 2>&5 13278 ac_status=$? 13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13280 (exit $ac_status); }; }; then 13281 ac_cv_search_bfd_init=$ac_res 13282 else 13283 echo "$as_me: failed program was:" >&5 13284 sed 's/^/| /' conftest.$ac_ext >&5 13285 13286 13287 fi 13288 13289 rm -f core conftest.err conftest.$ac_objext \ 13290 conftest$ac_exeext 13291 if test "${ac_cv_search_bfd_init+set}" = set; then 13292 break 13293 fi 13294 done 13295 if test "${ac_cv_search_bfd_init+set}" = set; then 13296 : 13297 else 13298 ac_cv_search_bfd_init=no 13299 fi 13300 rm conftest.$ac_ext 13301 LIBS=$ac_func_search_save_LIBS 13302 fi 13303 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13304 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13305 ac_res=$ac_cv_search_bfd_init 13306 if test "$ac_res" != no; then 13307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13308 13309 fi 13310 13311 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13312 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13313 if test "${ac_cv_search_op_open_agent+set}" = set; then 13314 echo $ECHO_N "(cached) $ECHO_C" >&6 13315 else 13316 ac_func_search_save_LIBS=$LIBS 13317 cat >conftest.$ac_ext <<_ACEOF 13318 /* confdefs.h. */ 13319 _ACEOF 13320 cat confdefs.h >>conftest.$ac_ext 13321 cat >>conftest.$ac_ext <<_ACEOF 13322 /* end confdefs.h. */ 13323 13324 /* Override any GCC internal prototype to avoid an error. 13325 Use char because int might match the return type of a GCC 13326 builtin and then its argument prototype would still apply. */ 13327 #ifdef __cplusplus 13328 extern "C" 13329 #endif 13330 char op_open_agent (); 13331 int 13332 main () 13333 { 13334 return op_open_agent (); 13335 ; 13336 return 0; 13337 } 13338 _ACEOF 13339 for ac_lib in '' opagent; do 13340 if test -z "$ac_lib"; then 13341 ac_res="none required" 13342 else 13343 ac_res=-l$ac_lib 13344 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13345 fi 13346 rm -f conftest.$ac_objext conftest$ac_exeext 13347 if { (ac_try="$ac_link" 13348 case "(($ac_try" in 13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13350 *) ac_try_echo=$ac_try;; 13351 esac 13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13353 (eval "$ac_link") 2>conftest.er1 13354 ac_status=$? 13355 grep -v '^ *+' conftest.er1 >conftest.err 13356 rm -f conftest.er1 13357 cat conftest.err >&5 13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13359 (exit $ac_status); } && 13360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13361 { (case "(($ac_try" in 13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13363 *) ac_try_echo=$ac_try;; 13364 esac 13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13366 (eval "$ac_try") 2>&5 13367 ac_status=$? 13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13369 (exit $ac_status); }; } && 13370 { ac_try='test -s conftest$ac_exeext' 13371 { (case "(($ac_try" in 13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13373 *) ac_try_echo=$ac_try;; 13374 esac 13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13376 (eval "$ac_try") 2>&5 13377 ac_status=$? 13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13379 (exit $ac_status); }; }; then 13380 ac_cv_search_op_open_agent=$ac_res 13381 else 13382 echo "$as_me: failed program was:" >&5 13383 sed 's/^/| /' conftest.$ac_ext >&5 13384 13385 13386 fi 13387 13388 rm -f core conftest.err conftest.$ac_objext \ 13389 conftest$ac_exeext 13390 if test "${ac_cv_search_op_open_agent+set}" = set; then 13391 break 13392 fi 13393 done 13394 if test "${ac_cv_search_op_open_agent+set}" = set; then 13395 : 13396 else 13397 ac_cv_search_op_open_agent=no 13398 fi 13399 rm conftest.$ac_ext 13400 LIBS=$ac_func_search_save_LIBS 13401 fi 13402 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13403 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13404 ac_res=$ac_cv_search_op_open_agent 13405 if test "$ac_res" != no; then 13406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13407 13408 else 13409 13410 echo "Error! You need to have libopagent around." 13411 exit -1 13412 13413 fi 13414 13415 if test "${ac_cv_header_opagent_h+set}" = set; then 13416 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13417 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13418 if test "${ac_cv_header_opagent_h+set}" = set; then 13419 echo $ECHO_N "(cached) $ECHO_C" >&6 13420 fi 13421 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13422 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13423 else 13424 # Is the header compilable? 13425 { echo "$as_me:$LINENO: checking opagent.h usability" >&5 13426 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13427 cat >conftest.$ac_ext <<_ACEOF 13428 /* confdefs.h. */ 13429 _ACEOF 13430 cat confdefs.h >>conftest.$ac_ext 13431 cat >>conftest.$ac_ext <<_ACEOF 13432 /* end confdefs.h. */ 13433 $ac_includes_default 13434 #include <opagent.h> 13435 _ACEOF 13436 rm -f conftest.$ac_objext 13437 if { (ac_try="$ac_compile" 13438 case "(($ac_try" in 13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13440 *) ac_try_echo=$ac_try;; 13441 esac 13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13443 (eval "$ac_compile") 2>conftest.er1 13444 ac_status=$? 13445 grep -v '^ *+' conftest.er1 >conftest.err 13446 rm -f conftest.er1 13447 cat conftest.err >&5 13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13449 (exit $ac_status); } && 13450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13451 { (case "(($ac_try" in 13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13453 *) ac_try_echo=$ac_try;; 13454 esac 13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13456 (eval "$ac_try") 2>&5 13457 ac_status=$? 13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13459 (exit $ac_status); }; } && 13460 { ac_try='test -s conftest.$ac_objext' 13461 { (case "(($ac_try" in 13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13463 *) ac_try_echo=$ac_try;; 13464 esac 13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13466 (eval "$ac_try") 2>&5 13467 ac_status=$? 13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13469 (exit $ac_status); }; }; then 13470 ac_header_compiler=yes 13471 else 13472 echo "$as_me: failed program was:" >&5 13473 sed 's/^/| /' conftest.$ac_ext >&5 13474 13475 ac_header_compiler=no 13476 fi 13477 13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13480 echo "${ECHO_T}$ac_header_compiler" >&6; } 13481 13482 # Is the header present? 13483 { echo "$as_me:$LINENO: checking opagent.h presence" >&5 13484 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13485 cat >conftest.$ac_ext <<_ACEOF 13486 /* confdefs.h. */ 13487 _ACEOF 13488 cat confdefs.h >>conftest.$ac_ext 13489 cat >>conftest.$ac_ext <<_ACEOF 13490 /* end confdefs.h. */ 13491 #include <opagent.h> 13492 _ACEOF 13493 if { (ac_try="$ac_cpp conftest.$ac_ext" 13494 case "(($ac_try" in 13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13496 *) ac_try_echo=$ac_try;; 13497 esac 13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13500 ac_status=$? 13501 grep -v '^ *+' conftest.er1 >conftest.err 13502 rm -f conftest.er1 13503 cat conftest.err >&5 13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13505 (exit $ac_status); } >/dev/null; then 13506 if test -s conftest.err; then 13507 ac_cpp_err=$ac_c_preproc_warn_flag 13508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13509 else 13510 ac_cpp_err= 13511 fi 13512 else 13513 ac_cpp_err=yes 13514 fi 13515 if test -z "$ac_cpp_err"; then 13516 ac_header_preproc=yes 13517 else 13518 echo "$as_me: failed program was:" >&5 13519 sed 's/^/| /' conftest.$ac_ext >&5 13520 13521 ac_header_preproc=no 13522 fi 13523 13524 rm -f conftest.err conftest.$ac_ext 13525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13526 echo "${ECHO_T}$ac_header_preproc" >&6; } 13527 13528 # So? What about this header? 13529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13530 yes:no: ) 13531 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13532 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13533 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13534 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13535 ac_header_preproc=yes 13536 ;; 13537 no:yes:* ) 13538 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13539 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13540 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13541 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13542 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13543 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13544 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13545 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13546 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13547 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13548 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13549 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13550 ( cat <<\_ASBOX 13551 ## ------------------------------------ ## 13552 ## Report this to http://llvm.org/bugs/ ## 13553 ## ------------------------------------ ## 13554 _ASBOX 13555 ) | sed "s/^/$as_me: WARNING: /" >&2 13556 ;; 13557 esac 13558 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13559 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13560 if test "${ac_cv_header_opagent_h+set}" = set; then 13561 echo $ECHO_N "(cached) $ECHO_C" >&6 13562 else 13563 ac_cv_header_opagent_h=$ac_header_preproc 13564 fi 13565 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13566 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13567 13568 fi 13569 if test $ac_cv_header_opagent_h = yes; then 13570 : 13571 else 13572 13573 echo "Error! You need to have opagent.h around." 13574 exit -1 13575 13576 fi 13577 13578 13579 fi ;; 13580 *) 13581 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 13582 echo "$as_me: error: OProfile support is available on Linux only." >&2;} 13583 { (exit 1); exit 1; }; } ;; 13584 esac 13585 13586 else 13587 13588 USE_OPROFILE=0 13589 13590 13591 fi 13592 13593 13594 cat >>confdefs.h <<_ACEOF 13595 #define LLVM_USE_OPROFILE $USE_OPROFILE 13596 _ACEOF 13597 13598 13599 13600 # Check whether --with-intel-jitevents was given. 13601 if test "${with_intel_jitevents+set}" = set; then 13602 withval=$with_intel_jitevents; 13603 case "$withval" in 13604 yes) USE_INTEL_JITEVENTS=1 13605 ;; 13606 no) USE_INTEL_JITEVENTS=0 13607 ;; 13608 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 13609 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} 13610 { (exit 1); exit 1; }; };; 13611 esac 13612 13613 case $llvm_cv_os_type in 13614 Linux|Win32|Cygwin|MingW) ;; 13615 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 13616 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} 13617 { (exit 1); exit 1; }; };; 13618 esac 13619 13620 case "$llvm_cv_target_arch" in 13621 x86|x86_64) ;; 13622 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 13623 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} 13624 { (exit 1); exit 1; }; };; 13625 esac 13626 13627 else 13628 13629 USE_INTEL_JITEVENTS=0 13630 13631 13632 fi 13633 13634 13635 cat >>confdefs.h <<_ACEOF 13636 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 13637 _ACEOF 13638 13639 13640 for ac_prog in xml2-config 13641 do 13642 # Extract the first word of "$ac_prog", so it can be a program name with args. 13643 set dummy $ac_prog; ac_word=$2 13644 { echo "$as_me:$LINENO: checking for $ac_word" >&5 13645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13646 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then 13647 echo $ECHO_N "(cached) $ECHO_C" >&6 13648 else 13649 if test -n "$XML2CONFIG"; then 13650 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. 13651 else 13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13653 for as_dir in $PATH 13654 do 13655 IFS=$as_save_IFS 13656 test -z "$as_dir" && as_dir=. 13657 for ac_exec_ext in '' $ac_executable_extensions; do 13658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 13659 ac_cv_prog_XML2CONFIG="$ac_prog" 13660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13661 break 2 13662 fi 13663 done 13664 done 13665 IFS=$as_save_IFS 13666 13667 fi 13668 fi 13669 XML2CONFIG=$ac_cv_prog_XML2CONFIG 13670 if test -n "$XML2CONFIG"; then 13671 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 13672 echo "${ECHO_T}$XML2CONFIG" >&6; } 13673 else 13674 { echo "$as_me:$LINENO: result: no" >&5 13675 echo "${ECHO_T}no" >&6; } 13676 fi 13677 13678 13679 test -n "$XML2CONFIG" && break 13680 done 13681 13682 13683 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5 13684 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } 13685 if test "x$XML2CONFIG" = "x"; then 13686 { echo "$as_me:$LINENO: result: xml2-config not found" >&5 13687 echo "${ECHO_T}xml2-config not found" >&6; } 13688 else 13689 LIBXML2_INC=`$XML2CONFIG --cflags` 13690 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 13691 echo "${ECHO_T}$LIBXML2_INC" >&6; } 13692 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 13693 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } 13694 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then 13695 echo $ECHO_N "(cached) $ECHO_C" >&6 13696 else 13697 ac_check_lib_save_LIBS=$LIBS 13698 LIBS="-lxml2 $LIBS" 13699 cat >conftest.$ac_ext <<_ACEOF 13700 /* confdefs.h. */ 13701 _ACEOF 13702 cat confdefs.h >>conftest.$ac_ext 13703 cat >>conftest.$ac_ext <<_ACEOF 13704 /* end confdefs.h. */ 13705 13706 /* Override any GCC internal prototype to avoid an error. 13707 Use char because int might match the return type of a GCC 13708 builtin and then its argument prototype would still apply. */ 13709 #ifdef __cplusplus 13710 extern "C" 13711 #endif 13712 char xmlReadFile (); 13713 int 13714 main () 13715 { 13716 return xmlReadFile (); 13717 ; 13718 return 0; 13719 } 13720 _ACEOF 13721 rm -f conftest.$ac_objext conftest$ac_exeext 13722 if { (ac_try="$ac_link" 13723 case "(($ac_try" in 13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13725 *) ac_try_echo=$ac_try;; 13726 esac 13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13728 (eval "$ac_link") 2>conftest.er1 13729 ac_status=$? 13730 grep -v '^ *+' conftest.er1 >conftest.err 13731 rm -f conftest.er1 13732 cat conftest.err >&5 13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13734 (exit $ac_status); } && 13735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13736 { (case "(($ac_try" in 13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13738 *) ac_try_echo=$ac_try;; 13739 esac 13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13741 (eval "$ac_try") 2>&5 13742 ac_status=$? 13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13744 (exit $ac_status); }; } && 13745 { ac_try='test -s conftest$ac_exeext' 13746 { (case "(($ac_try" in 13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13748 *) ac_try_echo=$ac_try;; 13749 esac 13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13751 (eval "$ac_try") 2>&5 13752 ac_status=$? 13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13754 (exit $ac_status); }; }; then 13755 ac_cv_lib_xml2_xmlReadFile=yes 13756 else 13757 echo "$as_me: failed program was:" >&5 13758 sed 's/^/| /' conftest.$ac_ext >&5 13759 13760 ac_cv_lib_xml2_xmlReadFile=no 13761 fi 13762 13763 rm -f core conftest.err conftest.$ac_objext \ 13764 conftest$ac_exeext conftest.$ac_ext 13765 LIBS=$ac_check_lib_save_LIBS 13766 fi 13767 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 13768 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } 13769 if test $ac_cv_lib_xml2_xmlReadFile = yes; then 13770 13771 cat >>confdefs.h <<\_ACEOF 13772 #define CLANG_HAVE_LIBXML 1 13773 _ACEOF 13774 13775 LIBXML2_LIBS="-lxml2" 13776 fi 13777 13778 fi 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 ac_header_dirent=no 13789 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13790 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13791 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 13792 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 13793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13794 echo $ECHO_N "(cached) $ECHO_C" >&6 13795 else 13796 cat >conftest.$ac_ext <<_ACEOF 13797 /* confdefs.h. */ 13798 _ACEOF 13799 cat confdefs.h >>conftest.$ac_ext 13800 cat >>conftest.$ac_ext <<_ACEOF 13801 /* end confdefs.h. */ 13802 #include <sys/types.h> 13803 #include <$ac_hdr> 13804 13805 int 13806 main () 13807 { 13808 if ((DIR *) 0) 13809 return 0; 13810 ; 13811 return 0; 13812 } 13813 _ACEOF 13814 rm -f conftest.$ac_objext 13815 if { (ac_try="$ac_compile" 13816 case "(($ac_try" in 13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13818 *) ac_try_echo=$ac_try;; 13819 esac 13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13821 (eval "$ac_compile") 2>conftest.er1 13822 ac_status=$? 13823 grep -v '^ *+' conftest.er1 >conftest.err 13824 rm -f conftest.er1 13825 cat conftest.err >&5 13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13827 (exit $ac_status); } && 13828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13829 { (case "(($ac_try" in 13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13831 *) ac_try_echo=$ac_try;; 13832 esac 13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13834 (eval "$ac_try") 2>&5 13835 ac_status=$? 13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13837 (exit $ac_status); }; } && 13838 { ac_try='test -s conftest.$ac_objext' 13839 { (case "(($ac_try" in 13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13841 *) ac_try_echo=$ac_try;; 13842 esac 13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13844 (eval "$ac_try") 2>&5 13845 ac_status=$? 13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13847 (exit $ac_status); }; }; then 13848 eval "$as_ac_Header=yes" 13849 else 13850 echo "$as_me: failed program was:" >&5 13851 sed 's/^/| /' conftest.$ac_ext >&5 13852 13853 eval "$as_ac_Header=no" 13854 fi 13855 13856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13857 fi 13858 ac_res=`eval echo '${'$as_ac_Header'}'` 13859 { echo "$as_me:$LINENO: result: $ac_res" >&5 13860 echo "${ECHO_T}$ac_res" >&6; } 13861 if test `eval echo '${'$as_ac_Header'}'` = yes; then 13862 cat >>confdefs.h <<_ACEOF 13863 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 13864 _ACEOF 13865 13866 ac_header_dirent=$ac_hdr; break 13867 fi 13868 13869 done 13870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13871 if test $ac_header_dirent = dirent.h; then 13872 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13874 if test "${ac_cv_search_opendir+set}" = set; then 13875 echo $ECHO_N "(cached) $ECHO_C" >&6 13876 else 13877 ac_func_search_save_LIBS=$LIBS 13878 cat >conftest.$ac_ext <<_ACEOF 13879 /* confdefs.h. */ 13880 _ACEOF 13881 cat confdefs.h >>conftest.$ac_ext 13882 cat >>conftest.$ac_ext <<_ACEOF 13883 /* end confdefs.h. */ 13884 13885 /* Override any GCC internal prototype to avoid an error. 13886 Use char because int might match the return type of a GCC 13887 builtin and then its argument prototype would still apply. */ 13888 #ifdef __cplusplus 13889 extern "C" 13890 #endif 13891 char opendir (); 13892 int 13893 main () 13894 { 13895 return opendir (); 13896 ; 13897 return 0; 13898 } 13899 _ACEOF 13900 for ac_lib in '' dir; do 13901 if test -z "$ac_lib"; then 13902 ac_res="none required" 13903 else 13904 ac_res=-l$ac_lib 13905 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13906 fi 13907 rm -f conftest.$ac_objext conftest$ac_exeext 13908 if { (ac_try="$ac_link" 13909 case "(($ac_try" in 13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13911 *) ac_try_echo=$ac_try;; 13912 esac 13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13914 (eval "$ac_link") 2>conftest.er1 13915 ac_status=$? 13916 grep -v '^ *+' conftest.er1 >conftest.err 13917 rm -f conftest.er1 13918 cat conftest.err >&5 13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13920 (exit $ac_status); } && 13921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13922 { (case "(($ac_try" in 13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13924 *) ac_try_echo=$ac_try;; 13925 esac 13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13927 (eval "$ac_try") 2>&5 13928 ac_status=$? 13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13930 (exit $ac_status); }; } && 13931 { ac_try='test -s conftest$ac_exeext' 13932 { (case "(($ac_try" in 13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13934 *) ac_try_echo=$ac_try;; 13935 esac 13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13937 (eval "$ac_try") 2>&5 13938 ac_status=$? 13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13940 (exit $ac_status); }; }; then 13941 ac_cv_search_opendir=$ac_res 13942 else 13943 echo "$as_me: failed program was:" >&5 13944 sed 's/^/| /' conftest.$ac_ext >&5 13945 13946 13947 fi 13948 13949 rm -f core conftest.err conftest.$ac_objext \ 13950 conftest$ac_exeext 13951 if test "${ac_cv_search_opendir+set}" = set; then 13952 break 13953 fi 13954 done 13955 if test "${ac_cv_search_opendir+set}" = set; then 13956 : 13957 else 13958 ac_cv_search_opendir=no 13959 fi 13960 rm conftest.$ac_ext 13961 LIBS=$ac_func_search_save_LIBS 13962 fi 13963 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13964 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13965 ac_res=$ac_cv_search_opendir 13966 if test "$ac_res" != no; then 13967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13968 13969 fi 13970 13971 else 13972 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13973 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13974 if test "${ac_cv_search_opendir+set}" = set; then 13975 echo $ECHO_N "(cached) $ECHO_C" >&6 13976 else 13977 ac_func_search_save_LIBS=$LIBS 13978 cat >conftest.$ac_ext <<_ACEOF 13979 /* confdefs.h. */ 13980 _ACEOF 13981 cat confdefs.h >>conftest.$ac_ext 13982 cat >>conftest.$ac_ext <<_ACEOF 13983 /* end confdefs.h. */ 13984 13985 /* Override any GCC internal prototype to avoid an error. 13986 Use char because int might match the return type of a GCC 13987 builtin and then its argument prototype would still apply. */ 13988 #ifdef __cplusplus 13989 extern "C" 13990 #endif 13991 char opendir (); 13992 int 13993 main () 13994 { 13995 return opendir (); 13996 ; 13997 return 0; 13998 } 13999 _ACEOF 14000 for ac_lib in '' x; do 14001 if test -z "$ac_lib"; then 14002 ac_res="none required" 14003 else 14004 ac_res=-l$ac_lib 14005 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14006 fi 14007 rm -f conftest.$ac_objext conftest$ac_exeext 14008 if { (ac_try="$ac_link" 14009 case "(($ac_try" in 14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14011 *) ac_try_echo=$ac_try;; 14012 esac 14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14014 (eval "$ac_link") 2>conftest.er1 14015 ac_status=$? 14016 grep -v '^ *+' conftest.er1 >conftest.err 14017 rm -f conftest.er1 14018 cat conftest.err >&5 14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14020 (exit $ac_status); } && 14021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14022 { (case "(($ac_try" in 14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14024 *) ac_try_echo=$ac_try;; 14025 esac 14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14027 (eval "$ac_try") 2>&5 14028 ac_status=$? 14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14030 (exit $ac_status); }; } && 14031 { ac_try='test -s conftest$ac_exeext' 14032 { (case "(($ac_try" in 14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14034 *) ac_try_echo=$ac_try;; 14035 esac 14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14037 (eval "$ac_try") 2>&5 14038 ac_status=$? 14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14040 (exit $ac_status); }; }; then 14041 ac_cv_search_opendir=$ac_res 14042 else 14043 echo "$as_me: failed program was:" >&5 14044 sed 's/^/| /' conftest.$ac_ext >&5 14045 14046 14047 fi 14048 14049 rm -f core conftest.err conftest.$ac_objext \ 14050 conftest$ac_exeext 14051 if test "${ac_cv_search_opendir+set}" = set; then 14052 break 14053 fi 14054 done 14055 if test "${ac_cv_search_opendir+set}" = set; then 14056 : 14057 else 14058 ac_cv_search_opendir=no 14059 fi 14060 rm conftest.$ac_ext 14061 LIBS=$ac_func_search_save_LIBS 14062 fi 14063 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14064 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14065 ac_res=$ac_cv_search_opendir 14066 if test "$ac_res" != no; then 14067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14068 14069 fi 14070 14071 fi 14072 14073 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14074 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14075 if test "${ac_cv_header_mmap_anon+set}" = set; then 14076 echo $ECHO_N "(cached) $ECHO_C" >&6 14077 else 14078 ac_ext=c 14079 ac_cpp='$CPP $CPPFLAGS' 14080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14082 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14083 14084 cat >conftest.$ac_ext <<_ACEOF 14085 /* confdefs.h. */ 14086 _ACEOF 14087 cat confdefs.h >>conftest.$ac_ext 14088 cat >>conftest.$ac_ext <<_ACEOF 14089 /* end confdefs.h. */ 14090 #include <sys/mman.h> 14091 #include <unistd.h> 14092 #include <fcntl.h> 14093 int 14094 main () 14095 { 14096 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14097 ; 14098 return 0; 14099 } 14100 _ACEOF 14101 rm -f conftest.$ac_objext 14102 if { (ac_try="$ac_compile" 14103 case "(($ac_try" in 14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14105 *) ac_try_echo=$ac_try;; 14106 esac 14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14108 (eval "$ac_compile") 2>conftest.er1 14109 ac_status=$? 14110 grep -v '^ *+' conftest.er1 >conftest.err 14111 rm -f conftest.er1 14112 cat conftest.err >&5 14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14114 (exit $ac_status); } && 14115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14116 { (case "(($ac_try" in 14117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14118 *) ac_try_echo=$ac_try;; 14119 esac 14120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14121 (eval "$ac_try") 2>&5 14122 ac_status=$? 14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14124 (exit $ac_status); }; } && 14125 { ac_try='test -s conftest.$ac_objext' 14126 { (case "(($ac_try" in 14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14128 *) ac_try_echo=$ac_try;; 14129 esac 14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14131 (eval "$ac_try") 2>&5 14132 ac_status=$? 14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14134 (exit $ac_status); }; }; then 14135 ac_cv_header_mmap_anon=yes 14136 else 14137 echo "$as_me: failed program was:" >&5 14138 sed 's/^/| /' conftest.$ac_ext >&5 14139 14140 ac_cv_header_mmap_anon=no 14141 fi 14142 14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14144 ac_ext=c 14145 ac_cpp='$CPP $CPPFLAGS' 14146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14148 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14149 14150 14151 fi 14152 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14153 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14154 if test "$ac_cv_header_mmap_anon" = yes; then 14155 14156 cat >>confdefs.h <<\_ACEOF 14157 #define HAVE_MMAP_ANONYMOUS 1 14158 _ACEOF 14159 14160 fi 14161 14162 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14163 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14164 if test "${ac_cv_header_stat_broken+set}" = set; then 14165 echo $ECHO_N "(cached) $ECHO_C" >&6 14166 else 14167 cat >conftest.$ac_ext <<_ACEOF 14168 /* confdefs.h. */ 14169 _ACEOF 14170 cat confdefs.h >>conftest.$ac_ext 14171 cat >>conftest.$ac_ext <<_ACEOF 14172 /* end confdefs.h. */ 14173 #include <sys/types.h> 14174 #include <sys/stat.h> 14175 14176 #if defined S_ISBLK && defined S_IFDIR 14177 # if S_ISBLK (S_IFDIR) 14178 You lose. 14179 # endif 14180 #endif 14181 14182 #if defined S_ISBLK && defined S_IFCHR 14183 # if S_ISBLK (S_IFCHR) 14184 You lose. 14185 # endif 14186 #endif 14187 14188 #if defined S_ISLNK && defined S_IFREG 14189 # if S_ISLNK (S_IFREG) 14190 You lose. 14191 # endif 14192 #endif 14193 14194 #if defined S_ISSOCK && defined S_IFREG 14195 # if S_ISSOCK (S_IFREG) 14196 You lose. 14197 # endif 14198 #endif 14199 14200 _ACEOF 14201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14202 $EGREP "You lose" >/dev/null 2>&1; then 14203 ac_cv_header_stat_broken=yes 14204 else 14205 ac_cv_header_stat_broken=no 14206 fi 14207 rm -f conftest* 14208 14209 fi 14210 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14211 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14212 if test $ac_cv_header_stat_broken = yes; then 14213 14214 cat >>confdefs.h <<\_ACEOF 14215 #define STAT_MACROS_BROKEN 1 14216 _ACEOF 14217 14218 fi 14219 14220 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14221 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14222 if test "${ac_cv_header_sys_wait_h+set}" = set; then 14223 echo $ECHO_N "(cached) $ECHO_C" >&6 14224 else 14225 cat >conftest.$ac_ext <<_ACEOF 14226 /* confdefs.h. */ 14227 _ACEOF 14228 cat confdefs.h >>conftest.$ac_ext 14229 cat >>conftest.$ac_ext <<_ACEOF 14230 /* end confdefs.h. */ 14231 #include <sys/types.h> 14232 #include <sys/wait.h> 14233 #ifndef WEXITSTATUS 14234 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14235 #endif 14236 #ifndef WIFEXITED 14237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14238 #endif 14239 14240 int 14241 main () 14242 { 14243 int s; 14244 wait (&s); 14245 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14246 ; 14247 return 0; 14248 } 14249 _ACEOF 14250 rm -f conftest.$ac_objext 14251 if { (ac_try="$ac_compile" 14252 case "(($ac_try" in 14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14254 *) ac_try_echo=$ac_try;; 14255 esac 14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14257 (eval "$ac_compile") 2>conftest.er1 14258 ac_status=$? 14259 grep -v '^ *+' conftest.er1 >conftest.err 14260 rm -f conftest.er1 14261 cat conftest.err >&5 14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14263 (exit $ac_status); } && 14264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14265 { (case "(($ac_try" in 14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14267 *) ac_try_echo=$ac_try;; 14268 esac 14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14270 (eval "$ac_try") 2>&5 14271 ac_status=$? 14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14273 (exit $ac_status); }; } && 14274 { ac_try='test -s conftest.$ac_objext' 14275 { (case "(($ac_try" in 14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14277 *) ac_try_echo=$ac_try;; 14278 esac 14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14280 (eval "$ac_try") 2>&5 14281 ac_status=$? 14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14283 (exit $ac_status); }; }; then 14284 ac_cv_header_sys_wait_h=yes 14285 else 14286 echo "$as_me: failed program was:" >&5 14287 sed 's/^/| /' conftest.$ac_ext >&5 14288 14289 ac_cv_header_sys_wait_h=no 14290 fi 14291 14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14293 fi 14294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14295 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14296 if test $ac_cv_header_sys_wait_h = yes; then 14297 14298 cat >>confdefs.h <<\_ACEOF 14299 #define HAVE_SYS_WAIT_H 1 14300 _ACEOF 14301 14302 fi 14303 14304 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14305 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14306 if test "${ac_cv_header_time+set}" = set; then 14307 echo $ECHO_N "(cached) $ECHO_C" >&6 14308 else 14309 cat >conftest.$ac_ext <<_ACEOF 14310 /* confdefs.h. */ 14311 _ACEOF 14312 cat confdefs.h >>conftest.$ac_ext 14313 cat >>conftest.$ac_ext <<_ACEOF 14314 /* end confdefs.h. */ 14315 #include <sys/types.h> 14316 #include <sys/time.h> 14317 #include <time.h> 14318 14319 int 14320 main () 14321 { 14322 if ((struct tm *) 0) 14323 return 0; 14324 ; 14325 return 0; 14326 } 14327 _ACEOF 14328 rm -f conftest.$ac_objext 14329 if { (ac_try="$ac_compile" 14330 case "(($ac_try" in 14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14332 *) ac_try_echo=$ac_try;; 14333 esac 14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14335 (eval "$ac_compile") 2>conftest.er1 14336 ac_status=$? 14337 grep -v '^ *+' conftest.er1 >conftest.err 14338 rm -f conftest.er1 14339 cat conftest.err >&5 14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14341 (exit $ac_status); } && 14342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14343 { (case "(($ac_try" in 14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14345 *) ac_try_echo=$ac_try;; 14346 esac 14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14348 (eval "$ac_try") 2>&5 14349 ac_status=$? 14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14351 (exit $ac_status); }; } && 14352 { ac_try='test -s conftest.$ac_objext' 14353 { (case "(($ac_try" in 14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14355 *) ac_try_echo=$ac_try;; 14356 esac 14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14358 (eval "$ac_try") 2>&5 14359 ac_status=$? 14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14361 (exit $ac_status); }; }; then 14362 ac_cv_header_time=yes 14363 else 14364 echo "$as_me: failed program was:" >&5 14365 sed 's/^/| /' conftest.$ac_ext >&5 14366 14367 ac_cv_header_time=no 14368 fi 14369 14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14371 fi 14372 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14373 echo "${ECHO_T}$ac_cv_header_time" >&6; } 14374 if test $ac_cv_header_time = yes; then 14375 14376 cat >>confdefs.h <<\_ACEOF 14377 #define TIME_WITH_SYS_TIME 1 14378 _ACEOF 14379 14380 fi 14381 14382 14383 ac_ext=cpp 14384 ac_cpp='$CXXCPP $CPPFLAGS' 14385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14388 14389 ac_ext=cpp 14390 ac_cpp='$CXXCPP $CPPFLAGS' 14391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14394 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 14395 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 14396 if test -z "$CXXCPP"; then 14397 if test "${ac_cv_prog_CXXCPP+set}" = set; then 14398 echo $ECHO_N "(cached) $ECHO_C" >&6 14399 else 14400 # Double quotes because CXXCPP needs to be expanded 14401 for CXXCPP in "$CXX -E" "/lib/cpp" 14402 do 14403 ac_preproc_ok=false 14404 for ac_cxx_preproc_warn_flag in '' yes 14405 do 14406 # Use a header file that comes with gcc, so configuring glibc 14407 # with a fresh cross-compiler works. 14408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14409 # <limits.h> exists even on freestanding compilers. 14410 # On the NeXT, cc -E runs the code through the compiler's parser, 14411 # not just through cpp. "Syntax error" is here to catch this case. 14412 cat >conftest.$ac_ext <<_ACEOF 14413 /* confdefs.h. */ 14414 _ACEOF 14415 cat confdefs.h >>conftest.$ac_ext 14416 cat >>conftest.$ac_ext <<_ACEOF 14417 /* end confdefs.h. */ 14418 #ifdef __STDC__ 14419 # include <limits.h> 14420 #else 14421 # include <assert.h> 14422 #endif 14423 Syntax error 14424 _ACEOF 14425 if { (ac_try="$ac_cpp conftest.$ac_ext" 14426 case "(($ac_try" in 14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14428 *) ac_try_echo=$ac_try;; 14429 esac 14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14432 ac_status=$? 14433 grep -v '^ *+' conftest.er1 >conftest.err 14434 rm -f conftest.er1 14435 cat conftest.err >&5 14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14437 (exit $ac_status); } >/dev/null; then 14438 if test -s conftest.err; then 14439 ac_cpp_err=$ac_cxx_preproc_warn_flag 14440 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14441 else 14442 ac_cpp_err= 14443 fi 14444 else 14445 ac_cpp_err=yes 14446 fi 14447 if test -z "$ac_cpp_err"; then 14448 : 14449 else 14450 echo "$as_me: failed program was:" >&5 14451 sed 's/^/| /' conftest.$ac_ext >&5 14452 14453 # Broken: fails on valid input. 14454 continue 14455 fi 14456 14457 rm -f conftest.err conftest.$ac_ext 14458 14459 # OK, works on sane cases. Now check whether nonexistent headers 14460 # can be detected and how. 14461 cat >conftest.$ac_ext <<_ACEOF 14462 /* confdefs.h. */ 14463 _ACEOF 14464 cat confdefs.h >>conftest.$ac_ext 14465 cat >>conftest.$ac_ext <<_ACEOF 14466 /* end confdefs.h. */ 14467 #include <ac_nonexistent.h> 14468 _ACEOF 14469 if { (ac_try="$ac_cpp conftest.$ac_ext" 14470 case "(($ac_try" in 14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14472 *) ac_try_echo=$ac_try;; 14473 esac 14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14476 ac_status=$? 14477 grep -v '^ *+' conftest.er1 >conftest.err 14478 rm -f conftest.er1 14479 cat conftest.err >&5 14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14481 (exit $ac_status); } >/dev/null; then 14482 if test -s conftest.err; then 14483 ac_cpp_err=$ac_cxx_preproc_warn_flag 14484 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14485 else 14486 ac_cpp_err= 14487 fi 14488 else 14489 ac_cpp_err=yes 14490 fi 14491 if test -z "$ac_cpp_err"; then 14492 # Broken: success on invalid input. 14493 continue 14494 else 14495 echo "$as_me: failed program was:" >&5 14496 sed 's/^/| /' conftest.$ac_ext >&5 14497 14498 # Passes both tests. 14499 ac_preproc_ok=: 14500 break 14501 fi 14502 14503 rm -f conftest.err conftest.$ac_ext 14504 14505 done 14506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14507 rm -f conftest.err conftest.$ac_ext 14508 if $ac_preproc_ok; then 14509 break 14510 fi 14511 14512 done 14513 ac_cv_prog_CXXCPP=$CXXCPP 14514 14515 fi 14516 CXXCPP=$ac_cv_prog_CXXCPP 14517 else 14518 ac_cv_prog_CXXCPP=$CXXCPP 14519 fi 14520 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 14521 echo "${ECHO_T}$CXXCPP" >&6; } 14522 ac_preproc_ok=false 14523 for ac_cxx_preproc_warn_flag in '' yes 14524 do 14525 # Use a header file that comes with gcc, so configuring glibc 14526 # with a fresh cross-compiler works. 14527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14528 # <limits.h> exists even on freestanding compilers. 14529 # On the NeXT, cc -E runs the code through the compiler's parser, 14530 # not just through cpp. "Syntax error" is here to catch this case. 14531 cat >conftest.$ac_ext <<_ACEOF 14532 /* confdefs.h. */ 14533 _ACEOF 14534 cat confdefs.h >>conftest.$ac_ext 14535 cat >>conftest.$ac_ext <<_ACEOF 14536 /* end confdefs.h. */ 14537 #ifdef __STDC__ 14538 # include <limits.h> 14539 #else 14540 # include <assert.h> 14541 #endif 14542 Syntax error 14543 _ACEOF 14544 if { (ac_try="$ac_cpp conftest.$ac_ext" 14545 case "(($ac_try" in 14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14547 *) ac_try_echo=$ac_try;; 14548 esac 14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14551 ac_status=$? 14552 grep -v '^ *+' conftest.er1 >conftest.err 14553 rm -f conftest.er1 14554 cat conftest.err >&5 14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14556 (exit $ac_status); } >/dev/null; then 14557 if test -s conftest.err; then 14558 ac_cpp_err=$ac_cxx_preproc_warn_flag 14559 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14560 else 14561 ac_cpp_err= 14562 fi 14563 else 14564 ac_cpp_err=yes 14565 fi 14566 if test -z "$ac_cpp_err"; then 14567 : 14568 else 14569 echo "$as_me: failed program was:" >&5 14570 sed 's/^/| /' conftest.$ac_ext >&5 14571 14572 # Broken: fails on valid input. 14573 continue 14574 fi 14575 14576 rm -f conftest.err conftest.$ac_ext 14577 14578 # OK, works on sane cases. Now check whether nonexistent headers 14579 # can be detected and how. 14580 cat >conftest.$ac_ext <<_ACEOF 14581 /* confdefs.h. */ 14582 _ACEOF 14583 cat confdefs.h >>conftest.$ac_ext 14584 cat >>conftest.$ac_ext <<_ACEOF 14585 /* end confdefs.h. */ 14586 #include <ac_nonexistent.h> 14587 _ACEOF 14588 if { (ac_try="$ac_cpp conftest.$ac_ext" 14589 case "(($ac_try" in 14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14591 *) ac_try_echo=$ac_try;; 14592 esac 14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14595 ac_status=$? 14596 grep -v '^ *+' conftest.er1 >conftest.err 14597 rm -f conftest.er1 14598 cat conftest.err >&5 14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14600 (exit $ac_status); } >/dev/null; then 14601 if test -s conftest.err; then 14602 ac_cpp_err=$ac_cxx_preproc_warn_flag 14603 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14604 else 14605 ac_cpp_err= 14606 fi 14607 else 14608 ac_cpp_err=yes 14609 fi 14610 if test -z "$ac_cpp_err"; then 14611 # Broken: success on invalid input. 14612 continue 14613 else 14614 echo "$as_me: failed program was:" >&5 14615 sed 's/^/| /' conftest.$ac_ext >&5 14616 14617 # Passes both tests. 14618 ac_preproc_ok=: 14619 break 14620 fi 14621 14622 rm -f conftest.err conftest.$ac_ext 14623 14624 done 14625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14626 rm -f conftest.err conftest.$ac_ext 14627 if $ac_preproc_ok; then 14628 : 14629 else 14630 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 14631 See \`config.log' for more details." >&5 14632 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 14633 See \`config.log' for more details." >&2;} 14634 { (exit 1); exit 1; }; } 14635 fi 14636 14637 ac_ext=cpp 14638 ac_cpp='$CXXCPP $CPPFLAGS' 14639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14642 14643 14644 14645 for ac_header in cxxabi.h 14646 do 14647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14649 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14652 echo $ECHO_N "(cached) $ECHO_C" >&6 14653 fi 14654 ac_res=`eval echo '${'$as_ac_Header'}'` 14655 { echo "$as_me:$LINENO: result: $ac_res" >&5 14656 echo "${ECHO_T}$ac_res" >&6; } 14657 else 14658 # Is the header compilable? 14659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14661 cat >conftest.$ac_ext <<_ACEOF 14662 /* confdefs.h. */ 14663 _ACEOF 14664 cat confdefs.h >>conftest.$ac_ext 14665 cat >>conftest.$ac_ext <<_ACEOF 14666 /* end confdefs.h. */ 14667 $ac_includes_default 14668 #include <$ac_header> 14669 _ACEOF 14670 rm -f conftest.$ac_objext 14671 if { (ac_try="$ac_compile" 14672 case "(($ac_try" in 14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14674 *) ac_try_echo=$ac_try;; 14675 esac 14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14677 (eval "$ac_compile") 2>conftest.er1 14678 ac_status=$? 14679 grep -v '^ *+' conftest.er1 >conftest.err 14680 rm -f conftest.er1 14681 cat conftest.err >&5 14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14683 (exit $ac_status); } && 14684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14685 { (case "(($ac_try" in 14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14687 *) ac_try_echo=$ac_try;; 14688 esac 14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14690 (eval "$ac_try") 2>&5 14691 ac_status=$? 14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14693 (exit $ac_status); }; } && 14694 { ac_try='test -s conftest.$ac_objext' 14695 { (case "(($ac_try" in 14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14697 *) ac_try_echo=$ac_try;; 14698 esac 14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14700 (eval "$ac_try") 2>&5 14701 ac_status=$? 14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14703 (exit $ac_status); }; }; then 14704 ac_header_compiler=yes 14705 else 14706 echo "$as_me: failed program was:" >&5 14707 sed 's/^/| /' conftest.$ac_ext >&5 14708 14709 ac_header_compiler=no 14710 fi 14711 14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14714 echo "${ECHO_T}$ac_header_compiler" >&6; } 14715 14716 # Is the header present? 14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14719 cat >conftest.$ac_ext <<_ACEOF 14720 /* confdefs.h. */ 14721 _ACEOF 14722 cat confdefs.h >>conftest.$ac_ext 14723 cat >>conftest.$ac_ext <<_ACEOF 14724 /* end confdefs.h. */ 14725 #include <$ac_header> 14726 _ACEOF 14727 if { (ac_try="$ac_cpp conftest.$ac_ext" 14728 case "(($ac_try" in 14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14730 *) ac_try_echo=$ac_try;; 14731 esac 14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14734 ac_status=$? 14735 grep -v '^ *+' conftest.er1 >conftest.err 14736 rm -f conftest.er1 14737 cat conftest.err >&5 14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14739 (exit $ac_status); } >/dev/null; then 14740 if test -s conftest.err; then 14741 ac_cpp_err=$ac_cxx_preproc_warn_flag 14742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14743 else 14744 ac_cpp_err= 14745 fi 14746 else 14747 ac_cpp_err=yes 14748 fi 14749 if test -z "$ac_cpp_err"; then 14750 ac_header_preproc=yes 14751 else 14752 echo "$as_me: failed program was:" >&5 14753 sed 's/^/| /' conftest.$ac_ext >&5 14754 14755 ac_header_preproc=no 14756 fi 14757 14758 rm -f conftest.err conftest.$ac_ext 14759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14760 echo "${ECHO_T}$ac_header_preproc" >&6; } 14761 14762 # So? What about this header? 14763 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 14764 yes:no: ) 14765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14769 ac_header_preproc=yes 14770 ;; 14771 no:yes:* ) 14772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14784 ( cat <<\_ASBOX 14785 ## ------------------------------------ ## 14786 ## Report this to http://llvm.org/bugs/ ## 14787 ## ------------------------------------ ## 14788 _ASBOX 14789 ) | sed "s/^/$as_me: WARNING: /" >&2 14790 ;; 14791 esac 14792 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14795 echo $ECHO_N "(cached) $ECHO_C" >&6 14796 else 14797 eval "$as_ac_Header=\$ac_header_preproc" 14798 fi 14799 ac_res=`eval echo '${'$as_ac_Header'}'` 14800 { echo "$as_me:$LINENO: result: $ac_res" >&5 14801 echo "${ECHO_T}$ac_res" >&6; } 14802 14803 fi 14804 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14805 cat >>confdefs.h <<_ACEOF 14806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14807 _ACEOF 14808 14809 fi 14810 14811 done 14812 14813 ac_ext=c 14814 ac_cpp='$CPP $CPPFLAGS' 14815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14817 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14818 14819 14820 14821 14822 14823 14824 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h 14825 do 14826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14828 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14831 echo $ECHO_N "(cached) $ECHO_C" >&6 14832 fi 14833 ac_res=`eval echo '${'$as_ac_Header'}'` 14834 { echo "$as_me:$LINENO: result: $ac_res" >&5 14835 echo "${ECHO_T}$ac_res" >&6; } 14836 else 14837 # Is the header compilable? 14838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14840 cat >conftest.$ac_ext <<_ACEOF 14841 /* confdefs.h. */ 14842 _ACEOF 14843 cat confdefs.h >>conftest.$ac_ext 14844 cat >>conftest.$ac_ext <<_ACEOF 14845 /* end confdefs.h. */ 14846 $ac_includes_default 14847 #include <$ac_header> 14848 _ACEOF 14849 rm -f conftest.$ac_objext 14850 if { (ac_try="$ac_compile" 14851 case "(($ac_try" in 14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14853 *) ac_try_echo=$ac_try;; 14854 esac 14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14856 (eval "$ac_compile") 2>conftest.er1 14857 ac_status=$? 14858 grep -v '^ *+' conftest.er1 >conftest.err 14859 rm -f conftest.er1 14860 cat conftest.err >&5 14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14862 (exit $ac_status); } && 14863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14864 { (case "(($ac_try" in 14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14866 *) ac_try_echo=$ac_try;; 14867 esac 14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14869 (eval "$ac_try") 2>&5 14870 ac_status=$? 14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14872 (exit $ac_status); }; } && 14873 { ac_try='test -s conftest.$ac_objext' 14874 { (case "(($ac_try" in 14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14876 *) ac_try_echo=$ac_try;; 14877 esac 14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14879 (eval "$ac_try") 2>&5 14880 ac_status=$? 14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14882 (exit $ac_status); }; }; then 14883 ac_header_compiler=yes 14884 else 14885 echo "$as_me: failed program was:" >&5 14886 sed 's/^/| /' conftest.$ac_ext >&5 14887 14888 ac_header_compiler=no 14889 fi 14890 14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14893 echo "${ECHO_T}$ac_header_compiler" >&6; } 14894 14895 # Is the header present? 14896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14898 cat >conftest.$ac_ext <<_ACEOF 14899 /* confdefs.h. */ 14900 _ACEOF 14901 cat confdefs.h >>conftest.$ac_ext 14902 cat >>conftest.$ac_ext <<_ACEOF 14903 /* end confdefs.h. */ 14904 #include <$ac_header> 14905 _ACEOF 14906 if { (ac_try="$ac_cpp conftest.$ac_ext" 14907 case "(($ac_try" in 14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14909 *) ac_try_echo=$ac_try;; 14910 esac 14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14913 ac_status=$? 14914 grep -v '^ *+' conftest.er1 >conftest.err 14915 rm -f conftest.er1 14916 cat conftest.err >&5 14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14918 (exit $ac_status); } >/dev/null; then 14919 if test -s conftest.err; then 14920 ac_cpp_err=$ac_c_preproc_warn_flag 14921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14922 else 14923 ac_cpp_err= 14924 fi 14925 else 14926 ac_cpp_err=yes 14927 fi 14928 if test -z "$ac_cpp_err"; then 14929 ac_header_preproc=yes 14930 else 14931 echo "$as_me: failed program was:" >&5 14932 sed 's/^/| /' conftest.$ac_ext >&5 14933 14934 ac_header_preproc=no 14935 fi 14936 14937 rm -f conftest.err conftest.$ac_ext 14938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14939 echo "${ECHO_T}$ac_header_preproc" >&6; } 14940 14941 # So? What about this header? 14942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14943 yes:no: ) 14944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14948 ac_header_preproc=yes 14949 ;; 14950 no:yes:* ) 14951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14963 ( cat <<\_ASBOX 14964 ## ------------------------------------ ## 14965 ## Report this to http://llvm.org/bugs/ ## 14966 ## ------------------------------------ ## 14967 _ASBOX 14968 ) | sed "s/^/$as_me: WARNING: /" >&2 14969 ;; 14970 esac 14971 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14974 echo $ECHO_N "(cached) $ECHO_C" >&6 14975 else 14976 eval "$as_ac_Header=\$ac_header_preproc" 14977 fi 14978 ac_res=`eval echo '${'$as_ac_Header'}'` 14979 { echo "$as_me:$LINENO: result: $ac_res" >&5 14980 echo "${ECHO_T}$ac_res" >&6; } 14981 14982 fi 14983 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14984 cat >>confdefs.h <<_ACEOF 14985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14986 _ACEOF 14987 14988 fi 14989 14990 done 14991 14992 14993 14994 14995 14996 14997 14998 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14999 do 15000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15002 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15005 echo $ECHO_N "(cached) $ECHO_C" >&6 15006 fi 15007 ac_res=`eval echo '${'$as_ac_Header'}'` 15008 { echo "$as_me:$LINENO: result: $ac_res" >&5 15009 echo "${ECHO_T}$ac_res" >&6; } 15010 else 15011 # Is the header compilable? 15012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15014 cat >conftest.$ac_ext <<_ACEOF 15015 /* confdefs.h. */ 15016 _ACEOF 15017 cat confdefs.h >>conftest.$ac_ext 15018 cat >>conftest.$ac_ext <<_ACEOF 15019 /* end confdefs.h. */ 15020 $ac_includes_default 15021 #include <$ac_header> 15022 _ACEOF 15023 rm -f conftest.$ac_objext 15024 if { (ac_try="$ac_compile" 15025 case "(($ac_try" in 15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15027 *) ac_try_echo=$ac_try;; 15028 esac 15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15030 (eval "$ac_compile") 2>conftest.er1 15031 ac_status=$? 15032 grep -v '^ *+' conftest.er1 >conftest.err 15033 rm -f conftest.er1 15034 cat conftest.err >&5 15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15036 (exit $ac_status); } && 15037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15038 { (case "(($ac_try" in 15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15040 *) ac_try_echo=$ac_try;; 15041 esac 15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15043 (eval "$ac_try") 2>&5 15044 ac_status=$? 15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15046 (exit $ac_status); }; } && 15047 { ac_try='test -s conftest.$ac_objext' 15048 { (case "(($ac_try" in 15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15050 *) ac_try_echo=$ac_try;; 15051 esac 15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15053 (eval "$ac_try") 2>&5 15054 ac_status=$? 15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15056 (exit $ac_status); }; }; then 15057 ac_header_compiler=yes 15058 else 15059 echo "$as_me: failed program was:" >&5 15060 sed 's/^/| /' conftest.$ac_ext >&5 15061 15062 ac_header_compiler=no 15063 fi 15064 15065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15067 echo "${ECHO_T}$ac_header_compiler" >&6; } 15068 15069 # Is the header present? 15070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15072 cat >conftest.$ac_ext <<_ACEOF 15073 /* confdefs.h. */ 15074 _ACEOF 15075 cat confdefs.h >>conftest.$ac_ext 15076 cat >>conftest.$ac_ext <<_ACEOF 15077 /* end confdefs.h. */ 15078 #include <$ac_header> 15079 _ACEOF 15080 if { (ac_try="$ac_cpp conftest.$ac_ext" 15081 case "(($ac_try" in 15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15083 *) ac_try_echo=$ac_try;; 15084 esac 15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15087 ac_status=$? 15088 grep -v '^ *+' conftest.er1 >conftest.err 15089 rm -f conftest.er1 15090 cat conftest.err >&5 15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15092 (exit $ac_status); } >/dev/null; then 15093 if test -s conftest.err; then 15094 ac_cpp_err=$ac_c_preproc_warn_flag 15095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15096 else 15097 ac_cpp_err= 15098 fi 15099 else 15100 ac_cpp_err=yes 15101 fi 15102 if test -z "$ac_cpp_err"; then 15103 ac_header_preproc=yes 15104 else 15105 echo "$as_me: failed program was:" >&5 15106 sed 's/^/| /' conftest.$ac_ext >&5 15107 15108 ac_header_preproc=no 15109 fi 15110 15111 rm -f conftest.err conftest.$ac_ext 15112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15113 echo "${ECHO_T}$ac_header_preproc" >&6; } 15114 15115 # So? What about this header? 15116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15117 yes:no: ) 15118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15122 ac_header_preproc=yes 15123 ;; 15124 no:yes:* ) 15125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15137 ( cat <<\_ASBOX 15138 ## ------------------------------------ ## 15139 ## Report this to http://llvm.org/bugs/ ## 15140 ## ------------------------------------ ## 15141 _ASBOX 15142 ) | sed "s/^/$as_me: WARNING: /" >&2 15143 ;; 15144 esac 15145 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15148 echo $ECHO_N "(cached) $ECHO_C" >&6 15149 else 15150 eval "$as_ac_Header=\$ac_header_preproc" 15151 fi 15152 ac_res=`eval echo '${'$as_ac_Header'}'` 15153 { echo "$as_me:$LINENO: result: $ac_res" >&5 15154 echo "${ECHO_T}$ac_res" >&6; } 15155 15156 fi 15157 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15158 cat >>confdefs.h <<_ACEOF 15159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15160 _ACEOF 15161 15162 fi 15163 15164 done 15165 15166 15167 for ac_header in utime.h 15168 do 15169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15171 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15174 echo $ECHO_N "(cached) $ECHO_C" >&6 15175 fi 15176 ac_res=`eval echo '${'$as_ac_Header'}'` 15177 { echo "$as_me:$LINENO: result: $ac_res" >&5 15178 echo "${ECHO_T}$ac_res" >&6; } 15179 else 15180 # Is the header compilable? 15181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15183 cat >conftest.$ac_ext <<_ACEOF 15184 /* confdefs.h. */ 15185 _ACEOF 15186 cat confdefs.h >>conftest.$ac_ext 15187 cat >>conftest.$ac_ext <<_ACEOF 15188 /* end confdefs.h. */ 15189 $ac_includes_default 15190 #include <$ac_header> 15191 _ACEOF 15192 rm -f conftest.$ac_objext 15193 if { (ac_try="$ac_compile" 15194 case "(($ac_try" in 15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15196 *) ac_try_echo=$ac_try;; 15197 esac 15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15199 (eval "$ac_compile") 2>conftest.er1 15200 ac_status=$? 15201 grep -v '^ *+' conftest.er1 >conftest.err 15202 rm -f conftest.er1 15203 cat conftest.err >&5 15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15205 (exit $ac_status); } && 15206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15207 { (case "(($ac_try" in 15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15209 *) ac_try_echo=$ac_try;; 15210 esac 15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15212 (eval "$ac_try") 2>&5 15213 ac_status=$? 15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15215 (exit $ac_status); }; } && 15216 { ac_try='test -s conftest.$ac_objext' 15217 { (case "(($ac_try" in 15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15219 *) ac_try_echo=$ac_try;; 15220 esac 15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15222 (eval "$ac_try") 2>&5 15223 ac_status=$? 15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15225 (exit $ac_status); }; }; then 15226 ac_header_compiler=yes 15227 else 15228 echo "$as_me: failed program was:" >&5 15229 sed 's/^/| /' conftest.$ac_ext >&5 15230 15231 ac_header_compiler=no 15232 fi 15233 15234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15236 echo "${ECHO_T}$ac_header_compiler" >&6; } 15237 15238 # Is the header present? 15239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15241 cat >conftest.$ac_ext <<_ACEOF 15242 /* confdefs.h. */ 15243 _ACEOF 15244 cat confdefs.h >>conftest.$ac_ext 15245 cat >>conftest.$ac_ext <<_ACEOF 15246 /* end confdefs.h. */ 15247 #include <$ac_header> 15248 _ACEOF 15249 if { (ac_try="$ac_cpp conftest.$ac_ext" 15250 case "(($ac_try" in 15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15252 *) ac_try_echo=$ac_try;; 15253 esac 15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15256 ac_status=$? 15257 grep -v '^ *+' conftest.er1 >conftest.err 15258 rm -f conftest.er1 15259 cat conftest.err >&5 15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15261 (exit $ac_status); } >/dev/null; then 15262 if test -s conftest.err; then 15263 ac_cpp_err=$ac_c_preproc_warn_flag 15264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15265 else 15266 ac_cpp_err= 15267 fi 15268 else 15269 ac_cpp_err=yes 15270 fi 15271 if test -z "$ac_cpp_err"; then 15272 ac_header_preproc=yes 15273 else 15274 echo "$as_me: failed program was:" >&5 15275 sed 's/^/| /' conftest.$ac_ext >&5 15276 15277 ac_header_preproc=no 15278 fi 15279 15280 rm -f conftest.err conftest.$ac_ext 15281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15282 echo "${ECHO_T}$ac_header_preproc" >&6; } 15283 15284 # So? What about this header? 15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15286 yes:no: ) 15287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15291 ac_header_preproc=yes 15292 ;; 15293 no:yes:* ) 15294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15306 ( cat <<\_ASBOX 15307 ## ------------------------------------ ## 15308 ## Report this to http://llvm.org/bugs/ ## 15309 ## ------------------------------------ ## 15310 _ASBOX 15311 ) | sed "s/^/$as_me: WARNING: /" >&2 15312 ;; 15313 esac 15314 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15317 echo $ECHO_N "(cached) $ECHO_C" >&6 15318 else 15319 eval "$as_ac_Header=\$ac_header_preproc" 15320 fi 15321 ac_res=`eval echo '${'$as_ac_Header'}'` 15322 { echo "$as_me:$LINENO: result: $ac_res" >&5 15323 echo "${ECHO_T}$ac_res" >&6; } 15324 15325 fi 15326 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15327 cat >>confdefs.h <<_ACEOF 15328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15329 _ACEOF 15330 15331 fi 15332 15333 done 15334 15335 15336 15337 15338 15339 15340 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 15341 do 15342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15344 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15347 echo $ECHO_N "(cached) $ECHO_C" >&6 15348 fi 15349 ac_res=`eval echo '${'$as_ac_Header'}'` 15350 { echo "$as_me:$LINENO: result: $ac_res" >&5 15351 echo "${ECHO_T}$ac_res" >&6; } 15352 else 15353 # Is the header compilable? 15354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15356 cat >conftest.$ac_ext <<_ACEOF 15357 /* confdefs.h. */ 15358 _ACEOF 15359 cat confdefs.h >>conftest.$ac_ext 15360 cat >>conftest.$ac_ext <<_ACEOF 15361 /* end confdefs.h. */ 15362 $ac_includes_default 15363 #include <$ac_header> 15364 _ACEOF 15365 rm -f conftest.$ac_objext 15366 if { (ac_try="$ac_compile" 15367 case "(($ac_try" in 15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15369 *) ac_try_echo=$ac_try;; 15370 esac 15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15372 (eval "$ac_compile") 2>conftest.er1 15373 ac_status=$? 15374 grep -v '^ *+' conftest.er1 >conftest.err 15375 rm -f conftest.er1 15376 cat conftest.err >&5 15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15378 (exit $ac_status); } && 15379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15380 { (case "(($ac_try" in 15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15382 *) ac_try_echo=$ac_try;; 15383 esac 15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15385 (eval "$ac_try") 2>&5 15386 ac_status=$? 15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15388 (exit $ac_status); }; } && 15389 { ac_try='test -s conftest.$ac_objext' 15390 { (case "(($ac_try" in 15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15392 *) ac_try_echo=$ac_try;; 15393 esac 15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15395 (eval "$ac_try") 2>&5 15396 ac_status=$? 15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15398 (exit $ac_status); }; }; then 15399 ac_header_compiler=yes 15400 else 15401 echo "$as_me: failed program was:" >&5 15402 sed 's/^/| /' conftest.$ac_ext >&5 15403 15404 ac_header_compiler=no 15405 fi 15406 15407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15409 echo "${ECHO_T}$ac_header_compiler" >&6; } 15410 15411 # Is the header present? 15412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15414 cat >conftest.$ac_ext <<_ACEOF 15415 /* confdefs.h. */ 15416 _ACEOF 15417 cat confdefs.h >>conftest.$ac_ext 15418 cat >>conftest.$ac_ext <<_ACEOF 15419 /* end confdefs.h. */ 15420 #include <$ac_header> 15421 _ACEOF 15422 if { (ac_try="$ac_cpp conftest.$ac_ext" 15423 case "(($ac_try" in 15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15425 *) ac_try_echo=$ac_try;; 15426 esac 15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15429 ac_status=$? 15430 grep -v '^ *+' conftest.er1 >conftest.err 15431 rm -f conftest.er1 15432 cat conftest.err >&5 15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15434 (exit $ac_status); } >/dev/null; then 15435 if test -s conftest.err; then 15436 ac_cpp_err=$ac_c_preproc_warn_flag 15437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15438 else 15439 ac_cpp_err= 15440 fi 15441 else 15442 ac_cpp_err=yes 15443 fi 15444 if test -z "$ac_cpp_err"; then 15445 ac_header_preproc=yes 15446 else 15447 echo "$as_me: failed program was:" >&5 15448 sed 's/^/| /' conftest.$ac_ext >&5 15449 15450 ac_header_preproc=no 15451 fi 15452 15453 rm -f conftest.err conftest.$ac_ext 15454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15455 echo "${ECHO_T}$ac_header_preproc" >&6; } 15456 15457 # So? What about this header? 15458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15459 yes:no: ) 15460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15464 ac_header_preproc=yes 15465 ;; 15466 no:yes:* ) 15467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15479 ( cat <<\_ASBOX 15480 ## ------------------------------------ ## 15481 ## Report this to http://llvm.org/bugs/ ## 15482 ## ------------------------------------ ## 15483 _ASBOX 15484 ) | sed "s/^/$as_me: WARNING: /" >&2 15485 ;; 15486 esac 15487 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15490 echo $ECHO_N "(cached) $ECHO_C" >&6 15491 else 15492 eval "$as_ac_Header=\$ac_header_preproc" 15493 fi 15494 ac_res=`eval echo '${'$as_ac_Header'}'` 15495 { echo "$as_me:$LINENO: result: $ac_res" >&5 15496 echo "${ECHO_T}$ac_res" >&6; } 15497 15498 fi 15499 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15500 cat >>confdefs.h <<_ACEOF 15501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15502 _ACEOF 15503 15504 fi 15505 15506 done 15507 15508 15509 15510 15511 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h 15512 do 15513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15515 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15518 echo $ECHO_N "(cached) $ECHO_C" >&6 15519 fi 15520 ac_res=`eval echo '${'$as_ac_Header'}'` 15521 { echo "$as_me:$LINENO: result: $ac_res" >&5 15522 echo "${ECHO_T}$ac_res" >&6; } 15523 else 15524 # Is the header compilable? 15525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15527 cat >conftest.$ac_ext <<_ACEOF 15528 /* confdefs.h. */ 15529 _ACEOF 15530 cat confdefs.h >>conftest.$ac_ext 15531 cat >>conftest.$ac_ext <<_ACEOF 15532 /* end confdefs.h. */ 15533 $ac_includes_default 15534 #include <$ac_header> 15535 _ACEOF 15536 rm -f conftest.$ac_objext 15537 if { (ac_try="$ac_compile" 15538 case "(($ac_try" in 15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15540 *) ac_try_echo=$ac_try;; 15541 esac 15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15543 (eval "$ac_compile") 2>conftest.er1 15544 ac_status=$? 15545 grep -v '^ *+' conftest.er1 >conftest.err 15546 rm -f conftest.er1 15547 cat conftest.err >&5 15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15549 (exit $ac_status); } && 15550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15551 { (case "(($ac_try" in 15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15553 *) ac_try_echo=$ac_try;; 15554 esac 15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15556 (eval "$ac_try") 2>&5 15557 ac_status=$? 15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15559 (exit $ac_status); }; } && 15560 { ac_try='test -s conftest.$ac_objext' 15561 { (case "(($ac_try" in 15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15563 *) ac_try_echo=$ac_try;; 15564 esac 15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15566 (eval "$ac_try") 2>&5 15567 ac_status=$? 15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15569 (exit $ac_status); }; }; then 15570 ac_header_compiler=yes 15571 else 15572 echo "$as_me: failed program was:" >&5 15573 sed 's/^/| /' conftest.$ac_ext >&5 15574 15575 ac_header_compiler=no 15576 fi 15577 15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15580 echo "${ECHO_T}$ac_header_compiler" >&6; } 15581 15582 # Is the header present? 15583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15585 cat >conftest.$ac_ext <<_ACEOF 15586 /* confdefs.h. */ 15587 _ACEOF 15588 cat confdefs.h >>conftest.$ac_ext 15589 cat >>conftest.$ac_ext <<_ACEOF 15590 /* end confdefs.h. */ 15591 #include <$ac_header> 15592 _ACEOF 15593 if { (ac_try="$ac_cpp conftest.$ac_ext" 15594 case "(($ac_try" in 15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15596 *) ac_try_echo=$ac_try;; 15597 esac 15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15600 ac_status=$? 15601 grep -v '^ *+' conftest.er1 >conftest.err 15602 rm -f conftest.er1 15603 cat conftest.err >&5 15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15605 (exit $ac_status); } >/dev/null; then 15606 if test -s conftest.err; then 15607 ac_cpp_err=$ac_c_preproc_warn_flag 15608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15609 else 15610 ac_cpp_err= 15611 fi 15612 else 15613 ac_cpp_err=yes 15614 fi 15615 if test -z "$ac_cpp_err"; then 15616 ac_header_preproc=yes 15617 else 15618 echo "$as_me: failed program was:" >&5 15619 sed 's/^/| /' conftest.$ac_ext >&5 15620 15621 ac_header_preproc=no 15622 fi 15623 15624 rm -f conftest.err conftest.$ac_ext 15625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15626 echo "${ECHO_T}$ac_header_preproc" >&6; } 15627 15628 # So? What about this header? 15629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15630 yes:no: ) 15631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15635 ac_header_preproc=yes 15636 ;; 15637 no:yes:* ) 15638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15650 ( cat <<\_ASBOX 15651 ## ------------------------------------ ## 15652 ## Report this to http://llvm.org/bugs/ ## 15653 ## ------------------------------------ ## 15654 _ASBOX 15655 ) | sed "s/^/$as_me: WARNING: /" >&2 15656 ;; 15657 esac 15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15661 echo $ECHO_N "(cached) $ECHO_C" >&6 15662 else 15663 eval "$as_ac_Header=\$ac_header_preproc" 15664 fi 15665 ac_res=`eval echo '${'$as_ac_Header'}'` 15666 { echo "$as_me:$LINENO: result: $ac_res" >&5 15667 echo "${ECHO_T}$ac_res" >&6; } 15668 15669 fi 15670 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15671 cat >>confdefs.h <<_ACEOF 15672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15673 _ACEOF 15674 15675 fi 15676 15677 done 15678 15679 15680 for ac_header in valgrind/valgrind.h 15681 do 15682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15684 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15687 echo $ECHO_N "(cached) $ECHO_C" >&6 15688 fi 15689 ac_res=`eval echo '${'$as_ac_Header'}'` 15690 { echo "$as_me:$LINENO: result: $ac_res" >&5 15691 echo "${ECHO_T}$ac_res" >&6; } 15692 else 15693 # Is the header compilable? 15694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15696 cat >conftest.$ac_ext <<_ACEOF 15697 /* confdefs.h. */ 15698 _ACEOF 15699 cat confdefs.h >>conftest.$ac_ext 15700 cat >>conftest.$ac_ext <<_ACEOF 15701 /* end confdefs.h. */ 15702 $ac_includes_default 15703 #include <$ac_header> 15704 _ACEOF 15705 rm -f conftest.$ac_objext 15706 if { (ac_try="$ac_compile" 15707 case "(($ac_try" in 15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15709 *) ac_try_echo=$ac_try;; 15710 esac 15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15712 (eval "$ac_compile") 2>conftest.er1 15713 ac_status=$? 15714 grep -v '^ *+' conftest.er1 >conftest.err 15715 rm -f conftest.er1 15716 cat conftest.err >&5 15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15718 (exit $ac_status); } && 15719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15720 { (case "(($ac_try" in 15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15722 *) ac_try_echo=$ac_try;; 15723 esac 15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15725 (eval "$ac_try") 2>&5 15726 ac_status=$? 15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15728 (exit $ac_status); }; } && 15729 { ac_try='test -s conftest.$ac_objext' 15730 { (case "(($ac_try" in 15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15732 *) ac_try_echo=$ac_try;; 15733 esac 15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15735 (eval "$ac_try") 2>&5 15736 ac_status=$? 15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15738 (exit $ac_status); }; }; then 15739 ac_header_compiler=yes 15740 else 15741 echo "$as_me: failed program was:" >&5 15742 sed 's/^/| /' conftest.$ac_ext >&5 15743 15744 ac_header_compiler=no 15745 fi 15746 15747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15749 echo "${ECHO_T}$ac_header_compiler" >&6; } 15750 15751 # Is the header present? 15752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15754 cat >conftest.$ac_ext <<_ACEOF 15755 /* confdefs.h. */ 15756 _ACEOF 15757 cat confdefs.h >>conftest.$ac_ext 15758 cat >>conftest.$ac_ext <<_ACEOF 15759 /* end confdefs.h. */ 15760 #include <$ac_header> 15761 _ACEOF 15762 if { (ac_try="$ac_cpp conftest.$ac_ext" 15763 case "(($ac_try" in 15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15765 *) ac_try_echo=$ac_try;; 15766 esac 15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15769 ac_status=$? 15770 grep -v '^ *+' conftest.er1 >conftest.err 15771 rm -f conftest.er1 15772 cat conftest.err >&5 15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15774 (exit $ac_status); } >/dev/null; then 15775 if test -s conftest.err; then 15776 ac_cpp_err=$ac_c_preproc_warn_flag 15777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15778 else 15779 ac_cpp_err= 15780 fi 15781 else 15782 ac_cpp_err=yes 15783 fi 15784 if test -z "$ac_cpp_err"; then 15785 ac_header_preproc=yes 15786 else 15787 echo "$as_me: failed program was:" >&5 15788 sed 's/^/| /' conftest.$ac_ext >&5 15789 15790 ac_header_preproc=no 15791 fi 15792 15793 rm -f conftest.err conftest.$ac_ext 15794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15795 echo "${ECHO_T}$ac_header_preproc" >&6; } 15796 15797 # So? What about this header? 15798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15799 yes:no: ) 15800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15804 ac_header_preproc=yes 15805 ;; 15806 no:yes:* ) 15807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15819 ( cat <<\_ASBOX 15820 ## ------------------------------------ ## 15821 ## Report this to http://llvm.org/bugs/ ## 15822 ## ------------------------------------ ## 15823 _ASBOX 15824 ) | sed "s/^/$as_me: WARNING: /" >&2 15825 ;; 15826 esac 15827 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15830 echo $ECHO_N "(cached) $ECHO_C" >&6 15831 else 15832 eval "$as_ac_Header=\$ac_header_preproc" 15833 fi 15834 ac_res=`eval echo '${'$as_ac_Header'}'` 15835 { echo "$as_me:$LINENO: result: $ac_res" >&5 15836 echo "${ECHO_T}$ac_res" >&6; } 15837 15838 fi 15839 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15840 cat >>confdefs.h <<_ACEOF 15841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15842 _ACEOF 15843 15844 fi 15845 15846 done 15847 15848 15849 for ac_header in fenv.h 15850 do 15851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15853 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15856 echo $ECHO_N "(cached) $ECHO_C" >&6 15857 fi 15858 ac_res=`eval echo '${'$as_ac_Header'}'` 15859 { echo "$as_me:$LINENO: result: $ac_res" >&5 15860 echo "${ECHO_T}$ac_res" >&6; } 15861 else 15862 # Is the header compilable? 15863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15865 cat >conftest.$ac_ext <<_ACEOF 15866 /* confdefs.h. */ 15867 _ACEOF 15868 cat confdefs.h >>conftest.$ac_ext 15869 cat >>conftest.$ac_ext <<_ACEOF 15870 /* end confdefs.h. */ 15871 $ac_includes_default 15872 #include <$ac_header> 15873 _ACEOF 15874 rm -f conftest.$ac_objext 15875 if { (ac_try="$ac_compile" 15876 case "(($ac_try" in 15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15878 *) ac_try_echo=$ac_try;; 15879 esac 15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15881 (eval "$ac_compile") 2>conftest.er1 15882 ac_status=$? 15883 grep -v '^ *+' conftest.er1 >conftest.err 15884 rm -f conftest.er1 15885 cat conftest.err >&5 15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15887 (exit $ac_status); } && 15888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15889 { (case "(($ac_try" in 15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15891 *) ac_try_echo=$ac_try;; 15892 esac 15893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15894 (eval "$ac_try") 2>&5 15895 ac_status=$? 15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15897 (exit $ac_status); }; } && 15898 { ac_try='test -s conftest.$ac_objext' 15899 { (case "(($ac_try" in 15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15901 *) ac_try_echo=$ac_try;; 15902 esac 15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15904 (eval "$ac_try") 2>&5 15905 ac_status=$? 15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15907 (exit $ac_status); }; }; then 15908 ac_header_compiler=yes 15909 else 15910 echo "$as_me: failed program was:" >&5 15911 sed 's/^/| /' conftest.$ac_ext >&5 15912 15913 ac_header_compiler=no 15914 fi 15915 15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15918 echo "${ECHO_T}$ac_header_compiler" >&6; } 15919 15920 # Is the header present? 15921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15923 cat >conftest.$ac_ext <<_ACEOF 15924 /* confdefs.h. */ 15925 _ACEOF 15926 cat confdefs.h >>conftest.$ac_ext 15927 cat >>conftest.$ac_ext <<_ACEOF 15928 /* end confdefs.h. */ 15929 #include <$ac_header> 15930 _ACEOF 15931 if { (ac_try="$ac_cpp conftest.$ac_ext" 15932 case "(($ac_try" in 15933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15934 *) ac_try_echo=$ac_try;; 15935 esac 15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15938 ac_status=$? 15939 grep -v '^ *+' conftest.er1 >conftest.err 15940 rm -f conftest.er1 15941 cat conftest.err >&5 15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15943 (exit $ac_status); } >/dev/null; then 15944 if test -s conftest.err; then 15945 ac_cpp_err=$ac_c_preproc_warn_flag 15946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15947 else 15948 ac_cpp_err= 15949 fi 15950 else 15951 ac_cpp_err=yes 15952 fi 15953 if test -z "$ac_cpp_err"; then 15954 ac_header_preproc=yes 15955 else 15956 echo "$as_me: failed program was:" >&5 15957 sed 's/^/| /' conftest.$ac_ext >&5 15958 15959 ac_header_preproc=no 15960 fi 15961 15962 rm -f conftest.err conftest.$ac_ext 15963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15964 echo "${ECHO_T}$ac_header_preproc" >&6; } 15965 15966 # So? What about this header? 15967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15968 yes:no: ) 15969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15973 ac_header_preproc=yes 15974 ;; 15975 no:yes:* ) 15976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15988 ( cat <<\_ASBOX 15989 ## ------------------------------------ ## 15990 ## Report this to http://llvm.org/bugs/ ## 15991 ## ------------------------------------ ## 15992 _ASBOX 15993 ) | sed "s/^/$as_me: WARNING: /" >&2 15994 ;; 15995 esac 15996 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15999 echo $ECHO_N "(cached) $ECHO_C" >&6 16000 else 16001 eval "$as_ac_Header=\$ac_header_preproc" 16002 fi 16003 ac_res=`eval echo '${'$as_ac_Header'}'` 16004 { echo "$as_me:$LINENO: result: $ac_res" >&5 16005 echo "${ECHO_T}$ac_res" >&6; } 16006 16007 fi 16008 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16009 cat >>confdefs.h <<_ACEOF 16010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16011 _ACEOF 16012 16013 fi 16014 16015 done 16016 16017 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5 16018 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; } 16019 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then 16020 echo $ECHO_N "(cached) $ECHO_C" >&6 16021 else 16022 cat >conftest.$ac_ext <<_ACEOF 16023 /* confdefs.h. */ 16024 _ACEOF 16025 cat confdefs.h >>conftest.$ac_ext 16026 cat >>conftest.$ac_ext <<_ACEOF 16027 /* end confdefs.h. */ 16028 #include <fenv.h> 16029 16030 int 16031 main () 16032 { 16033 #ifndef FE_ALL_EXCEPT 16034 char *p = (char *) FE_ALL_EXCEPT; 16035 return !p; 16036 #endif 16037 16038 ; 16039 return 0; 16040 } 16041 _ACEOF 16042 rm -f conftest.$ac_objext 16043 if { (ac_try="$ac_compile" 16044 case "(($ac_try" in 16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16046 *) ac_try_echo=$ac_try;; 16047 esac 16048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16049 (eval "$ac_compile") 2>conftest.er1 16050 ac_status=$? 16051 grep -v '^ *+' conftest.er1 >conftest.err 16052 rm -f conftest.er1 16053 cat conftest.err >&5 16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16055 (exit $ac_status); } && 16056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16057 { (case "(($ac_try" in 16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16059 *) ac_try_echo=$ac_try;; 16060 esac 16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16062 (eval "$ac_try") 2>&5 16063 ac_status=$? 16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16065 (exit $ac_status); }; } && 16066 { ac_try='test -s conftest.$ac_objext' 16067 { (case "(($ac_try" in 16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16069 *) ac_try_echo=$ac_try;; 16070 esac 16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16072 (eval "$ac_try") 2>&5 16073 ac_status=$? 16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16075 (exit $ac_status); }; }; then 16076 ac_cv_have_decl_FE_ALL_EXCEPT=yes 16077 else 16078 echo "$as_me: failed program was:" >&5 16079 sed 's/^/| /' conftest.$ac_ext >&5 16080 16081 ac_cv_have_decl_FE_ALL_EXCEPT=no 16082 fi 16083 16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16085 fi 16086 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5 16087 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; } 16088 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then 16089 16090 cat >>confdefs.h <<_ACEOF 16091 #define HAVE_DECL_FE_ALL_EXCEPT 1 16092 _ACEOF 16093 16094 16095 else 16096 cat >>confdefs.h <<_ACEOF 16097 #define HAVE_DECL_FE_ALL_EXCEPT 0 16098 _ACEOF 16099 16100 16101 fi 16102 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5 16103 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; } 16104 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then 16105 echo $ECHO_N "(cached) $ECHO_C" >&6 16106 else 16107 cat >conftest.$ac_ext <<_ACEOF 16108 /* confdefs.h. */ 16109 _ACEOF 16110 cat confdefs.h >>conftest.$ac_ext 16111 cat >>conftest.$ac_ext <<_ACEOF 16112 /* end confdefs.h. */ 16113 #include <fenv.h> 16114 16115 int 16116 main () 16117 { 16118 #ifndef FE_INEXACT 16119 char *p = (char *) FE_INEXACT; 16120 return !p; 16121 #endif 16122 16123 ; 16124 return 0; 16125 } 16126 _ACEOF 16127 rm -f conftest.$ac_objext 16128 if { (ac_try="$ac_compile" 16129 case "(($ac_try" in 16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16131 *) ac_try_echo=$ac_try;; 16132 esac 16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16134 (eval "$ac_compile") 2>conftest.er1 16135 ac_status=$? 16136 grep -v '^ *+' conftest.er1 >conftest.err 16137 rm -f conftest.er1 16138 cat conftest.err >&5 16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16140 (exit $ac_status); } && 16141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16142 { (case "(($ac_try" in 16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16144 *) ac_try_echo=$ac_try;; 16145 esac 16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16147 (eval "$ac_try") 2>&5 16148 ac_status=$? 16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16150 (exit $ac_status); }; } && 16151 { ac_try='test -s conftest.$ac_objext' 16152 { (case "(($ac_try" in 16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16154 *) ac_try_echo=$ac_try;; 16155 esac 16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16157 (eval "$ac_try") 2>&5 16158 ac_status=$? 16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16160 (exit $ac_status); }; }; then 16161 ac_cv_have_decl_FE_INEXACT=yes 16162 else 16163 echo "$as_me: failed program was:" >&5 16164 sed 's/^/| /' conftest.$ac_ext >&5 16165 16166 ac_cv_have_decl_FE_INEXACT=no 16167 fi 16168 16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16170 fi 16171 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5 16172 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; } 16173 if test $ac_cv_have_decl_FE_INEXACT = yes; then 16174 16175 cat >>confdefs.h <<_ACEOF 16176 #define HAVE_DECL_FE_INEXACT 1 16177 _ACEOF 16178 16179 16180 else 16181 cat >>confdefs.h <<_ACEOF 16182 #define HAVE_DECL_FE_INEXACT 0 16183 _ACEOF 16184 16185 16186 fi 16187 16188 16189 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 16190 16191 for ac_header in pthread.h 16192 do 16193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16195 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16198 echo $ECHO_N "(cached) $ECHO_C" >&6 16199 fi 16200 ac_res=`eval echo '${'$as_ac_Header'}'` 16201 { echo "$as_me:$LINENO: result: $ac_res" >&5 16202 echo "${ECHO_T}$ac_res" >&6; } 16203 else 16204 # Is the header compilable? 16205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 16206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16207 cat >conftest.$ac_ext <<_ACEOF 16208 /* confdefs.h. */ 16209 _ACEOF 16210 cat confdefs.h >>conftest.$ac_ext 16211 cat >>conftest.$ac_ext <<_ACEOF 16212 /* end confdefs.h. */ 16213 $ac_includes_default 16214 #include <$ac_header> 16215 _ACEOF 16216 rm -f conftest.$ac_objext 16217 if { (ac_try="$ac_compile" 16218 case "(($ac_try" in 16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16220 *) ac_try_echo=$ac_try;; 16221 esac 16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16223 (eval "$ac_compile") 2>conftest.er1 16224 ac_status=$? 16225 grep -v '^ *+' conftest.er1 >conftest.err 16226 rm -f conftest.er1 16227 cat conftest.err >&5 16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16229 (exit $ac_status); } && 16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16231 { (case "(($ac_try" in 16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16233 *) ac_try_echo=$ac_try;; 16234 esac 16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16236 (eval "$ac_try") 2>&5 16237 ac_status=$? 16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16239 (exit $ac_status); }; } && 16240 { ac_try='test -s conftest.$ac_objext' 16241 { (case "(($ac_try" in 16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16243 *) ac_try_echo=$ac_try;; 16244 esac 16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16246 (eval "$ac_try") 2>&5 16247 ac_status=$? 16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16249 (exit $ac_status); }; }; then 16250 ac_header_compiler=yes 16251 else 16252 echo "$as_me: failed program was:" >&5 16253 sed 's/^/| /' conftest.$ac_ext >&5 16254 16255 ac_header_compiler=no 16256 fi 16257 16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16260 echo "${ECHO_T}$ac_header_compiler" >&6; } 16261 16262 # Is the header present? 16263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 16264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16265 cat >conftest.$ac_ext <<_ACEOF 16266 /* confdefs.h. */ 16267 _ACEOF 16268 cat confdefs.h >>conftest.$ac_ext 16269 cat >>conftest.$ac_ext <<_ACEOF 16270 /* end confdefs.h. */ 16271 #include <$ac_header> 16272 _ACEOF 16273 if { (ac_try="$ac_cpp conftest.$ac_ext" 16274 case "(($ac_try" in 16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16276 *) ac_try_echo=$ac_try;; 16277 esac 16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16280 ac_status=$? 16281 grep -v '^ *+' conftest.er1 >conftest.err 16282 rm -f conftest.er1 16283 cat conftest.err >&5 16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16285 (exit $ac_status); } >/dev/null; then 16286 if test -s conftest.err; then 16287 ac_cpp_err=$ac_c_preproc_warn_flag 16288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16289 else 16290 ac_cpp_err= 16291 fi 16292 else 16293 ac_cpp_err=yes 16294 fi 16295 if test -z "$ac_cpp_err"; then 16296 ac_header_preproc=yes 16297 else 16298 echo "$as_me: failed program was:" >&5 16299 sed 's/^/| /' conftest.$ac_ext >&5 16300 16301 ac_header_preproc=no 16302 fi 16303 16304 rm -f conftest.err conftest.$ac_ext 16305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16306 echo "${ECHO_T}$ac_header_preproc" >&6; } 16307 16308 # So? What about this header? 16309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16310 yes:no: ) 16311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16315 ac_header_preproc=yes 16316 ;; 16317 no:yes:* ) 16318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16330 ( cat <<\_ASBOX 16331 ## ------------------------------------ ## 16332 ## Report this to http://llvm.org/bugs/ ## 16333 ## ------------------------------------ ## 16334 _ASBOX 16335 ) | sed "s/^/$as_me: WARNING: /" >&2 16336 ;; 16337 esac 16338 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16341 echo $ECHO_N "(cached) $ECHO_C" >&6 16342 else 16343 eval "$as_ac_Header=\$ac_header_preproc" 16344 fi 16345 ac_res=`eval echo '${'$as_ac_Header'}'` 16346 { echo "$as_me:$LINENO: result: $ac_res" >&5 16347 echo "${ECHO_T}$ac_res" >&6; } 16348 16349 fi 16350 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16351 cat >>confdefs.h <<_ACEOF 16352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16353 _ACEOF 16354 HAVE_PTHREAD=1 16355 16356 else 16357 HAVE_PTHREAD=0 16358 16359 fi 16360 16361 done 16362 16363 else 16364 HAVE_PTHREAD=0 16365 16366 fi 16367 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 16368 16369 for ac_header in zlib.h 16370 do 16371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16373 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16376 echo $ECHO_N "(cached) $ECHO_C" >&6 16377 fi 16378 ac_res=`eval echo '${'$as_ac_Header'}'` 16379 { echo "$as_me:$LINENO: result: $ac_res" >&5 16380 echo "${ECHO_T}$ac_res" >&6; } 16381 else 16382 # Is the header compilable? 16383 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 16384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16385 cat >conftest.$ac_ext <<_ACEOF 16386 /* confdefs.h. */ 16387 _ACEOF 16388 cat confdefs.h >>conftest.$ac_ext 16389 cat >>conftest.$ac_ext <<_ACEOF 16390 /* end confdefs.h. */ 16391 $ac_includes_default 16392 #include <$ac_header> 16393 _ACEOF 16394 rm -f conftest.$ac_objext 16395 if { (ac_try="$ac_compile" 16396 case "(($ac_try" in 16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16398 *) ac_try_echo=$ac_try;; 16399 esac 16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16401 (eval "$ac_compile") 2>conftest.er1 16402 ac_status=$? 16403 grep -v '^ *+' conftest.er1 >conftest.err 16404 rm -f conftest.er1 16405 cat conftest.err >&5 16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16407 (exit $ac_status); } && 16408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16409 { (case "(($ac_try" in 16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16411 *) ac_try_echo=$ac_try;; 16412 esac 16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16414 (eval "$ac_try") 2>&5 16415 ac_status=$? 16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16417 (exit $ac_status); }; } && 16418 { ac_try='test -s conftest.$ac_objext' 16419 { (case "(($ac_try" in 16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16421 *) ac_try_echo=$ac_try;; 16422 esac 16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16424 (eval "$ac_try") 2>&5 16425 ac_status=$? 16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16427 (exit $ac_status); }; }; then 16428 ac_header_compiler=yes 16429 else 16430 echo "$as_me: failed program was:" >&5 16431 sed 's/^/| /' conftest.$ac_ext >&5 16432 16433 ac_header_compiler=no 16434 fi 16435 16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16438 echo "${ECHO_T}$ac_header_compiler" >&6; } 16439 16440 # Is the header present? 16441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 16442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16443 cat >conftest.$ac_ext <<_ACEOF 16444 /* confdefs.h. */ 16445 _ACEOF 16446 cat confdefs.h >>conftest.$ac_ext 16447 cat >>conftest.$ac_ext <<_ACEOF 16448 /* end confdefs.h. */ 16449 #include <$ac_header> 16450 _ACEOF 16451 if { (ac_try="$ac_cpp conftest.$ac_ext" 16452 case "(($ac_try" in 16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16454 *) ac_try_echo=$ac_try;; 16455 esac 16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16458 ac_status=$? 16459 grep -v '^ *+' conftest.er1 >conftest.err 16460 rm -f conftest.er1 16461 cat conftest.err >&5 16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16463 (exit $ac_status); } >/dev/null; then 16464 if test -s conftest.err; then 16465 ac_cpp_err=$ac_c_preproc_warn_flag 16466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16467 else 16468 ac_cpp_err= 16469 fi 16470 else 16471 ac_cpp_err=yes 16472 fi 16473 if test -z "$ac_cpp_err"; then 16474 ac_header_preproc=yes 16475 else 16476 echo "$as_me: failed program was:" >&5 16477 sed 's/^/| /' conftest.$ac_ext >&5 16478 16479 ac_header_preproc=no 16480 fi 16481 16482 rm -f conftest.err conftest.$ac_ext 16483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16484 echo "${ECHO_T}$ac_header_preproc" >&6; } 16485 16486 # So? What about this header? 16487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16488 yes:no: ) 16489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16493 ac_header_preproc=yes 16494 ;; 16495 no:yes:* ) 16496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16508 ( cat <<\_ASBOX 16509 ## ------------------------------------ ## 16510 ## Report this to http://llvm.org/bugs/ ## 16511 ## ------------------------------------ ## 16512 _ASBOX 16513 ) | sed "s/^/$as_me: WARNING: /" >&2 16514 ;; 16515 esac 16516 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16519 echo $ECHO_N "(cached) $ECHO_C" >&6 16520 else 16521 eval "$as_ac_Header=\$ac_header_preproc" 16522 fi 16523 ac_res=`eval echo '${'$as_ac_Header'}'` 16524 { echo "$as_me:$LINENO: result: $ac_res" >&5 16525 echo "${ECHO_T}$ac_res" >&6; } 16526 16527 fi 16528 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16529 cat >>confdefs.h <<_ACEOF 16530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16531 _ACEOF 16532 HAVE_LIBZ=1 16533 16534 else 16535 HAVE_LIBZ=0 16536 16537 fi 16538 16539 done 16540 16541 else 16542 HAVE_LIBZ=0 16543 16544 fi 16545 16546 if test "$llvm_cv_enable_curses" = "yes" ; then 16547 16548 16549 16550 16551 16552 for ac_header in curses.h ncurses.h ncursesw.h ncurses/curses.h ncursesw/curses.h 16553 do 16554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16556 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16559 echo $ECHO_N "(cached) $ECHO_C" >&6 16560 fi 16561 ac_res=`eval echo '${'$as_ac_Header'}'` 16562 { echo "$as_me:$LINENO: result: $ac_res" >&5 16563 echo "${ECHO_T}$ac_res" >&6; } 16564 else 16565 # Is the header compilable? 16566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 16567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16568 cat >conftest.$ac_ext <<_ACEOF 16569 /* confdefs.h. */ 16570 _ACEOF 16571 cat confdefs.h >>conftest.$ac_ext 16572 cat >>conftest.$ac_ext <<_ACEOF 16573 /* end confdefs.h. */ 16574 $ac_includes_default 16575 #include <$ac_header> 16576 _ACEOF 16577 rm -f conftest.$ac_objext 16578 if { (ac_try="$ac_compile" 16579 case "(($ac_try" in 16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16581 *) ac_try_echo=$ac_try;; 16582 esac 16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16584 (eval "$ac_compile") 2>conftest.er1 16585 ac_status=$? 16586 grep -v '^ *+' conftest.er1 >conftest.err 16587 rm -f conftest.er1 16588 cat conftest.err >&5 16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16590 (exit $ac_status); } && 16591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16592 { (case "(($ac_try" in 16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16594 *) ac_try_echo=$ac_try;; 16595 esac 16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16597 (eval "$ac_try") 2>&5 16598 ac_status=$? 16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16600 (exit $ac_status); }; } && 16601 { ac_try='test -s conftest.$ac_objext' 16602 { (case "(($ac_try" in 16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16604 *) ac_try_echo=$ac_try;; 16605 esac 16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16607 (eval "$ac_try") 2>&5 16608 ac_status=$? 16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16610 (exit $ac_status); }; }; then 16611 ac_header_compiler=yes 16612 else 16613 echo "$as_me: failed program was:" >&5 16614 sed 's/^/| /' conftest.$ac_ext >&5 16615 16616 ac_header_compiler=no 16617 fi 16618 16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16621 echo "${ECHO_T}$ac_header_compiler" >&6; } 16622 16623 # Is the header present? 16624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 16625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16626 cat >conftest.$ac_ext <<_ACEOF 16627 /* confdefs.h. */ 16628 _ACEOF 16629 cat confdefs.h >>conftest.$ac_ext 16630 cat >>conftest.$ac_ext <<_ACEOF 16631 /* end confdefs.h. */ 16632 #include <$ac_header> 16633 _ACEOF 16634 if { (ac_try="$ac_cpp conftest.$ac_ext" 16635 case "(($ac_try" in 16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16637 *) ac_try_echo=$ac_try;; 16638 esac 16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16641 ac_status=$? 16642 grep -v '^ *+' conftest.er1 >conftest.err 16643 rm -f conftest.er1 16644 cat conftest.err >&5 16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16646 (exit $ac_status); } >/dev/null; then 16647 if test -s conftest.err; then 16648 ac_cpp_err=$ac_c_preproc_warn_flag 16649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16650 else 16651 ac_cpp_err= 16652 fi 16653 else 16654 ac_cpp_err=yes 16655 fi 16656 if test -z "$ac_cpp_err"; then 16657 ac_header_preproc=yes 16658 else 16659 echo "$as_me: failed program was:" >&5 16660 sed 's/^/| /' conftest.$ac_ext >&5 16661 16662 ac_header_preproc=no 16663 fi 16664 16665 rm -f conftest.err conftest.$ac_ext 16666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16667 echo "${ECHO_T}$ac_header_preproc" >&6; } 16668 16669 # So? What about this header? 16670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16671 yes:no: ) 16672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16676 ac_header_preproc=yes 16677 ;; 16678 no:yes:* ) 16679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16691 ( cat <<\_ASBOX 16692 ## ------------------------------------ ## 16693 ## Report this to http://llvm.org/bugs/ ## 16694 ## ------------------------------------ ## 16695 _ASBOX 16696 ) | sed "s/^/$as_me: WARNING: /" >&2 16697 ;; 16698 esac 16699 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16702 echo $ECHO_N "(cached) $ECHO_C" >&6 16703 else 16704 eval "$as_ac_Header=\$ac_header_preproc" 16705 fi 16706 ac_res=`eval echo '${'$as_ac_Header'}'` 16707 { echo "$as_me:$LINENO: result: $ac_res" >&5 16708 echo "${ECHO_T}$ac_res" >&6; } 16709 16710 fi 16711 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16712 cat >>confdefs.h <<_ACEOF 16713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16714 _ACEOF 16715 16716 fi 16717 16718 done 16719 16720 fi 16721 16722 if test "$llvm_cv_enable_libffi" = "yes" ; then 16723 16724 16725 for ac_header in ffi.h ffi/ffi.h 16726 do 16727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16729 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16732 echo $ECHO_N "(cached) $ECHO_C" >&6 16733 fi 16734 ac_res=`eval echo '${'$as_ac_Header'}'` 16735 { echo "$as_me:$LINENO: result: $ac_res" >&5 16736 echo "${ECHO_T}$ac_res" >&6; } 16737 else 16738 # Is the header compilable? 16739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 16740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16741 cat >conftest.$ac_ext <<_ACEOF 16742 /* confdefs.h. */ 16743 _ACEOF 16744 cat confdefs.h >>conftest.$ac_ext 16745 cat >>conftest.$ac_ext <<_ACEOF 16746 /* end confdefs.h. */ 16747 $ac_includes_default 16748 #include <$ac_header> 16749 _ACEOF 16750 rm -f conftest.$ac_objext 16751 if { (ac_try="$ac_compile" 16752 case "(($ac_try" in 16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16754 *) ac_try_echo=$ac_try;; 16755 esac 16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16757 (eval "$ac_compile") 2>conftest.er1 16758 ac_status=$? 16759 grep -v '^ *+' conftest.er1 >conftest.err 16760 rm -f conftest.er1 16761 cat conftest.err >&5 16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16763 (exit $ac_status); } && 16764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16765 { (case "(($ac_try" in 16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16767 *) ac_try_echo=$ac_try;; 16768 esac 16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16770 (eval "$ac_try") 2>&5 16771 ac_status=$? 16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16773 (exit $ac_status); }; } && 16774 { ac_try='test -s conftest.$ac_objext' 16775 { (case "(($ac_try" in 16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16777 *) ac_try_echo=$ac_try;; 16778 esac 16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16780 (eval "$ac_try") 2>&5 16781 ac_status=$? 16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16783 (exit $ac_status); }; }; then 16784 ac_header_compiler=yes 16785 else 16786 echo "$as_me: failed program was:" >&5 16787 sed 's/^/| /' conftest.$ac_ext >&5 16788 16789 ac_header_compiler=no 16790 fi 16791 16792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16794 echo "${ECHO_T}$ac_header_compiler" >&6; } 16795 16796 # Is the header present? 16797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 16798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 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 #include <$ac_header> 16806 _ACEOF 16807 if { (ac_try="$ac_cpp conftest.$ac_ext" 16808 case "(($ac_try" in 16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16810 *) ac_try_echo=$ac_try;; 16811 esac 16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16814 ac_status=$? 16815 grep -v '^ *+' conftest.er1 >conftest.err 16816 rm -f conftest.er1 16817 cat conftest.err >&5 16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16819 (exit $ac_status); } >/dev/null; then 16820 if test -s conftest.err; then 16821 ac_cpp_err=$ac_c_preproc_warn_flag 16822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16823 else 16824 ac_cpp_err= 16825 fi 16826 else 16827 ac_cpp_err=yes 16828 fi 16829 if test -z "$ac_cpp_err"; then 16830 ac_header_preproc=yes 16831 else 16832 echo "$as_me: failed program was:" >&5 16833 sed 's/^/| /' conftest.$ac_ext >&5 16834 16835 ac_header_preproc=no 16836 fi 16837 16838 rm -f conftest.err conftest.$ac_ext 16839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16840 echo "${ECHO_T}$ac_header_preproc" >&6; } 16841 16842 # So? What about this header? 16843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16844 yes:no: ) 16845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16849 ac_header_preproc=yes 16850 ;; 16851 no:yes:* ) 16852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16864 ( cat <<\_ASBOX 16865 ## ------------------------------------ ## 16866 ## Report this to http://llvm.org/bugs/ ## 16867 ## ------------------------------------ ## 16868 _ASBOX 16869 ) | sed "s/^/$as_me: WARNING: /" >&2 16870 ;; 16871 esac 16872 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16875 echo $ECHO_N "(cached) $ECHO_C" >&6 16876 else 16877 eval "$as_ac_Header=\$ac_header_preproc" 16878 fi 16879 ac_res=`eval echo '${'$as_ac_Header'}'` 16880 { echo "$as_me:$LINENO: result: $ac_res" >&5 16881 echo "${ECHO_T}$ac_res" >&6; } 16882 16883 fi 16884 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16885 cat >>confdefs.h <<_ACEOF 16886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16887 _ACEOF 16888 16889 fi 16890 16891 done 16892 16893 fi 16894 16895 16896 for ac_header in CrashReporterClient.h 16897 do 16898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16900 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16903 echo $ECHO_N "(cached) $ECHO_C" >&6 16904 fi 16905 ac_res=`eval echo '${'$as_ac_Header'}'` 16906 { echo "$as_me:$LINENO: result: $ac_res" >&5 16907 echo "${ECHO_T}$ac_res" >&6; } 16908 else 16909 # Is the header compilable? 16910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 16911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16912 cat >conftest.$ac_ext <<_ACEOF 16913 /* confdefs.h. */ 16914 _ACEOF 16915 cat confdefs.h >>conftest.$ac_ext 16916 cat >>conftest.$ac_ext <<_ACEOF 16917 /* end confdefs.h. */ 16918 $ac_includes_default 16919 #include <$ac_header> 16920 _ACEOF 16921 rm -f conftest.$ac_objext 16922 if { (ac_try="$ac_compile" 16923 case "(($ac_try" in 16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16925 *) ac_try_echo=$ac_try;; 16926 esac 16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16928 (eval "$ac_compile") 2>conftest.er1 16929 ac_status=$? 16930 grep -v '^ *+' conftest.er1 >conftest.err 16931 rm -f conftest.er1 16932 cat conftest.err >&5 16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16934 (exit $ac_status); } && 16935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16936 { (case "(($ac_try" in 16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16938 *) ac_try_echo=$ac_try;; 16939 esac 16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16941 (eval "$ac_try") 2>&5 16942 ac_status=$? 16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16944 (exit $ac_status); }; } && 16945 { ac_try='test -s conftest.$ac_objext' 16946 { (case "(($ac_try" in 16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16948 *) ac_try_echo=$ac_try;; 16949 esac 16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16951 (eval "$ac_try") 2>&5 16952 ac_status=$? 16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16954 (exit $ac_status); }; }; then 16955 ac_header_compiler=yes 16956 else 16957 echo "$as_me: failed program was:" >&5 16958 sed 's/^/| /' conftest.$ac_ext >&5 16959 16960 ac_header_compiler=no 16961 fi 16962 16963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16965 echo "${ECHO_T}$ac_header_compiler" >&6; } 16966 16967 # Is the header present? 16968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 16969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16970 cat >conftest.$ac_ext <<_ACEOF 16971 /* confdefs.h. */ 16972 _ACEOF 16973 cat confdefs.h >>conftest.$ac_ext 16974 cat >>conftest.$ac_ext <<_ACEOF 16975 /* end confdefs.h. */ 16976 #include <$ac_header> 16977 _ACEOF 16978 if { (ac_try="$ac_cpp conftest.$ac_ext" 16979 case "(($ac_try" in 16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16981 *) ac_try_echo=$ac_try;; 16982 esac 16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16985 ac_status=$? 16986 grep -v '^ *+' conftest.er1 >conftest.err 16987 rm -f conftest.er1 16988 cat conftest.err >&5 16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16990 (exit $ac_status); } >/dev/null; then 16991 if test -s conftest.err; then 16992 ac_cpp_err=$ac_c_preproc_warn_flag 16993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16994 else 16995 ac_cpp_err= 16996 fi 16997 else 16998 ac_cpp_err=yes 16999 fi 17000 if test -z "$ac_cpp_err"; then 17001 ac_header_preproc=yes 17002 else 17003 echo "$as_me: failed program was:" >&5 17004 sed 's/^/| /' conftest.$ac_ext >&5 17005 17006 ac_header_preproc=no 17007 fi 17008 17009 rm -f conftest.err conftest.$ac_ext 17010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17011 echo "${ECHO_T}$ac_header_preproc" >&6; } 17012 17013 # So? What about this header? 17014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17015 yes:no: ) 17016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17020 ac_header_preproc=yes 17021 ;; 17022 no:yes:* ) 17023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17035 ( cat <<\_ASBOX 17036 ## ------------------------------------ ## 17037 ## Report this to http://llvm.org/bugs/ ## 17038 ## ------------------------------------ ## 17039 _ASBOX 17040 ) | sed "s/^/$as_me: WARNING: /" >&2 17041 ;; 17042 esac 17043 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17046 echo $ECHO_N "(cached) $ECHO_C" >&6 17047 else 17048 eval "$as_ac_Header=\$ac_header_preproc" 17049 fi 17050 ac_res=`eval echo '${'$as_ac_Header'}'` 17051 { echo "$as_me:$LINENO: result: $ac_res" >&5 17052 echo "${ECHO_T}$ac_res" >&6; } 17053 17054 fi 17055 if test `eval echo '${'$as_ac_Header'}'` = yes; then 17056 cat >>confdefs.h <<_ACEOF 17057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17058 _ACEOF 17059 17060 fi 17061 17062 done 17063 17064 17065 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 17066 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 17067 cat >conftest.$ac_ext <<_ACEOF 17068 17069 /* confdefs.h. */ 17070 _ACEOF 17071 cat confdefs.h >>conftest.$ac_ext 17072 cat >>conftest.$ac_ext <<_ACEOF 17073 /* end confdefs.h. */ 17074 17075 extern const char *__crashreporter_info__; 17076 int main() { 17077 __crashreporter_info__ = "test"; 17078 return 0; 17079 } 17080 17081 17082 _ACEOF 17083 rm -f conftest.$ac_objext conftest$ac_exeext 17084 if { (ac_try="$ac_link" 17085 case "(($ac_try" in 17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17087 *) ac_try_echo=$ac_try;; 17088 esac 17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17090 (eval "$ac_link") 2>conftest.er1 17091 ac_status=$? 17092 grep -v '^ *+' conftest.er1 >conftest.err 17093 rm -f conftest.er1 17094 cat conftest.err >&5 17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17096 (exit $ac_status); } && 17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17098 { (case "(($ac_try" in 17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17100 *) ac_try_echo=$ac_try;; 17101 esac 17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17103 (eval "$ac_try") 2>&5 17104 ac_status=$? 17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17106 (exit $ac_status); }; } && 17107 { ac_try='test -s conftest$ac_exeext' 17108 { (case "(($ac_try" in 17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17110 *) ac_try_echo=$ac_try;; 17111 esac 17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17113 (eval "$ac_try") 2>&5 17114 ac_status=$? 17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17116 (exit $ac_status); }; }; then 17117 17118 { echo "$as_me:$LINENO: result: yes" >&5 17119 echo "${ECHO_T}yes" >&6; } 17120 17121 cat >>confdefs.h <<\_ACEOF 17122 #define HAVE_CRASHREPORTER_INFO 1 17123 _ACEOF 17124 17125 17126 else 17127 echo "$as_me: failed program was:" >&5 17128 sed 's/^/| /' conftest.$ac_ext >&5 17129 17130 17131 { echo "$as_me:$LINENO: result: no" >&5 17132 echo "${ECHO_T}no" >&6; } 17133 17134 cat >>confdefs.h <<\_ACEOF 17135 #define HAVE_CRASHREPORTER_INFO 0 17136 _ACEOF 17137 17138 17139 fi 17140 17141 rm -f core conftest.err conftest.$ac_objext \ 17142 conftest$ac_exeext conftest.$ac_ext 17143 17144 17145 17146 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 17147 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 17148 if test "${ac_cv_huge_val_sanity+set}" = set; then 17149 echo $ECHO_N "(cached) $ECHO_C" >&6 17150 else 17151 17152 ac_ext=cpp 17153 ac_cpp='$CXXCPP $CPPFLAGS' 17154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17157 17158 ac_save_CXXFLAGS=$CXXFLAGS 17159 CXXFLAGS="$CXXFLAGS -pedantic" 17160 if test "$cross_compiling" = yes; then 17161 ac_cv_huge_val_sanity=yes 17162 else 17163 cat >conftest.$ac_ext <<_ACEOF 17164 /* confdefs.h. */ 17165 _ACEOF 17166 cat confdefs.h >>conftest.$ac_ext 17167 cat >>conftest.$ac_ext <<_ACEOF 17168 /* end confdefs.h. */ 17169 #include <math.h> 17170 int 17171 main () 17172 { 17173 double x = HUGE_VAL; return x != x; 17174 ; 17175 return 0; 17176 } 17177 _ACEOF 17178 rm -f conftest$ac_exeext 17179 if { (ac_try="$ac_link" 17180 case "(($ac_try" in 17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17182 *) ac_try_echo=$ac_try;; 17183 esac 17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17185 (eval "$ac_link") 2>&5 17186 ac_status=$? 17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17189 { (case "(($ac_try" in 17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17191 *) ac_try_echo=$ac_try;; 17192 esac 17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17194 (eval "$ac_try") 2>&5 17195 ac_status=$? 17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17197 (exit $ac_status); }; }; then 17198 ac_cv_huge_val_sanity=yes 17199 else 17200 echo "$as_me: program exited with status $ac_status" >&5 17201 echo "$as_me: failed program was:" >&5 17202 sed 's/^/| /' conftest.$ac_ext >&5 17203 17204 ( exit $ac_status ) 17205 ac_cv_huge_val_sanity=no 17206 fi 17207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17208 fi 17209 17210 17211 CXXFLAGS=$ac_save_CXXFLAGS 17212 ac_ext=c 17213 ac_cpp='$CPP $CPPFLAGS' 17214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17216 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17217 17218 17219 fi 17220 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 17221 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 17222 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 17223 17224 17225 { echo "$as_me:$LINENO: checking for pid_t" >&5 17226 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 17227 if test "${ac_cv_type_pid_t+set}" = set; then 17228 echo $ECHO_N "(cached) $ECHO_C" >&6 17229 else 17230 cat >conftest.$ac_ext <<_ACEOF 17231 /* confdefs.h. */ 17232 _ACEOF 17233 cat confdefs.h >>conftest.$ac_ext 17234 cat >>conftest.$ac_ext <<_ACEOF 17235 /* end confdefs.h. */ 17236 $ac_includes_default 17237 typedef pid_t ac__type_new_; 17238 int 17239 main () 17240 { 17241 if ((ac__type_new_ *) 0) 17242 return 0; 17243 if (sizeof (ac__type_new_)) 17244 return 0; 17245 ; 17246 return 0; 17247 } 17248 _ACEOF 17249 rm -f conftest.$ac_objext 17250 if { (ac_try="$ac_compile" 17251 case "(($ac_try" in 17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17253 *) ac_try_echo=$ac_try;; 17254 esac 17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17256 (eval "$ac_compile") 2>conftest.er1 17257 ac_status=$? 17258 grep -v '^ *+' conftest.er1 >conftest.err 17259 rm -f conftest.er1 17260 cat conftest.err >&5 17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17262 (exit $ac_status); } && 17263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17264 { (case "(($ac_try" in 17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17266 *) ac_try_echo=$ac_try;; 17267 esac 17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17269 (eval "$ac_try") 2>&5 17270 ac_status=$? 17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17272 (exit $ac_status); }; } && 17273 { ac_try='test -s conftest.$ac_objext' 17274 { (case "(($ac_try" in 17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17276 *) ac_try_echo=$ac_try;; 17277 esac 17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17279 (eval "$ac_try") 2>&5 17280 ac_status=$? 17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17282 (exit $ac_status); }; }; then 17283 ac_cv_type_pid_t=yes 17284 else 17285 echo "$as_me: failed program was:" >&5 17286 sed 's/^/| /' conftest.$ac_ext >&5 17287 17288 ac_cv_type_pid_t=no 17289 fi 17290 17291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17292 fi 17293 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 17294 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 17295 if test $ac_cv_type_pid_t = yes; then 17296 : 17297 else 17298 17299 cat >>confdefs.h <<_ACEOF 17300 #define pid_t int 17301 _ACEOF 17302 17303 fi 17304 17305 { echo "$as_me:$LINENO: checking for size_t" >&5 17306 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 17307 if test "${ac_cv_type_size_t+set}" = set; then 17308 echo $ECHO_N "(cached) $ECHO_C" >&6 17309 else 17310 cat >conftest.$ac_ext <<_ACEOF 17311 /* confdefs.h. */ 17312 _ACEOF 17313 cat confdefs.h >>conftest.$ac_ext 17314 cat >>conftest.$ac_ext <<_ACEOF 17315 /* end confdefs.h. */ 17316 $ac_includes_default 17317 typedef size_t ac__type_new_; 17318 int 17319 main () 17320 { 17321 if ((ac__type_new_ *) 0) 17322 return 0; 17323 if (sizeof (ac__type_new_)) 17324 return 0; 17325 ; 17326 return 0; 17327 } 17328 _ACEOF 17329 rm -f conftest.$ac_objext 17330 if { (ac_try="$ac_compile" 17331 case "(($ac_try" in 17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17333 *) ac_try_echo=$ac_try;; 17334 esac 17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17336 (eval "$ac_compile") 2>conftest.er1 17337 ac_status=$? 17338 grep -v '^ *+' conftest.er1 >conftest.err 17339 rm -f conftest.er1 17340 cat conftest.err >&5 17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17342 (exit $ac_status); } && 17343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17344 { (case "(($ac_try" in 17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17346 *) ac_try_echo=$ac_try;; 17347 esac 17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17349 (eval "$ac_try") 2>&5 17350 ac_status=$? 17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17352 (exit $ac_status); }; } && 17353 { ac_try='test -s conftest.$ac_objext' 17354 { (case "(($ac_try" in 17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17356 *) ac_try_echo=$ac_try;; 17357 esac 17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17359 (eval "$ac_try") 2>&5 17360 ac_status=$? 17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17362 (exit $ac_status); }; }; then 17363 ac_cv_type_size_t=yes 17364 else 17365 echo "$as_me: failed program was:" >&5 17366 sed 's/^/| /' conftest.$ac_ext >&5 17367 17368 ac_cv_type_size_t=no 17369 fi 17370 17371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17372 fi 17373 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 17374 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 17375 if test $ac_cv_type_size_t = yes; then 17376 : 17377 else 17378 17379 cat >>confdefs.h <<_ACEOF 17380 #define size_t unsigned int 17381 _ACEOF 17382 17383 fi 17384 17385 17386 cat >>confdefs.h <<_ACEOF 17387 #define RETSIGTYPE void 17388 _ACEOF 17389 17390 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 17391 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 17392 if test "${ac_cv_struct_tm+set}" = set; then 17393 echo $ECHO_N "(cached) $ECHO_C" >&6 17394 else 17395 cat >conftest.$ac_ext <<_ACEOF 17396 /* confdefs.h. */ 17397 _ACEOF 17398 cat confdefs.h >>conftest.$ac_ext 17399 cat >>conftest.$ac_ext <<_ACEOF 17400 /* end confdefs.h. */ 17401 #include <sys/types.h> 17402 #include <time.h> 17403 17404 int 17405 main () 17406 { 17407 struct tm *tp; tp->tm_sec; 17408 ; 17409 return 0; 17410 } 17411 _ACEOF 17412 rm -f conftest.$ac_objext 17413 if { (ac_try="$ac_compile" 17414 case "(($ac_try" in 17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17416 *) ac_try_echo=$ac_try;; 17417 esac 17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17419 (eval "$ac_compile") 2>conftest.er1 17420 ac_status=$? 17421 grep -v '^ *+' conftest.er1 >conftest.err 17422 rm -f conftest.er1 17423 cat conftest.err >&5 17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17425 (exit $ac_status); } && 17426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17427 { (case "(($ac_try" in 17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17429 *) ac_try_echo=$ac_try;; 17430 esac 17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17432 (eval "$ac_try") 2>&5 17433 ac_status=$? 17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17435 (exit $ac_status); }; } && 17436 { ac_try='test -s conftest.$ac_objext' 17437 { (case "(($ac_try" in 17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17439 *) ac_try_echo=$ac_try;; 17440 esac 17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17442 (eval "$ac_try") 2>&5 17443 ac_status=$? 17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17445 (exit $ac_status); }; }; then 17446 ac_cv_struct_tm=time.h 17447 else 17448 echo "$as_me: failed program was:" >&5 17449 sed 's/^/| /' conftest.$ac_ext >&5 17450 17451 ac_cv_struct_tm=sys/time.h 17452 fi 17453 17454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17455 fi 17456 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 17457 echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 17458 if test $ac_cv_struct_tm = sys/time.h; then 17459 17460 cat >>confdefs.h <<\_ACEOF 17461 #define TM_IN_SYS_TIME 1 17462 _ACEOF 17463 17464 fi 17465 17466 { echo "$as_me:$LINENO: checking for int64_t" >&5 17467 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 17468 if test "${ac_cv_type_int64_t+set}" = set; then 17469 echo $ECHO_N "(cached) $ECHO_C" >&6 17470 else 17471 cat >conftest.$ac_ext <<_ACEOF 17472 /* confdefs.h. */ 17473 _ACEOF 17474 cat confdefs.h >>conftest.$ac_ext 17475 cat >>conftest.$ac_ext <<_ACEOF 17476 /* end confdefs.h. */ 17477 $ac_includes_default 17478 typedef int64_t ac__type_new_; 17479 int 17480 main () 17481 { 17482 if ((ac__type_new_ *) 0) 17483 return 0; 17484 if (sizeof (ac__type_new_)) 17485 return 0; 17486 ; 17487 return 0; 17488 } 17489 _ACEOF 17490 rm -f conftest.$ac_objext 17491 if { (ac_try="$ac_compile" 17492 case "(($ac_try" in 17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17494 *) ac_try_echo=$ac_try;; 17495 esac 17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17497 (eval "$ac_compile") 2>conftest.er1 17498 ac_status=$? 17499 grep -v '^ *+' conftest.er1 >conftest.err 17500 rm -f conftest.er1 17501 cat conftest.err >&5 17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17503 (exit $ac_status); } && 17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17505 { (case "(($ac_try" in 17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17507 *) ac_try_echo=$ac_try;; 17508 esac 17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17510 (eval "$ac_try") 2>&5 17511 ac_status=$? 17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17513 (exit $ac_status); }; } && 17514 { ac_try='test -s conftest.$ac_objext' 17515 { (case "(($ac_try" in 17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17517 *) ac_try_echo=$ac_try;; 17518 esac 17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17520 (eval "$ac_try") 2>&5 17521 ac_status=$? 17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17523 (exit $ac_status); }; }; then 17524 ac_cv_type_int64_t=yes 17525 else 17526 echo "$as_me: failed program was:" >&5 17527 sed 's/^/| /' conftest.$ac_ext >&5 17528 17529 ac_cv_type_int64_t=no 17530 fi 17531 17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17533 fi 17534 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 17535 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 17536 if test $ac_cv_type_int64_t = yes; then 17537 17538 cat >>confdefs.h <<_ACEOF 17539 #define HAVE_INT64_T 1 17540 _ACEOF 17541 17542 17543 else 17544 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 17545 echo "$as_me: error: Type int64_t required but not found" >&2;} 17546 { (exit 1); exit 1; }; } 17547 fi 17548 17549 { echo "$as_me:$LINENO: checking for uint64_t" >&5 17550 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 17551 if test "${ac_cv_type_uint64_t+set}" = set; then 17552 echo $ECHO_N "(cached) $ECHO_C" >&6 17553 else 17554 cat >conftest.$ac_ext <<_ACEOF 17555 /* confdefs.h. */ 17556 _ACEOF 17557 cat confdefs.h >>conftest.$ac_ext 17558 cat >>conftest.$ac_ext <<_ACEOF 17559 /* end confdefs.h. */ 17560 $ac_includes_default 17561 typedef uint64_t ac__type_new_; 17562 int 17563 main () 17564 { 17565 if ((ac__type_new_ *) 0) 17566 return 0; 17567 if (sizeof (ac__type_new_)) 17568 return 0; 17569 ; 17570 return 0; 17571 } 17572 _ACEOF 17573 rm -f conftest.$ac_objext 17574 if { (ac_try="$ac_compile" 17575 case "(($ac_try" in 17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17577 *) ac_try_echo=$ac_try;; 17578 esac 17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17580 (eval "$ac_compile") 2>conftest.er1 17581 ac_status=$? 17582 grep -v '^ *+' conftest.er1 >conftest.err 17583 rm -f conftest.er1 17584 cat conftest.err >&5 17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17586 (exit $ac_status); } && 17587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17588 { (case "(($ac_try" in 17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17590 *) ac_try_echo=$ac_try;; 17591 esac 17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17593 (eval "$ac_try") 2>&5 17594 ac_status=$? 17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17596 (exit $ac_status); }; } && 17597 { ac_try='test -s conftest.$ac_objext' 17598 { (case "(($ac_try" in 17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17600 *) ac_try_echo=$ac_try;; 17601 esac 17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17603 (eval "$ac_try") 2>&5 17604 ac_status=$? 17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17606 (exit $ac_status); }; }; then 17607 ac_cv_type_uint64_t=yes 17608 else 17609 echo "$as_me: failed program was:" >&5 17610 sed 's/^/| /' conftest.$ac_ext >&5 17611 17612 ac_cv_type_uint64_t=no 17613 fi 17614 17615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17616 fi 17617 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 17618 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 17619 if test $ac_cv_type_uint64_t = yes; then 17620 17621 cat >>confdefs.h <<_ACEOF 17622 #define HAVE_UINT64_T 1 17623 _ACEOF 17624 17625 17626 else 17627 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 17628 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 17629 if test "${ac_cv_type_u_int64_t+set}" = set; then 17630 echo $ECHO_N "(cached) $ECHO_C" >&6 17631 else 17632 cat >conftest.$ac_ext <<_ACEOF 17633 /* confdefs.h. */ 17634 _ACEOF 17635 cat confdefs.h >>conftest.$ac_ext 17636 cat >>conftest.$ac_ext <<_ACEOF 17637 /* end confdefs.h. */ 17638 $ac_includes_default 17639 typedef u_int64_t ac__type_new_; 17640 int 17641 main () 17642 { 17643 if ((ac__type_new_ *) 0) 17644 return 0; 17645 if (sizeof (ac__type_new_)) 17646 return 0; 17647 ; 17648 return 0; 17649 } 17650 _ACEOF 17651 rm -f conftest.$ac_objext 17652 if { (ac_try="$ac_compile" 17653 case "(($ac_try" in 17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17655 *) ac_try_echo=$ac_try;; 17656 esac 17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17658 (eval "$ac_compile") 2>conftest.er1 17659 ac_status=$? 17660 grep -v '^ *+' conftest.er1 >conftest.err 17661 rm -f conftest.er1 17662 cat conftest.err >&5 17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17664 (exit $ac_status); } && 17665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17666 { (case "(($ac_try" in 17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17668 *) ac_try_echo=$ac_try;; 17669 esac 17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17671 (eval "$ac_try") 2>&5 17672 ac_status=$? 17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17674 (exit $ac_status); }; } && 17675 { ac_try='test -s conftest.$ac_objext' 17676 { (case "(($ac_try" in 17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17678 *) ac_try_echo=$ac_try;; 17679 esac 17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17681 (eval "$ac_try") 2>&5 17682 ac_status=$? 17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17684 (exit $ac_status); }; }; then 17685 ac_cv_type_u_int64_t=yes 17686 else 17687 echo "$as_me: failed program was:" >&5 17688 sed 's/^/| /' conftest.$ac_ext >&5 17689 17690 ac_cv_type_u_int64_t=no 17691 fi 17692 17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17694 fi 17695 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 17696 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 17697 if test $ac_cv_type_u_int64_t = yes; then 17698 17699 cat >>confdefs.h <<_ACEOF 17700 #define HAVE_U_INT64_T 1 17701 _ACEOF 17702 17703 17704 else 17705 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 17706 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 17707 { (exit 1); exit 1; }; } 17708 fi 17709 17710 fi 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 17722 do 17723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17724 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17727 echo $ECHO_N "(cached) $ECHO_C" >&6 17728 else 17729 cat >conftest.$ac_ext <<_ACEOF 17730 /* confdefs.h. */ 17731 _ACEOF 17732 cat confdefs.h >>conftest.$ac_ext 17733 cat >>conftest.$ac_ext <<_ACEOF 17734 /* end confdefs.h. */ 17735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17736 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17737 #define $ac_func innocuous_$ac_func 17738 17739 /* System header to define __stub macros and hopefully few prototypes, 17740 which can conflict with char $ac_func (); below. 17741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17742 <limits.h> exists even on freestanding compilers. */ 17743 17744 #ifdef __STDC__ 17745 # include <limits.h> 17746 #else 17747 # include <assert.h> 17748 #endif 17749 17750 #undef $ac_func 17751 17752 /* Override any GCC internal prototype to avoid an error. 17753 Use char because int might match the return type of a GCC 17754 builtin and then its argument prototype would still apply. */ 17755 #ifdef __cplusplus 17756 extern "C" 17757 #endif 17758 char $ac_func (); 17759 /* The GNU C library defines this for functions which it implements 17760 to always fail with ENOSYS. Some functions are actually named 17761 something starting with __ and the normal name is an alias. */ 17762 #if defined __stub_$ac_func || defined __stub___$ac_func 17763 choke me 17764 #endif 17765 17766 int 17767 main () 17768 { 17769 return $ac_func (); 17770 ; 17771 return 0; 17772 } 17773 _ACEOF 17774 rm -f conftest.$ac_objext conftest$ac_exeext 17775 if { (ac_try="$ac_link" 17776 case "(($ac_try" in 17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17778 *) ac_try_echo=$ac_try;; 17779 esac 17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17781 (eval "$ac_link") 2>conftest.er1 17782 ac_status=$? 17783 grep -v '^ *+' conftest.er1 >conftest.err 17784 rm -f conftest.er1 17785 cat conftest.err >&5 17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17787 (exit $ac_status); } && 17788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17789 { (case "(($ac_try" in 17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17791 *) ac_try_echo=$ac_try;; 17792 esac 17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17794 (eval "$ac_try") 2>&5 17795 ac_status=$? 17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17797 (exit $ac_status); }; } && 17798 { ac_try='test -s conftest$ac_exeext' 17799 { (case "(($ac_try" in 17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17801 *) ac_try_echo=$ac_try;; 17802 esac 17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17804 (eval "$ac_try") 2>&5 17805 ac_status=$? 17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17807 (exit $ac_status); }; }; then 17808 eval "$as_ac_var=yes" 17809 else 17810 echo "$as_me: failed program was:" >&5 17811 sed 's/^/| /' conftest.$ac_ext >&5 17812 17813 eval "$as_ac_var=no" 17814 fi 17815 17816 rm -f core conftest.err conftest.$ac_objext \ 17817 conftest$ac_exeext conftest.$ac_ext 17818 fi 17819 ac_res=`eval echo '${'$as_ac_var'}'` 17820 { echo "$as_me:$LINENO: result: $ac_res" >&5 17821 echo "${ECHO_T}$ac_res" >&6; } 17822 if test `eval echo '${'$as_ac_var'}'` = yes; then 17823 cat >>confdefs.h <<_ACEOF 17824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17825 _ACEOF 17826 17827 fi 17828 done 17829 17830 17831 17832 17833 17834 for ac_func in powf fmodf strtof round 17835 do 17836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17837 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17840 echo $ECHO_N "(cached) $ECHO_C" >&6 17841 else 17842 cat >conftest.$ac_ext <<_ACEOF 17843 /* confdefs.h. */ 17844 _ACEOF 17845 cat confdefs.h >>conftest.$ac_ext 17846 cat >>conftest.$ac_ext <<_ACEOF 17847 /* end confdefs.h. */ 17848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17849 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17850 #define $ac_func innocuous_$ac_func 17851 17852 /* System header to define __stub macros and hopefully few prototypes, 17853 which can conflict with char $ac_func (); below. 17854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17855 <limits.h> exists even on freestanding compilers. */ 17856 17857 #ifdef __STDC__ 17858 # include <limits.h> 17859 #else 17860 # include <assert.h> 17861 #endif 17862 17863 #undef $ac_func 17864 17865 /* Override any GCC internal prototype to avoid an error. 17866 Use char because int might match the return type of a GCC 17867 builtin and then its argument prototype would still apply. */ 17868 #ifdef __cplusplus 17869 extern "C" 17870 #endif 17871 char $ac_func (); 17872 /* The GNU C library defines this for functions which it implements 17873 to always fail with ENOSYS. Some functions are actually named 17874 something starting with __ and the normal name is an alias. */ 17875 #if defined __stub_$ac_func || defined __stub___$ac_func 17876 choke me 17877 #endif 17878 17879 int 17880 main () 17881 { 17882 return $ac_func (); 17883 ; 17884 return 0; 17885 } 17886 _ACEOF 17887 rm -f conftest.$ac_objext conftest$ac_exeext 17888 if { (ac_try="$ac_link" 17889 case "(($ac_try" in 17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17891 *) ac_try_echo=$ac_try;; 17892 esac 17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17894 (eval "$ac_link") 2>conftest.er1 17895 ac_status=$? 17896 grep -v '^ *+' conftest.er1 >conftest.err 17897 rm -f conftest.er1 17898 cat conftest.err >&5 17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17900 (exit $ac_status); } && 17901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17902 { (case "(($ac_try" in 17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17904 *) ac_try_echo=$ac_try;; 17905 esac 17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17907 (eval "$ac_try") 2>&5 17908 ac_status=$? 17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17910 (exit $ac_status); }; } && 17911 { ac_try='test -s conftest$ac_exeext' 17912 { (case "(($ac_try" in 17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17914 *) ac_try_echo=$ac_try;; 17915 esac 17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17917 (eval "$ac_try") 2>&5 17918 ac_status=$? 17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17920 (exit $ac_status); }; }; then 17921 eval "$as_ac_var=yes" 17922 else 17923 echo "$as_me: failed program was:" >&5 17924 sed 's/^/| /' conftest.$ac_ext >&5 17925 17926 eval "$as_ac_var=no" 17927 fi 17928 17929 rm -f core conftest.err conftest.$ac_objext \ 17930 conftest$ac_exeext conftest.$ac_ext 17931 fi 17932 ac_res=`eval echo '${'$as_ac_var'}'` 17933 { echo "$as_me:$LINENO: result: $ac_res" >&5 17934 echo "${ECHO_T}$ac_res" >&6; } 17935 if test `eval echo '${'$as_ac_var'}'` = yes; then 17936 cat >>confdefs.h <<_ACEOF 17937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17938 _ACEOF 17939 17940 fi 17941 done 17942 17943 17944 17945 17946 17947 17948 for ac_func in log log2 log10 exp exp2 17949 do 17950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17951 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17954 echo $ECHO_N "(cached) $ECHO_C" >&6 17955 else 17956 cat >conftest.$ac_ext <<_ACEOF 17957 /* confdefs.h. */ 17958 _ACEOF 17959 cat confdefs.h >>conftest.$ac_ext 17960 cat >>conftest.$ac_ext <<_ACEOF 17961 /* end confdefs.h. */ 17962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17963 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17964 #define $ac_func innocuous_$ac_func 17965 17966 /* System header to define __stub macros and hopefully few prototypes, 17967 which can conflict with char $ac_func (); below. 17968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17969 <limits.h> exists even on freestanding compilers. */ 17970 17971 #ifdef __STDC__ 17972 # include <limits.h> 17973 #else 17974 # include <assert.h> 17975 #endif 17976 17977 #undef $ac_func 17978 17979 /* Override any GCC internal prototype to avoid an error. 17980 Use char because int might match the return type of a GCC 17981 builtin and then its argument prototype would still apply. */ 17982 #ifdef __cplusplus 17983 extern "C" 17984 #endif 17985 char $ac_func (); 17986 /* The GNU C library defines this for functions which it implements 17987 to always fail with ENOSYS. Some functions are actually named 17988 something starting with __ and the normal name is an alias. */ 17989 #if defined __stub_$ac_func || defined __stub___$ac_func 17990 choke me 17991 #endif 17992 17993 int 17994 main () 17995 { 17996 return $ac_func (); 17997 ; 17998 return 0; 17999 } 18000 _ACEOF 18001 rm -f conftest.$ac_objext conftest$ac_exeext 18002 if { (ac_try="$ac_link" 18003 case "(($ac_try" in 18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18005 *) ac_try_echo=$ac_try;; 18006 esac 18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18008 (eval "$ac_link") 2>conftest.er1 18009 ac_status=$? 18010 grep -v '^ *+' conftest.er1 >conftest.err 18011 rm -f conftest.er1 18012 cat conftest.err >&5 18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18014 (exit $ac_status); } && 18015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18016 { (case "(($ac_try" in 18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18018 *) ac_try_echo=$ac_try;; 18019 esac 18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18021 (eval "$ac_try") 2>&5 18022 ac_status=$? 18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18024 (exit $ac_status); }; } && 18025 { ac_try='test -s conftest$ac_exeext' 18026 { (case "(($ac_try" in 18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18028 *) ac_try_echo=$ac_try;; 18029 esac 18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18031 (eval "$ac_try") 2>&5 18032 ac_status=$? 18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18034 (exit $ac_status); }; }; then 18035 eval "$as_ac_var=yes" 18036 else 18037 echo "$as_me: failed program was:" >&5 18038 sed 's/^/| /' conftest.$ac_ext >&5 18039 18040 eval "$as_ac_var=no" 18041 fi 18042 18043 rm -f core conftest.err conftest.$ac_objext \ 18044 conftest$ac_exeext conftest.$ac_ext 18045 fi 18046 ac_res=`eval echo '${'$as_ac_var'}'` 18047 { echo "$as_me:$LINENO: result: $ac_res" >&5 18048 echo "${ECHO_T}$ac_res" >&6; } 18049 if test `eval echo '${'$as_ac_var'}'` = yes; then 18050 cat >>confdefs.h <<_ACEOF 18051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18052 _ACEOF 18053 18054 fi 18055 done 18056 18057 18058 18059 18060 18061 18062 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 18063 do 18064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18065 { echo "$as_me:$LINENO: checking for $ac_func" >&5 18066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18068 echo $ECHO_N "(cached) $ECHO_C" >&6 18069 else 18070 cat >conftest.$ac_ext <<_ACEOF 18071 /* confdefs.h. */ 18072 _ACEOF 18073 cat confdefs.h >>conftest.$ac_ext 18074 cat >>conftest.$ac_ext <<_ACEOF 18075 /* end confdefs.h. */ 18076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18077 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18078 #define $ac_func innocuous_$ac_func 18079 18080 /* System header to define __stub macros and hopefully few prototypes, 18081 which can conflict with char $ac_func (); below. 18082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18083 <limits.h> exists even on freestanding compilers. */ 18084 18085 #ifdef __STDC__ 18086 # include <limits.h> 18087 #else 18088 # include <assert.h> 18089 #endif 18090 18091 #undef $ac_func 18092 18093 /* Override any GCC internal prototype to avoid an error. 18094 Use char because int might match the return type of a GCC 18095 builtin and then its argument prototype would still apply. */ 18096 #ifdef __cplusplus 18097 extern "C" 18098 #endif 18099 char $ac_func (); 18100 /* The GNU C library defines this for functions which it implements 18101 to always fail with ENOSYS. Some functions are actually named 18102 something starting with __ and the normal name is an alias. */ 18103 #if defined __stub_$ac_func || defined __stub___$ac_func 18104 choke me 18105 #endif 18106 18107 int 18108 main () 18109 { 18110 return $ac_func (); 18111 ; 18112 return 0; 18113 } 18114 _ACEOF 18115 rm -f conftest.$ac_objext conftest$ac_exeext 18116 if { (ac_try="$ac_link" 18117 case "(($ac_try" in 18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18119 *) ac_try_echo=$ac_try;; 18120 esac 18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18122 (eval "$ac_link") 2>conftest.er1 18123 ac_status=$? 18124 grep -v '^ *+' conftest.er1 >conftest.err 18125 rm -f conftest.er1 18126 cat conftest.err >&5 18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18128 (exit $ac_status); } && 18129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18130 { (case "(($ac_try" in 18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18132 *) ac_try_echo=$ac_try;; 18133 esac 18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18135 (eval "$ac_try") 2>&5 18136 ac_status=$? 18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18138 (exit $ac_status); }; } && 18139 { ac_try='test -s conftest$ac_exeext' 18140 { (case "(($ac_try" in 18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18142 *) ac_try_echo=$ac_try;; 18143 esac 18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18145 (eval "$ac_try") 2>&5 18146 ac_status=$? 18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18148 (exit $ac_status); }; }; then 18149 eval "$as_ac_var=yes" 18150 else 18151 echo "$as_me: failed program was:" >&5 18152 sed 's/^/| /' conftest.$ac_ext >&5 18153 18154 eval "$as_ac_var=no" 18155 fi 18156 18157 rm -f core conftest.err conftest.$ac_objext \ 18158 conftest$ac_exeext conftest.$ac_ext 18159 fi 18160 ac_res=`eval echo '${'$as_ac_var'}'` 18161 { echo "$as_me:$LINENO: result: $ac_res" >&5 18162 echo "${ECHO_T}$ac_res" >&6; } 18163 if test `eval echo '${'$as_ac_var'}'` = yes; then 18164 cat >>confdefs.h <<_ACEOF 18165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18166 _ACEOF 18167 18168 fi 18169 done 18170 18171 18172 18173 18174 for ac_func in isatty mkdtemp mkstemp 18175 do 18176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18177 { echo "$as_me:$LINENO: checking for $ac_func" >&5 18178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18180 echo $ECHO_N "(cached) $ECHO_C" >&6 18181 else 18182 cat >conftest.$ac_ext <<_ACEOF 18183 /* confdefs.h. */ 18184 _ACEOF 18185 cat confdefs.h >>conftest.$ac_ext 18186 cat >>conftest.$ac_ext <<_ACEOF 18187 /* end confdefs.h. */ 18188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18189 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18190 #define $ac_func innocuous_$ac_func 18191 18192 /* System header to define __stub macros and hopefully few prototypes, 18193 which can conflict with char $ac_func (); below. 18194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18195 <limits.h> exists even on freestanding compilers. */ 18196 18197 #ifdef __STDC__ 18198 # include <limits.h> 18199 #else 18200 # include <assert.h> 18201 #endif 18202 18203 #undef $ac_func 18204 18205 /* Override any GCC internal prototype to avoid an error. 18206 Use char because int might match the return type of a GCC 18207 builtin and then its argument prototype would still apply. */ 18208 #ifdef __cplusplus 18209 extern "C" 18210 #endif 18211 char $ac_func (); 18212 /* The GNU C library defines this for functions which it implements 18213 to always fail with ENOSYS. Some functions are actually named 18214 something starting with __ and the normal name is an alias. */ 18215 #if defined __stub_$ac_func || defined __stub___$ac_func 18216 choke me 18217 #endif 18218 18219 int 18220 main () 18221 { 18222 return $ac_func (); 18223 ; 18224 return 0; 18225 } 18226 _ACEOF 18227 rm -f conftest.$ac_objext conftest$ac_exeext 18228 if { (ac_try="$ac_link" 18229 case "(($ac_try" in 18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18231 *) ac_try_echo=$ac_try;; 18232 esac 18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18234 (eval "$ac_link") 2>conftest.er1 18235 ac_status=$? 18236 grep -v '^ *+' conftest.er1 >conftest.err 18237 rm -f conftest.er1 18238 cat conftest.err >&5 18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18240 (exit $ac_status); } && 18241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18242 { (case "(($ac_try" in 18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18244 *) ac_try_echo=$ac_try;; 18245 esac 18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18247 (eval "$ac_try") 2>&5 18248 ac_status=$? 18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18250 (exit $ac_status); }; } && 18251 { ac_try='test -s conftest$ac_exeext' 18252 { (case "(($ac_try" in 18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18254 *) ac_try_echo=$ac_try;; 18255 esac 18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18257 (eval "$ac_try") 2>&5 18258 ac_status=$? 18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18260 (exit $ac_status); }; }; then 18261 eval "$as_ac_var=yes" 18262 else 18263 echo "$as_me: failed program was:" >&5 18264 sed 's/^/| /' conftest.$ac_ext >&5 18265 18266 eval "$as_ac_var=no" 18267 fi 18268 18269 rm -f core conftest.err conftest.$ac_objext \ 18270 conftest$ac_exeext conftest.$ac_ext 18271 fi 18272 ac_res=`eval echo '${'$as_ac_var'}'` 18273 { echo "$as_me:$LINENO: result: $ac_res" >&5 18274 echo "${ECHO_T}$ac_res" >&6; } 18275 if test `eval echo '${'$as_ac_var'}'` = yes; then 18276 cat >>confdefs.h <<_ACEOF 18277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18278 _ACEOF 18279 18280 fi 18281 done 18282 18283 18284 18285 18286 18287 18288 18289 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit 18290 do 18291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18292 { echo "$as_me:$LINENO: checking for $ac_func" >&5 18293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18295 echo $ECHO_N "(cached) $ECHO_C" >&6 18296 else 18297 cat >conftest.$ac_ext <<_ACEOF 18298 /* confdefs.h. */ 18299 _ACEOF 18300 cat confdefs.h >>conftest.$ac_ext 18301 cat >>conftest.$ac_ext <<_ACEOF 18302 /* end confdefs.h. */ 18303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18304 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18305 #define $ac_func innocuous_$ac_func 18306 18307 /* System header to define __stub macros and hopefully few prototypes, 18308 which can conflict with char $ac_func (); below. 18309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18310 <limits.h> exists even on freestanding compilers. */ 18311 18312 #ifdef __STDC__ 18313 # include <limits.h> 18314 #else 18315 # include <assert.h> 18316 #endif 18317 18318 #undef $ac_func 18319 18320 /* Override any GCC internal prototype to avoid an error. 18321 Use char because int might match the return type of a GCC 18322 builtin and then its argument prototype would still apply. */ 18323 #ifdef __cplusplus 18324 extern "C" 18325 #endif 18326 char $ac_func (); 18327 /* The GNU C library defines this for functions which it implements 18328 to always fail with ENOSYS. Some functions are actually named 18329 something starting with __ and the normal name is an alias. */ 18330 #if defined __stub_$ac_func || defined __stub___$ac_func 18331 choke me 18332 #endif 18333 18334 int 18335 main () 18336 { 18337 return $ac_func (); 18338 ; 18339 return 0; 18340 } 18341 _ACEOF 18342 rm -f conftest.$ac_objext conftest$ac_exeext 18343 if { (ac_try="$ac_link" 18344 case "(($ac_try" in 18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18346 *) ac_try_echo=$ac_try;; 18347 esac 18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18349 (eval "$ac_link") 2>conftest.er1 18350 ac_status=$? 18351 grep -v '^ *+' conftest.er1 >conftest.err 18352 rm -f conftest.er1 18353 cat conftest.err >&5 18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18355 (exit $ac_status); } && 18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18357 { (case "(($ac_try" in 18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18359 *) ac_try_echo=$ac_try;; 18360 esac 18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18362 (eval "$ac_try") 2>&5 18363 ac_status=$? 18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18365 (exit $ac_status); }; } && 18366 { ac_try='test -s conftest$ac_exeext' 18367 { (case "(($ac_try" in 18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18369 *) ac_try_echo=$ac_try;; 18370 esac 18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18372 (eval "$ac_try") 2>&5 18373 ac_status=$? 18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18375 (exit $ac_status); }; }; then 18376 eval "$as_ac_var=yes" 18377 else 18378 echo "$as_me: failed program was:" >&5 18379 sed 's/^/| /' conftest.$ac_ext >&5 18380 18381 eval "$as_ac_var=no" 18382 fi 18383 18384 rm -f core conftest.err conftest.$ac_objext \ 18385 conftest$ac_exeext conftest.$ac_ext 18386 fi 18387 ac_res=`eval echo '${'$as_ac_var'}'` 18388 { echo "$as_me:$LINENO: result: $ac_res" >&5 18389 echo "${ECHO_T}$ac_res" >&6; } 18390 if test `eval echo '${'$as_ac_var'}'` = yes; then 18391 cat >>confdefs.h <<_ACEOF 18392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18393 _ACEOF 18394 18395 fi 18396 done 18397 18398 18399 18400 18401 18402 for ac_func in strerror strerror_r setenv arc4random 18403 do 18404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18405 { echo "$as_me:$LINENO: checking for $ac_func" >&5 18406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18408 echo $ECHO_N "(cached) $ECHO_C" >&6 18409 else 18410 cat >conftest.$ac_ext <<_ACEOF 18411 /* confdefs.h. */ 18412 _ACEOF 18413 cat confdefs.h >>conftest.$ac_ext 18414 cat >>conftest.$ac_ext <<_ACEOF 18415 /* end confdefs.h. */ 18416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18417 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18418 #define $ac_func innocuous_$ac_func 18419 18420 /* System header to define __stub macros and hopefully few prototypes, 18421 which can conflict with char $ac_func (); below. 18422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18423 <limits.h> exists even on freestanding compilers. */ 18424 18425 #ifdef __STDC__ 18426 # include <limits.h> 18427 #else 18428 # include <assert.h> 18429 #endif 18430 18431 #undef $ac_func 18432 18433 /* Override any GCC internal prototype to avoid an error. 18434 Use char because int might match the return type of a GCC 18435 builtin and then its argument prototype would still apply. */ 18436 #ifdef __cplusplus 18437 extern "C" 18438 #endif 18439 char $ac_func (); 18440 /* The GNU C library defines this for functions which it implements 18441 to always fail with ENOSYS. Some functions are actually named 18442 something starting with __ and the normal name is an alias. */ 18443 #if defined __stub_$ac_func || defined __stub___$ac_func 18444 choke me 18445 #endif 18446 18447 int 18448 main () 18449 { 18450 return $ac_func (); 18451 ; 18452 return 0; 18453 } 18454 _ACEOF 18455 rm -f conftest.$ac_objext conftest$ac_exeext 18456 if { (ac_try="$ac_link" 18457 case "(($ac_try" in 18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18459 *) ac_try_echo=$ac_try;; 18460 esac 18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18462 (eval "$ac_link") 2>conftest.er1 18463 ac_status=$? 18464 grep -v '^ *+' conftest.er1 >conftest.err 18465 rm -f conftest.er1 18466 cat conftest.err >&5 18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18468 (exit $ac_status); } && 18469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18470 { (case "(($ac_try" in 18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18472 *) ac_try_echo=$ac_try;; 18473 esac 18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18475 (eval "$ac_try") 2>&5 18476 ac_status=$? 18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18478 (exit $ac_status); }; } && 18479 { ac_try='test -s conftest$ac_exeext' 18480 { (case "(($ac_try" in 18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18482 *) ac_try_echo=$ac_try;; 18483 esac 18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18485 (eval "$ac_try") 2>&5 18486 ac_status=$? 18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18488 (exit $ac_status); }; }; then 18489 eval "$as_ac_var=yes" 18490 else 18491 echo "$as_me: failed program was:" >&5 18492 sed 's/^/| /' conftest.$ac_ext >&5 18493 18494 eval "$as_ac_var=no" 18495 fi 18496 18497 rm -f core conftest.err conftest.$ac_objext \ 18498 conftest$ac_exeext conftest.$ac_ext 18499 fi 18500 ac_res=`eval echo '${'$as_ac_var'}'` 18501 { echo "$as_me:$LINENO: result: $ac_res" >&5 18502 echo "${ECHO_T}$ac_res" >&6; } 18503 if test `eval echo '${'$as_ac_var'}'` = yes; then 18504 cat >>confdefs.h <<_ACEOF 18505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18506 _ACEOF 18507 18508 fi 18509 done 18510 18511 18512 18513 18514 18515 for ac_func in strtoll strtoq sysconf malloc_zone_statistics 18516 do 18517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18518 { echo "$as_me:$LINENO: checking for $ac_func" >&5 18519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18521 echo $ECHO_N "(cached) $ECHO_C" >&6 18522 else 18523 cat >conftest.$ac_ext <<_ACEOF 18524 /* confdefs.h. */ 18525 _ACEOF 18526 cat confdefs.h >>conftest.$ac_ext 18527 cat >>conftest.$ac_ext <<_ACEOF 18528 /* end confdefs.h. */ 18529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18530 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18531 #define $ac_func innocuous_$ac_func 18532 18533 /* System header to define __stub macros and hopefully few prototypes, 18534 which can conflict with char $ac_func (); below. 18535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18536 <limits.h> exists even on freestanding compilers. */ 18537 18538 #ifdef __STDC__ 18539 # include <limits.h> 18540 #else 18541 # include <assert.h> 18542 #endif 18543 18544 #undef $ac_func 18545 18546 /* Override any GCC internal prototype to avoid an error. 18547 Use char because int might match the return type of a GCC 18548 builtin and then its argument prototype would still apply. */ 18549 #ifdef __cplusplus 18550 extern "C" 18551 #endif 18552 char $ac_func (); 18553 /* The GNU C library defines this for functions which it implements 18554 to always fail with ENOSYS. Some functions are actually named 18555 something starting with __ and the normal name is an alias. */ 18556 #if defined __stub_$ac_func || defined __stub___$ac_func 18557 choke me 18558 #endif 18559 18560 int 18561 main () 18562 { 18563 return $ac_func (); 18564 ; 18565 return 0; 18566 } 18567 _ACEOF 18568 rm -f conftest.$ac_objext conftest$ac_exeext 18569 if { (ac_try="$ac_link" 18570 case "(($ac_try" in 18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18572 *) ac_try_echo=$ac_try;; 18573 esac 18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18575 (eval "$ac_link") 2>conftest.er1 18576 ac_status=$? 18577 grep -v '^ *+' conftest.er1 >conftest.err 18578 rm -f conftest.er1 18579 cat conftest.err >&5 18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18581 (exit $ac_status); } && 18582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18583 { (case "(($ac_try" in 18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18585 *) ac_try_echo=$ac_try;; 18586 esac 18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18588 (eval "$ac_try") 2>&5 18589 ac_status=$? 18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18591 (exit $ac_status); }; } && 18592 { ac_try='test -s conftest$ac_exeext' 18593 { (case "(($ac_try" in 18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18595 *) ac_try_echo=$ac_try;; 18596 esac 18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18598 (eval "$ac_try") 2>&5 18599 ac_status=$? 18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18601 (exit $ac_status); }; }; then 18602 eval "$as_ac_var=yes" 18603 else 18604 echo "$as_me: failed program was:" >&5 18605 sed 's/^/| /' conftest.$ac_ext >&5 18606 18607 eval "$as_ac_var=no" 18608 fi 18609 18610 rm -f core conftest.err conftest.$ac_objext \ 18611 conftest$ac_exeext conftest.$ac_ext 18612 fi 18613 ac_res=`eval echo '${'$as_ac_var'}'` 18614 { echo "$as_me:$LINENO: result: $ac_res" >&5 18615 echo "${ECHO_T}$ac_res" >&6; } 18616 if test `eval echo '${'$as_ac_var'}'` = yes; then 18617 cat >>confdefs.h <<_ACEOF 18618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18619 _ACEOF 18620 18621 fi 18622 done 18623 18624 18625 18626 18627 18628 18629 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 18630 do 18631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18632 { echo "$as_me:$LINENO: checking for $ac_func" >&5 18633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18635 echo $ECHO_N "(cached) $ECHO_C" >&6 18636 else 18637 cat >conftest.$ac_ext <<_ACEOF 18638 /* confdefs.h. */ 18639 _ACEOF 18640 cat confdefs.h >>conftest.$ac_ext 18641 cat >>conftest.$ac_ext <<_ACEOF 18642 /* end confdefs.h. */ 18643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18644 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18645 #define $ac_func innocuous_$ac_func 18646 18647 /* System header to define __stub macros and hopefully few prototypes, 18648 which can conflict with char $ac_func (); below. 18649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18650 <limits.h> exists even on freestanding compilers. */ 18651 18652 #ifdef __STDC__ 18653 # include <limits.h> 18654 #else 18655 # include <assert.h> 18656 #endif 18657 18658 #undef $ac_func 18659 18660 /* Override any GCC internal prototype to avoid an error. 18661 Use char because int might match the return type of a GCC 18662 builtin and then its argument prototype would still apply. */ 18663 #ifdef __cplusplus 18664 extern "C" 18665 #endif 18666 char $ac_func (); 18667 /* The GNU C library defines this for functions which it implements 18668 to always fail with ENOSYS. Some functions are actually named 18669 something starting with __ and the normal name is an alias. */ 18670 #if defined __stub_$ac_func || defined __stub___$ac_func 18671 choke me 18672 #endif 18673 18674 int 18675 main () 18676 { 18677 return $ac_func (); 18678 ; 18679 return 0; 18680 } 18681 _ACEOF 18682 rm -f conftest.$ac_objext conftest$ac_exeext 18683 if { (ac_try="$ac_link" 18684 case "(($ac_try" in 18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18686 *) ac_try_echo=$ac_try;; 18687 esac 18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18689 (eval "$ac_link") 2>conftest.er1 18690 ac_status=$? 18691 grep -v '^ *+' conftest.er1 >conftest.err 18692 rm -f conftest.er1 18693 cat conftest.err >&5 18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18695 (exit $ac_status); } && 18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18697 { (case "(($ac_try" in 18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18699 *) ac_try_echo=$ac_try;; 18700 esac 18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18702 (eval "$ac_try") 2>&5 18703 ac_status=$? 18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18705 (exit $ac_status); }; } && 18706 { ac_try='test -s conftest$ac_exeext' 18707 { (case "(($ac_try" in 18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18709 *) ac_try_echo=$ac_try;; 18710 esac 18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18712 (eval "$ac_try") 2>&5 18713 ac_status=$? 18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18715 (exit $ac_status); }; }; then 18716 eval "$as_ac_var=yes" 18717 else 18718 echo "$as_me: failed program was:" >&5 18719 sed 's/^/| /' conftest.$ac_ext >&5 18720 18721 eval "$as_ac_var=no" 18722 fi 18723 18724 rm -f core conftest.err conftest.$ac_objext \ 18725 conftest$ac_exeext conftest.$ac_ext 18726 fi 18727 ac_res=`eval echo '${'$as_ac_var'}'` 18728 { echo "$as_me:$LINENO: result: $ac_res" >&5 18729 echo "${ECHO_T}$ac_res" >&6; } 18730 if test `eval echo '${'$as_ac_var'}'` = yes; then 18731 cat >>confdefs.h <<_ACEOF 18732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18733 _ACEOF 18734 18735 fi 18736 done 18737 18738 18739 18740 for ac_func in futimes futimens 18741 do 18742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18743 { echo "$as_me:$LINENO: checking for $ac_func" >&5 18744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18746 echo $ECHO_N "(cached) $ECHO_C" >&6 18747 else 18748 cat >conftest.$ac_ext <<_ACEOF 18749 /* confdefs.h. */ 18750 _ACEOF 18751 cat confdefs.h >>conftest.$ac_ext 18752 cat >>conftest.$ac_ext <<_ACEOF 18753 /* end confdefs.h. */ 18754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18755 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18756 #define $ac_func innocuous_$ac_func 18757 18758 /* System header to define __stub macros and hopefully few prototypes, 18759 which can conflict with char $ac_func (); below. 18760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18761 <limits.h> exists even on freestanding compilers. */ 18762 18763 #ifdef __STDC__ 18764 # include <limits.h> 18765 #else 18766 # include <assert.h> 18767 #endif 18768 18769 #undef $ac_func 18770 18771 /* Override any GCC internal prototype to avoid an error. 18772 Use char because int might match the return type of a GCC 18773 builtin and then its argument prototype would still apply. */ 18774 #ifdef __cplusplus 18775 extern "C" 18776 #endif 18777 char $ac_func (); 18778 /* The GNU C library defines this for functions which it implements 18779 to always fail with ENOSYS. Some functions are actually named 18780 something starting with __ and the normal name is an alias. */ 18781 #if defined __stub_$ac_func || defined __stub___$ac_func 18782 choke me 18783 #endif 18784 18785 int 18786 main () 18787 { 18788 return $ac_func (); 18789 ; 18790 return 0; 18791 } 18792 _ACEOF 18793 rm -f conftest.$ac_objext conftest$ac_exeext 18794 if { (ac_try="$ac_link" 18795 case "(($ac_try" in 18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18797 *) ac_try_echo=$ac_try;; 18798 esac 18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18800 (eval "$ac_link") 2>conftest.er1 18801 ac_status=$? 18802 grep -v '^ *+' conftest.er1 >conftest.err 18803 rm -f conftest.er1 18804 cat conftest.err >&5 18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18806 (exit $ac_status); } && 18807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18808 { (case "(($ac_try" in 18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18810 *) ac_try_echo=$ac_try;; 18811 esac 18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18813 (eval "$ac_try") 2>&5 18814 ac_status=$? 18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18816 (exit $ac_status); }; } && 18817 { ac_try='test -s conftest$ac_exeext' 18818 { (case "(($ac_try" in 18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18820 *) ac_try_echo=$ac_try;; 18821 esac 18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18823 (eval "$ac_try") 2>&5 18824 ac_status=$? 18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18826 (exit $ac_status); }; }; then 18827 eval "$as_ac_var=yes" 18828 else 18829 echo "$as_me: failed program was:" >&5 18830 sed 's/^/| /' conftest.$ac_ext >&5 18831 18832 eval "$as_ac_var=no" 18833 fi 18834 18835 rm -f core conftest.err conftest.$ac_objext \ 18836 conftest$ac_exeext conftest.$ac_ext 18837 fi 18838 ac_res=`eval echo '${'$as_ac_var'}'` 18839 { echo "$as_me:$LINENO: result: $ac_res" >&5 18840 echo "${ECHO_T}$ac_res" >&6; } 18841 if test `eval echo '${'$as_ac_var'}'` = yes; then 18842 cat >>confdefs.h <<_ACEOF 18843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18844 _ACEOF 18845 18846 fi 18847 done 18848 18849 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 18850 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 18851 if test "${llvm_cv_c_printf_a+set}" = set; then 18852 echo $ECHO_N "(cached) $ECHO_C" >&6 18853 else 18854 ac_ext=c 18855 ac_cpp='$CPP $CPPFLAGS' 18856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18858 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18859 18860 if test "$cross_compiling" = yes; then 18861 llvmac_cv_c_printf_a=no 18862 else 18863 cat >conftest.$ac_ext <<_ACEOF 18864 18865 /* confdefs.h. */ 18866 _ACEOF 18867 cat confdefs.h >>conftest.$ac_ext 18868 cat >>conftest.$ac_ext <<_ACEOF 18869 /* end confdefs.h. */ 18870 18871 #include <stdio.h> 18872 #include <stdlib.h> 18873 18874 int 18875 main () 18876 { 18877 18878 volatile double A, B; 18879 char Buffer[100]; 18880 A = 1; 18881 A /= 10.0; 18882 sprintf(Buffer, "%a", A); 18883 B = atof(Buffer); 18884 if (A != B) 18885 return (1); 18886 if (A != 0x1.999999999999ap-4) 18887 return (1); 18888 return (0); 18889 ; 18890 return 0; 18891 } 18892 _ACEOF 18893 rm -f conftest$ac_exeext 18894 if { (ac_try="$ac_link" 18895 case "(($ac_try" in 18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18897 *) ac_try_echo=$ac_try;; 18898 esac 18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18900 (eval "$ac_link") 2>&5 18901 ac_status=$? 18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18904 { (case "(($ac_try" in 18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18906 *) ac_try_echo=$ac_try;; 18907 esac 18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18909 (eval "$ac_try") 2>&5 18910 ac_status=$? 18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18912 (exit $ac_status); }; }; then 18913 llvm_cv_c_printf_a=yes 18914 else 18915 echo "$as_me: program exited with status $ac_status" >&5 18916 echo "$as_me: failed program was:" >&5 18917 sed 's/^/| /' conftest.$ac_ext >&5 18918 18919 ( exit $ac_status ) 18920 llvmac_cv_c_printf_a=no 18921 fi 18922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18923 fi 18924 18925 18926 ac_ext=c 18927 ac_cpp='$CPP $CPPFLAGS' 18928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18930 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18931 18932 fi 18933 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 18934 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 18935 if test "$llvm_cv_c_printf_a" = "yes"; then 18936 18937 cat >>confdefs.h <<\_ACEOF 18938 #define HAVE_PRINTF_A 1 18939 _ACEOF 18940 18941 fi 18942 18943 18944 18945 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 18946 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 18947 if test "${ac_cv_func_rand48+set}" = set; then 18948 echo $ECHO_N "(cached) $ECHO_C" >&6 18949 else 18950 18951 ac_ext=cpp 18952 ac_cpp='$CXXCPP $CPPFLAGS' 18953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18956 18957 cat >conftest.$ac_ext <<_ACEOF 18958 /* confdefs.h. */ 18959 _ACEOF 18960 cat confdefs.h >>conftest.$ac_ext 18961 cat >>conftest.$ac_ext <<_ACEOF 18962 /* end confdefs.h. */ 18963 #include <stdlib.h> 18964 int 18965 main () 18966 { 18967 srand48(0);lrand48();drand48(); 18968 ; 18969 return 0; 18970 } 18971 _ACEOF 18972 rm -f conftest.$ac_objext 18973 if { (ac_try="$ac_compile" 18974 case "(($ac_try" in 18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18976 *) ac_try_echo=$ac_try;; 18977 esac 18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18979 (eval "$ac_compile") 2>conftest.er1 18980 ac_status=$? 18981 grep -v '^ *+' conftest.er1 >conftest.err 18982 rm -f conftest.er1 18983 cat conftest.err >&5 18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18985 (exit $ac_status); } && 18986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18987 { (case "(($ac_try" in 18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18989 *) ac_try_echo=$ac_try;; 18990 esac 18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18992 (eval "$ac_try") 2>&5 18993 ac_status=$? 18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18995 (exit $ac_status); }; } && 18996 { ac_try='test -s conftest.$ac_objext' 18997 { (case "(($ac_try" in 18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18999 *) ac_try_echo=$ac_try;; 19000 esac 19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19002 (eval "$ac_try") 2>&5 19003 ac_status=$? 19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19005 (exit $ac_status); }; }; then 19006 ac_cv_func_rand48=yes 19007 else 19008 echo "$as_me: failed program was:" >&5 19009 sed 's/^/| /' conftest.$ac_ext >&5 19010 19011 ac_cv_func_rand48=no 19012 fi 19013 19014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19015 ac_ext=c 19016 ac_cpp='$CPP $CPPFLAGS' 19017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19019 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19020 19021 19022 fi 19023 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 19024 echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 19025 19026 if test "$ac_cv_func_rand48" = "yes" ; then 19027 19028 cat >>confdefs.h <<\_ACEOF 19029 #define HAVE_RAND48 1 19030 _ACEOF 19031 19032 fi 19033 19034 19035 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 19036 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 19037 if test "${ac_cv_have_decl_strerror_s+set}" = set; then 19038 echo $ECHO_N "(cached) $ECHO_C" >&6 19039 else 19040 cat >conftest.$ac_ext <<_ACEOF 19041 /* confdefs.h. */ 19042 _ACEOF 19043 cat confdefs.h >>conftest.$ac_ext 19044 cat >>conftest.$ac_ext <<_ACEOF 19045 /* end confdefs.h. */ 19046 $ac_includes_default 19047 int 19048 main () 19049 { 19050 #ifndef strerror_s 19051 char *p = (char *) strerror_s; 19052 return !p; 19053 #endif 19054 19055 ; 19056 return 0; 19057 } 19058 _ACEOF 19059 rm -f conftest.$ac_objext 19060 if { (ac_try="$ac_compile" 19061 case "(($ac_try" in 19062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19063 *) ac_try_echo=$ac_try;; 19064 esac 19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19066 (eval "$ac_compile") 2>conftest.er1 19067 ac_status=$? 19068 grep -v '^ *+' conftest.er1 >conftest.err 19069 rm -f conftest.er1 19070 cat conftest.err >&5 19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19072 (exit $ac_status); } && 19073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19074 { (case "(($ac_try" in 19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19076 *) ac_try_echo=$ac_try;; 19077 esac 19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19079 (eval "$ac_try") 2>&5 19080 ac_status=$? 19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19082 (exit $ac_status); }; } && 19083 { ac_try='test -s conftest.$ac_objext' 19084 { (case "(($ac_try" in 19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19086 *) ac_try_echo=$ac_try;; 19087 esac 19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19089 (eval "$ac_try") 2>&5 19090 ac_status=$? 19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19092 (exit $ac_status); }; }; then 19093 ac_cv_have_decl_strerror_s=yes 19094 else 19095 echo "$as_me: failed program was:" >&5 19096 sed 's/^/| /' conftest.$ac_ext >&5 19097 19098 ac_cv_have_decl_strerror_s=no 19099 fi 19100 19101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19102 fi 19103 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 19104 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 19105 if test $ac_cv_have_decl_strerror_s = yes; then 19106 19107 cat >>confdefs.h <<_ACEOF 19108 #define HAVE_DECL_STRERROR_S 1 19109 _ACEOF 19110 19111 19112 else 19113 cat >>confdefs.h <<_ACEOF 19114 #define HAVE_DECL_STRERROR_S 0 19115 _ACEOF 19116 19117 19118 fi 19119 19120 19121 19122 if test "$llvm_cv_os_type" = "MingW" ; then 19123 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 19124 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 19125 if test "${ac_cv_lib_gcc__alloca+set}" = set; then 19126 echo $ECHO_N "(cached) $ECHO_C" >&6 19127 else 19128 ac_check_lib_save_LIBS=$LIBS 19129 LIBS="-lgcc $LIBS" 19130 cat >conftest.$ac_ext <<_ACEOF 19131 /* confdefs.h. */ 19132 _ACEOF 19133 cat confdefs.h >>conftest.$ac_ext 19134 cat >>conftest.$ac_ext <<_ACEOF 19135 /* end confdefs.h. */ 19136 19137 /* Override any GCC internal prototype to avoid an error. 19138 Use char because int might match the return type of a GCC 19139 builtin and then its argument prototype would still apply. */ 19140 #ifdef __cplusplus 19141 extern "C" 19142 #endif 19143 char _alloca (); 19144 int 19145 main () 19146 { 19147 return _alloca (); 19148 ; 19149 return 0; 19150 } 19151 _ACEOF 19152 rm -f conftest.$ac_objext conftest$ac_exeext 19153 if { (ac_try="$ac_link" 19154 case "(($ac_try" in 19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19156 *) ac_try_echo=$ac_try;; 19157 esac 19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19159 (eval "$ac_link") 2>conftest.er1 19160 ac_status=$? 19161 grep -v '^ *+' conftest.er1 >conftest.err 19162 rm -f conftest.er1 19163 cat conftest.err >&5 19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19165 (exit $ac_status); } && 19166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19167 { (case "(($ac_try" in 19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19169 *) ac_try_echo=$ac_try;; 19170 esac 19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19172 (eval "$ac_try") 2>&5 19173 ac_status=$? 19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19175 (exit $ac_status); }; } && 19176 { ac_try='test -s conftest$ac_exeext' 19177 { (case "(($ac_try" in 19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19179 *) ac_try_echo=$ac_try;; 19180 esac 19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19182 (eval "$ac_try") 2>&5 19183 ac_status=$? 19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19185 (exit $ac_status); }; }; then 19186 ac_cv_lib_gcc__alloca=yes 19187 else 19188 echo "$as_me: failed program was:" >&5 19189 sed 's/^/| /' conftest.$ac_ext >&5 19190 19191 ac_cv_lib_gcc__alloca=no 19192 fi 19193 19194 rm -f core conftest.err conftest.$ac_objext \ 19195 conftest$ac_exeext conftest.$ac_ext 19196 LIBS=$ac_check_lib_save_LIBS 19197 fi 19198 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 19199 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 19200 if test $ac_cv_lib_gcc__alloca = yes; then 19201 19202 cat >>confdefs.h <<\_ACEOF 19203 #define HAVE__ALLOCA 1 19204 _ACEOF 19205 19206 fi 19207 19208 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 19209 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 19210 if test "${ac_cv_lib_gcc___alloca+set}" = set; then 19211 echo $ECHO_N "(cached) $ECHO_C" >&6 19212 else 19213 ac_check_lib_save_LIBS=$LIBS 19214 LIBS="-lgcc $LIBS" 19215 cat >conftest.$ac_ext <<_ACEOF 19216 /* confdefs.h. */ 19217 _ACEOF 19218 cat confdefs.h >>conftest.$ac_ext 19219 cat >>conftest.$ac_ext <<_ACEOF 19220 /* end confdefs.h. */ 19221 19222 /* Override any GCC internal prototype to avoid an error. 19223 Use char because int might match the return type of a GCC 19224 builtin and then its argument prototype would still apply. */ 19225 #ifdef __cplusplus 19226 extern "C" 19227 #endif 19228 char __alloca (); 19229 int 19230 main () 19231 { 19232 return __alloca (); 19233 ; 19234 return 0; 19235 } 19236 _ACEOF 19237 rm -f conftest.$ac_objext conftest$ac_exeext 19238 if { (ac_try="$ac_link" 19239 case "(($ac_try" in 19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19241 *) ac_try_echo=$ac_try;; 19242 esac 19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19244 (eval "$ac_link") 2>conftest.er1 19245 ac_status=$? 19246 grep -v '^ *+' conftest.er1 >conftest.err 19247 rm -f conftest.er1 19248 cat conftest.err >&5 19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19250 (exit $ac_status); } && 19251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19252 { (case "(($ac_try" in 19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19254 *) ac_try_echo=$ac_try;; 19255 esac 19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19257 (eval "$ac_try") 2>&5 19258 ac_status=$? 19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19260 (exit $ac_status); }; } && 19261 { ac_try='test -s conftest$ac_exeext' 19262 { (case "(($ac_try" in 19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19264 *) ac_try_echo=$ac_try;; 19265 esac 19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19267 (eval "$ac_try") 2>&5 19268 ac_status=$? 19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19270 (exit $ac_status); }; }; then 19271 ac_cv_lib_gcc___alloca=yes 19272 else 19273 echo "$as_me: failed program was:" >&5 19274 sed 's/^/| /' conftest.$ac_ext >&5 19275 19276 ac_cv_lib_gcc___alloca=no 19277 fi 19278 19279 rm -f core conftest.err conftest.$ac_objext \ 19280 conftest$ac_exeext conftest.$ac_ext 19281 LIBS=$ac_check_lib_save_LIBS 19282 fi 19283 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 19284 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 19285 if test $ac_cv_lib_gcc___alloca = yes; then 19286 19287 cat >>confdefs.h <<\_ACEOF 19288 #define HAVE___ALLOCA 1 19289 _ACEOF 19290 19291 fi 19292 19293 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 19294 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 19295 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 19296 echo $ECHO_N "(cached) $ECHO_C" >&6 19297 else 19298 ac_check_lib_save_LIBS=$LIBS 19299 LIBS="-lgcc $LIBS" 19300 cat >conftest.$ac_ext <<_ACEOF 19301 /* confdefs.h. */ 19302 _ACEOF 19303 cat confdefs.h >>conftest.$ac_ext 19304 cat >>conftest.$ac_ext <<_ACEOF 19305 /* end confdefs.h. */ 19306 19307 /* Override any GCC internal prototype to avoid an error. 19308 Use char because int might match the return type of a GCC 19309 builtin and then its argument prototype would still apply. */ 19310 #ifdef __cplusplus 19311 extern "C" 19312 #endif 19313 char __chkstk (); 19314 int 19315 main () 19316 { 19317 return __chkstk (); 19318 ; 19319 return 0; 19320 } 19321 _ACEOF 19322 rm -f conftest.$ac_objext conftest$ac_exeext 19323 if { (ac_try="$ac_link" 19324 case "(($ac_try" in 19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19326 *) ac_try_echo=$ac_try;; 19327 esac 19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19329 (eval "$ac_link") 2>conftest.er1 19330 ac_status=$? 19331 grep -v '^ *+' conftest.er1 >conftest.err 19332 rm -f conftest.er1 19333 cat conftest.err >&5 19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19335 (exit $ac_status); } && 19336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19337 { (case "(($ac_try" in 19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19339 *) ac_try_echo=$ac_try;; 19340 esac 19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19342 (eval "$ac_try") 2>&5 19343 ac_status=$? 19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19345 (exit $ac_status); }; } && 19346 { ac_try='test -s conftest$ac_exeext' 19347 { (case "(($ac_try" in 19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19349 *) ac_try_echo=$ac_try;; 19350 esac 19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19352 (eval "$ac_try") 2>&5 19353 ac_status=$? 19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19355 (exit $ac_status); }; }; then 19356 ac_cv_lib_gcc___chkstk=yes 19357 else 19358 echo "$as_me: failed program was:" >&5 19359 sed 's/^/| /' conftest.$ac_ext >&5 19360 19361 ac_cv_lib_gcc___chkstk=no 19362 fi 19363 19364 rm -f core conftest.err conftest.$ac_objext \ 19365 conftest$ac_exeext conftest.$ac_ext 19366 LIBS=$ac_check_lib_save_LIBS 19367 fi 19368 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 19369 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 19370 if test $ac_cv_lib_gcc___chkstk = yes; then 19371 19372 cat >>confdefs.h <<\_ACEOF 19373 #define HAVE___CHKSTK 1 19374 _ACEOF 19375 19376 fi 19377 19378 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 19379 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 19380 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 19381 echo $ECHO_N "(cached) $ECHO_C" >&6 19382 else 19383 ac_check_lib_save_LIBS=$LIBS 19384 LIBS="-lgcc $LIBS" 19385 cat >conftest.$ac_ext <<_ACEOF 19386 /* confdefs.h. */ 19387 _ACEOF 19388 cat confdefs.h >>conftest.$ac_ext 19389 cat >>conftest.$ac_ext <<_ACEOF 19390 /* end confdefs.h. */ 19391 19392 /* Override any GCC internal prototype to avoid an error. 19393 Use char because int might match the return type of a GCC 19394 builtin and then its argument prototype would still apply. */ 19395 #ifdef __cplusplus 19396 extern "C" 19397 #endif 19398 char ___chkstk (); 19399 int 19400 main () 19401 { 19402 return ___chkstk (); 19403 ; 19404 return 0; 19405 } 19406 _ACEOF 19407 rm -f conftest.$ac_objext conftest$ac_exeext 19408 if { (ac_try="$ac_link" 19409 case "(($ac_try" in 19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19411 *) ac_try_echo=$ac_try;; 19412 esac 19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19414 (eval "$ac_link") 2>conftest.er1 19415 ac_status=$? 19416 grep -v '^ *+' conftest.er1 >conftest.err 19417 rm -f conftest.er1 19418 cat conftest.err >&5 19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19420 (exit $ac_status); } && 19421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19422 { (case "(($ac_try" in 19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19424 *) ac_try_echo=$ac_try;; 19425 esac 19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19427 (eval "$ac_try") 2>&5 19428 ac_status=$? 19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19430 (exit $ac_status); }; } && 19431 { ac_try='test -s conftest$ac_exeext' 19432 { (case "(($ac_try" in 19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19434 *) ac_try_echo=$ac_try;; 19435 esac 19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19437 (eval "$ac_try") 2>&5 19438 ac_status=$? 19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19440 (exit $ac_status); }; }; then 19441 ac_cv_lib_gcc____chkstk=yes 19442 else 19443 echo "$as_me: failed program was:" >&5 19444 sed 's/^/| /' conftest.$ac_ext >&5 19445 19446 ac_cv_lib_gcc____chkstk=no 19447 fi 19448 19449 rm -f core conftest.err conftest.$ac_objext \ 19450 conftest$ac_exeext conftest.$ac_ext 19451 LIBS=$ac_check_lib_save_LIBS 19452 fi 19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 19454 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 19455 if test $ac_cv_lib_gcc____chkstk = yes; then 19456 19457 cat >>confdefs.h <<\_ACEOF 19458 #define HAVE____CHKSTK 1 19459 _ACEOF 19460 19461 fi 19462 19463 19464 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 19465 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 19466 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 19467 echo $ECHO_N "(cached) $ECHO_C" >&6 19468 else 19469 ac_check_lib_save_LIBS=$LIBS 19470 LIBS="-lgcc $LIBS" 19471 cat >conftest.$ac_ext <<_ACEOF 19472 /* confdefs.h. */ 19473 _ACEOF 19474 cat confdefs.h >>conftest.$ac_ext 19475 cat >>conftest.$ac_ext <<_ACEOF 19476 /* end confdefs.h. */ 19477 19478 /* Override any GCC internal prototype to avoid an error. 19479 Use char because int might match the return type of a GCC 19480 builtin and then its argument prototype would still apply. */ 19481 #ifdef __cplusplus 19482 extern "C" 19483 #endif 19484 char __ashldi3 (); 19485 int 19486 main () 19487 { 19488 return __ashldi3 (); 19489 ; 19490 return 0; 19491 } 19492 _ACEOF 19493 rm -f conftest.$ac_objext conftest$ac_exeext 19494 if { (ac_try="$ac_link" 19495 case "(($ac_try" in 19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19497 *) ac_try_echo=$ac_try;; 19498 esac 19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19500 (eval "$ac_link") 2>conftest.er1 19501 ac_status=$? 19502 grep -v '^ *+' conftest.er1 >conftest.err 19503 rm -f conftest.er1 19504 cat conftest.err >&5 19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19506 (exit $ac_status); } && 19507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19508 { (case "(($ac_try" in 19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19510 *) ac_try_echo=$ac_try;; 19511 esac 19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19513 (eval "$ac_try") 2>&5 19514 ac_status=$? 19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19516 (exit $ac_status); }; } && 19517 { ac_try='test -s conftest$ac_exeext' 19518 { (case "(($ac_try" in 19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19520 *) ac_try_echo=$ac_try;; 19521 esac 19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19523 (eval "$ac_try") 2>&5 19524 ac_status=$? 19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19526 (exit $ac_status); }; }; then 19527 ac_cv_lib_gcc___ashldi3=yes 19528 else 19529 echo "$as_me: failed program was:" >&5 19530 sed 's/^/| /' conftest.$ac_ext >&5 19531 19532 ac_cv_lib_gcc___ashldi3=no 19533 fi 19534 19535 rm -f core conftest.err conftest.$ac_objext \ 19536 conftest$ac_exeext conftest.$ac_ext 19537 LIBS=$ac_check_lib_save_LIBS 19538 fi 19539 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 19540 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 19541 if test $ac_cv_lib_gcc___ashldi3 = yes; then 19542 19543 cat >>confdefs.h <<\_ACEOF 19544 #define HAVE___ASHLDI3 1 19545 _ACEOF 19546 19547 fi 19548 19549 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 19550 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 19551 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 19552 echo $ECHO_N "(cached) $ECHO_C" >&6 19553 else 19554 ac_check_lib_save_LIBS=$LIBS 19555 LIBS="-lgcc $LIBS" 19556 cat >conftest.$ac_ext <<_ACEOF 19557 /* confdefs.h. */ 19558 _ACEOF 19559 cat confdefs.h >>conftest.$ac_ext 19560 cat >>conftest.$ac_ext <<_ACEOF 19561 /* end confdefs.h. */ 19562 19563 /* Override any GCC internal prototype to avoid an error. 19564 Use char because int might match the return type of a GCC 19565 builtin and then its argument prototype would still apply. */ 19566 #ifdef __cplusplus 19567 extern "C" 19568 #endif 19569 char __ashrdi3 (); 19570 int 19571 main () 19572 { 19573 return __ashrdi3 (); 19574 ; 19575 return 0; 19576 } 19577 _ACEOF 19578 rm -f conftest.$ac_objext conftest$ac_exeext 19579 if { (ac_try="$ac_link" 19580 case "(($ac_try" in 19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19582 *) ac_try_echo=$ac_try;; 19583 esac 19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19585 (eval "$ac_link") 2>conftest.er1 19586 ac_status=$? 19587 grep -v '^ *+' conftest.er1 >conftest.err 19588 rm -f conftest.er1 19589 cat conftest.err >&5 19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19591 (exit $ac_status); } && 19592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19593 { (case "(($ac_try" in 19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19595 *) ac_try_echo=$ac_try;; 19596 esac 19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19598 (eval "$ac_try") 2>&5 19599 ac_status=$? 19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19601 (exit $ac_status); }; } && 19602 { ac_try='test -s conftest$ac_exeext' 19603 { (case "(($ac_try" in 19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19605 *) ac_try_echo=$ac_try;; 19606 esac 19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19608 (eval "$ac_try") 2>&5 19609 ac_status=$? 19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19611 (exit $ac_status); }; }; then 19612 ac_cv_lib_gcc___ashrdi3=yes 19613 else 19614 echo "$as_me: failed program was:" >&5 19615 sed 's/^/| /' conftest.$ac_ext >&5 19616 19617 ac_cv_lib_gcc___ashrdi3=no 19618 fi 19619 19620 rm -f core conftest.err conftest.$ac_objext \ 19621 conftest$ac_exeext conftest.$ac_ext 19622 LIBS=$ac_check_lib_save_LIBS 19623 fi 19624 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 19625 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 19626 if test $ac_cv_lib_gcc___ashrdi3 = yes; then 19627 19628 cat >>confdefs.h <<\_ACEOF 19629 #define HAVE___ASHRDI3 1 19630 _ACEOF 19631 19632 fi 19633 19634 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 19635 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 19636 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 19637 echo $ECHO_N "(cached) $ECHO_C" >&6 19638 else 19639 ac_check_lib_save_LIBS=$LIBS 19640 LIBS="-lgcc $LIBS" 19641 cat >conftest.$ac_ext <<_ACEOF 19642 /* confdefs.h. */ 19643 _ACEOF 19644 cat confdefs.h >>conftest.$ac_ext 19645 cat >>conftest.$ac_ext <<_ACEOF 19646 /* end confdefs.h. */ 19647 19648 /* Override any GCC internal prototype to avoid an error. 19649 Use char because int might match the return type of a GCC 19650 builtin and then its argument prototype would still apply. */ 19651 #ifdef __cplusplus 19652 extern "C" 19653 #endif 19654 char __divdi3 (); 19655 int 19656 main () 19657 { 19658 return __divdi3 (); 19659 ; 19660 return 0; 19661 } 19662 _ACEOF 19663 rm -f conftest.$ac_objext conftest$ac_exeext 19664 if { (ac_try="$ac_link" 19665 case "(($ac_try" in 19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19667 *) ac_try_echo=$ac_try;; 19668 esac 19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19670 (eval "$ac_link") 2>conftest.er1 19671 ac_status=$? 19672 grep -v '^ *+' conftest.er1 >conftest.err 19673 rm -f conftest.er1 19674 cat conftest.err >&5 19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19676 (exit $ac_status); } && 19677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19678 { (case "(($ac_try" in 19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19680 *) ac_try_echo=$ac_try;; 19681 esac 19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19683 (eval "$ac_try") 2>&5 19684 ac_status=$? 19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19686 (exit $ac_status); }; } && 19687 { ac_try='test -s conftest$ac_exeext' 19688 { (case "(($ac_try" in 19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19690 *) ac_try_echo=$ac_try;; 19691 esac 19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19693 (eval "$ac_try") 2>&5 19694 ac_status=$? 19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19696 (exit $ac_status); }; }; then 19697 ac_cv_lib_gcc___divdi3=yes 19698 else 19699 echo "$as_me: failed program was:" >&5 19700 sed 's/^/| /' conftest.$ac_ext >&5 19701 19702 ac_cv_lib_gcc___divdi3=no 19703 fi 19704 19705 rm -f core conftest.err conftest.$ac_objext \ 19706 conftest$ac_exeext conftest.$ac_ext 19707 LIBS=$ac_check_lib_save_LIBS 19708 fi 19709 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 19710 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 19711 if test $ac_cv_lib_gcc___divdi3 = yes; then 19712 19713 cat >>confdefs.h <<\_ACEOF 19714 #define HAVE___DIVDI3 1 19715 _ACEOF 19716 19717 fi 19718 19719 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 19720 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 19721 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 19722 echo $ECHO_N "(cached) $ECHO_C" >&6 19723 else 19724 ac_check_lib_save_LIBS=$LIBS 19725 LIBS="-lgcc $LIBS" 19726 cat >conftest.$ac_ext <<_ACEOF 19727 /* confdefs.h. */ 19728 _ACEOF 19729 cat confdefs.h >>conftest.$ac_ext 19730 cat >>conftest.$ac_ext <<_ACEOF 19731 /* end confdefs.h. */ 19732 19733 /* Override any GCC internal prototype to avoid an error. 19734 Use char because int might match the return type of a GCC 19735 builtin and then its argument prototype would still apply. */ 19736 #ifdef __cplusplus 19737 extern "C" 19738 #endif 19739 char __fixdfdi (); 19740 int 19741 main () 19742 { 19743 return __fixdfdi (); 19744 ; 19745 return 0; 19746 } 19747 _ACEOF 19748 rm -f conftest.$ac_objext conftest$ac_exeext 19749 if { (ac_try="$ac_link" 19750 case "(($ac_try" in 19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19752 *) ac_try_echo=$ac_try;; 19753 esac 19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19755 (eval "$ac_link") 2>conftest.er1 19756 ac_status=$? 19757 grep -v '^ *+' conftest.er1 >conftest.err 19758 rm -f conftest.er1 19759 cat conftest.err >&5 19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19761 (exit $ac_status); } && 19762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19763 { (case "(($ac_try" in 19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19765 *) ac_try_echo=$ac_try;; 19766 esac 19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19768 (eval "$ac_try") 2>&5 19769 ac_status=$? 19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19771 (exit $ac_status); }; } && 19772 { ac_try='test -s conftest$ac_exeext' 19773 { (case "(($ac_try" in 19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19775 *) ac_try_echo=$ac_try;; 19776 esac 19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19778 (eval "$ac_try") 2>&5 19779 ac_status=$? 19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19781 (exit $ac_status); }; }; then 19782 ac_cv_lib_gcc___fixdfdi=yes 19783 else 19784 echo "$as_me: failed program was:" >&5 19785 sed 's/^/| /' conftest.$ac_ext >&5 19786 19787 ac_cv_lib_gcc___fixdfdi=no 19788 fi 19789 19790 rm -f core conftest.err conftest.$ac_objext \ 19791 conftest$ac_exeext conftest.$ac_ext 19792 LIBS=$ac_check_lib_save_LIBS 19793 fi 19794 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 19795 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 19796 if test $ac_cv_lib_gcc___fixdfdi = yes; then 19797 19798 cat >>confdefs.h <<\_ACEOF 19799 #define HAVE___FIXDFDI 1 19800 _ACEOF 19801 19802 fi 19803 19804 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 19805 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 19806 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 19807 echo $ECHO_N "(cached) $ECHO_C" >&6 19808 else 19809 ac_check_lib_save_LIBS=$LIBS 19810 LIBS="-lgcc $LIBS" 19811 cat >conftest.$ac_ext <<_ACEOF 19812 /* confdefs.h. */ 19813 _ACEOF 19814 cat confdefs.h >>conftest.$ac_ext 19815 cat >>conftest.$ac_ext <<_ACEOF 19816 /* end confdefs.h. */ 19817 19818 /* Override any GCC internal prototype to avoid an error. 19819 Use char because int might match the return type of a GCC 19820 builtin and then its argument prototype would still apply. */ 19821 #ifdef __cplusplus 19822 extern "C" 19823 #endif 19824 char __fixsfdi (); 19825 int 19826 main () 19827 { 19828 return __fixsfdi (); 19829 ; 19830 return 0; 19831 } 19832 _ACEOF 19833 rm -f conftest.$ac_objext conftest$ac_exeext 19834 if { (ac_try="$ac_link" 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_link") 2>conftest.er1 19841 ac_status=$? 19842 grep -v '^ *+' conftest.er1 >conftest.err 19843 rm -f conftest.er1 19844 cat conftest.err >&5 19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19846 (exit $ac_status); } && 19847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19848 { (case "(($ac_try" in 19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19850 *) ac_try_echo=$ac_try;; 19851 esac 19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19853 (eval "$ac_try") 2>&5 19854 ac_status=$? 19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19856 (exit $ac_status); }; } && 19857 { ac_try='test -s conftest$ac_exeext' 19858 { (case "(($ac_try" in 19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19860 *) ac_try_echo=$ac_try;; 19861 esac 19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19863 (eval "$ac_try") 2>&5 19864 ac_status=$? 19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19866 (exit $ac_status); }; }; then 19867 ac_cv_lib_gcc___fixsfdi=yes 19868 else 19869 echo "$as_me: failed program was:" >&5 19870 sed 's/^/| /' conftest.$ac_ext >&5 19871 19872 ac_cv_lib_gcc___fixsfdi=no 19873 fi 19874 19875 rm -f core conftest.err conftest.$ac_objext \ 19876 conftest$ac_exeext conftest.$ac_ext 19877 LIBS=$ac_check_lib_save_LIBS 19878 fi 19879 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 19880 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 19881 if test $ac_cv_lib_gcc___fixsfdi = yes; then 19882 19883 cat >>confdefs.h <<\_ACEOF 19884 #define HAVE___FIXSFDI 1 19885 _ACEOF 19886 19887 fi 19888 19889 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 19890 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 19891 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 19892 echo $ECHO_N "(cached) $ECHO_C" >&6 19893 else 19894 ac_check_lib_save_LIBS=$LIBS 19895 LIBS="-lgcc $LIBS" 19896 cat >conftest.$ac_ext <<_ACEOF 19897 /* confdefs.h. */ 19898 _ACEOF 19899 cat confdefs.h >>conftest.$ac_ext 19900 cat >>conftest.$ac_ext <<_ACEOF 19901 /* end confdefs.h. */ 19902 19903 /* Override any GCC internal prototype to avoid an error. 19904 Use char because int might match the return type of a GCC 19905 builtin and then its argument prototype would still apply. */ 19906 #ifdef __cplusplus 19907 extern "C" 19908 #endif 19909 char __floatdidf (); 19910 int 19911 main () 19912 { 19913 return __floatdidf (); 19914 ; 19915 return 0; 19916 } 19917 _ACEOF 19918 rm -f conftest.$ac_objext conftest$ac_exeext 19919 if { (ac_try="$ac_link" 19920 case "(($ac_try" in 19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19922 *) ac_try_echo=$ac_try;; 19923 esac 19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19925 (eval "$ac_link") 2>conftest.er1 19926 ac_status=$? 19927 grep -v '^ *+' conftest.er1 >conftest.err 19928 rm -f conftest.er1 19929 cat conftest.err >&5 19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19931 (exit $ac_status); } && 19932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19933 { (case "(($ac_try" in 19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19935 *) ac_try_echo=$ac_try;; 19936 esac 19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19938 (eval "$ac_try") 2>&5 19939 ac_status=$? 19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19941 (exit $ac_status); }; } && 19942 { ac_try='test -s conftest$ac_exeext' 19943 { (case "(($ac_try" in 19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19945 *) ac_try_echo=$ac_try;; 19946 esac 19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19948 (eval "$ac_try") 2>&5 19949 ac_status=$? 19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19951 (exit $ac_status); }; }; then 19952 ac_cv_lib_gcc___floatdidf=yes 19953 else 19954 echo "$as_me: failed program was:" >&5 19955 sed 's/^/| /' conftest.$ac_ext >&5 19956 19957 ac_cv_lib_gcc___floatdidf=no 19958 fi 19959 19960 rm -f core conftest.err conftest.$ac_objext \ 19961 conftest$ac_exeext conftest.$ac_ext 19962 LIBS=$ac_check_lib_save_LIBS 19963 fi 19964 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 19965 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 19966 if test $ac_cv_lib_gcc___floatdidf = yes; then 19967 19968 cat >>confdefs.h <<\_ACEOF 19969 #define HAVE___FLOATDIDF 1 19970 _ACEOF 19971 19972 fi 19973 19974 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 19975 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 19976 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 19977 echo $ECHO_N "(cached) $ECHO_C" >&6 19978 else 19979 ac_check_lib_save_LIBS=$LIBS 19980 LIBS="-lgcc $LIBS" 19981 cat >conftest.$ac_ext <<_ACEOF 19982 /* confdefs.h. */ 19983 _ACEOF 19984 cat confdefs.h >>conftest.$ac_ext 19985 cat >>conftest.$ac_ext <<_ACEOF 19986 /* end confdefs.h. */ 19987 19988 /* Override any GCC internal prototype to avoid an error. 19989 Use char because int might match the return type of a GCC 19990 builtin and then its argument prototype would still apply. */ 19991 #ifdef __cplusplus 19992 extern "C" 19993 #endif 19994 char __lshrdi3 (); 19995 int 19996 main () 19997 { 19998 return __lshrdi3 (); 19999 ; 20000 return 0; 20001 } 20002 _ACEOF 20003 rm -f conftest.$ac_objext conftest$ac_exeext 20004 if { (ac_try="$ac_link" 20005 case "(($ac_try" in 20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20007 *) ac_try_echo=$ac_try;; 20008 esac 20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20010 (eval "$ac_link") 2>conftest.er1 20011 ac_status=$? 20012 grep -v '^ *+' conftest.er1 >conftest.err 20013 rm -f conftest.er1 20014 cat conftest.err >&5 20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20016 (exit $ac_status); } && 20017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20018 { (case "(($ac_try" in 20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20020 *) ac_try_echo=$ac_try;; 20021 esac 20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20023 (eval "$ac_try") 2>&5 20024 ac_status=$? 20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20026 (exit $ac_status); }; } && 20027 { ac_try='test -s conftest$ac_exeext' 20028 { (case "(($ac_try" in 20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20030 *) ac_try_echo=$ac_try;; 20031 esac 20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20033 (eval "$ac_try") 2>&5 20034 ac_status=$? 20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20036 (exit $ac_status); }; }; then 20037 ac_cv_lib_gcc___lshrdi3=yes 20038 else 20039 echo "$as_me: failed program was:" >&5 20040 sed 's/^/| /' conftest.$ac_ext >&5 20041 20042 ac_cv_lib_gcc___lshrdi3=no 20043 fi 20044 20045 rm -f core conftest.err conftest.$ac_objext \ 20046 conftest$ac_exeext conftest.$ac_ext 20047 LIBS=$ac_check_lib_save_LIBS 20048 fi 20049 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 20050 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 20051 if test $ac_cv_lib_gcc___lshrdi3 = yes; then 20052 20053 cat >>confdefs.h <<\_ACEOF 20054 #define HAVE___LSHRDI3 1 20055 _ACEOF 20056 20057 fi 20058 20059 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 20060 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 20061 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 20062 echo $ECHO_N "(cached) $ECHO_C" >&6 20063 else 20064 ac_check_lib_save_LIBS=$LIBS 20065 LIBS="-lgcc $LIBS" 20066 cat >conftest.$ac_ext <<_ACEOF 20067 /* confdefs.h. */ 20068 _ACEOF 20069 cat confdefs.h >>conftest.$ac_ext 20070 cat >>conftest.$ac_ext <<_ACEOF 20071 /* end confdefs.h. */ 20072 20073 /* Override any GCC internal prototype to avoid an error. 20074 Use char because int might match the return type of a GCC 20075 builtin and then its argument prototype would still apply. */ 20076 #ifdef __cplusplus 20077 extern "C" 20078 #endif 20079 char __moddi3 (); 20080 int 20081 main () 20082 { 20083 return __moddi3 (); 20084 ; 20085 return 0; 20086 } 20087 _ACEOF 20088 rm -f conftest.$ac_objext conftest$ac_exeext 20089 if { (ac_try="$ac_link" 20090 case "(($ac_try" in 20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20092 *) ac_try_echo=$ac_try;; 20093 esac 20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20095 (eval "$ac_link") 2>conftest.er1 20096 ac_status=$? 20097 grep -v '^ *+' conftest.er1 >conftest.err 20098 rm -f conftest.er1 20099 cat conftest.err >&5 20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20101 (exit $ac_status); } && 20102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20103 { (case "(($ac_try" in 20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20105 *) ac_try_echo=$ac_try;; 20106 esac 20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20108 (eval "$ac_try") 2>&5 20109 ac_status=$? 20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20111 (exit $ac_status); }; } && 20112 { ac_try='test -s conftest$ac_exeext' 20113 { (case "(($ac_try" in 20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20115 *) ac_try_echo=$ac_try;; 20116 esac 20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20118 (eval "$ac_try") 2>&5 20119 ac_status=$? 20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20121 (exit $ac_status); }; }; then 20122 ac_cv_lib_gcc___moddi3=yes 20123 else 20124 echo "$as_me: failed program was:" >&5 20125 sed 's/^/| /' conftest.$ac_ext >&5 20126 20127 ac_cv_lib_gcc___moddi3=no 20128 fi 20129 20130 rm -f core conftest.err conftest.$ac_objext \ 20131 conftest$ac_exeext conftest.$ac_ext 20132 LIBS=$ac_check_lib_save_LIBS 20133 fi 20134 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 20135 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 20136 if test $ac_cv_lib_gcc___moddi3 = yes; then 20137 20138 cat >>confdefs.h <<\_ACEOF 20139 #define HAVE___MODDI3 1 20140 _ACEOF 20141 20142 fi 20143 20144 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 20145 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 20146 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 20147 echo $ECHO_N "(cached) $ECHO_C" >&6 20148 else 20149 ac_check_lib_save_LIBS=$LIBS 20150 LIBS="-lgcc $LIBS" 20151 cat >conftest.$ac_ext <<_ACEOF 20152 /* confdefs.h. */ 20153 _ACEOF 20154 cat confdefs.h >>conftest.$ac_ext 20155 cat >>conftest.$ac_ext <<_ACEOF 20156 /* end confdefs.h. */ 20157 20158 /* Override any GCC internal prototype to avoid an error. 20159 Use char because int might match the return type of a GCC 20160 builtin and then its argument prototype would still apply. */ 20161 #ifdef __cplusplus 20162 extern "C" 20163 #endif 20164 char __udivdi3 (); 20165 int 20166 main () 20167 { 20168 return __udivdi3 (); 20169 ; 20170 return 0; 20171 } 20172 _ACEOF 20173 rm -f conftest.$ac_objext conftest$ac_exeext 20174 if { (ac_try="$ac_link" 20175 case "(($ac_try" in 20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20177 *) ac_try_echo=$ac_try;; 20178 esac 20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20180 (eval "$ac_link") 2>conftest.er1 20181 ac_status=$? 20182 grep -v '^ *+' conftest.er1 >conftest.err 20183 rm -f conftest.er1 20184 cat conftest.err >&5 20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20186 (exit $ac_status); } && 20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20188 { (case "(($ac_try" in 20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20190 *) ac_try_echo=$ac_try;; 20191 esac 20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20193 (eval "$ac_try") 2>&5 20194 ac_status=$? 20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20196 (exit $ac_status); }; } && 20197 { ac_try='test -s conftest$ac_exeext' 20198 { (case "(($ac_try" in 20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20200 *) ac_try_echo=$ac_try;; 20201 esac 20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20203 (eval "$ac_try") 2>&5 20204 ac_status=$? 20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20206 (exit $ac_status); }; }; then 20207 ac_cv_lib_gcc___udivdi3=yes 20208 else 20209 echo "$as_me: failed program was:" >&5 20210 sed 's/^/| /' conftest.$ac_ext >&5 20211 20212 ac_cv_lib_gcc___udivdi3=no 20213 fi 20214 20215 rm -f core conftest.err conftest.$ac_objext \ 20216 conftest$ac_exeext conftest.$ac_ext 20217 LIBS=$ac_check_lib_save_LIBS 20218 fi 20219 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 20220 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 20221 if test $ac_cv_lib_gcc___udivdi3 = yes; then 20222 20223 cat >>confdefs.h <<\_ACEOF 20224 #define HAVE___UDIVDI3 1 20225 _ACEOF 20226 20227 fi 20228 20229 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 20230 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 20231 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 20232 echo $ECHO_N "(cached) $ECHO_C" >&6 20233 else 20234 ac_check_lib_save_LIBS=$LIBS 20235 LIBS="-lgcc $LIBS" 20236 cat >conftest.$ac_ext <<_ACEOF 20237 /* confdefs.h. */ 20238 _ACEOF 20239 cat confdefs.h >>conftest.$ac_ext 20240 cat >>conftest.$ac_ext <<_ACEOF 20241 /* end confdefs.h. */ 20242 20243 /* Override any GCC internal prototype to avoid an error. 20244 Use char because int might match the return type of a GCC 20245 builtin and then its argument prototype would still apply. */ 20246 #ifdef __cplusplus 20247 extern "C" 20248 #endif 20249 char __umoddi3 (); 20250 int 20251 main () 20252 { 20253 return __umoddi3 (); 20254 ; 20255 return 0; 20256 } 20257 _ACEOF 20258 rm -f conftest.$ac_objext conftest$ac_exeext 20259 if { (ac_try="$ac_link" 20260 case "(($ac_try" in 20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20262 *) ac_try_echo=$ac_try;; 20263 esac 20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20265 (eval "$ac_link") 2>conftest.er1 20266 ac_status=$? 20267 grep -v '^ *+' conftest.er1 >conftest.err 20268 rm -f conftest.er1 20269 cat conftest.err >&5 20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20271 (exit $ac_status); } && 20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20273 { (case "(($ac_try" in 20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20275 *) ac_try_echo=$ac_try;; 20276 esac 20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20278 (eval "$ac_try") 2>&5 20279 ac_status=$? 20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20281 (exit $ac_status); }; } && 20282 { ac_try='test -s conftest$ac_exeext' 20283 { (case "(($ac_try" in 20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20285 *) ac_try_echo=$ac_try;; 20286 esac 20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20288 (eval "$ac_try") 2>&5 20289 ac_status=$? 20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20291 (exit $ac_status); }; }; then 20292 ac_cv_lib_gcc___umoddi3=yes 20293 else 20294 echo "$as_me: failed program was:" >&5 20295 sed 's/^/| /' conftest.$ac_ext >&5 20296 20297 ac_cv_lib_gcc___umoddi3=no 20298 fi 20299 20300 rm -f core conftest.err conftest.$ac_objext \ 20301 conftest$ac_exeext conftest.$ac_ext 20302 LIBS=$ac_check_lib_save_LIBS 20303 fi 20304 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 20305 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 20306 if test $ac_cv_lib_gcc___umoddi3 = yes; then 20307 20308 cat >>confdefs.h <<\_ACEOF 20309 #define HAVE___UMODDI3 1 20310 _ACEOF 20311 20312 fi 20313 20314 20315 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 20316 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 20317 if test "${ac_cv_lib_gcc___main+set}" = set; then 20318 echo $ECHO_N "(cached) $ECHO_C" >&6 20319 else 20320 ac_check_lib_save_LIBS=$LIBS 20321 LIBS="-lgcc $LIBS" 20322 cat >conftest.$ac_ext <<_ACEOF 20323 /* confdefs.h. */ 20324 _ACEOF 20325 cat confdefs.h >>conftest.$ac_ext 20326 cat >>conftest.$ac_ext <<_ACEOF 20327 /* end confdefs.h. */ 20328 20329 /* Override any GCC internal prototype to avoid an error. 20330 Use char because int might match the return type of a GCC 20331 builtin and then its argument prototype would still apply. */ 20332 #ifdef __cplusplus 20333 extern "C" 20334 #endif 20335 char __main (); 20336 int 20337 main () 20338 { 20339 return __main (); 20340 ; 20341 return 0; 20342 } 20343 _ACEOF 20344 rm -f conftest.$ac_objext conftest$ac_exeext 20345 if { (ac_try="$ac_link" 20346 case "(($ac_try" in 20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20348 *) ac_try_echo=$ac_try;; 20349 esac 20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20351 (eval "$ac_link") 2>conftest.er1 20352 ac_status=$? 20353 grep -v '^ *+' conftest.er1 >conftest.err 20354 rm -f conftest.er1 20355 cat conftest.err >&5 20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20357 (exit $ac_status); } && 20358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20359 { (case "(($ac_try" in 20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20361 *) ac_try_echo=$ac_try;; 20362 esac 20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20364 (eval "$ac_try") 2>&5 20365 ac_status=$? 20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20367 (exit $ac_status); }; } && 20368 { ac_try='test -s conftest$ac_exeext' 20369 { (case "(($ac_try" in 20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20371 *) ac_try_echo=$ac_try;; 20372 esac 20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20374 (eval "$ac_try") 2>&5 20375 ac_status=$? 20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20377 (exit $ac_status); }; }; then 20378 ac_cv_lib_gcc___main=yes 20379 else 20380 echo "$as_me: failed program was:" >&5 20381 sed 's/^/| /' conftest.$ac_ext >&5 20382 20383 ac_cv_lib_gcc___main=no 20384 fi 20385 20386 rm -f core conftest.err conftest.$ac_objext \ 20387 conftest$ac_exeext conftest.$ac_ext 20388 LIBS=$ac_check_lib_save_LIBS 20389 fi 20390 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 20391 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 20392 if test $ac_cv_lib_gcc___main = yes; then 20393 20394 cat >>confdefs.h <<\_ACEOF 20395 #define HAVE___MAIN 1 20396 _ACEOF 20397 20398 fi 20399 20400 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 20401 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 20402 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 20403 echo $ECHO_N "(cached) $ECHO_C" >&6 20404 else 20405 ac_check_lib_save_LIBS=$LIBS 20406 LIBS="-lgcc $LIBS" 20407 cat >conftest.$ac_ext <<_ACEOF 20408 /* confdefs.h. */ 20409 _ACEOF 20410 cat confdefs.h >>conftest.$ac_ext 20411 cat >>conftest.$ac_ext <<_ACEOF 20412 /* end confdefs.h. */ 20413 20414 /* Override any GCC internal prototype to avoid an error. 20415 Use char because int might match the return type of a GCC 20416 builtin and then its argument prototype would still apply. */ 20417 #ifdef __cplusplus 20418 extern "C" 20419 #endif 20420 char __cmpdi2 (); 20421 int 20422 main () 20423 { 20424 return __cmpdi2 (); 20425 ; 20426 return 0; 20427 } 20428 _ACEOF 20429 rm -f conftest.$ac_objext conftest$ac_exeext 20430 if { (ac_try="$ac_link" 20431 case "(($ac_try" in 20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20433 *) ac_try_echo=$ac_try;; 20434 esac 20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20436 (eval "$ac_link") 2>conftest.er1 20437 ac_status=$? 20438 grep -v '^ *+' conftest.er1 >conftest.err 20439 rm -f conftest.er1 20440 cat conftest.err >&5 20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20442 (exit $ac_status); } && 20443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20444 { (case "(($ac_try" in 20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20446 *) ac_try_echo=$ac_try;; 20447 esac 20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20449 (eval "$ac_try") 2>&5 20450 ac_status=$? 20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20452 (exit $ac_status); }; } && 20453 { ac_try='test -s conftest$ac_exeext' 20454 { (case "(($ac_try" in 20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20456 *) ac_try_echo=$ac_try;; 20457 esac 20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20459 (eval "$ac_try") 2>&5 20460 ac_status=$? 20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20462 (exit $ac_status); }; }; then 20463 ac_cv_lib_gcc___cmpdi2=yes 20464 else 20465 echo "$as_me: failed program was:" >&5 20466 sed 's/^/| /' conftest.$ac_ext >&5 20467 20468 ac_cv_lib_gcc___cmpdi2=no 20469 fi 20470 20471 rm -f core conftest.err conftest.$ac_objext \ 20472 conftest$ac_exeext conftest.$ac_ext 20473 LIBS=$ac_check_lib_save_LIBS 20474 fi 20475 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 20476 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 20477 if test $ac_cv_lib_gcc___cmpdi2 = yes; then 20478 20479 cat >>confdefs.h <<\_ACEOF 20480 #define HAVE___CMPDI2 1 20481 _ACEOF 20482 20483 fi 20484 20485 fi 20486 20487 if test "$llvm_cv_os_type" = "MingW" ; then 20488 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 20489 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 20490 cat >conftest.$ac_ext <<_ACEOF 20491 20492 /* confdefs.h. */ 20493 _ACEOF 20494 cat confdefs.h >>conftest.$ac_ext 20495 cat >>conftest.$ac_ext <<_ACEOF 20496 /* end confdefs.h. */ 20497 20498 #include <windows.h> 20499 #include <imagehlp.h> 20500 extern void foo(PENUMLOADED_MODULES_CALLBACK); 20501 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 20502 20503 20504 _ACEOF 20505 rm -f conftest.$ac_objext 20506 if { (ac_try="$ac_compile" 20507 case "(($ac_try" in 20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20509 *) ac_try_echo=$ac_try;; 20510 esac 20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20512 (eval "$ac_compile") 2>conftest.er1 20513 ac_status=$? 20514 grep -v '^ *+' conftest.er1 >conftest.err 20515 rm -f conftest.er1 20516 cat conftest.err >&5 20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20518 (exit $ac_status); } && 20519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 20529 { ac_try='test -s conftest.$ac_objext' 20530 { (case "(($ac_try" in 20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20532 *) ac_try_echo=$ac_try;; 20533 esac 20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20535 (eval "$ac_try") 2>&5 20536 ac_status=$? 20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20538 (exit $ac_status); }; }; then 20539 20540 { echo "$as_me:$LINENO: result: yes" >&5 20541 echo "${ECHO_T}yes" >&6; } 20542 llvm_cv_win32_elmcb_pcstr="PCSTR" 20543 20544 else 20545 echo "$as_me: failed program was:" >&5 20546 sed 's/^/| /' conftest.$ac_ext >&5 20547 20548 20549 { echo "$as_me:$LINENO: result: no" >&5 20550 echo "${ECHO_T}no" >&6; } 20551 llvm_cv_win32_elmcb_pcstr="PSTR" 20552 20553 fi 20554 20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20556 20557 cat >>confdefs.h <<_ACEOF 20558 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 20559 _ACEOF 20560 20561 fi 20562 20563 20564 20565 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 20566 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 20567 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 20568 echo $ECHO_N "(cached) $ECHO_C" >&6 20569 else 20570 20571 ac_ext=cpp 20572 ac_cpp='$CXXCPP $CPPFLAGS' 20573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20576 20577 cat >conftest.$ac_ext <<_ACEOF 20578 /* confdefs.h. */ 20579 _ACEOF 20580 cat confdefs.h >>conftest.$ac_ext 20581 cat >>conftest.$ac_ext <<_ACEOF 20582 /* end confdefs.h. */ 20583 #include <math.h> 20584 int 20585 main () 20586 { 20587 float f; isnan(f); 20588 ; 20589 return 0; 20590 } 20591 _ACEOF 20592 rm -f conftest.$ac_objext 20593 if { (ac_try="$ac_compile" 20594 case "(($ac_try" in 20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20596 *) ac_try_echo=$ac_try;; 20597 esac 20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20599 (eval "$ac_compile") 2>conftest.er1 20600 ac_status=$? 20601 grep -v '^ *+' conftest.er1 >conftest.err 20602 rm -f conftest.er1 20603 cat conftest.err >&5 20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20605 (exit $ac_status); } && 20606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20607 { (case "(($ac_try" in 20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20609 *) ac_try_echo=$ac_try;; 20610 esac 20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20612 (eval "$ac_try") 2>&5 20613 ac_status=$? 20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20615 (exit $ac_status); }; } && 20616 { ac_try='test -s conftest.$ac_objext' 20617 { (case "(($ac_try" in 20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20619 *) ac_try_echo=$ac_try;; 20620 esac 20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20622 (eval "$ac_try") 2>&5 20623 ac_status=$? 20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20625 (exit $ac_status); }; }; then 20626 ac_cv_func_isnan_in_math_h=yes 20627 else 20628 echo "$as_me: failed program was:" >&5 20629 sed 's/^/| /' conftest.$ac_ext >&5 20630 20631 ac_cv_func_isnan_in_math_h=no 20632 fi 20633 20634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20635 ac_ext=c 20636 ac_cpp='$CPP $CPPFLAGS' 20637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20639 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20640 20641 20642 fi 20643 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 20644 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 20645 20646 20647 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 20648 20649 cat >>confdefs.h <<\_ACEOF 20650 #define HAVE_ISNAN_IN_MATH_H 1 20651 _ACEOF 20652 20653 fi 20654 20655 20656 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 20657 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 20658 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 20659 echo $ECHO_N "(cached) $ECHO_C" >&6 20660 else 20661 20662 ac_ext=cpp 20663 ac_cpp='$CXXCPP $CPPFLAGS' 20664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20667 20668 cat >conftest.$ac_ext <<_ACEOF 20669 /* confdefs.h. */ 20670 _ACEOF 20671 cat confdefs.h >>conftest.$ac_ext 20672 cat >>conftest.$ac_ext <<_ACEOF 20673 /* end confdefs.h. */ 20674 #include <cmath> 20675 int 20676 main () 20677 { 20678 float f; isnan(f); 20679 ; 20680 return 0; 20681 } 20682 _ACEOF 20683 rm -f conftest.$ac_objext 20684 if { (ac_try="$ac_compile" 20685 case "(($ac_try" in 20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20687 *) ac_try_echo=$ac_try;; 20688 esac 20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20690 (eval "$ac_compile") 2>conftest.er1 20691 ac_status=$? 20692 grep -v '^ *+' conftest.er1 >conftest.err 20693 rm -f conftest.er1 20694 cat conftest.err >&5 20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20696 (exit $ac_status); } && 20697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20698 { (case "(($ac_try" in 20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20700 *) ac_try_echo=$ac_try;; 20701 esac 20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20703 (eval "$ac_try") 2>&5 20704 ac_status=$? 20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20706 (exit $ac_status); }; } && 20707 { ac_try='test -s conftest.$ac_objext' 20708 { (case "(($ac_try" in 20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20710 *) ac_try_echo=$ac_try;; 20711 esac 20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20713 (eval "$ac_try") 2>&5 20714 ac_status=$? 20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20716 (exit $ac_status); }; }; then 20717 ac_cv_func_isnan_in_cmath=yes 20718 else 20719 echo "$as_me: failed program was:" >&5 20720 sed 's/^/| /' conftest.$ac_ext >&5 20721 20722 ac_cv_func_isnan_in_cmath=no 20723 fi 20724 20725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20726 ac_ext=c 20727 ac_cpp='$CPP $CPPFLAGS' 20728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20730 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20731 20732 20733 fi 20734 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 20735 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 20736 20737 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 20738 20739 cat >>confdefs.h <<\_ACEOF 20740 #define HAVE_ISNAN_IN_CMATH 1 20741 _ACEOF 20742 20743 fi 20744 20745 20746 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 20747 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 20748 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 20749 echo $ECHO_N "(cached) $ECHO_C" >&6 20750 else 20751 20752 ac_ext=cpp 20753 ac_cpp='$CXXCPP $CPPFLAGS' 20754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20757 20758 cat >conftest.$ac_ext <<_ACEOF 20759 /* confdefs.h. */ 20760 _ACEOF 20761 cat confdefs.h >>conftest.$ac_ext 20762 cat >>conftest.$ac_ext <<_ACEOF 20763 /* end confdefs.h. */ 20764 #include <cmath> 20765 int 20766 main () 20767 { 20768 float f; std::isnan(f); 20769 ; 20770 return 0; 20771 } 20772 _ACEOF 20773 rm -f conftest.$ac_objext 20774 if { (ac_try="$ac_compile" 20775 case "(($ac_try" in 20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20777 *) ac_try_echo=$ac_try;; 20778 esac 20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20780 (eval "$ac_compile") 2>conftest.er1 20781 ac_status=$? 20782 grep -v '^ *+' conftest.er1 >conftest.err 20783 rm -f conftest.er1 20784 cat conftest.err >&5 20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20786 (exit $ac_status); } && 20787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20788 { (case "(($ac_try" in 20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20790 *) ac_try_echo=$ac_try;; 20791 esac 20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20793 (eval "$ac_try") 2>&5 20794 ac_status=$? 20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20796 (exit $ac_status); }; } && 20797 { ac_try='test -s conftest.$ac_objext' 20798 { (case "(($ac_try" in 20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20800 *) ac_try_echo=$ac_try;; 20801 esac 20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20803 (eval "$ac_try") 2>&5 20804 ac_status=$? 20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20806 (exit $ac_status); }; }; then 20807 ac_cv_func_std_isnan_in_cmath=yes 20808 else 20809 echo "$as_me: failed program was:" >&5 20810 sed 's/^/| /' conftest.$ac_ext >&5 20811 20812 ac_cv_func_std_isnan_in_cmath=no 20813 fi 20814 20815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20816 ac_ext=c 20817 ac_cpp='$CPP $CPPFLAGS' 20818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20820 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20821 20822 20823 fi 20824 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 20825 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 20826 20827 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 20828 20829 cat >>confdefs.h <<\_ACEOF 20830 #define HAVE_STD_ISNAN_IN_CMATH 1 20831 _ACEOF 20832 20833 fi 20834 20835 20836 20837 20838 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 20839 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 20840 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 20841 echo $ECHO_N "(cached) $ECHO_C" >&6 20842 else 20843 20844 ac_ext=cpp 20845 ac_cpp='$CXXCPP $CPPFLAGS' 20846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20849 20850 cat >conftest.$ac_ext <<_ACEOF 20851 /* confdefs.h. */ 20852 _ACEOF 20853 cat confdefs.h >>conftest.$ac_ext 20854 cat >>conftest.$ac_ext <<_ACEOF 20855 /* end confdefs.h. */ 20856 #include <math.h> 20857 int 20858 main () 20859 { 20860 float f; isinf(f); 20861 ; 20862 return 0; 20863 } 20864 _ACEOF 20865 rm -f conftest.$ac_objext 20866 if { (ac_try="$ac_compile" 20867 case "(($ac_try" in 20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20869 *) ac_try_echo=$ac_try;; 20870 esac 20871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20872 (eval "$ac_compile") 2>conftest.er1 20873 ac_status=$? 20874 grep -v '^ *+' conftest.er1 >conftest.err 20875 rm -f conftest.er1 20876 cat conftest.err >&5 20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20878 (exit $ac_status); } && 20879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20880 { (case "(($ac_try" in 20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20882 *) ac_try_echo=$ac_try;; 20883 esac 20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20885 (eval "$ac_try") 2>&5 20886 ac_status=$? 20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20888 (exit $ac_status); }; } && 20889 { ac_try='test -s conftest.$ac_objext' 20890 { (case "(($ac_try" in 20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20892 *) ac_try_echo=$ac_try;; 20893 esac 20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20895 (eval "$ac_try") 2>&5 20896 ac_status=$? 20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20898 (exit $ac_status); }; }; then 20899 ac_cv_func_isinf_in_math_h=yes 20900 else 20901 echo "$as_me: failed program was:" >&5 20902 sed 's/^/| /' conftest.$ac_ext >&5 20903 20904 ac_cv_func_isinf_in_math_h=no 20905 fi 20906 20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20908 ac_ext=c 20909 ac_cpp='$CPP $CPPFLAGS' 20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20913 20914 20915 fi 20916 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 20917 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 20918 20919 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 20920 20921 cat >>confdefs.h <<\_ACEOF 20922 #define HAVE_ISINF_IN_MATH_H 1 20923 _ACEOF 20924 20925 fi 20926 20927 20928 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 20929 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 20930 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 20931 echo $ECHO_N "(cached) $ECHO_C" >&6 20932 else 20933 20934 ac_ext=cpp 20935 ac_cpp='$CXXCPP $CPPFLAGS' 20936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20939 20940 cat >conftest.$ac_ext <<_ACEOF 20941 /* confdefs.h. */ 20942 _ACEOF 20943 cat confdefs.h >>conftest.$ac_ext 20944 cat >>conftest.$ac_ext <<_ACEOF 20945 /* end confdefs.h. */ 20946 #include <cmath> 20947 int 20948 main () 20949 { 20950 float f; isinf(f); 20951 ; 20952 return 0; 20953 } 20954 _ACEOF 20955 rm -f conftest.$ac_objext 20956 if { (ac_try="$ac_compile" 20957 case "(($ac_try" in 20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20959 *) ac_try_echo=$ac_try;; 20960 esac 20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20962 (eval "$ac_compile") 2>conftest.er1 20963 ac_status=$? 20964 grep -v '^ *+' conftest.er1 >conftest.err 20965 rm -f conftest.er1 20966 cat conftest.err >&5 20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20968 (exit $ac_status); } && 20969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20970 { (case "(($ac_try" in 20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20972 *) ac_try_echo=$ac_try;; 20973 esac 20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20975 (eval "$ac_try") 2>&5 20976 ac_status=$? 20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20978 (exit $ac_status); }; } && 20979 { ac_try='test -s conftest.$ac_objext' 20980 { (case "(($ac_try" in 20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20982 *) ac_try_echo=$ac_try;; 20983 esac 20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20985 (eval "$ac_try") 2>&5 20986 ac_status=$? 20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20988 (exit $ac_status); }; }; then 20989 ac_cv_func_isinf_in_cmath=yes 20990 else 20991 echo "$as_me: failed program was:" >&5 20992 sed 's/^/| /' conftest.$ac_ext >&5 20993 20994 ac_cv_func_isinf_in_cmath=no 20995 fi 20996 20997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20998 ac_ext=c 20999 ac_cpp='$CPP $CPPFLAGS' 21000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21002 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21003 21004 21005 fi 21006 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 21007 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 21008 21009 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 21010 21011 cat >>confdefs.h <<\_ACEOF 21012 #define HAVE_ISINF_IN_CMATH 1 21013 _ACEOF 21014 21015 fi 21016 21017 21018 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 21019 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 21020 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 21021 echo $ECHO_N "(cached) $ECHO_C" >&6 21022 else 21023 21024 ac_ext=cpp 21025 ac_cpp='$CXXCPP $CPPFLAGS' 21026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21029 21030 cat >conftest.$ac_ext <<_ACEOF 21031 /* confdefs.h. */ 21032 _ACEOF 21033 cat confdefs.h >>conftest.$ac_ext 21034 cat >>conftest.$ac_ext <<_ACEOF 21035 /* end confdefs.h. */ 21036 #include <cmath> 21037 int 21038 main () 21039 { 21040 float f; std::isinf(f); 21041 ; 21042 return 0; 21043 } 21044 _ACEOF 21045 rm -f conftest.$ac_objext 21046 if { (ac_try="$ac_compile" 21047 case "(($ac_try" in 21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21049 *) ac_try_echo=$ac_try;; 21050 esac 21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21052 (eval "$ac_compile") 2>conftest.er1 21053 ac_status=$? 21054 grep -v '^ *+' conftest.er1 >conftest.err 21055 rm -f conftest.er1 21056 cat conftest.err >&5 21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21058 (exit $ac_status); } && 21059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21060 { (case "(($ac_try" in 21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21062 *) ac_try_echo=$ac_try;; 21063 esac 21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21065 (eval "$ac_try") 2>&5 21066 ac_status=$? 21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21068 (exit $ac_status); }; } && 21069 { ac_try='test -s conftest.$ac_objext' 21070 { (case "(($ac_try" in 21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21072 *) ac_try_echo=$ac_try;; 21073 esac 21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21075 (eval "$ac_try") 2>&5 21076 ac_status=$? 21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21078 (exit $ac_status); }; }; then 21079 ac_cv_func_std_isinf_in_cmath=yes 21080 else 21081 echo "$as_me: failed program was:" >&5 21082 sed 's/^/| /' conftest.$ac_ext >&5 21083 21084 ac_cv_func_std_isinf_in_cmath=no 21085 fi 21086 21087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21088 ac_ext=c 21089 ac_cpp='$CPP $CPPFLAGS' 21090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21092 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21093 21094 21095 fi 21096 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 21097 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 21098 21099 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 21100 21101 cat >>confdefs.h <<\_ACEOF 21102 #define HAVE_STD_ISINF_IN_CMATH 1 21103 _ACEOF 21104 21105 fi 21106 21107 21108 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 21109 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 21110 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 21111 echo $ECHO_N "(cached) $ECHO_C" >&6 21112 else 21113 21114 ac_ext=cpp 21115 ac_cpp='$CXXCPP $CPPFLAGS' 21116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21119 21120 cat >conftest.$ac_ext <<_ACEOF 21121 /* confdefs.h. */ 21122 _ACEOF 21123 cat confdefs.h >>conftest.$ac_ext 21124 cat >>conftest.$ac_ext <<_ACEOF 21125 /* end confdefs.h. */ 21126 #include <ieeefp.h> 21127 int 21128 main () 21129 { 21130 float f; finite(f); 21131 ; 21132 return 0; 21133 } 21134 _ACEOF 21135 rm -f conftest.$ac_objext 21136 if { (ac_try="$ac_compile" 21137 case "(($ac_try" in 21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21139 *) ac_try_echo=$ac_try;; 21140 esac 21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21142 (eval "$ac_compile") 2>conftest.er1 21143 ac_status=$? 21144 grep -v '^ *+' conftest.er1 >conftest.err 21145 rm -f conftest.er1 21146 cat conftest.err >&5 21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21148 (exit $ac_status); } && 21149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21150 { (case "(($ac_try" in 21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21152 *) ac_try_echo=$ac_try;; 21153 esac 21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21155 (eval "$ac_try") 2>&5 21156 ac_status=$? 21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21158 (exit $ac_status); }; } && 21159 { ac_try='test -s conftest.$ac_objext' 21160 { (case "(($ac_try" in 21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21162 *) ac_try_echo=$ac_try;; 21163 esac 21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21165 (eval "$ac_try") 2>&5 21166 ac_status=$? 21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21168 (exit $ac_status); }; }; then 21169 ac_cv_func_finite_in_ieeefp_h=yes 21170 else 21171 echo "$as_me: failed program was:" >&5 21172 sed 's/^/| /' conftest.$ac_ext >&5 21173 21174 ac_cv_func_finite_in_ieeefp_h=no 21175 fi 21176 21177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21178 ac_ext=c 21179 ac_cpp='$CPP $CPPFLAGS' 21180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21182 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21183 21184 21185 fi 21186 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 21187 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 21188 21189 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 21190 21191 cat >>confdefs.h <<\_ACEOF 21192 #define HAVE_FINITE_IN_IEEEFP_H 1 21193 _ACEOF 21194 21195 fi 21196 21197 21198 21199 if test "$llvm_cv_platform_type" = "Unix" ; then 21200 21201 21202 for ac_header in stdlib.h unistd.h 21203 do 21204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21206 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21209 echo $ECHO_N "(cached) $ECHO_C" >&6 21210 fi 21211 ac_res=`eval echo '${'$as_ac_Header'}'` 21212 { echo "$as_me:$LINENO: result: $ac_res" >&5 21213 echo "${ECHO_T}$ac_res" >&6; } 21214 else 21215 # Is the header compilable? 21216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 21217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21218 cat >conftest.$ac_ext <<_ACEOF 21219 /* confdefs.h. */ 21220 _ACEOF 21221 cat confdefs.h >>conftest.$ac_ext 21222 cat >>conftest.$ac_ext <<_ACEOF 21223 /* end confdefs.h. */ 21224 $ac_includes_default 21225 #include <$ac_header> 21226 _ACEOF 21227 rm -f conftest.$ac_objext 21228 if { (ac_try="$ac_compile" 21229 case "(($ac_try" in 21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21231 *) ac_try_echo=$ac_try;; 21232 esac 21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21234 (eval "$ac_compile") 2>conftest.er1 21235 ac_status=$? 21236 grep -v '^ *+' conftest.er1 >conftest.err 21237 rm -f conftest.er1 21238 cat conftest.err >&5 21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21240 (exit $ac_status); } && 21241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21242 { (case "(($ac_try" in 21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21244 *) ac_try_echo=$ac_try;; 21245 esac 21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21247 (eval "$ac_try") 2>&5 21248 ac_status=$? 21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21250 (exit $ac_status); }; } && 21251 { ac_try='test -s conftest.$ac_objext' 21252 { (case "(($ac_try" in 21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21254 *) ac_try_echo=$ac_try;; 21255 esac 21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21257 (eval "$ac_try") 2>&5 21258 ac_status=$? 21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21260 (exit $ac_status); }; }; then 21261 ac_header_compiler=yes 21262 else 21263 echo "$as_me: failed program was:" >&5 21264 sed 's/^/| /' conftest.$ac_ext >&5 21265 21266 ac_header_compiler=no 21267 fi 21268 21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21271 echo "${ECHO_T}$ac_header_compiler" >&6; } 21272 21273 # Is the header present? 21274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 21275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21276 cat >conftest.$ac_ext <<_ACEOF 21277 /* confdefs.h. */ 21278 _ACEOF 21279 cat confdefs.h >>conftest.$ac_ext 21280 cat >>conftest.$ac_ext <<_ACEOF 21281 /* end confdefs.h. */ 21282 #include <$ac_header> 21283 _ACEOF 21284 if { (ac_try="$ac_cpp conftest.$ac_ext" 21285 case "(($ac_try" in 21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21287 *) ac_try_echo=$ac_try;; 21288 esac 21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21291 ac_status=$? 21292 grep -v '^ *+' conftest.er1 >conftest.err 21293 rm -f conftest.er1 21294 cat conftest.err >&5 21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21296 (exit $ac_status); } >/dev/null; then 21297 if test -s conftest.err; then 21298 ac_cpp_err=$ac_c_preproc_warn_flag 21299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21300 else 21301 ac_cpp_err= 21302 fi 21303 else 21304 ac_cpp_err=yes 21305 fi 21306 if test -z "$ac_cpp_err"; then 21307 ac_header_preproc=yes 21308 else 21309 echo "$as_me: failed program was:" >&5 21310 sed 's/^/| /' conftest.$ac_ext >&5 21311 21312 ac_header_preproc=no 21313 fi 21314 21315 rm -f conftest.err conftest.$ac_ext 21316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21317 echo "${ECHO_T}$ac_header_preproc" >&6; } 21318 21319 # So? What about this header? 21320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21321 yes:no: ) 21322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21326 ac_header_preproc=yes 21327 ;; 21328 no:yes:* ) 21329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21341 ( cat <<\_ASBOX 21342 ## ------------------------------------ ## 21343 ## Report this to http://llvm.org/bugs/ ## 21344 ## ------------------------------------ ## 21345 _ASBOX 21346 ) | sed "s/^/$as_me: WARNING: /" >&2 21347 ;; 21348 esac 21349 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21352 echo $ECHO_N "(cached) $ECHO_C" >&6 21353 else 21354 eval "$as_ac_Header=\$ac_header_preproc" 21355 fi 21356 ac_res=`eval echo '${'$as_ac_Header'}'` 21357 { echo "$as_me:$LINENO: result: $ac_res" >&5 21358 echo "${ECHO_T}$ac_res" >&6; } 21359 21360 fi 21361 if test `eval echo '${'$as_ac_Header'}'` = yes; then 21362 cat >>confdefs.h <<_ACEOF 21363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21364 _ACEOF 21365 21366 fi 21367 21368 done 21369 21370 21371 for ac_func in getpagesize 21372 do 21373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21374 { echo "$as_me:$LINENO: checking for $ac_func" >&5 21375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21377 echo $ECHO_N "(cached) $ECHO_C" >&6 21378 else 21379 cat >conftest.$ac_ext <<_ACEOF 21380 /* confdefs.h. */ 21381 _ACEOF 21382 cat confdefs.h >>conftest.$ac_ext 21383 cat >>conftest.$ac_ext <<_ACEOF 21384 /* end confdefs.h. */ 21385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21386 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21387 #define $ac_func innocuous_$ac_func 21388 21389 /* System header to define __stub macros and hopefully few prototypes, 21390 which can conflict with char $ac_func (); below. 21391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21392 <limits.h> exists even on freestanding compilers. */ 21393 21394 #ifdef __STDC__ 21395 # include <limits.h> 21396 #else 21397 # include <assert.h> 21398 #endif 21399 21400 #undef $ac_func 21401 21402 /* Override any GCC internal prototype to avoid an error. 21403 Use char because int might match the return type of a GCC 21404 builtin and then its argument prototype would still apply. */ 21405 #ifdef __cplusplus 21406 extern "C" 21407 #endif 21408 char $ac_func (); 21409 /* The GNU C library defines this for functions which it implements 21410 to always fail with ENOSYS. Some functions are actually named 21411 something starting with __ and the normal name is an alias. */ 21412 #if defined __stub_$ac_func || defined __stub___$ac_func 21413 choke me 21414 #endif 21415 21416 int 21417 main () 21418 { 21419 return $ac_func (); 21420 ; 21421 return 0; 21422 } 21423 _ACEOF 21424 rm -f conftest.$ac_objext conftest$ac_exeext 21425 if { (ac_try="$ac_link" 21426 case "(($ac_try" in 21427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21428 *) ac_try_echo=$ac_try;; 21429 esac 21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21431 (eval "$ac_link") 2>conftest.er1 21432 ac_status=$? 21433 grep -v '^ *+' conftest.er1 >conftest.err 21434 rm -f conftest.er1 21435 cat conftest.err >&5 21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21437 (exit $ac_status); } && 21438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21439 { (case "(($ac_try" in 21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21441 *) ac_try_echo=$ac_try;; 21442 esac 21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21444 (eval "$ac_try") 2>&5 21445 ac_status=$? 21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21447 (exit $ac_status); }; } && 21448 { ac_try='test -s conftest$ac_exeext' 21449 { (case "(($ac_try" in 21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21451 *) ac_try_echo=$ac_try;; 21452 esac 21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21454 (eval "$ac_try") 2>&5 21455 ac_status=$? 21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21457 (exit $ac_status); }; }; then 21458 eval "$as_ac_var=yes" 21459 else 21460 echo "$as_me: failed program was:" >&5 21461 sed 's/^/| /' conftest.$ac_ext >&5 21462 21463 eval "$as_ac_var=no" 21464 fi 21465 21466 rm -f core conftest.err conftest.$ac_objext \ 21467 conftest$ac_exeext conftest.$ac_ext 21468 fi 21469 ac_res=`eval echo '${'$as_ac_var'}'` 21470 { echo "$as_me:$LINENO: result: $ac_res" >&5 21471 echo "${ECHO_T}$ac_res" >&6; } 21472 if test `eval echo '${'$as_ac_var'}'` = yes; then 21473 cat >>confdefs.h <<_ACEOF 21474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21475 _ACEOF 21476 21477 fi 21478 done 21479 21480 { echo "$as_me:$LINENO: checking for working mmap" >&5 21481 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 21482 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21483 echo $ECHO_N "(cached) $ECHO_C" >&6 21484 else 21485 if test "$cross_compiling" = yes; then 21486 ac_cv_func_mmap_fixed_mapped=no 21487 else 21488 cat >conftest.$ac_ext <<_ACEOF 21489 /* confdefs.h. */ 21490 _ACEOF 21491 cat confdefs.h >>conftest.$ac_ext 21492 cat >>conftest.$ac_ext <<_ACEOF 21493 /* end confdefs.h. */ 21494 $ac_includes_default 21495 /* malloc might have been renamed as rpl_malloc. */ 21496 #undef malloc 21497 21498 /* Thanks to Mike Haertel and Jim Avera for this test. 21499 Here is a matrix of mmap possibilities: 21500 mmap private not fixed 21501 mmap private fixed at somewhere currently unmapped 21502 mmap private fixed at somewhere already mapped 21503 mmap shared not fixed 21504 mmap shared fixed at somewhere currently unmapped 21505 mmap shared fixed at somewhere already mapped 21506 For private mappings, we should verify that changes cannot be read() 21507 back from the file, nor mmap's back from the file at a different 21508 address. (There have been systems where private was not correctly 21509 implemented like the infamous i386 svr4.0, and systems where the 21510 VM page cache was not coherent with the file system buffer cache 21511 like early versions of FreeBSD and possibly contemporary NetBSD.) 21512 For shared mappings, we should conversely verify that changes get 21513 propagated back to all the places they're supposed to be. 21514 21515 Grep wants private fixed already mapped. 21516 The main things grep needs to know about mmap are: 21517 * does it exist and is it safe to write into the mmap'd area 21518 * how to use it (BSD variants) */ 21519 21520 #include <fcntl.h> 21521 #include <sys/mman.h> 21522 21523 #if !STDC_HEADERS && !HAVE_STDLIB_H 21524 char *malloc (); 21525 #endif 21526 21527 /* This mess was copied from the GNU getpagesize.h. */ 21528 #if !HAVE_GETPAGESIZE 21529 /* Assume that all systems that can run configure have sys/param.h. */ 21530 # if !HAVE_SYS_PARAM_H 21531 # define HAVE_SYS_PARAM_H 1 21532 # endif 21533 21534 # ifdef _SC_PAGESIZE 21535 # define getpagesize() sysconf(_SC_PAGESIZE) 21536 # else /* no _SC_PAGESIZE */ 21537 # if HAVE_SYS_PARAM_H 21538 # include <sys/param.h> 21539 # ifdef EXEC_PAGESIZE 21540 # define getpagesize() EXEC_PAGESIZE 21541 # else /* no EXEC_PAGESIZE */ 21542 # ifdef NBPG 21543 # define getpagesize() NBPG * CLSIZE 21544 # ifndef CLSIZE 21545 # define CLSIZE 1 21546 # endif /* no CLSIZE */ 21547 # else /* no NBPG */ 21548 # ifdef NBPC 21549 # define getpagesize() NBPC 21550 # else /* no NBPC */ 21551 # ifdef PAGESIZE 21552 # define getpagesize() PAGESIZE 21553 # endif /* PAGESIZE */ 21554 # endif /* no NBPC */ 21555 # endif /* no NBPG */ 21556 # endif /* no EXEC_PAGESIZE */ 21557 # else /* no HAVE_SYS_PARAM_H */ 21558 # define getpagesize() 8192 /* punt totally */ 21559 # endif /* no HAVE_SYS_PARAM_H */ 21560 # endif /* no _SC_PAGESIZE */ 21561 21562 #endif /* no HAVE_GETPAGESIZE */ 21563 21564 int 21565 main () 21566 { 21567 char *data, *data2, *data3; 21568 int i, pagesize; 21569 int fd; 21570 21571 pagesize = getpagesize (); 21572 21573 /* First, make a file with some known garbage in it. */ 21574 data = (char *) malloc (pagesize); 21575 if (!data) 21576 return 1; 21577 for (i = 0; i < pagesize; ++i) 21578 *(data + i) = rand (); 21579 umask (0); 21580 fd = creat ("conftest.mmap", 0600); 21581 if (fd < 0) 21582 return 1; 21583 if (write (fd, data, pagesize) != pagesize) 21584 return 1; 21585 close (fd); 21586 21587 /* Next, try to mmap the file at a fixed address which already has 21588 something else allocated at it. If we can, also make sure that 21589 we see the same garbage. */ 21590 fd = open ("conftest.mmap", O_RDWR); 21591 if (fd < 0) 21592 return 1; 21593 data2 = (char *) malloc (2 * pagesize); 21594 if (!data2) 21595 return 1; 21596 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 21597 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21598 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21599 return 1; 21600 for (i = 0; i < pagesize; ++i) 21601 if (*(data + i) != *(data2 + i)) 21602 return 1; 21603 21604 /* Finally, make sure that changes to the mapped area do not 21605 percolate back to the file as seen by read(). (This is a bug on 21606 some variants of i386 svr4.0.) */ 21607 for (i = 0; i < pagesize; ++i) 21608 *(data2 + i) = *(data2 + i) + 1; 21609 data3 = (char *) malloc (pagesize); 21610 if (!data3) 21611 return 1; 21612 if (read (fd, data3, pagesize) != pagesize) 21613 return 1; 21614 for (i = 0; i < pagesize; ++i) 21615 if (*(data + i) != *(data3 + i)) 21616 return 1; 21617 close (fd); 21618 return 0; 21619 } 21620 _ACEOF 21621 rm -f conftest$ac_exeext 21622 if { (ac_try="$ac_link" 21623 case "(($ac_try" in 21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21625 *) ac_try_echo=$ac_try;; 21626 esac 21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21628 (eval "$ac_link") 2>&5 21629 ac_status=$? 21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21632 { (case "(($ac_try" in 21633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21634 *) ac_try_echo=$ac_try;; 21635 esac 21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21637 (eval "$ac_try") 2>&5 21638 ac_status=$? 21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21640 (exit $ac_status); }; }; then 21641 ac_cv_func_mmap_fixed_mapped=yes 21642 else 21643 echo "$as_me: program exited with status $ac_status" >&5 21644 echo "$as_me: failed program was:" >&5 21645 sed 's/^/| /' conftest.$ac_ext >&5 21646 21647 ( exit $ac_status ) 21648 ac_cv_func_mmap_fixed_mapped=no 21649 fi 21650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21651 fi 21652 21653 21654 fi 21655 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 21656 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 21657 if test $ac_cv_func_mmap_fixed_mapped = yes; then 21658 21659 cat >>confdefs.h <<\_ACEOF 21660 #define HAVE_MMAP 1 21661 _ACEOF 21662 21663 fi 21664 rm -f conftest.mmap 21665 21666 { echo "$as_me:$LINENO: checking for mmap of files" >&5 21667 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 21668 if test "${ac_cv_func_mmap_file+set}" = set; then 21669 echo $ECHO_N "(cached) $ECHO_C" >&6 21670 else 21671 ac_ext=c 21672 ac_cpp='$CPP $CPPFLAGS' 21673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21675 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21676 21677 if test "$cross_compiling" = yes; then 21678 ac_cv_func_mmap_file=no 21679 else 21680 cat >conftest.$ac_ext <<_ACEOF 21681 21682 /* confdefs.h. */ 21683 _ACEOF 21684 cat confdefs.h >>conftest.$ac_ext 21685 cat >>conftest.$ac_ext <<_ACEOF 21686 /* end confdefs.h. */ 21687 21688 #include <sys/types.h> 21689 #include <sys/mman.h> 21690 #include <fcntl.h> 21691 21692 int 21693 main () 21694 { 21695 21696 int fd; 21697 fd = creat ("foo",0777); 21698 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 21699 unlink ("foo"); 21700 return (fd != (int) MAP_FAILED); 21701 ; 21702 return 0; 21703 } 21704 _ACEOF 21705 rm -f conftest$ac_exeext 21706 if { (ac_try="$ac_link" 21707 case "(($ac_try" in 21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21709 *) ac_try_echo=$ac_try;; 21710 esac 21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21712 (eval "$ac_link") 2>&5 21713 ac_status=$? 21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21716 { (case "(($ac_try" in 21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21718 *) ac_try_echo=$ac_try;; 21719 esac 21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21721 (eval "$ac_try") 2>&5 21722 ac_status=$? 21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21724 (exit $ac_status); }; }; then 21725 ac_cv_func_mmap_file=yes 21726 else 21727 echo "$as_me: program exited with status $ac_status" >&5 21728 echo "$as_me: failed program was:" >&5 21729 sed 's/^/| /' conftest.$ac_ext >&5 21730 21731 ( exit $ac_status ) 21732 ac_cv_func_mmap_file=no 21733 fi 21734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21735 fi 21736 21737 21738 ac_ext=c 21739 ac_cpp='$CPP $CPPFLAGS' 21740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21742 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21743 21744 21745 fi 21746 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 21747 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 21748 if test "$ac_cv_func_mmap_file" = yes; then 21749 21750 cat >>confdefs.h <<\_ACEOF 21751 #define HAVE_MMAP_FILE 21752 _ACEOF 21753 21754 MMAP_FILE=yes 21755 21756 fi 21757 21758 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 21759 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 21760 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 21761 echo $ECHO_N "(cached) $ECHO_C" >&6 21762 else 21763 if test "$llvm_cv_os_type" = "Interix" ; then 21764 ac_cv_need_dev_zero_for_mmap=yes 21765 else 21766 ac_cv_need_dev_zero_for_mmap=no 21767 fi 21768 21769 fi 21770 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 21771 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 21772 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 21773 21774 cat >>confdefs.h <<\_ACEOF 21775 #define NEED_DEV_ZERO_FOR_MMAP 1 21776 _ACEOF 21777 21778 fi 21779 21780 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 21781 then 21782 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 21783 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 21784 fi 21785 if test "$ac_cv_func_mmap_file" = "no" 21786 then 21787 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 21788 echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 21789 fi 21790 fi 21791 21792 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 21793 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 21794 ac_ext=cpp 21795 ac_cpp='$CXXCPP $CPPFLAGS' 21796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21799 21800 cat >conftest.$ac_ext <<_ACEOF 21801 21802 /* confdefs.h. */ 21803 _ACEOF 21804 cat confdefs.h >>conftest.$ac_ext 21805 cat >>conftest.$ac_ext <<_ACEOF 21806 /* end confdefs.h. */ 21807 21808 int main() { 21809 volatile unsigned long val = 1; 21810 __sync_synchronize(); 21811 __sync_val_compare_and_swap(&val, 1, 0); 21812 __sync_add_and_fetch(&val, 1); 21813 __sync_sub_and_fetch(&val, 1); 21814 return 0; 21815 } 21816 21817 21818 _ACEOF 21819 rm -f conftest.$ac_objext conftest$ac_exeext 21820 if { (ac_try="$ac_link" 21821 case "(($ac_try" in 21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21823 *) ac_try_echo=$ac_try;; 21824 esac 21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21826 (eval "$ac_link") 2>conftest.er1 21827 ac_status=$? 21828 grep -v '^ *+' conftest.er1 >conftest.err 21829 rm -f conftest.er1 21830 cat conftest.err >&5 21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21832 (exit $ac_status); } && 21833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21834 { (case "(($ac_try" in 21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21836 *) ac_try_echo=$ac_try;; 21837 esac 21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21839 (eval "$ac_try") 2>&5 21840 ac_status=$? 21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21842 (exit $ac_status); }; } && 21843 { ac_try='test -s conftest$ac_exeext' 21844 { (case "(($ac_try" in 21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21846 *) ac_try_echo=$ac_try;; 21847 esac 21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21849 (eval "$ac_try") 2>&5 21850 ac_status=$? 21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21852 (exit $ac_status); }; }; then 21853 21854 { echo "$as_me:$LINENO: result: yes" >&5 21855 echo "${ECHO_T}yes" >&6; } 21856 21857 cat >>confdefs.h <<\_ACEOF 21858 #define LLVM_HAS_ATOMICS 1 21859 _ACEOF 21860 21861 21862 else 21863 echo "$as_me: failed program was:" >&5 21864 sed 's/^/| /' conftest.$ac_ext >&5 21865 21866 21867 { echo "$as_me:$LINENO: result: no" >&5 21868 echo "${ECHO_T}no" >&6; } 21869 21870 cat >>confdefs.h <<\_ACEOF 21871 #define LLVM_HAS_ATOMICS 0 21872 _ACEOF 21873 21874 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 21875 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 21876 21877 fi 21878 21879 rm -f core conftest.err conftest.$ac_objext \ 21880 conftest$ac_exeext conftest.$ac_ext 21881 ac_ext=c 21882 ac_cpp='$CPP $CPPFLAGS' 21883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21885 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21886 21887 21888 21889 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 21890 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 21891 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 21892 if test "${llvm_cv_linux_mixed+set}" = set; then 21893 echo $ECHO_N "(cached) $ECHO_C" >&6 21894 else 21895 ac_ext=c 21896 ac_cpp='$CPP $CPPFLAGS' 21897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21899 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21900 21901 cat >conftest.$ac_ext <<_ACEOF 21902 /* confdefs.h. */ 21903 _ACEOF 21904 cat confdefs.h >>conftest.$ac_ext 21905 cat >>conftest.$ac_ext <<_ACEOF 21906 /* end confdefs.h. */ 21907 #ifndef __x86_64__ 21908 error: Not x86-64 even if uname says so! 21909 #endif 21910 21911 int 21912 main () 21913 { 21914 21915 ; 21916 return 0; 21917 } 21918 _ACEOF 21919 rm -f conftest.$ac_objext 21920 if { (ac_try="$ac_compile" 21921 case "(($ac_try" in 21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21923 *) ac_try_echo=$ac_try;; 21924 esac 21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21926 (eval "$ac_compile") 2>conftest.er1 21927 ac_status=$? 21928 grep -v '^ *+' conftest.er1 >conftest.err 21929 rm -f conftest.er1 21930 cat conftest.err >&5 21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21932 (exit $ac_status); } && 21933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21934 { (case "(($ac_try" in 21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21936 *) ac_try_echo=$ac_try;; 21937 esac 21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21939 (eval "$ac_try") 2>&5 21940 ac_status=$? 21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21942 (exit $ac_status); }; } && 21943 { ac_try='test -s conftest.$ac_objext' 21944 { (case "(($ac_try" in 21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21946 *) ac_try_echo=$ac_try;; 21947 esac 21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21949 (eval "$ac_try") 2>&5 21950 ac_status=$? 21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21952 (exit $ac_status); }; }; then 21953 llvm_cv_linux_mixed=no 21954 else 21955 echo "$as_me: failed program was:" >&5 21956 sed 's/^/| /' conftest.$ac_ext >&5 21957 21958 llvm_cv_linux_mixed=yes 21959 fi 21960 21961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21962 ac_ext=c 21963 ac_cpp='$CPP $CPPFLAGS' 21964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21966 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21967 21968 21969 fi 21970 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 21971 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 21972 21973 if test "$llvm_cv_linux_mixed" = "yes"; then 21974 llvm_cv_target_arch="x86" 21975 ARCH="x86" 21976 fi 21977 fi 21978 21979 21980 for ac_func in __dso_handle 21981 do 21982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21983 { echo "$as_me:$LINENO: checking for $ac_func" >&5 21984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21986 echo $ECHO_N "(cached) $ECHO_C" >&6 21987 else 21988 cat >conftest.$ac_ext <<_ACEOF 21989 /* confdefs.h. */ 21990 _ACEOF 21991 cat confdefs.h >>conftest.$ac_ext 21992 cat >>conftest.$ac_ext <<_ACEOF 21993 /* end confdefs.h. */ 21994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21995 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21996 #define $ac_func innocuous_$ac_func 21997 21998 /* System header to define __stub macros and hopefully few prototypes, 21999 which can conflict with char $ac_func (); below. 22000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22001 <limits.h> exists even on freestanding compilers. */ 22002 22003 #ifdef __STDC__ 22004 # include <limits.h> 22005 #else 22006 # include <assert.h> 22007 #endif 22008 22009 #undef $ac_func 22010 22011 /* Override any GCC internal prototype to avoid an error. 22012 Use char because int might match the return type of a GCC 22013 builtin and then its argument prototype would still apply. */ 22014 #ifdef __cplusplus 22015 extern "C" 22016 #endif 22017 char $ac_func (); 22018 /* The GNU C library defines this for functions which it implements 22019 to always fail with ENOSYS. Some functions are actually named 22020 something starting with __ and the normal name is an alias. */ 22021 #if defined __stub_$ac_func || defined __stub___$ac_func 22022 choke me 22023 #endif 22024 22025 int 22026 main () 22027 { 22028 return $ac_func (); 22029 ; 22030 return 0; 22031 } 22032 _ACEOF 22033 rm -f conftest.$ac_objext conftest$ac_exeext 22034 if { (ac_try="$ac_link" 22035 case "(($ac_try" in 22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22037 *) ac_try_echo=$ac_try;; 22038 esac 22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22040 (eval "$ac_link") 2>conftest.er1 22041 ac_status=$? 22042 grep -v '^ *+' conftest.er1 >conftest.err 22043 rm -f conftest.er1 22044 cat conftest.err >&5 22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22046 (exit $ac_status); } && 22047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22048 { (case "(($ac_try" in 22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22050 *) ac_try_echo=$ac_try;; 22051 esac 22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22053 (eval "$ac_try") 2>&5 22054 ac_status=$? 22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22056 (exit $ac_status); }; } && 22057 { ac_try='test -s conftest$ac_exeext' 22058 { (case "(($ac_try" in 22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22060 *) ac_try_echo=$ac_try;; 22061 esac 22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22063 (eval "$ac_try") 2>&5 22064 ac_status=$? 22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22066 (exit $ac_status); }; }; then 22067 eval "$as_ac_var=yes" 22068 else 22069 echo "$as_me: failed program was:" >&5 22070 sed 's/^/| /' conftest.$ac_ext >&5 22071 22072 eval "$as_ac_var=no" 22073 fi 22074 22075 rm -f core conftest.err conftest.$ac_objext \ 22076 conftest$ac_exeext conftest.$ac_ext 22077 fi 22078 ac_res=`eval echo '${'$as_ac_var'}'` 22079 { echo "$as_me:$LINENO: result: $ac_res" >&5 22080 echo "${ECHO_T}$ac_res" >&6; } 22081 if test `eval echo '${'$as_ac_var'}'` = yes; then 22082 cat >>confdefs.h <<_ACEOF 22083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22084 _ACEOF 22085 22086 fi 22087 done 22088 22089 22090 SHLIBEXT=$libltdl_cv_shlibext 22091 22092 22093 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 22094 22095 22096 if test "${prefix}" = "NONE" ; then 22097 prefix="/usr/local" 22098 fi 22099 eval LLVM_PREFIX="${prefix}"; 22100 eval LLVM_BINDIR="${prefix}/bin"; 22101 eval LLVM_DATADIR="${prefix}/share/llvm"; 22102 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 22103 eval LLVM_ETCDIR="${prefix}/etc/llvm"; 22104 eval LLVM_INCLUDEDIR="${prefix}/include"; 22105 eval LLVM_INFODIR="${prefix}/info"; 22106 eval LLVM_MANDIR="${prefix}/man"; 22107 LLVM_CONFIGTIME=`date` 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 if test "${ENABLE_TIMESTAMPS}" = "0"; then 22119 LLVM_CONFIGTIME="(timestamp not enabled)" 22120 fi 22121 22122 22123 cat >>confdefs.h <<_ACEOF 22124 #define LLVM_PREFIX "$LLVM_PREFIX" 22125 _ACEOF 22126 22127 22128 cat >>confdefs.h <<_ACEOF 22129 #define LLVM_BINDIR "$LLVM_BINDIR" 22130 _ACEOF 22131 22132 22133 cat >>confdefs.h <<_ACEOF 22134 #define LLVM_DATADIR "$LLVM_DATADIR" 22135 _ACEOF 22136 22137 22138 cat >>confdefs.h <<_ACEOF 22139 #define LLVM_DOCSDIR "$LLVM_DOCSDIR" 22140 _ACEOF 22141 22142 22143 cat >>confdefs.h <<_ACEOF 22144 #define LLVM_ETCDIR "$LLVM_ETCDIR" 22145 _ACEOF 22146 22147 22148 cat >>confdefs.h <<_ACEOF 22149 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 22150 _ACEOF 22151 22152 22153 cat >>confdefs.h <<_ACEOF 22154 #define LLVM_INFODIR "$LLVM_INFODIR" 22155 _ACEOF 22156 22157 22158 cat >>confdefs.h <<_ACEOF 22159 #define LLVM_MANDIR "$LLVM_MANDIR" 22160 _ACEOF 22161 22162 22163 cat >>confdefs.h <<_ACEOF 22164 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 22165 _ACEOF 22166 22167 22168 cat >>confdefs.h <<_ACEOF 22169 #define LLVM_HOST_TRIPLE "$host" 22170 _ACEOF 22171 22172 22173 cat >>confdefs.h <<_ACEOF 22174 #define LLVM_DEFAULT_TARGET_TRIPLE "$target" 22175 _ACEOF 22176 22177 22178 if test "$BINDINGS_TO_BUILD" = auto ; then 22179 BINDINGS_TO_BUILD="" 22180 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 22181 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 22182 fi 22183 fi 22184 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 22185 22186 22187 ALL_BINDINGS=ocaml 22188 22189 22190 binding_prereqs_failed=0 22191 for a_binding in $BINDINGS_TO_BUILD ; do 22192 case "$a_binding" in 22193 ocaml) 22194 if test "x$OCAMLC" = x ; then 22195 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 22196 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 22197 binding_prereqs_failed=1 22198 fi 22199 if test "x$OCAMLDEP" = x ; then 22200 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 22201 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 22202 binding_prereqs_failed=1 22203 fi 22204 if test "x$OCAMLOPT" = x ; then 22205 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 22206 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 22207 fi 22208 if test "x$with_ocaml_libdir" != xauto ; then 22209 OCAML_LIBDIR=$with_ocaml_libdir 22210 22211 else 22212 ocaml_stdlib="`"$OCAMLC" -where`" 22213 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 22214 then 22215 # ocaml stdlib is beneath our prefix; use stdlib 22216 OCAML_LIBDIR=$ocaml_stdlib 22217 22218 else 22219 # ocaml stdlib is outside our prefix; use libdir/ocaml 22220 OCAML_LIBDIR=${prefix}/lib/ocaml 22221 22222 fi 22223 fi 22224 ;; 22225 esac 22226 done 22227 if test "$binding_prereqs_failed" = 1 ; then 22228 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 22229 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 22230 { (exit 1); exit 1; }; } 22231 fi 22232 22233 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 22234 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 22235 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 22236 echo $ECHO_N "(cached) $ECHO_C" >&6 22237 else 22238 ac_ext=cpp 22239 ac_cpp='$CXXCPP $CPPFLAGS' 22240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22243 22244 oldcxxflags="$CXXFLAGS" 22245 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 22246 cat >conftest.$ac_ext <<_ACEOF 22247 /* confdefs.h. */ 22248 _ACEOF 22249 cat confdefs.h >>conftest.$ac_ext 22250 cat >>conftest.$ac_ext <<_ACEOF 22251 /* end confdefs.h. */ 22252 template <typename T> struct X { void __attribute__((noinline)) f() {} }; 22253 int 22254 main () 22255 { 22256 X<int>().f(); 22257 ; 22258 return 0; 22259 } 22260 _ACEOF 22261 rm -f conftest.$ac_objext 22262 if { (ac_try="$ac_compile" 22263 case "(($ac_try" in 22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22265 *) ac_try_echo=$ac_try;; 22266 esac 22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22268 (eval "$ac_compile") 2>conftest.er1 22269 ac_status=$? 22270 grep -v '^ *+' conftest.er1 >conftest.err 22271 rm -f conftest.er1 22272 cat conftest.err >&5 22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22274 (exit $ac_status); } && 22275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 22276 { (case "(($ac_try" in 22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22278 *) ac_try_echo=$ac_try;; 22279 esac 22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22281 (eval "$ac_try") 2>&5 22282 ac_status=$? 22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22284 (exit $ac_status); }; } && 22285 { ac_try='test -s conftest.$ac_objext' 22286 { (case "(($ac_try" in 22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22288 *) ac_try_echo=$ac_try;; 22289 esac 22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22291 (eval "$ac_try") 2>&5 22292 ac_status=$? 22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22294 (exit $ac_status); }; }; then 22295 llvm_cv_cxx_visibility_inlines_hidden=yes 22296 else 22297 echo "$as_me: failed program was:" >&5 22298 sed 's/^/| /' conftest.$ac_ext >&5 22299 22300 llvm_cv_cxx_visibility_inlines_hidden=no 22301 fi 22302 22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22304 CXXFLAGS="$oldcxxflags" 22305 ac_ext=c 22306 ac_cpp='$CPP $CPPFLAGS' 22307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22309 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22310 22311 22312 fi 22313 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 22314 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 22315 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 22316 ENABLE_VISIBILITY_INLINES_HIDDEN=1 22317 22318 else 22319 ENABLE_VISIBILITY_INLINES_HIDDEN=0 22320 22321 fi 22322 22323 22324 if test "$llvm_cv_link_use_r" = "yes" ; then 22325 RPATH="-Wl,-R" 22326 else 22327 RPATH="-Wl,-rpath" 22328 fi 22329 22330 22331 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 22332 RDYNAMIC="-rdynamic" 22333 else 22334 RDYNAMIC="" 22335 fi 22336 22337 22338 22339 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 22340 22341 22342 22343 22344 22345 22346 ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 22347 22348 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 22349 22350 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 22351 22352 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 22353 22354 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 22355 22356 22357 ac_config_files="$ac_config_files Makefile.config" 22358 22359 22360 ac_config_files="$ac_config_files llvm.spec" 22361 22362 22363 ac_config_files="$ac_config_files docs/doxygen.cfg" 22364 22365 22366 if test "${clang_src_root}" = ""; then 22367 clang_src_root="$srcdir/tools/clang" 22368 fi 22369 if test -f ${clang_src_root}/README.txt; then 22370 configh="include/clang/Config/config.h" 22371 doxy="docs/doxygen.cfg" 22372 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 22373 22374 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 22375 22376 fi 22377 22378 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 22379 22380 22381 test "x$program_prefix" = "xNONE" && program_prefix="" 22382 22383 22384 22385 ac_config_commands="$ac_config_commands setup" 22386 22387 ac_config_commands="$ac_config_commands Makefile" 22388 22389 22390 ac_config_commands="$ac_config_commands Makefile.common" 22391 22392 22393 ac_config_commands="$ac_config_commands examples/Makefile" 22394 22395 22396 ac_config_commands="$ac_config_commands lib/Makefile" 22397 22398 22399 ac_config_commands="$ac_config_commands runtime/Makefile" 22400 22401 22402 ac_config_commands="$ac_config_commands test/Makefile" 22403 22404 22405 ac_config_commands="$ac_config_commands test/Makefile.tests" 22406 22407 22408 ac_config_commands="$ac_config_commands unittests/Makefile" 22409 22410 22411 ac_config_commands="$ac_config_commands tools/Makefile" 22412 22413 22414 ac_config_commands="$ac_config_commands utils/Makefile" 22415 22416 22417 ac_config_commands="$ac_config_commands projects/Makefile" 22418 22419 22420 ac_config_commands="$ac_config_commands bindings/Makefile" 22421 22422 22423 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 22424 22425 22426 22427 cat >confcache <<\_ACEOF 22428 # This file is a shell script that caches the results of configure 22429 # tests run on this system so they can be shared between configure 22430 # scripts and configure runs, see configure's option --config-cache. 22431 # It is not useful on other systems. If it contains results you don't 22432 # want to keep, you may remove or edit it. 22433 # 22434 # config.status only pays attention to the cache file if you give it 22435 # the --recheck option to rerun configure. 22436 # 22437 # `ac_cv_env_foo' variables (set or unset) will be overridden when 22438 # loading this file, other *unset* `ac_cv_foo' will be assigned the 22439 # following values. 22440 22441 _ACEOF 22442 22443 # The following way of writing the cache mishandles newlines in values, 22444 # but we know of no workaround that is simple, portable, and efficient. 22445 # So, we kill variables containing newlines. 22446 # Ultrix sh set writes to stderr and can't be redirected directly, 22447 # and sets the high bit in the cache file unless we assign to the vars. 22448 ( 22449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22450 eval ac_val=\$$ac_var 22451 case $ac_val in #( 22452 *${as_nl}*) 22453 case $ac_var in #( 22454 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22455 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22456 esac 22457 case $ac_var in #( 22458 _ | IFS | as_nl) ;; #( 22459 *) $as_unset $ac_var ;; 22460 esac ;; 22461 esac 22462 done 22463 22464 (set) 2>&1 | 22465 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22466 *${as_nl}ac_space=\ *) 22467 # `set' does not quote correctly, so add quotes (double-quote 22468 # substitution turns \\\\ into \\, and sed turns \\ into \). 22469 sed -n \ 22470 "s/'/'\\\\''/g; 22471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22472 ;; #( 22473 *) 22474 # `set' quotes correctly as required by POSIX, so do not add quotes. 22475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22476 ;; 22477 esac | 22478 sort 22479 ) | 22480 sed ' 22481 /^ac_cv_env_/b end 22482 t clear 22483 :clear 22484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22485 t end 22486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22487 :end' >>confcache 22488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22489 if test -w "$cache_file"; then 22490 test "x$cache_file" != "x/dev/null" && 22491 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22492 echo "$as_me: updating cache $cache_file" >&6;} 22493 cat confcache >$cache_file 22494 else 22495 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22496 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22497 fi 22498 fi 22499 rm -f confcache 22500 22501 test "x$prefix" = xNONE && prefix=$ac_default_prefix 22502 # Let make expand exec_prefix. 22503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22504 22505 DEFS=-DHAVE_CONFIG_H 22506 22507 ac_libobjs= 22508 ac_ltlibobjs= 22509 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22510 # 1. Remove the extension, and $U if already installed. 22511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22512 ac_i=`echo "$ac_i" | sed "$ac_script"` 22513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22514 # will be set to the directory where LIBOBJS objects are built. 22515 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22516 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22517 done 22518 LIBOBJS=$ac_libobjs 22519 22520 LTLIBOBJS=$ac_ltlibobjs 22521 22522 22523 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 22524 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 22525 Usually this means the macro was only invoked conditionally." >&5 22526 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 22527 Usually this means the macro was only invoked conditionally." >&2;} 22528 { (exit 1); exit 1; }; } 22529 fi 22530 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 22531 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22532 Usually this means the macro was only invoked conditionally." >&5 22533 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22534 Usually this means the macro was only invoked conditionally." >&2;} 22535 { (exit 1); exit 1; }; } 22536 fi 22537 22538 : ${CONFIG_STATUS=./config.status} 22539 ac_clean_files_save=$ac_clean_files 22540 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22541 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22542 echo "$as_me: creating $CONFIG_STATUS" >&6;} 22543 cat >$CONFIG_STATUS <<_ACEOF 22544 #! $SHELL 22545 # Generated by $as_me. 22546 # Run this file to recreate the current configuration. 22547 # Compiler output produced by configure, useful for debugging 22548 # configure, is in config.log if it exists. 22549 22550 debug=false 22551 ac_cs_recheck=false 22552 ac_cs_silent=false 22553 SHELL=\${CONFIG_SHELL-$SHELL} 22554 _ACEOF 22555 22556 cat >>$CONFIG_STATUS <<\_ACEOF 22557 ## --------------------- ## 22558 ## M4sh Initialization. ## 22559 ## --------------------- ## 22560 22561 # Be Bourne compatible 22562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22563 emulate sh 22564 NULLCMD=: 22565 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22566 # is contrary to our usage. Disable this feature. 22567 alias -g '${1+"$@"}'='"$@"' 22568 setopt NO_GLOB_SUBST 22569 else 22570 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 22571 fi 22572 BIN_SH=xpg4; export BIN_SH # for Tru64 22573 DUALCASE=1; export DUALCASE # for MKS sh 22574 22575 22576 # PATH needs CR 22577 # Avoid depending upon Character Ranges. 22578 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22581 as_cr_digits='0123456789' 22582 as_cr_alnum=$as_cr_Letters$as_cr_digits 22583 22584 # The user is always right. 22585 if test "${PATH_SEPARATOR+set}" != set; then 22586 echo "#! /bin/sh" >conf$$.sh 22587 echo "exit 0" >>conf$$.sh 22588 chmod +x conf$$.sh 22589 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22590 PATH_SEPARATOR=';' 22591 else 22592 PATH_SEPARATOR=: 22593 fi 22594 rm -f conf$$.sh 22595 fi 22596 22597 # Support unset when possible. 22598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22599 as_unset=unset 22600 else 22601 as_unset=false 22602 fi 22603 22604 22605 # IFS 22606 # We need space, tab and new line, in precisely that order. Quoting is 22607 # there to prevent editors from complaining about space-tab. 22608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 22609 # splitting by setting IFS to empty value.) 22610 as_nl=' 22611 ' 22612 IFS=" "" $as_nl" 22613 22614 # Find who we are. Look in the path if we contain no directory separator. 22615 case $0 in 22616 *[\\/]* ) as_myself=$0 ;; 22617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22618 for as_dir in $PATH 22619 do 22620 IFS=$as_save_IFS 22621 test -z "$as_dir" && as_dir=. 22622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22623 done 22624 IFS=$as_save_IFS 22625 22626 ;; 22627 esac 22628 # We did not find ourselves, most probably we were run as `sh COMMAND' 22629 # in which case we are not to be found in the path. 22630 if test "x$as_myself" = x; then 22631 as_myself=$0 22632 fi 22633 if test ! -f "$as_myself"; then 22634 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22635 { (exit 1); exit 1; } 22636 fi 22637 22638 # Work around bugs in pre-3.0 UWIN ksh. 22639 for as_var in ENV MAIL MAILPATH 22640 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22641 done 22642 PS1='$ ' 22643 PS2='> ' 22644 PS4='+ ' 22645 22646 # NLS nuisances. 22647 for as_var in \ 22648 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22649 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22650 LC_TELEPHONE LC_TIME 22651 do 22652 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22653 eval $as_var=C; export $as_var 22654 else 22655 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22656 fi 22657 done 22658 22659 # Required to use basename. 22660 if expr a : '\(a\)' >/dev/null 2>&1 && 22661 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22662 as_expr=expr 22663 else 22664 as_expr=false 22665 fi 22666 22667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22668 as_basename=basename 22669 else 22670 as_basename=false 22671 fi 22672 22673 22674 # Name of the executable. 22675 as_me=`$as_basename -- "$0" || 22676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22677 X"$0" : 'X\(//\)$' \| \ 22678 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22679 echo X/"$0" | 22680 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22681 s//\1/ 22682 q 22683 } 22684 /^X\/\(\/\/\)$/{ 22685 s//\1/ 22686 q 22687 } 22688 /^X\/\(\/\).*/{ 22689 s//\1/ 22690 q 22691 } 22692 s/.*/./; q'` 22693 22694 # CDPATH. 22695 $as_unset CDPATH 22696 22697 22698 22699 as_lineno_1=$LINENO 22700 as_lineno_2=$LINENO 22701 test "x$as_lineno_1" != "x$as_lineno_2" && 22702 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22703 22704 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22705 # uniformly replaced by the line number. The first 'sed' inserts a 22706 # line-number line after each line using $LINENO; the second 'sed' 22707 # does the real work. The second script uses 'N' to pair each 22708 # line-number line with the line containing $LINENO, and appends 22709 # trailing '-' during substitution so that $LINENO is not a special 22710 # case at line end. 22711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22712 # scripts with optimization help from Paolo Bonzini. Blame Lee 22713 # E. McMahon (1931-1989) for sed's syntax. :-) 22714 sed -n ' 22715 p 22716 /[$]LINENO/= 22717 ' <$as_myself | 22718 sed ' 22719 s/[$]LINENO.*/&-/ 22720 t lineno 22721 b 22722 :lineno 22723 N 22724 :loop 22725 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22726 t loop 22727 s/-\n.*// 22728 ' >$as_me.lineno && 22729 chmod +x "$as_me.lineno" || 22730 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22731 { (exit 1); exit 1; }; } 22732 22733 # Don't try to exec as it changes $[0], causing all sort of problems 22734 # (the dirname of $[0] is not the place where we might find the 22735 # original and so on. Autoconf is especially sensitive to this). 22736 . "./$as_me.lineno" 22737 # Exit status is that of the last command. 22738 exit 22739 } 22740 22741 22742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22743 as_dirname=dirname 22744 else 22745 as_dirname=false 22746 fi 22747 22748 ECHO_C= ECHO_N= ECHO_T= 22749 case `echo -n x` in 22750 -n*) 22751 case `echo 'x\c'` in 22752 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22753 *) ECHO_C='\c';; 22754 esac;; 22755 *) 22756 ECHO_N='-n';; 22757 esac 22758 22759 if expr a : '\(a\)' >/dev/null 2>&1 && 22760 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22761 as_expr=expr 22762 else 22763 as_expr=false 22764 fi 22765 22766 rm -f conf$$ conf$$.exe conf$$.file 22767 if test -d conf$$.dir; then 22768 rm -f conf$$.dir/conf$$.file 22769 else 22770 rm -f conf$$.dir 22771 mkdir conf$$.dir 22772 fi 22773 echo >conf$$.file 22774 if ln -s conf$$.file conf$$ 2>/dev/null; then 22775 as_ln_s='ln -s' 22776 # ... but there are two gotchas: 22777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22779 # In both cases, we have to default to `cp -p'. 22780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22781 as_ln_s='cp -p' 22782 elif ln conf$$.file conf$$ 2>/dev/null; then 22783 as_ln_s=ln 22784 else 22785 as_ln_s='cp -p' 22786 fi 22787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22788 rmdir conf$$.dir 2>/dev/null 22789 22790 if mkdir -p . 2>/dev/null; then 22791 as_mkdir_p=: 22792 else 22793 test -d ./-p && rmdir ./-p 22794 as_mkdir_p=false 22795 fi 22796 22797 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 22798 # systems may use methods other than mode bits to determine executability. 22799 cat >conf$$.file <<_ASEOF 22800 #! /bin/sh 22801 exit 0 22802 _ASEOF 22803 chmod +x conf$$.file 22804 if test -x conf$$.file >/dev/null 2>&1; then 22805 as_executable_p="test -x" 22806 else 22807 as_executable_p=: 22808 fi 22809 rm -f conf$$.file 22810 22811 # Sed expression to map a string onto a valid CPP name. 22812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22813 22814 # Sed expression to map a string onto a valid variable name. 22815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22816 22817 22818 exec 6>&1 22819 22820 # Save the log message, to keep $[0] and so on meaningful, and to 22821 # report actual input values of CONFIG_FILES etc. instead of their 22822 # values after options handling. 22823 ac_log=" 22824 This file was extended by LLVM $as_me 3.4svn, which was 22825 generated by GNU Autoconf 2.60. Invocation command line was 22826 22827 CONFIG_FILES = $CONFIG_FILES 22828 CONFIG_HEADERS = $CONFIG_HEADERS 22829 CONFIG_LINKS = $CONFIG_LINKS 22830 CONFIG_COMMANDS = $CONFIG_COMMANDS 22831 $ $0 $@ 22832 22833 on `(hostname || uname -n) 2>/dev/null | sed 1q` 22834 " 22835 22836 _ACEOF 22837 22838 cat >>$CONFIG_STATUS <<_ACEOF 22839 # Files that config.status was made for. 22840 config_files="$ac_config_files" 22841 config_headers="$ac_config_headers" 22842 config_commands="$ac_config_commands" 22843 22844 _ACEOF 22845 22846 cat >>$CONFIG_STATUS <<\_ACEOF 22847 ac_cs_usage="\ 22848 \`$as_me' instantiates files from templates according to the 22849 current configuration. 22850 22851 Usage: $0 [OPTIONS] [FILE]... 22852 22853 -h, --help print this help, then exit 22854 -V, --version print version number, then exit 22855 -q, --quiet do not print progress messages 22856 -d, --debug don't remove temporary files 22857 --recheck update $as_me by reconfiguring in the same conditions 22858 --file=FILE[:TEMPLATE] 22859 instantiate the configuration file FILE 22860 --header=FILE[:TEMPLATE] 22861 instantiate the configuration header FILE 22862 22863 Configuration files: 22864 $config_files 22865 22866 Configuration headers: 22867 $config_headers 22868 22869 Configuration commands: 22870 $config_commands 22871 22872 Report bugs to <bug-autoconf@gnu.org>." 22873 22874 _ACEOF 22875 cat >>$CONFIG_STATUS <<_ACEOF 22876 ac_cs_version="\\ 22877 LLVM config.status 3.4svn 22878 configured by $0, generated by GNU Autoconf 2.60, 22879 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22880 22881 Copyright (C) 2006 Free Software Foundation, Inc. 22882 This config.status script is free software; the Free Software Foundation 22883 gives unlimited permission to copy, distribute and modify it." 22884 22885 ac_pwd='$ac_pwd' 22886 srcdir='$srcdir' 22887 INSTALL='$INSTALL' 22888 _ACEOF 22889 22890 cat >>$CONFIG_STATUS <<\_ACEOF 22891 # If no file are specified by the user, then we need to provide default 22892 # value. By we need to know if files were specified by the user. 22893 ac_need_defaults=: 22894 while test $# != 0 22895 do 22896 case $1 in 22897 --*=*) 22898 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22900 ac_shift=: 22901 ;; 22902 *) 22903 ac_option=$1 22904 ac_optarg=$2 22905 ac_shift=shift 22906 ;; 22907 esac 22908 22909 case $ac_option in 22910 # Handling of the options. 22911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22912 ac_cs_recheck=: ;; 22913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22914 echo "$ac_cs_version"; exit ;; 22915 --debug | --debu | --deb | --de | --d | -d ) 22916 debug=: ;; 22917 --file | --fil | --fi | --f ) 22918 $ac_shift 22919 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22920 ac_need_defaults=false;; 22921 --header | --heade | --head | --hea ) 22922 $ac_shift 22923 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22924 ac_need_defaults=false;; 22925 --he | --h) 22926 # Conflict between --help and --header 22927 { echo "$as_me: error: ambiguous option: $1 22928 Try \`$0 --help' for more information." >&2 22929 { (exit 1); exit 1; }; };; 22930 --help | --hel | -h ) 22931 echo "$ac_cs_usage"; exit ;; 22932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22933 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22934 ac_cs_silent=: ;; 22935 22936 # This is an error. 22937 -*) { echo "$as_me: error: unrecognized option: $1 22938 Try \`$0 --help' for more information." >&2 22939 { (exit 1); exit 1; }; } ;; 22940 22941 *) ac_config_targets="$ac_config_targets $1" 22942 ac_need_defaults=false ;; 22943 22944 esac 22945 shift 22946 done 22947 22948 ac_configure_extra_args= 22949 22950 if $ac_cs_silent; then 22951 exec 6>/dev/null 22952 ac_configure_extra_args="$ac_configure_extra_args --silent" 22953 fi 22954 22955 _ACEOF 22956 cat >>$CONFIG_STATUS <<_ACEOF 22957 if \$ac_cs_recheck; then 22958 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22959 CONFIG_SHELL=$SHELL 22960 export CONFIG_SHELL 22961 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22962 fi 22963 22964 _ACEOF 22965 cat >>$CONFIG_STATUS <<\_ACEOF 22966 exec 5>>config.log 22967 { 22968 echo 22969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22970 ## Running $as_me. ## 22971 _ASBOX 22972 echo "$ac_log" 22973 } >&5 22974 22975 _ACEOF 22976 cat >>$CONFIG_STATUS <<_ACEOF 22977 # 22978 # INIT-COMMANDS 22979 # 22980 llvm_src="${srcdir}" 22981 22982 _ACEOF 22983 22984 cat >>$CONFIG_STATUS <<\_ACEOF 22985 22986 # Handling of arguments. 22987 for ac_config_target in $ac_config_targets 22988 do 22989 case $ac_config_target in 22990 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 22991 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 22992 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 22993 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 22994 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 22995 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 22996 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 22997 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 22998 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 22999 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 23000 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 23001 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 23002 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 23003 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 23004 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 23005 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 23006 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 23007 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 23008 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 23009 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 23010 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 23011 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 23012 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 23013 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 23014 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 23015 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 23016 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 23017 23018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23019 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23020 { (exit 1); exit 1; }; };; 23021 esac 23022 done 23023 23024 23025 # If the user did not use the arguments to specify the items to instantiate, 23026 # then the envvar interface is used. Set only those that are not. 23027 # We use the long form for the default assignment because of an extremely 23028 # bizarre bug on SunOS 4.1.3. 23029 if $ac_need_defaults; then 23030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23033 fi 23034 23035 # Have a temporary directory for convenience. Make it in the build tree 23036 # simply because there is no reason against having it here, and in addition, 23037 # creating and moving files from /tmp can sometimes cause problems. 23038 # Hook for its removal unless debugging. 23039 # Note that there is a small window in which the directory will not be cleaned: 23040 # after its creation but before its name has been assigned to `$tmp'. 23041 $debug || 23042 { 23043 tmp= 23044 trap 'exit_status=$? 23045 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23046 ' 0 23047 trap '{ (exit 1); exit 1; }' 1 2 13 15 23048 } 23049 # Create a (secure) tmp directory for tmp files. 23050 23051 { 23052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23053 test -n "$tmp" && test -d "$tmp" 23054 } || 23055 { 23056 tmp=./conf$$-$RANDOM 23057 (umask 077 && mkdir "$tmp") 23058 } || 23059 { 23060 echo "$me: cannot create a temporary directory in ." >&2 23061 { (exit 1); exit 1; } 23062 } 23063 23064 # 23065 # Set up the sed scripts for CONFIG_FILES section. 23066 # 23067 23068 # No need to generate the scripts if there are no CONFIG_FILES. 23069 # This happens for instance when ./config.status config.h 23070 if test -n "$CONFIG_FILES"; then 23071 23072 _ACEOF 23073 23074 23075 23076 ac_delim='%!_!# ' 23077 for ac_last_try in false false false false false :; do 23078 cat >conf$$subs.sed <<_ACEOF 23079 SHELL!$SHELL$ac_delim 23080 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23081 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23082 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23083 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23084 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23085 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23086 exec_prefix!$exec_prefix$ac_delim 23087 prefix!$prefix$ac_delim 23088 program_transform_name!$program_transform_name$ac_delim 23089 bindir!$bindir$ac_delim 23090 sbindir!$sbindir$ac_delim 23091 libexecdir!$libexecdir$ac_delim 23092 datarootdir!$datarootdir$ac_delim 23093 datadir!$datadir$ac_delim 23094 sysconfdir!$sysconfdir$ac_delim 23095 sharedstatedir!$sharedstatedir$ac_delim 23096 localstatedir!$localstatedir$ac_delim 23097 includedir!$includedir$ac_delim 23098 oldincludedir!$oldincludedir$ac_delim 23099 docdir!$docdir$ac_delim 23100 infodir!$infodir$ac_delim 23101 htmldir!$htmldir$ac_delim 23102 dvidir!$dvidir$ac_delim 23103 pdfdir!$pdfdir$ac_delim 23104 psdir!$psdir$ac_delim 23105 libdir!$libdir$ac_delim 23106 localedir!$localedir$ac_delim 23107 mandir!$mandir$ac_delim 23108 DEFS!$DEFS$ac_delim 23109 ECHO_C!$ECHO_C$ac_delim 23110 ECHO_N!$ECHO_N$ac_delim 23111 ECHO_T!$ECHO_T$ac_delim 23112 LIBS!$LIBS$ac_delim 23113 build_alias!$build_alias$ac_delim 23114 host_alias!$host_alias$ac_delim 23115 target_alias!$target_alias$ac_delim 23116 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 23117 CC!$CC$ac_delim 23118 CFLAGS!$CFLAGS$ac_delim 23119 LDFLAGS!$LDFLAGS$ac_delim 23120 CPPFLAGS!$CPPFLAGS$ac_delim 23121 ac_ct_CC!$ac_ct_CC$ac_delim 23122 EXEEXT!$EXEEXT$ac_delim 23123 OBJEXT!$OBJEXT$ac_delim 23124 CXX!$CXX$ac_delim 23125 CXXFLAGS!$CXXFLAGS$ac_delim 23126 ac_ct_CXX!$ac_ct_CXX$ac_delim 23127 CPP!$CPP$ac_delim 23128 subdirs!$subdirs$ac_delim 23129 ENABLE_POLLY!$ENABLE_POLLY$ac_delim 23130 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 23131 build!$build$ac_delim 23132 build_cpu!$build_cpu$ac_delim 23133 build_vendor!$build_vendor$ac_delim 23134 build_os!$build_os$ac_delim 23135 host!$host$ac_delim 23136 host_cpu!$host_cpu$ac_delim 23137 host_vendor!$host_vendor$ac_delim 23138 host_os!$host_os$ac_delim 23139 target!$target$ac_delim 23140 target_cpu!$target_cpu$ac_delim 23141 target_vendor!$target_vendor$ac_delim 23142 target_os!$target_os$ac_delim 23143 OS!$OS$ac_delim 23144 HOST_OS!$HOST_OS$ac_delim 23145 TARGET_OS!$TARGET_OS$ac_delim 23146 LINKALL!$LINKALL$ac_delim 23147 NOLINKALL!$NOLINKALL$ac_delim 23148 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 23149 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 23150 ARCH!$ARCH$ac_delim 23151 HOST_ARCH!$HOST_ARCH$ac_delim 23152 ENDIAN!$ENDIAN$ac_delim 23153 GREP!$GREP$ac_delim 23154 EGREP!$EGREP$ac_delim 23155 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 23156 BUILD_CC!$BUILD_CC$ac_delim 23157 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 23158 BUILD_CXX!$BUILD_CXX$ac_delim 23159 CVSBUILD!$CVSBUILD$ac_delim 23160 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 23161 ENABLE_CXX11!$ENABLE_CXX11$ac_delim 23162 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim 23163 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim 23164 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim 23165 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim 23166 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 23167 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 23168 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 23169 ENABLE_WERROR!$ENABLE_WERROR$ac_delim 23170 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 23171 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 23172 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 23173 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 23174 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim 23175 JIT!$JIT$ac_delim 23176 _ACEOF 23177 23178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23179 break 23180 elif $ac_last_try; then 23181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23183 { (exit 1); exit 1; }; } 23184 else 23185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23186 fi 23187 done 23188 23189 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23190 if test -n "$ac_eof"; then 23191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23192 ac_eof=`expr $ac_eof + 1` 23193 fi 23194 23195 cat >>$CONFIG_STATUS <<_ACEOF 23196 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23198 _ACEOF 23199 sed ' 23200 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23201 s/^/s,@/; s/!/@,|#_!!_#|/ 23202 :n 23203 t n 23204 s/'"$ac_delim"'$/,g/; t 23205 s/$/\\/; p 23206 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23207 ' >>$CONFIG_STATUS <conf$$subs.sed 23208 rm -f conf$$subs.sed 23209 cat >>$CONFIG_STATUS <<_ACEOF 23210 CEOF$ac_eof 23211 _ACEOF 23212 23213 23214 ac_delim='%!_!# ' 23215 for ac_last_try in false false false false false :; do 23216 cat >conf$$subs.sed <<_ACEOF 23217 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 23218 ENABLE_DOCS!$ENABLE_DOCS$ac_delim 23219 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 23220 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 23221 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 23222 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim 23223 ENABLE_PIC!$ENABLE_PIC$ac_delim 23224 ENABLE_SHARED!$ENABLE_SHARED$ac_delim 23225 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 23226 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 23227 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim 23228 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 23229 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 23230 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 23231 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 23232 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 23233 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 23234 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 23235 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 23236 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 23237 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 23238 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 23239 NM!$NM$ac_delim 23240 ifGNUmake!$ifGNUmake$ac_delim 23241 LN_S!$LN_S$ac_delim 23242 CMP!$CMP$ac_delim 23243 CP!$CP$ac_delim 23244 DATE!$DATE$ac_delim 23245 FIND!$FIND$ac_delim 23246 MKDIR!$MKDIR$ac_delim 23247 MV!$MV$ac_delim 23248 RANLIB!$RANLIB$ac_delim 23249 AR!$AR$ac_delim 23250 RM!$RM$ac_delim 23251 SED!$SED$ac_delim 23252 TAR!$TAR$ac_delim 23253 BINPWD!$BINPWD$ac_delim 23254 GRAPHVIZ!$GRAPHVIZ$ac_delim 23255 DOT!$DOT$ac_delim 23256 FDP!$FDP$ac_delim 23257 NEATO!$NEATO$ac_delim 23258 TWOPI!$TWOPI$ac_delim 23259 CIRCO!$CIRCO$ac_delim 23260 GV!$GV$ac_delim 23261 DOTTY!$DOTTY$ac_delim 23262 XDOT!$XDOT$ac_delim 23263 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23264 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23265 INSTALL_DATA!$INSTALL_DATA$ac_delim 23266 BZIP2!$BZIP2$ac_delim 23267 CAT!$CAT$ac_delim 23268 DOXYGEN!$DOXYGEN$ac_delim 23269 GROFF!$GROFF$ac_delim 23270 GZIPBIN!$GZIPBIN$ac_delim 23271 PDFROFF!$PDFROFF$ac_delim 23272 ZIP!$ZIP$ac_delim 23273 OCAMLC!$OCAMLC$ac_delim 23274 OCAMLOPT!$OCAMLOPT$ac_delim 23275 OCAMLDEP!$OCAMLDEP$ac_delim 23276 OCAMLDOC!$OCAMLDOC$ac_delim 23277 GAS!$GAS$ac_delim 23278 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 23279 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 23280 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 23281 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 23282 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 23283 LIBADD_DL!$LIBADD_DL$ac_delim 23284 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 23285 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 23286 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 23287 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim 23288 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim 23289 PYTHON!$PYTHON$ac_delim 23290 USE_UDIS86!$USE_UDIS86$ac_delim 23291 USE_OPROFILE!$USE_OPROFILE$ac_delim 23292 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 23293 XML2CONFIG!$XML2CONFIG$ac_delim 23294 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 23295 LIBXML2_INC!$LIBXML2_INC$ac_delim 23296 CXXCPP!$CXXCPP$ac_delim 23297 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 23298 HAVE_LIBZ!$HAVE_LIBZ$ac_delim 23299 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 23300 MMAP_FILE!$MMAP_FILE$ac_delim 23301 SHLIBEXT!$SHLIBEXT$ac_delim 23302 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 23303 LLVM_PREFIX!$LLVM_PREFIX$ac_delim 23304 LLVM_BINDIR!$LLVM_BINDIR$ac_delim 23305 LLVM_DATADIR!$LLVM_DATADIR$ac_delim 23306 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 23307 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 23308 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 23309 LLVM_INFODIR!$LLVM_INFODIR$ac_delim 23310 LLVM_MANDIR!$LLVM_MANDIR$ac_delim 23311 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 23312 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 23313 ALL_BINDINGS!$ALL_BINDINGS$ac_delim 23314 _ACEOF 23315 23316 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23317 break 23318 elif $ac_last_try; then 23319 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23320 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23321 { (exit 1); exit 1; }; } 23322 else 23323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23324 fi 23325 done 23326 23327 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23328 if test -n "$ac_eof"; then 23329 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23330 ac_eof=`expr $ac_eof + 1` 23331 fi 23332 23333 cat >>$CONFIG_STATUS <<_ACEOF 23334 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23336 _ACEOF 23337 sed ' 23338 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23339 s/^/s,@/; s/!/@,|#_!!_#|/ 23340 :n 23341 t n 23342 s/'"$ac_delim"'$/,g/; t 23343 s/$/\\/; p 23344 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23345 ' >>$CONFIG_STATUS <conf$$subs.sed 23346 rm -f conf$$subs.sed 23347 cat >>$CONFIG_STATUS <<_ACEOF 23348 CEOF$ac_eof 23349 _ACEOF 23350 23351 23352 ac_delim='%!_!# ' 23353 for ac_last_try in false false false false false :; do 23354 cat >conf$$subs.sed <<_ACEOF 23355 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 23356 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 23357 RPATH!$RPATH$ac_delim 23358 RDYNAMIC!$RDYNAMIC$ac_delim 23359 program_prefix!$program_prefix$ac_delim 23360 LIBOBJS!$LIBOBJS$ac_delim 23361 LTLIBOBJS!$LTLIBOBJS$ac_delim 23362 _ACEOF 23363 23364 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then 23365 break 23366 elif $ac_last_try; then 23367 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23368 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23369 { (exit 1); exit 1; }; } 23370 else 23371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23372 fi 23373 done 23374 23375 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23376 if test -n "$ac_eof"; then 23377 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23378 ac_eof=`expr $ac_eof + 1` 23379 fi 23380 23381 cat >>$CONFIG_STATUS <<_ACEOF 23382 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 23383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23384 _ACEOF 23385 sed ' 23386 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23387 s/^/s,@/; s/!/@,|#_!!_#|/ 23388 :n 23389 t n 23390 s/'"$ac_delim"'$/,g/; t 23391 s/$/\\/; p 23392 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23393 ' >>$CONFIG_STATUS <conf$$subs.sed 23394 rm -f conf$$subs.sed 23395 cat >>$CONFIG_STATUS <<_ACEOF 23396 :end 23397 s/|#_!!_#|//g 23398 CEOF$ac_eof 23399 _ACEOF 23400 23401 23402 # VPATH may cause trouble with some makes, so we remove $(srcdir), 23403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23404 # trailing colons and then remove the whole line if VPATH becomes empty 23405 # (actually we leave an empty line to preserve line numbers). 23406 if test "x$srcdir" = x.; then 23407 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23408 s/:*\$(srcdir):*/:/ 23409 s/:*\${srcdir}:*/:/ 23410 s/:*@srcdir@:*/:/ 23411 s/^\([^=]*=[ ]*\):*/\1/ 23412 s/:*$// 23413 s/^[^=]*=[ ]*$// 23414 }' 23415 fi 23416 23417 cat >>$CONFIG_STATUS <<\_ACEOF 23418 fi # test -n "$CONFIG_FILES" 23419 23420 23421 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23422 do 23423 case $ac_tag in 23424 :[FHLC]) ac_mode=$ac_tag; continue;; 23425 esac 23426 case $ac_mode$ac_tag in 23427 :[FHL]*:*);; 23428 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23429 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23430 { (exit 1); exit 1; }; };; 23431 :[FH]-) ac_tag=-:-;; 23432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23433 esac 23434 ac_save_IFS=$IFS 23435 IFS=: 23436 set x $ac_tag 23437 IFS=$ac_save_IFS 23438 shift 23439 ac_file=$1 23440 shift 23441 23442 case $ac_mode in 23443 :L) ac_source=$1;; 23444 :[FH]) 23445 ac_file_inputs= 23446 for ac_f 23447 do 23448 case $ac_f in 23449 -) ac_f="$tmp/stdin";; 23450 *) # Look for the file first in the build tree, then in the source tree 23451 # (if the path is not absolute). The absolute path cannot be DOS-style, 23452 # because $ac_f cannot contain `:'. 23453 test -f "$ac_f" || 23454 case $ac_f in 23455 [\\/$]*) false;; 23456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23457 esac || 23458 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23459 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23460 { (exit 1); exit 1; }; };; 23461 esac 23462 ac_file_inputs="$ac_file_inputs $ac_f" 23463 done 23464 23465 # Let's still pretend it is `configure' which instantiates (i.e., don't 23466 # use $as_me), people would be surprised to read: 23467 # /* config.h. Generated by config.status. */ 23468 configure_input="Generated from "`IFS=: 23469 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23470 if test x"$ac_file" != x-; then 23471 configure_input="$ac_file. $configure_input" 23472 { echo "$as_me:$LINENO: creating $ac_file" >&5 23473 echo "$as_me: creating $ac_file" >&6;} 23474 fi 23475 23476 case $ac_tag in 23477 *:-:* | *:-) cat >"$tmp/stdin";; 23478 esac 23479 ;; 23480 esac 23481 23482 ac_dir=`$as_dirname -- "$ac_file" || 23483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23484 X"$ac_file" : 'X\(//\)[^/]' \| \ 23485 X"$ac_file" : 'X\(//\)$' \| \ 23486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23487 echo X"$ac_file" | 23488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23489 s//\1/ 23490 q 23491 } 23492 /^X\(\/\/\)[^/].*/{ 23493 s//\1/ 23494 q 23495 } 23496 /^X\(\/\/\)$/{ 23497 s//\1/ 23498 q 23499 } 23500 /^X\(\/\).*/{ 23501 s//\1/ 23502 q 23503 } 23504 s/.*/./; q'` 23505 { as_dir="$ac_dir" 23506 case $as_dir in #( 23507 -*) as_dir=./$as_dir;; 23508 esac 23509 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23510 as_dirs= 23511 while :; do 23512 case $as_dir in #( 23513 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23514 *) as_qdir=$as_dir;; 23515 esac 23516 as_dirs="'$as_qdir' $as_dirs" 23517 as_dir=`$as_dirname -- "$as_dir" || 23518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23519 X"$as_dir" : 'X\(//\)[^/]' \| \ 23520 X"$as_dir" : 'X\(//\)$' \| \ 23521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23522 echo X"$as_dir" | 23523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23524 s//\1/ 23525 q 23526 } 23527 /^X\(\/\/\)[^/].*/{ 23528 s//\1/ 23529 q 23530 } 23531 /^X\(\/\/\)$/{ 23532 s//\1/ 23533 q 23534 } 23535 /^X\(\/\).*/{ 23536 s//\1/ 23537 q 23538 } 23539 s/.*/./; q'` 23540 test -d "$as_dir" && break 23541 done 23542 test -z "$as_dirs" || eval "mkdir $as_dirs" 23543 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23544 echo "$as_me: error: cannot create directory $as_dir" >&2;} 23545 { (exit 1); exit 1; }; }; } 23546 ac_builddir=. 23547 23548 case "$ac_dir" in 23549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23550 *) 23551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23552 # A ".." for each directory in $ac_dir_suffix. 23553 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23554 case $ac_top_builddir_sub in 23555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23557 esac ;; 23558 esac 23559 ac_abs_top_builddir=$ac_pwd 23560 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23561 # for backward compatibility: 23562 ac_top_builddir=$ac_top_build_prefix 23563 23564 case $srcdir in 23565 .) # We are building in place. 23566 ac_srcdir=. 23567 ac_top_srcdir=$ac_top_builddir_sub 23568 ac_abs_top_srcdir=$ac_pwd ;; 23569 [\\/]* | ?:[\\/]* ) # Absolute name. 23570 ac_srcdir=$srcdir$ac_dir_suffix; 23571 ac_top_srcdir=$srcdir 23572 ac_abs_top_srcdir=$srcdir ;; 23573 *) # Relative name. 23574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23575 ac_top_srcdir=$ac_top_build_prefix$srcdir 23576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23577 esac 23578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23579 23580 23581 case $ac_mode in 23582 :F) 23583 # 23584 # CONFIG_FILE 23585 # 23586 23587 case $INSTALL in 23588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23589 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23590 esac 23591 _ACEOF 23592 23593 cat >>$CONFIG_STATUS <<\_ACEOF 23594 # If the template does not know about datarootdir, expand it. 23595 # FIXME: This hack should be removed a few years after 2.60. 23596 ac_datarootdir_hack=; ac_datarootdir_seen= 23597 23598 case `sed -n '/datarootdir/ { 23599 p 23600 q 23601 } 23602 /@datadir@/p 23603 /@docdir@/p 23604 /@infodir@/p 23605 /@localedir@/p 23606 /@mandir@/p 23607 ' $ac_file_inputs` in 23608 *datarootdir*) ac_datarootdir_seen=yes;; 23609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23610 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23611 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23612 _ACEOF 23613 cat >>$CONFIG_STATUS <<_ACEOF 23614 ac_datarootdir_hack=' 23615 s&@datadir@&$datadir&g 23616 s&@docdir@&$docdir&g 23617 s&@infodir@&$infodir&g 23618 s&@localedir@&$localedir&g 23619 s&@mandir@&$mandir&g 23620 s&\\\${datarootdir}&$datarootdir&g' ;; 23621 esac 23622 _ACEOF 23623 23624 # Neutralize VPATH when `$srcdir' = `.'. 23625 # Shell code in configure.ac might set extrasub. 23626 # FIXME: do we really want to maintain this feature? 23627 cat >>$CONFIG_STATUS <<_ACEOF 23628 sed "$ac_vpsub 23629 $extrasub 23630 _ACEOF 23631 cat >>$CONFIG_STATUS <<\_ACEOF 23632 :t 23633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23634 s&@configure_input@&$configure_input&;t t 23635 s&@top_builddir@&$ac_top_builddir_sub&;t t 23636 s&@srcdir@&$ac_srcdir&;t t 23637 s&@abs_srcdir@&$ac_abs_srcdir&;t t 23638 s&@top_srcdir@&$ac_top_srcdir&;t t 23639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23640 s&@builddir@&$ac_builddir&;t t 23641 s&@abs_builddir@&$ac_abs_builddir&;t t 23642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23643 s&@INSTALL@&$ac_INSTALL&;t t 23644 $ac_datarootdir_hack 23645 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 23646 23647 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23648 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23650 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23651 which seems to be undefined. Please make sure it is defined." >&5 23652 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23653 which seems to be undefined. Please make sure it is defined." >&2;} 23654 23655 rm -f "$tmp/stdin" 23656 case $ac_file in 23657 -) cat "$tmp/out"; rm -f "$tmp/out";; 23658 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23659 esac 23660 ;; 23661 :H) 23662 # 23663 # CONFIG_HEADER 23664 # 23665 _ACEOF 23666 23667 # Transform confdefs.h into a sed script `conftest.defines', that 23668 # substitutes the proper values into config.h.in to produce config.h. 23669 rm -f conftest.defines conftest.tail 23670 # First, append a space to every undef/define line, to ease matching. 23671 echo 's/$/ /' >conftest.defines 23672 # Then, protect against being on the right side of a sed subst, or in 23673 # an unquoted here document, in config.status. If some macros were 23674 # called several times there might be several #defines for the same 23675 # symbol, which is useless. But do not sort them, since the last 23676 # AC_DEFINE must be honored. 23677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23678 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23679 # NAME is the cpp macro being defined, VALUE is the value it is being given. 23680 # PARAMS is the parameter list in the macro definition--in most cases, it's 23681 # just an empty string. 23682 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23683 ac_dB='\\)[ (].*,\\1define\\2' 23684 ac_dC=' ' 23685 ac_dD=' ,' 23686 23687 uniq confdefs.h | 23688 sed -n ' 23689 t rset 23690 :rset 23691 s/^[ ]*#[ ]*define[ ][ ]*// 23692 t ok 23693 d 23694 :ok 23695 s/[\\&,]/\\&/g 23696 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23697 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23698 ' >>conftest.defines 23699 23700 # Remove the space that was appended to ease matching. 23701 # Then replace #undef with comments. This is necessary, for 23702 # example, in the case of _POSIX_SOURCE, which is predefined and required 23703 # on some systems where configure will not decide to define it. 23704 # (The regexp can be short, since the line contains either #define or #undef.) 23705 echo 's/ $// 23706 s,^[ #]*u.*,/* & */,' >>conftest.defines 23707 23708 # Break up conftest.defines: 23709 ac_max_sed_lines=50 23710 23711 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23712 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23713 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23714 # et cetera. 23715 ac_in='$ac_file_inputs' 23716 ac_out='"$tmp/out1"' 23717 ac_nxt='"$tmp/out2"' 23718 23719 while : 23720 do 23721 # Write a here document: 23722 cat >>$CONFIG_STATUS <<_ACEOF 23723 # First, check the format of the line: 23724 cat >"\$tmp/defines.sed" <<\\CEOF 23725 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23726 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23727 b 23728 :def 23729 _ACEOF 23730 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23731 echo 'CEOF 23732 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23733 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23734 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23735 grep . conftest.tail >/dev/null || break 23736 rm -f conftest.defines 23737 mv conftest.tail conftest.defines 23738 done 23739 rm -f conftest.defines conftest.tail 23740 23741 echo "ac_result=$ac_in" >>$CONFIG_STATUS 23742 cat >>$CONFIG_STATUS <<\_ACEOF 23743 if test x"$ac_file" != x-; then 23744 echo "/* $configure_input */" >"$tmp/config.h" 23745 cat "$ac_result" >>"$tmp/config.h" 23746 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23747 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23748 echo "$as_me: $ac_file is unchanged" >&6;} 23749 else 23750 rm -f $ac_file 23751 mv "$tmp/config.h" $ac_file 23752 fi 23753 else 23754 echo "/* $configure_input */" 23755 cat "$ac_result" 23756 fi 23757 rm -f "$tmp/out12" 23758 ;; 23759 23760 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23761 echo "$as_me: executing $ac_file commands" >&6;} 23762 ;; 23763 esac 23764 23765 23766 case $ac_file$ac_mode in 23767 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 23768 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 23769 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 23770 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 23771 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 23772 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 23773 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 23774 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 23775 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 23776 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 23777 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 23778 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 23779 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 23780 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 23781 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 23782 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 23783 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 23784 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 23785 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 23786 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 23787 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 23788 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 23789 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 23790 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 23791 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 23792 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 23793 23794 esac 23795 done # for ac_tag 23796 23797 23798 { (exit 0); exit 0; } 23799 _ACEOF 23800 chmod +x $CONFIG_STATUS 23801 ac_clean_files=$ac_clean_files_save 23802 23803 23804 # configure is writing to config.log, and then calls config.status. 23805 # config.status does its own redirection, appending to config.log. 23806 # Unfortunately, on DOS this fails, as config.log is still kept open 23807 # by configure, so config.status won't be able to write to it; its 23808 # output is simply discarded. So we exec the FD to /dev/null, 23809 # effectively closing config.log, so it can be properly (re)opened and 23810 # appended to by config.status. When coming back to configure, we 23811 # need to make the FD available again. 23812 if test "$no_create" != yes; then 23813 ac_cs_success=: 23814 ac_config_status_args= 23815 test "$silent" = yes && 23816 ac_config_status_args="$ac_config_status_args --quiet" 23817 exec 5>/dev/null 23818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23819 exec 5>>config.log 23820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23821 # would make configure fail if this is the last instruction. 23822 $ac_cs_success || { (exit 1); exit 1; } 23823 fi 23824 23825 # 23826 # CONFIG_SUBDIRS section. 23827 # 23828 if test "$no_recursion" != yes; then 23829 23830 # Remove --cache-file and --srcdir arguments so they do not pile up. 23831 ac_sub_configure_args= 23832 ac_prev= 23833 eval "set x $ac_configure_args" 23834 shift 23835 for ac_arg 23836 do 23837 if test -n "$ac_prev"; then 23838 ac_prev= 23839 continue 23840 fi 23841 case $ac_arg in 23842 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23844 ac_prev=cache_file ;; 23845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23847 | --c=*) 23848 ;; 23849 --config-cache | -C) 23850 ;; 23851 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23852 ac_prev=srcdir ;; 23853 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23854 ;; 23855 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23856 ac_prev=prefix ;; 23857 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23858 ;; 23859 *) 23860 case $ac_arg in 23861 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23862 esac 23863 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 23864 esac 23865 done 23866 23867 # Always prepend --prefix to ensure using the same prefix 23868 # in subdir configurations. 23869 ac_arg="--prefix=$prefix" 23870 case $ac_arg in 23871 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23872 esac 23873 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 23874 23875 ac_popdir=`pwd` 23876 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23877 23878 # Do not complain, so a configure script can configure whichever 23879 # parts of a large source tree are present. 23880 test -d "$srcdir/$ac_dir" || continue 23881 23882 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 23883 echo "$as_me:$LINENO: $ac_msg" >&5 23884 echo "$ac_msg" >&6 23885 { as_dir="$ac_dir" 23886 case $as_dir in #( 23887 -*) as_dir=./$as_dir;; 23888 esac 23889 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23890 as_dirs= 23891 while :; do 23892 case $as_dir in #( 23893 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23894 *) as_qdir=$as_dir;; 23895 esac 23896 as_dirs="'$as_qdir' $as_dirs" 23897 as_dir=`$as_dirname -- "$as_dir" || 23898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23899 X"$as_dir" : 'X\(//\)[^/]' \| \ 23900 X"$as_dir" : 'X\(//\)$' \| \ 23901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23902 echo X"$as_dir" | 23903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23904 s//\1/ 23905 q 23906 } 23907 /^X\(\/\/\)[^/].*/{ 23908 s//\1/ 23909 q 23910 } 23911 /^X\(\/\/\)$/{ 23912 s//\1/ 23913 q 23914 } 23915 /^X\(\/\).*/{ 23916 s//\1/ 23917 q 23918 } 23919 s/.*/./; q'` 23920 test -d "$as_dir" && break 23921 done 23922 test -z "$as_dirs" || eval "mkdir $as_dirs" 23923 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23924 echo "$as_me: error: cannot create directory $as_dir" >&2;} 23925 { (exit 1); exit 1; }; }; } 23926 ac_builddir=. 23927 23928 case "$ac_dir" in 23929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23930 *) 23931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23932 # A ".." for each directory in $ac_dir_suffix. 23933 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23934 case $ac_top_builddir_sub in 23935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23937 esac ;; 23938 esac 23939 ac_abs_top_builddir=$ac_pwd 23940 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23941 # for backward compatibility: 23942 ac_top_builddir=$ac_top_build_prefix 23943 23944 case $srcdir in 23945 .) # We are building in place. 23946 ac_srcdir=. 23947 ac_top_srcdir=$ac_top_builddir_sub 23948 ac_abs_top_srcdir=$ac_pwd ;; 23949 [\\/]* | ?:[\\/]* ) # Absolute name. 23950 ac_srcdir=$srcdir$ac_dir_suffix; 23951 ac_top_srcdir=$srcdir 23952 ac_abs_top_srcdir=$srcdir ;; 23953 *) # Relative name. 23954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23955 ac_top_srcdir=$ac_top_build_prefix$srcdir 23956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23957 esac 23958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23959 23960 23961 cd "$ac_dir" 23962 23963 # Check for guested configure; otherwise get Cygnus style configure. 23964 if test -f "$ac_srcdir/configure.gnu"; then 23965 ac_sub_configure=$ac_srcdir/configure.gnu 23966 elif test -f "$ac_srcdir/configure"; then 23967 ac_sub_configure=$ac_srcdir/configure 23968 elif test -f "$ac_srcdir/configure.in"; then 23969 # This should be Cygnus configure. 23970 ac_sub_configure=$ac_aux_dir/configure 23971 else 23972 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23974 ac_sub_configure= 23975 fi 23976 23977 # The recursion is here. 23978 if test -n "$ac_sub_configure"; then 23979 # Make the cache file name correct relative to the subdirectory. 23980 case $cache_file in 23981 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23982 *) # Relative name. 23983 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 23984 esac 23985 23986 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23987 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23988 # The eval makes quoting arguments work. 23989 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 23990 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 23991 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23992 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23993 { (exit 1); exit 1; }; } 23994 fi 23995 23996 cd "$ac_popdir" 23997 done 23998 fi 23999 24000