1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn. 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-2015 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.7.0svn' 565 PACKAGE_STRING='LLVM 3.7.0svn' 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_VERSION_MAJOR 643 LLVM_VERSION_MINOR 644 LLVM_VERSION_PATCH 645 LLVM_VERSION_SUFFIX 646 LLVM_COPYRIGHT 647 CC 648 CFLAGS 649 LDFLAGS 650 CPPFLAGS 651 ac_ct_CC 652 EXEEXT 653 OBJEXT 654 CXX 655 CXXFLAGS 656 ac_ct_CXX 657 CPP 658 subdirs 659 ENABLE_POLLY 660 LLVM_HAS_POLLY 661 build 662 build_cpu 663 build_vendor 664 build_os 665 host 666 host_cpu 667 host_vendor 668 host_os 669 target 670 target_cpu 671 target_vendor 672 target_os 673 OS 674 HOST_OS 675 TARGET_OS 676 LINKALL 677 NOLINKALL 678 LLVM_ON_UNIX 679 LLVM_ON_WIN32 680 ARCH 681 LLVM_NATIVE_ARCH 682 HOST_ARCH 683 LLVM_CROSS_COMPILING 684 BUILD_CC 685 BUILD_EXEEXT 686 BUILD_CXX 687 CVSBUILD 688 ENABLE_LIBCPP 689 ENABLE_CXX1Y 690 ENABLE_SPLIT_DWARF 691 ENABLE_CLANG_ARCMT 692 CLANG_PLUGIN_SUPPORT 693 ENABLE_CLANG_STATIC_ANALYZER 694 ENABLE_OPTIMIZED 695 ENABLE_PROFILING 696 DISABLE_ASSERTIONS 697 ENABLE_WERROR 698 ENABLE_EXPENSIVE_CHECKS 699 EXPENSIVE_CHECKS 700 ENABLE_ABI_BREAKING_CHECKS 701 DEBUG_RUNTIME 702 DEBUG_SYMBOLS 703 KEEP_SYMBOLS 704 JIT 705 TARGET_HAS_JIT 706 TARGETS_WITH_JIT 707 ENABLE_DOCS 708 ENABLE_DOXYGEN 709 enable_searchengine 710 enable_external_search 711 enable_server_based_search 712 searchengine_url 713 extra_search_mappings 714 QHELPGENERATOR 715 llvm_doxygen_generate_qhp 716 llvm_doxygen_qch_filename 717 llvm_doxygen_qhp_namespace 718 llvm_doxygen_qhelpgenerator_path 719 llvm_doxygen_qhp_cust_filter_name 720 llvm_doxygen_qhp_cust_filter_attrs 721 clang_doxygen_generate_qhp 722 clang_doxygen_qch_filename 723 clang_doxygen_qhp_namespace 724 clang_doxygen_qhelpgenerator_path 725 clang_doxygen_qhp_cust_filter_name 726 clang_doxygen_qhp_cust_filter_attrs 727 LLVM_ENABLE_THREADS 728 ENABLE_PTHREADS 729 LLVM_ENABLE_ZLIB 730 ENABLE_PIC 731 ENABLE_SHARED 732 ENABLE_EMBED_STDCXX 733 ENABLE_TIMESTAMPS 734 ALL_TARGETS 735 TARGETS_TO_BUILD 736 LLVM_ENUM_TARGETS 737 LLVM_ENUM_ASM_PRINTERS 738 LLVM_ENUM_ASM_PARSERS 739 LLVM_ENUM_DISASSEMBLERS 740 OPTIMIZE_OPTION 741 EXTRA_OPTIONS 742 EXTRA_LD_OPTIONS 743 CLANG_SRC_ROOT 744 BINUTILS_INCDIR 745 ENABLE_TERMINFO 746 INTERNAL_PREFIX 747 ifGNUmake 748 LN_S 749 NM 750 CMP 751 CP 752 DATE 753 FIND 754 GREP 755 MKDIR 756 MV 757 RANLIB 758 AR 759 RM 760 SED 761 TAR 762 BINPWD 763 DOT 764 INSTALL_PROGRAM 765 INSTALL_SCRIPT 766 INSTALL_DATA 767 BZIP2 768 CAT 769 DOXYGEN 770 GROFF 771 GZIPBIN 772 PDFROFF 773 ZIP 774 GO 775 OCAMLFIND 776 GAS 777 HAVE_LINK_VERSION_SCRIPT 778 EGREP 779 NO_VARIADIC_MACROS 780 NO_MISSING_FIELD_INITIALIZERS 781 COVERED_SWITCH_DEFAULT 782 NO_MAYBE_UNINITIALIZED 783 NO_UNINITIALIZED 784 NO_COMMENT 785 PYTHON 786 HAVE_DLOPEN 787 HAVE_TERMINFO 788 USE_OPROFILE 789 USE_INTEL_JITEVENTS 790 XML2CONFIG 791 LIBXML2_LIBS 792 LIBXML2_INC 793 HAVE_PTHREAD 794 HAVE_LIBZ 795 HUGE_VAL_SANITY 796 MMAP_FILE 797 SHLIBEXT 798 LLVM_PREFIX 799 LLVM_BINDIR 800 LLVM_DATADIR 801 LLVM_DOCSDIR 802 LLVM_ETCDIR 803 LLVM_INCLUDEDIR 804 LLVM_INFODIR 805 LLVM_MANDIR 806 LLVM_CONFIGTIME 807 BINDINGS_TO_BUILD 808 HAVE_OCAMLOPT 809 HAVE_OCAML_OUNIT 810 OCAML_LIBDIR 811 ENABLE_VISIBILITY_INLINES_HIDDEN 812 RPATH 813 RDYNAMIC 814 program_prefix 815 LIBOBJS 816 LTLIBOBJS' 817 ac_subst_files='' 818 ac_precious_vars='build_alias 819 host_alias 820 target_alias 821 CC 822 CFLAGS 823 LDFLAGS 824 CPPFLAGS 825 CXX 826 CXXFLAGS 827 CCC 828 CPP' 829 ac_subdirs_all='projects/test-suite 830 projects/llvm-test 831 projects/poolalloc 832 projects/llvm-poolalloc 833 projects/safecode 834 tools/polly' 835 836 # Initialize some variables set by options. 837 ac_init_help= 838 ac_init_version=false 839 # The variables have the same names as the options, with 840 # dashes changed to underlines. 841 cache_file=/dev/null 842 exec_prefix=NONE 843 no_create= 844 no_recursion= 845 prefix=NONE 846 program_prefix=NONE 847 program_suffix=NONE 848 program_transform_name=s,x,x, 849 silent= 850 site= 851 srcdir= 852 verbose= 853 x_includes=NONE 854 x_libraries=NONE 855 856 # Installation directory options. 857 # These are left unexpanded so users can "make install exec_prefix=/foo" 858 # and all the variables that are supposed to be based on exec_prefix 859 # by default will actually change. 860 # Use braces instead of parens because sh, perl, etc. also accept them. 861 # (The list follows the same order as the GNU Coding Standards.) 862 bindir='${exec_prefix}/bin' 863 sbindir='${exec_prefix}/sbin' 864 libexecdir='${exec_prefix}/libexec' 865 datarootdir='${prefix}/share' 866 datadir='${datarootdir}' 867 sysconfdir='${prefix}/etc' 868 sharedstatedir='${prefix}/com' 869 localstatedir='${prefix}/var' 870 includedir='${prefix}/include' 871 oldincludedir='/usr/include' 872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 873 infodir='${datarootdir}/info' 874 htmldir='${docdir}' 875 dvidir='${docdir}' 876 pdfdir='${docdir}' 877 psdir='${docdir}' 878 libdir='${exec_prefix}/lib' 879 localedir='${datarootdir}/locale' 880 mandir='${datarootdir}/man' 881 882 ac_prev= 883 ac_dashdash= 884 for ac_option 885 do 886 # If the previous option needs an argument, assign it. 887 if test -n "$ac_prev"; then 888 eval $ac_prev=\$ac_option 889 ac_prev= 890 continue 891 fi 892 893 case $ac_option in 894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 895 *) ac_optarg=yes ;; 896 esac 897 898 # Accept the important Cygnus configure options, so we can diagnose typos. 899 900 case $ac_dashdash$ac_option in 901 --) 902 ac_dashdash=yes ;; 903 904 -bindir | --bindir | --bindi | --bind | --bin | --bi) 905 ac_prev=bindir ;; 906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 907 bindir=$ac_optarg ;; 908 909 -build | --build | --buil | --bui | --bu) 910 ac_prev=build_alias ;; 911 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 912 build_alias=$ac_optarg ;; 913 914 -cache-file | --cache-file | --cache-fil | --cache-fi \ 915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 916 ac_prev=cache_file ;; 917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 919 cache_file=$ac_optarg ;; 920 921 --config-cache | -C) 922 cache_file=config.cache ;; 923 924 -datadir | --datadir | --datadi | --datad) 925 ac_prev=datadir ;; 926 -datadir=* | --datadir=* | --datadi=* | --datad=*) 927 datadir=$ac_optarg ;; 928 929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 930 | --dataroo | --dataro | --datar) 931 ac_prev=datarootdir ;; 932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 934 datarootdir=$ac_optarg ;; 935 936 -disable-* | --disable-*) 937 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 938 # Reject names that are not valid shell variable names. 939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 941 { (exit 1); exit 1; }; } 942 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 943 eval enable_$ac_feature=no ;; 944 945 -docdir | --docdir | --docdi | --doc | --do) 946 ac_prev=docdir ;; 947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 948 docdir=$ac_optarg ;; 949 950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 951 ac_prev=dvidir ;; 952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 953 dvidir=$ac_optarg ;; 954 955 -enable-* | --enable-*) 956 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 960 { (exit 1); exit 1; }; } 961 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 962 eval enable_$ac_feature=\$ac_optarg ;; 963 964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 966 | --exec | --exe | --ex) 967 ac_prev=exec_prefix ;; 968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 970 | --exec=* | --exe=* | --ex=*) 971 exec_prefix=$ac_optarg ;; 972 973 -gas | --gas | --ga | --g) 974 # Obsolete; use --with-gas. 975 with_gas=yes ;; 976 977 -help | --help | --hel | --he | -h) 978 ac_init_help=long ;; 979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 980 ac_init_help=recursive ;; 981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 982 ac_init_help=short ;; 983 984 -host | --host | --hos | --ho) 985 ac_prev=host_alias ;; 986 -host=* | --host=* | --hos=* | --ho=*) 987 host_alias=$ac_optarg ;; 988 989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 990 ac_prev=htmldir ;; 991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 992 | --ht=*) 993 htmldir=$ac_optarg ;; 994 995 -includedir | --includedir | --includedi | --included | --include \ 996 | --includ | --inclu | --incl | --inc) 997 ac_prev=includedir ;; 998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 999 | --includ=* | --inclu=* | --incl=* | --inc=*) 1000 includedir=$ac_optarg ;; 1001 1002 -infodir | --infodir | --infodi | --infod | --info | --inf) 1003 ac_prev=infodir ;; 1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1005 infodir=$ac_optarg ;; 1006 1007 -libdir | --libdir | --libdi | --libd) 1008 ac_prev=libdir ;; 1009 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1010 libdir=$ac_optarg ;; 1011 1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1013 | --libexe | --libex | --libe) 1014 ac_prev=libexecdir ;; 1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1016 | --libexe=* | --libex=* | --libe=*) 1017 libexecdir=$ac_optarg ;; 1018 1019 -localedir | --localedir | --localedi | --localed | --locale) 1020 ac_prev=localedir ;; 1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1022 localedir=$ac_optarg ;; 1023 1024 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1025 | --localstate | --localstat | --localsta | --localst | --locals) 1026 ac_prev=localstatedir ;; 1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1029 localstatedir=$ac_optarg ;; 1030 1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1032 ac_prev=mandir ;; 1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1034 mandir=$ac_optarg ;; 1035 1036 -nfp | --nfp | --nf) 1037 # Obsolete; use --without-fp. 1038 with_fp=no ;; 1039 1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1041 | --no-cr | --no-c | -n) 1042 no_create=yes ;; 1043 1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1046 no_recursion=yes ;; 1047 1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1050 | --oldin | --oldi | --old | --ol | --o) 1051 ac_prev=oldincludedir ;; 1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1055 oldincludedir=$ac_optarg ;; 1056 1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1058 ac_prev=prefix ;; 1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1060 prefix=$ac_optarg ;; 1061 1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1063 | --program-pre | --program-pr | --program-p) 1064 ac_prev=program_prefix ;; 1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1067 program_prefix=$ac_optarg ;; 1068 1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1070 | --program-suf | --program-su | --program-s) 1071 ac_prev=program_suffix ;; 1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1074 program_suffix=$ac_optarg ;; 1075 1076 -program-transform-name | --program-transform-name \ 1077 | --program-transform-nam | --program-transform-na \ 1078 | --program-transform-n | --program-transform- \ 1079 | --program-transform | --program-transfor \ 1080 | --program-transfo | --program-transf \ 1081 | --program-trans | --program-tran \ 1082 | --progr-tra | --program-tr | --program-t) 1083 ac_prev=program_transform_name ;; 1084 -program-transform-name=* | --program-transform-name=* \ 1085 | --program-transform-nam=* | --program-transform-na=* \ 1086 | --program-transform-n=* | --program-transform-=* \ 1087 | --program-transform=* | --program-transfor=* \ 1088 | --program-transfo=* | --program-transf=* \ 1089 | --program-trans=* | --program-tran=* \ 1090 | --progr-tra=* | --program-tr=* | --program-t=*) 1091 program_transform_name=$ac_optarg ;; 1092 1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1094 ac_prev=pdfdir ;; 1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1096 pdfdir=$ac_optarg ;; 1097 1098 -psdir | --psdir | --psdi | --psd | --ps) 1099 ac_prev=psdir ;; 1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1101 psdir=$ac_optarg ;; 1102 1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1104 | -silent | --silent | --silen | --sile | --sil) 1105 silent=yes ;; 1106 1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1108 ac_prev=sbindir ;; 1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1110 | --sbi=* | --sb=*) 1111 sbindir=$ac_optarg ;; 1112 1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1115 | --sharedst | --shareds | --shared | --share | --shar \ 1116 | --sha | --sh) 1117 ac_prev=sharedstatedir ;; 1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1121 | --sha=* | --sh=*) 1122 sharedstatedir=$ac_optarg ;; 1123 1124 -site | --site | --sit) 1125 ac_prev=site ;; 1126 -site=* | --site=* | --sit=*) 1127 site=$ac_optarg ;; 1128 1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1130 ac_prev=srcdir ;; 1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1132 srcdir=$ac_optarg ;; 1133 1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1135 | --syscon | --sysco | --sysc | --sys | --sy) 1136 ac_prev=sysconfdir ;; 1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1139 sysconfdir=$ac_optarg ;; 1140 1141 -target | --target | --targe | --targ | --tar | --ta | --t) 1142 ac_prev=target_alias ;; 1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1144 target_alias=$ac_optarg ;; 1145 1146 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1147 verbose=yes ;; 1148 1149 -version | --version | --versio | --versi | --vers | -V) 1150 ac_init_version=: ;; 1151 1152 -with-* | --with-*) 1153 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1156 { echo "$as_me: error: invalid package name: $ac_package" >&2 1157 { (exit 1); exit 1; }; } 1158 ac_package=`echo $ac_package| sed 's/-/_/g'` 1159 eval with_$ac_package=\$ac_optarg ;; 1160 1161 -without-* | --without-*) 1162 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1165 { echo "$as_me: error: invalid package name: $ac_package" >&2 1166 { (exit 1); exit 1; }; } 1167 ac_package=`echo $ac_package | sed 's/-/_/g'` 1168 eval with_$ac_package=no ;; 1169 1170 --x) 1171 # Obsolete; use --with-x. 1172 with_x=yes ;; 1173 1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1175 | --x-incl | --x-inc | --x-in | --x-i) 1176 ac_prev=x_includes ;; 1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1179 x_includes=$ac_optarg ;; 1180 1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1183 ac_prev=x_libraries ;; 1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1186 x_libraries=$ac_optarg ;; 1187 1188 -*) { echo "$as_me: error: unrecognized option: $ac_option 1189 Try \`$0 --help' for more information." >&2 1190 { (exit 1); exit 1; }; } 1191 ;; 1192 1193 *=*) 1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1195 # Reject names that are not valid shell variable names. 1196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1197 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1198 { (exit 1); exit 1; }; } 1199 eval $ac_envvar=\$ac_optarg 1200 export $ac_envvar ;; 1201 1202 *) 1203 # FIXME: should be removed in autoconf 3.0. 1204 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1206 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1208 ;; 1209 1210 esac 1211 done 1212 1213 if test -n "$ac_prev"; then 1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1215 { echo "$as_me: error: missing argument to $ac_option" >&2 1216 { (exit 1); exit 1; }; } 1217 fi 1218 1219 # Be sure to have absolute directory names. 1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1221 datadir sysconfdir sharedstatedir localstatedir includedir \ 1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1223 libdir localedir mandir 1224 do 1225 eval ac_val=\$$ac_var 1226 case $ac_val in 1227 [\\/$]* | ?:[\\/]* ) continue;; 1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1229 esac 1230 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1231 { (exit 1); exit 1; }; } 1232 done 1233 1234 # There might be people who depend on the old broken behavior: `$host' 1235 # used to hold the argument of --host etc. 1236 # FIXME: To remove some day. 1237 build=$build_alias 1238 host=$host_alias 1239 target=$target_alias 1240 1241 # FIXME: To remove some day. 1242 if test "x$host_alias" != x; then 1243 if test "x$build_alias" = x; then 1244 cross_compiling=maybe 1245 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1246 If a cross compiler is detected then cross compile mode will be used." >&2 1247 elif test "x$build_alias" != "x$host_alias"; then 1248 cross_compiling=yes 1249 fi 1250 fi 1251 1252 ac_tool_prefix= 1253 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1254 1255 test "$silent" = yes && exec 6>/dev/null 1256 1257 1258 ac_pwd=`pwd` && test -n "$ac_pwd" && 1259 ac_ls_di=`ls -di .` && 1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1261 { echo "$as_me: error: Working directory cannot be determined" >&2 1262 { (exit 1); exit 1; }; } 1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1264 { echo "$as_me: error: pwd does not report name of working directory" >&2 1265 { (exit 1); exit 1; }; } 1266 1267 1268 # Find the source files, if location was not specified. 1269 if test -z "$srcdir"; then 1270 ac_srcdir_defaulted=yes 1271 # Try the directory containing this script, then the parent directory. 1272 ac_confdir=`$as_dirname -- "$0" || 1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1274 X"$0" : 'X\(//\)[^/]' \| \ 1275 X"$0" : 'X\(//\)$' \| \ 1276 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1277 echo X"$0" | 1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)[^/].*/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\).*/{ 1291 s//\1/ 1292 q 1293 } 1294 s/.*/./; q'` 1295 srcdir=$ac_confdir 1296 if test ! -r "$srcdir/$ac_unique_file"; then 1297 srcdir=.. 1298 fi 1299 else 1300 ac_srcdir_defaulted=no 1301 fi 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1304 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1305 { (exit 1); exit 1; }; } 1306 fi 1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1308 ac_abs_confdir=`( 1309 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1310 { (exit 1); exit 1; }; } 1311 pwd)` 1312 # When building in place, set srcdir=. 1313 if test "$ac_abs_confdir" = "$ac_pwd"; then 1314 srcdir=. 1315 fi 1316 # Remove unnecessary trailing slashes from srcdir. 1317 # Double slashes in file names in object file debugging info 1318 # mess up M-x gdb in Emacs. 1319 case $srcdir in 1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1321 esac 1322 for ac_var in $ac_precious_vars; do 1323 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_env_${ac_var}_value=\$${ac_var} 1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1327 done 1328 1329 # 1330 # Report the --help message. 1331 # 1332 if test "$ac_init_help" = "long"; then 1333 # Omit some internal or obsolete options to make the list less imposing. 1334 # This message is too long to be a string in the A/UX 3.1 sh. 1335 cat <<_ACEOF 1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems. 1337 1338 Usage: $0 [OPTION]... [VAR=VALUE]... 1339 1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1341 VAR=VALUE. See below for descriptions of some of the useful variables. 1342 1343 Defaults for the options are specified in brackets. 1344 1345 Configuration: 1346 -h, --help display this help and exit 1347 --help=short display options specific to this package 1348 --help=recursive display the short help of all the included packages 1349 -V, --version display version information and exit 1350 -q, --quiet, --silent do not print \`checking...' messages 1351 --cache-file=FILE cache test results in FILE [disabled] 1352 -C, --config-cache alias for \`--cache-file=config.cache' 1353 -n, --no-create do not create output files 1354 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1355 1356 Installation directories: 1357 --prefix=PREFIX install architecture-independent files in PREFIX 1358 [$ac_default_prefix] 1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1360 [PREFIX] 1361 1362 By default, \`make install' will install all the files in 1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1365 for instance \`--prefix=\$HOME'. 1366 1367 For better control, use the options below. 1368 1369 Fine tuning of the installation directories: 1370 --bindir=DIR user executables [EPREFIX/bin] 1371 --sbindir=DIR system admin executables [EPREFIX/sbin] 1372 --libexecdir=DIR program executables [EPREFIX/libexec] 1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1376 --libdir=DIR object code libraries [EPREFIX/lib] 1377 --includedir=DIR C header files [PREFIX/include] 1378 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1381 --infodir=DIR info documentation [DATAROOTDIR/info] 1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1383 --mandir=DIR man documentation [DATAROOTDIR/man] 1384 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1385 --htmldir=DIR html documentation [DOCDIR] 1386 --dvidir=DIR dvi documentation [DOCDIR] 1387 --pdfdir=DIR pdf documentation [DOCDIR] 1388 --psdir=DIR ps documentation [DOCDIR] 1389 _ACEOF 1390 1391 cat <<\_ACEOF 1392 1393 System types: 1394 --build=BUILD configure for building on BUILD [guessed] 1395 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1396 --target=TARGET configure for building compilers for TARGET [HOST] 1397 _ACEOF 1398 fi 1399 1400 if test -n "$ac_init_help"; then 1401 case $ac_init_help in 1402 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";; 1403 esac 1404 cat <<\_ACEOF 1405 1406 Optional Features: 1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1409 --enable-polly Use polly if available (default is YES) 1410 --enable-libcpp Use libc++ if available (default is NO) 1411 --enable-compiler-version-checks 1412 Check the version of the host compiler (default is 1413 YES) 1414 --enable-cxx1y Use c++1y if available (default is NO) 1415 --enable-split-dwarf Use split-dwarf if available (default is NO) 1416 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1417 --enable-clang-plugin-support 1418 Enable plugin support in clang (default is YES) 1419 --enable-clang-static-analyzer 1420 Enable building of clang Static Analyzer (default is 1421 YES) 1422 --enable-optimized Compile with optimizations enabled (default is NO) 1423 --enable-profiling Compile with profiling enabled (default is NO) 1424 --enable-assertions Compile with assertion checks enabled (default is 1425 YES) 1426 --enable-werror Compile with -Werror enabled (default is NO) 1427 --enable-expensive-checks 1428 Compile with expensive debug checks enabled (default 1429 is NO) 1430 --enable-abi-breaking-checks 1431 Compile with abi-breaking asserts support (default 1432 is with-asserts) 1433 --enable-debug-runtime Build runtime libs with debug symbols (default is 1434 NO) 1435 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1436 optimization is on and YES if it's off) 1437 --enable-keep-symbols Do not strip installed executables) 1438 --enable-jit Enable Just In Time Compiling (default is YES) 1439 --enable-docs Build documents (default is YES) 1440 --enable-doxygen Build doxygen documentation (default is NO) 1441 --enable-doxygen-search Enable doxygen search support (default is NO) 1442 --enable-doxygen-external-search 1443 Enable doxygen exteranl search (default is NO) 1444 --enable-doxygen-qt-help 1445 Build Qt help files (default is NO) 1446 --enable-threads Use threads if available (default is YES) 1447 --enable-pthreads Use pthreads if available (default is YES) 1448 --enable-zlib Use zlib for compression/decompression if available 1449 (default is YES) 1450 --enable-pic Build LLVM with Position Independent Code (default 1451 is YES) 1452 --enable-shared Build a shared library and link tools against it 1453 (default is NO) 1454 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1455 Win32 DLL (default is NO) 1456 --enable-timestamps Enable embedding timestamp information in build 1457 (default is YES) 1458 --enable-backtraces Enable embedding backtraces on crash (default is 1459 YES) 1460 --enable-crash-overrides 1461 Enable crash handling overrides (default is YES) 1462 --enable-targets Build specific host targets: all or 1463 target1,target2,... Valid targets are: host, x86, 1464 x86_64, sparc, powerpc, arm64, arm, aarch64, mips, 1465 hexagon, xcore, msp430, nvptx, systemz, r600, and 1466 cpp (default=all) 1467 --enable-experimental-targets 1468 Build experimental host targets: disable or 1469 target1,target2,... (default=disable) 1470 --enable-bindings Build specific language bindings: 1471 all,auto,none,{binding-name} (default=auto) 1472 --enable-terminfo Query the terminfo database if available (default is 1473 YES) 1474 --enable-libedit Use libedit if available (default is YES) 1475 --enable-libffi Check for the presence of libffi (default is NO) 1476 1477 Optional Packages: 1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1480 --with-doxygen-search-engine-url 1481 Specify the external search engine for doxygen 1482 --with-doxygen-search-mappings 1483 Specify the extra search mapping for doxygen 1484 --with-optimize-option Select the compiler options to use for optimized 1485 builds 1486 --with-extra-options Specify additional options to compile LLVM with 1487 --with-extra-ld-options Specify additional options to link LLVM with 1488 --with-ocaml-libdir Specify install location for ocaml bindings (default 1489 is stdlib) 1490 --with-clang-srcdir Directory to the out-of-tree Clang source 1491 --with-clang-resource-dir 1492 Relative directory from the Clang binary for 1493 resource files 1494 --with-c-include-dirs Colon separated list of directories clang will 1495 search for headers 1496 --with-gcc-toolchain Directory where gcc is installed. 1497 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1498 --with-binutils-include Specify path to binutils/include/ containing 1499 plugin-api.h file for gold plugin. 1500 --with-bug-report-url Specify the URL where bug reports should be 1501 submitted (default=http://llvm.org/bugs/) 1502 --with-internal-prefix Installation directory for internal files 1503 --with-python path to python 1504 --with-oprofile=<prefix> 1505 Tell OProfile >= 0.9.4 how to symbolize JIT output 1506 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1507 1508 1509 Some influential environment variables: 1510 CC C compiler command 1511 CFLAGS C compiler flags 1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1513 nonstandard directory <lib dir> 1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1515 you have headers in a nonstandard directory <include dir> 1516 CXX C++ compiler command 1517 CXXFLAGS C++ compiler flags 1518 CPP C preprocessor 1519 1520 Use these variables to override the choices made by `configure' or to help 1521 it to find libraries and programs with nonstandard names/locations. 1522 1523 Report bugs to <http://llvm.org/bugs/>. 1524 _ACEOF 1525 ac_status=$? 1526 fi 1527 1528 if test "$ac_init_help" = "recursive"; then 1529 # If there are subdirs, report their specific --help. 1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1531 test -d "$ac_dir" || continue 1532 ac_builddir=. 1533 1534 case "$ac_dir" in 1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1536 *) 1537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1538 # A ".." for each directory in $ac_dir_suffix. 1539 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1540 case $ac_top_builddir_sub in 1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1543 esac ;; 1544 esac 1545 ac_abs_top_builddir=$ac_pwd 1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1547 # for backward compatibility: 1548 ac_top_builddir=$ac_top_build_prefix 1549 1550 case $srcdir in 1551 .) # We are building in place. 1552 ac_srcdir=. 1553 ac_top_srcdir=$ac_top_builddir_sub 1554 ac_abs_top_srcdir=$ac_pwd ;; 1555 [\\/]* | ?:[\\/]* ) # Absolute name. 1556 ac_srcdir=$srcdir$ac_dir_suffix; 1557 ac_top_srcdir=$srcdir 1558 ac_abs_top_srcdir=$srcdir ;; 1559 *) # Relative name. 1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1561 ac_top_srcdir=$ac_top_build_prefix$srcdir 1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1563 esac 1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1565 1566 cd "$ac_dir" || { ac_status=$?; continue; } 1567 # Check for guested configure. 1568 if test -f "$ac_srcdir/configure.gnu"; then 1569 echo && 1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1571 elif test -f "$ac_srcdir/configure"; then 1572 echo && 1573 $SHELL "$ac_srcdir/configure" --help=recursive 1574 else 1575 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1576 fi || ac_status=$? 1577 cd "$ac_pwd" || { ac_status=$?; break; } 1578 done 1579 fi 1580 1581 test -n "$ac_init_help" && exit $ac_status 1582 if $ac_init_version; then 1583 cat <<\_ACEOF 1584 LLVM configure 3.7.0svn 1585 generated by GNU Autoconf 2.60 1586 1587 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1588 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1589 This configure script is free software; the Free Software Foundation 1590 gives unlimited permission to copy, distribute and modify it. 1591 1592 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. 1593 _ACEOF 1594 exit 1595 fi 1596 cat >config.log <<_ACEOF 1597 This file contains any messages produced by compilers while 1598 running configure, to aid debugging if configure makes a mistake. 1599 1600 It was created by LLVM $as_me 3.7.0svn, which was 1601 generated by GNU Autoconf 2.60. Invocation command line was 1602 1603 $ $0 $@ 1604 1605 _ACEOF 1606 exec 5>>config.log 1607 { 1608 cat <<_ASUNAME 1609 ## --------- ## 1610 ## Platform. ## 1611 ## --------- ## 1612 1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1614 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1615 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1616 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1617 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1618 1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1620 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1621 1622 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1623 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1625 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1626 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1627 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1628 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1629 1630 _ASUNAME 1631 1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1633 for as_dir in $PATH 1634 do 1635 IFS=$as_save_IFS 1636 test -z "$as_dir" && as_dir=. 1637 echo "PATH: $as_dir" 1638 done 1639 IFS=$as_save_IFS 1640 1641 } >&5 1642 1643 cat >&5 <<_ACEOF 1644 1645 1646 ## ----------- ## 1647 ## Core tests. ## 1648 ## ----------- ## 1649 1650 _ACEOF 1651 1652 1653 # Keep a trace of the command line. 1654 # Strip out --no-create and --no-recursion so they do not pile up. 1655 # Strip out --silent because we don't want to record it for future runs. 1656 # Also quote any args containing shell meta-characters. 1657 # Make two passes to allow for proper duplicate-argument suppression. 1658 ac_configure_args= 1659 ac_configure_args0= 1660 ac_configure_args1= 1661 ac_must_keep_next=false 1662 for ac_pass in 1 2 1663 do 1664 for ac_arg 1665 do 1666 case $ac_arg in 1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1669 | -silent | --silent | --silen | --sile | --sil) 1670 continue ;; 1671 *\'*) 1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1673 esac 1674 case $ac_pass in 1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1676 2) 1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1678 if test $ac_must_keep_next = true; then 1679 ac_must_keep_next=false # Got value, back to normal. 1680 else 1681 case $ac_arg in 1682 *=* | --config-cache | -C | -disable-* | --disable-* \ 1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1685 | -with-* | --with-* | -without-* | --without-* | --x) 1686 case "$ac_configure_args0 " in 1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1688 esac 1689 ;; 1690 -* ) ac_must_keep_next=true ;; 1691 esac 1692 fi 1693 ac_configure_args="$ac_configure_args '$ac_arg'" 1694 ;; 1695 esac 1696 done 1697 done 1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1700 1701 # When interrupted or exit'd, cleanup temporary files, and complete 1702 # config.log. We remove comments because anyway the quotes in there 1703 # would cause problems or look ugly. 1704 # WARNING: Use '\'' to represent an apostrophe within the trap. 1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1706 trap 'exit_status=$? 1707 # Save into config.log some information that might help in debugging. 1708 { 1709 echo 1710 1711 cat <<\_ASBOX 1712 ## ---------------- ## 1713 ## Cache variables. ## 1714 ## ---------------- ## 1715 _ASBOX 1716 echo 1717 # The following way of writing the cache mishandles newlines in values, 1718 ( 1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1720 eval ac_val=\$$ac_var 1721 case $ac_val in #( 1722 *${as_nl}*) 1723 case $ac_var in #( 1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1726 esac 1727 case $ac_var in #( 1728 _ | IFS | as_nl) ;; #( 1729 *) $as_unset $ac_var ;; 1730 esac ;; 1731 esac 1732 done 1733 (set) 2>&1 | 1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1735 *${as_nl}ac_space=\ *) 1736 sed -n \ 1737 "s/'\''/'\''\\\\'\'''\''/g; 1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1739 ;; #( 1740 *) 1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1742 ;; 1743 esac | 1744 sort 1745 ) 1746 echo 1747 1748 cat <<\_ASBOX 1749 ## ----------------- ## 1750 ## Output variables. ## 1751 ## ----------------- ## 1752 _ASBOX 1753 echo 1754 for ac_var in $ac_subst_vars 1755 do 1756 eval ac_val=\$$ac_var 1757 case $ac_val in 1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1759 esac 1760 echo "$ac_var='\''$ac_val'\''" 1761 done | sort 1762 echo 1763 1764 if test -n "$ac_subst_files"; then 1765 cat <<\_ASBOX 1766 ## ------------------- ## 1767 ## File substitutions. ## 1768 ## ------------------- ## 1769 _ASBOX 1770 echo 1771 for ac_var in $ac_subst_files 1772 do 1773 eval ac_val=\$$ac_var 1774 case $ac_val in 1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1776 esac 1777 echo "$ac_var='\''$ac_val'\''" 1778 done | sort 1779 echo 1780 fi 1781 1782 if test -s confdefs.h; then 1783 cat <<\_ASBOX 1784 ## ----------- ## 1785 ## confdefs.h. ## 1786 ## ----------- ## 1787 _ASBOX 1788 echo 1789 cat confdefs.h 1790 echo 1791 fi 1792 test "$ac_signal" != 0 && 1793 echo "$as_me: caught signal $ac_signal" 1794 echo "$as_me: exit $exit_status" 1795 } >&5 1796 rm -f core *.core core.conftest.* && 1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1798 exit $exit_status 1799 ' 0 1800 for ac_signal in 1 2 13 15; do 1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1802 done 1803 ac_signal=0 1804 1805 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1806 rm -f -r conftest* confdefs.h 1807 1808 # Predefined preprocessor variables. 1809 1810 cat >>confdefs.h <<_ACEOF 1811 #define PACKAGE_NAME "$PACKAGE_NAME" 1812 _ACEOF 1813 1814 1815 cat >>confdefs.h <<_ACEOF 1816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1817 _ACEOF 1818 1819 1820 cat >>confdefs.h <<_ACEOF 1821 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1822 _ACEOF 1823 1824 1825 cat >>confdefs.h <<_ACEOF 1826 #define PACKAGE_STRING "$PACKAGE_STRING" 1827 _ACEOF 1828 1829 1830 cat >>confdefs.h <<_ACEOF 1831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1832 _ACEOF 1833 1834 1835 # Let the site file select an alternate cache file if it wants to. 1836 # Prefer explicitly selected file to automatically selected ones. 1837 if test -n "$CONFIG_SITE"; then 1838 set x "$CONFIG_SITE" 1839 elif test "x$prefix" != xNONE; then 1840 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1841 else 1842 set x "$ac_default_prefix/share/config.site" \ 1843 "$ac_default_prefix/etc/config.site" 1844 fi 1845 shift 1846 for ac_site_file 1847 do 1848 if test -r "$ac_site_file"; then 1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1850 echo "$as_me: loading site script $ac_site_file" >&6;} 1851 sed 's/^/| /' "$ac_site_file" >&5 1852 . "$ac_site_file" 1853 fi 1854 done 1855 1856 if test -r "$cache_file"; then 1857 # Some versions of bash will fail to source /dev/null (special 1858 # files actually), so we avoid doing that. 1859 if test -f "$cache_file"; then 1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1861 echo "$as_me: loading cache $cache_file" >&6;} 1862 case $cache_file in 1863 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1864 *) . "./$cache_file";; 1865 esac 1866 fi 1867 else 1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1869 echo "$as_me: creating cache $cache_file" >&6;} 1870 >$cache_file 1871 fi 1872 1873 # Check that the precious variables saved in the cache have kept the same 1874 # value. 1875 ac_cache_corrupted=false 1876 for ac_var in $ac_precious_vars; do 1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1878 eval ac_new_set=\$ac_env_${ac_var}_set 1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1880 eval ac_new_val=\$ac_env_${ac_var}_value 1881 case $ac_old_set,$ac_new_set in 1882 set,) 1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1885 ac_cache_corrupted=: ;; 1886 ,set) 1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1889 ac_cache_corrupted=: ;; 1890 ,);; 1891 *) 1892 if test "x$ac_old_val" != "x$ac_new_val"; then 1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1896 echo "$as_me: former value: $ac_old_val" >&2;} 1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1898 echo "$as_me: current value: $ac_new_val" >&2;} 1899 ac_cache_corrupted=: 1900 fi;; 1901 esac 1902 # Pass precious variables to config.status. 1903 if test "$ac_new_set" = set; then 1904 case $ac_new_val in 1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1906 *) ac_arg=$ac_var=$ac_new_val ;; 1907 esac 1908 case " $ac_configure_args " in 1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1911 esac 1912 fi 1913 done 1914 if $ac_cache_corrupted; then 1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1919 { (exit 1); exit 1; }; } 1920 fi 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 ac_ext=c 1947 ac_cpp='$CPP $CPPFLAGS' 1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1951 1952 1953 1954 LLVM_VERSION_MAJOR=3 1955 LLVM_VERSION_MINOR=7 1956 LLVM_VERSION_PATCH=0 1957 LLVM_VERSION_SUFFIX=svn 1958 1959 1960 cat >>confdefs.h <<_ACEOF 1961 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR 1962 _ACEOF 1963 1964 1965 cat >>confdefs.h <<_ACEOF 1966 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR 1967 _ACEOF 1968 1969 1970 cat >>confdefs.h <<_ACEOF 1971 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH 1972 _ACEOF 1973 1974 1975 cat >>confdefs.h <<_ACEOF 1976 #define LLVM_VERSION_STRING "$PACKAGE_VERSION" 1977 _ACEOF 1978 1979 1980 1981 1982 1983 1984 1985 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign." 1986 1987 1988 1989 1990 1991 1992 1993 ac_aux_dir= 1994 for ac_dir in autoconf "$srcdir"/autoconf; do 1995 if test -f "$ac_dir/install-sh"; then 1996 ac_aux_dir=$ac_dir 1997 ac_install_sh="$ac_aux_dir/install-sh -c" 1998 break 1999 elif test -f "$ac_dir/install.sh"; then 2000 ac_aux_dir=$ac_dir 2001 ac_install_sh="$ac_aux_dir/install.sh -c" 2002 break 2003 elif test -f "$ac_dir/shtool"; then 2004 ac_aux_dir=$ac_dir 2005 ac_install_sh="$ac_aux_dir/shtool install -c" 2006 break 2007 fi 2008 done 2009 if test -z "$ac_aux_dir"; then 2010 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 2011 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 2012 { (exit 1); exit 1; }; } 2013 fi 2014 2015 # These three variables are undocumented and unsupported, 2016 # and are intended to be withdrawn in a future Autoconf release. 2017 # They can cause serious problems if a builder's source tree is in a directory 2018 # whose full name contains unusual characters. 2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2021 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2022 2023 2024 2025 if test ${srcdir} != "." ; then 2026 if test -f ${srcdir}/include/llvm/Config/config.h ; then 2027 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 2028 echo "$as_me: error: Already configured in ${srcdir}" >&2;} 2029 { (exit 1); exit 1; }; } 2030 fi 2031 fi 2032 2033 : ${CFLAGS=} 2034 : ${CXXFLAGS=} 2035 2036 ac_ext=c 2037 ac_cpp='$CPP $CPPFLAGS' 2038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2040 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2041 if test -n "$ac_tool_prefix"; then 2042 for ac_prog in clang gcc 2043 do 2044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2046 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2048 if test "${ac_cv_prog_CC+set}" = set; then 2049 echo $ECHO_N "(cached) $ECHO_C" >&6 2050 else 2051 if test -n "$CC"; then 2052 ac_cv_prog_CC="$CC" # Let the user override the test. 2053 else 2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2055 for as_dir in $PATH 2056 do 2057 IFS=$as_save_IFS 2058 test -z "$as_dir" && as_dir=. 2059 for ac_exec_ext in '' $ac_executable_extensions; do 2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2063 break 2 2064 fi 2065 done 2066 done 2067 IFS=$as_save_IFS 2068 2069 fi 2070 fi 2071 CC=$ac_cv_prog_CC 2072 if test -n "$CC"; then 2073 { echo "$as_me:$LINENO: result: $CC" >&5 2074 echo "${ECHO_T}$CC" >&6; } 2075 else 2076 { echo "$as_me:$LINENO: result: no" >&5 2077 echo "${ECHO_T}no" >&6; } 2078 fi 2079 2080 2081 test -n "$CC" && break 2082 done 2083 fi 2084 if test -z "$CC"; then 2085 ac_ct_CC=$CC 2086 for ac_prog in clang gcc 2087 do 2088 # Extract the first word of "$ac_prog", so it can be a program name with args. 2089 set dummy $ac_prog; ac_word=$2 2090 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2093 echo $ECHO_N "(cached) $ECHO_C" >&6 2094 else 2095 if test -n "$ac_ct_CC"; then 2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2097 else 2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2099 for as_dir in $PATH 2100 do 2101 IFS=$as_save_IFS 2102 test -z "$as_dir" && as_dir=. 2103 for ac_exec_ext in '' $ac_executable_extensions; do 2104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2105 ac_cv_prog_ac_ct_CC="$ac_prog" 2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2107 break 2 2108 fi 2109 done 2110 done 2111 IFS=$as_save_IFS 2112 2113 fi 2114 fi 2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2116 if test -n "$ac_ct_CC"; then 2117 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2118 echo "${ECHO_T}$ac_ct_CC" >&6; } 2119 else 2120 { echo "$as_me:$LINENO: result: no" >&5 2121 echo "${ECHO_T}no" >&6; } 2122 fi 2123 2124 2125 test -n "$ac_ct_CC" && break 2126 done 2127 2128 if test "x$ac_ct_CC" = x; then 2129 CC="" 2130 else 2131 case $cross_compiling:$ac_tool_warned in 2132 yes:) 2133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2134 whose name does not start with the host triplet. If you think this 2135 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2137 whose name does not start with the host triplet. If you think this 2138 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2139 ac_tool_warned=yes ;; 2140 esac 2141 CC=$ac_ct_CC 2142 fi 2143 fi 2144 2145 2146 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2147 See \`config.log' for more details." >&5 2148 echo "$as_me: error: no acceptable C compiler found in \$PATH 2149 See \`config.log' for more details." >&2;} 2150 { (exit 1); exit 1; }; } 2151 2152 # Provide some information about the compiler. 2153 echo "$as_me:$LINENO: checking for C compiler version" >&5 2154 ac_compiler=`set X $ac_compile; echo $2` 2155 { (ac_try="$ac_compiler --version >&5" 2156 case "(($ac_try" in 2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2158 *) ac_try_echo=$ac_try;; 2159 esac 2160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2161 (eval "$ac_compiler --version >&5") 2>&5 2162 ac_status=$? 2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2164 (exit $ac_status); } 2165 { (ac_try="$ac_compiler -v >&5" 2166 case "(($ac_try" in 2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2168 *) ac_try_echo=$ac_try;; 2169 esac 2170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2171 (eval "$ac_compiler -v >&5") 2>&5 2172 ac_status=$? 2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2174 (exit $ac_status); } 2175 { (ac_try="$ac_compiler -V >&5" 2176 case "(($ac_try" in 2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2178 *) ac_try_echo=$ac_try;; 2179 esac 2180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2181 (eval "$ac_compiler -V >&5") 2>&5 2182 ac_status=$? 2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2184 (exit $ac_status); } 2185 2186 cat >conftest.$ac_ext <<_ACEOF 2187 /* confdefs.h. */ 2188 _ACEOF 2189 cat confdefs.h >>conftest.$ac_ext 2190 cat >>conftest.$ac_ext <<_ACEOF 2191 /* end confdefs.h. */ 2192 2193 int 2194 main () 2195 { 2196 2197 ; 2198 return 0; 2199 } 2200 _ACEOF 2201 ac_clean_files_save=$ac_clean_files 2202 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2203 # Try to create an executable without -o first, disregard a.out. 2204 # It will help us diagnose broken compilers, and finding out an intuition 2205 # of exeext. 2206 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2207 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2208 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2209 # 2210 # List of possible output files, starting from the most likely. 2211 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2212 # only as a last resort. b.out is created by i960 compilers. 2213 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2214 # 2215 # The IRIX 6 linker writes into existing files which may not be 2216 # executable, retaining their permissions. Remove them first so a 2217 # subsequent execution test works. 2218 ac_rmfiles= 2219 for ac_file in $ac_files 2220 do 2221 case $ac_file in 2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2223 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2224 esac 2225 done 2226 rm -f $ac_rmfiles 2227 2228 if { (ac_try="$ac_link_default" 2229 case "(($ac_try" in 2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2231 *) ac_try_echo=$ac_try;; 2232 esac 2233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2234 (eval "$ac_link_default") 2>&5 2235 ac_status=$? 2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2237 (exit $ac_status); }; then 2238 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2239 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2240 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2241 # so that the user can short-circuit this test for compilers unknown to 2242 # Autoconf. 2243 for ac_file in $ac_files 2244 do 2245 test -f "$ac_file" || continue 2246 case $ac_file in 2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2248 ;; 2249 [ab].out ) 2250 # We found the default executable, but exeext='' is most 2251 # certainly right. 2252 break;; 2253 *.* ) 2254 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2255 then :; else 2256 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2257 fi 2258 # We set ac_cv_exeext here because the later test for it is not 2259 # safe: cross compilers may not add the suffix if given an `-o' 2260 # argument, so we may need to know it at that point already. 2261 # Even if this section looks crufty: it has the advantage of 2262 # actually working. 2263 break;; 2264 * ) 2265 break;; 2266 esac 2267 done 2268 test "$ac_cv_exeext" = no && ac_cv_exeext= 2269 2270 else 2271 echo "$as_me: failed program was:" >&5 2272 sed 's/^/| /' conftest.$ac_ext >&5 2273 2274 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2275 See \`config.log' for more details." >&5 2276 echo "$as_me: error: C compiler cannot create executables 2277 See \`config.log' for more details." >&2;} 2278 { (exit 77); exit 77; }; } 2279 fi 2280 2281 ac_exeext=$ac_cv_exeext 2282 { echo "$as_me:$LINENO: result: $ac_file" >&5 2283 echo "${ECHO_T}$ac_file" >&6; } 2284 2285 # Check that the compiler produces executables we can run. If not, either 2286 # the compiler is broken, or we cross compile. 2287 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2290 # If not cross compiling, check that we can run a simple program. 2291 if test "$cross_compiling" != yes; then 2292 if { ac_try='./$ac_file' 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_try") 2>&5 2299 ac_status=$? 2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2301 (exit $ac_status); }; }; then 2302 cross_compiling=no 2303 else 2304 if test "$cross_compiling" = maybe; then 2305 cross_compiling=yes 2306 else 2307 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2308 If you meant to cross compile, use \`--host'. 2309 See \`config.log' for more details." >&5 2310 echo "$as_me: error: cannot run C compiled programs. 2311 If you meant to cross compile, use \`--host'. 2312 See \`config.log' for more details." >&2;} 2313 { (exit 1); exit 1; }; } 2314 fi 2315 fi 2316 fi 2317 { echo "$as_me:$LINENO: result: yes" >&5 2318 echo "${ECHO_T}yes" >&6; } 2319 2320 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2321 ac_clean_files=$ac_clean_files_save 2322 # Check that the compiler produces executables we can run. If not, either 2323 # the compiler is broken, or we cross compile. 2324 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2325 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2326 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2327 echo "${ECHO_T}$cross_compiling" >&6; } 2328 2329 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2330 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2331 if { (ac_try="$ac_link" 2332 case "(($ac_try" in 2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2334 *) ac_try_echo=$ac_try;; 2335 esac 2336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2337 (eval "$ac_link") 2>&5 2338 ac_status=$? 2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2340 (exit $ac_status); }; then 2341 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2342 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2343 # work properly (i.e., refer to `conftest.exe'), while it won't with 2344 # `rm'. 2345 for ac_file in conftest.exe conftest conftest.*; do 2346 test -f "$ac_file" || continue 2347 case $ac_file in 2348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2349 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2350 break;; 2351 * ) break;; 2352 esac 2353 done 2354 else 2355 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2356 See \`config.log' for more details." >&5 2357 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2358 See \`config.log' for more details." >&2;} 2359 { (exit 1); exit 1; }; } 2360 fi 2361 2362 rm -f conftest$ac_cv_exeext 2363 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2364 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2365 2366 rm -f conftest.$ac_ext 2367 EXEEXT=$ac_cv_exeext 2368 ac_exeext=$EXEEXT 2369 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2370 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2371 if test "${ac_cv_objext+set}" = set; then 2372 echo $ECHO_N "(cached) $ECHO_C" >&6 2373 else 2374 cat >conftest.$ac_ext <<_ACEOF 2375 /* confdefs.h. */ 2376 _ACEOF 2377 cat confdefs.h >>conftest.$ac_ext 2378 cat >>conftest.$ac_ext <<_ACEOF 2379 /* end confdefs.h. */ 2380 2381 int 2382 main () 2383 { 2384 2385 ; 2386 return 0; 2387 } 2388 _ACEOF 2389 rm -f conftest.o conftest.obj 2390 if { (ac_try="$ac_compile" 2391 case "(($ac_try" in 2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2393 *) ac_try_echo=$ac_try;; 2394 esac 2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2396 (eval "$ac_compile") 2>&5 2397 ac_status=$? 2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2399 (exit $ac_status); }; then 2400 for ac_file in conftest.o conftest.obj conftest.*; do 2401 test -f "$ac_file" || continue; 2402 case $ac_file in 2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2404 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2405 break;; 2406 esac 2407 done 2408 else 2409 echo "$as_me: failed program was:" >&5 2410 sed 's/^/| /' conftest.$ac_ext >&5 2411 2412 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2413 See \`config.log' for more details." >&5 2414 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2415 See \`config.log' for more details." >&2;} 2416 { (exit 1); exit 1; }; } 2417 fi 2418 2419 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2420 fi 2421 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2422 echo "${ECHO_T}$ac_cv_objext" >&6; } 2423 OBJEXT=$ac_cv_objext 2424 ac_objext=$OBJEXT 2425 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2426 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2427 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2428 echo $ECHO_N "(cached) $ECHO_C" >&6 2429 else 2430 cat >conftest.$ac_ext <<_ACEOF 2431 /* confdefs.h. */ 2432 _ACEOF 2433 cat confdefs.h >>conftest.$ac_ext 2434 cat >>conftest.$ac_ext <<_ACEOF 2435 /* end confdefs.h. */ 2436 2437 int 2438 main () 2439 { 2440 #ifndef __GNUC__ 2441 choke me 2442 #endif 2443 2444 ; 2445 return 0; 2446 } 2447 _ACEOF 2448 rm -f conftest.$ac_objext 2449 if { (ac_try="$ac_compile" 2450 case "(($ac_try" in 2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2452 *) ac_try_echo=$ac_try;; 2453 esac 2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2455 (eval "$ac_compile") 2>conftest.er1 2456 ac_status=$? 2457 grep -v '^ *+' conftest.er1 >conftest.err 2458 rm -f conftest.er1 2459 cat conftest.err >&5 2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 (exit $ac_status); } && 2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2463 { (case "(($ac_try" in 2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2465 *) ac_try_echo=$ac_try;; 2466 esac 2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2468 (eval "$ac_try") 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); }; } && 2472 { ac_try='test -s conftest.$ac_objext' 2473 { (case "(($ac_try" in 2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2475 *) ac_try_echo=$ac_try;; 2476 esac 2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2478 (eval "$ac_try") 2>&5 2479 ac_status=$? 2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2481 (exit $ac_status); }; }; then 2482 ac_compiler_gnu=yes 2483 else 2484 echo "$as_me: failed program was:" >&5 2485 sed 's/^/| /' conftest.$ac_ext >&5 2486 2487 ac_compiler_gnu=no 2488 fi 2489 2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2491 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2492 2493 fi 2494 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2495 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2496 GCC=`test $ac_compiler_gnu = yes && echo yes` 2497 ac_test_CFLAGS=${CFLAGS+set} 2498 ac_save_CFLAGS=$CFLAGS 2499 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2500 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2501 if test "${ac_cv_prog_cc_g+set}" = set; then 2502 echo $ECHO_N "(cached) $ECHO_C" >&6 2503 else 2504 ac_save_c_werror_flag=$ac_c_werror_flag 2505 ac_c_werror_flag=yes 2506 ac_cv_prog_cc_g=no 2507 CFLAGS="-g" 2508 cat >conftest.$ac_ext <<_ACEOF 2509 /* confdefs.h. */ 2510 _ACEOF 2511 cat confdefs.h >>conftest.$ac_ext 2512 cat >>conftest.$ac_ext <<_ACEOF 2513 /* end confdefs.h. */ 2514 2515 int 2516 main () 2517 { 2518 2519 ; 2520 return 0; 2521 } 2522 _ACEOF 2523 rm -f conftest.$ac_objext 2524 if { (ac_try="$ac_compile" 2525 case "(($ac_try" in 2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2527 *) ac_try_echo=$ac_try;; 2528 esac 2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2530 (eval "$ac_compile") 2>conftest.er1 2531 ac_status=$? 2532 grep -v '^ *+' conftest.er1 >conftest.err 2533 rm -f conftest.er1 2534 cat conftest.err >&5 2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2536 (exit $ac_status); } && 2537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2538 { (case "(($ac_try" in 2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2540 *) ac_try_echo=$ac_try;; 2541 esac 2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2543 (eval "$ac_try") 2>&5 2544 ac_status=$? 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2546 (exit $ac_status); }; } && 2547 { ac_try='test -s conftest.$ac_objext' 2548 { (case "(($ac_try" in 2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2550 *) ac_try_echo=$ac_try;; 2551 esac 2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2553 (eval "$ac_try") 2>&5 2554 ac_status=$? 2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2556 (exit $ac_status); }; }; then 2557 ac_cv_prog_cc_g=yes 2558 else 2559 echo "$as_me: failed program was:" >&5 2560 sed 's/^/| /' conftest.$ac_ext >&5 2561 2562 CFLAGS="" 2563 cat >conftest.$ac_ext <<_ACEOF 2564 /* confdefs.h. */ 2565 _ACEOF 2566 cat confdefs.h >>conftest.$ac_ext 2567 cat >>conftest.$ac_ext <<_ACEOF 2568 /* end confdefs.h. */ 2569 2570 int 2571 main () 2572 { 2573 2574 ; 2575 return 0; 2576 } 2577 _ACEOF 2578 rm -f conftest.$ac_objext 2579 if { (ac_try="$ac_compile" 2580 case "(($ac_try" in 2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2582 *) ac_try_echo=$ac_try;; 2583 esac 2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2585 (eval "$ac_compile") 2>conftest.er1 2586 ac_status=$? 2587 grep -v '^ *+' conftest.er1 >conftest.err 2588 rm -f conftest.er1 2589 cat conftest.err >&5 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); } && 2592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2593 { (case "(($ac_try" in 2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2595 *) ac_try_echo=$ac_try;; 2596 esac 2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2598 (eval "$ac_try") 2>&5 2599 ac_status=$? 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); }; } && 2602 { ac_try='test -s conftest.$ac_objext' 2603 { (case "(($ac_try" in 2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2605 *) ac_try_echo=$ac_try;; 2606 esac 2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2608 (eval "$ac_try") 2>&5 2609 ac_status=$? 2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2611 (exit $ac_status); }; }; then 2612 : 2613 else 2614 echo "$as_me: failed program was:" >&5 2615 sed 's/^/| /' conftest.$ac_ext >&5 2616 2617 ac_c_werror_flag=$ac_save_c_werror_flag 2618 CFLAGS="-g" 2619 cat >conftest.$ac_ext <<_ACEOF 2620 /* confdefs.h. */ 2621 _ACEOF 2622 cat confdefs.h >>conftest.$ac_ext 2623 cat >>conftest.$ac_ext <<_ACEOF 2624 /* end confdefs.h. */ 2625 2626 int 2627 main () 2628 { 2629 2630 ; 2631 return 0; 2632 } 2633 _ACEOF 2634 rm -f conftest.$ac_objext 2635 if { (ac_try="$ac_compile" 2636 case "(($ac_try" in 2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2638 *) ac_try_echo=$ac_try;; 2639 esac 2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2641 (eval "$ac_compile") 2>conftest.er1 2642 ac_status=$? 2643 grep -v '^ *+' conftest.er1 >conftest.err 2644 rm -f conftest.er1 2645 cat conftest.err >&5 2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2647 (exit $ac_status); } && 2648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2649 { (case "(($ac_try" in 2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2651 *) ac_try_echo=$ac_try;; 2652 esac 2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2654 (eval "$ac_try") 2>&5 2655 ac_status=$? 2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2657 (exit $ac_status); }; } && 2658 { ac_try='test -s conftest.$ac_objext' 2659 { (case "(($ac_try" in 2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2661 *) ac_try_echo=$ac_try;; 2662 esac 2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2664 (eval "$ac_try") 2>&5 2665 ac_status=$? 2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2667 (exit $ac_status); }; }; then 2668 ac_cv_prog_cc_g=yes 2669 else 2670 echo "$as_me: failed program was:" >&5 2671 sed 's/^/| /' conftest.$ac_ext >&5 2672 2673 2674 fi 2675 2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2677 fi 2678 2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2680 fi 2681 2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2683 ac_c_werror_flag=$ac_save_c_werror_flag 2684 fi 2685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2687 if test "$ac_test_CFLAGS" = set; then 2688 CFLAGS=$ac_save_CFLAGS 2689 elif test $ac_cv_prog_cc_g = yes; then 2690 if test "$GCC" = yes; then 2691 CFLAGS="-g -O2" 2692 else 2693 CFLAGS="-g" 2694 fi 2695 else 2696 if test "$GCC" = yes; then 2697 CFLAGS="-O2" 2698 else 2699 CFLAGS= 2700 fi 2701 fi 2702 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2703 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2704 if test "${ac_cv_prog_cc_c89+set}" = set; then 2705 echo $ECHO_N "(cached) $ECHO_C" >&6 2706 else 2707 ac_cv_prog_cc_c89=no 2708 ac_save_CC=$CC 2709 cat >conftest.$ac_ext <<_ACEOF 2710 /* confdefs.h. */ 2711 _ACEOF 2712 cat confdefs.h >>conftest.$ac_ext 2713 cat >>conftest.$ac_ext <<_ACEOF 2714 /* end confdefs.h. */ 2715 #include <stdarg.h> 2716 #include <stdio.h> 2717 #include <sys/types.h> 2718 #include <sys/stat.h> 2719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2720 struct buf { int x; }; 2721 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2722 static char *e (p, i) 2723 char **p; 2724 int i; 2725 { 2726 return p[i]; 2727 } 2728 static char *f (char * (*g) (char **, int), char **p, ...) 2729 { 2730 char *s; 2731 va_list v; 2732 va_start (v,p); 2733 s = g (p, va_arg (v,int)); 2734 va_end (v); 2735 return s; 2736 } 2737 2738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2739 function prototypes and stuff, but not '\xHH' hex character constants. 2740 These don't provoke an error unfortunately, instead are silently treated 2741 as 'x'. The following induces an error, until -std is added to get 2742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2743 array size at least. It's necessary to write '\x00'==0 to get something 2744 that's true only with -std. */ 2745 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2746 2747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2748 inside strings and character constants. */ 2749 #define FOO(x) 'x' 2750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2751 2752 int test (int i, double x); 2753 struct s1 {int (*f) (int a);}; 2754 struct s2 {int (*f) (double a);}; 2755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2756 int argc; 2757 char **argv; 2758 int 2759 main () 2760 { 2761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2762 ; 2763 return 0; 2764 } 2765 _ACEOF 2766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2768 do 2769 CC="$ac_save_CC $ac_arg" 2770 rm -f conftest.$ac_objext 2771 if { (ac_try="$ac_compile" 2772 case "(($ac_try" in 2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2774 *) ac_try_echo=$ac_try;; 2775 esac 2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2777 (eval "$ac_compile") 2>conftest.er1 2778 ac_status=$? 2779 grep -v '^ *+' conftest.er1 >conftest.err 2780 rm -f conftest.er1 2781 cat conftest.err >&5 2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2783 (exit $ac_status); } && 2784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2785 { (case "(($ac_try" in 2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2787 *) ac_try_echo=$ac_try;; 2788 esac 2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2790 (eval "$ac_try") 2>&5 2791 ac_status=$? 2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2793 (exit $ac_status); }; } && 2794 { ac_try='test -s conftest.$ac_objext' 2795 { (case "(($ac_try" in 2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2797 *) ac_try_echo=$ac_try;; 2798 esac 2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2800 (eval "$ac_try") 2>&5 2801 ac_status=$? 2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2803 (exit $ac_status); }; }; then 2804 ac_cv_prog_cc_c89=$ac_arg 2805 else 2806 echo "$as_me: failed program was:" >&5 2807 sed 's/^/| /' conftest.$ac_ext >&5 2808 2809 2810 fi 2811 2812 rm -f core conftest.err conftest.$ac_objext 2813 test "x$ac_cv_prog_cc_c89" != "xno" && break 2814 done 2815 rm -f conftest.$ac_ext 2816 CC=$ac_save_CC 2817 2818 fi 2819 # AC_CACHE_VAL 2820 case "x$ac_cv_prog_cc_c89" in 2821 x) 2822 { echo "$as_me:$LINENO: result: none needed" >&5 2823 echo "${ECHO_T}none needed" >&6; } ;; 2824 xno) 2825 { echo "$as_me:$LINENO: result: unsupported" >&5 2826 echo "${ECHO_T}unsupported" >&6; } ;; 2827 *) 2828 CC="$CC $ac_cv_prog_cc_c89" 2829 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2830 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2831 esac 2832 2833 2834 ac_ext=c 2835 ac_cpp='$CPP $CPPFLAGS' 2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2839 2840 ac_ext=cpp 2841 ac_cpp='$CXXCPP $CPPFLAGS' 2842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2845 if test -z "$CXX"; then 2846 if test -n "$CCC"; then 2847 CXX=$CCC 2848 else 2849 if test -n "$ac_tool_prefix"; then 2850 for ac_prog in clang++ g++ 2851 do 2852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2854 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2856 if test "${ac_cv_prog_CXX+set}" = set; then 2857 echo $ECHO_N "(cached) $ECHO_C" >&6 2858 else 2859 if test -n "$CXX"; then 2860 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2861 else 2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863 for as_dir in $PATH 2864 do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2869 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873 done 2874 done 2875 IFS=$as_save_IFS 2876 2877 fi 2878 fi 2879 CXX=$ac_cv_prog_CXX 2880 if test -n "$CXX"; then 2881 { echo "$as_me:$LINENO: result: $CXX" >&5 2882 echo "${ECHO_T}$CXX" >&6; } 2883 else 2884 { echo "$as_me:$LINENO: result: no" >&5 2885 echo "${ECHO_T}no" >&6; } 2886 fi 2887 2888 2889 test -n "$CXX" && break 2890 done 2891 fi 2892 if test -z "$CXX"; then 2893 ac_ct_CXX=$CXX 2894 for ac_prog in clang++ g++ 2895 do 2896 # Extract the first word of "$ac_prog", so it can be a program name with args. 2897 set dummy $ac_prog; ac_word=$2 2898 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2900 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2901 echo $ECHO_N "(cached) $ECHO_C" >&6 2902 else 2903 if test -n "$ac_ct_CXX"; then 2904 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2905 else 2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2907 for as_dir in $PATH 2908 do 2909 IFS=$as_save_IFS 2910 test -z "$as_dir" && as_dir=. 2911 for ac_exec_ext in '' $ac_executable_extensions; do 2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2913 ac_cv_prog_ac_ct_CXX="$ac_prog" 2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917 done 2918 done 2919 IFS=$as_save_IFS 2920 2921 fi 2922 fi 2923 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2924 if test -n "$ac_ct_CXX"; then 2925 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2926 echo "${ECHO_T}$ac_ct_CXX" >&6; } 2927 else 2928 { echo "$as_me:$LINENO: result: no" >&5 2929 echo "${ECHO_T}no" >&6; } 2930 fi 2931 2932 2933 test -n "$ac_ct_CXX" && break 2934 done 2935 2936 if test "x$ac_ct_CXX" = x; then 2937 CXX="g++" 2938 else 2939 case $cross_compiling:$ac_tool_warned in 2940 yes:) 2941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2942 whose name does not start with the host triplet. If you think this 2943 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2945 whose name does not start with the host triplet. If you think this 2946 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2947 ac_tool_warned=yes ;; 2948 esac 2949 CXX=$ac_ct_CXX 2950 fi 2951 fi 2952 2953 fi 2954 fi 2955 # Provide some information about the compiler. 2956 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2957 ac_compiler=`set X $ac_compile; echo $2` 2958 { (ac_try="$ac_compiler --version >&5" 2959 case "(($ac_try" in 2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2961 *) ac_try_echo=$ac_try;; 2962 esac 2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2964 (eval "$ac_compiler --version >&5") 2>&5 2965 ac_status=$? 2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2967 (exit $ac_status); } 2968 { (ac_try="$ac_compiler -v >&5" 2969 case "(($ac_try" in 2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2971 *) ac_try_echo=$ac_try;; 2972 esac 2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2974 (eval "$ac_compiler -v >&5") 2>&5 2975 ac_status=$? 2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2977 (exit $ac_status); } 2978 { (ac_try="$ac_compiler -V >&5" 2979 case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982 esac 2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2984 (eval "$ac_compiler -V >&5") 2>&5 2985 ac_status=$? 2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2987 (exit $ac_status); } 2988 2989 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2990 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2991 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2992 echo $ECHO_N "(cached) $ECHO_C" >&6 2993 else 2994 cat >conftest.$ac_ext <<_ACEOF 2995 /* confdefs.h. */ 2996 _ACEOF 2997 cat confdefs.h >>conftest.$ac_ext 2998 cat >>conftest.$ac_ext <<_ACEOF 2999 /* end confdefs.h. */ 3000 3001 int 3002 main () 3003 { 3004 #ifndef __GNUC__ 3005 choke me 3006 #endif 3007 3008 ; 3009 return 0; 3010 } 3011 _ACEOF 3012 rm -f conftest.$ac_objext 3013 if { (ac_try="$ac_compile" 3014 case "(($ac_try" in 3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3016 *) ac_try_echo=$ac_try;; 3017 esac 3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3019 (eval "$ac_compile") 2>conftest.er1 3020 ac_status=$? 3021 grep -v '^ *+' conftest.er1 >conftest.err 3022 rm -f conftest.er1 3023 cat conftest.err >&5 3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3025 (exit $ac_status); } && 3026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3027 { (case "(($ac_try" in 3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3029 *) ac_try_echo=$ac_try;; 3030 esac 3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3032 (eval "$ac_try") 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); }; } && 3036 { ac_try='test -s conftest.$ac_objext' 3037 { (case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040 esac 3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3042 (eval "$ac_try") 2>&5 3043 ac_status=$? 3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3045 (exit $ac_status); }; }; then 3046 ac_compiler_gnu=yes 3047 else 3048 echo "$as_me: failed program was:" >&5 3049 sed 's/^/| /' conftest.$ac_ext >&5 3050 3051 ac_compiler_gnu=no 3052 fi 3053 3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3055 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3056 3057 fi 3058 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3059 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3060 GXX=`test $ac_compiler_gnu = yes && echo yes` 3061 ac_test_CXXFLAGS=${CXXFLAGS+set} 3062 ac_save_CXXFLAGS=$CXXFLAGS 3063 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3064 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3065 if test "${ac_cv_prog_cxx_g+set}" = set; then 3066 echo $ECHO_N "(cached) $ECHO_C" >&6 3067 else 3068 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3069 ac_cxx_werror_flag=yes 3070 ac_cv_prog_cxx_g=no 3071 CXXFLAGS="-g" 3072 cat >conftest.$ac_ext <<_ACEOF 3073 /* confdefs.h. */ 3074 _ACEOF 3075 cat confdefs.h >>conftest.$ac_ext 3076 cat >>conftest.$ac_ext <<_ACEOF 3077 /* end confdefs.h. */ 3078 3079 int 3080 main () 3081 { 3082 3083 ; 3084 return 0; 3085 } 3086 _ACEOF 3087 rm -f conftest.$ac_objext 3088 if { (ac_try="$ac_compile" 3089 case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092 esac 3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3094 (eval "$ac_compile") 2>conftest.er1 3095 ac_status=$? 3096 grep -v '^ *+' conftest.er1 >conftest.err 3097 rm -f conftest.er1 3098 cat conftest.err >&5 3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3100 (exit $ac_status); } && 3101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3102 { (case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105 esac 3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3107 (eval "$ac_try") 2>&5 3108 ac_status=$? 3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3110 (exit $ac_status); }; } && 3111 { ac_try='test -s conftest.$ac_objext' 3112 { (case "(($ac_try" in 3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114 *) ac_try_echo=$ac_try;; 3115 esac 3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3117 (eval "$ac_try") 2>&5 3118 ac_status=$? 3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3120 (exit $ac_status); }; }; then 3121 ac_cv_prog_cxx_g=yes 3122 else 3123 echo "$as_me: failed program was:" >&5 3124 sed 's/^/| /' conftest.$ac_ext >&5 3125 3126 CXXFLAGS="" 3127 cat >conftest.$ac_ext <<_ACEOF 3128 /* confdefs.h. */ 3129 _ACEOF 3130 cat confdefs.h >>conftest.$ac_ext 3131 cat >>conftest.$ac_ext <<_ACEOF 3132 /* end confdefs.h. */ 3133 3134 int 3135 main () 3136 { 3137 3138 ; 3139 return 0; 3140 } 3141 _ACEOF 3142 rm -f conftest.$ac_objext 3143 if { (ac_try="$ac_compile" 3144 case "(($ac_try" in 3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3146 *) ac_try_echo=$ac_try;; 3147 esac 3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3149 (eval "$ac_compile") 2>conftest.er1 3150 ac_status=$? 3151 grep -v '^ *+' conftest.er1 >conftest.err 3152 rm -f conftest.er1 3153 cat conftest.err >&5 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); } && 3156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3157 { (case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160 esac 3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3162 (eval "$ac_try") 2>&5 3163 ac_status=$? 3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3165 (exit $ac_status); }; } && 3166 { ac_try='test -s conftest.$ac_objext' 3167 { (case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170 esac 3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3172 (eval "$ac_try") 2>&5 3173 ac_status=$? 3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3175 (exit $ac_status); }; }; then 3176 : 3177 else 3178 echo "$as_me: failed program was:" >&5 3179 sed 's/^/| /' conftest.$ac_ext >&5 3180 3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3182 CXXFLAGS="-g" 3183 cat >conftest.$ac_ext <<_ACEOF 3184 /* confdefs.h. */ 3185 _ACEOF 3186 cat confdefs.h >>conftest.$ac_ext 3187 cat >>conftest.$ac_ext <<_ACEOF 3188 /* end confdefs.h. */ 3189 3190 int 3191 main () 3192 { 3193 3194 ; 3195 return 0; 3196 } 3197 _ACEOF 3198 rm -f conftest.$ac_objext 3199 if { (ac_try="$ac_compile" 3200 case "(($ac_try" in 3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3202 *) ac_try_echo=$ac_try;; 3203 esac 3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3205 (eval "$ac_compile") 2>conftest.er1 3206 ac_status=$? 3207 grep -v '^ *+' conftest.er1 >conftest.err 3208 rm -f conftest.er1 3209 cat conftest.err >&5 3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3211 (exit $ac_status); } && 3212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3213 { (case "(($ac_try" in 3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3215 *) ac_try_echo=$ac_try;; 3216 esac 3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3218 (eval "$ac_try") 2>&5 3219 ac_status=$? 3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3221 (exit $ac_status); }; } && 3222 { ac_try='test -s conftest.$ac_objext' 3223 { (case "(($ac_try" in 3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3225 *) ac_try_echo=$ac_try;; 3226 esac 3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3228 (eval "$ac_try") 2>&5 3229 ac_status=$? 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); }; }; then 3232 ac_cv_prog_cxx_g=yes 3233 else 3234 echo "$as_me: failed program was:" >&5 3235 sed 's/^/| /' conftest.$ac_ext >&5 3236 3237 3238 fi 3239 3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3241 fi 3242 3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3244 fi 3245 3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3248 fi 3249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3250 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3251 if test "$ac_test_CXXFLAGS" = set; then 3252 CXXFLAGS=$ac_save_CXXFLAGS 3253 elif test $ac_cv_prog_cxx_g = yes; then 3254 if test "$GXX" = yes; then 3255 CXXFLAGS="-g -O2" 3256 else 3257 CXXFLAGS="-g" 3258 fi 3259 else 3260 if test "$GXX" = yes; then 3261 CXXFLAGS="-O2" 3262 else 3263 CXXFLAGS= 3264 fi 3265 fi 3266 ac_ext=c 3267 ac_cpp='$CPP $CPPFLAGS' 3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3271 3272 ac_ext=c 3273 ac_cpp='$CPP $CPPFLAGS' 3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3277 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3278 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3279 # On Suns, sometimes $CPP names a directory. 3280 if test -n "$CPP" && test -d "$CPP"; then 3281 CPP= 3282 fi 3283 if test -z "$CPP"; then 3284 if test "${ac_cv_prog_CPP+set}" = set; then 3285 echo $ECHO_N "(cached) $ECHO_C" >&6 3286 else 3287 # Double quotes because CPP needs to be expanded 3288 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3289 do 3290 ac_preproc_ok=false 3291 for ac_c_preproc_warn_flag in '' yes 3292 do 3293 # Use a header file that comes with gcc, so configuring glibc 3294 # with a fresh cross-compiler works. 3295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3296 # <limits.h> exists even on freestanding compilers. 3297 # On the NeXT, cc -E runs the code through the compiler's parser, 3298 # not just through cpp. "Syntax error" is here to catch this case. 3299 cat >conftest.$ac_ext <<_ACEOF 3300 /* confdefs.h. */ 3301 _ACEOF 3302 cat confdefs.h >>conftest.$ac_ext 3303 cat >>conftest.$ac_ext <<_ACEOF 3304 /* end confdefs.h. */ 3305 #ifdef __STDC__ 3306 # include <limits.h> 3307 #else 3308 # include <assert.h> 3309 #endif 3310 Syntax error 3311 _ACEOF 3312 if { (ac_try="$ac_cpp conftest.$ac_ext" 3313 case "(($ac_try" in 3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3315 *) ac_try_echo=$ac_try;; 3316 esac 3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3319 ac_status=$? 3320 grep -v '^ *+' conftest.er1 >conftest.err 3321 rm -f conftest.er1 3322 cat conftest.err >&5 3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3324 (exit $ac_status); } >/dev/null; then 3325 if test -s conftest.err; then 3326 ac_cpp_err=$ac_c_preproc_warn_flag 3327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3328 else 3329 ac_cpp_err= 3330 fi 3331 else 3332 ac_cpp_err=yes 3333 fi 3334 if test -z "$ac_cpp_err"; then 3335 : 3336 else 3337 echo "$as_me: failed program was:" >&5 3338 sed 's/^/| /' conftest.$ac_ext >&5 3339 3340 # Broken: fails on valid input. 3341 continue 3342 fi 3343 3344 rm -f conftest.err conftest.$ac_ext 3345 3346 # OK, works on sane cases. Now check whether nonexistent headers 3347 # can be detected and how. 3348 cat >conftest.$ac_ext <<_ACEOF 3349 /* confdefs.h. */ 3350 _ACEOF 3351 cat confdefs.h >>conftest.$ac_ext 3352 cat >>conftest.$ac_ext <<_ACEOF 3353 /* end confdefs.h. */ 3354 #include <ac_nonexistent.h> 3355 _ACEOF 3356 if { (ac_try="$ac_cpp conftest.$ac_ext" 3357 case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360 esac 3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3363 ac_status=$? 3364 grep -v '^ *+' conftest.er1 >conftest.err 3365 rm -f conftest.er1 3366 cat conftest.err >&5 3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3368 (exit $ac_status); } >/dev/null; then 3369 if test -s conftest.err; then 3370 ac_cpp_err=$ac_c_preproc_warn_flag 3371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3372 else 3373 ac_cpp_err= 3374 fi 3375 else 3376 ac_cpp_err=yes 3377 fi 3378 if test -z "$ac_cpp_err"; then 3379 # Broken: success on invalid input. 3380 continue 3381 else 3382 echo "$as_me: failed program was:" >&5 3383 sed 's/^/| /' conftest.$ac_ext >&5 3384 3385 # Passes both tests. 3386 ac_preproc_ok=: 3387 break 3388 fi 3389 3390 rm -f conftest.err conftest.$ac_ext 3391 3392 done 3393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3394 rm -f conftest.err conftest.$ac_ext 3395 if $ac_preproc_ok; then 3396 break 3397 fi 3398 3399 done 3400 ac_cv_prog_CPP=$CPP 3401 3402 fi 3403 CPP=$ac_cv_prog_CPP 3404 else 3405 ac_cv_prog_CPP=$CPP 3406 fi 3407 { echo "$as_me:$LINENO: result: $CPP" >&5 3408 echo "${ECHO_T}$CPP" >&6; } 3409 ac_preproc_ok=false 3410 for ac_c_preproc_warn_flag in '' yes 3411 do 3412 # Use a header file that comes with gcc, so configuring glibc 3413 # with a fresh cross-compiler works. 3414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3415 # <limits.h> exists even on freestanding compilers. 3416 # On the NeXT, cc -E runs the code through the compiler's parser, 3417 # not just through cpp. "Syntax error" is here to catch this case. 3418 cat >conftest.$ac_ext <<_ACEOF 3419 /* confdefs.h. */ 3420 _ACEOF 3421 cat confdefs.h >>conftest.$ac_ext 3422 cat >>conftest.$ac_ext <<_ACEOF 3423 /* end confdefs.h. */ 3424 #ifdef __STDC__ 3425 # include <limits.h> 3426 #else 3427 # include <assert.h> 3428 #endif 3429 Syntax error 3430 _ACEOF 3431 if { (ac_try="$ac_cpp conftest.$ac_ext" 3432 case "(($ac_try" in 3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3434 *) ac_try_echo=$ac_try;; 3435 esac 3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3438 ac_status=$? 3439 grep -v '^ *+' conftest.er1 >conftest.err 3440 rm -f conftest.er1 3441 cat conftest.err >&5 3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3443 (exit $ac_status); } >/dev/null; then 3444 if test -s conftest.err; then 3445 ac_cpp_err=$ac_c_preproc_warn_flag 3446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3447 else 3448 ac_cpp_err= 3449 fi 3450 else 3451 ac_cpp_err=yes 3452 fi 3453 if test -z "$ac_cpp_err"; then 3454 : 3455 else 3456 echo "$as_me: failed program was:" >&5 3457 sed 's/^/| /' conftest.$ac_ext >&5 3458 3459 # Broken: fails on valid input. 3460 continue 3461 fi 3462 3463 rm -f conftest.err conftest.$ac_ext 3464 3465 # OK, works on sane cases. Now check whether nonexistent headers 3466 # can be detected and how. 3467 cat >conftest.$ac_ext <<_ACEOF 3468 /* confdefs.h. */ 3469 _ACEOF 3470 cat confdefs.h >>conftest.$ac_ext 3471 cat >>conftest.$ac_ext <<_ACEOF 3472 /* end confdefs.h. */ 3473 #include <ac_nonexistent.h> 3474 _ACEOF 3475 if { (ac_try="$ac_cpp conftest.$ac_ext" 3476 case "(($ac_try" in 3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3478 *) ac_try_echo=$ac_try;; 3479 esac 3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3482 ac_status=$? 3483 grep -v '^ *+' conftest.er1 >conftest.err 3484 rm -f conftest.er1 3485 cat conftest.err >&5 3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); } >/dev/null; then 3488 if test -s conftest.err; then 3489 ac_cpp_err=$ac_c_preproc_warn_flag 3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3491 else 3492 ac_cpp_err= 3493 fi 3494 else 3495 ac_cpp_err=yes 3496 fi 3497 if test -z "$ac_cpp_err"; then 3498 # Broken: success on invalid input. 3499 continue 3500 else 3501 echo "$as_me: failed program was:" >&5 3502 sed 's/^/| /' conftest.$ac_ext >&5 3503 3504 # Passes both tests. 3505 ac_preproc_ok=: 3506 break 3507 fi 3508 3509 rm -f conftest.err conftest.$ac_ext 3510 3511 done 3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3513 rm -f conftest.err conftest.$ac_ext 3514 if $ac_preproc_ok; then 3515 : 3516 else 3517 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3518 See \`config.log' for more details." >&5 3519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3520 See \`config.log' for more details." >&2;} 3521 { (exit 1); exit 1; }; } 3522 fi 3523 3524 ac_ext=c 3525 ac_cpp='$CPP $CPPFLAGS' 3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3529 3530 3531 if test "$CXX" = "clang++" ; then 3532 { echo "$as_me:$LINENO: checking whether clang works" >&5 3533 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3534 ac_ext=cpp 3535 ac_cpp='$CXXCPP $CPPFLAGS' 3536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3539 3540 3541 cat >conftest.$ac_ext <<_ACEOF 3542 /* confdefs.h. */ 3543 _ACEOF 3544 cat confdefs.h >>conftest.$ac_ext 3545 cat >>conftest.$ac_ext <<_ACEOF 3546 /* end confdefs.h. */ 3547 #include <limits> 3548 #if __has_include (<cxxabi.h>) 3549 #include <cxxabi.h> 3550 #endif 3551 #if __has_include (<unwind.h>) 3552 #include <unwind.h> 3553 #endif 3554 3555 int 3556 main () 3557 { 3558 3559 ; 3560 return 0; 3561 } 3562 _ACEOF 3563 rm -f conftest.$ac_objext 3564 if { (ac_try="$ac_compile" 3565 case "(($ac_try" in 3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3567 *) ac_try_echo=$ac_try;; 3568 esac 3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3570 (eval "$ac_compile") 2>conftest.er1 3571 ac_status=$? 3572 grep -v '^ *+' conftest.er1 >conftest.err 3573 rm -f conftest.er1 3574 cat conftest.err >&5 3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3576 (exit $ac_status); } && 3577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3578 { (case "(($ac_try" in 3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3580 *) ac_try_echo=$ac_try;; 3581 esac 3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3583 (eval "$ac_try") 2>&5 3584 ac_status=$? 3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3586 (exit $ac_status); }; } && 3587 { ac_try='test -s conftest.$ac_objext' 3588 { (case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591 esac 3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3593 (eval "$ac_try") 2>&5 3594 ac_status=$? 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); }; }; then 3597 3598 { echo "$as_me:$LINENO: result: yes" >&5 3599 echo "${ECHO_T}yes" >&6; } 3600 3601 else 3602 echo "$as_me: failed program was:" >&5 3603 sed 's/^/| /' conftest.$ac_ext >&5 3604 3605 3606 { echo "$as_me:$LINENO: result: no" >&5 3607 echo "${ECHO_T}no" >&6; } 3608 { { 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 3609 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;} 3610 { (exit 1); exit 1; }; } 3611 3612 fi 3613 3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3615 ac_ext=c 3616 ac_cpp='$CPP $CPPFLAGS' 3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3620 3621 fi 3622 3623 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5 3624 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; } 3625 ac_ext=cpp 3626 ac_cpp='$CXXCPP $CPPFLAGS' 3627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3630 3631 llvm_cv_cxx_compiler=unknown 3632 cat >conftest.$ac_ext <<_ACEOF 3633 /* confdefs.h. */ 3634 _ACEOF 3635 cat confdefs.h >>conftest.$ac_ext 3636 cat >>conftest.$ac_ext <<_ACEOF 3637 /* end confdefs.h. */ 3638 #if ! __clang__ 3639 #error 3640 #endif 3641 3642 _ACEOF 3643 rm -f conftest.$ac_objext 3644 if { (ac_try="$ac_compile" 3645 case "(($ac_try" in 3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647 *) ac_try_echo=$ac_try;; 3648 esac 3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3650 (eval "$ac_compile") 2>conftest.er1 3651 ac_status=$? 3652 grep -v '^ *+' conftest.er1 >conftest.err 3653 rm -f conftest.er1 3654 cat conftest.err >&5 3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656 (exit $ac_status); } && 3657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3658 { (case "(($ac_try" in 3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3660 *) ac_try_echo=$ac_try;; 3661 esac 3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3663 (eval "$ac_try") 2>&5 3664 ac_status=$? 3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3666 (exit $ac_status); }; } && 3667 { ac_try='test -s conftest.$ac_objext' 3668 { (case "(($ac_try" in 3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3670 *) ac_try_echo=$ac_try;; 3671 esac 3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3673 (eval "$ac_try") 2>&5 3674 ac_status=$? 3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3676 (exit $ac_status); }; }; then 3677 llvm_cv_cxx_compiler=clang 3678 else 3679 echo "$as_me: failed program was:" >&5 3680 sed 's/^/| /' conftest.$ac_ext >&5 3681 3682 cat >conftest.$ac_ext <<_ACEOF 3683 /* confdefs.h. */ 3684 _ACEOF 3685 cat confdefs.h >>conftest.$ac_ext 3686 cat >>conftest.$ac_ext <<_ACEOF 3687 /* end confdefs.h. */ 3688 #if ! __GNUC__ 3689 #error 3690 #endif 3691 3692 _ACEOF 3693 rm -f conftest.$ac_objext 3694 if { (ac_try="$ac_compile" 3695 case "(($ac_try" in 3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3697 *) ac_try_echo=$ac_try;; 3698 esac 3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3700 (eval "$ac_compile") 2>conftest.er1 3701 ac_status=$? 3702 grep -v '^ *+' conftest.er1 >conftest.err 3703 rm -f conftest.er1 3704 cat conftest.err >&5 3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3706 (exit $ac_status); } && 3707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3708 { (case "(($ac_try" in 3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3710 *) ac_try_echo=$ac_try;; 3711 esac 3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3713 (eval "$ac_try") 2>&5 3714 ac_status=$? 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3716 (exit $ac_status); }; } && 3717 { ac_try='test -s conftest.$ac_objext' 3718 { (case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721 esac 3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3723 (eval "$ac_try") 2>&5 3724 ac_status=$? 3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3726 (exit $ac_status); }; }; then 3727 llvm_cv_cxx_compiler=gcc 3728 else 3729 echo "$as_me: failed program was:" >&5 3730 sed 's/^/| /' conftest.$ac_ext >&5 3731 3732 3733 fi 3734 3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3736 fi 3737 3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3739 ac_ext=c 3740 ac_cpp='$CPP $CPPFLAGS' 3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3744 3745 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5 3746 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; } 3747 3748 3749 3750 if test -d ${srcdir}/projects/test-suite ; then 3751 subdirs="$subdirs projects/test-suite" 3752 3753 fi 3754 3755 if test -d ${srcdir}/projects/llvm-test ; then 3756 subdirs="$subdirs projects/llvm-test" 3757 3758 fi 3759 3760 if test -d ${srcdir}/projects/poolalloc ; then 3761 subdirs="$subdirs projects/poolalloc" 3762 3763 fi 3764 3765 if test -d ${srcdir}/projects/llvm-poolalloc ; then 3766 subdirs="$subdirs projects/llvm-poolalloc" 3767 3768 fi 3769 3770 for i in `ls ${srcdir}/projects` 3771 do 3772 if test -d ${srcdir}/projects/${i} ; then 3773 case ${i} in 3774 safecode) subdirs="$subdirs projects/safecode" 3775 ;; 3776 compiler-rt) ;; 3777 test-suite) ;; 3778 llvm-test) ;; 3779 poolalloc) ;; 3780 llvm-poolalloc) ;; 3781 *) 3782 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3783 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3784 ;; 3785 esac 3786 fi 3787 done 3788 3789 # Check whether --enable-polly was given. 3790 if test "${enable_polly+set}" = set; then 3791 enableval=$enable_polly; 3792 else 3793 enableval=default 3794 fi 3795 3796 case "$enableval" in 3797 yes) ENABLE_POLLY=1 3798 ;; 3799 no) ENABLE_POLLY=0 3800 ;; 3801 default) ENABLE_POLLY=1 3802 ;; 3803 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3804 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3805 { (exit 1); exit 1; }; } ;; 3806 esac 3807 3808 3809 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3810 LLVM_HAS_POLLY=1 3811 3812 subdirs="$subdirs tools/polly" 3813 3814 fi 3815 3816 3817 # Make sure we can run config.sub. 3818 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3819 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3820 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3821 { (exit 1); exit 1; }; } 3822 3823 { echo "$as_me:$LINENO: checking build system type" >&5 3824 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3825 if test "${ac_cv_build+set}" = set; then 3826 echo $ECHO_N "(cached) $ECHO_C" >&6 3827 else 3828 ac_build_alias=$build_alias 3829 test "x$ac_build_alias" = x && 3830 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3831 test "x$ac_build_alias" = x && 3832 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3833 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3834 { (exit 1); exit 1; }; } 3835 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3836 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3837 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3838 { (exit 1); exit 1; }; } 3839 3840 fi 3841 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3842 echo "${ECHO_T}$ac_cv_build" >&6; } 3843 case $ac_cv_build in 3844 *-*-*) ;; 3845 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3846 echo "$as_me: error: invalid value of canonical build" >&2;} 3847 { (exit 1); exit 1; }; };; 3848 esac 3849 build=$ac_cv_build 3850 ac_save_IFS=$IFS; IFS='-' 3851 set x $ac_cv_build 3852 shift 3853 build_cpu=$1 3854 build_vendor=$2 3855 shift; shift 3856 # Remember, the first character of IFS is used to create $*, 3857 # except with old shells: 3858 build_os=$* 3859 IFS=$ac_save_IFS 3860 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3861 3862 3863 { echo "$as_me:$LINENO: checking host system type" >&5 3864 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3865 if test "${ac_cv_host+set}" = set; then 3866 echo $ECHO_N "(cached) $ECHO_C" >&6 3867 else 3868 if test "x$host_alias" = x; then 3869 ac_cv_host=$ac_cv_build 3870 else 3871 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3872 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3873 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3874 { (exit 1); exit 1; }; } 3875 fi 3876 3877 fi 3878 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3879 echo "${ECHO_T}$ac_cv_host" >&6; } 3880 case $ac_cv_host in 3881 *-*-*) ;; 3882 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3883 echo "$as_me: error: invalid value of canonical host" >&2;} 3884 { (exit 1); exit 1; }; };; 3885 esac 3886 host=$ac_cv_host 3887 ac_save_IFS=$IFS; IFS='-' 3888 set x $ac_cv_host 3889 shift 3890 host_cpu=$1 3891 host_vendor=$2 3892 shift; shift 3893 # Remember, the first character of IFS is used to create $*, 3894 # except with old shells: 3895 host_os=$* 3896 IFS=$ac_save_IFS 3897 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3898 3899 3900 { echo "$as_me:$LINENO: checking target system type" >&5 3901 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3902 if test "${ac_cv_target+set}" = set; then 3903 echo $ECHO_N "(cached) $ECHO_C" >&6 3904 else 3905 if test "x$target_alias" = x; then 3906 ac_cv_target=$ac_cv_host 3907 else 3908 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3909 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3910 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3911 { (exit 1); exit 1; }; } 3912 fi 3913 3914 fi 3915 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3916 echo "${ECHO_T}$ac_cv_target" >&6; } 3917 case $ac_cv_target in 3918 *-*-*) ;; 3919 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3920 echo "$as_me: error: invalid value of canonical target" >&2;} 3921 { (exit 1); exit 1; }; };; 3922 esac 3923 target=$ac_cv_target 3924 ac_save_IFS=$IFS; IFS='-' 3925 set x $ac_cv_target 3926 shift 3927 target_cpu=$1 3928 target_vendor=$2 3929 shift; shift 3930 # Remember, the first character of IFS is used to create $*, 3931 # except with old shells: 3932 target_os=$* 3933 IFS=$ac_save_IFS 3934 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3935 3936 3937 # The aliases save the names the user supplied, while $host etc. 3938 # will get canonicalized. 3939 test -n "$target_alias" && 3940 test "$program_prefix$program_suffix$program_transform_name" = \ 3941 NONENONEs,x,x, && 3942 program_prefix=${target_alias}- 3943 3944 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3945 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3946 if test "${llvm_cv_os_type+set}" = set; then 3947 echo $ECHO_N "(cached) $ECHO_C" >&6 3948 else 3949 case $host in 3950 *-*-aix*) 3951 llvm_cv_link_all_option="-Wl,--whole-archive" 3952 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3953 llvm_cv_os_type="AIX" 3954 llvm_cv_platform_type="Unix" ;; 3955 *-*-irix*) 3956 llvm_cv_link_all_option="-Wl,--whole-archive" 3957 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3958 llvm_cv_os_type="IRIX" 3959 llvm_cv_platform_type="Unix" ;; 3960 *-*-cygwin*) 3961 llvm_cv_link_all_option="-Wl,--whole-archive" 3962 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3963 llvm_cv_os_type="Cygwin" 3964 llvm_cv_platform_type="Unix" ;; 3965 *-*-darwin*) 3966 llvm_cv_link_all_option="-Wl,-all_load" 3967 llvm_cv_no_link_all_option="-Wl,-noall_load" 3968 llvm_cv_os_type="Darwin" 3969 llvm_cv_platform_type="Unix" ;; 3970 *-*-minix*) 3971 llvm_cv_link_all_option="-Wl,-all_load" 3972 llvm_cv_no_link_all_option="-Wl,-noall_load" 3973 llvm_cv_os_type="Minix" 3974 llvm_cv_platform_type="Unix" ;; 3975 *-*-freebsd*) 3976 llvm_cv_link_all_option="-Wl,--whole-archive" 3977 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3978 llvm_cv_os_type="FreeBSD" 3979 llvm_cv_platform_type="Unix" ;; 3980 *-*-kfreebsd-gnu) 3981 llvm_cv_link_all_option="-Wl,--whole-archive" 3982 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3983 llvm_cv_os_type="GNU/kFreeBSD" 3984 llvm_cv_platform_type="Unix" ;; 3985 *-*-openbsd*) 3986 llvm_cv_link_all_option="-Wl,--whole-archive" 3987 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3988 llvm_cv_os_type="OpenBSD" 3989 llvm_cv_platform_type="Unix" ;; 3990 *-*-netbsd*) 3991 llvm_cv_link_all_option="-Wl,--whole-archive" 3992 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3993 llvm_cv_os_type="NetBSD" 3994 llvm_cv_platform_type="Unix" ;; 3995 *-*-dragonfly*) 3996 llvm_cv_link_all_option="-Wl,--whole-archive" 3997 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3998 llvm_cv_os_type="DragonFly" 3999 llvm_cv_platform_type="Unix" ;; 4000 *-*-bitrig*) 4001 llvm_cv_link_all_option="-Wl,--whole-archive" 4002 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4003 llvm_cv_os_type="Bitrig" 4004 llvm_cv_platform_type="Unix" ;; 4005 *-*-hpux*) 4006 llvm_cv_link_all_option="-Wl,--whole-archive" 4007 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4008 llvm_cv_os_type="HP-UX" 4009 llvm_cv_platform_type="Unix" ;; 4010 *-*-interix*) 4011 llvm_cv_link_all_option="-Wl,--whole-archive" 4012 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4013 llvm_cv_os_type="Interix" 4014 llvm_cv_platform_type="Unix" ;; 4015 *-*-linux*) 4016 llvm_cv_link_all_option="-Wl,--whole-archive" 4017 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4018 llvm_cv_os_type="Linux" 4019 llvm_cv_platform_type="Unix" ;; 4020 *-*-gnu*) 4021 llvm_cv_link_all_option="-Wl,--whole-archive" 4022 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4023 llvm_cv_os_type="GNU" 4024 llvm_cv_platform_type="Unix" ;; 4025 *-*-solaris*) 4026 llvm_cv_link_all_option="-Wl,-z,allextract" 4027 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 4028 llvm_cv_os_type="SunOS" 4029 llvm_cv_platform_type="Unix" ;; 4030 *-*-win32*) 4031 llvm_cv_link_all_option="-Wl,--whole-archive" 4032 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4033 llvm_cv_os_type="Win32" 4034 llvm_cv_platform_type="Win32" ;; 4035 *-*-mingw*) 4036 llvm_cv_link_all_option="-Wl,--whole-archive" 4037 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4038 llvm_cv_os_type="MingW" 4039 llvm_cv_platform_type="Win32" ;; 4040 *-*-haiku*) 4041 llvm_cv_link_all_option="-Wl,--whole-archive" 4042 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4043 llvm_cv_os_type="Haiku" 4044 llvm_cv_platform_type="Unix" ;; 4045 *-unknown-eabi*) 4046 llvm_cv_link_all_option="-Wl,--whole-archive" 4047 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4048 llvm_cv_os_type="Freestanding" 4049 llvm_cv_platform_type="Unix" ;; 4050 *-unknown-elf*) 4051 llvm_cv_link_all_option="-Wl,--whole-archive" 4052 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4053 llvm_cv_os_type="Freestanding" 4054 llvm_cv_platform_type="Unix" ;; 4055 *) 4056 llvm_cv_link_all_option="" 4057 llvm_cv_no_link_all_option="" 4058 llvm_cv_os_type="Unknown" 4059 llvm_cv_platform_type="Unknown" ;; 4060 esac 4061 fi 4062 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 4063 echo "${ECHO_T}$llvm_cv_os_type" >&6; } 4064 4065 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 4066 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 4067 if test "${llvm_cv_target_os_type+set}" = set; then 4068 echo $ECHO_N "(cached) $ECHO_C" >&6 4069 else 4070 case $target in 4071 *-*-aix*) 4072 llvm_cv_target_os_type="AIX" ;; 4073 *-*-irix*) 4074 llvm_cv_target_os_type="IRIX" ;; 4075 *-*-cygwin*) 4076 llvm_cv_target_os_type="Cygwin" ;; 4077 *-*-darwin*) 4078 llvm_cv_target_os_type="Darwin" ;; 4079 *-*-minix*) 4080 llvm_cv_target_os_type="Minix" ;; 4081 *-*-freebsd*) 4082 llvm_cv_target_os_type="FreeBSD" ;; 4083 *-*-kfreebsd-gnu) 4084 llvm_cv_target_os_type="GNU/kFreeBSD" ;; 4085 *-*-openbsd*) 4086 llvm_cv_target_os_type="OpenBSD" ;; 4087 *-*-netbsd*) 4088 llvm_cv_target_os_type="NetBSD" ;; 4089 *-*-dragonfly*) 4090 llvm_cv_target_os_type="DragonFly" ;; 4091 *-*-bitrig*) 4092 llvm_cv_target_os_type="Bitrig" ;; 4093 *-*-hpux*) 4094 llvm_cv_target_os_type="HP-UX" ;; 4095 *-*-interix*) 4096 llvm_cv_target_os_type="Interix" ;; 4097 *-*-linux*) 4098 llvm_cv_target_os_type="Linux" ;; 4099 *-*-gnu*) 4100 llvm_cv_target_os_type="GNU" ;; 4101 *-*-solaris*) 4102 llvm_cv_target_os_type="SunOS" ;; 4103 *-*-win32*) 4104 llvm_cv_target_os_type="Win32" ;; 4105 *-*-mingw*) 4106 llvm_cv_target_os_type="MingW" ;; 4107 *-*-haiku*) 4108 llvm_cv_target_os_type="Haiku" ;; 4109 *-*-rtems*) 4110 llvm_cv_target_os_type="RTEMS" ;; 4111 *-*-nacl*) 4112 llvm_cv_target_os_type="NativeClient" ;; 4113 *-unknown-eabi*) 4114 llvm_cv_target_os_type="Freestanding" ;; 4115 *-*-ps4) 4116 llvm_cv_target_os_type="PS4" ;; 4117 *) 4118 llvm_cv_target_os_type="Unknown" ;; 4119 esac 4120 fi 4121 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 4122 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 4123 4124 if test "$llvm_cv_os_type" = "Unknown" ; then 4125 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 4126 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 4127 { (exit 1); exit 1; }; } 4128 fi 4129 4130 OS=$llvm_cv_os_type 4131 4132 HOST_OS=$llvm_cv_os_type 4133 4134 TARGET_OS=$llvm_cv_target_os_type 4135 4136 4137 LINKALL=$llvm_cv_link_all_option 4138 4139 NOLINKALL=$llvm_cv_no_link_all_option 4140 4141 4142 case $llvm_cv_platform_type in 4143 Unix) 4144 4145 cat >>confdefs.h <<\_ACEOF 4146 #define LLVM_ON_UNIX 1 4147 _ACEOF 4148 4149 LLVM_ON_UNIX=1 4150 4151 LLVM_ON_WIN32=0 4152 4153 ;; 4154 Win32) 4155 4156 cat >>confdefs.h <<\_ACEOF 4157 #define LLVM_ON_WIN32 1 4158 _ACEOF 4159 4160 LLVM_ON_UNIX=0 4161 4162 LLVM_ON_WIN32=1 4163 4164 ;; 4165 esac 4166 4167 { echo "$as_me:$LINENO: checking target architecture" >&5 4168 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 4169 if test "${llvm_cv_target_arch+set}" = set; then 4170 echo $ECHO_N "(cached) $ECHO_C" >&6 4171 else 4172 case $target in 4173 i?86-*) llvm_cv_target_arch="x86" ;; 4174 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4175 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4176 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4177 arm64*-*) llvm_cv_target_arch="AArch64" ;; 4178 arm*-*) llvm_cv_target_arch="ARM" ;; 4179 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4180 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4181 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4182 xcore-*) llvm_cv_target_arch="XCore" ;; 4183 msp430-*) llvm_cv_target_arch="MSP430" ;; 4184 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4185 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4186 s390x-*) llvm_cv_target_arch="SystemZ" ;; 4187 *) llvm_cv_target_arch="Unknown" ;; 4188 esac 4189 fi 4190 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 4191 echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 4192 4193 if test "$llvm_cv_target_arch" = "Unknown" ; then 4194 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 4195 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4196 fi 4197 4198 case "$llvm_cv_target_arch" in 4199 x86) LLVM_NATIVE_ARCH="X86" ;; 4200 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4201 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4202 esac 4203 4204 ARCH=$llvm_cv_target_arch 4205 4206 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH 4207 4208 4209 case $host in 4210 i?86-*) host_arch="x86" ;; 4211 amd64-* | x86_64-*) host_arch="x86_64" ;; 4212 sparc*-*) host_arch="Sparc" ;; 4213 powerpc*-*) host_arch="PowerPC" ;; 4214 arm64*-*) host_arch="AArch64" ;; 4215 arm*-*) host_arch="ARM" ;; 4216 aarch64*-*) host_arch="AArch64" ;; 4217 mips-* | mips64-*) host_arch="Mips" ;; 4218 mipsel-* | mips64el-*) host_arch="Mips" ;; 4219 xcore-*) host_arch="XCore" ;; 4220 msp430-*) host_arch="MSP430" ;; 4221 hexagon-*) host_arch="Hexagon" ;; 4222 s390x-*) host_arch="SystemZ" ;; 4223 *) host_arch="Unknown" ;; 4224 esac 4225 4226 if test "$host_arch" = "Unknown" ; then 4227 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 4228 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4229 fi 4230 4231 HOST_ARCH=$host_arch 4232 4233 4234 if test "$cross_compiling" = yes; then 4235 LLVM_CROSS_COMPILING=1 4236 4237 4238 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4239 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4240 if test "${ac_cv_build_exeext+set}" = set; then 4241 echo $ECHO_N "(cached) $ECHO_C" >&6 4242 else 4243 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4244 ac_cv_build_exeext=.exe 4245 else 4246 ac_build_prefix=${build_alias}- 4247 4248 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4249 set dummy ${ac_build_prefix}gcc; ac_word=$2 4250 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4252 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4253 echo $ECHO_N "(cached) $ECHO_C" >&6 4254 else 4255 if test -n "$BUILD_CC"; then 4256 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4257 else 4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4259 for as_dir in $PATH 4260 do 4261 IFS=$as_save_IFS 4262 test -z "$as_dir" && as_dir=. 4263 for ac_exec_ext in '' $ac_executable_extensions; do 4264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4265 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4267 break 2 4268 fi 4269 done 4270 done 4271 IFS=$as_save_IFS 4272 4273 fi 4274 fi 4275 BUILD_CC=$ac_cv_prog_BUILD_CC 4276 if test -n "$BUILD_CC"; then 4277 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4278 echo "${ECHO_T}$BUILD_CC" >&6; } 4279 else 4280 { echo "$as_me:$LINENO: result: no" >&5 4281 echo "${ECHO_T}no" >&6; } 4282 fi 4283 4284 4285 if test -z "$BUILD_CC"; then 4286 # Extract the first word of "gcc", so it can be a program name with args. 4287 set dummy gcc; ac_word=$2 4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4290 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4291 echo $ECHO_N "(cached) $ECHO_C" >&6 4292 else 4293 if test -n "$BUILD_CC"; then 4294 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4295 else 4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4297 for as_dir in $PATH 4298 do 4299 IFS=$as_save_IFS 4300 test -z "$as_dir" && as_dir=. 4301 for ac_exec_ext in '' $ac_executable_extensions; do 4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4303 ac_cv_prog_BUILD_CC="gcc" 4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4305 break 2 4306 fi 4307 done 4308 done 4309 IFS=$as_save_IFS 4310 4311 fi 4312 fi 4313 BUILD_CC=$ac_cv_prog_BUILD_CC 4314 if test -n "$BUILD_CC"; then 4315 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4316 echo "${ECHO_T}$BUILD_CC" >&6; } 4317 else 4318 { echo "$as_me:$LINENO: result: no" >&5 4319 echo "${ECHO_T}no" >&6; } 4320 fi 4321 4322 4323 if test -z "$BUILD_CC"; then 4324 # Extract the first word of "cc", so it can be a program name with args. 4325 set dummy cc; ac_word=$2 4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4328 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4329 echo $ECHO_N "(cached) $ECHO_C" >&6 4330 else 4331 if test -n "$BUILD_CC"; then 4332 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4333 else 4334 ac_prog_rejected=no 4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4336 for as_dir in $PATH 4337 do 4338 IFS=$as_save_IFS 4339 test -z "$as_dir" && as_dir=. 4340 for ac_exec_ext in '' $ac_executable_extensions; do 4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4342 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4343 ac_prog_rejected=yes 4344 continue 4345 fi 4346 ac_cv_prog_BUILD_CC="cc" 4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4348 break 2 4349 fi 4350 done 4351 done 4352 IFS=$as_save_IFS 4353 4354 if test $ac_prog_rejected = yes; then 4355 # We found a bogon in the path, so make sure we never use it. 4356 set dummy $ac_cv_prog_BUILD_CC 4357 shift 4358 if test $# != 0; then 4359 # We chose a different compiler from the bogus one. 4360 # However, it has the same basename, so the bogon will be chosen 4361 # first if we set BUILD_CC to just the basename; use the full file name. 4362 shift 4363 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4364 fi 4365 fi 4366 fi 4367 fi 4368 BUILD_CC=$ac_cv_prog_BUILD_CC 4369 if test -n "$BUILD_CC"; then 4370 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4371 echo "${ECHO_T}$BUILD_CC" >&6; } 4372 else 4373 { echo "$as_me:$LINENO: result: no" >&5 4374 echo "${ECHO_T}no" >&6; } 4375 fi 4376 4377 4378 fi 4379 fi 4380 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4381 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4382 { (exit 1); exit 1; }; } 4383 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4384 rm -f conftest* 4385 echo 'int main () { return 0; }' > conftest.$ac_ext 4386 ac_cv_build_exeext= 4387 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4388 (eval $ac_build_link) 2>&5 4389 ac_status=$? 4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4391 (exit $ac_status); }; then 4392 for file in conftest.*; do 4393 case $file in 4394 *.c | *.o | *.obj | *.dSYM) ;; 4395 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4396 esac 4397 done 4398 else 4399 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4400 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4401 { (exit 1); exit 1; }; } 4402 fi 4403 rm -f conftest* 4404 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4405 fi 4406 fi 4407 4408 BUILD_EXEEXT="" 4409 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4410 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4411 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4412 ac_build_exeext=$BUILD_EXEEXT 4413 4414 ac_build_prefix=${build_alias}- 4415 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4416 set dummy ${ac_build_prefix}g++; ac_word=$2 4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4419 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4420 echo $ECHO_N "(cached) $ECHO_C" >&6 4421 else 4422 if test -n "$BUILD_CXX"; then 4423 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4424 else 4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426 for as_dir in $PATH 4427 do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_exec_ext in '' $ac_executable_extensions; do 4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4432 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4434 break 2 4435 fi 4436 done 4437 done 4438 IFS=$as_save_IFS 4439 4440 fi 4441 fi 4442 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4443 if test -n "$BUILD_CXX"; then 4444 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4445 echo "${ECHO_T}$BUILD_CXX" >&6; } 4446 else 4447 { echo "$as_me:$LINENO: result: no" >&5 4448 echo "${ECHO_T}no" >&6; } 4449 fi 4450 4451 4452 if test -z "$BUILD_CXX"; then 4453 # Extract the first word of "g++", so it can be a program name with args. 4454 set dummy g++; ac_word=$2 4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4457 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4458 echo $ECHO_N "(cached) $ECHO_C" >&6 4459 else 4460 if test -n "$BUILD_CXX"; then 4461 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4462 else 4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4464 for as_dir in $PATH 4465 do 4466 IFS=$as_save_IFS 4467 test -z "$as_dir" && as_dir=. 4468 for ac_exec_ext in '' $ac_executable_extensions; do 4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4470 ac_cv_prog_BUILD_CXX="g++" 4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4472 break 2 4473 fi 4474 done 4475 done 4476 IFS=$as_save_IFS 4477 4478 fi 4479 fi 4480 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4481 if test -n "$BUILD_CXX"; then 4482 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4483 echo "${ECHO_T}$BUILD_CXX" >&6; } 4484 else 4485 { echo "$as_me:$LINENO: result: no" >&5 4486 echo "${ECHO_T}no" >&6; } 4487 fi 4488 4489 4490 if test -z "$BUILD_CXX"; then 4491 # Extract the first word of "c++", so it can be a program name with args. 4492 set dummy c++; ac_word=$2 4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4495 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 4497 else 4498 if test -n "$BUILD_CXX"; then 4499 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4500 else 4501 ac_prog_rejected=no 4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4503 for as_dir in $PATH 4504 do 4505 IFS=$as_save_IFS 4506 test -z "$as_dir" && as_dir=. 4507 for ac_exec_ext in '' $ac_executable_extensions; do 4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4510 ac_prog_rejected=yes 4511 continue 4512 fi 4513 ac_cv_prog_BUILD_CXX="c++" 4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4515 break 2 4516 fi 4517 done 4518 done 4519 IFS=$as_save_IFS 4520 4521 if test $ac_prog_rejected = yes; then 4522 # We found a bogon in the path, so make sure we never use it. 4523 set dummy $ac_cv_prog_BUILD_CXX 4524 shift 4525 if test $# != 0; then 4526 # We chose a different compiler from the bogus one. 4527 # However, it has the same basename, so the bogon will be chosen 4528 # first if we set BUILD_CXX to just the basename; use the full file name. 4529 shift 4530 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4531 fi 4532 fi 4533 fi 4534 fi 4535 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4536 if test -n "$BUILD_CXX"; then 4537 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4538 echo "${ECHO_T}$BUILD_CXX" >&6; } 4539 else 4540 { echo "$as_me:$LINENO: result: no" >&5 4541 echo "${ECHO_T}no" >&6; } 4542 fi 4543 4544 4545 fi 4546 fi 4547 else 4548 LLVM_CROSS_COMPILING=0 4549 4550 fi 4551 4552 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4553 cvsbuild="yes" 4554 optimize="no" 4555 CVSBUILD=CVSBUILD=1 4556 4557 else 4558 cvsbuild="no" 4559 optimize="yes" 4560 fi 4561 4562 4563 # Check whether --enable-libcpp was given. 4564 if test "${enable_libcpp+set}" = set; then 4565 enableval=$enable_libcpp; 4566 else 4567 enableval=default 4568 fi 4569 4570 case "$enableval" in 4571 yes) ENABLE_LIBCPP=1 4572 ;; 4573 no) ENABLE_LIBCPP=0 4574 ;; 4575 default) ENABLE_LIBCPP=0 4576 ;; 4577 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 4578 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 4579 { (exit 1); exit 1; }; } ;; 4580 esac 4581 4582 # Check whether --enable-compiler-version-checks was given. 4583 if test "${enable_compiler_version_checks+set}" = set; then 4584 enableval=$enable_compiler_version_checks; 4585 else 4586 enableval=default 4587 fi 4588 4589 case "$enableval" in 4590 no) 4591 ;; 4592 yes|default) 4593 ac_ext=cpp 4594 ac_cpp='$CXXCPP $CPPFLAGS' 4595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4598 4599 case "$llvm_cv_cxx_compiler" in 4600 clang) 4601 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5 4602 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; } 4603 cat >conftest.$ac_ext <<_ACEOF 4604 /* confdefs.h. */ 4605 _ACEOF 4606 cat confdefs.h >>conftest.$ac_ext 4607 cat >>conftest.$ac_ext <<_ACEOF 4608 /* end confdefs.h. */ 4609 4610 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1) 4611 #error This version of Clang is too old to build LLVM 4612 #endif 4613 4614 _ACEOF 4615 rm -f conftest.$ac_objext 4616 if { (ac_try="$ac_compile" 4617 case "(($ac_try" in 4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4619 *) ac_try_echo=$ac_try;; 4620 esac 4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4622 (eval "$ac_compile") 2>conftest.er1 4623 ac_status=$? 4624 grep -v '^ *+' conftest.er1 >conftest.err 4625 rm -f conftest.er1 4626 cat conftest.err >&5 4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4628 (exit $ac_status); } && 4629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4630 { (case "(($ac_try" in 4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4632 *) ac_try_echo=$ac_try;; 4633 esac 4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4635 (eval "$ac_try") 2>&5 4636 ac_status=$? 4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4638 (exit $ac_status); }; } && 4639 { ac_try='test -s conftest.$ac_objext' 4640 { (case "(($ac_try" in 4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4642 *) ac_try_echo=$ac_try;; 4643 esac 4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4645 (eval "$ac_try") 2>&5 4646 ac_status=$? 4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4648 (exit $ac_status); }; }; then 4649 { echo "$as_me:$LINENO: result: yes" >&5 4650 echo "${ECHO_T}yes" >&6; } 4651 else 4652 echo "$as_me: failed program was:" >&5 4653 sed 's/^/| /' conftest.$ac_ext >&5 4654 4655 { echo "$as_me:$LINENO: result: no" >&5 4656 echo "${ECHO_T}no" >&6; } 4657 { { echo "$as_me:$LINENO: error: 4658 The selected Clang compiler is not new enough to build LLVM. Please upgrade to 4659 Clang 3.1. You may pass --disable-compiler-version-checks to configure to 4660 bypass these sanity checks." >&5 4661 echo "$as_me: error: 4662 The selected Clang compiler is not new enough to build LLVM. Please upgrade to 4663 Clang 3.1. You may pass --disable-compiler-version-checks to configure to 4664 bypass these sanity checks." >&2;} 4665 { (exit 1); exit 1; }; } 4666 fi 4667 4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4669 4670 if test "$ENABLE_LIBCPP" -eq 0 ; then 4671 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5 4672 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; } 4673 llvm_cv_old_cxxflags="$CXXFLAGS" 4674 CXXFLAGS="$CXXFLAGS -std=c++0x" 4675 cat >conftest.$ac_ext <<_ACEOF 4676 /* confdefs.h. */ 4677 _ACEOF 4678 cat confdefs.h >>conftest.$ac_ext 4679 cat >>conftest.$ac_ext <<_ACEOF 4680 /* end confdefs.h. */ 4681 4682 #include <atomic> 4683 std::atomic<float> x(0.0f); 4684 int main() { return (float)x; } 4685 4686 _ACEOF 4687 rm -f conftest.$ac_objext conftest$ac_exeext 4688 if { (ac_try="$ac_link" 4689 case "(($ac_try" in 4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4691 *) ac_try_echo=$ac_try;; 4692 esac 4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4694 (eval "$ac_link") 2>conftest.er1 4695 ac_status=$? 4696 grep -v '^ *+' conftest.er1 >conftest.err 4697 rm -f conftest.er1 4698 cat conftest.err >&5 4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4700 (exit $ac_status); } && 4701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 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); }; } && 4711 { ac_try='test -s conftest$ac_exeext' 4712 { (case "(($ac_try" in 4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4714 *) ac_try_echo=$ac_try;; 4715 esac 4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4717 (eval "$ac_try") 2>&5 4718 ac_status=$? 4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4720 (exit $ac_status); }; }; then 4721 { echo "$as_me:$LINENO: result: yes" >&5 4722 echo "${ECHO_T}yes" >&6; } 4723 else 4724 echo "$as_me: failed program was:" >&5 4725 sed 's/^/| /' conftest.$ac_ext >&5 4726 4727 { echo "$as_me:$LINENO: result: no" >&5 4728 echo "${ECHO_T}no" >&6; } 4729 { { echo "$as_me:$LINENO: error: 4730 We detected a missing feature in the standard C++ library that was known to be 4731 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous 4732 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older 4733 than 4.7. You will need to update your system and ensure Clang uses the newer 4734 standard library. 4735 4736 If this error is incorrect or you need to force things to work, you may pass 4737 '--disable-compiler-version-checks' to configure to bypass this test." >&5 4738 echo "$as_me: error: 4739 We detected a missing feature in the standard C++ library that was known to be 4740 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous 4741 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older 4742 than 4.7. You will need to update your system and ensure Clang uses the newer 4743 standard library. 4744 4745 If this error is incorrect or you need to force things to work, you may pass 4746 '--disable-compiler-version-checks' to configure to bypass this test." >&2;} 4747 { (exit 1); exit 1; }; } 4748 fi 4749 4750 rm -f core conftest.err conftest.$ac_objext \ 4751 conftest$ac_exeext conftest.$ac_ext 4752 CXXFLAGS="$llvm_cv_old_cxxflags" 4753 fi 4754 ;; 4755 gcc) 4756 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5 4757 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; } 4758 cat >conftest.$ac_ext <<_ACEOF 4759 /* confdefs.h. */ 4760 _ACEOF 4761 cat confdefs.h >>conftest.$ac_ext 4762 cat >>conftest.$ac_ext <<_ACEOF 4763 /* end confdefs.h. */ 4764 4765 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) 4766 #error This version of GCC is too old to build LLVM 4767 #endif 4768 4769 _ACEOF 4770 rm -f conftest.$ac_objext 4771 if { (ac_try="$ac_compile" 4772 case "(($ac_try" in 4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4774 *) ac_try_echo=$ac_try;; 4775 esac 4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4777 (eval "$ac_compile") 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } && 4784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4785 { (case "(($ac_try" in 4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4787 *) ac_try_echo=$ac_try;; 4788 esac 4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4790 (eval "$ac_try") 2>&5 4791 ac_status=$? 4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4793 (exit $ac_status); }; } && 4794 { ac_try='test -s conftest.$ac_objext' 4795 { (case "(($ac_try" in 4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4797 *) ac_try_echo=$ac_try;; 4798 esac 4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4800 (eval "$ac_try") 2>&5 4801 ac_status=$? 4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4803 (exit $ac_status); }; }; then 4804 { echo "$as_me:$LINENO: result: yes" >&5 4805 echo "${ECHO_T}yes" >&6; } 4806 else 4807 echo "$as_me: failed program was:" >&5 4808 sed 's/^/| /' conftest.$ac_ext >&5 4809 4810 { echo "$as_me:$LINENO: result: no" >&5 4811 echo "${ECHO_T}no" >&6; } 4812 { { echo "$as_me:$LINENO: error: 4813 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade 4814 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to 4815 bypass these sanity checks." >&5 4816 echo "$as_me: error: 4817 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade 4818 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to 4819 bypass these sanity checks." >&2;} 4820 { (exit 1); exit 1; }; } 4821 fi 4822 4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4824 ;; 4825 unknown) 4826 ;; 4827 esac 4828 ac_ext=c 4829 ac_cpp='$CPP $CPPFLAGS' 4830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4832 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4833 4834 ;; 4835 *) 4836 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5 4837 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;} 4838 { (exit 1); exit 1; }; } 4839 ;; 4840 esac 4841 4842 # Check whether --enable-cxx1y was given. 4843 if test "${enable_cxx1y+set}" = set; then 4844 enableval=$enable_cxx1y; 4845 else 4846 enableval=default 4847 fi 4848 4849 case "$enableval" in 4850 yes) ENABLE_CXX1Y=1 4851 ;; 4852 no) ENABLE_CXX1Y=0 4853 ;; 4854 default) ENABLE_CXX1Y=0 4855 ;; 4856 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5 4857 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;} 4858 { (exit 1); exit 1; }; } ;; 4859 esac 4860 4861 # Check whether --enable-split-dwarf was given. 4862 if test "${enable_split_dwarf+set}" = set; then 4863 enableval=$enable_split_dwarf; 4864 else 4865 enableval=default 4866 fi 4867 4868 case "$enableval" in 4869 yes) ENABLE_SPLIT_DWARF=1 4870 ;; 4871 no) ENABLE_SPLIT_DWARF=0 4872 ;; 4873 default) ENABLE_SPLIT_DWARF=0 4874 ;; 4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5 4876 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;} 4877 { (exit 1); exit 1; }; } ;; 4878 esac 4879 4880 clang_arcmt="yes" 4881 # Check whether --enable-clang-arcmt was given. 4882 if test "${enable_clang_arcmt+set}" = set; then 4883 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 4884 else 4885 enableval="yes" 4886 fi 4887 4888 case "$enableval" in 4889 yes) ENABLE_CLANG_ARCMT=1 4890 ;; 4891 no) ENABLE_CLANG_ARCMT=0 4892 ;; 4893 default) ENABLE_CLANG_ARCMT=1 4894 ;; 4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 4896 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} 4897 { (exit 1); exit 1; }; } ;; 4898 esac 4899 4900 clang_plugin_support="yes" 4901 # Check whether --enable-clang-plugin-support was given. 4902 if test "${enable_clang_plugin_support+set}" = set; then 4903 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval" 4904 else 4905 enableval="yes" 4906 fi 4907 4908 case "$enableval" in 4909 yes) CLANG_PLUGIN_SUPPORT=1 4910 ;; 4911 no) CLANG_PLUGIN_SUPPORT=0 4912 ;; 4913 default) CLANG_PLUGIN_SUPPORT=1 4914 ;; 4915 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5 4916 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;} 4917 { (exit 1); exit 1; }; } ;; 4918 esac 4919 4920 clang_static_analyzer="yes" 4921 # Check whether --enable-clang-static-analyzer was given. 4922 if test "${enable_clang_static_analyzer+set}" = set; then 4923 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 4924 else 4925 enableval="yes" 4926 fi 4927 4928 case "$enableval" in 4929 yes) ENABLE_CLANG_STATIC_ANALYZER=1 4930 ;; 4931 no) 4932 if test ${clang_arcmt} != "no" ; then 4933 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5 4934 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;} 4935 { (exit 1); exit 1; }; } 4936 fi 4937 ENABLE_CLANG_STATIC_ANALYZER=0 4938 4939 ;; 4940 default) ENABLE_CLANG_STATIC_ANALYZER=1 4941 ;; 4942 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 4943 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} 4944 { (exit 1); exit 1; }; } ;; 4945 esac 4946 4947 # Check whether --enable-optimized was given. 4948 if test "${enable_optimized+set}" = set; then 4949 enableval=$enable_optimized; 4950 else 4951 enableval=$optimize 4952 fi 4953 4954 if test ${enableval} = "no" ; then 4955 ENABLE_OPTIMIZED= 4956 4957 else 4958 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4959 4960 fi 4961 4962 # Check whether --enable-profiling was given. 4963 if test "${enable_profiling+set}" = set; then 4964 enableval=$enable_profiling; 4965 else 4966 enableval="no" 4967 fi 4968 4969 if test ${enableval} = "no" ; then 4970 ENABLE_PROFILING= 4971 4972 else 4973 ENABLE_PROFILING=ENABLE_PROFILING=1 4974 4975 fi 4976 4977 # Check whether --enable-assertions was given. 4978 if test "${enable_assertions+set}" = set; then 4979 enableval=$enable_assertions; 4980 else 4981 enableval="yes" 4982 fi 4983 4984 if test ${enableval} = "yes" ; then 4985 DISABLE_ASSERTIONS= 4986 4987 assertions_enabled="yes" 4988 else 4989 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4990 4991 assertions_enabled="no" 4992 fi 4993 4994 # Check whether --enable-werror was given. 4995 if test "${enable_werror+set}" = set; then 4996 enableval=$enable_werror; 4997 else 4998 enableval="no" 4999 fi 5000 5001 case "$enableval" in 5002 yes) ENABLE_WERROR=1 5003 ;; 5004 no) ENABLE_WERROR=0 5005 ;; 5006 default) ENABLE_WERROR=0 5007 ;; 5008 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5009 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5010 { (exit 1); exit 1; }; } ;; 5011 esac 5012 5013 # Check whether --enable-expensive-checks was given. 5014 if test "${enable_expensive_checks+set}" = set; then 5015 enableval=$enable_expensive_checks; 5016 else 5017 enableval="no" 5018 fi 5019 5020 if test ${enableval} = "yes" ; then 5021 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5022 5023 EXPENSIVE_CHECKS=yes 5024 5025 else 5026 ENABLE_EXPENSIVE_CHECKS= 5027 5028 EXPENSIVE_CHECKS=no 5029 5030 fi 5031 5032 # Check whether --enable-abi-breaking-checks was given. 5033 if test "${enable_abi_breaking_checks+set}" = set; then 5034 enableval=$enable_abi_breaking_checks; 5035 else 5036 enableval="with-asserts" 5037 fi 5038 5039 case "$enableval" in 5040 with-asserts) if test ${assertions_enabled} = "yes" ; then 5041 5042 cat >>confdefs.h <<\_ACEOF 5043 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 5044 _ACEOF 5045 5046 ENABLE_ABI_BREAKING_CHECKS=1 5047 5048 else 5049 ENABLE_ABI_BREAKING_CHECKS=0 5050 5051 fi ;; 5052 yes) 5053 5054 cat >>confdefs.h <<\_ACEOF 5055 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 5056 _ACEOF 5057 5058 ENABLE_ABI_BREAKING_CHECKS=1 5059 5060 ;; 5061 no) 5062 ENABLE_ABI_BREAKING_CHECKS=0 5063 5064 ;; 5065 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5 5066 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;} 5067 { (exit 1); exit 1; }; } 5068 esac 5069 5070 # Check whether --enable-debug-runtime was given. 5071 if test "${enable_debug_runtime+set}" = set; then 5072 enableval=$enable_debug_runtime; 5073 else 5074 enableval=no 5075 fi 5076 5077 if test ${enableval} = "no" ; then 5078 DEBUG_RUNTIME= 5079 5080 else 5081 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5082 5083 fi 5084 5085 # Check whether --enable-debug-symbols was given. 5086 if test "${enable_debug_symbols+set}" = set; then 5087 enableval=$enable_debug_symbols; 5088 else 5089 enableval=no 5090 fi 5091 5092 if test ${enableval} = "no" ; then 5093 DEBUG_SYMBOLS= 5094 5095 else 5096 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5097 5098 fi 5099 5100 # Check whether --enable-keep-symbols was given. 5101 if test "${enable_keep_symbols+set}" = set; then 5102 enableval=$enable_keep_symbols; 5103 else 5104 enableval=no 5105 fi 5106 5107 if test ${enableval} = "no" ; then 5108 KEEP_SYMBOLS= 5109 5110 else 5111 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5112 5113 fi 5114 5115 # Check whether --enable-jit was given. 5116 if test "${enable_jit+set}" = set; then 5117 enableval=$enable_jit; 5118 else 5119 enableval=default 5120 fi 5121 5122 if test ${enableval} = "no" 5123 then 5124 JIT= 5125 5126 else 5127 case "$llvm_cv_target_arch" in 5128 x86) TARGET_HAS_JIT=1 5129 ;; 5130 Sparc) TARGET_HAS_JIT=0 5131 ;; 5132 PowerPC) TARGET_HAS_JIT=1 5133 ;; 5134 x86_64) TARGET_HAS_JIT=1 5135 ;; 5136 ARM) TARGET_HAS_JIT=1 5137 ;; 5138 Mips) TARGET_HAS_JIT=1 5139 ;; 5140 XCore) TARGET_HAS_JIT=0 5141 ;; 5142 MSP430) TARGET_HAS_JIT=0 5143 ;; 5144 Hexagon) TARGET_HAS_JIT=0 5145 ;; 5146 NVPTX) TARGET_HAS_JIT=0 5147 ;; 5148 SystemZ) TARGET_HAS_JIT=1 5149 ;; 5150 *) TARGET_HAS_JIT=0 5151 ;; 5152 esac 5153 fi 5154 5155 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86" 5156 TARGETS_WITH_JIT=$TARGETS_WITH_JIT 5157 5158 5159 # Check whether --enable-docs was given. 5160 if test "${enable_docs+set}" = set; then 5161 enableval=$enable_docs; 5162 else 5163 enableval=default 5164 fi 5165 5166 case "$enableval" in 5167 yes) ENABLE_DOCS=1 5168 ;; 5169 no) ENABLE_DOCS=0 5170 ;; 5171 default) ENABLE_DOCS=1 5172 ;; 5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5174 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5175 { (exit 1); exit 1; }; } ;; 5176 esac 5177 5178 # Check whether --enable-doxygen was given. 5179 if test "${enable_doxygen+set}" = set; then 5180 enableval=$enable_doxygen; 5181 else 5182 enableval=default 5183 fi 5184 5185 case "$enableval" in 5186 yes) ENABLE_DOXYGEN=1 5187 ;; 5188 no|default) ENABLE_DOXYGEN=0 5189 ;; 5190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5191 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5192 { (exit 1); exit 1; }; } ;; 5193 esac 5194 5195 # Check whether --enable-doxygen-search was given. 5196 if test "${enable_doxygen_search+set}" = set; then 5197 enableval=$enable_doxygen_search; 5198 else 5199 enableval=default 5200 fi 5201 5202 ENABLE_DOXYGEN_SEARCH="$enableval" 5203 5204 case "$enableval" in 5205 yes|no|default) ;; 5206 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5 5207 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;} 5208 { (exit 1); exit 1; }; } ;; 5209 esac 5210 5211 # Check whether --enable-doxygen-external-search was given. 5212 if test "${enable_doxygen_external_search+set}" = set; then 5213 enableval=$enable_doxygen_external_search; 5214 else 5215 enableval=default 5216 fi 5217 5218 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval" 5219 5220 case "$enableval" in 5221 yes) 5222 case "$ENABLE_DOXYGEN_SEARCH" in 5223 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;; 5224 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5 5225 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;} 5226 { (exit 1); exit 1; }; } ;; 5227 esac 5228 ;; 5229 no|default) ;; 5230 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5 5231 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;} 5232 { (exit 1); exit 1; }; } ;; 5233 esac 5234 5235 5236 # Check whether --with-doxygen-search-engine-url was given. 5237 if test "${with_doxygen_search_engine_url+set}" = set; then 5238 withval=$with_doxygen_search_engine_url; 5239 fi 5240 5241 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval" 5242 5243 5244 # Check whether --with-doxygen-search-mappings was given. 5245 if test "${with_doxygen_search_mappings+set}" = set; then 5246 withval=$with_doxygen_search_mappings; 5247 fi 5248 5249 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval" 5250 5251 case "$ENABLE_DOXYGEN_SEARCH" in 5252 yes) 5253 if test "$ENABLE_DOXYGEN" = "0" ; then 5254 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5 5255 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;} 5256 { (exit 1); exit 1; }; } 5257 fi 5258 5259 enable_searchengine=YES 5260 5261 5262 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in 5263 yes) 5264 enable_external_search=YES 5265 5266 enable_server_based_search=YES 5267 5268 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL" 5269 5270 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS" 5271 5272 ;; 5273 5274 no|default) 5275 enable_external_search=NO 5276 5277 enable_server_based_search=NO 5278 5279 5280 5281 ;; 5282 esac 5283 ;; 5284 5285 no|default) 5286 enable_searchengine=NO 5287 5288 5289 enable_server_based_search=NO 5290 5291 enable_external_search=NO 5292 5293 5294 ;; 5295 5296 *) 5297 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5 5298 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;} 5299 { (exit 1); exit 1; }; } 5300 ;; 5301 esac 5302 5303 # Check whether --enable-doxygen-qt-help was given. 5304 if test "${enable_doxygen_qt_help+set}" = set; then 5305 enableval=$enable_doxygen_qt_help; 5306 else 5307 enableval=default 5308 fi 5309 5310 case "$enableval" in 5311 yes) 5312 if test "$ENABLE_DOXYGEN" = "0" ; then 5313 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5 5314 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;} 5315 { (exit 1); exit 1; }; } 5316 fi 5317 5318 # Extract the first word of "qhelpgenerator", so it can be a program name with args. 5319 set dummy qhelpgenerator; ac_word=$2 5320 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5322 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then 5323 echo $ECHO_N "(cached) $ECHO_C" >&6 5324 else 5325 case $QHELPGENERATOR in 5326 [\\/]* | ?:[\\/]*) 5327 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path. 5328 ;; 5329 *) 5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5331 for as_dir in $PATH 5332 do 5333 IFS=$as_save_IFS 5334 test -z "$as_dir" && as_dir=. 5335 for ac_exec_ext in '' $ac_executable_extensions; do 5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5337 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext" 5338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5339 break 2 5340 fi 5341 done 5342 done 5343 IFS=$as_save_IFS 5344 5345 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator" 5346 ;; 5347 esac 5348 fi 5349 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR 5350 if test -n "$QHELPGENERATOR"; then 5351 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5 5352 echo "${ECHO_T}$QHELPGENERATOR" >&6; } 5353 else 5354 { echo "$as_me:$LINENO: result: no" >&5 5355 echo "${ECHO_T}no" >&6; } 5356 fi 5357 5358 5359 5360 llvm_doxygen_generate_qhp=YES 5361 5362 llvm_doxygen_qch_filename=org.llvm.qch 5363 5364 llvm_doxygen_qhp_namespace=org.llvm 5365 5366 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR" 5367 5368 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING" 5369 5370 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION" 5371 5372 5373 clang_doxygen_generate_qhp=YES 5374 5375 clang_doxygen_qch_filename=org.llvm.clang.qch 5376 5377 clang_doxygen_qhp_namespace=org.llvm.clang 5378 5379 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR" 5380 5381 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" 5382 5383 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" 5384 5385 ;; 5386 5387 no|default) 5388 llvm_doxygen_generate_qhp=NO 5389 5390 5391 5392 5393 5394 5395 5396 clang_doxygen_generate_qhp=NO 5397 5398 5399 5400 5401 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" 5402 5403 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" 5404 5405 ;; 5406 5407 *) 5408 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5 5409 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;} 5410 { (exit 1); exit 1; }; } ;; 5411 esac 5412 5413 # Check whether --enable-threads was given. 5414 if test "${enable_threads+set}" = set; then 5415 enableval=$enable_threads; 5416 else 5417 enableval=default 5418 fi 5419 5420 case "$enableval" in 5421 yes) LLVM_ENABLE_THREADS=1 5422 ;; 5423 no) LLVM_ENABLE_THREADS=0 5424 ;; 5425 default) LLVM_ENABLE_THREADS=1 5426 ;; 5427 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5428 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5429 { (exit 1); exit 1; }; } ;; 5430 esac 5431 5432 cat >>confdefs.h <<_ACEOF 5433 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5434 _ACEOF 5435 5436 5437 # Check whether --enable-pthreads was given. 5438 if test "${enable_pthreads+set}" = set; then 5439 enableval=$enable_pthreads; 5440 else 5441 enableval=default 5442 fi 5443 5444 case "$enableval" in 5445 yes) ENABLE_PTHREADS=1 5446 ;; 5447 no) ENABLE_PTHREADS=0 5448 ;; 5449 default) ENABLE_PTHREADS=1 5450 ;; 5451 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5452 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5453 { (exit 1); exit 1; }; } ;; 5454 esac 5455 5456 # Check whether --enable-zlib was given. 5457 if test "${enable_zlib+set}" = set; then 5458 enableval=$enable_zlib; 5459 else 5460 enableval=default 5461 fi 5462 5463 case "$enableval" in 5464 yes) LLVM_ENABLE_ZLIB=1 5465 ;; 5466 no) LLVM_ENABLE_ZLIB=0 5467 ;; 5468 default) LLVM_ENABLE_ZLIB=1 5469 ;; 5470 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5 5471 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;} 5472 { (exit 1); exit 1; }; } ;; 5473 esac 5474 5475 cat >>confdefs.h <<_ACEOF 5476 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB 5477 _ACEOF 5478 5479 5480 # Check whether --enable-pic was given. 5481 if test "${enable_pic+set}" = set; then 5482 enableval=$enable_pic; 5483 else 5484 enableval=default 5485 fi 5486 5487 case "$enableval" in 5488 yes) ENABLE_PIC=1 5489 ;; 5490 no) ENABLE_PIC=0 5491 ;; 5492 default) ENABLE_PIC=1 5493 ;; 5494 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5495 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5496 { (exit 1); exit 1; }; } ;; 5497 esac 5498 5499 cat >>confdefs.h <<_ACEOF 5500 #define ENABLE_PIC $ENABLE_PIC 5501 _ACEOF 5502 5503 5504 # Check whether --enable-shared was given. 5505 if test "${enable_shared+set}" = set; then 5506 enableval=$enable_shared; 5507 else 5508 enableval=default 5509 fi 5510 5511 case "$enableval" in 5512 yes) ENABLE_SHARED=1 5513 ;; 5514 no) ENABLE_SHARED=0 5515 ;; 5516 default) ENABLE_SHARED=0 5517 ;; 5518 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5519 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5520 { (exit 1); exit 1; }; } ;; 5521 esac 5522 5523 # Check whether --enable-embed-stdcxx was given. 5524 if test "${enable_embed_stdcxx+set}" = set; then 5525 enableval=$enable_embed_stdcxx; 5526 else 5527 enableval=default 5528 fi 5529 5530 case "$enableval" in 5531 yes) ENABLE_EMBED_STDCXX=1 5532 ;; 5533 no) ENABLE_EMBED_STDCXX=0 5534 ;; 5535 default) ENABLE_EMBED_STDCXX=0 5536 ;; 5537 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5538 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5539 { (exit 1); exit 1; }; } ;; 5540 esac 5541 5542 # Check whether --enable-timestamps was given. 5543 if test "${enable_timestamps+set}" = set; then 5544 enableval=$enable_timestamps; 5545 else 5546 enableval=default 5547 fi 5548 5549 case "$enableval" in 5550 yes) ENABLE_TIMESTAMPS=1 5551 ;; 5552 no) ENABLE_TIMESTAMPS=0 5553 ;; 5554 default) ENABLE_TIMESTAMPS=1 5555 ;; 5556 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5557 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5558 { (exit 1); exit 1; }; } ;; 5559 esac 5560 5561 cat >>confdefs.h <<_ACEOF 5562 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5563 _ACEOF 5564 5565 5566 # Check whether --enable-backtraces was given. 5567 if test "${enable_backtraces+set}" = set; then 5568 enableval=$enable_backtraces; case "$enableval" in 5569 yes) llvm_cv_enable_backtraces="yes" ;; 5570 no) llvm_cv_enable_backtraces="no" ;; 5571 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 5572 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} 5573 { (exit 1); exit 1; }; } ;; 5574 esac 5575 else 5576 llvm_cv_enable_backtraces="yes" 5577 fi 5578 5579 if test "$llvm_cv_enable_backtraces" = "yes" ; then 5580 5581 cat >>confdefs.h <<\_ACEOF 5582 #define ENABLE_BACKTRACES 1 5583 _ACEOF 5584 5585 fi 5586 5587 # Check whether --enable-crash-overrides was given. 5588 if test "${enable_crash_overrides+set}" = set; then 5589 enableval=$enable_crash_overrides; case "$enableval" in 5590 yes) llvm_cv_enable_crash_overrides="yes" ;; 5591 no) llvm_cv_enable_crash_overrides="no" ;; 5592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5 5593 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;} 5594 { (exit 1); exit 1; }; } ;; 5595 esac 5596 else 5597 llvm_cv_enable_crash_overrides="yes" 5598 fi 5599 5600 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then 5601 5602 cat >>confdefs.h <<\_ACEOF 5603 #define ENABLE_CRASH_OVERRIDES 1 5604 _ACEOF 5605 5606 fi 5607 5608 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" 5609 ALL_TARGETS=$ALL_TARGETS 5610 5611 5612 TARGETS_TO_BUILD="" 5613 # Check whether --enable-targets was given. 5614 if test "${enable_targets+set}" = set; then 5615 enableval=$enable_targets; 5616 else 5617 enableval=all 5618 fi 5619 5620 if test "$enableval" = host-only ; then 5621 enableval=host 5622 fi 5623 case "$enableval" in 5624 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;; 5625 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5626 case "$a_target" in 5627 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5628 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5629 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5630 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5631 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5632 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5633 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5634 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5635 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5636 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5637 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5638 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5639 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5640 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5641 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5642 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5643 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5644 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;; 5645 host) case "$llvm_cv_target_arch" in 5646 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5647 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5648 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5649 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5650 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5651 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5652 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5653 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5654 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5655 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5656 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5657 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5658 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5659 echo "$as_me: error: Can not set target to build" >&2;} 5660 { (exit 1); exit 1; }; } ;; 5661 esac ;; 5662 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5663 echo "$as_me: error: Unrecognized target $a_target" >&2;} 5664 { (exit 1); exit 1; }; } ;; 5665 esac 5666 done 5667 ;; 5668 esac 5669 5670 # Check whether --enable-experimental-targets was given. 5671 if test "${enable_experimental_targets+set}" = set; then 5672 enableval=$enable_experimental_targets; 5673 else 5674 enableval=disable 5675 fi 5676 5677 5678 if test ${enableval} != "disable" 5679 then 5680 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5681 fi 5682 5683 TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5684 5685 5686 for a_target in $TARGETS_TO_BUILD; do 5687 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5688 5689 cat >>confdefs.h <<_ACEOF 5690 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5691 _ACEOF 5692 5693 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5694 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5695 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5696 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5697 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5698 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5699 fi 5700 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5701 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5702 fi 5703 5704 cat >>confdefs.h <<_ACEOF 5705 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5706 _ACEOF 5707 5708 5709 cat >>confdefs.h <<_ACEOF 5710 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5711 _ACEOF 5712 5713 5714 cat >>confdefs.h <<_ACEOF 5715 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5716 _ACEOF 5717 5718 5719 cat >>confdefs.h <<_ACEOF 5720 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5721 _ACEOF 5722 5723 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5724 5725 cat >>confdefs.h <<_ACEOF 5726 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5727 _ACEOF 5728 5729 fi 5730 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5731 5732 cat >>confdefs.h <<_ACEOF 5733 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5734 _ACEOF 5735 5736 fi 5737 fi 5738 done 5739 5740 LLVM_ENUM_TARGETS="" 5741 LLVM_ENUM_ASM_PRINTERS="" 5742 LLVM_ENUM_ASM_PARSERS="" 5743 LLVM_ENUM_DISASSEMBLERS="" 5744 for target_to_build in $TARGETS_TO_BUILD; do 5745 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5746 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5747 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5748 fi 5749 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5750 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5751 fi 5752 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5753 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5754 fi 5755 done 5756 5757 5758 5759 5760 5761 5762 # Check whether --with-optimize-option was given. 5763 if test "${with_optimize_option+set}" = set; then 5764 withval=$with_optimize_option; 5765 else 5766 withval=default 5767 fi 5768 5769 { echo "$as_me:$LINENO: checking optimization flags" >&5 5770 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5771 case "$withval" in 5772 default) 5773 case "$llvm_cv_os_type" in 5774 FreeBSD) optimize_option=-O2 ;; 5775 MingW) optimize_option=-O2 ;; 5776 *) optimize_option=-O3 ;; 5777 esac ;; 5778 *) optimize_option="$withval" ;; 5779 esac 5780 OPTIMIZE_OPTION=$optimize_option 5781 5782 { echo "$as_me:$LINENO: result: $optimize_option" >&5 5783 echo "${ECHO_T}$optimize_option" >&6; } 5784 5785 5786 # Check whether --with-extra-options was given. 5787 if test "${with_extra_options+set}" = set; then 5788 withval=$with_extra_options; 5789 else 5790 withval=default 5791 fi 5792 5793 case "$withval" in 5794 default) EXTRA_OPTIONS= ;; 5795 *) EXTRA_OPTIONS=$withval ;; 5796 esac 5797 EXTRA_OPTIONS=$EXTRA_OPTIONS 5798 5799 5800 5801 # Check whether --with-extra-ld-options was given. 5802 if test "${with_extra_ld_options+set}" = set; then 5803 withval=$with_extra_ld_options; 5804 else 5805 withval=default 5806 fi 5807 5808 case "$withval" in 5809 default) EXTRA_LD_OPTIONS= ;; 5810 *) EXTRA_LD_OPTIONS=$withval ;; 5811 esac 5812 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5813 5814 5815 # Check whether --enable-bindings was given. 5816 if test "${enable_bindings+set}" = set; then 5817 enableval=$enable_bindings; 5818 else 5819 enableval=default 5820 fi 5821 5822 BINDINGS_TO_BUILD="" 5823 case "$enableval" in 5824 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5825 all ) BINDINGS_TO_BUILD="ocaml" ;; 5826 none | no) BINDINGS_TO_BUILD="" ;; 5827 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5828 case "$a_binding" in 5829 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5830 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5831 echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5832 { (exit 1); exit 1; }; } ;; 5833 esac 5834 done 5835 ;; 5836 esac 5837 5838 5839 # Check whether --with-ocaml-libdir was given. 5840 if test "${with_ocaml_libdir+set}" = set; then 5841 withval=$with_ocaml_libdir; 5842 else 5843 withval=auto 5844 fi 5845 5846 case "$withval" in 5847 auto) with_ocaml_libdir="$withval" ;; 5848 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5849 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5850 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5851 { (exit 1); exit 1; }; } ;; 5852 esac 5853 5854 5855 # Check whether --with-clang-srcdir was given. 5856 if test "${with_clang_srcdir+set}" = set; then 5857 withval=$with_clang_srcdir; 5858 else 5859 withval="-" 5860 fi 5861 5862 case "$withval" in 5863 -) clang_src_root="" ;; 5864 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5865 *) clang_src_root="$ac_pwd/$withval" ;; 5866 esac 5867 CLANG_SRC_ROOT=$clang_src_root 5868 5869 5870 5871 # Check whether --with-clang-resource-dir was given. 5872 if test "${with_clang_resource_dir+set}" = set; then 5873 withval=$with_clang_resource_dir; 5874 else 5875 withval="" 5876 fi 5877 5878 5879 cat >>confdefs.h <<_ACEOF 5880 #define CLANG_RESOURCE_DIR "$withval" 5881 _ACEOF 5882 5883 5884 5885 # Check whether --with-c-include-dirs was given. 5886 if test "${with_c_include_dirs+set}" = set; then 5887 withval=$with_c_include_dirs; 5888 else 5889 withval="" 5890 fi 5891 5892 5893 cat >>confdefs.h <<_ACEOF 5894 #define C_INCLUDE_DIRS "$withval" 5895 _ACEOF 5896 5897 5898 # Clang normally uses the system c++ headers and libraries. With this option, 5899 # clang will use the ones provided by a gcc installation instead. This option should 5900 # be passed the same value that was used with --prefix when configuring gcc. 5901 5902 # Check whether --with-gcc-toolchain was given. 5903 if test "${with_gcc_toolchain+set}" = set; then 5904 withval=$with_gcc_toolchain; 5905 else 5906 withval="" 5907 fi 5908 5909 5910 cat >>confdefs.h <<_ACEOF 5911 #define GCC_INSTALL_PREFIX "$withval" 5912 _ACEOF 5913 5914 5915 5916 # Check whether --with-default-sysroot was given. 5917 if test "${with_default_sysroot+set}" = set; then 5918 withval=$with_default_sysroot; 5919 else 5920 withval="" 5921 fi 5922 5923 5924 cat >>confdefs.h <<_ACEOF 5925 #define DEFAULT_SYSROOT "$withval" 5926 _ACEOF 5927 5928 5929 5930 # Check whether --with-binutils-include was given. 5931 if test "${with_binutils_include+set}" = set; then 5932 withval=$with_binutils_include; 5933 else 5934 withval=default 5935 fi 5936 5937 case "$withval" in 5938 default) WITH_BINUTILS_INCDIR=default ;; 5939 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5940 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5941 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5942 { (exit 1); exit 1; }; } ;; 5943 esac 5944 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5945 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5946 5947 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5948 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5949 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5950 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5951 { (exit 1); exit 1; }; }; 5952 fi 5953 fi 5954 5955 5956 # Check whether --with-bug-report-url was given. 5957 if test "${with_bug_report_url+set}" = set; then 5958 withval=$with_bug_report_url; 5959 else 5960 withval="http://llvm.org/bugs/" 5961 fi 5962 5963 5964 cat >>confdefs.h <<_ACEOF 5965 #define BUG_REPORT_URL "$withval" 5966 _ACEOF 5967 5968 5969 # Check whether --enable-terminfo was given. 5970 if test "${enable_terminfo+set}" = set; then 5971 enableval=$enable_terminfo; case "$enableval" in 5972 yes) llvm_cv_enable_terminfo="yes" ;; 5973 no) llvm_cv_enable_terminfo="no" ;; 5974 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5 5975 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;} 5976 { (exit 1); exit 1; }; } ;; 5977 esac 5978 else 5979 llvm_cv_enable_terminfo="yes" 5980 fi 5981 5982 case "$llvm_cv_enable_terminfo" in 5983 yes) ENABLE_TERMINFO=1 5984 ;; 5985 no) ENABLE_TERMINFO=0 5986 ;; 5987 esac 5988 5989 # Check whether --enable-libedit was given. 5990 if test "${enable_libedit+set}" = set; then 5991 enableval=$enable_libedit; case "$enableval" in 5992 yes) llvm_cv_enable_libedit="yes" ;; 5993 no) llvm_cv_enable_libedit="no" ;; 5994 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5 5995 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;} 5996 { (exit 1); exit 1; }; } ;; 5997 esac 5998 else 5999 llvm_cv_enable_libedit="yes" 6000 fi 6001 6002 6003 # Check whether --enable-libffi was given. 6004 if test "${enable_libffi+set}" = set; then 6005 enableval=$enable_libffi; case "$enableval" in 6006 yes) llvm_cv_enable_libffi="yes" ;; 6007 no) llvm_cv_enable_libffi="no" ;; 6008 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 6009 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 6010 { (exit 1); exit 1; }; } ;; 6011 esac 6012 else 6013 llvm_cv_enable_libffi=no 6014 fi 6015 6016 6017 6018 # Check whether --with-internal-prefix was given. 6019 if test "${with_internal_prefix+set}" = set; then 6020 withval=$with_internal_prefix; 6021 else 6022 withval="" 6023 fi 6024 6025 INTERNAL_PREFIX=$withval 6026 6027 6028 6029 { echo "$as_me:$LINENO: checking for GNU make" >&5 6030 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6031 if test "${llvm_cv_gnu_make_command+set}" = set; then 6032 echo $ECHO_N "(cached) $ECHO_C" >&6 6033 else 6034 llvm_cv_gnu_make_command='' 6035 for a in "$MAKE" make gmake gnumake ; do 6036 if test -z "$a" ; then continue ; fi ; 6037 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6038 then 6039 llvm_cv_gnu_make_command=$a ; 6040 break; 6041 fi 6042 done 6043 fi 6044 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6045 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6046 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6047 ifGNUmake='' ; 6048 else 6049 ifGNUmake='#' ; 6050 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6051 echo "${ECHO_T}\"Not found\"" >&6; }; 6052 fi 6053 6054 6055 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 6056 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6057 LN_S=$as_ln_s 6058 if test "$LN_S" = "ln -s"; then 6059 { echo "$as_me:$LINENO: result: yes" >&5 6060 echo "${ECHO_T}yes" >&6; } 6061 else 6062 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6063 echo "${ECHO_T}no, using $LN_S" >&6; } 6064 fi 6065 6066 # Extract the first word of "nm", so it can be a program name with args. 6067 set dummy nm; ac_word=$2 6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6070 if test "${ac_cv_path_NM+set}" = set; then 6071 echo $ECHO_N "(cached) $ECHO_C" >&6 6072 else 6073 case $NM in 6074 [\\/]* | ?:[\\/]*) 6075 ac_cv_path_NM="$NM" # Let the user override the test with a path. 6076 ;; 6077 *) 6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6079 for as_dir in $PATH 6080 do 6081 IFS=$as_save_IFS 6082 test -z "$as_dir" && as_dir=. 6083 for ac_exec_ext in '' $ac_executable_extensions; do 6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6085 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6087 break 2 6088 fi 6089 done 6090 done 6091 IFS=$as_save_IFS 6092 6093 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm" 6094 ;; 6095 esac 6096 fi 6097 NM=$ac_cv_path_NM 6098 if test -n "$NM"; then 6099 { echo "$as_me:$LINENO: result: $NM" >&5 6100 echo "${ECHO_T}$NM" >&6; } 6101 else 6102 { echo "$as_me:$LINENO: result: no" >&5 6103 echo "${ECHO_T}no" >&6; } 6104 fi 6105 6106 6107 # Extract the first word of "cmp", so it can be a program name with args. 6108 set dummy cmp; ac_word=$2 6109 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6111 if test "${ac_cv_path_CMP+set}" = set; then 6112 echo $ECHO_N "(cached) $ECHO_C" >&6 6113 else 6114 case $CMP in 6115 [\\/]* | ?:[\\/]*) 6116 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6117 ;; 6118 *) 6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6120 for as_dir in $PATH 6121 do 6122 IFS=$as_save_IFS 6123 test -z "$as_dir" && as_dir=. 6124 for ac_exec_ext in '' $ac_executable_extensions; do 6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6126 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6128 break 2 6129 fi 6130 done 6131 done 6132 IFS=$as_save_IFS 6133 6134 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6135 ;; 6136 esac 6137 fi 6138 CMP=$ac_cv_path_CMP 6139 if test -n "$CMP"; then 6140 { echo "$as_me:$LINENO: result: $CMP" >&5 6141 echo "${ECHO_T}$CMP" >&6; } 6142 else 6143 { echo "$as_me:$LINENO: result: no" >&5 6144 echo "${ECHO_T}no" >&6; } 6145 fi 6146 6147 6148 # Extract the first word of "cp", so it can be a program name with args. 6149 set dummy cp; ac_word=$2 6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6152 if test "${ac_cv_path_CP+set}" = set; then 6153 echo $ECHO_N "(cached) $ECHO_C" >&6 6154 else 6155 case $CP in 6156 [\\/]* | ?:[\\/]*) 6157 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6158 ;; 6159 *) 6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6161 for as_dir in $PATH 6162 do 6163 IFS=$as_save_IFS 6164 test -z "$as_dir" && as_dir=. 6165 for ac_exec_ext in '' $ac_executable_extensions; do 6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6167 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6169 break 2 6170 fi 6171 done 6172 done 6173 IFS=$as_save_IFS 6174 6175 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6176 ;; 6177 esac 6178 fi 6179 CP=$ac_cv_path_CP 6180 if test -n "$CP"; then 6181 { echo "$as_me:$LINENO: result: $CP" >&5 6182 echo "${ECHO_T}$CP" >&6; } 6183 else 6184 { echo "$as_me:$LINENO: result: no" >&5 6185 echo "${ECHO_T}no" >&6; } 6186 fi 6187 6188 6189 # Extract the first word of "date", so it can be a program name with args. 6190 set dummy date; ac_word=$2 6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6193 if test "${ac_cv_path_DATE+set}" = set; then 6194 echo $ECHO_N "(cached) $ECHO_C" >&6 6195 else 6196 case $DATE in 6197 [\\/]* | ?:[\\/]*) 6198 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6199 ;; 6200 *) 6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6202 for as_dir in $PATH 6203 do 6204 IFS=$as_save_IFS 6205 test -z "$as_dir" && as_dir=. 6206 for ac_exec_ext in '' $ac_executable_extensions; do 6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6208 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6210 break 2 6211 fi 6212 done 6213 done 6214 IFS=$as_save_IFS 6215 6216 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6217 ;; 6218 esac 6219 fi 6220 DATE=$ac_cv_path_DATE 6221 if test -n "$DATE"; then 6222 { echo "$as_me:$LINENO: result: $DATE" >&5 6223 echo "${ECHO_T}$DATE" >&6; } 6224 else 6225 { echo "$as_me:$LINENO: result: no" >&5 6226 echo "${ECHO_T}no" >&6; } 6227 fi 6228 6229 6230 # Extract the first word of "find", so it can be a program name with args. 6231 set dummy find; ac_word=$2 6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6234 if test "${ac_cv_path_FIND+set}" = set; then 6235 echo $ECHO_N "(cached) $ECHO_C" >&6 6236 else 6237 case $FIND in 6238 [\\/]* | ?:[\\/]*) 6239 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6240 ;; 6241 *) 6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6243 for as_dir in $PATH 6244 do 6245 IFS=$as_save_IFS 6246 test -z "$as_dir" && as_dir=. 6247 for ac_exec_ext in '' $ac_executable_extensions; do 6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6249 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6251 break 2 6252 fi 6253 done 6254 done 6255 IFS=$as_save_IFS 6256 6257 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6258 ;; 6259 esac 6260 fi 6261 FIND=$ac_cv_path_FIND 6262 if test -n "$FIND"; then 6263 { echo "$as_me:$LINENO: result: $FIND" >&5 6264 echo "${ECHO_T}$FIND" >&6; } 6265 else 6266 { echo "$as_me:$LINENO: result: no" >&5 6267 echo "${ECHO_T}no" >&6; } 6268 fi 6269 6270 6271 # Extract the first word of "grep", so it can be a program name with args. 6272 set dummy grep; ac_word=$2 6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6275 if test "${ac_cv_path_GREP+set}" = set; then 6276 echo $ECHO_N "(cached) $ECHO_C" >&6 6277 else 6278 case $GREP in 6279 [\\/]* | ?:[\\/]*) 6280 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6281 ;; 6282 *) 6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6284 for as_dir in $PATH 6285 do 6286 IFS=$as_save_IFS 6287 test -z "$as_dir" && as_dir=. 6288 for ac_exec_ext in '' $ac_executable_extensions; do 6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6290 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6292 break 2 6293 fi 6294 done 6295 done 6296 IFS=$as_save_IFS 6297 6298 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6299 ;; 6300 esac 6301 fi 6302 GREP=$ac_cv_path_GREP 6303 if test -n "$GREP"; then 6304 { echo "$as_me:$LINENO: result: $GREP" >&5 6305 echo "${ECHO_T}$GREP" >&6; } 6306 else 6307 { echo "$as_me:$LINENO: result: no" >&5 6308 echo "${ECHO_T}no" >&6; } 6309 fi 6310 6311 6312 # Extract the first word of "mkdir", so it can be a program name with args. 6313 set dummy mkdir; ac_word=$2 6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6316 if test "${ac_cv_path_MKDIR+set}" = set; then 6317 echo $ECHO_N "(cached) $ECHO_C" >&6 6318 else 6319 case $MKDIR in 6320 [\\/]* | ?:[\\/]*) 6321 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6322 ;; 6323 *) 6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6325 for as_dir in $PATH 6326 do 6327 IFS=$as_save_IFS 6328 test -z "$as_dir" && as_dir=. 6329 for ac_exec_ext in '' $ac_executable_extensions; do 6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6331 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6333 break 2 6334 fi 6335 done 6336 done 6337 IFS=$as_save_IFS 6338 6339 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6340 ;; 6341 esac 6342 fi 6343 MKDIR=$ac_cv_path_MKDIR 6344 if test -n "$MKDIR"; then 6345 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6346 echo "${ECHO_T}$MKDIR" >&6; } 6347 else 6348 { echo "$as_me:$LINENO: result: no" >&5 6349 echo "${ECHO_T}no" >&6; } 6350 fi 6351 6352 6353 # Extract the first word of "mv", so it can be a program name with args. 6354 set dummy mv; ac_word=$2 6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6357 if test "${ac_cv_path_MV+set}" = set; then 6358 echo $ECHO_N "(cached) $ECHO_C" >&6 6359 else 6360 case $MV in 6361 [\\/]* | ?:[\\/]*) 6362 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6363 ;; 6364 *) 6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6366 for as_dir in $PATH 6367 do 6368 IFS=$as_save_IFS 6369 test -z "$as_dir" && as_dir=. 6370 for ac_exec_ext in '' $ac_executable_extensions; do 6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6372 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6374 break 2 6375 fi 6376 done 6377 done 6378 IFS=$as_save_IFS 6379 6380 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6381 ;; 6382 esac 6383 fi 6384 MV=$ac_cv_path_MV 6385 if test -n "$MV"; then 6386 { echo "$as_me:$LINENO: result: $MV" >&5 6387 echo "${ECHO_T}$MV" >&6; } 6388 else 6389 { echo "$as_me:$LINENO: result: no" >&5 6390 echo "${ECHO_T}no" >&6; } 6391 fi 6392 6393 6394 if test -n "$ac_tool_prefix"; then 6395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6396 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6399 if test "${ac_cv_prog_RANLIB+set}" = set; then 6400 echo $ECHO_N "(cached) $ECHO_C" >&6 6401 else 6402 if test -n "$RANLIB"; then 6403 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6404 else 6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6406 for as_dir in $PATH 6407 do 6408 IFS=$as_save_IFS 6409 test -z "$as_dir" && as_dir=. 6410 for ac_exec_ext in '' $ac_executable_extensions; do 6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6412 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6414 break 2 6415 fi 6416 done 6417 done 6418 IFS=$as_save_IFS 6419 6420 fi 6421 fi 6422 RANLIB=$ac_cv_prog_RANLIB 6423 if test -n "$RANLIB"; then 6424 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6425 echo "${ECHO_T}$RANLIB" >&6; } 6426 else 6427 { echo "$as_me:$LINENO: result: no" >&5 6428 echo "${ECHO_T}no" >&6; } 6429 fi 6430 6431 6432 fi 6433 if test -z "$ac_cv_prog_RANLIB"; then 6434 ac_ct_RANLIB=$RANLIB 6435 # Extract the first word of "ranlib", so it can be a program name with args. 6436 set dummy ranlib; ac_word=$2 6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6439 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6440 echo $ECHO_N "(cached) $ECHO_C" >&6 6441 else 6442 if test -n "$ac_ct_RANLIB"; then 6443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6444 else 6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6446 for as_dir in $PATH 6447 do 6448 IFS=$as_save_IFS 6449 test -z "$as_dir" && as_dir=. 6450 for ac_exec_ext in '' $ac_executable_extensions; do 6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6452 ac_cv_prog_ac_ct_RANLIB="ranlib" 6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6454 break 2 6455 fi 6456 done 6457 done 6458 IFS=$as_save_IFS 6459 6460 fi 6461 fi 6462 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6463 if test -n "$ac_ct_RANLIB"; then 6464 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6465 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6466 else 6467 { echo "$as_me:$LINENO: result: no" >&5 6468 echo "${ECHO_T}no" >&6; } 6469 fi 6470 6471 if test "x$ac_ct_RANLIB" = x; then 6472 RANLIB=":" 6473 else 6474 case $cross_compiling:$ac_tool_warned in 6475 yes:) 6476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6477 whose name does not start with the host triplet. If you think this 6478 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6480 whose name does not start with the host triplet. If you think this 6481 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6482 ac_tool_warned=yes ;; 6483 esac 6484 RANLIB=$ac_ct_RANLIB 6485 fi 6486 else 6487 RANLIB="$ac_cv_prog_RANLIB" 6488 fi 6489 6490 if test -n "$ac_tool_prefix"; then 6491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6492 set dummy ${ac_tool_prefix}ar; ac_word=$2 6493 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6495 if test "${ac_cv_prog_AR+set}" = set; then 6496 echo $ECHO_N "(cached) $ECHO_C" >&6 6497 else 6498 if test -n "$AR"; then 6499 ac_cv_prog_AR="$AR" # Let the user override the test. 6500 else 6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6502 for as_dir in $PATH 6503 do 6504 IFS=$as_save_IFS 6505 test -z "$as_dir" && as_dir=. 6506 for ac_exec_ext in '' $ac_executable_extensions; do 6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6508 ac_cv_prog_AR="${ac_tool_prefix}ar" 6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6510 break 2 6511 fi 6512 done 6513 done 6514 IFS=$as_save_IFS 6515 6516 fi 6517 fi 6518 AR=$ac_cv_prog_AR 6519 if test -n "$AR"; then 6520 { echo "$as_me:$LINENO: result: $AR" >&5 6521 echo "${ECHO_T}$AR" >&6; } 6522 else 6523 { echo "$as_me:$LINENO: result: no" >&5 6524 echo "${ECHO_T}no" >&6; } 6525 fi 6526 6527 6528 fi 6529 if test -z "$ac_cv_prog_AR"; then 6530 ac_ct_AR=$AR 6531 # Extract the first word of "ar", so it can be a program name with args. 6532 set dummy ar; ac_word=$2 6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6535 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6536 echo $ECHO_N "(cached) $ECHO_C" >&6 6537 else 6538 if test -n "$ac_ct_AR"; then 6539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6540 else 6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6542 for as_dir in $PATH 6543 do 6544 IFS=$as_save_IFS 6545 test -z "$as_dir" && as_dir=. 6546 for ac_exec_ext in '' $ac_executable_extensions; do 6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6548 ac_cv_prog_ac_ct_AR="ar" 6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6550 break 2 6551 fi 6552 done 6553 done 6554 IFS=$as_save_IFS 6555 6556 fi 6557 fi 6558 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6559 if test -n "$ac_ct_AR"; then 6560 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6561 echo "${ECHO_T}$ac_ct_AR" >&6; } 6562 else 6563 { echo "$as_me:$LINENO: result: no" >&5 6564 echo "${ECHO_T}no" >&6; } 6565 fi 6566 6567 if test "x$ac_ct_AR" = x; then 6568 AR="false" 6569 else 6570 case $cross_compiling:$ac_tool_warned in 6571 yes:) 6572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6573 whose name does not start with the host triplet. If you think this 6574 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6576 whose name does not start with the host triplet. If you think this 6577 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6578 ac_tool_warned=yes ;; 6579 esac 6580 AR=$ac_ct_AR 6581 fi 6582 else 6583 AR="$ac_cv_prog_AR" 6584 fi 6585 6586 # Extract the first word of "rm", so it can be a program name with args. 6587 set dummy rm; ac_word=$2 6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6590 if test "${ac_cv_path_RM+set}" = set; then 6591 echo $ECHO_N "(cached) $ECHO_C" >&6 6592 else 6593 case $RM in 6594 [\\/]* | ?:[\\/]*) 6595 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6596 ;; 6597 *) 6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6599 for as_dir in $PATH 6600 do 6601 IFS=$as_save_IFS 6602 test -z "$as_dir" && as_dir=. 6603 for ac_exec_ext in '' $ac_executable_extensions; do 6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6605 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6607 break 2 6608 fi 6609 done 6610 done 6611 IFS=$as_save_IFS 6612 6613 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6614 ;; 6615 esac 6616 fi 6617 RM=$ac_cv_path_RM 6618 if test -n "$RM"; then 6619 { echo "$as_me:$LINENO: result: $RM" >&5 6620 echo "${ECHO_T}$RM" >&6; } 6621 else 6622 { echo "$as_me:$LINENO: result: no" >&5 6623 echo "${ECHO_T}no" >&6; } 6624 fi 6625 6626 6627 # Extract the first word of "sed", so it can be a program name with args. 6628 set dummy sed; ac_word=$2 6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6631 if test "${ac_cv_path_SED+set}" = set; then 6632 echo $ECHO_N "(cached) $ECHO_C" >&6 6633 else 6634 case $SED in 6635 [\\/]* | ?:[\\/]*) 6636 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6637 ;; 6638 *) 6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6640 for as_dir in $PATH 6641 do 6642 IFS=$as_save_IFS 6643 test -z "$as_dir" && as_dir=. 6644 for ac_exec_ext in '' $ac_executable_extensions; do 6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6646 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6648 break 2 6649 fi 6650 done 6651 done 6652 IFS=$as_save_IFS 6653 6654 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6655 ;; 6656 esac 6657 fi 6658 SED=$ac_cv_path_SED 6659 if test -n "$SED"; then 6660 { echo "$as_me:$LINENO: result: $SED" >&5 6661 echo "${ECHO_T}$SED" >&6; } 6662 else 6663 { echo "$as_me:$LINENO: result: no" >&5 6664 echo "${ECHO_T}no" >&6; } 6665 fi 6666 6667 6668 # Extract the first word of "tar", so it can be a program name with args. 6669 set dummy tar; ac_word=$2 6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6672 if test "${ac_cv_path_TAR+set}" = set; then 6673 echo $ECHO_N "(cached) $ECHO_C" >&6 6674 else 6675 case $TAR in 6676 [\\/]* | ?:[\\/]*) 6677 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6678 ;; 6679 *) 6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681 for as_dir in $PATH 6682 do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6687 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691 done 6692 done 6693 IFS=$as_save_IFS 6694 6695 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6696 ;; 6697 esac 6698 fi 6699 TAR=$ac_cv_path_TAR 6700 if test -n "$TAR"; then 6701 { echo "$as_me:$LINENO: result: $TAR" >&5 6702 echo "${ECHO_T}$TAR" >&6; } 6703 else 6704 { echo "$as_me:$LINENO: result: no" >&5 6705 echo "${ECHO_T}no" >&6; } 6706 fi 6707 6708 6709 # Extract the first word of "pwd", so it can be a program name with args. 6710 set dummy pwd; ac_word=$2 6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6713 if test "${ac_cv_path_BINPWD+set}" = set; then 6714 echo $ECHO_N "(cached) $ECHO_C" >&6 6715 else 6716 case $BINPWD in 6717 [\\/]* | ?:[\\/]*) 6718 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6719 ;; 6720 *) 6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6722 for as_dir in $PATH 6723 do 6724 IFS=$as_save_IFS 6725 test -z "$as_dir" && as_dir=. 6726 for ac_exec_ext in '' $ac_executable_extensions; do 6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6728 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6730 break 2 6731 fi 6732 done 6733 done 6734 IFS=$as_save_IFS 6735 6736 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6737 ;; 6738 esac 6739 fi 6740 BINPWD=$ac_cv_path_BINPWD 6741 if test -n "$BINPWD"; then 6742 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6743 echo "${ECHO_T}$BINPWD" >&6; } 6744 else 6745 { echo "$as_me:$LINENO: result: no" >&5 6746 echo "${ECHO_T}no" >&6; } 6747 fi 6748 6749 6750 6751 # Extract the first word of "dot", so it can be a program name with args. 6752 set dummy dot; ac_word=$2 6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6755 if test "${ac_cv_path_DOT+set}" = set; then 6756 echo $ECHO_N "(cached) $ECHO_C" >&6 6757 else 6758 case $DOT in 6759 [\\/]* | ?:[\\/]*) 6760 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6761 ;; 6762 *) 6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6764 for as_dir in $PATH 6765 do 6766 IFS=$as_save_IFS 6767 test -z "$as_dir" && as_dir=. 6768 for ac_exec_ext in '' $ac_executable_extensions; do 6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6770 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6772 break 2 6773 fi 6774 done 6775 done 6776 IFS=$as_save_IFS 6777 6778 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6779 ;; 6780 esac 6781 fi 6782 DOT=$ac_cv_path_DOT 6783 if test -n "$DOT"; then 6784 { echo "$as_me:$LINENO: result: $DOT" >&5 6785 echo "${ECHO_T}$DOT" >&6; } 6786 else 6787 { echo "$as_me:$LINENO: result: no" >&5 6788 echo "${ECHO_T}no" >&6; } 6789 fi 6790 6791 6792 if test "$DOT" != "echo dot" ; then 6793 6794 cat >>confdefs.h <<\_ACEOF 6795 #define HAVE_DOT 1 6796 _ACEOF 6797 6798 if test "$llvm_cv_os_type" = "MingW" ; then 6799 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6800 fi 6801 6802 cat >>confdefs.h <<_ACEOF 6803 #define LLVM_PATH_DOT "$DOT${EXEEXT}" 6804 _ACEOF 6805 6806 fi 6807 6808 # Find a good install program. We prefer a C program (faster), 6809 # so one script is as good as another. But avoid the broken or 6810 # incompatible versions: 6811 # SysV /etc/install, /usr/sbin/install 6812 # SunOS /usr/etc/install 6813 # IRIX /sbin/install 6814 # AIX /bin/install 6815 # AmigaOS /C/install, which installs bootblocks on floppy discs 6816 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6817 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 6818 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6819 # OS/2's system install, which has a completely different semantic 6820 # ./install, which can be erroneously created by make from ./install.sh. 6821 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6822 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 6823 if test -z "$INSTALL"; then 6824 if test "${ac_cv_path_install+set}" = set; then 6825 echo $ECHO_N "(cached) $ECHO_C" >&6 6826 else 6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6828 for as_dir in $PATH 6829 do 6830 IFS=$as_save_IFS 6831 test -z "$as_dir" && as_dir=. 6832 # Account for people who put trailing slashes in PATH elements. 6833 case $as_dir/ in 6834 ./ | .// | /cC/* | \ 6835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 6837 /usr/ucb/* ) ;; 6838 *) 6839 # OSF1 and SCO ODT 3.0 have their own names for install. 6840 # Don't use installbsd from OSF since it installs stuff as root 6841 # by default. 6842 for ac_prog in ginstall scoinst install; do 6843 for ac_exec_ext in '' $ac_executable_extensions; do 6844 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 6845 if test $ac_prog = install && 6846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6847 # AIX install. It has an incompatible calling convention. 6848 : 6849 elif test $ac_prog = install && 6850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6851 # program-specific install script used by HP pwplus--don't use. 6852 : 6853 else 6854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6855 break 3 6856 fi 6857 fi 6858 done 6859 done 6860 ;; 6861 esac 6862 done 6863 IFS=$as_save_IFS 6864 6865 6866 fi 6867 if test "${ac_cv_path_install+set}" = set; then 6868 INSTALL=$ac_cv_path_install 6869 else 6870 # As a last resort, use the slow shell script. Don't cache a 6871 # value for INSTALL within a source directory, because that will 6872 # break other packages using the cache if that directory is 6873 # removed, or if the value is a relative name. 6874 INSTALL=$ac_install_sh 6875 fi 6876 fi 6877 { echo "$as_me:$LINENO: result: $INSTALL" >&5 6878 echo "${ECHO_T}$INSTALL" >&6; } 6879 6880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6881 # It thinks the first close brace ends the variable substitution. 6882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6883 6884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6885 6886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6887 6888 case "$INSTALL" in 6889 [\\/$]* | ?:[\\/]* ) ;; 6890 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 6891 esac 6892 6893 # Extract the first word of "bzip2", so it can be a program name with args. 6894 set dummy bzip2; ac_word=$2 6895 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6897 if test "${ac_cv_path_BZIP2+set}" = set; then 6898 echo $ECHO_N "(cached) $ECHO_C" >&6 6899 else 6900 case $BZIP2 in 6901 [\\/]* | ?:[\\/]*) 6902 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 6903 ;; 6904 *) 6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6906 for as_dir in $PATH 6907 do 6908 IFS=$as_save_IFS 6909 test -z "$as_dir" && as_dir=. 6910 for ac_exec_ext in '' $ac_executable_extensions; do 6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6912 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6914 break 2 6915 fi 6916 done 6917 done 6918 IFS=$as_save_IFS 6919 6920 ;; 6921 esac 6922 fi 6923 BZIP2=$ac_cv_path_BZIP2 6924 if test -n "$BZIP2"; then 6925 { echo "$as_me:$LINENO: result: $BZIP2" >&5 6926 echo "${ECHO_T}$BZIP2" >&6; } 6927 else 6928 { echo "$as_me:$LINENO: result: no" >&5 6929 echo "${ECHO_T}no" >&6; } 6930 fi 6931 6932 6933 # Extract the first word of "cat", so it can be a program name with args. 6934 set dummy cat; ac_word=$2 6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6937 if test "${ac_cv_path_CAT+set}" = set; then 6938 echo $ECHO_N "(cached) $ECHO_C" >&6 6939 else 6940 case $CAT in 6941 [\\/]* | ?:[\\/]*) 6942 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 6943 ;; 6944 *) 6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946 for as_dir in $PATH 6947 do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6952 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956 done 6957 done 6958 IFS=$as_save_IFS 6959 6960 ;; 6961 esac 6962 fi 6963 CAT=$ac_cv_path_CAT 6964 if test -n "$CAT"; then 6965 { echo "$as_me:$LINENO: result: $CAT" >&5 6966 echo "${ECHO_T}$CAT" >&6; } 6967 else 6968 { echo "$as_me:$LINENO: result: no" >&5 6969 echo "${ECHO_T}no" >&6; } 6970 fi 6971 6972 6973 # Extract the first word of "doxygen", so it can be a program name with args. 6974 set dummy doxygen; ac_word=$2 6975 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6977 if test "${ac_cv_path_DOXYGEN+set}" = set; then 6978 echo $ECHO_N "(cached) $ECHO_C" >&6 6979 else 6980 case $DOXYGEN in 6981 [\\/]* | ?:[\\/]*) 6982 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 6983 ;; 6984 *) 6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6986 for as_dir in $PATH 6987 do 6988 IFS=$as_save_IFS 6989 test -z "$as_dir" && as_dir=. 6990 for ac_exec_ext in '' $ac_executable_extensions; do 6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6992 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6994 break 2 6995 fi 6996 done 6997 done 6998 IFS=$as_save_IFS 6999 7000 ;; 7001 esac 7002 fi 7003 DOXYGEN=$ac_cv_path_DOXYGEN 7004 if test -n "$DOXYGEN"; then 7005 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7006 echo "${ECHO_T}$DOXYGEN" >&6; } 7007 else 7008 { echo "$as_me:$LINENO: result: no" >&5 7009 echo "${ECHO_T}no" >&6; } 7010 fi 7011 7012 7013 # Extract the first word of "groff", so it can be a program name with args. 7014 set dummy groff; ac_word=$2 7015 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7017 if test "${ac_cv_path_GROFF+set}" = set; then 7018 echo $ECHO_N "(cached) $ECHO_C" >&6 7019 else 7020 case $GROFF in 7021 [\\/]* | ?:[\\/]*) 7022 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7023 ;; 7024 *) 7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7026 for as_dir in $PATH 7027 do 7028 IFS=$as_save_IFS 7029 test -z "$as_dir" && as_dir=. 7030 for ac_exec_ext in '' $ac_executable_extensions; do 7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7032 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7034 break 2 7035 fi 7036 done 7037 done 7038 IFS=$as_save_IFS 7039 7040 ;; 7041 esac 7042 fi 7043 GROFF=$ac_cv_path_GROFF 7044 if test -n "$GROFF"; then 7045 { echo "$as_me:$LINENO: result: $GROFF" >&5 7046 echo "${ECHO_T}$GROFF" >&6; } 7047 else 7048 { echo "$as_me:$LINENO: result: no" >&5 7049 echo "${ECHO_T}no" >&6; } 7050 fi 7051 7052 7053 # Extract the first word of "gzip", so it can be a program name with args. 7054 set dummy gzip; ac_word=$2 7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7057 if test "${ac_cv_path_GZIPBIN+set}" = set; then 7058 echo $ECHO_N "(cached) $ECHO_C" >&6 7059 else 7060 case $GZIPBIN in 7061 [\\/]* | ?:[\\/]*) 7062 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7063 ;; 7064 *) 7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7066 for as_dir in $PATH 7067 do 7068 IFS=$as_save_IFS 7069 test -z "$as_dir" && as_dir=. 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7072 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076 done 7077 done 7078 IFS=$as_save_IFS 7079 7080 ;; 7081 esac 7082 fi 7083 GZIPBIN=$ac_cv_path_GZIPBIN 7084 if test -n "$GZIPBIN"; then 7085 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7086 echo "${ECHO_T}$GZIPBIN" >&6; } 7087 else 7088 { echo "$as_me:$LINENO: result: no" >&5 7089 echo "${ECHO_T}no" >&6; } 7090 fi 7091 7092 7093 # Extract the first word of "pdfroff", so it can be a program name with args. 7094 set dummy pdfroff; ac_word=$2 7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7097 if test "${ac_cv_path_PDFROFF+set}" = set; then 7098 echo $ECHO_N "(cached) $ECHO_C" >&6 7099 else 7100 case $PDFROFF in 7101 [\\/]* | ?:[\\/]*) 7102 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7103 ;; 7104 *) 7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7106 for as_dir in $PATH 7107 do 7108 IFS=$as_save_IFS 7109 test -z "$as_dir" && as_dir=. 7110 for ac_exec_ext in '' $ac_executable_extensions; do 7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7112 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7114 break 2 7115 fi 7116 done 7117 done 7118 IFS=$as_save_IFS 7119 7120 ;; 7121 esac 7122 fi 7123 PDFROFF=$ac_cv_path_PDFROFF 7124 if test -n "$PDFROFF"; then 7125 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7126 echo "${ECHO_T}$PDFROFF" >&6; } 7127 else 7128 { echo "$as_me:$LINENO: result: no" >&5 7129 echo "${ECHO_T}no" >&6; } 7130 fi 7131 7132 7133 # Extract the first word of "zip", so it can be a program name with args. 7134 set dummy zip; ac_word=$2 7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7137 if test "${ac_cv_path_ZIP+set}" = set; then 7138 echo $ECHO_N "(cached) $ECHO_C" >&6 7139 else 7140 case $ZIP in 7141 [\\/]* | ?:[\\/]*) 7142 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7143 ;; 7144 *) 7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7146 for as_dir in $PATH 7147 do 7148 IFS=$as_save_IFS 7149 test -z "$as_dir" && as_dir=. 7150 for ac_exec_ext in '' $ac_executable_extensions; do 7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7152 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7154 break 2 7155 fi 7156 done 7157 done 7158 IFS=$as_save_IFS 7159 7160 ;; 7161 esac 7162 fi 7163 ZIP=$ac_cv_path_ZIP 7164 if test -n "$ZIP"; then 7165 { echo "$as_me:$LINENO: result: $ZIP" >&5 7166 echo "${ECHO_T}$ZIP" >&6; } 7167 else 7168 { echo "$as_me:$LINENO: result: no" >&5 7169 echo "${ECHO_T}no" >&6; } 7170 fi 7171 7172 7173 # Extract the first word of "go", so it can be a program name with args. 7174 set dummy go; ac_word=$2 7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7177 if test "${ac_cv_path_GO+set}" = set; then 7178 echo $ECHO_N "(cached) $ECHO_C" >&6 7179 else 7180 case $GO in 7181 [\\/]* | ?:[\\/]*) 7182 ac_cv_path_GO="$GO" # Let the user override the test with a path. 7183 ;; 7184 *) 7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7186 for as_dir in $PATH 7187 do 7188 IFS=$as_save_IFS 7189 test -z "$as_dir" && as_dir=. 7190 for ac_exec_ext in '' $ac_executable_extensions; do 7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7192 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext" 7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7194 break 2 7195 fi 7196 done 7197 done 7198 IFS=$as_save_IFS 7199 7200 ;; 7201 esac 7202 fi 7203 GO=$ac_cv_path_GO 7204 if test -n "$GO"; then 7205 { echo "$as_me:$LINENO: result: $GO" >&5 7206 echo "${ECHO_T}$GO" >&6; } 7207 else 7208 { echo "$as_me:$LINENO: result: no" >&5 7209 echo "${ECHO_T}no" >&6; } 7210 fi 7211 7212 7213 for ac_prog in ocamlfind 7214 do 7215 # Extract the first word of "$ac_prog", so it can be a program name with args. 7216 set dummy $ac_prog; ac_word=$2 7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7219 if test "${ac_cv_path_OCAMLFIND+set}" = set; then 7220 echo $ECHO_N "(cached) $ECHO_C" >&6 7221 else 7222 case $OCAMLFIND in 7223 [\\/]* | ?:[\\/]*) 7224 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path. 7225 ;; 7226 *) 7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7228 for as_dir in $PATH 7229 do 7230 IFS=$as_save_IFS 7231 test -z "$as_dir" && as_dir=. 7232 for ac_exec_ext in '' $ac_executable_extensions; do 7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7234 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext" 7235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7236 break 2 7237 fi 7238 done 7239 done 7240 IFS=$as_save_IFS 7241 7242 ;; 7243 esac 7244 fi 7245 OCAMLFIND=$ac_cv_path_OCAMLFIND 7246 if test -n "$OCAMLFIND"; then 7247 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5 7248 echo "${ECHO_T}$OCAMLFIND" >&6; } 7249 else 7250 { echo "$as_me:$LINENO: result: no" >&5 7251 echo "${ECHO_T}no" >&6; } 7252 fi 7253 7254 7255 test -n "$OCAMLFIND" && break 7256 done 7257 7258 for ac_prog in gas as 7259 do 7260 # Extract the first word of "$ac_prog", so it can be a program name with args. 7261 set dummy $ac_prog; ac_word=$2 7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7264 if test "${ac_cv_path_GAS+set}" = set; then 7265 echo $ECHO_N "(cached) $ECHO_C" >&6 7266 else 7267 case $GAS in 7268 [\\/]* | ?:[\\/]*) 7269 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7270 ;; 7271 *) 7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7273 for as_dir in $PATH 7274 do 7275 IFS=$as_save_IFS 7276 test -z "$as_dir" && as_dir=. 7277 for ac_exec_ext in '' $ac_executable_extensions; do 7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7279 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7281 break 2 7282 fi 7283 done 7284 done 7285 IFS=$as_save_IFS 7286 7287 ;; 7288 esac 7289 fi 7290 GAS=$ac_cv_path_GAS 7291 if test -n "$GAS"; then 7292 { echo "$as_me:$LINENO: result: $GAS" >&5 7293 echo "${ECHO_T}$GAS" >&6; } 7294 else 7295 { echo "$as_me:$LINENO: result: no" >&5 7296 echo "${ECHO_T}no" >&6; } 7297 fi 7298 7299 7300 test -n "$GAS" && break 7301 done 7302 7303 7304 { echo "$as_me:$LINENO: checking for linker version" >&5 7305 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7306 if test "${llvm_cv_link_version+set}" = set; then 7307 echo $ECHO_N "(cached) $ECHO_C" >&6 7308 else 7309 7310 version_string="$(${LD:-ld} -v 2>&1 | head -1)" 7311 7312 # Check for ld64. 7313 if (echo "$version_string" | grep -q "ld64"); then 7314 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7315 else 7316 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7317 fi 7318 7319 fi 7320 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7321 echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7322 7323 cat >>confdefs.h <<_ACEOF 7324 #define HOST_LINK_VERSION "$llvm_cv_link_version" 7325 _ACEOF 7326 7327 7328 7329 7330 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7331 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7332 if test "${llvm_cv_link_use_r+set}" = set; then 7333 echo $ECHO_N "(cached) $ECHO_C" >&6 7334 else 7335 ac_ext=c 7336 ac_cpp='$CPP $CPPFLAGS' 7337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7339 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7340 7341 oldcflags="$CFLAGS" 7342 CFLAGS="$CFLAGS -Wl,-R." 7343 cat >conftest.$ac_ext <<_ACEOF 7344 /* confdefs.h. */ 7345 _ACEOF 7346 cat confdefs.h >>conftest.$ac_ext 7347 cat >>conftest.$ac_ext <<_ACEOF 7348 /* end confdefs.h. */ 7349 7350 int 7351 main () 7352 { 7353 7354 ; 7355 return 0; 7356 } 7357 _ACEOF 7358 rm -f conftest.$ac_objext conftest$ac_exeext 7359 if { (ac_try="$ac_link" 7360 case "(($ac_try" in 7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7362 *) ac_try_echo=$ac_try;; 7363 esac 7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7365 (eval "$ac_link") 2>conftest.er1 7366 ac_status=$? 7367 grep -v '^ *+' conftest.er1 >conftest.err 7368 rm -f conftest.er1 7369 cat conftest.err >&5 7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7371 (exit $ac_status); } && 7372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7373 { (case "(($ac_try" in 7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7375 *) ac_try_echo=$ac_try;; 7376 esac 7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7378 (eval "$ac_try") 2>&5 7379 ac_status=$? 7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7381 (exit $ac_status); }; } && 7382 { ac_try='test -s conftest$ac_exeext' 7383 { (case "(($ac_try" in 7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7385 *) ac_try_echo=$ac_try;; 7386 esac 7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7388 (eval "$ac_try") 2>&5 7389 ac_status=$? 7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7391 (exit $ac_status); }; }; then 7392 llvm_cv_link_use_r=yes 7393 else 7394 echo "$as_me: failed program was:" >&5 7395 sed 's/^/| /' conftest.$ac_ext >&5 7396 7397 llvm_cv_link_use_r=no 7398 fi 7399 7400 rm -f core conftest.err conftest.$ac_objext \ 7401 conftest$ac_exeext conftest.$ac_ext 7402 CFLAGS="$oldcflags" 7403 ac_ext=c 7404 ac_cpp='$CPP $CPPFLAGS' 7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7408 7409 7410 fi 7411 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7412 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7413 if test "$llvm_cv_link_use_r" = yes ; then 7414 7415 cat >>confdefs.h <<\_ACEOF 7416 #define HAVE_LINK_R 1 7417 _ACEOF 7418 7419 fi 7420 7421 7422 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5 7423 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; } 7424 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7425 echo $ECHO_N "(cached) $ECHO_C" >&6 7426 else 7427 ac_ext=c 7428 ac_cpp='$CPP $CPPFLAGS' 7429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7431 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7432 7433 oldcflags="$CFLAGS" 7434 CFLAGS="$CFLAGS -rdynamic" 7435 cat >conftest.$ac_ext <<_ACEOF 7436 /* confdefs.h. */ 7437 _ACEOF 7438 cat confdefs.h >>conftest.$ac_ext 7439 cat >>conftest.$ac_ext <<_ACEOF 7440 /* end confdefs.h. */ 7441 7442 int 7443 main () 7444 { 7445 7446 ; 7447 return 0; 7448 } 7449 _ACEOF 7450 rm -f conftest.$ac_objext conftest$ac_exeext 7451 if { (ac_try="$ac_link" 7452 case "(($ac_try" in 7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7454 *) ac_try_echo=$ac_try;; 7455 esac 7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7457 (eval "$ac_link") 2>conftest.er1 7458 ac_status=$? 7459 grep -v '^ *+' conftest.er1 >conftest.err 7460 rm -f conftest.er1 7461 cat conftest.err >&5 7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7463 (exit $ac_status); } && 7464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7465 { (case "(($ac_try" in 7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7467 *) ac_try_echo=$ac_try;; 7468 esac 7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7470 (eval "$ac_try") 2>&5 7471 ac_status=$? 7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7473 (exit $ac_status); }; } && 7474 { ac_try='test -s conftest$ac_exeext' 7475 { (case "(($ac_try" in 7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7477 *) ac_try_echo=$ac_try;; 7478 esac 7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7480 (eval "$ac_try") 2>&5 7481 ac_status=$? 7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7483 (exit $ac_status); }; }; then 7484 llvm_cv_link_use_export_dynamic=yes 7485 else 7486 echo "$as_me: failed program was:" >&5 7487 sed 's/^/| /' conftest.$ac_ext >&5 7488 7489 llvm_cv_link_use_export_dynamic=no 7490 fi 7491 7492 rm -f core conftest.err conftest.$ac_objext \ 7493 conftest$ac_exeext conftest.$ac_ext 7494 CFLAGS="$oldcflags" 7495 ac_ext=c 7496 ac_cpp='$CPP $CPPFLAGS' 7497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7499 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7500 7501 7502 fi 7503 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 7504 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 7505 if test "$llvm_cv_link_use_export_dynamic" = yes ; then 7506 7507 cat >>confdefs.h <<\_ACEOF 7508 #define HAVE_LINK_EXPORT_DYNAMIC 1 7509 _ACEOF 7510 7511 fi 7512 7513 7514 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 7515 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 7516 if test "${llvm_cv_link_use_version_script+set}" = set; then 7517 echo $ECHO_N "(cached) $ECHO_C" >&6 7518 else 7519 ac_ext=c 7520 ac_cpp='$CPP $CPPFLAGS' 7521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7523 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7524 7525 oldcflags="$CFLAGS" 7526 7527 # The following code is from the autoconf manual, 7528 # "11.13: Limitations of Usual Tools". 7529 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7530 # Use mktemp if possible; otherwise fall back on mkdir, 7531 # with $RANDOM to make collisions less likely. 7532 : ${TMPDIR=/tmp} 7533 { 7534 tmp=` 7535 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7536 ` && 7537 test -n "$tmp" && test -d "$tmp" 7538 } || { 7539 tmp=$TMPDIR/foo$$-$RANDOM 7540 (umask 077 && mkdir "$tmp") 7541 } || exit $? 7542 7543 echo "{" > "$tmp/export.map" 7544 echo " global: main;" >> "$tmp/export.map" 7545 echo " local: *;" >> "$tmp/export.map" 7546 echo "};" >> "$tmp/export.map" 7547 7548 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7549 cat >conftest.$ac_ext <<_ACEOF 7550 /* confdefs.h. */ 7551 _ACEOF 7552 cat confdefs.h >>conftest.$ac_ext 7553 cat >>conftest.$ac_ext <<_ACEOF 7554 /* end confdefs.h. */ 7555 7556 int 7557 main () 7558 { 7559 7560 ; 7561 return 0; 7562 } 7563 _ACEOF 7564 rm -f conftest.$ac_objext conftest$ac_exeext 7565 if { (ac_try="$ac_link" 7566 case "(($ac_try" in 7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7568 *) ac_try_echo=$ac_try;; 7569 esac 7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7571 (eval "$ac_link") 2>conftest.er1 7572 ac_status=$? 7573 grep -v '^ *+' conftest.er1 >conftest.err 7574 rm -f conftest.er1 7575 cat conftest.err >&5 7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7577 (exit $ac_status); } && 7578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7579 { (case "(($ac_try" in 7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7581 *) ac_try_echo=$ac_try;; 7582 esac 7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7584 (eval "$ac_try") 2>&5 7585 ac_status=$? 7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7587 (exit $ac_status); }; } && 7588 { ac_try='test -s conftest$ac_exeext' 7589 { (case "(($ac_try" in 7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7591 *) ac_try_echo=$ac_try;; 7592 esac 7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7594 (eval "$ac_try") 2>&5 7595 ac_status=$? 7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7597 (exit $ac_status); }; }; then 7598 llvm_cv_link_use_version_script=yes 7599 else 7600 echo "$as_me: failed program was:" >&5 7601 sed 's/^/| /' conftest.$ac_ext >&5 7602 7603 llvm_cv_link_use_version_script=no 7604 fi 7605 7606 rm -f core conftest.err conftest.$ac_objext \ 7607 conftest$ac_exeext conftest.$ac_ext 7608 rm "$tmp/export.map" 7609 rmdir "$tmp" 7610 CFLAGS="$oldcflags" 7611 ac_ext=c 7612 ac_cpp='$CPP $CPPFLAGS' 7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7616 7617 7618 fi 7619 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 7620 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 7621 if test "$llvm_cv_link_use_version_script" = yes ; then 7622 HAVE_LINK_VERSION_SCRIPT=1 7623 7624 fi 7625 7626 7627 7628 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 7629 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 7630 if test "${ac_cv_path_GREP+set}" = set; then 7631 echo $ECHO_N "(cached) $ECHO_C" >&6 7632 else 7633 # Extract the first word of "grep ggrep" to use in msg output 7634 if test -z "$GREP"; then 7635 set dummy grep ggrep; ac_prog_name=$2 7636 if test "${ac_cv_path_GREP+set}" = set; then 7637 echo $ECHO_N "(cached) $ECHO_C" >&6 7638 else 7639 ac_path_GREP_found=false 7640 # Loop through the user's path and test for each of PROGNAME-LIST 7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7643 do 7644 IFS=$as_save_IFS 7645 test -z "$as_dir" && as_dir=. 7646 for ac_prog in grep ggrep; do 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7649 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 7650 # Check for GNU ac_path_GREP and select it if it is found. 7651 # Check for GNU $ac_path_GREP 7652 case `"$ac_path_GREP" --version 2>&1` in 7653 *GNU*) 7654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7655 *) 7656 ac_count=0 7657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 7658 while : 7659 do 7660 cat "conftest.in" "conftest.in" >"conftest.tmp" 7661 mv "conftest.tmp" "conftest.in" 7662 cp "conftest.in" "conftest.nl" 7663 echo 'GREP' >> "conftest.nl" 7664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7666 ac_count=`expr $ac_count + 1` 7667 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7668 # Best one so far, save it but keep looking for a better one 7669 ac_cv_path_GREP="$ac_path_GREP" 7670 ac_path_GREP_max=$ac_count 7671 fi 7672 # 10*(2^10) chars as input seems more than enough 7673 test $ac_count -gt 10 && break 7674 done 7675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7676 esac 7677 7678 7679 $ac_path_GREP_found && break 3 7680 done 7681 done 7682 7683 done 7684 IFS=$as_save_IFS 7685 7686 7687 fi 7688 7689 GREP="$ac_cv_path_GREP" 7690 if test -z "$GREP"; then 7691 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 7692 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 7693 { (exit 1); exit 1; }; } 7694 fi 7695 7696 else 7697 ac_cv_path_GREP=$GREP 7698 fi 7699 7700 7701 fi 7702 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 7703 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 7704 GREP="$ac_cv_path_GREP" 7705 7706 7707 { echo "$as_me:$LINENO: checking for egrep" >&5 7708 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 7709 if test "${ac_cv_path_EGREP+set}" = set; then 7710 echo $ECHO_N "(cached) $ECHO_C" >&6 7711 else 7712 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7713 then ac_cv_path_EGREP="$GREP -E" 7714 else 7715 # Extract the first word of "egrep" to use in msg output 7716 if test -z "$EGREP"; then 7717 set dummy egrep; ac_prog_name=$2 7718 if test "${ac_cv_path_EGREP+set}" = set; then 7719 echo $ECHO_N "(cached) $ECHO_C" >&6 7720 else 7721 ac_path_EGREP_found=false 7722 # Loop through the user's path and test for each of PROGNAME-LIST 7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7725 do 7726 IFS=$as_save_IFS 7727 test -z "$as_dir" && as_dir=. 7728 for ac_prog in egrep; do 7729 for ac_exec_ext in '' $ac_executable_extensions; do 7730 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7731 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 7732 # Check for GNU ac_path_EGREP and select it if it is found. 7733 # Check for GNU $ac_path_EGREP 7734 case `"$ac_path_EGREP" --version 2>&1` in 7735 *GNU*) 7736 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7737 *) 7738 ac_count=0 7739 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 7740 while : 7741 do 7742 cat "conftest.in" "conftest.in" >"conftest.tmp" 7743 mv "conftest.tmp" "conftest.in" 7744 cp "conftest.in" "conftest.nl" 7745 echo 'EGREP' >> "conftest.nl" 7746 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7748 ac_count=`expr $ac_count + 1` 7749 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7750 # Best one so far, save it but keep looking for a better one 7751 ac_cv_path_EGREP="$ac_path_EGREP" 7752 ac_path_EGREP_max=$ac_count 7753 fi 7754 # 10*(2^10) chars as input seems more than enough 7755 test $ac_count -gt 10 && break 7756 done 7757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7758 esac 7759 7760 7761 $ac_path_EGREP_found && break 3 7762 done 7763 done 7764 7765 done 7766 IFS=$as_save_IFS 7767 7768 7769 fi 7770 7771 EGREP="$ac_cv_path_EGREP" 7772 if test -z "$EGREP"; then 7773 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 7774 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 7775 { (exit 1); exit 1; }; } 7776 fi 7777 7778 else 7779 ac_cv_path_EGREP=$EGREP 7780 fi 7781 7782 7783 fi 7784 fi 7785 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 7786 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 7787 EGREP="$ac_cv_path_EGREP" 7788 7789 7790 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 7792 if test "${ac_cv_header_stdc+set}" = set; then 7793 echo $ECHO_N "(cached) $ECHO_C" >&6 7794 else 7795 cat >conftest.$ac_ext <<_ACEOF 7796 /* confdefs.h. */ 7797 _ACEOF 7798 cat confdefs.h >>conftest.$ac_ext 7799 cat >>conftest.$ac_ext <<_ACEOF 7800 /* end confdefs.h. */ 7801 #include <stdlib.h> 7802 #include <stdarg.h> 7803 #include <string.h> 7804 #include <float.h> 7805 7806 int 7807 main () 7808 { 7809 7810 ; 7811 return 0; 7812 } 7813 _ACEOF 7814 rm -f conftest.$ac_objext 7815 if { (ac_try="$ac_compile" 7816 case "(($ac_try" in 7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7818 *) ac_try_echo=$ac_try;; 7819 esac 7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7821 (eval "$ac_compile") 2>conftest.er1 7822 ac_status=$? 7823 grep -v '^ *+' conftest.er1 >conftest.err 7824 rm -f conftest.er1 7825 cat conftest.err >&5 7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7827 (exit $ac_status); } && 7828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7829 { (case "(($ac_try" in 7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7831 *) ac_try_echo=$ac_try;; 7832 esac 7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7834 (eval "$ac_try") 2>&5 7835 ac_status=$? 7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 (exit $ac_status); }; } && 7838 { ac_try='test -s conftest.$ac_objext' 7839 { (case "(($ac_try" in 7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7841 *) ac_try_echo=$ac_try;; 7842 esac 7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7844 (eval "$ac_try") 2>&5 7845 ac_status=$? 7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7847 (exit $ac_status); }; }; then 7848 ac_cv_header_stdc=yes 7849 else 7850 echo "$as_me: failed program was:" >&5 7851 sed 's/^/| /' conftest.$ac_ext >&5 7852 7853 ac_cv_header_stdc=no 7854 fi 7855 7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7857 7858 if test $ac_cv_header_stdc = yes; then 7859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7860 cat >conftest.$ac_ext <<_ACEOF 7861 /* confdefs.h. */ 7862 _ACEOF 7863 cat confdefs.h >>conftest.$ac_ext 7864 cat >>conftest.$ac_ext <<_ACEOF 7865 /* end confdefs.h. */ 7866 #include <string.h> 7867 7868 _ACEOF 7869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7870 $EGREP "memchr" >/dev/null 2>&1; then 7871 : 7872 else 7873 ac_cv_header_stdc=no 7874 fi 7875 rm -f conftest* 7876 7877 fi 7878 7879 if test $ac_cv_header_stdc = yes; then 7880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7881 cat >conftest.$ac_ext <<_ACEOF 7882 /* confdefs.h. */ 7883 _ACEOF 7884 cat confdefs.h >>conftest.$ac_ext 7885 cat >>conftest.$ac_ext <<_ACEOF 7886 /* end confdefs.h. */ 7887 #include <stdlib.h> 7888 7889 _ACEOF 7890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7891 $EGREP "free" >/dev/null 2>&1; then 7892 : 7893 else 7894 ac_cv_header_stdc=no 7895 fi 7896 rm -f conftest* 7897 7898 fi 7899 7900 if test $ac_cv_header_stdc = yes; then 7901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7902 if test "$cross_compiling" = yes; then 7903 : 7904 else 7905 cat >conftest.$ac_ext <<_ACEOF 7906 /* confdefs.h. */ 7907 _ACEOF 7908 cat confdefs.h >>conftest.$ac_ext 7909 cat >>conftest.$ac_ext <<_ACEOF 7910 /* end confdefs.h. */ 7911 #include <ctype.h> 7912 #include <stdlib.h> 7913 #if ((' ' & 0x0FF) == 0x020) 7914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7916 #else 7917 # define ISLOWER(c) \ 7918 (('a' <= (c) && (c) <= 'i') \ 7919 || ('j' <= (c) && (c) <= 'r') \ 7920 || ('s' <= (c) && (c) <= 'z')) 7921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7922 #endif 7923 7924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7925 int 7926 main () 7927 { 7928 int i; 7929 for (i = 0; i < 256; i++) 7930 if (XOR (islower (i), ISLOWER (i)) 7931 || toupper (i) != TOUPPER (i)) 7932 return 2; 7933 return 0; 7934 } 7935 _ACEOF 7936 rm -f conftest$ac_exeext 7937 if { (ac_try="$ac_link" 7938 case "(($ac_try" in 7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7940 *) ac_try_echo=$ac_try;; 7941 esac 7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7943 (eval "$ac_link") 2>&5 7944 ac_status=$? 7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7947 { (case "(($ac_try" in 7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7949 *) ac_try_echo=$ac_try;; 7950 esac 7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7952 (eval "$ac_try") 2>&5 7953 ac_status=$? 7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7955 (exit $ac_status); }; }; then 7956 : 7957 else 7958 echo "$as_me: program exited with status $ac_status" >&5 7959 echo "$as_me: failed program was:" >&5 7960 sed 's/^/| /' conftest.$ac_ext >&5 7961 7962 ( exit $ac_status ) 7963 ac_cv_header_stdc=no 7964 fi 7965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7966 fi 7967 7968 7969 fi 7970 fi 7971 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7972 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 7973 if test $ac_cv_header_stdc = yes; then 7974 7975 cat >>confdefs.h <<\_ACEOF 7976 #define STDC_HEADERS 1 7977 _ACEOF 7978 7979 fi 7980 7981 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7992 inttypes.h stdint.h unistd.h 7993 do 7994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7995 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7998 echo $ECHO_N "(cached) $ECHO_C" >&6 7999 else 8000 cat >conftest.$ac_ext <<_ACEOF 8001 /* confdefs.h. */ 8002 _ACEOF 8003 cat confdefs.h >>conftest.$ac_ext 8004 cat >>conftest.$ac_ext <<_ACEOF 8005 /* end confdefs.h. */ 8006 $ac_includes_default 8007 8008 #include <$ac_header> 8009 _ACEOF 8010 rm -f conftest.$ac_objext 8011 if { (ac_try="$ac_compile" 8012 case "(($ac_try" in 8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8014 *) ac_try_echo=$ac_try;; 8015 esac 8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8017 (eval "$ac_compile") 2>conftest.er1 8018 ac_status=$? 8019 grep -v '^ *+' conftest.er1 >conftest.err 8020 rm -f conftest.er1 8021 cat conftest.err >&5 8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8023 (exit $ac_status); } && 8024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8025 { (case "(($ac_try" in 8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8027 *) ac_try_echo=$ac_try;; 8028 esac 8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8030 (eval "$ac_try") 2>&5 8031 ac_status=$? 8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8033 (exit $ac_status); }; } && 8034 { ac_try='test -s conftest.$ac_objext' 8035 { (case "(($ac_try" in 8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8037 *) ac_try_echo=$ac_try;; 8038 esac 8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8040 (eval "$ac_try") 2>&5 8041 ac_status=$? 8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8043 (exit $ac_status); }; }; then 8044 eval "$as_ac_Header=yes" 8045 else 8046 echo "$as_me: failed program was:" >&5 8047 sed 's/^/| /' conftest.$ac_ext >&5 8048 8049 eval "$as_ac_Header=no" 8050 fi 8051 8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8053 fi 8054 ac_res=`eval echo '${'$as_ac_Header'}'` 8055 { echo "$as_me:$LINENO: result: $ac_res" >&5 8056 echo "${ECHO_T}$ac_res" >&6; } 8057 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8058 cat >>confdefs.h <<_ACEOF 8059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8060 _ACEOF 8061 8062 fi 8063 8064 done 8065 8066 8067 8068 for ac_header in errno.h 8069 do 8070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8072 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8075 echo $ECHO_N "(cached) $ECHO_C" >&6 8076 fi 8077 ac_res=`eval echo '${'$as_ac_Header'}'` 8078 { echo "$as_me:$LINENO: result: $ac_res" >&5 8079 echo "${ECHO_T}$ac_res" >&6; } 8080 else 8081 # Is the header compilable? 8082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 8083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8084 cat >conftest.$ac_ext <<_ACEOF 8085 /* confdefs.h. */ 8086 _ACEOF 8087 cat confdefs.h >>conftest.$ac_ext 8088 cat >>conftest.$ac_ext <<_ACEOF 8089 /* end confdefs.h. */ 8090 $ac_includes_default 8091 #include <$ac_header> 8092 _ACEOF 8093 rm -f conftest.$ac_objext 8094 if { (ac_try="$ac_compile" 8095 case "(($ac_try" in 8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8097 *) ac_try_echo=$ac_try;; 8098 esac 8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8100 (eval "$ac_compile") 2>conftest.er1 8101 ac_status=$? 8102 grep -v '^ *+' conftest.er1 >conftest.err 8103 rm -f conftest.er1 8104 cat conftest.err >&5 8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8106 (exit $ac_status); } && 8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8108 { (case "(($ac_try" in 8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8110 *) ac_try_echo=$ac_try;; 8111 esac 8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8113 (eval "$ac_try") 2>&5 8114 ac_status=$? 8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8116 (exit $ac_status); }; } && 8117 { ac_try='test -s conftest.$ac_objext' 8118 { (case "(($ac_try" in 8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8120 *) ac_try_echo=$ac_try;; 8121 esac 8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8123 (eval "$ac_try") 2>&5 8124 ac_status=$? 8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8126 (exit $ac_status); }; }; then 8127 ac_header_compiler=yes 8128 else 8129 echo "$as_me: failed program was:" >&5 8130 sed 's/^/| /' conftest.$ac_ext >&5 8131 8132 ac_header_compiler=no 8133 fi 8134 8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8137 echo "${ECHO_T}$ac_header_compiler" >&6; } 8138 8139 # Is the header present? 8140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 8141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8142 cat >conftest.$ac_ext <<_ACEOF 8143 /* confdefs.h. */ 8144 _ACEOF 8145 cat confdefs.h >>conftest.$ac_ext 8146 cat >>conftest.$ac_ext <<_ACEOF 8147 /* end confdefs.h. */ 8148 #include <$ac_header> 8149 _ACEOF 8150 if { (ac_try="$ac_cpp conftest.$ac_ext" 8151 case "(($ac_try" in 8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8153 *) ac_try_echo=$ac_try;; 8154 esac 8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8157 ac_status=$? 8158 grep -v '^ *+' conftest.er1 >conftest.err 8159 rm -f conftest.er1 8160 cat conftest.err >&5 8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8162 (exit $ac_status); } >/dev/null; then 8163 if test -s conftest.err; then 8164 ac_cpp_err=$ac_c_preproc_warn_flag 8165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8166 else 8167 ac_cpp_err= 8168 fi 8169 else 8170 ac_cpp_err=yes 8171 fi 8172 if test -z "$ac_cpp_err"; then 8173 ac_header_preproc=yes 8174 else 8175 echo "$as_me: failed program was:" >&5 8176 sed 's/^/| /' conftest.$ac_ext >&5 8177 8178 ac_header_preproc=no 8179 fi 8180 8181 rm -f conftest.err conftest.$ac_ext 8182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8183 echo "${ECHO_T}$ac_header_preproc" >&6; } 8184 8185 # So? What about this header? 8186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8187 yes:no: ) 8188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8192 ac_header_preproc=yes 8193 ;; 8194 no:yes:* ) 8195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8207 ( cat <<\_ASBOX 8208 ## ------------------------------------ ## 8209 ## Report this to http://llvm.org/bugs/ ## 8210 ## ------------------------------------ ## 8211 _ASBOX 8212 ) | sed "s/^/$as_me: WARNING: /" >&2 8213 ;; 8214 esac 8215 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8218 echo $ECHO_N "(cached) $ECHO_C" >&6 8219 else 8220 eval "$as_ac_Header=\$ac_header_preproc" 8221 fi 8222 ac_res=`eval echo '${'$as_ac_Header'}'` 8223 { echo "$as_me:$LINENO: result: $ac_res" >&5 8224 echo "${ECHO_T}$ac_res" >&6; } 8225 8226 fi 8227 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8228 cat >>confdefs.h <<_ACEOF 8229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8230 _ACEOF 8231 8232 fi 8233 8234 done 8235 8236 8237 case "$llvm_cv_os_type" in 8238 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;; 8239 Darwin) llvm_shlib_ext=.dylib ;; 8240 *) llvm_shlib_ext=.so ;; 8241 esac 8242 8243 8244 cat >>confdefs.h <<_ACEOF 8245 #define LTDL_SHLIB_EXT "$llvm_shlib_ext" 8246 _ACEOF 8247 8248 8249 { echo "$as_me:$LINENO: checking tool compatibility" >&5 8250 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 8251 8252 ICC=no 8253 IXX=no 8254 case $CC in 8255 icc*|icpc*) 8256 ICC=yes 8257 IXX=yes 8258 ;; 8259 *) 8260 ;; 8261 esac 8262 8263 if test "$GCC" != "yes" && test "$ICC" != "yes" 8264 then 8265 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 8266 echo "$as_me: error: gcc|icc required but not found" >&2;} 8267 { (exit 1); exit 1; }; } 8268 fi 8269 8270 if test "$GXX" != "yes" && test "$IXX" != "yes" 8271 then 8272 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 8273 echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 8274 { (exit 1); exit 1; }; } 8275 fi 8276 8277 if test "$GCC" = "yes" 8278 then 8279 cat >conftest.$ac_ext <<_ACEOF 8280 8281 /* confdefs.h. */ 8282 _ACEOF 8283 cat confdefs.h >>conftest.$ac_ext 8284 cat >>conftest.$ac_ext <<_ACEOF 8285 /* end confdefs.h. */ 8286 8287 #if !defined(__GNUC__) || __GNUC__ < 3 8288 #error Unsupported GCC version 8289 #endif 8290 8291 8292 _ACEOF 8293 rm -f conftest.$ac_objext 8294 if { (ac_try="$ac_compile" 8295 case "(($ac_try" in 8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8297 *) ac_try_echo=$ac_try;; 8298 esac 8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8300 (eval "$ac_compile") 2>conftest.er1 8301 ac_status=$? 8302 grep -v '^ *+' conftest.er1 >conftest.err 8303 rm -f conftest.er1 8304 cat conftest.err >&5 8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8306 (exit $ac_status); } && 8307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8308 { (case "(($ac_try" in 8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8310 *) ac_try_echo=$ac_try;; 8311 esac 8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8313 (eval "$ac_try") 2>&5 8314 ac_status=$? 8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8316 (exit $ac_status); }; } && 8317 { ac_try='test -s conftest.$ac_objext' 8318 { (case "(($ac_try" in 8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8320 *) ac_try_echo=$ac_try;; 8321 esac 8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8323 (eval "$ac_try") 2>&5 8324 ac_status=$? 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 (exit $ac_status); }; }; then 8327 : 8328 else 8329 echo "$as_me: failed program was:" >&5 8330 sed 's/^/| /' conftest.$ac_ext >&5 8331 8332 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 8333 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 8334 { (exit 1); exit 1; }; } 8335 fi 8336 8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8338 fi 8339 8340 if test -z "$llvm_cv_gnu_make_command" 8341 then 8342 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 8343 echo "$as_me: error: GNU Make required but not found" >&2;} 8344 { (exit 1); exit 1; }; } 8345 fi 8346 8347 { echo "$as_me:$LINENO: result: ok" >&5 8348 echo "${ECHO_T}ok" >&6; } 8349 8350 { echo "$as_me:$LINENO: checking optional compiler flags" >&5 8351 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 8352 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 8353 8354 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 8355 8356 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 8357 8358 8359 NO_UNINITIALIZED= 8360 NO_MAYBE_UNINITIALIZED= 8361 if test "$GXX" = "yes" 8362 then 8363 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 8364 8365 if test -z "$NO_MAYBE_UNINITIALIZED" 8366 then 8367 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 8368 8369 fi 8370 fi 8371 8372 no_comment= 8373 llvm_cv_old_cxxflags="$CXXFLAGS" 8374 CXXFLAGS="$CXXFLAGS -Wcomment -Werror" 8375 cat >conftest.$ac_ext <<_ACEOF 8376 8377 /* confdefs.h. */ 8378 _ACEOF 8379 cat confdefs.h >>conftest.$ac_ext 8380 cat >>conftest.$ac_ext <<_ACEOF 8381 /* end confdefs.h. */ 8382 // Comment \o\ 8383 // Another comment 8384 int main() { return 0; } 8385 8386 8387 _ACEOF 8388 rm -f conftest.$ac_objext 8389 if { (ac_try="$ac_compile" 8390 case "(($ac_try" in 8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8392 *) ac_try_echo=$ac_try;; 8393 esac 8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8395 (eval "$ac_compile") 2>conftest.er1 8396 ac_status=$? 8397 grep -v '^ *+' conftest.er1 >conftest.err 8398 rm -f conftest.er1 8399 cat conftest.err >&5 8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8401 (exit $ac_status); } && 8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8403 { (case "(($ac_try" in 8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8405 *) ac_try_echo=$ac_try;; 8406 esac 8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8408 (eval "$ac_try") 2>&5 8409 ac_status=$? 8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8411 (exit $ac_status); }; } && 8412 { ac_try='test -s conftest.$ac_objext' 8413 { (case "(($ac_try" in 8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8415 *) ac_try_echo=$ac_try;; 8416 esac 8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8418 (eval "$ac_try") 2>&5 8419 ac_status=$? 8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8421 (exit $ac_status); }; }; then 8422 8423 no_comment=-Wno-comment 8424 8425 else 8426 echo "$as_me: failed program was:" >&5 8427 sed 's/^/| /' conftest.$ac_ext >&5 8428 8429 8430 fi 8431 8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8433 NO_COMMENT=$no_comment 8434 8435 CXXFLAGS="$llvm_cv_old_cxxflags" 8436 8437 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5 8438 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; } 8439 8440 8441 # Check whether --with-python was given. 8442 if test "${with_python+set}" = set; then 8443 withval=$with_python; PYTHON="$withval" 8444 fi 8445 8446 8447 if test -n "$PYTHON" && test -x "$PYTHON" ; then 8448 { echo "$as_me:$LINENO: checking for python" >&5 8449 echo $ECHO_N "checking for python... $ECHO_C" >&6; } 8450 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5 8451 echo "${ECHO_T}user defined: $with_python" >&6; } 8452 else 8453 if test -n "$PYTHON" ; then 8454 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5 8455 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;} 8456 fi 8457 8458 # Extract the first word of "python python2 python27", so it can be a program name with args. 8459 set dummy python python2 python27; ac_word=$2 8460 { echo "$as_me:$LINENO: checking for $ac_word" >&5 8461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8462 if test "${ac_cv_path_PYTHON+set}" = set; then 8463 echo $ECHO_N "(cached) $ECHO_C" >&6 8464 else 8465 case $PYTHON in 8466 [\\/]* | ?:[\\/]*) 8467 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 8468 ;; 8469 *) 8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8471 for as_dir in $PATH 8472 do 8473 IFS=$as_save_IFS 8474 test -z "$as_dir" && as_dir=. 8475 for ac_exec_ext in '' $ac_executable_extensions; do 8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8477 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8479 break 2 8480 fi 8481 done 8482 done 8483 IFS=$as_save_IFS 8484 8485 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5 8486 echo "${ECHO_T}not found" >&6; } 8487 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5 8488 echo "$as_me: error: could not find python 2.7 or higher" >&2;} 8489 { (exit 1); exit 1; }; }" 8490 ;; 8491 esac 8492 fi 8493 PYTHON=$ac_cv_path_PYTHON 8494 if test -n "$PYTHON"; then 8495 { echo "$as_me:$LINENO: result: $PYTHON" >&5 8496 echo "${ECHO_T}$PYTHON" >&6; } 8497 else 8498 { echo "$as_me:$LINENO: result: no" >&5 8499 echo "${ECHO_T}no" >&6; } 8500 fi 8501 8502 8503 fi 8504 8505 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5 8506 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; } 8507 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2` 8508 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1` 8509 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2` 8510 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3` 8511 if test "$ac_python_version_major" -gt "2" || \ 8512 (test "$ac_python_version_major" -eq "2" && \ 8513 test "$ac_python_version_minor" -ge "7") ; then 8514 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5 8515 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; } 8516 else 8517 { echo "$as_me:$LINENO: result: not found" >&5 8518 echo "${ECHO_T}not found" >&6; } 8519 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7 8520 See \`config.log' for more details." >&5 8521 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7 8522 See \`config.log' for more details." >&2;} 8523 { (exit 1); exit 1; }; } 8524 fi 8525 8526 8527 8528 { echo "$as_me:$LINENO: checking for sin in -lm" >&5 8529 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 8530 if test "${ac_cv_lib_m_sin+set}" = set; then 8531 echo $ECHO_N "(cached) $ECHO_C" >&6 8532 else 8533 ac_check_lib_save_LIBS=$LIBS 8534 LIBS="-lm $LIBS" 8535 cat >conftest.$ac_ext <<_ACEOF 8536 /* confdefs.h. */ 8537 _ACEOF 8538 cat confdefs.h >>conftest.$ac_ext 8539 cat >>conftest.$ac_ext <<_ACEOF 8540 /* end confdefs.h. */ 8541 8542 /* Override any GCC internal prototype to avoid an error. 8543 Use char because int might match the return type of a GCC 8544 builtin and then its argument prototype would still apply. */ 8545 #ifdef __cplusplus 8546 extern "C" 8547 #endif 8548 char sin (); 8549 int 8550 main () 8551 { 8552 return sin (); 8553 ; 8554 return 0; 8555 } 8556 _ACEOF 8557 rm -f conftest.$ac_objext conftest$ac_exeext 8558 if { (ac_try="$ac_link" 8559 case "(($ac_try" in 8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8561 *) ac_try_echo=$ac_try;; 8562 esac 8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8564 (eval "$ac_link") 2>conftest.er1 8565 ac_status=$? 8566 grep -v '^ *+' conftest.er1 >conftest.err 8567 rm -f conftest.er1 8568 cat conftest.err >&5 8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8570 (exit $ac_status); } && 8571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8572 { (case "(($ac_try" in 8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8574 *) ac_try_echo=$ac_try;; 8575 esac 8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8577 (eval "$ac_try") 2>&5 8578 ac_status=$? 8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8580 (exit $ac_status); }; } && 8581 { ac_try='test -s conftest$ac_exeext' 8582 { (case "(($ac_try" in 8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8584 *) ac_try_echo=$ac_try;; 8585 esac 8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8587 (eval "$ac_try") 2>&5 8588 ac_status=$? 8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8590 (exit $ac_status); }; }; then 8591 ac_cv_lib_m_sin=yes 8592 else 8593 echo "$as_me: failed program was:" >&5 8594 sed 's/^/| /' conftest.$ac_ext >&5 8595 8596 ac_cv_lib_m_sin=no 8597 fi 8598 8599 rm -f core conftest.err conftest.$ac_objext \ 8600 conftest$ac_exeext conftest.$ac_ext 8601 LIBS=$ac_check_lib_save_LIBS 8602 fi 8603 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 8604 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 8605 if test $ac_cv_lib_m_sin = yes; then 8606 cat >>confdefs.h <<_ACEOF 8607 #define HAVE_LIBM 1 8608 _ACEOF 8609 8610 LIBS="-lm $LIBS" 8611 8612 fi 8613 8614 if test "$llvm_cv_os_type" = "MingW" ; then 8615 8616 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 8617 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 8618 if test "${ac_cv_lib_imagehlp_main+set}" = set; then 8619 echo $ECHO_N "(cached) $ECHO_C" >&6 8620 else 8621 ac_check_lib_save_LIBS=$LIBS 8622 LIBS="-limagehlp $LIBS" 8623 cat >conftest.$ac_ext <<_ACEOF 8624 /* confdefs.h. */ 8625 _ACEOF 8626 cat confdefs.h >>conftest.$ac_ext 8627 cat >>conftest.$ac_ext <<_ACEOF 8628 /* end confdefs.h. */ 8629 8630 8631 int 8632 main () 8633 { 8634 return main (); 8635 ; 8636 return 0; 8637 } 8638 _ACEOF 8639 rm -f conftest.$ac_objext conftest$ac_exeext 8640 if { (ac_try="$ac_link" 8641 case "(($ac_try" in 8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8643 *) ac_try_echo=$ac_try;; 8644 esac 8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8646 (eval "$ac_link") 2>conftest.er1 8647 ac_status=$? 8648 grep -v '^ *+' conftest.er1 >conftest.err 8649 rm -f conftest.er1 8650 cat conftest.err >&5 8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8652 (exit $ac_status); } && 8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8654 { (case "(($ac_try" in 8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8656 *) ac_try_echo=$ac_try;; 8657 esac 8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8659 (eval "$ac_try") 2>&5 8660 ac_status=$? 8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8662 (exit $ac_status); }; } && 8663 { ac_try='test -s conftest$ac_exeext' 8664 { (case "(($ac_try" in 8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8666 *) ac_try_echo=$ac_try;; 8667 esac 8668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8669 (eval "$ac_try") 2>&5 8670 ac_status=$? 8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8672 (exit $ac_status); }; }; then 8673 ac_cv_lib_imagehlp_main=yes 8674 else 8675 echo "$as_me: failed program was:" >&5 8676 sed 's/^/| /' conftest.$ac_ext >&5 8677 8678 ac_cv_lib_imagehlp_main=no 8679 fi 8680 8681 rm -f core conftest.err conftest.$ac_objext \ 8682 conftest$ac_exeext conftest.$ac_ext 8683 LIBS=$ac_check_lib_save_LIBS 8684 fi 8685 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 8686 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 8687 if test $ac_cv_lib_imagehlp_main = yes; then 8688 cat >>confdefs.h <<_ACEOF 8689 #define HAVE_LIBIMAGEHLP 1 8690 _ACEOF 8691 8692 LIBS="-limagehlp $LIBS" 8693 8694 fi 8695 8696 8697 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 8698 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 8699 if test "${ac_cv_lib_psapi_main+set}" = set; then 8700 echo $ECHO_N "(cached) $ECHO_C" >&6 8701 else 8702 ac_check_lib_save_LIBS=$LIBS 8703 LIBS="-lpsapi $LIBS" 8704 cat >conftest.$ac_ext <<_ACEOF 8705 /* confdefs.h. */ 8706 _ACEOF 8707 cat confdefs.h >>conftest.$ac_ext 8708 cat >>conftest.$ac_ext <<_ACEOF 8709 /* end confdefs.h. */ 8710 8711 8712 int 8713 main () 8714 { 8715 return main (); 8716 ; 8717 return 0; 8718 } 8719 _ACEOF 8720 rm -f conftest.$ac_objext conftest$ac_exeext 8721 if { (ac_try="$ac_link" 8722 case "(($ac_try" in 8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8724 *) ac_try_echo=$ac_try;; 8725 esac 8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8727 (eval "$ac_link") 2>conftest.er1 8728 ac_status=$? 8729 grep -v '^ *+' conftest.er1 >conftest.err 8730 rm -f conftest.er1 8731 cat conftest.err >&5 8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8733 (exit $ac_status); } && 8734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8735 { (case "(($ac_try" in 8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8737 *) ac_try_echo=$ac_try;; 8738 esac 8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8740 (eval "$ac_try") 2>&5 8741 ac_status=$? 8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8743 (exit $ac_status); }; } && 8744 { ac_try='test -s conftest$ac_exeext' 8745 { (case "(($ac_try" in 8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8747 *) ac_try_echo=$ac_try;; 8748 esac 8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8750 (eval "$ac_try") 2>&5 8751 ac_status=$? 8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8753 (exit $ac_status); }; }; then 8754 ac_cv_lib_psapi_main=yes 8755 else 8756 echo "$as_me: failed program was:" >&5 8757 sed 's/^/| /' conftest.$ac_ext >&5 8758 8759 ac_cv_lib_psapi_main=no 8760 fi 8761 8762 rm -f core conftest.err conftest.$ac_objext \ 8763 conftest$ac_exeext conftest.$ac_ext 8764 LIBS=$ac_check_lib_save_LIBS 8765 fi 8766 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 8767 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 8768 if test $ac_cv_lib_psapi_main = yes; then 8769 cat >>confdefs.h <<_ACEOF 8770 #define HAVE_LIBPSAPI 1 8771 _ACEOF 8772 8773 LIBS="-lpsapi $LIBS" 8774 8775 fi 8776 8777 8778 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5 8779 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; } 8780 if test "${ac_cv_lib_shell32_main+set}" = set; then 8781 echo $ECHO_N "(cached) $ECHO_C" >&6 8782 else 8783 ac_check_lib_save_LIBS=$LIBS 8784 LIBS="-lshell32 $LIBS" 8785 cat >conftest.$ac_ext <<_ACEOF 8786 /* confdefs.h. */ 8787 _ACEOF 8788 cat confdefs.h >>conftest.$ac_ext 8789 cat >>conftest.$ac_ext <<_ACEOF 8790 /* end confdefs.h. */ 8791 8792 8793 int 8794 main () 8795 { 8796 return main (); 8797 ; 8798 return 0; 8799 } 8800 _ACEOF 8801 rm -f conftest.$ac_objext conftest$ac_exeext 8802 if { (ac_try="$ac_link" 8803 case "(($ac_try" in 8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8805 *) ac_try_echo=$ac_try;; 8806 esac 8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8808 (eval "$ac_link") 2>conftest.er1 8809 ac_status=$? 8810 grep -v '^ *+' conftest.er1 >conftest.err 8811 rm -f conftest.er1 8812 cat conftest.err >&5 8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8814 (exit $ac_status); } && 8815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8816 { (case "(($ac_try" in 8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8818 *) ac_try_echo=$ac_try;; 8819 esac 8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8821 (eval "$ac_try") 2>&5 8822 ac_status=$? 8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8824 (exit $ac_status); }; } && 8825 { ac_try='test -s conftest$ac_exeext' 8826 { (case "(($ac_try" in 8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8828 *) ac_try_echo=$ac_try;; 8829 esac 8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8831 (eval "$ac_try") 2>&5 8832 ac_status=$? 8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8834 (exit $ac_status); }; }; then 8835 ac_cv_lib_shell32_main=yes 8836 else 8837 echo "$as_me: failed program was:" >&5 8838 sed 's/^/| /' conftest.$ac_ext >&5 8839 8840 ac_cv_lib_shell32_main=no 8841 fi 8842 8843 rm -f core conftest.err conftest.$ac_objext \ 8844 conftest$ac_exeext conftest.$ac_ext 8845 LIBS=$ac_check_lib_save_LIBS 8846 fi 8847 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5 8848 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; } 8849 if test $ac_cv_lib_shell32_main = yes; then 8850 cat >>confdefs.h <<_ACEOF 8851 #define HAVE_LIBSHELL32 1 8852 _ACEOF 8853 8854 LIBS="-lshell32 $LIBS" 8855 8856 fi 8857 8858 fi 8859 8860 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 8861 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 8862 if test "${ac_cv_search_dlopen+set}" = set; then 8863 echo $ECHO_N "(cached) $ECHO_C" >&6 8864 else 8865 ac_func_search_save_LIBS=$LIBS 8866 cat >conftest.$ac_ext <<_ACEOF 8867 /* confdefs.h. */ 8868 _ACEOF 8869 cat confdefs.h >>conftest.$ac_ext 8870 cat >>conftest.$ac_ext <<_ACEOF 8871 /* end confdefs.h. */ 8872 8873 /* Override any GCC internal prototype to avoid an error. 8874 Use char because int might match the return type of a GCC 8875 builtin and then its argument prototype would still apply. */ 8876 #ifdef __cplusplus 8877 extern "C" 8878 #endif 8879 char dlopen (); 8880 int 8881 main () 8882 { 8883 return dlopen (); 8884 ; 8885 return 0; 8886 } 8887 _ACEOF 8888 for ac_lib in '' dl; do 8889 if test -z "$ac_lib"; then 8890 ac_res="none required" 8891 else 8892 ac_res=-l$ac_lib 8893 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8894 fi 8895 rm -f conftest.$ac_objext conftest$ac_exeext 8896 if { (ac_try="$ac_link" 8897 case "(($ac_try" in 8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8899 *) ac_try_echo=$ac_try;; 8900 esac 8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8902 (eval "$ac_link") 2>conftest.er1 8903 ac_status=$? 8904 grep -v '^ *+' conftest.er1 >conftest.err 8905 rm -f conftest.er1 8906 cat conftest.err >&5 8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8908 (exit $ac_status); } && 8909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8910 { (case "(($ac_try" in 8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8912 *) ac_try_echo=$ac_try;; 8913 esac 8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8915 (eval "$ac_try") 2>&5 8916 ac_status=$? 8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8918 (exit $ac_status); }; } && 8919 { ac_try='test -s conftest$ac_exeext' 8920 { (case "(($ac_try" in 8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8922 *) ac_try_echo=$ac_try;; 8923 esac 8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8925 (eval "$ac_try") 2>&5 8926 ac_status=$? 8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8928 (exit $ac_status); }; }; then 8929 ac_cv_search_dlopen=$ac_res 8930 else 8931 echo "$as_me: failed program was:" >&5 8932 sed 's/^/| /' conftest.$ac_ext >&5 8933 8934 8935 fi 8936 8937 rm -f core conftest.err conftest.$ac_objext \ 8938 conftest$ac_exeext 8939 if test "${ac_cv_search_dlopen+set}" = set; then 8940 break 8941 fi 8942 done 8943 if test "${ac_cv_search_dlopen+set}" = set; then 8944 : 8945 else 8946 ac_cv_search_dlopen=no 8947 fi 8948 rm conftest.$ac_ext 8949 LIBS=$ac_func_search_save_LIBS 8950 fi 8951 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 8952 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 8953 ac_res=$ac_cv_search_dlopen 8954 if test "$ac_res" != no; then 8955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8956 8957 8958 cat >>confdefs.h <<\_ACEOF 8959 #define HAVE_DLOPEN 1 8960 _ACEOF 8961 8962 HAVE_DLOPEN='1' 8963 8964 8965 else 8966 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 8967 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 8968 fi 8969 8970 8971 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 8972 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } 8973 if test "${ac_cv_search_clock_gettime+set}" = set; then 8974 echo $ECHO_N "(cached) $ECHO_C" >&6 8975 else 8976 ac_func_search_save_LIBS=$LIBS 8977 cat >conftest.$ac_ext <<_ACEOF 8978 /* confdefs.h. */ 8979 _ACEOF 8980 cat confdefs.h >>conftest.$ac_ext 8981 cat >>conftest.$ac_ext <<_ACEOF 8982 /* end confdefs.h. */ 8983 8984 /* Override any GCC internal prototype to avoid an error. 8985 Use char because int might match the return type of a GCC 8986 builtin and then its argument prototype would still apply. */ 8987 #ifdef __cplusplus 8988 extern "C" 8989 #endif 8990 char clock_gettime (); 8991 int 8992 main () 8993 { 8994 return clock_gettime (); 8995 ; 8996 return 0; 8997 } 8998 _ACEOF 8999 for ac_lib in '' rt; do 9000 if test -z "$ac_lib"; then 9001 ac_res="none required" 9002 else 9003 ac_res=-l$ac_lib 9004 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9005 fi 9006 rm -f conftest.$ac_objext conftest$ac_exeext 9007 if { (ac_try="$ac_link" 9008 case "(($ac_try" in 9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9010 *) ac_try_echo=$ac_try;; 9011 esac 9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9013 (eval "$ac_link") 2>conftest.er1 9014 ac_status=$? 9015 grep -v '^ *+' conftest.er1 >conftest.err 9016 rm -f conftest.er1 9017 cat conftest.err >&5 9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9019 (exit $ac_status); } && 9020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9021 { (case "(($ac_try" in 9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9023 *) ac_try_echo=$ac_try;; 9024 esac 9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9026 (eval "$ac_try") 2>&5 9027 ac_status=$? 9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9029 (exit $ac_status); }; } && 9030 { ac_try='test -s conftest$ac_exeext' 9031 { (case "(($ac_try" in 9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9033 *) ac_try_echo=$ac_try;; 9034 esac 9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9036 (eval "$ac_try") 2>&5 9037 ac_status=$? 9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9039 (exit $ac_status); }; }; then 9040 ac_cv_search_clock_gettime=$ac_res 9041 else 9042 echo "$as_me: failed program was:" >&5 9043 sed 's/^/| /' conftest.$ac_ext >&5 9044 9045 9046 fi 9047 9048 rm -f core conftest.err conftest.$ac_objext \ 9049 conftest$ac_exeext 9050 if test "${ac_cv_search_clock_gettime+set}" = set; then 9051 break 9052 fi 9053 done 9054 if test "${ac_cv_search_clock_gettime+set}" = set; then 9055 : 9056 else 9057 ac_cv_search_clock_gettime=no 9058 fi 9059 rm conftest.$ac_ext 9060 LIBS=$ac_func_search_save_LIBS 9061 fi 9062 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 9063 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } 9064 ac_res=$ac_cv_search_clock_gettime 9065 if test "$ac_res" != no; then 9066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9067 9068 fi 9069 9070 9071 if test "$llvm_cv_enable_terminfo" = "yes" ; then 9072 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5 9073 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; } 9074 if test "${ac_cv_search_setupterm+set}" = set; then 9075 echo $ECHO_N "(cached) $ECHO_C" >&6 9076 else 9077 ac_func_search_save_LIBS=$LIBS 9078 cat >conftest.$ac_ext <<_ACEOF 9079 /* confdefs.h. */ 9080 _ACEOF 9081 cat confdefs.h >>conftest.$ac_ext 9082 cat >>conftest.$ac_ext <<_ACEOF 9083 /* end confdefs.h. */ 9084 9085 /* Override any GCC internal prototype to avoid an error. 9086 Use char because int might match the return type of a GCC 9087 builtin and then its argument prototype would still apply. */ 9088 #ifdef __cplusplus 9089 extern "C" 9090 #endif 9091 char setupterm (); 9092 int 9093 main () 9094 { 9095 return setupterm (); 9096 ; 9097 return 0; 9098 } 9099 _ACEOF 9100 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do 9101 if test -z "$ac_lib"; then 9102 ac_res="none required" 9103 else 9104 ac_res=-l$ac_lib 9105 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9106 fi 9107 rm -f conftest.$ac_objext conftest$ac_exeext 9108 if { (ac_try="$ac_link" 9109 case "(($ac_try" in 9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9111 *) ac_try_echo=$ac_try;; 9112 esac 9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9114 (eval "$ac_link") 2>conftest.er1 9115 ac_status=$? 9116 grep -v '^ *+' conftest.er1 >conftest.err 9117 rm -f conftest.er1 9118 cat conftest.err >&5 9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9120 (exit $ac_status); } && 9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9122 { (case "(($ac_try" in 9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9124 *) ac_try_echo=$ac_try;; 9125 esac 9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9127 (eval "$ac_try") 2>&5 9128 ac_status=$? 9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9130 (exit $ac_status); }; } && 9131 { ac_try='test -s conftest$ac_exeext' 9132 { (case "(($ac_try" in 9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9134 *) ac_try_echo=$ac_try;; 9135 esac 9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9137 (eval "$ac_try") 2>&5 9138 ac_status=$? 9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9140 (exit $ac_status); }; }; then 9141 ac_cv_search_setupterm=$ac_res 9142 else 9143 echo "$as_me: failed program was:" >&5 9144 sed 's/^/| /' conftest.$ac_ext >&5 9145 9146 9147 fi 9148 9149 rm -f core conftest.err conftest.$ac_objext \ 9150 conftest$ac_exeext 9151 if test "${ac_cv_search_setupterm+set}" = set; then 9152 break 9153 fi 9154 done 9155 if test "${ac_cv_search_setupterm+set}" = set; then 9156 : 9157 else 9158 ac_cv_search_setupterm=no 9159 fi 9160 rm conftest.$ac_ext 9161 LIBS=$ac_func_search_save_LIBS 9162 fi 9163 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5 9164 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; } 9165 ac_res=$ac_cv_search_setupterm 9166 if test "$ac_res" != no; then 9167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9168 9169 9170 cat >>confdefs.h <<\_ACEOF 9171 #define HAVE_TERMINFO 1 9172 _ACEOF 9173 9174 HAVE_TERMINFO='1' 9175 9176 9177 fi 9178 9179 fi 9180 9181 if test "$llvm_cv_enable_libedit" = "yes" ; then 9182 { echo "$as_me:$LINENO: checking for library containing el_init" >&5 9183 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; } 9184 if test "${ac_cv_search_el_init+set}" = set; then 9185 echo $ECHO_N "(cached) $ECHO_C" >&6 9186 else 9187 ac_func_search_save_LIBS=$LIBS 9188 cat >conftest.$ac_ext <<_ACEOF 9189 /* confdefs.h. */ 9190 _ACEOF 9191 cat confdefs.h >>conftest.$ac_ext 9192 cat >>conftest.$ac_ext <<_ACEOF 9193 /* end confdefs.h. */ 9194 9195 /* Override any GCC internal prototype to avoid an error. 9196 Use char because int might match the return type of a GCC 9197 builtin and then its argument prototype would still apply. */ 9198 #ifdef __cplusplus 9199 extern "C" 9200 #endif 9201 char el_init (); 9202 int 9203 main () 9204 { 9205 return el_init (); 9206 ; 9207 return 0; 9208 } 9209 _ACEOF 9210 for ac_lib in '' edit; do 9211 if test -z "$ac_lib"; then 9212 ac_res="none required" 9213 else 9214 ac_res=-l$ac_lib 9215 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9216 fi 9217 rm -f conftest.$ac_objext conftest$ac_exeext 9218 if { (ac_try="$ac_link" 9219 case "(($ac_try" in 9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9221 *) ac_try_echo=$ac_try;; 9222 esac 9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9224 (eval "$ac_link") 2>conftest.er1 9225 ac_status=$? 9226 grep -v '^ *+' conftest.er1 >conftest.err 9227 rm -f conftest.er1 9228 cat conftest.err >&5 9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9230 (exit $ac_status); } && 9231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9232 { (case "(($ac_try" in 9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9234 *) ac_try_echo=$ac_try;; 9235 esac 9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9237 (eval "$ac_try") 2>&5 9238 ac_status=$? 9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9240 (exit $ac_status); }; } && 9241 { ac_try='test -s conftest$ac_exeext' 9242 { (case "(($ac_try" in 9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9244 *) ac_try_echo=$ac_try;; 9245 esac 9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9247 (eval "$ac_try") 2>&5 9248 ac_status=$? 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9250 (exit $ac_status); }; }; then 9251 ac_cv_search_el_init=$ac_res 9252 else 9253 echo "$as_me: failed program was:" >&5 9254 sed 's/^/| /' conftest.$ac_ext >&5 9255 9256 9257 fi 9258 9259 rm -f core conftest.err conftest.$ac_objext \ 9260 conftest$ac_exeext 9261 if test "${ac_cv_search_el_init+set}" = set; then 9262 break 9263 fi 9264 done 9265 if test "${ac_cv_search_el_init+set}" = set; then 9266 : 9267 else 9268 ac_cv_search_el_init=no 9269 fi 9270 rm conftest.$ac_ext 9271 LIBS=$ac_func_search_save_LIBS 9272 fi 9273 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5 9274 echo "${ECHO_T}$ac_cv_search_el_init" >&6; } 9275 ac_res=$ac_cv_search_el_init 9276 if test "$ac_res" != no; then 9277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9278 9279 cat >>confdefs.h <<\_ACEOF 9280 #define HAVE_LIBEDIT 1 9281 _ACEOF 9282 9283 fi 9284 9285 fi 9286 9287 if test "$llvm_cv_enable_libffi" = "yes" ; then 9288 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 9289 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 9290 if test "${ac_cv_search_ffi_call+set}" = set; then 9291 echo $ECHO_N "(cached) $ECHO_C" >&6 9292 else 9293 ac_func_search_save_LIBS=$LIBS 9294 cat >conftest.$ac_ext <<_ACEOF 9295 /* confdefs.h. */ 9296 _ACEOF 9297 cat confdefs.h >>conftest.$ac_ext 9298 cat >>conftest.$ac_ext <<_ACEOF 9299 /* end confdefs.h. */ 9300 9301 /* Override any GCC internal prototype to avoid an error. 9302 Use char because int might match the return type of a GCC 9303 builtin and then its argument prototype would still apply. */ 9304 #ifdef __cplusplus 9305 extern "C" 9306 #endif 9307 char ffi_call (); 9308 int 9309 main () 9310 { 9311 return ffi_call (); 9312 ; 9313 return 0; 9314 } 9315 _ACEOF 9316 for ac_lib in '' ffi; do 9317 if test -z "$ac_lib"; then 9318 ac_res="none required" 9319 else 9320 ac_res=-l$ac_lib 9321 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9322 fi 9323 rm -f conftest.$ac_objext conftest$ac_exeext 9324 if { (ac_try="$ac_link" 9325 case "(($ac_try" in 9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9327 *) ac_try_echo=$ac_try;; 9328 esac 9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9330 (eval "$ac_link") 2>conftest.er1 9331 ac_status=$? 9332 grep -v '^ *+' conftest.er1 >conftest.err 9333 rm -f conftest.er1 9334 cat conftest.err >&5 9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9336 (exit $ac_status); } && 9337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9338 { (case "(($ac_try" in 9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9340 *) ac_try_echo=$ac_try;; 9341 esac 9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9343 (eval "$ac_try") 2>&5 9344 ac_status=$? 9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 (exit $ac_status); }; } && 9347 { ac_try='test -s conftest$ac_exeext' 9348 { (case "(($ac_try" in 9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9350 *) ac_try_echo=$ac_try;; 9351 esac 9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9353 (eval "$ac_try") 2>&5 9354 ac_status=$? 9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9356 (exit $ac_status); }; }; then 9357 ac_cv_search_ffi_call=$ac_res 9358 else 9359 echo "$as_me: failed program was:" >&5 9360 sed 's/^/| /' conftest.$ac_ext >&5 9361 9362 9363 fi 9364 9365 rm -f core conftest.err conftest.$ac_objext \ 9366 conftest$ac_exeext 9367 if test "${ac_cv_search_ffi_call+set}" = set; then 9368 break 9369 fi 9370 done 9371 if test "${ac_cv_search_ffi_call+set}" = set; then 9372 : 9373 else 9374 ac_cv_search_ffi_call=no 9375 fi 9376 rm conftest.$ac_ext 9377 LIBS=$ac_func_search_save_LIBS 9378 fi 9379 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 9380 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 9381 ac_res=$ac_cv_search_ffi_call 9382 if test "$ac_res" != no; then 9383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9384 9385 cat >>confdefs.h <<\_ACEOF 9386 #define HAVE_FFI_CALL 1 9387 _ACEOF 9388 9389 else 9390 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 9391 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 9392 { (exit 1); exit 1; }; } 9393 fi 9394 9395 fi 9396 9397 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 9398 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 9399 if test "${ac_cv_search_mallinfo+set}" = set; then 9400 echo $ECHO_N "(cached) $ECHO_C" >&6 9401 else 9402 ac_func_search_save_LIBS=$LIBS 9403 cat >conftest.$ac_ext <<_ACEOF 9404 /* confdefs.h. */ 9405 _ACEOF 9406 cat confdefs.h >>conftest.$ac_ext 9407 cat >>conftest.$ac_ext <<_ACEOF 9408 /* end confdefs.h. */ 9409 9410 /* Override any GCC internal prototype to avoid an error. 9411 Use char because int might match the return type of a GCC 9412 builtin and then its argument prototype would still apply. */ 9413 #ifdef __cplusplus 9414 extern "C" 9415 #endif 9416 char mallinfo (); 9417 int 9418 main () 9419 { 9420 return mallinfo (); 9421 ; 9422 return 0; 9423 } 9424 _ACEOF 9425 for ac_lib in '' malloc; do 9426 if test -z "$ac_lib"; then 9427 ac_res="none required" 9428 else 9429 ac_res=-l$ac_lib 9430 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9431 fi 9432 rm -f conftest.$ac_objext conftest$ac_exeext 9433 if { (ac_try="$ac_link" 9434 case "(($ac_try" in 9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9436 *) ac_try_echo=$ac_try;; 9437 esac 9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9439 (eval "$ac_link") 2>conftest.er1 9440 ac_status=$? 9441 grep -v '^ *+' conftest.er1 >conftest.err 9442 rm -f conftest.er1 9443 cat conftest.err >&5 9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9445 (exit $ac_status); } && 9446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9447 { (case "(($ac_try" in 9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9449 *) ac_try_echo=$ac_try;; 9450 esac 9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9452 (eval "$ac_try") 2>&5 9453 ac_status=$? 9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9455 (exit $ac_status); }; } && 9456 { ac_try='test -s conftest$ac_exeext' 9457 { (case "(($ac_try" in 9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9459 *) ac_try_echo=$ac_try;; 9460 esac 9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9462 (eval "$ac_try") 2>&5 9463 ac_status=$? 9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9465 (exit $ac_status); }; }; then 9466 ac_cv_search_mallinfo=$ac_res 9467 else 9468 echo "$as_me: failed program was:" >&5 9469 sed 's/^/| /' conftest.$ac_ext >&5 9470 9471 9472 fi 9473 9474 rm -f core conftest.err conftest.$ac_objext \ 9475 conftest$ac_exeext 9476 if test "${ac_cv_search_mallinfo+set}" = set; then 9477 break 9478 fi 9479 done 9480 if test "${ac_cv_search_mallinfo+set}" = set; then 9481 : 9482 else 9483 ac_cv_search_mallinfo=no 9484 fi 9485 rm conftest.$ac_ext 9486 LIBS=$ac_func_search_save_LIBS 9487 fi 9488 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 9489 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 9490 ac_res=$ac_cv_search_mallinfo 9491 if test "$ac_res" != no; then 9492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9493 9494 cat >>confdefs.h <<\_ACEOF 9495 #define HAVE_MALLINFO 1 9496 _ACEOF 9497 9498 fi 9499 9500 9501 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 9502 9503 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 9504 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 9505 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 9506 echo $ECHO_N "(cached) $ECHO_C" >&6 9507 else 9508 ac_check_lib_save_LIBS=$LIBS 9509 LIBS="-lpthread $LIBS" 9510 cat >conftest.$ac_ext <<_ACEOF 9511 /* confdefs.h. */ 9512 _ACEOF 9513 cat confdefs.h >>conftest.$ac_ext 9514 cat >>conftest.$ac_ext <<_ACEOF 9515 /* end confdefs.h. */ 9516 9517 /* Override any GCC internal prototype to avoid an error. 9518 Use char because int might match the return type of a GCC 9519 builtin and then its argument prototype would still apply. */ 9520 #ifdef __cplusplus 9521 extern "C" 9522 #endif 9523 char pthread_mutex_init (); 9524 int 9525 main () 9526 { 9527 return pthread_mutex_init (); 9528 ; 9529 return 0; 9530 } 9531 _ACEOF 9532 rm -f conftest.$ac_objext conftest$ac_exeext 9533 if { (ac_try="$ac_link" 9534 case "(($ac_try" in 9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9536 *) ac_try_echo=$ac_try;; 9537 esac 9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9539 (eval "$ac_link") 2>conftest.er1 9540 ac_status=$? 9541 grep -v '^ *+' conftest.er1 >conftest.err 9542 rm -f conftest.er1 9543 cat conftest.err >&5 9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9545 (exit $ac_status); } && 9546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9547 { (case "(($ac_try" in 9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9549 *) ac_try_echo=$ac_try;; 9550 esac 9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9552 (eval "$ac_try") 2>&5 9553 ac_status=$? 9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9555 (exit $ac_status); }; } && 9556 { ac_try='test -s conftest$ac_exeext' 9557 { (case "(($ac_try" in 9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9559 *) ac_try_echo=$ac_try;; 9560 esac 9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9562 (eval "$ac_try") 2>&5 9563 ac_status=$? 9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9565 (exit $ac_status); }; }; then 9566 ac_cv_lib_pthread_pthread_mutex_init=yes 9567 else 9568 echo "$as_me: failed program was:" >&5 9569 sed 's/^/| /' conftest.$ac_ext >&5 9570 9571 ac_cv_lib_pthread_pthread_mutex_init=no 9572 fi 9573 9574 rm -f core conftest.err conftest.$ac_objext \ 9575 conftest$ac_exeext conftest.$ac_ext 9576 LIBS=$ac_check_lib_save_LIBS 9577 fi 9578 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 9579 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 9580 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 9581 cat >>confdefs.h <<_ACEOF 9582 #define HAVE_LIBPTHREAD 1 9583 _ACEOF 9584 9585 LIBS="-lpthread $LIBS" 9586 9587 fi 9588 9589 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 9590 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 9591 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 9592 echo $ECHO_N "(cached) $ECHO_C" >&6 9593 else 9594 ac_func_search_save_LIBS=$LIBS 9595 cat >conftest.$ac_ext <<_ACEOF 9596 /* confdefs.h. */ 9597 _ACEOF 9598 cat confdefs.h >>conftest.$ac_ext 9599 cat >>conftest.$ac_ext <<_ACEOF 9600 /* end confdefs.h. */ 9601 9602 /* Override any GCC internal prototype to avoid an error. 9603 Use char because int might match the return type of a GCC 9604 builtin and then its argument prototype would still apply. */ 9605 #ifdef __cplusplus 9606 extern "C" 9607 #endif 9608 char pthread_mutex_lock (); 9609 int 9610 main () 9611 { 9612 return pthread_mutex_lock (); 9613 ; 9614 return 0; 9615 } 9616 _ACEOF 9617 for ac_lib in '' pthread; do 9618 if test -z "$ac_lib"; then 9619 ac_res="none required" 9620 else 9621 ac_res=-l$ac_lib 9622 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9623 fi 9624 rm -f conftest.$ac_objext conftest$ac_exeext 9625 if { (ac_try="$ac_link" 9626 case "(($ac_try" in 9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9628 *) ac_try_echo=$ac_try;; 9629 esac 9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9631 (eval "$ac_link") 2>conftest.er1 9632 ac_status=$? 9633 grep -v '^ *+' conftest.er1 >conftest.err 9634 rm -f conftest.er1 9635 cat conftest.err >&5 9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9637 (exit $ac_status); } && 9638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9639 { (case "(($ac_try" in 9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9641 *) ac_try_echo=$ac_try;; 9642 esac 9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9644 (eval "$ac_try") 2>&5 9645 ac_status=$? 9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9647 (exit $ac_status); }; } && 9648 { ac_try='test -s conftest$ac_exeext' 9649 { (case "(($ac_try" in 9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9651 *) ac_try_echo=$ac_try;; 9652 esac 9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9654 (eval "$ac_try") 2>&5 9655 ac_status=$? 9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9657 (exit $ac_status); }; }; then 9658 ac_cv_search_pthread_mutex_lock=$ac_res 9659 else 9660 echo "$as_me: failed program was:" >&5 9661 sed 's/^/| /' conftest.$ac_ext >&5 9662 9663 9664 fi 9665 9666 rm -f core conftest.err conftest.$ac_objext \ 9667 conftest$ac_exeext 9668 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 9669 break 9670 fi 9671 done 9672 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 9673 : 9674 else 9675 ac_cv_search_pthread_mutex_lock=no 9676 fi 9677 rm conftest.$ac_ext 9678 LIBS=$ac_func_search_save_LIBS 9679 fi 9680 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 9681 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 9682 ac_res=$ac_cv_search_pthread_mutex_lock 9683 if test "$ac_res" != no; then 9684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9685 9686 cat >>confdefs.h <<\_ACEOF 9687 #define HAVE_PTHREAD_MUTEX_LOCK 1 9688 _ACEOF 9689 9690 fi 9691 9692 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 9693 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 9694 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 9695 echo $ECHO_N "(cached) $ECHO_C" >&6 9696 else 9697 ac_func_search_save_LIBS=$LIBS 9698 cat >conftest.$ac_ext <<_ACEOF 9699 /* confdefs.h. */ 9700 _ACEOF 9701 cat confdefs.h >>conftest.$ac_ext 9702 cat >>conftest.$ac_ext <<_ACEOF 9703 /* end confdefs.h. */ 9704 9705 /* Override any GCC internal prototype to avoid an error. 9706 Use char because int might match the return type of a GCC 9707 builtin and then its argument prototype would still apply. */ 9708 #ifdef __cplusplus 9709 extern "C" 9710 #endif 9711 char pthread_rwlock_init (); 9712 int 9713 main () 9714 { 9715 return pthread_rwlock_init (); 9716 ; 9717 return 0; 9718 } 9719 _ACEOF 9720 for ac_lib in '' pthread; do 9721 if test -z "$ac_lib"; then 9722 ac_res="none required" 9723 else 9724 ac_res=-l$ac_lib 9725 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9726 fi 9727 rm -f conftest.$ac_objext conftest$ac_exeext 9728 if { (ac_try="$ac_link" 9729 case "(($ac_try" in 9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9731 *) ac_try_echo=$ac_try;; 9732 esac 9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9734 (eval "$ac_link") 2>conftest.er1 9735 ac_status=$? 9736 grep -v '^ *+' conftest.er1 >conftest.err 9737 rm -f conftest.er1 9738 cat conftest.err >&5 9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9740 (exit $ac_status); } && 9741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9742 { (case "(($ac_try" in 9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9744 *) ac_try_echo=$ac_try;; 9745 esac 9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9747 (eval "$ac_try") 2>&5 9748 ac_status=$? 9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9750 (exit $ac_status); }; } && 9751 { ac_try='test -s conftest$ac_exeext' 9752 { (case "(($ac_try" in 9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9754 *) ac_try_echo=$ac_try;; 9755 esac 9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9757 (eval "$ac_try") 2>&5 9758 ac_status=$? 9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9760 (exit $ac_status); }; }; then 9761 ac_cv_search_pthread_rwlock_init=$ac_res 9762 else 9763 echo "$as_me: failed program was:" >&5 9764 sed 's/^/| /' conftest.$ac_ext >&5 9765 9766 9767 fi 9768 9769 rm -f core conftest.err conftest.$ac_objext \ 9770 conftest$ac_exeext 9771 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 9772 break 9773 fi 9774 done 9775 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 9776 : 9777 else 9778 ac_cv_search_pthread_rwlock_init=no 9779 fi 9780 rm conftest.$ac_ext 9781 LIBS=$ac_func_search_save_LIBS 9782 fi 9783 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 9784 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 9785 ac_res=$ac_cv_search_pthread_rwlock_init 9786 if test "$ac_res" != no; then 9787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9788 9789 cat >>confdefs.h <<\_ACEOF 9790 #define HAVE_PTHREAD_RWLOCK_INIT 1 9791 _ACEOF 9792 9793 fi 9794 9795 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 9796 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 9797 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 9798 echo $ECHO_N "(cached) $ECHO_C" >&6 9799 else 9800 ac_func_search_save_LIBS=$LIBS 9801 cat >conftest.$ac_ext <<_ACEOF 9802 /* confdefs.h. */ 9803 _ACEOF 9804 cat confdefs.h >>conftest.$ac_ext 9805 cat >>conftest.$ac_ext <<_ACEOF 9806 /* end confdefs.h. */ 9807 9808 /* Override any GCC internal prototype to avoid an error. 9809 Use char because int might match the return type of a GCC 9810 builtin and then its argument prototype would still apply. */ 9811 #ifdef __cplusplus 9812 extern "C" 9813 #endif 9814 char pthread_getspecific (); 9815 int 9816 main () 9817 { 9818 return pthread_getspecific (); 9819 ; 9820 return 0; 9821 } 9822 _ACEOF 9823 for ac_lib in '' pthread; do 9824 if test -z "$ac_lib"; then 9825 ac_res="none required" 9826 else 9827 ac_res=-l$ac_lib 9828 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9829 fi 9830 rm -f conftest.$ac_objext conftest$ac_exeext 9831 if { (ac_try="$ac_link" 9832 case "(($ac_try" in 9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9834 *) ac_try_echo=$ac_try;; 9835 esac 9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9837 (eval "$ac_link") 2>conftest.er1 9838 ac_status=$? 9839 grep -v '^ *+' conftest.er1 >conftest.err 9840 rm -f conftest.er1 9841 cat conftest.err >&5 9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9843 (exit $ac_status); } && 9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9845 { (case "(($ac_try" in 9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9847 *) ac_try_echo=$ac_try;; 9848 esac 9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9850 (eval "$ac_try") 2>&5 9851 ac_status=$? 9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9853 (exit $ac_status); }; } && 9854 { ac_try='test -s conftest$ac_exeext' 9855 { (case "(($ac_try" in 9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9857 *) ac_try_echo=$ac_try;; 9858 esac 9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9860 (eval "$ac_try") 2>&5 9861 ac_status=$? 9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9863 (exit $ac_status); }; }; then 9864 ac_cv_search_pthread_getspecific=$ac_res 9865 else 9866 echo "$as_me: failed program was:" >&5 9867 sed 's/^/| /' conftest.$ac_ext >&5 9868 9869 9870 fi 9871 9872 rm -f core conftest.err conftest.$ac_objext \ 9873 conftest$ac_exeext 9874 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 9875 break 9876 fi 9877 done 9878 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 9879 : 9880 else 9881 ac_cv_search_pthread_getspecific=no 9882 fi 9883 rm conftest.$ac_ext 9884 LIBS=$ac_func_search_save_LIBS 9885 fi 9886 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 9887 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 9888 ac_res=$ac_cv_search_pthread_getspecific 9889 if test "$ac_res" != no; then 9890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9891 9892 cat >>confdefs.h <<\_ACEOF 9893 #define HAVE_PTHREAD_GETSPECIFIC 1 9894 _ACEOF 9895 9896 fi 9897 9898 fi 9899 9900 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 9901 9902 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 9903 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } 9904 if test "${ac_cv_lib_z_compress2+set}" = set; then 9905 echo $ECHO_N "(cached) $ECHO_C" >&6 9906 else 9907 ac_check_lib_save_LIBS=$LIBS 9908 LIBS="-lz $LIBS" 9909 cat >conftest.$ac_ext <<_ACEOF 9910 /* confdefs.h. */ 9911 _ACEOF 9912 cat confdefs.h >>conftest.$ac_ext 9913 cat >>conftest.$ac_ext <<_ACEOF 9914 /* end confdefs.h. */ 9915 9916 /* Override any GCC internal prototype to avoid an error. 9917 Use char because int might match the return type of a GCC 9918 builtin and then its argument prototype would still apply. */ 9919 #ifdef __cplusplus 9920 extern "C" 9921 #endif 9922 char compress2 (); 9923 int 9924 main () 9925 { 9926 return compress2 (); 9927 ; 9928 return 0; 9929 } 9930 _ACEOF 9931 rm -f conftest.$ac_objext conftest$ac_exeext 9932 if { (ac_try="$ac_link" 9933 case "(($ac_try" in 9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9935 *) ac_try_echo=$ac_try;; 9936 esac 9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9938 (eval "$ac_link") 2>conftest.er1 9939 ac_status=$? 9940 grep -v '^ *+' conftest.er1 >conftest.err 9941 rm -f conftest.er1 9942 cat conftest.err >&5 9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9944 (exit $ac_status); } && 9945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9946 { (case "(($ac_try" in 9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9948 *) ac_try_echo=$ac_try;; 9949 esac 9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9951 (eval "$ac_try") 2>&5 9952 ac_status=$? 9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9954 (exit $ac_status); }; } && 9955 { ac_try='test -s conftest$ac_exeext' 9956 { (case "(($ac_try" in 9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9958 *) ac_try_echo=$ac_try;; 9959 esac 9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9961 (eval "$ac_try") 2>&5 9962 ac_status=$? 9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9964 (exit $ac_status); }; }; then 9965 ac_cv_lib_z_compress2=yes 9966 else 9967 echo "$as_me: failed program was:" >&5 9968 sed 's/^/| /' conftest.$ac_ext >&5 9969 9970 ac_cv_lib_z_compress2=no 9971 fi 9972 9973 rm -f core conftest.err conftest.$ac_objext \ 9974 conftest$ac_exeext conftest.$ac_ext 9975 LIBS=$ac_check_lib_save_LIBS 9976 fi 9977 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 9978 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; } 9979 if test $ac_cv_lib_z_compress2 = yes; then 9980 cat >>confdefs.h <<_ACEOF 9981 #define HAVE_LIBZ 1 9982 _ACEOF 9983 9984 LIBS="-lz $LIBS" 9985 9986 fi 9987 9988 fi 9989 9990 9991 # Check whether --with-oprofile was given. 9992 if test "${with_oprofile+set}" = set; then 9993 withval=$with_oprofile; 9994 USE_OPROFILE=1 9995 9996 case "$withval" in 9997 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 9998 no) llvm_cv_oppath= 9999 USE_OPROFILE=0 10000 ;; 10001 *) llvm_cv_oppath="${withval}/lib/oprofile" 10002 CPPFLAGS="-I${withval}/include";; 10003 esac 10004 case $llvm_cv_os_type in 10005 Linux) 10006 if test -n "$llvm_cv_oppath" ; then 10007 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 10008 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 10009 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 10010 if test "${ac_cv_search_bfd_init+set}" = set; then 10011 echo $ECHO_N "(cached) $ECHO_C" >&6 10012 else 10013 ac_func_search_save_LIBS=$LIBS 10014 cat >conftest.$ac_ext <<_ACEOF 10015 /* confdefs.h. */ 10016 _ACEOF 10017 cat confdefs.h >>conftest.$ac_ext 10018 cat >>conftest.$ac_ext <<_ACEOF 10019 /* end confdefs.h. */ 10020 10021 /* Override any GCC internal prototype to avoid an error. 10022 Use char because int might match the return type of a GCC 10023 builtin and then its argument prototype would still apply. */ 10024 #ifdef __cplusplus 10025 extern "C" 10026 #endif 10027 char bfd_init (); 10028 int 10029 main () 10030 { 10031 return bfd_init (); 10032 ; 10033 return 0; 10034 } 10035 _ACEOF 10036 for ac_lib in '' bfd; do 10037 if test -z "$ac_lib"; then 10038 ac_res="none required" 10039 else 10040 ac_res=-l$ac_lib 10041 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10042 fi 10043 rm -f conftest.$ac_objext conftest$ac_exeext 10044 if { (ac_try="$ac_link" 10045 case "(($ac_try" in 10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10047 *) ac_try_echo=$ac_try;; 10048 esac 10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10050 (eval "$ac_link") 2>conftest.er1 10051 ac_status=$? 10052 grep -v '^ *+' conftest.er1 >conftest.err 10053 rm -f conftest.er1 10054 cat conftest.err >&5 10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10056 (exit $ac_status); } && 10057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10058 { (case "(($ac_try" in 10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10060 *) ac_try_echo=$ac_try;; 10061 esac 10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10063 (eval "$ac_try") 2>&5 10064 ac_status=$? 10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10066 (exit $ac_status); }; } && 10067 { ac_try='test -s conftest$ac_exeext' 10068 { (case "(($ac_try" in 10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10070 *) ac_try_echo=$ac_try;; 10071 esac 10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10073 (eval "$ac_try") 2>&5 10074 ac_status=$? 10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10076 (exit $ac_status); }; }; then 10077 ac_cv_search_bfd_init=$ac_res 10078 else 10079 echo "$as_me: failed program was:" >&5 10080 sed 's/^/| /' conftest.$ac_ext >&5 10081 10082 10083 fi 10084 10085 rm -f core conftest.err conftest.$ac_objext \ 10086 conftest$ac_exeext 10087 if test "${ac_cv_search_bfd_init+set}" = set; then 10088 break 10089 fi 10090 done 10091 if test "${ac_cv_search_bfd_init+set}" = set; then 10092 : 10093 else 10094 ac_cv_search_bfd_init=no 10095 fi 10096 rm conftest.$ac_ext 10097 LIBS=$ac_func_search_save_LIBS 10098 fi 10099 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 10100 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 10101 ac_res=$ac_cv_search_bfd_init 10102 if test "$ac_res" != no; then 10103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10104 10105 fi 10106 10107 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 10108 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 10109 if test "${ac_cv_search_op_open_agent+set}" = set; then 10110 echo $ECHO_N "(cached) $ECHO_C" >&6 10111 else 10112 ac_func_search_save_LIBS=$LIBS 10113 cat >conftest.$ac_ext <<_ACEOF 10114 /* confdefs.h. */ 10115 _ACEOF 10116 cat confdefs.h >>conftest.$ac_ext 10117 cat >>conftest.$ac_ext <<_ACEOF 10118 /* end confdefs.h. */ 10119 10120 /* Override any GCC internal prototype to avoid an error. 10121 Use char because int might match the return type of a GCC 10122 builtin and then its argument prototype would still apply. */ 10123 #ifdef __cplusplus 10124 extern "C" 10125 #endif 10126 char op_open_agent (); 10127 int 10128 main () 10129 { 10130 return op_open_agent (); 10131 ; 10132 return 0; 10133 } 10134 _ACEOF 10135 for ac_lib in '' opagent; do 10136 if test -z "$ac_lib"; then 10137 ac_res="none required" 10138 else 10139 ac_res=-l$ac_lib 10140 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10141 fi 10142 rm -f conftest.$ac_objext conftest$ac_exeext 10143 if { (ac_try="$ac_link" 10144 case "(($ac_try" in 10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10146 *) ac_try_echo=$ac_try;; 10147 esac 10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10149 (eval "$ac_link") 2>conftest.er1 10150 ac_status=$? 10151 grep -v '^ *+' conftest.er1 >conftest.err 10152 rm -f conftest.er1 10153 cat conftest.err >&5 10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10155 (exit $ac_status); } && 10156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10157 { (case "(($ac_try" in 10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10159 *) ac_try_echo=$ac_try;; 10160 esac 10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10162 (eval "$ac_try") 2>&5 10163 ac_status=$? 10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10165 (exit $ac_status); }; } && 10166 { ac_try='test -s conftest$ac_exeext' 10167 { (case "(($ac_try" in 10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10169 *) ac_try_echo=$ac_try;; 10170 esac 10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10172 (eval "$ac_try") 2>&5 10173 ac_status=$? 10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10175 (exit $ac_status); }; }; then 10176 ac_cv_search_op_open_agent=$ac_res 10177 else 10178 echo "$as_me: failed program was:" >&5 10179 sed 's/^/| /' conftest.$ac_ext >&5 10180 10181 10182 fi 10183 10184 rm -f core conftest.err conftest.$ac_objext \ 10185 conftest$ac_exeext 10186 if test "${ac_cv_search_op_open_agent+set}" = set; then 10187 break 10188 fi 10189 done 10190 if test "${ac_cv_search_op_open_agent+set}" = set; then 10191 : 10192 else 10193 ac_cv_search_op_open_agent=no 10194 fi 10195 rm conftest.$ac_ext 10196 LIBS=$ac_func_search_save_LIBS 10197 fi 10198 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 10199 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 10200 ac_res=$ac_cv_search_op_open_agent 10201 if test "$ac_res" != no; then 10202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10203 10204 else 10205 10206 echo "Error! You need to have libopagent around." 10207 exit 1 10208 10209 fi 10210 10211 if test "${ac_cv_header_opagent_h+set}" = set; then 10212 { echo "$as_me:$LINENO: checking for opagent.h" >&5 10213 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 10214 if test "${ac_cv_header_opagent_h+set}" = set; then 10215 echo $ECHO_N "(cached) $ECHO_C" >&6 10216 fi 10217 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 10218 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 10219 else 10220 # Is the header compilable? 10221 { echo "$as_me:$LINENO: checking opagent.h usability" >&5 10222 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 10223 cat >conftest.$ac_ext <<_ACEOF 10224 /* confdefs.h. */ 10225 _ACEOF 10226 cat confdefs.h >>conftest.$ac_ext 10227 cat >>conftest.$ac_ext <<_ACEOF 10228 /* end confdefs.h. */ 10229 $ac_includes_default 10230 #include <opagent.h> 10231 _ACEOF 10232 rm -f conftest.$ac_objext 10233 if { (ac_try="$ac_compile" 10234 case "(($ac_try" in 10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10236 *) ac_try_echo=$ac_try;; 10237 esac 10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10239 (eval "$ac_compile") 2>conftest.er1 10240 ac_status=$? 10241 grep -v '^ *+' conftest.er1 >conftest.err 10242 rm -f conftest.er1 10243 cat conftest.err >&5 10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10245 (exit $ac_status); } && 10246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10247 { (case "(($ac_try" in 10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10249 *) ac_try_echo=$ac_try;; 10250 esac 10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10252 (eval "$ac_try") 2>&5 10253 ac_status=$? 10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10255 (exit $ac_status); }; } && 10256 { ac_try='test -s conftest.$ac_objext' 10257 { (case "(($ac_try" in 10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10259 *) ac_try_echo=$ac_try;; 10260 esac 10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10262 (eval "$ac_try") 2>&5 10263 ac_status=$? 10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10265 (exit $ac_status); }; }; then 10266 ac_header_compiler=yes 10267 else 10268 echo "$as_me: failed program was:" >&5 10269 sed 's/^/| /' conftest.$ac_ext >&5 10270 10271 ac_header_compiler=no 10272 fi 10273 10274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10276 echo "${ECHO_T}$ac_header_compiler" >&6; } 10277 10278 # Is the header present? 10279 { echo "$as_me:$LINENO: checking opagent.h presence" >&5 10280 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 10281 cat >conftest.$ac_ext <<_ACEOF 10282 /* confdefs.h. */ 10283 _ACEOF 10284 cat confdefs.h >>conftest.$ac_ext 10285 cat >>conftest.$ac_ext <<_ACEOF 10286 /* end confdefs.h. */ 10287 #include <opagent.h> 10288 _ACEOF 10289 if { (ac_try="$ac_cpp conftest.$ac_ext" 10290 case "(($ac_try" in 10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10292 *) ac_try_echo=$ac_try;; 10293 esac 10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10296 ac_status=$? 10297 grep -v '^ *+' conftest.er1 >conftest.err 10298 rm -f conftest.er1 10299 cat conftest.err >&5 10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10301 (exit $ac_status); } >/dev/null; then 10302 if test -s conftest.err; then 10303 ac_cpp_err=$ac_c_preproc_warn_flag 10304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10305 else 10306 ac_cpp_err= 10307 fi 10308 else 10309 ac_cpp_err=yes 10310 fi 10311 if test -z "$ac_cpp_err"; then 10312 ac_header_preproc=yes 10313 else 10314 echo "$as_me: failed program was:" >&5 10315 sed 's/^/| /' conftest.$ac_ext >&5 10316 10317 ac_header_preproc=no 10318 fi 10319 10320 rm -f conftest.err conftest.$ac_ext 10321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10322 echo "${ECHO_T}$ac_header_preproc" >&6; } 10323 10324 # So? What about this header? 10325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10326 yes:no: ) 10327 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 10328 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10329 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 10330 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 10331 ac_header_preproc=yes 10332 ;; 10333 no:yes:* ) 10334 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 10335 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 10336 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 10337 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 10338 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 10339 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 10340 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 10341 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 10342 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 10343 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 10344 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 10345 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 10346 ( cat <<\_ASBOX 10347 ## ------------------------------------ ## 10348 ## Report this to http://llvm.org/bugs/ ## 10349 ## ------------------------------------ ## 10350 _ASBOX 10351 ) | sed "s/^/$as_me: WARNING: /" >&2 10352 ;; 10353 esac 10354 { echo "$as_me:$LINENO: checking for opagent.h" >&5 10355 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 10356 if test "${ac_cv_header_opagent_h+set}" = set; then 10357 echo $ECHO_N "(cached) $ECHO_C" >&6 10358 else 10359 ac_cv_header_opagent_h=$ac_header_preproc 10360 fi 10361 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 10362 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 10363 10364 fi 10365 if test $ac_cv_header_opagent_h = yes; then 10366 : 10367 else 10368 10369 echo "Error! You need to have opagent.h around." 10370 exit 1 10371 10372 fi 10373 10374 10375 fi ;; 10376 *) 10377 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 10378 echo "$as_me: error: OProfile support is available on Linux only." >&2;} 10379 { (exit 1); exit 1; }; } ;; 10380 esac 10381 10382 else 10383 10384 USE_OPROFILE=0 10385 10386 10387 fi 10388 10389 10390 cat >>confdefs.h <<_ACEOF 10391 #define LLVM_USE_OPROFILE $USE_OPROFILE 10392 _ACEOF 10393 10394 10395 10396 # Check whether --with-intel-jitevents was given. 10397 if test "${with_intel_jitevents+set}" = set; then 10398 withval=$with_intel_jitevents; 10399 case "$withval" in 10400 yes) USE_INTEL_JITEVENTS=1 10401 ;; 10402 no) USE_INTEL_JITEVENTS=0 10403 ;; 10404 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 10405 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} 10406 { (exit 1); exit 1; }; };; 10407 esac 10408 10409 case $llvm_cv_os_type in 10410 Linux|Win32|Cygwin|MingW) ;; 10411 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 10412 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} 10413 { (exit 1); exit 1; }; };; 10414 esac 10415 10416 case "$llvm_cv_target_arch" in 10417 x86|x86_64) ;; 10418 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 10419 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} 10420 { (exit 1); exit 1; }; };; 10421 esac 10422 10423 else 10424 10425 USE_INTEL_JITEVENTS=0 10426 10427 10428 fi 10429 10430 10431 cat >>confdefs.h <<_ACEOF 10432 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 10433 _ACEOF 10434 10435 10436 for ac_prog in xml2-config 10437 do 10438 # Extract the first word of "$ac_prog", so it can be a program name with args. 10439 set dummy $ac_prog; ac_word=$2 10440 { echo "$as_me:$LINENO: checking for $ac_word" >&5 10441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10442 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then 10443 echo $ECHO_N "(cached) $ECHO_C" >&6 10444 else 10445 if test -n "$XML2CONFIG"; then 10446 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. 10447 else 10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10449 for as_dir in $PATH 10450 do 10451 IFS=$as_save_IFS 10452 test -z "$as_dir" && as_dir=. 10453 for ac_exec_ext in '' $ac_executable_extensions; do 10454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 10455 ac_cv_prog_XML2CONFIG="$ac_prog" 10456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10457 break 2 10458 fi 10459 done 10460 done 10461 IFS=$as_save_IFS 10462 10463 fi 10464 fi 10465 XML2CONFIG=$ac_cv_prog_XML2CONFIG 10466 if test -n "$XML2CONFIG"; then 10467 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 10468 echo "${ECHO_T}$XML2CONFIG" >&6; } 10469 else 10470 { echo "$as_me:$LINENO: result: no" >&5 10471 echo "${ECHO_T}no" >&6; } 10472 fi 10473 10474 10475 test -n "$XML2CONFIG" && break 10476 done 10477 10478 10479 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5 10480 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } 10481 if test "x$XML2CONFIG" = "x"; then 10482 { echo "$as_me:$LINENO: result: xml2-config not found" >&5 10483 echo "${ECHO_T}xml2-config not found" >&6; } 10484 else 10485 LIBXML2_INC=`$XML2CONFIG --cflags` 10486 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 10487 echo "${ECHO_T}$LIBXML2_INC" >&6; } 10488 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 10489 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } 10490 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then 10491 echo $ECHO_N "(cached) $ECHO_C" >&6 10492 else 10493 ac_check_lib_save_LIBS=$LIBS 10494 LIBS="-lxml2 $LIBS" 10495 cat >conftest.$ac_ext <<_ACEOF 10496 /* confdefs.h. */ 10497 _ACEOF 10498 cat confdefs.h >>conftest.$ac_ext 10499 cat >>conftest.$ac_ext <<_ACEOF 10500 /* end confdefs.h. */ 10501 10502 /* Override any GCC internal prototype to avoid an error. 10503 Use char because int might match the return type of a GCC 10504 builtin and then its argument prototype would still apply. */ 10505 #ifdef __cplusplus 10506 extern "C" 10507 #endif 10508 char xmlReadFile (); 10509 int 10510 main () 10511 { 10512 return xmlReadFile (); 10513 ; 10514 return 0; 10515 } 10516 _ACEOF 10517 rm -f conftest.$ac_objext conftest$ac_exeext 10518 if { (ac_try="$ac_link" 10519 case "(($ac_try" in 10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10521 *) ac_try_echo=$ac_try;; 10522 esac 10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10524 (eval "$ac_link") 2>conftest.er1 10525 ac_status=$? 10526 grep -v '^ *+' conftest.er1 >conftest.err 10527 rm -f conftest.er1 10528 cat conftest.err >&5 10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10530 (exit $ac_status); } && 10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10532 { (case "(($ac_try" in 10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10534 *) ac_try_echo=$ac_try;; 10535 esac 10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10537 (eval "$ac_try") 2>&5 10538 ac_status=$? 10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10540 (exit $ac_status); }; } && 10541 { ac_try='test -s conftest$ac_exeext' 10542 { (case "(($ac_try" in 10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10544 *) ac_try_echo=$ac_try;; 10545 esac 10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10547 (eval "$ac_try") 2>&5 10548 ac_status=$? 10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10550 (exit $ac_status); }; }; then 10551 ac_cv_lib_xml2_xmlReadFile=yes 10552 else 10553 echo "$as_me: failed program was:" >&5 10554 sed 's/^/| /' conftest.$ac_ext >&5 10555 10556 ac_cv_lib_xml2_xmlReadFile=no 10557 fi 10558 10559 rm -f core conftest.err conftest.$ac_objext \ 10560 conftest$ac_exeext conftest.$ac_ext 10561 LIBS=$ac_check_lib_save_LIBS 10562 fi 10563 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 10564 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } 10565 if test $ac_cv_lib_xml2_xmlReadFile = yes; then 10566 10567 cat >>confdefs.h <<\_ACEOF 10568 #define CLANG_HAVE_LIBXML 1 10569 _ACEOF 10570 10571 LIBXML2_LIBS="-lxml2" 10572 fi 10573 10574 fi 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 ac_header_dirent=no 10585 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10586 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10587 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 10588 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 10589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10590 echo $ECHO_N "(cached) $ECHO_C" >&6 10591 else 10592 cat >conftest.$ac_ext <<_ACEOF 10593 /* confdefs.h. */ 10594 _ACEOF 10595 cat confdefs.h >>conftest.$ac_ext 10596 cat >>conftest.$ac_ext <<_ACEOF 10597 /* end confdefs.h. */ 10598 #include <sys/types.h> 10599 #include <$ac_hdr> 10600 10601 int 10602 main () 10603 { 10604 if ((DIR *) 0) 10605 return 0; 10606 ; 10607 return 0; 10608 } 10609 _ACEOF 10610 rm -f conftest.$ac_objext 10611 if { (ac_try="$ac_compile" 10612 case "(($ac_try" in 10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10614 *) ac_try_echo=$ac_try;; 10615 esac 10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10617 (eval "$ac_compile") 2>conftest.er1 10618 ac_status=$? 10619 grep -v '^ *+' conftest.er1 >conftest.err 10620 rm -f conftest.er1 10621 cat conftest.err >&5 10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 (exit $ac_status); } && 10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10625 { (case "(($ac_try" in 10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10627 *) ac_try_echo=$ac_try;; 10628 esac 10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10630 (eval "$ac_try") 2>&5 10631 ac_status=$? 10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10633 (exit $ac_status); }; } && 10634 { ac_try='test -s conftest.$ac_objext' 10635 { (case "(($ac_try" in 10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10637 *) ac_try_echo=$ac_try;; 10638 esac 10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10640 (eval "$ac_try") 2>&5 10641 ac_status=$? 10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10643 (exit $ac_status); }; }; then 10644 eval "$as_ac_Header=yes" 10645 else 10646 echo "$as_me: failed program was:" >&5 10647 sed 's/^/| /' conftest.$ac_ext >&5 10648 10649 eval "$as_ac_Header=no" 10650 fi 10651 10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10653 fi 10654 ac_res=`eval echo '${'$as_ac_Header'}'` 10655 { echo "$as_me:$LINENO: result: $ac_res" >&5 10656 echo "${ECHO_T}$ac_res" >&6; } 10657 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10658 cat >>confdefs.h <<_ACEOF 10659 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10660 _ACEOF 10661 10662 ac_header_dirent=$ac_hdr; break 10663 fi 10664 10665 done 10666 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10667 if test $ac_header_dirent = dirent.h; then 10668 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 10669 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 10670 if test "${ac_cv_search_opendir+set}" = set; then 10671 echo $ECHO_N "(cached) $ECHO_C" >&6 10672 else 10673 ac_func_search_save_LIBS=$LIBS 10674 cat >conftest.$ac_ext <<_ACEOF 10675 /* confdefs.h. */ 10676 _ACEOF 10677 cat confdefs.h >>conftest.$ac_ext 10678 cat >>conftest.$ac_ext <<_ACEOF 10679 /* end confdefs.h. */ 10680 10681 /* Override any GCC internal prototype to avoid an error. 10682 Use char because int might match the return type of a GCC 10683 builtin and then its argument prototype would still apply. */ 10684 #ifdef __cplusplus 10685 extern "C" 10686 #endif 10687 char opendir (); 10688 int 10689 main () 10690 { 10691 return opendir (); 10692 ; 10693 return 0; 10694 } 10695 _ACEOF 10696 for ac_lib in '' dir; do 10697 if test -z "$ac_lib"; then 10698 ac_res="none required" 10699 else 10700 ac_res=-l$ac_lib 10701 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10702 fi 10703 rm -f conftest.$ac_objext conftest$ac_exeext 10704 if { (ac_try="$ac_link" 10705 case "(($ac_try" in 10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10707 *) ac_try_echo=$ac_try;; 10708 esac 10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10710 (eval "$ac_link") 2>conftest.er1 10711 ac_status=$? 10712 grep -v '^ *+' conftest.er1 >conftest.err 10713 rm -f conftest.er1 10714 cat conftest.err >&5 10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10716 (exit $ac_status); } && 10717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10718 { (case "(($ac_try" in 10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10720 *) ac_try_echo=$ac_try;; 10721 esac 10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10723 (eval "$ac_try") 2>&5 10724 ac_status=$? 10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10726 (exit $ac_status); }; } && 10727 { ac_try='test -s conftest$ac_exeext' 10728 { (case "(($ac_try" in 10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10730 *) ac_try_echo=$ac_try;; 10731 esac 10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10733 (eval "$ac_try") 2>&5 10734 ac_status=$? 10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10736 (exit $ac_status); }; }; then 10737 ac_cv_search_opendir=$ac_res 10738 else 10739 echo "$as_me: failed program was:" >&5 10740 sed 's/^/| /' conftest.$ac_ext >&5 10741 10742 10743 fi 10744 10745 rm -f core conftest.err conftest.$ac_objext \ 10746 conftest$ac_exeext 10747 if test "${ac_cv_search_opendir+set}" = set; then 10748 break 10749 fi 10750 done 10751 if test "${ac_cv_search_opendir+set}" = set; then 10752 : 10753 else 10754 ac_cv_search_opendir=no 10755 fi 10756 rm conftest.$ac_ext 10757 LIBS=$ac_func_search_save_LIBS 10758 fi 10759 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10760 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 10761 ac_res=$ac_cv_search_opendir 10762 if test "$ac_res" != no; then 10763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10764 10765 fi 10766 10767 else 10768 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 10769 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 10770 if test "${ac_cv_search_opendir+set}" = set; then 10771 echo $ECHO_N "(cached) $ECHO_C" >&6 10772 else 10773 ac_func_search_save_LIBS=$LIBS 10774 cat >conftest.$ac_ext <<_ACEOF 10775 /* confdefs.h. */ 10776 _ACEOF 10777 cat confdefs.h >>conftest.$ac_ext 10778 cat >>conftest.$ac_ext <<_ACEOF 10779 /* end confdefs.h. */ 10780 10781 /* Override any GCC internal prototype to avoid an error. 10782 Use char because int might match the return type of a GCC 10783 builtin and then its argument prototype would still apply. */ 10784 #ifdef __cplusplus 10785 extern "C" 10786 #endif 10787 char opendir (); 10788 int 10789 main () 10790 { 10791 return opendir (); 10792 ; 10793 return 0; 10794 } 10795 _ACEOF 10796 for ac_lib in '' x; do 10797 if test -z "$ac_lib"; then 10798 ac_res="none required" 10799 else 10800 ac_res=-l$ac_lib 10801 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10802 fi 10803 rm -f conftest.$ac_objext conftest$ac_exeext 10804 if { (ac_try="$ac_link" 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_link") 2>conftest.er1 10811 ac_status=$? 10812 grep -v '^ *+' conftest.er1 >conftest.err 10813 rm -f conftest.er1 10814 cat conftest.err >&5 10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10816 (exit $ac_status); } && 10817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10818 { (case "(($ac_try" in 10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10820 *) ac_try_echo=$ac_try;; 10821 esac 10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10823 (eval "$ac_try") 2>&5 10824 ac_status=$? 10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10826 (exit $ac_status); }; } && 10827 { ac_try='test -s conftest$ac_exeext' 10828 { (case "(($ac_try" in 10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10830 *) ac_try_echo=$ac_try;; 10831 esac 10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10833 (eval "$ac_try") 2>&5 10834 ac_status=$? 10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10836 (exit $ac_status); }; }; then 10837 ac_cv_search_opendir=$ac_res 10838 else 10839 echo "$as_me: failed program was:" >&5 10840 sed 's/^/| /' conftest.$ac_ext >&5 10841 10842 10843 fi 10844 10845 rm -f core conftest.err conftest.$ac_objext \ 10846 conftest$ac_exeext 10847 if test "${ac_cv_search_opendir+set}" = set; then 10848 break 10849 fi 10850 done 10851 if test "${ac_cv_search_opendir+set}" = set; then 10852 : 10853 else 10854 ac_cv_search_opendir=no 10855 fi 10856 rm conftest.$ac_ext 10857 LIBS=$ac_func_search_save_LIBS 10858 fi 10859 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10860 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 10861 ac_res=$ac_cv_search_opendir 10862 if test "$ac_res" != no; then 10863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10864 10865 fi 10866 10867 fi 10868 10869 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 10870 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 10871 if test "${ac_cv_header_mmap_anon+set}" = set; then 10872 echo $ECHO_N "(cached) $ECHO_C" >&6 10873 else 10874 ac_ext=c 10875 ac_cpp='$CPP $CPPFLAGS' 10876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10878 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10879 10880 cat >conftest.$ac_ext <<_ACEOF 10881 /* confdefs.h. */ 10882 _ACEOF 10883 cat confdefs.h >>conftest.$ac_ext 10884 cat >>conftest.$ac_ext <<_ACEOF 10885 /* end confdefs.h. */ 10886 #include <sys/mman.h> 10887 #include <unistd.h> 10888 #include <fcntl.h> 10889 int 10890 main () 10891 { 10892 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 10893 ; 10894 return 0; 10895 } 10896 _ACEOF 10897 rm -f conftest.$ac_objext 10898 if { (ac_try="$ac_compile" 10899 case "(($ac_try" in 10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10901 *) ac_try_echo=$ac_try;; 10902 esac 10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10904 (eval "$ac_compile") 2>conftest.er1 10905 ac_status=$? 10906 grep -v '^ *+' conftest.er1 >conftest.err 10907 rm -f conftest.er1 10908 cat conftest.err >&5 10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10910 (exit $ac_status); } && 10911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10912 { (case "(($ac_try" in 10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10914 *) ac_try_echo=$ac_try;; 10915 esac 10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10917 (eval "$ac_try") 2>&5 10918 ac_status=$? 10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10920 (exit $ac_status); }; } && 10921 { ac_try='test -s conftest.$ac_objext' 10922 { (case "(($ac_try" in 10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10924 *) ac_try_echo=$ac_try;; 10925 esac 10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10927 (eval "$ac_try") 2>&5 10928 ac_status=$? 10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10930 (exit $ac_status); }; }; then 10931 ac_cv_header_mmap_anon=yes 10932 else 10933 echo "$as_me: failed program was:" >&5 10934 sed 's/^/| /' conftest.$ac_ext >&5 10935 10936 ac_cv_header_mmap_anon=no 10937 fi 10938 10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10940 ac_ext=c 10941 ac_cpp='$CPP $CPPFLAGS' 10942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10944 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10945 10946 10947 fi 10948 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 10949 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 10950 if test "$ac_cv_header_mmap_anon" = yes; then 10951 10952 cat >>confdefs.h <<\_ACEOF 10953 #define HAVE_MMAP_ANONYMOUS 1 10954 _ACEOF 10955 10956 fi 10957 10958 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 10959 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 10960 if test "${ac_cv_header_stat_broken+set}" = set; then 10961 echo $ECHO_N "(cached) $ECHO_C" >&6 10962 else 10963 cat >conftest.$ac_ext <<_ACEOF 10964 /* confdefs.h. */ 10965 _ACEOF 10966 cat confdefs.h >>conftest.$ac_ext 10967 cat >>conftest.$ac_ext <<_ACEOF 10968 /* end confdefs.h. */ 10969 #include <sys/types.h> 10970 #include <sys/stat.h> 10971 10972 #if defined S_ISBLK && defined S_IFDIR 10973 # if S_ISBLK (S_IFDIR) 10974 You lose. 10975 # endif 10976 #endif 10977 10978 #if defined S_ISBLK && defined S_IFCHR 10979 # if S_ISBLK (S_IFCHR) 10980 You lose. 10981 # endif 10982 #endif 10983 10984 #if defined S_ISLNK && defined S_IFREG 10985 # if S_ISLNK (S_IFREG) 10986 You lose. 10987 # endif 10988 #endif 10989 10990 #if defined S_ISSOCK && defined S_IFREG 10991 # if S_ISSOCK (S_IFREG) 10992 You lose. 10993 # endif 10994 #endif 10995 10996 _ACEOF 10997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10998 $EGREP "You lose" >/dev/null 2>&1; then 10999 ac_cv_header_stat_broken=yes 11000 else 11001 ac_cv_header_stat_broken=no 11002 fi 11003 rm -f conftest* 11004 11005 fi 11006 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 11007 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 11008 if test $ac_cv_header_stat_broken = yes; then 11009 11010 cat >>confdefs.h <<\_ACEOF 11011 #define STAT_MACROS_BROKEN 1 11012 _ACEOF 11013 11014 fi 11015 11016 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 11017 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 11018 if test "${ac_cv_header_sys_wait_h+set}" = set; then 11019 echo $ECHO_N "(cached) $ECHO_C" >&6 11020 else 11021 cat >conftest.$ac_ext <<_ACEOF 11022 /* confdefs.h. */ 11023 _ACEOF 11024 cat confdefs.h >>conftest.$ac_ext 11025 cat >>conftest.$ac_ext <<_ACEOF 11026 /* end confdefs.h. */ 11027 #include <sys/types.h> 11028 #include <sys/wait.h> 11029 #ifndef WEXITSTATUS 11030 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 11031 #endif 11032 #ifndef WIFEXITED 11033 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 11034 #endif 11035 11036 int 11037 main () 11038 { 11039 int s; 11040 wait (&s); 11041 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 11042 ; 11043 return 0; 11044 } 11045 _ACEOF 11046 rm -f conftest.$ac_objext 11047 if { (ac_try="$ac_compile" 11048 case "(($ac_try" in 11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11050 *) ac_try_echo=$ac_try;; 11051 esac 11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11053 (eval "$ac_compile") 2>conftest.er1 11054 ac_status=$? 11055 grep -v '^ *+' conftest.er1 >conftest.err 11056 rm -f conftest.er1 11057 cat conftest.err >&5 11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11059 (exit $ac_status); } && 11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11061 { (case "(($ac_try" in 11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11063 *) ac_try_echo=$ac_try;; 11064 esac 11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11066 (eval "$ac_try") 2>&5 11067 ac_status=$? 11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11069 (exit $ac_status); }; } && 11070 { ac_try='test -s conftest.$ac_objext' 11071 { (case "(($ac_try" in 11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11073 *) ac_try_echo=$ac_try;; 11074 esac 11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11076 (eval "$ac_try") 2>&5 11077 ac_status=$? 11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11079 (exit $ac_status); }; }; then 11080 ac_cv_header_sys_wait_h=yes 11081 else 11082 echo "$as_me: failed program was:" >&5 11083 sed 's/^/| /' conftest.$ac_ext >&5 11084 11085 ac_cv_header_sys_wait_h=no 11086 fi 11087 11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11089 fi 11090 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 11091 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 11092 if test $ac_cv_header_sys_wait_h = yes; then 11093 11094 cat >>confdefs.h <<\_ACEOF 11095 #define HAVE_SYS_WAIT_H 1 11096 _ACEOF 11097 11098 fi 11099 11100 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 11101 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 11102 if test "${ac_cv_header_time+set}" = set; then 11103 echo $ECHO_N "(cached) $ECHO_C" >&6 11104 else 11105 cat >conftest.$ac_ext <<_ACEOF 11106 /* confdefs.h. */ 11107 _ACEOF 11108 cat confdefs.h >>conftest.$ac_ext 11109 cat >>conftest.$ac_ext <<_ACEOF 11110 /* end confdefs.h. */ 11111 #include <sys/types.h> 11112 #include <sys/time.h> 11113 #include <time.h> 11114 11115 int 11116 main () 11117 { 11118 if ((struct tm *) 0) 11119 return 0; 11120 ; 11121 return 0; 11122 } 11123 _ACEOF 11124 rm -f conftest.$ac_objext 11125 if { (ac_try="$ac_compile" 11126 case "(($ac_try" in 11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11128 *) ac_try_echo=$ac_try;; 11129 esac 11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11131 (eval "$ac_compile") 2>conftest.er1 11132 ac_status=$? 11133 grep -v '^ *+' conftest.er1 >conftest.err 11134 rm -f conftest.er1 11135 cat conftest.err >&5 11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11137 (exit $ac_status); } && 11138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11139 { (case "(($ac_try" in 11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11141 *) ac_try_echo=$ac_try;; 11142 esac 11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11144 (eval "$ac_try") 2>&5 11145 ac_status=$? 11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11147 (exit $ac_status); }; } && 11148 { ac_try='test -s conftest.$ac_objext' 11149 { (case "(($ac_try" in 11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11151 *) ac_try_echo=$ac_try;; 11152 esac 11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11154 (eval "$ac_try") 2>&5 11155 ac_status=$? 11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11157 (exit $ac_status); }; }; then 11158 ac_cv_header_time=yes 11159 else 11160 echo "$as_me: failed program was:" >&5 11161 sed 's/^/| /' conftest.$ac_ext >&5 11162 11163 ac_cv_header_time=no 11164 fi 11165 11166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11167 fi 11168 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 11169 echo "${ECHO_T}$ac_cv_header_time" >&6; } 11170 if test $ac_cv_header_time = yes; then 11171 11172 cat >>confdefs.h <<\_ACEOF 11173 #define TIME_WITH_SYS_TIME 1 11174 _ACEOF 11175 11176 fi 11177 11178 11179 ac_ext=cpp 11180 ac_cpp='$CXXCPP $CPPFLAGS' 11181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11184 11185 11186 for ac_header in cxxabi.h 11187 do 11188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11189 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11192 echo $ECHO_N "(cached) $ECHO_C" >&6 11193 else 11194 cat >conftest.$ac_ext <<_ACEOF 11195 /* confdefs.h. */ 11196 _ACEOF 11197 cat confdefs.h >>conftest.$ac_ext 11198 cat >>conftest.$ac_ext <<_ACEOF 11199 /* end confdefs.h. */ 11200 #include <stddef.h> 11201 11202 11203 #include <$ac_header> 11204 _ACEOF 11205 rm -f conftest.$ac_objext 11206 if { (ac_try="$ac_compile" 11207 case "(($ac_try" in 11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11209 *) ac_try_echo=$ac_try;; 11210 esac 11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11212 (eval "$ac_compile") 2>conftest.er1 11213 ac_status=$? 11214 grep -v '^ *+' conftest.er1 >conftest.err 11215 rm -f conftest.er1 11216 cat conftest.err >&5 11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11218 (exit $ac_status); } && 11219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11220 { (case "(($ac_try" in 11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11222 *) ac_try_echo=$ac_try;; 11223 esac 11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11225 (eval "$ac_try") 2>&5 11226 ac_status=$? 11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11228 (exit $ac_status); }; } && 11229 { ac_try='test -s conftest.$ac_objext' 11230 { (case "(($ac_try" in 11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11232 *) ac_try_echo=$ac_try;; 11233 esac 11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11235 (eval "$ac_try") 2>&5 11236 ac_status=$? 11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11238 (exit $ac_status); }; }; then 11239 eval "$as_ac_Header=yes" 11240 else 11241 echo "$as_me: failed program was:" >&5 11242 sed 's/^/| /' conftest.$ac_ext >&5 11243 11244 eval "$as_ac_Header=no" 11245 fi 11246 11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11248 fi 11249 ac_res=`eval echo '${'$as_ac_Header'}'` 11250 { echo "$as_me:$LINENO: result: $ac_res" >&5 11251 echo "${ECHO_T}$ac_res" >&6; } 11252 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11253 cat >>confdefs.h <<_ACEOF 11254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11255 _ACEOF 11256 11257 fi 11258 11259 done 11260 11261 ac_ext=c 11262 ac_cpp='$CPP $CPPFLAGS' 11263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11265 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11266 11267 11268 11269 11270 11271 11272 11273 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h 11274 do 11275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11277 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11280 echo $ECHO_N "(cached) $ECHO_C" >&6 11281 fi 11282 ac_res=`eval echo '${'$as_ac_Header'}'` 11283 { echo "$as_me:$LINENO: result: $ac_res" >&5 11284 echo "${ECHO_T}$ac_res" >&6; } 11285 else 11286 # Is the header compilable? 11287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11289 cat >conftest.$ac_ext <<_ACEOF 11290 /* confdefs.h. */ 11291 _ACEOF 11292 cat confdefs.h >>conftest.$ac_ext 11293 cat >>conftest.$ac_ext <<_ACEOF 11294 /* end confdefs.h. */ 11295 $ac_includes_default 11296 #include <$ac_header> 11297 _ACEOF 11298 rm -f conftest.$ac_objext 11299 if { (ac_try="$ac_compile" 11300 case "(($ac_try" in 11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11302 *) ac_try_echo=$ac_try;; 11303 esac 11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11305 (eval "$ac_compile") 2>conftest.er1 11306 ac_status=$? 11307 grep -v '^ *+' conftest.er1 >conftest.err 11308 rm -f conftest.er1 11309 cat conftest.err >&5 11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11311 (exit $ac_status); } && 11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11313 { (case "(($ac_try" in 11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11315 *) ac_try_echo=$ac_try;; 11316 esac 11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11318 (eval "$ac_try") 2>&5 11319 ac_status=$? 11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11321 (exit $ac_status); }; } && 11322 { ac_try='test -s conftest.$ac_objext' 11323 { (case "(($ac_try" in 11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11325 *) ac_try_echo=$ac_try;; 11326 esac 11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11328 (eval "$ac_try") 2>&5 11329 ac_status=$? 11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11331 (exit $ac_status); }; }; then 11332 ac_header_compiler=yes 11333 else 11334 echo "$as_me: failed program was:" >&5 11335 sed 's/^/| /' conftest.$ac_ext >&5 11336 11337 ac_header_compiler=no 11338 fi 11339 11340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11342 echo "${ECHO_T}$ac_header_compiler" >&6; } 11343 11344 # Is the header present? 11345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11347 cat >conftest.$ac_ext <<_ACEOF 11348 /* confdefs.h. */ 11349 _ACEOF 11350 cat confdefs.h >>conftest.$ac_ext 11351 cat >>conftest.$ac_ext <<_ACEOF 11352 /* end confdefs.h. */ 11353 #include <$ac_header> 11354 _ACEOF 11355 if { (ac_try="$ac_cpp conftest.$ac_ext" 11356 case "(($ac_try" in 11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11358 *) ac_try_echo=$ac_try;; 11359 esac 11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11362 ac_status=$? 11363 grep -v '^ *+' conftest.er1 >conftest.err 11364 rm -f conftest.er1 11365 cat conftest.err >&5 11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11367 (exit $ac_status); } >/dev/null; then 11368 if test -s conftest.err; then 11369 ac_cpp_err=$ac_c_preproc_warn_flag 11370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11371 else 11372 ac_cpp_err= 11373 fi 11374 else 11375 ac_cpp_err=yes 11376 fi 11377 if test -z "$ac_cpp_err"; then 11378 ac_header_preproc=yes 11379 else 11380 echo "$as_me: failed program was:" >&5 11381 sed 's/^/| /' conftest.$ac_ext >&5 11382 11383 ac_header_preproc=no 11384 fi 11385 11386 rm -f conftest.err conftest.$ac_ext 11387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11388 echo "${ECHO_T}$ac_header_preproc" >&6; } 11389 11390 # So? What about this header? 11391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11392 yes:no: ) 11393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11397 ac_header_preproc=yes 11398 ;; 11399 no:yes:* ) 11400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11412 ( cat <<\_ASBOX 11413 ## ------------------------------------ ## 11414 ## Report this to http://llvm.org/bugs/ ## 11415 ## ------------------------------------ ## 11416 _ASBOX 11417 ) | sed "s/^/$as_me: WARNING: /" >&2 11418 ;; 11419 esac 11420 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11423 echo $ECHO_N "(cached) $ECHO_C" >&6 11424 else 11425 eval "$as_ac_Header=\$ac_header_preproc" 11426 fi 11427 ac_res=`eval echo '${'$as_ac_Header'}'` 11428 { echo "$as_me:$LINENO: result: $ac_res" >&5 11429 echo "${ECHO_T}$ac_res" >&6; } 11430 11431 fi 11432 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11433 cat >>confdefs.h <<_ACEOF 11434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11435 _ACEOF 11436 11437 fi 11438 11439 done 11440 11441 11442 11443 11444 11445 11446 11447 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 11448 do 11449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11451 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11454 echo $ECHO_N "(cached) $ECHO_C" >&6 11455 fi 11456 ac_res=`eval echo '${'$as_ac_Header'}'` 11457 { echo "$as_me:$LINENO: result: $ac_res" >&5 11458 echo "${ECHO_T}$ac_res" >&6; } 11459 else 11460 # Is the header compilable? 11461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11463 cat >conftest.$ac_ext <<_ACEOF 11464 /* confdefs.h. */ 11465 _ACEOF 11466 cat confdefs.h >>conftest.$ac_ext 11467 cat >>conftest.$ac_ext <<_ACEOF 11468 /* end confdefs.h. */ 11469 $ac_includes_default 11470 #include <$ac_header> 11471 _ACEOF 11472 rm -f conftest.$ac_objext 11473 if { (ac_try="$ac_compile" 11474 case "(($ac_try" in 11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11476 *) ac_try_echo=$ac_try;; 11477 esac 11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11479 (eval "$ac_compile") 2>conftest.er1 11480 ac_status=$? 11481 grep -v '^ *+' conftest.er1 >conftest.err 11482 rm -f conftest.er1 11483 cat conftest.err >&5 11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11485 (exit $ac_status); } && 11486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11487 { (case "(($ac_try" in 11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11489 *) ac_try_echo=$ac_try;; 11490 esac 11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11492 (eval "$ac_try") 2>&5 11493 ac_status=$? 11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11495 (exit $ac_status); }; } && 11496 { ac_try='test -s conftest.$ac_objext' 11497 { (case "(($ac_try" in 11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11499 *) ac_try_echo=$ac_try;; 11500 esac 11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11502 (eval "$ac_try") 2>&5 11503 ac_status=$? 11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11505 (exit $ac_status); }; }; then 11506 ac_header_compiler=yes 11507 else 11508 echo "$as_me: failed program was:" >&5 11509 sed 's/^/| /' conftest.$ac_ext >&5 11510 11511 ac_header_compiler=no 11512 fi 11513 11514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11516 echo "${ECHO_T}$ac_header_compiler" >&6; } 11517 11518 # Is the header present? 11519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11521 cat >conftest.$ac_ext <<_ACEOF 11522 /* confdefs.h. */ 11523 _ACEOF 11524 cat confdefs.h >>conftest.$ac_ext 11525 cat >>conftest.$ac_ext <<_ACEOF 11526 /* end confdefs.h. */ 11527 #include <$ac_header> 11528 _ACEOF 11529 if { (ac_try="$ac_cpp conftest.$ac_ext" 11530 case "(($ac_try" in 11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11532 *) ac_try_echo=$ac_try;; 11533 esac 11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11536 ac_status=$? 11537 grep -v '^ *+' conftest.er1 >conftest.err 11538 rm -f conftest.er1 11539 cat conftest.err >&5 11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11541 (exit $ac_status); } >/dev/null; then 11542 if test -s conftest.err; then 11543 ac_cpp_err=$ac_c_preproc_warn_flag 11544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11545 else 11546 ac_cpp_err= 11547 fi 11548 else 11549 ac_cpp_err=yes 11550 fi 11551 if test -z "$ac_cpp_err"; then 11552 ac_header_preproc=yes 11553 else 11554 echo "$as_me: failed program was:" >&5 11555 sed 's/^/| /' conftest.$ac_ext >&5 11556 11557 ac_header_preproc=no 11558 fi 11559 11560 rm -f conftest.err conftest.$ac_ext 11561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11562 echo "${ECHO_T}$ac_header_preproc" >&6; } 11563 11564 # So? What about this header? 11565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11566 yes:no: ) 11567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11571 ac_header_preproc=yes 11572 ;; 11573 no:yes:* ) 11574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11586 ( cat <<\_ASBOX 11587 ## ------------------------------------ ## 11588 ## Report this to http://llvm.org/bugs/ ## 11589 ## ------------------------------------ ## 11590 _ASBOX 11591 ) | sed "s/^/$as_me: WARNING: /" >&2 11592 ;; 11593 esac 11594 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11597 echo $ECHO_N "(cached) $ECHO_C" >&6 11598 else 11599 eval "$as_ac_Header=\$ac_header_preproc" 11600 fi 11601 ac_res=`eval echo '${'$as_ac_Header'}'` 11602 { echo "$as_me:$LINENO: result: $ac_res" >&5 11603 echo "${ECHO_T}$ac_res" >&6; } 11604 11605 fi 11606 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11607 cat >>confdefs.h <<_ACEOF 11608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11609 _ACEOF 11610 11611 fi 11612 11613 done 11614 11615 11616 for ac_header in utime.h 11617 do 11618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11620 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11623 echo $ECHO_N "(cached) $ECHO_C" >&6 11624 fi 11625 ac_res=`eval echo '${'$as_ac_Header'}'` 11626 { echo "$as_me:$LINENO: result: $ac_res" >&5 11627 echo "${ECHO_T}$ac_res" >&6; } 11628 else 11629 # Is the header compilable? 11630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11632 cat >conftest.$ac_ext <<_ACEOF 11633 /* confdefs.h. */ 11634 _ACEOF 11635 cat confdefs.h >>conftest.$ac_ext 11636 cat >>conftest.$ac_ext <<_ACEOF 11637 /* end confdefs.h. */ 11638 $ac_includes_default 11639 #include <$ac_header> 11640 _ACEOF 11641 rm -f conftest.$ac_objext 11642 if { (ac_try="$ac_compile" 11643 case "(($ac_try" in 11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11645 *) ac_try_echo=$ac_try;; 11646 esac 11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11648 (eval "$ac_compile") 2>conftest.er1 11649 ac_status=$? 11650 grep -v '^ *+' conftest.er1 >conftest.err 11651 rm -f conftest.er1 11652 cat conftest.err >&5 11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11654 (exit $ac_status); } && 11655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11656 { (case "(($ac_try" in 11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11658 *) ac_try_echo=$ac_try;; 11659 esac 11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11661 (eval "$ac_try") 2>&5 11662 ac_status=$? 11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11664 (exit $ac_status); }; } && 11665 { ac_try='test -s conftest.$ac_objext' 11666 { (case "(($ac_try" in 11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11668 *) ac_try_echo=$ac_try;; 11669 esac 11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11671 (eval "$ac_try") 2>&5 11672 ac_status=$? 11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11674 (exit $ac_status); }; }; then 11675 ac_header_compiler=yes 11676 else 11677 echo "$as_me: failed program was:" >&5 11678 sed 's/^/| /' conftest.$ac_ext >&5 11679 11680 ac_header_compiler=no 11681 fi 11682 11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11685 echo "${ECHO_T}$ac_header_compiler" >&6; } 11686 11687 # Is the header present? 11688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11690 cat >conftest.$ac_ext <<_ACEOF 11691 /* confdefs.h. */ 11692 _ACEOF 11693 cat confdefs.h >>conftest.$ac_ext 11694 cat >>conftest.$ac_ext <<_ACEOF 11695 /* end confdefs.h. */ 11696 #include <$ac_header> 11697 _ACEOF 11698 if { (ac_try="$ac_cpp conftest.$ac_ext" 11699 case "(($ac_try" in 11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11701 *) ac_try_echo=$ac_try;; 11702 esac 11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11705 ac_status=$? 11706 grep -v '^ *+' conftest.er1 >conftest.err 11707 rm -f conftest.er1 11708 cat conftest.err >&5 11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11710 (exit $ac_status); } >/dev/null; then 11711 if test -s conftest.err; then 11712 ac_cpp_err=$ac_c_preproc_warn_flag 11713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11714 else 11715 ac_cpp_err= 11716 fi 11717 else 11718 ac_cpp_err=yes 11719 fi 11720 if test -z "$ac_cpp_err"; then 11721 ac_header_preproc=yes 11722 else 11723 echo "$as_me: failed program was:" >&5 11724 sed 's/^/| /' conftest.$ac_ext >&5 11725 11726 ac_header_preproc=no 11727 fi 11728 11729 rm -f conftest.err conftest.$ac_ext 11730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11731 echo "${ECHO_T}$ac_header_preproc" >&6; } 11732 11733 # So? What about this header? 11734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11735 yes:no: ) 11736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11740 ac_header_preproc=yes 11741 ;; 11742 no:yes:* ) 11743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11755 ( cat <<\_ASBOX 11756 ## ------------------------------------ ## 11757 ## Report this to http://llvm.org/bugs/ ## 11758 ## ------------------------------------ ## 11759 _ASBOX 11760 ) | sed "s/^/$as_me: WARNING: /" >&2 11761 ;; 11762 esac 11763 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11766 echo $ECHO_N "(cached) $ECHO_C" >&6 11767 else 11768 eval "$as_ac_Header=\$ac_header_preproc" 11769 fi 11770 ac_res=`eval echo '${'$as_ac_Header'}'` 11771 { echo "$as_me:$LINENO: result: $ac_res" >&5 11772 echo "${ECHO_T}$ac_res" >&6; } 11773 11774 fi 11775 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11776 cat >>confdefs.h <<_ACEOF 11777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11778 _ACEOF 11779 11780 fi 11781 11782 done 11783 11784 11785 11786 11787 11788 11789 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 11790 do 11791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11793 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11796 echo $ECHO_N "(cached) $ECHO_C" >&6 11797 fi 11798 ac_res=`eval echo '${'$as_ac_Header'}'` 11799 { echo "$as_me:$LINENO: result: $ac_res" >&5 11800 echo "${ECHO_T}$ac_res" >&6; } 11801 else 11802 # Is the header compilable? 11803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11805 cat >conftest.$ac_ext <<_ACEOF 11806 /* confdefs.h. */ 11807 _ACEOF 11808 cat confdefs.h >>conftest.$ac_ext 11809 cat >>conftest.$ac_ext <<_ACEOF 11810 /* end confdefs.h. */ 11811 $ac_includes_default 11812 #include <$ac_header> 11813 _ACEOF 11814 rm -f conftest.$ac_objext 11815 if { (ac_try="$ac_compile" 11816 case "(($ac_try" in 11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11818 *) ac_try_echo=$ac_try;; 11819 esac 11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11821 (eval "$ac_compile") 2>conftest.er1 11822 ac_status=$? 11823 grep -v '^ *+' conftest.er1 >conftest.err 11824 rm -f conftest.er1 11825 cat conftest.err >&5 11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11827 (exit $ac_status); } && 11828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11829 { (case "(($ac_try" in 11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11831 *) ac_try_echo=$ac_try;; 11832 esac 11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11834 (eval "$ac_try") 2>&5 11835 ac_status=$? 11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11837 (exit $ac_status); }; } && 11838 { ac_try='test -s conftest.$ac_objext' 11839 { (case "(($ac_try" in 11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11841 *) ac_try_echo=$ac_try;; 11842 esac 11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11844 (eval "$ac_try") 2>&5 11845 ac_status=$? 11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11847 (exit $ac_status); }; }; then 11848 ac_header_compiler=yes 11849 else 11850 echo "$as_me: failed program was:" >&5 11851 sed 's/^/| /' conftest.$ac_ext >&5 11852 11853 ac_header_compiler=no 11854 fi 11855 11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11858 echo "${ECHO_T}$ac_header_compiler" >&6; } 11859 11860 # Is the header present? 11861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11863 cat >conftest.$ac_ext <<_ACEOF 11864 /* confdefs.h. */ 11865 _ACEOF 11866 cat confdefs.h >>conftest.$ac_ext 11867 cat >>conftest.$ac_ext <<_ACEOF 11868 /* end confdefs.h. */ 11869 #include <$ac_header> 11870 _ACEOF 11871 if { (ac_try="$ac_cpp conftest.$ac_ext" 11872 case "(($ac_try" in 11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11874 *) ac_try_echo=$ac_try;; 11875 esac 11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11878 ac_status=$? 11879 grep -v '^ *+' conftest.er1 >conftest.err 11880 rm -f conftest.er1 11881 cat conftest.err >&5 11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11883 (exit $ac_status); } >/dev/null; then 11884 if test -s conftest.err; then 11885 ac_cpp_err=$ac_c_preproc_warn_flag 11886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11887 else 11888 ac_cpp_err= 11889 fi 11890 else 11891 ac_cpp_err=yes 11892 fi 11893 if test -z "$ac_cpp_err"; then 11894 ac_header_preproc=yes 11895 else 11896 echo "$as_me: failed program was:" >&5 11897 sed 's/^/| /' conftest.$ac_ext >&5 11898 11899 ac_header_preproc=no 11900 fi 11901 11902 rm -f conftest.err conftest.$ac_ext 11903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11904 echo "${ECHO_T}$ac_header_preproc" >&6; } 11905 11906 # So? What about this header? 11907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11908 yes:no: ) 11909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11913 ac_header_preproc=yes 11914 ;; 11915 no:yes:* ) 11916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11928 ( cat <<\_ASBOX 11929 ## ------------------------------------ ## 11930 ## Report this to http://llvm.org/bugs/ ## 11931 ## ------------------------------------ ## 11932 _ASBOX 11933 ) | sed "s/^/$as_me: WARNING: /" >&2 11934 ;; 11935 esac 11936 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11939 echo $ECHO_N "(cached) $ECHO_C" >&6 11940 else 11941 eval "$as_ac_Header=\$ac_header_preproc" 11942 fi 11943 ac_res=`eval echo '${'$as_ac_Header'}'` 11944 { echo "$as_me:$LINENO: result: $ac_res" >&5 11945 echo "${ECHO_T}$ac_res" >&6; } 11946 11947 fi 11948 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11949 cat >>confdefs.h <<_ACEOF 11950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11951 _ACEOF 11952 11953 fi 11954 11955 done 11956 11957 11958 11959 11960 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h 11961 do 11962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11964 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11967 echo $ECHO_N "(cached) $ECHO_C" >&6 11968 fi 11969 ac_res=`eval echo '${'$as_ac_Header'}'` 11970 { echo "$as_me:$LINENO: result: $ac_res" >&5 11971 echo "${ECHO_T}$ac_res" >&6; } 11972 else 11973 # Is the header compilable? 11974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11976 cat >conftest.$ac_ext <<_ACEOF 11977 /* confdefs.h. */ 11978 _ACEOF 11979 cat confdefs.h >>conftest.$ac_ext 11980 cat >>conftest.$ac_ext <<_ACEOF 11981 /* end confdefs.h. */ 11982 $ac_includes_default 11983 #include <$ac_header> 11984 _ACEOF 11985 rm -f conftest.$ac_objext 11986 if { (ac_try="$ac_compile" 11987 case "(($ac_try" in 11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11989 *) ac_try_echo=$ac_try;; 11990 esac 11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11992 (eval "$ac_compile") 2>conftest.er1 11993 ac_status=$? 11994 grep -v '^ *+' conftest.er1 >conftest.err 11995 rm -f conftest.er1 11996 cat conftest.err >&5 11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11998 (exit $ac_status); } && 11999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12000 { (case "(($ac_try" in 12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12002 *) ac_try_echo=$ac_try;; 12003 esac 12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12005 (eval "$ac_try") 2>&5 12006 ac_status=$? 12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12008 (exit $ac_status); }; } && 12009 { ac_try='test -s conftest.$ac_objext' 12010 { (case "(($ac_try" in 12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12012 *) ac_try_echo=$ac_try;; 12013 esac 12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12015 (eval "$ac_try") 2>&5 12016 ac_status=$? 12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12018 (exit $ac_status); }; }; then 12019 ac_header_compiler=yes 12020 else 12021 echo "$as_me: failed program was:" >&5 12022 sed 's/^/| /' conftest.$ac_ext >&5 12023 12024 ac_header_compiler=no 12025 fi 12026 12027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12029 echo "${ECHO_T}$ac_header_compiler" >&6; } 12030 12031 # Is the header present? 12032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 12033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12034 cat >conftest.$ac_ext <<_ACEOF 12035 /* confdefs.h. */ 12036 _ACEOF 12037 cat confdefs.h >>conftest.$ac_ext 12038 cat >>conftest.$ac_ext <<_ACEOF 12039 /* end confdefs.h. */ 12040 #include <$ac_header> 12041 _ACEOF 12042 if { (ac_try="$ac_cpp conftest.$ac_ext" 12043 case "(($ac_try" in 12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12045 *) ac_try_echo=$ac_try;; 12046 esac 12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12049 ac_status=$? 12050 grep -v '^ *+' conftest.er1 >conftest.err 12051 rm -f conftest.er1 12052 cat conftest.err >&5 12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12054 (exit $ac_status); } >/dev/null; then 12055 if test -s conftest.err; then 12056 ac_cpp_err=$ac_c_preproc_warn_flag 12057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12058 else 12059 ac_cpp_err= 12060 fi 12061 else 12062 ac_cpp_err=yes 12063 fi 12064 if test -z "$ac_cpp_err"; then 12065 ac_header_preproc=yes 12066 else 12067 echo "$as_me: failed program was:" >&5 12068 sed 's/^/| /' conftest.$ac_ext >&5 12069 12070 ac_header_preproc=no 12071 fi 12072 12073 rm -f conftest.err conftest.$ac_ext 12074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12075 echo "${ECHO_T}$ac_header_preproc" >&6; } 12076 12077 # So? What about this header? 12078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12079 yes:no: ) 12080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12084 ac_header_preproc=yes 12085 ;; 12086 no:yes:* ) 12087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12099 ( cat <<\_ASBOX 12100 ## ------------------------------------ ## 12101 ## Report this to http://llvm.org/bugs/ ## 12102 ## ------------------------------------ ## 12103 _ASBOX 12104 ) | sed "s/^/$as_me: WARNING: /" >&2 12105 ;; 12106 esac 12107 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12110 echo $ECHO_N "(cached) $ECHO_C" >&6 12111 else 12112 eval "$as_ac_Header=\$ac_header_preproc" 12113 fi 12114 ac_res=`eval echo '${'$as_ac_Header'}'` 12115 { echo "$as_me:$LINENO: result: $ac_res" >&5 12116 echo "${ECHO_T}$ac_res" >&6; } 12117 12118 fi 12119 if test `eval echo '${'$as_ac_Header'}'` = yes; then 12120 cat >>confdefs.h <<_ACEOF 12121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12122 _ACEOF 12123 12124 fi 12125 12126 done 12127 12128 12129 for ac_header in valgrind/valgrind.h 12130 do 12131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12133 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12136 echo $ECHO_N "(cached) $ECHO_C" >&6 12137 fi 12138 ac_res=`eval echo '${'$as_ac_Header'}'` 12139 { echo "$as_me:$LINENO: result: $ac_res" >&5 12140 echo "${ECHO_T}$ac_res" >&6; } 12141 else 12142 # Is the header compilable? 12143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 12144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12145 cat >conftest.$ac_ext <<_ACEOF 12146 /* confdefs.h. */ 12147 _ACEOF 12148 cat confdefs.h >>conftest.$ac_ext 12149 cat >>conftest.$ac_ext <<_ACEOF 12150 /* end confdefs.h. */ 12151 $ac_includes_default 12152 #include <$ac_header> 12153 _ACEOF 12154 rm -f conftest.$ac_objext 12155 if { (ac_try="$ac_compile" 12156 case "(($ac_try" in 12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12158 *) ac_try_echo=$ac_try;; 12159 esac 12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12161 (eval "$ac_compile") 2>conftest.er1 12162 ac_status=$? 12163 grep -v '^ *+' conftest.er1 >conftest.err 12164 rm -f conftest.er1 12165 cat conftest.err >&5 12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12167 (exit $ac_status); } && 12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12169 { (case "(($ac_try" in 12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12171 *) ac_try_echo=$ac_try;; 12172 esac 12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12174 (eval "$ac_try") 2>&5 12175 ac_status=$? 12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12177 (exit $ac_status); }; } && 12178 { ac_try='test -s conftest.$ac_objext' 12179 { (case "(($ac_try" in 12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12181 *) ac_try_echo=$ac_try;; 12182 esac 12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12184 (eval "$ac_try") 2>&5 12185 ac_status=$? 12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12187 (exit $ac_status); }; }; then 12188 ac_header_compiler=yes 12189 else 12190 echo "$as_me: failed program was:" >&5 12191 sed 's/^/| /' conftest.$ac_ext >&5 12192 12193 ac_header_compiler=no 12194 fi 12195 12196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12198 echo "${ECHO_T}$ac_header_compiler" >&6; } 12199 12200 # Is the header present? 12201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 12202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12203 cat >conftest.$ac_ext <<_ACEOF 12204 /* confdefs.h. */ 12205 _ACEOF 12206 cat confdefs.h >>conftest.$ac_ext 12207 cat >>conftest.$ac_ext <<_ACEOF 12208 /* end confdefs.h. */ 12209 #include <$ac_header> 12210 _ACEOF 12211 if { (ac_try="$ac_cpp conftest.$ac_ext" 12212 case "(($ac_try" in 12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12214 *) ac_try_echo=$ac_try;; 12215 esac 12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12218 ac_status=$? 12219 grep -v '^ *+' conftest.er1 >conftest.err 12220 rm -f conftest.er1 12221 cat conftest.err >&5 12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12223 (exit $ac_status); } >/dev/null; then 12224 if test -s conftest.err; then 12225 ac_cpp_err=$ac_c_preproc_warn_flag 12226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12227 else 12228 ac_cpp_err= 12229 fi 12230 else 12231 ac_cpp_err=yes 12232 fi 12233 if test -z "$ac_cpp_err"; then 12234 ac_header_preproc=yes 12235 else 12236 echo "$as_me: failed program was:" >&5 12237 sed 's/^/| /' conftest.$ac_ext >&5 12238 12239 ac_header_preproc=no 12240 fi 12241 12242 rm -f conftest.err conftest.$ac_ext 12243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12244 echo "${ECHO_T}$ac_header_preproc" >&6; } 12245 12246 # So? What about this header? 12247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12248 yes:no: ) 12249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12253 ac_header_preproc=yes 12254 ;; 12255 no:yes:* ) 12256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12268 ( cat <<\_ASBOX 12269 ## ------------------------------------ ## 12270 ## Report this to http://llvm.org/bugs/ ## 12271 ## ------------------------------------ ## 12272 _ASBOX 12273 ) | sed "s/^/$as_me: WARNING: /" >&2 12274 ;; 12275 esac 12276 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12279 echo $ECHO_N "(cached) $ECHO_C" >&6 12280 else 12281 eval "$as_ac_Header=\$ac_header_preproc" 12282 fi 12283 ac_res=`eval echo '${'$as_ac_Header'}'` 12284 { echo "$as_me:$LINENO: result: $ac_res" >&5 12285 echo "${ECHO_T}$ac_res" >&6; } 12286 12287 fi 12288 if test `eval echo '${'$as_ac_Header'}'` = yes; then 12289 cat >>confdefs.h <<_ACEOF 12290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12291 _ACEOF 12292 12293 fi 12294 12295 done 12296 12297 12298 for ac_header in fenv.h 12299 do 12300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12302 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12305 echo $ECHO_N "(cached) $ECHO_C" >&6 12306 fi 12307 ac_res=`eval echo '${'$as_ac_Header'}'` 12308 { echo "$as_me:$LINENO: result: $ac_res" >&5 12309 echo "${ECHO_T}$ac_res" >&6; } 12310 else 12311 # Is the header compilable? 12312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 12313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12314 cat >conftest.$ac_ext <<_ACEOF 12315 /* confdefs.h. */ 12316 _ACEOF 12317 cat confdefs.h >>conftest.$ac_ext 12318 cat >>conftest.$ac_ext <<_ACEOF 12319 /* end confdefs.h. */ 12320 $ac_includes_default 12321 #include <$ac_header> 12322 _ACEOF 12323 rm -f conftest.$ac_objext 12324 if { (ac_try="$ac_compile" 12325 case "(($ac_try" in 12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12327 *) ac_try_echo=$ac_try;; 12328 esac 12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12330 (eval "$ac_compile") 2>conftest.er1 12331 ac_status=$? 12332 grep -v '^ *+' conftest.er1 >conftest.err 12333 rm -f conftest.er1 12334 cat conftest.err >&5 12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12336 (exit $ac_status); } && 12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12338 { (case "(($ac_try" in 12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12340 *) ac_try_echo=$ac_try;; 12341 esac 12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12343 (eval "$ac_try") 2>&5 12344 ac_status=$? 12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12346 (exit $ac_status); }; } && 12347 { ac_try='test -s conftest.$ac_objext' 12348 { (case "(($ac_try" in 12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12350 *) ac_try_echo=$ac_try;; 12351 esac 12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12353 (eval "$ac_try") 2>&5 12354 ac_status=$? 12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12356 (exit $ac_status); }; }; then 12357 ac_header_compiler=yes 12358 else 12359 echo "$as_me: failed program was:" >&5 12360 sed 's/^/| /' conftest.$ac_ext >&5 12361 12362 ac_header_compiler=no 12363 fi 12364 12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12367 echo "${ECHO_T}$ac_header_compiler" >&6; } 12368 12369 # Is the header present? 12370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 12371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12372 cat >conftest.$ac_ext <<_ACEOF 12373 /* confdefs.h. */ 12374 _ACEOF 12375 cat confdefs.h >>conftest.$ac_ext 12376 cat >>conftest.$ac_ext <<_ACEOF 12377 /* end confdefs.h. */ 12378 #include <$ac_header> 12379 _ACEOF 12380 if { (ac_try="$ac_cpp conftest.$ac_ext" 12381 case "(($ac_try" in 12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12383 *) ac_try_echo=$ac_try;; 12384 esac 12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12387 ac_status=$? 12388 grep -v '^ *+' conftest.er1 >conftest.err 12389 rm -f conftest.er1 12390 cat conftest.err >&5 12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12392 (exit $ac_status); } >/dev/null; then 12393 if test -s conftest.err; then 12394 ac_cpp_err=$ac_c_preproc_warn_flag 12395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12396 else 12397 ac_cpp_err= 12398 fi 12399 else 12400 ac_cpp_err=yes 12401 fi 12402 if test -z "$ac_cpp_err"; then 12403 ac_header_preproc=yes 12404 else 12405 echo "$as_me: failed program was:" >&5 12406 sed 's/^/| /' conftest.$ac_ext >&5 12407 12408 ac_header_preproc=no 12409 fi 12410 12411 rm -f conftest.err conftest.$ac_ext 12412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12413 echo "${ECHO_T}$ac_header_preproc" >&6; } 12414 12415 # So? What about this header? 12416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12417 yes:no: ) 12418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12422 ac_header_preproc=yes 12423 ;; 12424 no:yes:* ) 12425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12437 ( cat <<\_ASBOX 12438 ## ------------------------------------ ## 12439 ## Report this to http://llvm.org/bugs/ ## 12440 ## ------------------------------------ ## 12441 _ASBOX 12442 ) | sed "s/^/$as_me: WARNING: /" >&2 12443 ;; 12444 esac 12445 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12448 echo $ECHO_N "(cached) $ECHO_C" >&6 12449 else 12450 eval "$as_ac_Header=\$ac_header_preproc" 12451 fi 12452 ac_res=`eval echo '${'$as_ac_Header'}'` 12453 { echo "$as_me:$LINENO: result: $ac_res" >&5 12454 echo "${ECHO_T}$ac_res" >&6; } 12455 12456 fi 12457 if test `eval echo '${'$as_ac_Header'}'` = yes; then 12458 cat >>confdefs.h <<_ACEOF 12459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12460 _ACEOF 12461 12462 fi 12463 12464 done 12465 12466 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5 12467 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; } 12468 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then 12469 echo $ECHO_N "(cached) $ECHO_C" >&6 12470 else 12471 cat >conftest.$ac_ext <<_ACEOF 12472 /* confdefs.h. */ 12473 _ACEOF 12474 cat confdefs.h >>conftest.$ac_ext 12475 cat >>conftest.$ac_ext <<_ACEOF 12476 /* end confdefs.h. */ 12477 #include <fenv.h> 12478 12479 int 12480 main () 12481 { 12482 #ifndef FE_ALL_EXCEPT 12483 char *p = (char *) FE_ALL_EXCEPT; 12484 return !p; 12485 #endif 12486 12487 ; 12488 return 0; 12489 } 12490 _ACEOF 12491 rm -f conftest.$ac_objext 12492 if { (ac_try="$ac_compile" 12493 case "(($ac_try" in 12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12495 *) ac_try_echo=$ac_try;; 12496 esac 12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12498 (eval "$ac_compile") 2>conftest.er1 12499 ac_status=$? 12500 grep -v '^ *+' conftest.er1 >conftest.err 12501 rm -f conftest.er1 12502 cat conftest.err >&5 12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12504 (exit $ac_status); } && 12505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12506 { (case "(($ac_try" in 12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12508 *) ac_try_echo=$ac_try;; 12509 esac 12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12511 (eval "$ac_try") 2>&5 12512 ac_status=$? 12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12514 (exit $ac_status); }; } && 12515 { ac_try='test -s conftest.$ac_objext' 12516 { (case "(($ac_try" in 12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12518 *) ac_try_echo=$ac_try;; 12519 esac 12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12521 (eval "$ac_try") 2>&5 12522 ac_status=$? 12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12524 (exit $ac_status); }; }; then 12525 ac_cv_have_decl_FE_ALL_EXCEPT=yes 12526 else 12527 echo "$as_me: failed program was:" >&5 12528 sed 's/^/| /' conftest.$ac_ext >&5 12529 12530 ac_cv_have_decl_FE_ALL_EXCEPT=no 12531 fi 12532 12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12534 fi 12535 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5 12536 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; } 12537 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then 12538 12539 cat >>confdefs.h <<_ACEOF 12540 #define HAVE_DECL_FE_ALL_EXCEPT 1 12541 _ACEOF 12542 12543 12544 else 12545 cat >>confdefs.h <<_ACEOF 12546 #define HAVE_DECL_FE_ALL_EXCEPT 0 12547 _ACEOF 12548 12549 12550 fi 12551 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5 12552 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; } 12553 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then 12554 echo $ECHO_N "(cached) $ECHO_C" >&6 12555 else 12556 cat >conftest.$ac_ext <<_ACEOF 12557 /* confdefs.h. */ 12558 _ACEOF 12559 cat confdefs.h >>conftest.$ac_ext 12560 cat >>conftest.$ac_ext <<_ACEOF 12561 /* end confdefs.h. */ 12562 #include <fenv.h> 12563 12564 int 12565 main () 12566 { 12567 #ifndef FE_INEXACT 12568 char *p = (char *) FE_INEXACT; 12569 return !p; 12570 #endif 12571 12572 ; 12573 return 0; 12574 } 12575 _ACEOF 12576 rm -f conftest.$ac_objext 12577 if { (ac_try="$ac_compile" 12578 case "(($ac_try" in 12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12580 *) ac_try_echo=$ac_try;; 12581 esac 12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12583 (eval "$ac_compile") 2>conftest.er1 12584 ac_status=$? 12585 grep -v '^ *+' conftest.er1 >conftest.err 12586 rm -f conftest.er1 12587 cat conftest.err >&5 12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12589 (exit $ac_status); } && 12590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12591 { (case "(($ac_try" in 12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12593 *) ac_try_echo=$ac_try;; 12594 esac 12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12596 (eval "$ac_try") 2>&5 12597 ac_status=$? 12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12599 (exit $ac_status); }; } && 12600 { ac_try='test -s conftest.$ac_objext' 12601 { (case "(($ac_try" in 12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12603 *) ac_try_echo=$ac_try;; 12604 esac 12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12606 (eval "$ac_try") 2>&5 12607 ac_status=$? 12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12609 (exit $ac_status); }; }; then 12610 ac_cv_have_decl_FE_INEXACT=yes 12611 else 12612 echo "$as_me: failed program was:" >&5 12613 sed 's/^/| /' conftest.$ac_ext >&5 12614 12615 ac_cv_have_decl_FE_INEXACT=no 12616 fi 12617 12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12619 fi 12620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5 12621 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; } 12622 if test $ac_cv_have_decl_FE_INEXACT = yes; then 12623 12624 cat >>confdefs.h <<_ACEOF 12625 #define HAVE_DECL_FE_INEXACT 1 12626 _ACEOF 12627 12628 12629 else 12630 cat >>confdefs.h <<_ACEOF 12631 #define HAVE_DECL_FE_INEXACT 0 12632 _ACEOF 12633 12634 12635 fi 12636 12637 12638 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12639 12640 for ac_header in pthread.h 12641 do 12642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12644 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12647 echo $ECHO_N "(cached) $ECHO_C" >&6 12648 fi 12649 ac_res=`eval echo '${'$as_ac_Header'}'` 12650 { echo "$as_me:$LINENO: result: $ac_res" >&5 12651 echo "${ECHO_T}$ac_res" >&6; } 12652 else 12653 # Is the header compilable? 12654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 12655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12656 cat >conftest.$ac_ext <<_ACEOF 12657 /* confdefs.h. */ 12658 _ACEOF 12659 cat confdefs.h >>conftest.$ac_ext 12660 cat >>conftest.$ac_ext <<_ACEOF 12661 /* end confdefs.h. */ 12662 $ac_includes_default 12663 #include <$ac_header> 12664 _ACEOF 12665 rm -f conftest.$ac_objext 12666 if { (ac_try="$ac_compile" 12667 case "(($ac_try" in 12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12669 *) ac_try_echo=$ac_try;; 12670 esac 12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12672 (eval "$ac_compile") 2>conftest.er1 12673 ac_status=$? 12674 grep -v '^ *+' conftest.er1 >conftest.err 12675 rm -f conftest.er1 12676 cat conftest.err >&5 12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12678 (exit $ac_status); } && 12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12680 { (case "(($ac_try" in 12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12682 *) ac_try_echo=$ac_try;; 12683 esac 12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12685 (eval "$ac_try") 2>&5 12686 ac_status=$? 12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12688 (exit $ac_status); }; } && 12689 { ac_try='test -s conftest.$ac_objext' 12690 { (case "(($ac_try" in 12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12692 *) ac_try_echo=$ac_try;; 12693 esac 12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12695 (eval "$ac_try") 2>&5 12696 ac_status=$? 12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12698 (exit $ac_status); }; }; then 12699 ac_header_compiler=yes 12700 else 12701 echo "$as_me: failed program was:" >&5 12702 sed 's/^/| /' conftest.$ac_ext >&5 12703 12704 ac_header_compiler=no 12705 fi 12706 12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12709 echo "${ECHO_T}$ac_header_compiler" >&6; } 12710 12711 # Is the header present? 12712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 12713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12714 cat >conftest.$ac_ext <<_ACEOF 12715 /* confdefs.h. */ 12716 _ACEOF 12717 cat confdefs.h >>conftest.$ac_ext 12718 cat >>conftest.$ac_ext <<_ACEOF 12719 /* end confdefs.h. */ 12720 #include <$ac_header> 12721 _ACEOF 12722 if { (ac_try="$ac_cpp conftest.$ac_ext" 12723 case "(($ac_try" in 12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12725 *) ac_try_echo=$ac_try;; 12726 esac 12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12729 ac_status=$? 12730 grep -v '^ *+' conftest.er1 >conftest.err 12731 rm -f conftest.er1 12732 cat conftest.err >&5 12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12734 (exit $ac_status); } >/dev/null; then 12735 if test -s conftest.err; then 12736 ac_cpp_err=$ac_c_preproc_warn_flag 12737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12738 else 12739 ac_cpp_err= 12740 fi 12741 else 12742 ac_cpp_err=yes 12743 fi 12744 if test -z "$ac_cpp_err"; then 12745 ac_header_preproc=yes 12746 else 12747 echo "$as_me: failed program was:" >&5 12748 sed 's/^/| /' conftest.$ac_ext >&5 12749 12750 ac_header_preproc=no 12751 fi 12752 12753 rm -f conftest.err conftest.$ac_ext 12754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12755 echo "${ECHO_T}$ac_header_preproc" >&6; } 12756 12757 # So? What about this header? 12758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12759 yes:no: ) 12760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12764 ac_header_preproc=yes 12765 ;; 12766 no:yes:* ) 12767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12779 ( cat <<\_ASBOX 12780 ## ------------------------------------ ## 12781 ## Report this to http://llvm.org/bugs/ ## 12782 ## ------------------------------------ ## 12783 _ASBOX 12784 ) | sed "s/^/$as_me: WARNING: /" >&2 12785 ;; 12786 esac 12787 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12790 echo $ECHO_N "(cached) $ECHO_C" >&6 12791 else 12792 eval "$as_ac_Header=\$ac_header_preproc" 12793 fi 12794 ac_res=`eval echo '${'$as_ac_Header'}'` 12795 { echo "$as_me:$LINENO: result: $ac_res" >&5 12796 echo "${ECHO_T}$ac_res" >&6; } 12797 12798 fi 12799 if test `eval echo '${'$as_ac_Header'}'` = yes; then 12800 cat >>confdefs.h <<_ACEOF 12801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12802 _ACEOF 12803 HAVE_PTHREAD=1 12804 12805 else 12806 HAVE_PTHREAD=0 12807 12808 fi 12809 12810 done 12811 12812 else 12813 HAVE_PTHREAD=0 12814 12815 fi 12816 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 12817 12818 for ac_header in zlib.h 12819 do 12820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12822 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12825 echo $ECHO_N "(cached) $ECHO_C" >&6 12826 fi 12827 ac_res=`eval echo '${'$as_ac_Header'}'` 12828 { echo "$as_me:$LINENO: result: $ac_res" >&5 12829 echo "${ECHO_T}$ac_res" >&6; } 12830 else 12831 # Is the header compilable? 12832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 12833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12834 cat >conftest.$ac_ext <<_ACEOF 12835 /* confdefs.h. */ 12836 _ACEOF 12837 cat confdefs.h >>conftest.$ac_ext 12838 cat >>conftest.$ac_ext <<_ACEOF 12839 /* end confdefs.h. */ 12840 $ac_includes_default 12841 #include <$ac_header> 12842 _ACEOF 12843 rm -f conftest.$ac_objext 12844 if { (ac_try="$ac_compile" 12845 case "(($ac_try" in 12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12847 *) ac_try_echo=$ac_try;; 12848 esac 12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12850 (eval "$ac_compile") 2>conftest.er1 12851 ac_status=$? 12852 grep -v '^ *+' conftest.er1 >conftest.err 12853 rm -f conftest.er1 12854 cat conftest.err >&5 12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12856 (exit $ac_status); } && 12857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12858 { (case "(($ac_try" in 12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12860 *) ac_try_echo=$ac_try;; 12861 esac 12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12863 (eval "$ac_try") 2>&5 12864 ac_status=$? 12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12866 (exit $ac_status); }; } && 12867 { ac_try='test -s conftest.$ac_objext' 12868 { (case "(($ac_try" in 12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12870 *) ac_try_echo=$ac_try;; 12871 esac 12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12873 (eval "$ac_try") 2>&5 12874 ac_status=$? 12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12876 (exit $ac_status); }; }; then 12877 ac_header_compiler=yes 12878 else 12879 echo "$as_me: failed program was:" >&5 12880 sed 's/^/| /' conftest.$ac_ext >&5 12881 12882 ac_header_compiler=no 12883 fi 12884 12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12887 echo "${ECHO_T}$ac_header_compiler" >&6; } 12888 12889 # Is the header present? 12890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 12891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12892 cat >conftest.$ac_ext <<_ACEOF 12893 /* confdefs.h. */ 12894 _ACEOF 12895 cat confdefs.h >>conftest.$ac_ext 12896 cat >>conftest.$ac_ext <<_ACEOF 12897 /* end confdefs.h. */ 12898 #include <$ac_header> 12899 _ACEOF 12900 if { (ac_try="$ac_cpp conftest.$ac_ext" 12901 case "(($ac_try" in 12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12903 *) ac_try_echo=$ac_try;; 12904 esac 12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12907 ac_status=$? 12908 grep -v '^ *+' conftest.er1 >conftest.err 12909 rm -f conftest.er1 12910 cat conftest.err >&5 12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12912 (exit $ac_status); } >/dev/null; then 12913 if test -s conftest.err; then 12914 ac_cpp_err=$ac_c_preproc_warn_flag 12915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12916 else 12917 ac_cpp_err= 12918 fi 12919 else 12920 ac_cpp_err=yes 12921 fi 12922 if test -z "$ac_cpp_err"; then 12923 ac_header_preproc=yes 12924 else 12925 echo "$as_me: failed program was:" >&5 12926 sed 's/^/| /' conftest.$ac_ext >&5 12927 12928 ac_header_preproc=no 12929 fi 12930 12931 rm -f conftest.err conftest.$ac_ext 12932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12933 echo "${ECHO_T}$ac_header_preproc" >&6; } 12934 12935 # So? What about this header? 12936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12937 yes:no: ) 12938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12942 ac_header_preproc=yes 12943 ;; 12944 no:yes:* ) 12945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12957 ( cat <<\_ASBOX 12958 ## ------------------------------------ ## 12959 ## Report this to http://llvm.org/bugs/ ## 12960 ## ------------------------------------ ## 12961 _ASBOX 12962 ) | sed "s/^/$as_me: WARNING: /" >&2 12963 ;; 12964 esac 12965 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12968 echo $ECHO_N "(cached) $ECHO_C" >&6 12969 else 12970 eval "$as_ac_Header=\$ac_header_preproc" 12971 fi 12972 ac_res=`eval echo '${'$as_ac_Header'}'` 12973 { echo "$as_me:$LINENO: result: $ac_res" >&5 12974 echo "${ECHO_T}$ac_res" >&6; } 12975 12976 fi 12977 if test `eval echo '${'$as_ac_Header'}'` = yes; then 12978 cat >>confdefs.h <<_ACEOF 12979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12980 _ACEOF 12981 HAVE_LIBZ=1 12982 12983 else 12984 HAVE_LIBZ=0 12985 12986 fi 12987 12988 done 12989 12990 else 12991 HAVE_LIBZ=0 12992 12993 fi 12994 12995 if test "$llvm_cv_enable_libffi" = "yes" ; then 12996 12997 12998 for ac_header in ffi.h ffi/ffi.h 12999 do 13000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13002 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13005 echo $ECHO_N "(cached) $ECHO_C" >&6 13006 fi 13007 ac_res=`eval echo '${'$as_ac_Header'}'` 13008 { echo "$as_me:$LINENO: result: $ac_res" >&5 13009 echo "${ECHO_T}$ac_res" >&6; } 13010 else 13011 # Is the header compilable? 13012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 13013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13014 cat >conftest.$ac_ext <<_ACEOF 13015 /* confdefs.h. */ 13016 _ACEOF 13017 cat confdefs.h >>conftest.$ac_ext 13018 cat >>conftest.$ac_ext <<_ACEOF 13019 /* end confdefs.h. */ 13020 $ac_includes_default 13021 #include <$ac_header> 13022 _ACEOF 13023 rm -f conftest.$ac_objext 13024 if { (ac_try="$ac_compile" 13025 case "(($ac_try" in 13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13027 *) ac_try_echo=$ac_try;; 13028 esac 13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13030 (eval "$ac_compile") 2>conftest.er1 13031 ac_status=$? 13032 grep -v '^ *+' conftest.er1 >conftest.err 13033 rm -f conftest.er1 13034 cat conftest.err >&5 13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13036 (exit $ac_status); } && 13037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13038 { (case "(($ac_try" in 13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13040 *) ac_try_echo=$ac_try;; 13041 esac 13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13043 (eval "$ac_try") 2>&5 13044 ac_status=$? 13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13046 (exit $ac_status); }; } && 13047 { ac_try='test -s conftest.$ac_objext' 13048 { (case "(($ac_try" in 13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13050 *) ac_try_echo=$ac_try;; 13051 esac 13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13053 (eval "$ac_try") 2>&5 13054 ac_status=$? 13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13056 (exit $ac_status); }; }; then 13057 ac_header_compiler=yes 13058 else 13059 echo "$as_me: failed program was:" >&5 13060 sed 's/^/| /' conftest.$ac_ext >&5 13061 13062 ac_header_compiler=no 13063 fi 13064 13065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13067 echo "${ECHO_T}$ac_header_compiler" >&6; } 13068 13069 # Is the header present? 13070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 13071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13072 cat >conftest.$ac_ext <<_ACEOF 13073 /* confdefs.h. */ 13074 _ACEOF 13075 cat confdefs.h >>conftest.$ac_ext 13076 cat >>conftest.$ac_ext <<_ACEOF 13077 /* end confdefs.h. */ 13078 #include <$ac_header> 13079 _ACEOF 13080 if { (ac_try="$ac_cpp conftest.$ac_ext" 13081 case "(($ac_try" in 13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13083 *) ac_try_echo=$ac_try;; 13084 esac 13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13087 ac_status=$? 13088 grep -v '^ *+' conftest.er1 >conftest.err 13089 rm -f conftest.er1 13090 cat conftest.err >&5 13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13092 (exit $ac_status); } >/dev/null; then 13093 if test -s conftest.err; then 13094 ac_cpp_err=$ac_c_preproc_warn_flag 13095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13096 else 13097 ac_cpp_err= 13098 fi 13099 else 13100 ac_cpp_err=yes 13101 fi 13102 if test -z "$ac_cpp_err"; then 13103 ac_header_preproc=yes 13104 else 13105 echo "$as_me: failed program was:" >&5 13106 sed 's/^/| /' conftest.$ac_ext >&5 13107 13108 ac_header_preproc=no 13109 fi 13110 13111 rm -f conftest.err conftest.$ac_ext 13112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13113 echo "${ECHO_T}$ac_header_preproc" >&6; } 13114 13115 # So? What about this header? 13116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13117 yes:no: ) 13118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13122 ac_header_preproc=yes 13123 ;; 13124 no:yes:* ) 13125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13137 ( cat <<\_ASBOX 13138 ## ------------------------------------ ## 13139 ## Report this to http://llvm.org/bugs/ ## 13140 ## ------------------------------------ ## 13141 _ASBOX 13142 ) | sed "s/^/$as_me: WARNING: /" >&2 13143 ;; 13144 esac 13145 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13148 echo $ECHO_N "(cached) $ECHO_C" >&6 13149 else 13150 eval "$as_ac_Header=\$ac_header_preproc" 13151 fi 13152 ac_res=`eval echo '${'$as_ac_Header'}'` 13153 { echo "$as_me:$LINENO: result: $ac_res" >&5 13154 echo "${ECHO_T}$ac_res" >&6; } 13155 13156 fi 13157 if test `eval echo '${'$as_ac_Header'}'` = yes; then 13158 cat >>confdefs.h <<_ACEOF 13159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13160 _ACEOF 13161 13162 fi 13163 13164 done 13165 13166 fi 13167 13168 13169 for ac_header in CrashReporterClient.h 13170 do 13171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13173 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13176 echo $ECHO_N "(cached) $ECHO_C" >&6 13177 fi 13178 ac_res=`eval echo '${'$as_ac_Header'}'` 13179 { echo "$as_me:$LINENO: result: $ac_res" >&5 13180 echo "${ECHO_T}$ac_res" >&6; } 13181 else 13182 # Is the header compilable? 13183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 13184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13185 cat >conftest.$ac_ext <<_ACEOF 13186 /* confdefs.h. */ 13187 _ACEOF 13188 cat confdefs.h >>conftest.$ac_ext 13189 cat >>conftest.$ac_ext <<_ACEOF 13190 /* end confdefs.h. */ 13191 $ac_includes_default 13192 #include <$ac_header> 13193 _ACEOF 13194 rm -f conftest.$ac_objext 13195 if { (ac_try="$ac_compile" 13196 case "(($ac_try" in 13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13198 *) ac_try_echo=$ac_try;; 13199 esac 13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13201 (eval "$ac_compile") 2>conftest.er1 13202 ac_status=$? 13203 grep -v '^ *+' conftest.er1 >conftest.err 13204 rm -f conftest.er1 13205 cat conftest.err >&5 13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13207 (exit $ac_status); } && 13208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13209 { (case "(($ac_try" in 13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13211 *) ac_try_echo=$ac_try;; 13212 esac 13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13214 (eval "$ac_try") 2>&5 13215 ac_status=$? 13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13217 (exit $ac_status); }; } && 13218 { ac_try='test -s conftest.$ac_objext' 13219 { (case "(($ac_try" in 13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13221 *) ac_try_echo=$ac_try;; 13222 esac 13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13224 (eval "$ac_try") 2>&5 13225 ac_status=$? 13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13227 (exit $ac_status); }; }; then 13228 ac_header_compiler=yes 13229 else 13230 echo "$as_me: failed program was:" >&5 13231 sed 's/^/| /' conftest.$ac_ext >&5 13232 13233 ac_header_compiler=no 13234 fi 13235 13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13238 echo "${ECHO_T}$ac_header_compiler" >&6; } 13239 13240 # Is the header present? 13241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 13242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13243 cat >conftest.$ac_ext <<_ACEOF 13244 /* confdefs.h. */ 13245 _ACEOF 13246 cat confdefs.h >>conftest.$ac_ext 13247 cat >>conftest.$ac_ext <<_ACEOF 13248 /* end confdefs.h. */ 13249 #include <$ac_header> 13250 _ACEOF 13251 if { (ac_try="$ac_cpp conftest.$ac_ext" 13252 case "(($ac_try" in 13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13254 *) ac_try_echo=$ac_try;; 13255 esac 13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13258 ac_status=$? 13259 grep -v '^ *+' conftest.er1 >conftest.err 13260 rm -f conftest.er1 13261 cat conftest.err >&5 13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13263 (exit $ac_status); } >/dev/null; then 13264 if test -s conftest.err; then 13265 ac_cpp_err=$ac_c_preproc_warn_flag 13266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13267 else 13268 ac_cpp_err= 13269 fi 13270 else 13271 ac_cpp_err=yes 13272 fi 13273 if test -z "$ac_cpp_err"; then 13274 ac_header_preproc=yes 13275 else 13276 echo "$as_me: failed program was:" >&5 13277 sed 's/^/| /' conftest.$ac_ext >&5 13278 13279 ac_header_preproc=no 13280 fi 13281 13282 rm -f conftest.err conftest.$ac_ext 13283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13284 echo "${ECHO_T}$ac_header_preproc" >&6; } 13285 13286 # So? What about this header? 13287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13288 yes:no: ) 13289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13293 ac_header_preproc=yes 13294 ;; 13295 no:yes:* ) 13296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13308 ( cat <<\_ASBOX 13309 ## ------------------------------------ ## 13310 ## Report this to http://llvm.org/bugs/ ## 13311 ## ------------------------------------ ## 13312 _ASBOX 13313 ) | sed "s/^/$as_me: WARNING: /" >&2 13314 ;; 13315 esac 13316 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13319 echo $ECHO_N "(cached) $ECHO_C" >&6 13320 else 13321 eval "$as_ac_Header=\$ac_header_preproc" 13322 fi 13323 ac_res=`eval echo '${'$as_ac_Header'}'` 13324 { echo "$as_me:$LINENO: result: $ac_res" >&5 13325 echo "${ECHO_T}$ac_res" >&6; } 13326 13327 fi 13328 if test `eval echo '${'$as_ac_Header'}'` = yes; then 13329 cat >>confdefs.h <<_ACEOF 13330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13331 _ACEOF 13332 13333 fi 13334 13335 done 13336 13337 13338 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 13339 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 13340 cat >conftest.$ac_ext <<_ACEOF 13341 13342 /* confdefs.h. */ 13343 _ACEOF 13344 cat confdefs.h >>conftest.$ac_ext 13345 cat >>conftest.$ac_ext <<_ACEOF 13346 /* end confdefs.h. */ 13347 13348 extern const char *__crashreporter_info__; 13349 int main() { 13350 __crashreporter_info__ = "test"; 13351 return 0; 13352 } 13353 13354 13355 _ACEOF 13356 rm -f conftest.$ac_objext conftest$ac_exeext 13357 if { (ac_try="$ac_link" 13358 case "(($ac_try" in 13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13360 *) ac_try_echo=$ac_try;; 13361 esac 13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13363 (eval "$ac_link") 2>conftest.er1 13364 ac_status=$? 13365 grep -v '^ *+' conftest.er1 >conftest.err 13366 rm -f conftest.er1 13367 cat conftest.err >&5 13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13369 (exit $ac_status); } && 13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 13380 { ac_try='test -s conftest$ac_exeext' 13381 { (case "(($ac_try" in 13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13383 *) ac_try_echo=$ac_try;; 13384 esac 13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13386 (eval "$ac_try") 2>&5 13387 ac_status=$? 13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13389 (exit $ac_status); }; }; then 13390 13391 { echo "$as_me:$LINENO: result: yes" >&5 13392 echo "${ECHO_T}yes" >&6; } 13393 13394 cat >>confdefs.h <<\_ACEOF 13395 #define HAVE_CRASHREPORTER_INFO 1 13396 _ACEOF 13397 13398 13399 else 13400 echo "$as_me: failed program was:" >&5 13401 sed 's/^/| /' conftest.$ac_ext >&5 13402 13403 13404 { echo "$as_me:$LINENO: result: no" >&5 13405 echo "${ECHO_T}no" >&6; } 13406 13407 cat >>confdefs.h <<\_ACEOF 13408 #define HAVE_CRASHREPORTER_INFO 0 13409 _ACEOF 13410 13411 13412 fi 13413 13414 rm -f core conftest.err conftest.$ac_objext \ 13415 conftest$ac_exeext conftest.$ac_ext 13416 13417 13418 13419 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 13420 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 13421 if test "${ac_cv_huge_val_sanity+set}" = set; then 13422 echo $ECHO_N "(cached) $ECHO_C" >&6 13423 else 13424 13425 ac_ext=cpp 13426 ac_cpp='$CXXCPP $CPPFLAGS' 13427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13430 13431 ac_save_CXXFLAGS=$CXXFLAGS 13432 CXXFLAGS="$CXXFLAGS -pedantic" 13433 if test "$cross_compiling" = yes; then 13434 ac_cv_huge_val_sanity=yes 13435 else 13436 cat >conftest.$ac_ext <<_ACEOF 13437 /* confdefs.h. */ 13438 _ACEOF 13439 cat confdefs.h >>conftest.$ac_ext 13440 cat >>conftest.$ac_ext <<_ACEOF 13441 /* end confdefs.h. */ 13442 #include <math.h> 13443 int 13444 main () 13445 { 13446 double x = HUGE_VAL; return x != x; 13447 ; 13448 return 0; 13449 } 13450 _ACEOF 13451 rm -f conftest$ac_exeext 13452 if { (ac_try="$ac_link" 13453 case "(($ac_try" in 13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13455 *) ac_try_echo=$ac_try;; 13456 esac 13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13458 (eval "$ac_link") 2>&5 13459 ac_status=$? 13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13462 { (case "(($ac_try" in 13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13464 *) ac_try_echo=$ac_try;; 13465 esac 13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13467 (eval "$ac_try") 2>&5 13468 ac_status=$? 13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13470 (exit $ac_status); }; }; then 13471 ac_cv_huge_val_sanity=yes 13472 else 13473 echo "$as_me: program exited with status $ac_status" >&5 13474 echo "$as_me: failed program was:" >&5 13475 sed 's/^/| /' conftest.$ac_ext >&5 13476 13477 ( exit $ac_status ) 13478 ac_cv_huge_val_sanity=no 13479 fi 13480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13481 fi 13482 13483 13484 CXXFLAGS=$ac_save_CXXFLAGS 13485 ac_ext=c 13486 ac_cpp='$CPP $CPPFLAGS' 13487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13489 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13490 13491 13492 fi 13493 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 13494 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 13495 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 13496 13497 13498 { echo "$as_me:$LINENO: checking for pid_t" >&5 13499 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 13500 if test "${ac_cv_type_pid_t+set}" = set; then 13501 echo $ECHO_N "(cached) $ECHO_C" >&6 13502 else 13503 cat >conftest.$ac_ext <<_ACEOF 13504 /* confdefs.h. */ 13505 _ACEOF 13506 cat confdefs.h >>conftest.$ac_ext 13507 cat >>conftest.$ac_ext <<_ACEOF 13508 /* end confdefs.h. */ 13509 $ac_includes_default 13510 typedef pid_t ac__type_new_; 13511 int 13512 main () 13513 { 13514 if ((ac__type_new_ *) 0) 13515 return 0; 13516 if (sizeof (ac__type_new_)) 13517 return 0; 13518 ; 13519 return 0; 13520 } 13521 _ACEOF 13522 rm -f conftest.$ac_objext 13523 if { (ac_try="$ac_compile" 13524 case "(($ac_try" in 13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13526 *) ac_try_echo=$ac_try;; 13527 esac 13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13529 (eval "$ac_compile") 2>conftest.er1 13530 ac_status=$? 13531 grep -v '^ *+' conftest.er1 >conftest.err 13532 rm -f conftest.er1 13533 cat conftest.err >&5 13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13535 (exit $ac_status); } && 13536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13537 { (case "(($ac_try" in 13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13539 *) ac_try_echo=$ac_try;; 13540 esac 13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13542 (eval "$ac_try") 2>&5 13543 ac_status=$? 13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13545 (exit $ac_status); }; } && 13546 { ac_try='test -s conftest.$ac_objext' 13547 { (case "(($ac_try" in 13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13549 *) ac_try_echo=$ac_try;; 13550 esac 13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13552 (eval "$ac_try") 2>&5 13553 ac_status=$? 13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13555 (exit $ac_status); }; }; then 13556 ac_cv_type_pid_t=yes 13557 else 13558 echo "$as_me: failed program was:" >&5 13559 sed 's/^/| /' conftest.$ac_ext >&5 13560 13561 ac_cv_type_pid_t=no 13562 fi 13563 13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13565 fi 13566 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 13567 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 13568 if test $ac_cv_type_pid_t = yes; then 13569 : 13570 else 13571 13572 cat >>confdefs.h <<_ACEOF 13573 #define pid_t int 13574 _ACEOF 13575 13576 fi 13577 13578 { echo "$as_me:$LINENO: checking for size_t" >&5 13579 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 13580 if test "${ac_cv_type_size_t+set}" = set; then 13581 echo $ECHO_N "(cached) $ECHO_C" >&6 13582 else 13583 cat >conftest.$ac_ext <<_ACEOF 13584 /* confdefs.h. */ 13585 _ACEOF 13586 cat confdefs.h >>conftest.$ac_ext 13587 cat >>conftest.$ac_ext <<_ACEOF 13588 /* end confdefs.h. */ 13589 $ac_includes_default 13590 typedef size_t ac__type_new_; 13591 int 13592 main () 13593 { 13594 if ((ac__type_new_ *) 0) 13595 return 0; 13596 if (sizeof (ac__type_new_)) 13597 return 0; 13598 ; 13599 return 0; 13600 } 13601 _ACEOF 13602 rm -f conftest.$ac_objext 13603 if { (ac_try="$ac_compile" 13604 case "(($ac_try" in 13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13606 *) ac_try_echo=$ac_try;; 13607 esac 13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13609 (eval "$ac_compile") 2>conftest.er1 13610 ac_status=$? 13611 grep -v '^ *+' conftest.er1 >conftest.err 13612 rm -f conftest.er1 13613 cat conftest.err >&5 13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13615 (exit $ac_status); } && 13616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13617 { (case "(($ac_try" in 13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13619 *) ac_try_echo=$ac_try;; 13620 esac 13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13622 (eval "$ac_try") 2>&5 13623 ac_status=$? 13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13625 (exit $ac_status); }; } && 13626 { ac_try='test -s conftest.$ac_objext' 13627 { (case "(($ac_try" in 13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13629 *) ac_try_echo=$ac_try;; 13630 esac 13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13632 (eval "$ac_try") 2>&5 13633 ac_status=$? 13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13635 (exit $ac_status); }; }; then 13636 ac_cv_type_size_t=yes 13637 else 13638 echo "$as_me: failed program was:" >&5 13639 sed 's/^/| /' conftest.$ac_ext >&5 13640 13641 ac_cv_type_size_t=no 13642 fi 13643 13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13645 fi 13646 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 13647 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 13648 if test $ac_cv_type_size_t = yes; then 13649 : 13650 else 13651 13652 cat >>confdefs.h <<_ACEOF 13653 #define size_t unsigned int 13654 _ACEOF 13655 13656 fi 13657 13658 13659 cat >>confdefs.h <<_ACEOF 13660 #define RETSIGTYPE void 13661 _ACEOF 13662 13663 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 13664 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 13665 if test "${ac_cv_struct_tm+set}" = set; then 13666 echo $ECHO_N "(cached) $ECHO_C" >&6 13667 else 13668 cat >conftest.$ac_ext <<_ACEOF 13669 /* confdefs.h. */ 13670 _ACEOF 13671 cat confdefs.h >>conftest.$ac_ext 13672 cat >>conftest.$ac_ext <<_ACEOF 13673 /* end confdefs.h. */ 13674 #include <sys/types.h> 13675 #include <time.h> 13676 13677 int 13678 main () 13679 { 13680 struct tm *tp; tp->tm_sec; 13681 ; 13682 return 0; 13683 } 13684 _ACEOF 13685 rm -f conftest.$ac_objext 13686 if { (ac_try="$ac_compile" 13687 case "(($ac_try" in 13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13689 *) ac_try_echo=$ac_try;; 13690 esac 13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13692 (eval "$ac_compile") 2>conftest.er1 13693 ac_status=$? 13694 grep -v '^ *+' conftest.er1 >conftest.err 13695 rm -f conftest.er1 13696 cat conftest.err >&5 13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13698 (exit $ac_status); } && 13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13700 { (case "(($ac_try" in 13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13702 *) ac_try_echo=$ac_try;; 13703 esac 13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13705 (eval "$ac_try") 2>&5 13706 ac_status=$? 13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13708 (exit $ac_status); }; } && 13709 { ac_try='test -s conftest.$ac_objext' 13710 { (case "(($ac_try" in 13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13712 *) ac_try_echo=$ac_try;; 13713 esac 13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13715 (eval "$ac_try") 2>&5 13716 ac_status=$? 13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13718 (exit $ac_status); }; }; then 13719 ac_cv_struct_tm=time.h 13720 else 13721 echo "$as_me: failed program was:" >&5 13722 sed 's/^/| /' conftest.$ac_ext >&5 13723 13724 ac_cv_struct_tm=sys/time.h 13725 fi 13726 13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13728 fi 13729 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 13730 echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 13731 if test $ac_cv_struct_tm = sys/time.h; then 13732 13733 cat >>confdefs.h <<\_ACEOF 13734 #define TM_IN_SYS_TIME 1 13735 _ACEOF 13736 13737 fi 13738 13739 { echo "$as_me:$LINENO: checking for int64_t" >&5 13740 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 13741 if test "${ac_cv_type_int64_t+set}" = set; then 13742 echo $ECHO_N "(cached) $ECHO_C" >&6 13743 else 13744 cat >conftest.$ac_ext <<_ACEOF 13745 /* confdefs.h. */ 13746 _ACEOF 13747 cat confdefs.h >>conftest.$ac_ext 13748 cat >>conftest.$ac_ext <<_ACEOF 13749 /* end confdefs.h. */ 13750 $ac_includes_default 13751 typedef int64_t ac__type_new_; 13752 int 13753 main () 13754 { 13755 if ((ac__type_new_ *) 0) 13756 return 0; 13757 if (sizeof (ac__type_new_)) 13758 return 0; 13759 ; 13760 return 0; 13761 } 13762 _ACEOF 13763 rm -f conftest.$ac_objext 13764 if { (ac_try="$ac_compile" 13765 case "(($ac_try" in 13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13767 *) ac_try_echo=$ac_try;; 13768 esac 13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13770 (eval "$ac_compile") 2>conftest.er1 13771 ac_status=$? 13772 grep -v '^ *+' conftest.er1 >conftest.err 13773 rm -f conftest.er1 13774 cat conftest.err >&5 13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13776 (exit $ac_status); } && 13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13778 { (case "(($ac_try" in 13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13780 *) ac_try_echo=$ac_try;; 13781 esac 13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13783 (eval "$ac_try") 2>&5 13784 ac_status=$? 13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13786 (exit $ac_status); }; } && 13787 { ac_try='test -s conftest.$ac_objext' 13788 { (case "(($ac_try" in 13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13790 *) ac_try_echo=$ac_try;; 13791 esac 13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13793 (eval "$ac_try") 2>&5 13794 ac_status=$? 13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13796 (exit $ac_status); }; }; then 13797 ac_cv_type_int64_t=yes 13798 else 13799 echo "$as_me: failed program was:" >&5 13800 sed 's/^/| /' conftest.$ac_ext >&5 13801 13802 ac_cv_type_int64_t=no 13803 fi 13804 13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13806 fi 13807 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 13808 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 13809 if test $ac_cv_type_int64_t = yes; then 13810 13811 cat >>confdefs.h <<_ACEOF 13812 #define HAVE_INT64_T 1 13813 _ACEOF 13814 13815 13816 else 13817 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 13818 echo "$as_me: error: Type int64_t required but not found" >&2;} 13819 { (exit 1); exit 1; }; } 13820 fi 13821 13822 { echo "$as_me:$LINENO: checking for uint64_t" >&5 13823 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 13824 if test "${ac_cv_type_uint64_t+set}" = set; then 13825 echo $ECHO_N "(cached) $ECHO_C" >&6 13826 else 13827 cat >conftest.$ac_ext <<_ACEOF 13828 /* confdefs.h. */ 13829 _ACEOF 13830 cat confdefs.h >>conftest.$ac_ext 13831 cat >>conftest.$ac_ext <<_ACEOF 13832 /* end confdefs.h. */ 13833 $ac_includes_default 13834 typedef uint64_t ac__type_new_; 13835 int 13836 main () 13837 { 13838 if ((ac__type_new_ *) 0) 13839 return 0; 13840 if (sizeof (ac__type_new_)) 13841 return 0; 13842 ; 13843 return 0; 13844 } 13845 _ACEOF 13846 rm -f conftest.$ac_objext 13847 if { (ac_try="$ac_compile" 13848 case "(($ac_try" in 13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13850 *) ac_try_echo=$ac_try;; 13851 esac 13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13853 (eval "$ac_compile") 2>conftest.er1 13854 ac_status=$? 13855 grep -v '^ *+' conftest.er1 >conftest.err 13856 rm -f conftest.er1 13857 cat conftest.err >&5 13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13859 (exit $ac_status); } && 13860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13861 { (case "(($ac_try" in 13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13863 *) ac_try_echo=$ac_try;; 13864 esac 13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13866 (eval "$ac_try") 2>&5 13867 ac_status=$? 13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13869 (exit $ac_status); }; } && 13870 { ac_try='test -s conftest.$ac_objext' 13871 { (case "(($ac_try" in 13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13873 *) ac_try_echo=$ac_try;; 13874 esac 13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13876 (eval "$ac_try") 2>&5 13877 ac_status=$? 13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13879 (exit $ac_status); }; }; then 13880 ac_cv_type_uint64_t=yes 13881 else 13882 echo "$as_me: failed program was:" >&5 13883 sed 's/^/| /' conftest.$ac_ext >&5 13884 13885 ac_cv_type_uint64_t=no 13886 fi 13887 13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13889 fi 13890 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 13891 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 13892 if test $ac_cv_type_uint64_t = yes; then 13893 13894 cat >>confdefs.h <<_ACEOF 13895 #define HAVE_UINT64_T 1 13896 _ACEOF 13897 13898 13899 else 13900 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 13901 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 13902 if test "${ac_cv_type_u_int64_t+set}" = set; then 13903 echo $ECHO_N "(cached) $ECHO_C" >&6 13904 else 13905 cat >conftest.$ac_ext <<_ACEOF 13906 /* confdefs.h. */ 13907 _ACEOF 13908 cat confdefs.h >>conftest.$ac_ext 13909 cat >>conftest.$ac_ext <<_ACEOF 13910 /* end confdefs.h. */ 13911 $ac_includes_default 13912 typedef u_int64_t ac__type_new_; 13913 int 13914 main () 13915 { 13916 if ((ac__type_new_ *) 0) 13917 return 0; 13918 if (sizeof (ac__type_new_)) 13919 return 0; 13920 ; 13921 return 0; 13922 } 13923 _ACEOF 13924 rm -f conftest.$ac_objext 13925 if { (ac_try="$ac_compile" 13926 case "(($ac_try" in 13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13928 *) ac_try_echo=$ac_try;; 13929 esac 13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13931 (eval "$ac_compile") 2>conftest.er1 13932 ac_status=$? 13933 grep -v '^ *+' conftest.er1 >conftest.err 13934 rm -f conftest.er1 13935 cat conftest.err >&5 13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13937 (exit $ac_status); } && 13938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13939 { (case "(($ac_try" in 13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13941 *) ac_try_echo=$ac_try;; 13942 esac 13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13944 (eval "$ac_try") 2>&5 13945 ac_status=$? 13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13947 (exit $ac_status); }; } && 13948 { ac_try='test -s conftest.$ac_objext' 13949 { (case "(($ac_try" in 13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13951 *) ac_try_echo=$ac_try;; 13952 esac 13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13954 (eval "$ac_try") 2>&5 13955 ac_status=$? 13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13957 (exit $ac_status); }; }; then 13958 ac_cv_type_u_int64_t=yes 13959 else 13960 echo "$as_me: failed program was:" >&5 13961 sed 's/^/| /' conftest.$ac_ext >&5 13962 13963 ac_cv_type_u_int64_t=no 13964 fi 13965 13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13967 fi 13968 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 13969 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 13970 if test $ac_cv_type_u_int64_t = yes; then 13971 13972 cat >>confdefs.h <<_ACEOF 13973 #define HAVE_U_INT64_T 1 13974 _ACEOF 13975 13976 13977 else 13978 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 13979 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 13980 { (exit 1); exit 1; }; } 13981 fi 13982 13983 fi 13984 13985 13986 13987 13988 13989 for ac_func in backtrace getcwd 13990 do 13991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13992 { echo "$as_me:$LINENO: checking for $ac_func" >&5 13993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13995 echo $ECHO_N "(cached) $ECHO_C" >&6 13996 else 13997 cat >conftest.$ac_ext <<_ACEOF 13998 /* confdefs.h. */ 13999 _ACEOF 14000 cat confdefs.h >>conftest.$ac_ext 14001 cat >>conftest.$ac_ext <<_ACEOF 14002 /* end confdefs.h. */ 14003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14004 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14005 #define $ac_func innocuous_$ac_func 14006 14007 /* System header to define __stub macros and hopefully few prototypes, 14008 which can conflict with char $ac_func (); below. 14009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14010 <limits.h> exists even on freestanding compilers. */ 14011 14012 #ifdef __STDC__ 14013 # include <limits.h> 14014 #else 14015 # include <assert.h> 14016 #endif 14017 14018 #undef $ac_func 14019 14020 /* Override any GCC internal prototype to avoid an error. 14021 Use char because int might match the return type of a GCC 14022 builtin and then its argument prototype would still apply. */ 14023 #ifdef __cplusplus 14024 extern "C" 14025 #endif 14026 char $ac_func (); 14027 /* The GNU C library defines this for functions which it implements 14028 to always fail with ENOSYS. Some functions are actually named 14029 something starting with __ and the normal name is an alias. */ 14030 #if defined __stub_$ac_func || defined __stub___$ac_func 14031 choke me 14032 #endif 14033 14034 int 14035 main () 14036 { 14037 return $ac_func (); 14038 ; 14039 return 0; 14040 } 14041 _ACEOF 14042 rm -f conftest.$ac_objext conftest$ac_exeext 14043 if { (ac_try="$ac_link" 14044 case "(($ac_try" in 14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14046 *) ac_try_echo=$ac_try;; 14047 esac 14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14049 (eval "$ac_link") 2>conftest.er1 14050 ac_status=$? 14051 grep -v '^ *+' conftest.er1 >conftest.err 14052 rm -f conftest.er1 14053 cat conftest.err >&5 14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14055 (exit $ac_status); } && 14056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14057 { (case "(($ac_try" in 14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14059 *) ac_try_echo=$ac_try;; 14060 esac 14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14062 (eval "$ac_try") 2>&5 14063 ac_status=$? 14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14065 (exit $ac_status); }; } && 14066 { ac_try='test -s conftest$ac_exeext' 14067 { (case "(($ac_try" in 14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14069 *) ac_try_echo=$ac_try;; 14070 esac 14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14072 (eval "$ac_try") 2>&5 14073 ac_status=$? 14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14075 (exit $ac_status); }; }; then 14076 eval "$as_ac_var=yes" 14077 else 14078 echo "$as_me: failed program was:" >&5 14079 sed 's/^/| /' conftest.$ac_ext >&5 14080 14081 eval "$as_ac_var=no" 14082 fi 14083 14084 rm -f core conftest.err conftest.$ac_objext \ 14085 conftest$ac_exeext conftest.$ac_ext 14086 fi 14087 ac_res=`eval echo '${'$as_ac_var'}'` 14088 { echo "$as_me:$LINENO: result: $ac_res" >&5 14089 echo "${ECHO_T}$ac_res" >&6; } 14090 if test `eval echo '${'$as_ac_var'}'` = yes; then 14091 cat >>confdefs.h <<_ACEOF 14092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14093 _ACEOF 14094 14095 fi 14096 done 14097 14098 14099 14100 14101 14102 14103 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 14104 do 14105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14106 { echo "$as_me:$LINENO: checking for $ac_func" >&5 14107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14109 echo $ECHO_N "(cached) $ECHO_C" >&6 14110 else 14111 cat >conftest.$ac_ext <<_ACEOF 14112 /* confdefs.h. */ 14113 _ACEOF 14114 cat confdefs.h >>conftest.$ac_ext 14115 cat >>conftest.$ac_ext <<_ACEOF 14116 /* end confdefs.h. */ 14117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14118 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14119 #define $ac_func innocuous_$ac_func 14120 14121 /* System header to define __stub macros and hopefully few prototypes, 14122 which can conflict with char $ac_func (); below. 14123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14124 <limits.h> exists even on freestanding compilers. */ 14125 14126 #ifdef __STDC__ 14127 # include <limits.h> 14128 #else 14129 # include <assert.h> 14130 #endif 14131 14132 #undef $ac_func 14133 14134 /* Override any GCC internal prototype to avoid an error. 14135 Use char because int might match the return type of a GCC 14136 builtin and then its argument prototype would still apply. */ 14137 #ifdef __cplusplus 14138 extern "C" 14139 #endif 14140 char $ac_func (); 14141 /* The GNU C library defines this for functions which it implements 14142 to always fail with ENOSYS. Some functions are actually named 14143 something starting with __ and the normal name is an alias. */ 14144 #if defined __stub_$ac_func || defined __stub___$ac_func 14145 choke me 14146 #endif 14147 14148 int 14149 main () 14150 { 14151 return $ac_func (); 14152 ; 14153 return 0; 14154 } 14155 _ACEOF 14156 rm -f conftest.$ac_objext conftest$ac_exeext 14157 if { (ac_try="$ac_link" 14158 case "(($ac_try" in 14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14160 *) ac_try_echo=$ac_try;; 14161 esac 14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14163 (eval "$ac_link") 2>conftest.er1 14164 ac_status=$? 14165 grep -v '^ *+' conftest.er1 >conftest.err 14166 rm -f conftest.er1 14167 cat conftest.err >&5 14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14169 (exit $ac_status); } && 14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14171 { (case "(($ac_try" in 14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14173 *) ac_try_echo=$ac_try;; 14174 esac 14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14176 (eval "$ac_try") 2>&5 14177 ac_status=$? 14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14179 (exit $ac_status); }; } && 14180 { ac_try='test -s conftest$ac_exeext' 14181 { (case "(($ac_try" in 14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14183 *) ac_try_echo=$ac_try;; 14184 esac 14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14186 (eval "$ac_try") 2>&5 14187 ac_status=$? 14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14189 (exit $ac_status); }; }; then 14190 eval "$as_ac_var=yes" 14191 else 14192 echo "$as_me: failed program was:" >&5 14193 sed 's/^/| /' conftest.$ac_ext >&5 14194 14195 eval "$as_ac_var=no" 14196 fi 14197 14198 rm -f core conftest.err conftest.$ac_objext \ 14199 conftest$ac_exeext conftest.$ac_ext 14200 fi 14201 ac_res=`eval echo '${'$as_ac_var'}'` 14202 { echo "$as_me:$LINENO: result: $ac_res" >&5 14203 echo "${ECHO_T}$ac_res" >&6; } 14204 if test `eval echo '${'$as_ac_var'}'` = yes; then 14205 cat >>confdefs.h <<_ACEOF 14206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14207 _ACEOF 14208 14209 fi 14210 done 14211 14212 14213 14214 14215 for ac_func in isatty mkdtemp mkstemp 14216 do 14217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14218 { echo "$as_me:$LINENO: checking for $ac_func" >&5 14219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14221 echo $ECHO_N "(cached) $ECHO_C" >&6 14222 else 14223 cat >conftest.$ac_ext <<_ACEOF 14224 /* confdefs.h. */ 14225 _ACEOF 14226 cat confdefs.h >>conftest.$ac_ext 14227 cat >>conftest.$ac_ext <<_ACEOF 14228 /* end confdefs.h. */ 14229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14230 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14231 #define $ac_func innocuous_$ac_func 14232 14233 /* System header to define __stub macros and hopefully few prototypes, 14234 which can conflict with char $ac_func (); below. 14235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14236 <limits.h> exists even on freestanding compilers. */ 14237 14238 #ifdef __STDC__ 14239 # include <limits.h> 14240 #else 14241 # include <assert.h> 14242 #endif 14243 14244 #undef $ac_func 14245 14246 /* Override any GCC internal prototype to avoid an error. 14247 Use char because int might match the return type of a GCC 14248 builtin and then its argument prototype would still apply. */ 14249 #ifdef __cplusplus 14250 extern "C" 14251 #endif 14252 char $ac_func (); 14253 /* The GNU C library defines this for functions which it implements 14254 to always fail with ENOSYS. Some functions are actually named 14255 something starting with __ and the normal name is an alias. */ 14256 #if defined __stub_$ac_func || defined __stub___$ac_func 14257 choke me 14258 #endif 14259 14260 int 14261 main () 14262 { 14263 return $ac_func (); 14264 ; 14265 return 0; 14266 } 14267 _ACEOF 14268 rm -f conftest.$ac_objext conftest$ac_exeext 14269 if { (ac_try="$ac_link" 14270 case "(($ac_try" in 14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14272 *) ac_try_echo=$ac_try;; 14273 esac 14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14275 (eval "$ac_link") 2>conftest.er1 14276 ac_status=$? 14277 grep -v '^ *+' conftest.er1 >conftest.err 14278 rm -f conftest.er1 14279 cat conftest.err >&5 14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14281 (exit $ac_status); } && 14282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14283 { (case "(($ac_try" in 14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14285 *) ac_try_echo=$ac_try;; 14286 esac 14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14288 (eval "$ac_try") 2>&5 14289 ac_status=$? 14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14291 (exit $ac_status); }; } && 14292 { ac_try='test -s conftest$ac_exeext' 14293 { (case "(($ac_try" in 14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14295 *) ac_try_echo=$ac_try;; 14296 esac 14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14298 (eval "$ac_try") 2>&5 14299 ac_status=$? 14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14301 (exit $ac_status); }; }; then 14302 eval "$as_ac_var=yes" 14303 else 14304 echo "$as_me: failed program was:" >&5 14305 sed 's/^/| /' conftest.$ac_ext >&5 14306 14307 eval "$as_ac_var=no" 14308 fi 14309 14310 rm -f core conftest.err conftest.$ac_objext \ 14311 conftest$ac_exeext conftest.$ac_ext 14312 fi 14313 ac_res=`eval echo '${'$as_ac_var'}'` 14314 { echo "$as_me:$LINENO: result: $ac_res" >&5 14315 echo "${ECHO_T}$ac_res" >&6; } 14316 if test `eval echo '${'$as_ac_var'}'` = yes; then 14317 cat >>confdefs.h <<_ACEOF 14318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14319 _ACEOF 14320 14321 fi 14322 done 14323 14324 14325 14326 14327 14328 14329 14330 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit 14331 do 14332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14333 { echo "$as_me:$LINENO: checking for $ac_func" >&5 14334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14336 echo $ECHO_N "(cached) $ECHO_C" >&6 14337 else 14338 cat >conftest.$ac_ext <<_ACEOF 14339 /* confdefs.h. */ 14340 _ACEOF 14341 cat confdefs.h >>conftest.$ac_ext 14342 cat >>conftest.$ac_ext <<_ACEOF 14343 /* end confdefs.h. */ 14344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14345 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14346 #define $ac_func innocuous_$ac_func 14347 14348 /* System header to define __stub macros and hopefully few prototypes, 14349 which can conflict with char $ac_func (); below. 14350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14351 <limits.h> exists even on freestanding compilers. */ 14352 14353 #ifdef __STDC__ 14354 # include <limits.h> 14355 #else 14356 # include <assert.h> 14357 #endif 14358 14359 #undef $ac_func 14360 14361 /* Override any GCC internal prototype to avoid an error. 14362 Use char because int might match the return type of a GCC 14363 builtin and then its argument prototype would still apply. */ 14364 #ifdef __cplusplus 14365 extern "C" 14366 #endif 14367 char $ac_func (); 14368 /* The GNU C library defines this for functions which it implements 14369 to always fail with ENOSYS. Some functions are actually named 14370 something starting with __ and the normal name is an alias. */ 14371 #if defined __stub_$ac_func || defined __stub___$ac_func 14372 choke me 14373 #endif 14374 14375 int 14376 main () 14377 { 14378 return $ac_func (); 14379 ; 14380 return 0; 14381 } 14382 _ACEOF 14383 rm -f conftest.$ac_objext conftest$ac_exeext 14384 if { (ac_try="$ac_link" 14385 case "(($ac_try" in 14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14387 *) ac_try_echo=$ac_try;; 14388 esac 14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14390 (eval "$ac_link") 2>conftest.er1 14391 ac_status=$? 14392 grep -v '^ *+' conftest.er1 >conftest.err 14393 rm -f conftest.er1 14394 cat conftest.err >&5 14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14396 (exit $ac_status); } && 14397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14398 { (case "(($ac_try" in 14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14400 *) ac_try_echo=$ac_try;; 14401 esac 14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14403 (eval "$ac_try") 2>&5 14404 ac_status=$? 14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14406 (exit $ac_status); }; } && 14407 { ac_try='test -s conftest$ac_exeext' 14408 { (case "(($ac_try" in 14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14410 *) ac_try_echo=$ac_try;; 14411 esac 14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14413 (eval "$ac_try") 2>&5 14414 ac_status=$? 14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14416 (exit $ac_status); }; }; then 14417 eval "$as_ac_var=yes" 14418 else 14419 echo "$as_me: failed program was:" >&5 14420 sed 's/^/| /' conftest.$ac_ext >&5 14421 14422 eval "$as_ac_var=no" 14423 fi 14424 14425 rm -f core conftest.err conftest.$ac_objext \ 14426 conftest$ac_exeext conftest.$ac_ext 14427 fi 14428 ac_res=`eval echo '${'$as_ac_var'}'` 14429 { echo "$as_me:$LINENO: result: $ac_res" >&5 14430 echo "${ECHO_T}$ac_res" >&6; } 14431 if test `eval echo '${'$as_ac_var'}'` = yes; then 14432 cat >>confdefs.h <<_ACEOF 14433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14434 _ACEOF 14435 14436 fi 14437 done 14438 14439 14440 14441 14442 for ac_func in strerror strerror_r setenv 14443 do 14444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14445 { echo "$as_me:$LINENO: checking for $ac_func" >&5 14446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14448 echo $ECHO_N "(cached) $ECHO_C" >&6 14449 else 14450 cat >conftest.$ac_ext <<_ACEOF 14451 /* confdefs.h. */ 14452 _ACEOF 14453 cat confdefs.h >>conftest.$ac_ext 14454 cat >>conftest.$ac_ext <<_ACEOF 14455 /* end confdefs.h. */ 14456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14457 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14458 #define $ac_func innocuous_$ac_func 14459 14460 /* System header to define __stub macros and hopefully few prototypes, 14461 which can conflict with char $ac_func (); below. 14462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14463 <limits.h> exists even on freestanding compilers. */ 14464 14465 #ifdef __STDC__ 14466 # include <limits.h> 14467 #else 14468 # include <assert.h> 14469 #endif 14470 14471 #undef $ac_func 14472 14473 /* Override any GCC internal prototype to avoid an error. 14474 Use char because int might match the return type of a GCC 14475 builtin and then its argument prototype would still apply. */ 14476 #ifdef __cplusplus 14477 extern "C" 14478 #endif 14479 char $ac_func (); 14480 /* The GNU C library defines this for functions which it implements 14481 to always fail with ENOSYS. Some functions are actually named 14482 something starting with __ and the normal name is an alias. */ 14483 #if defined __stub_$ac_func || defined __stub___$ac_func 14484 choke me 14485 #endif 14486 14487 int 14488 main () 14489 { 14490 return $ac_func (); 14491 ; 14492 return 0; 14493 } 14494 _ACEOF 14495 rm -f conftest.$ac_objext conftest$ac_exeext 14496 if { (ac_try="$ac_link" 14497 case "(($ac_try" in 14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14499 *) ac_try_echo=$ac_try;; 14500 esac 14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14502 (eval "$ac_link") 2>conftest.er1 14503 ac_status=$? 14504 grep -v '^ *+' conftest.er1 >conftest.err 14505 rm -f conftest.er1 14506 cat conftest.err >&5 14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14508 (exit $ac_status); } && 14509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14510 { (case "(($ac_try" in 14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14512 *) ac_try_echo=$ac_try;; 14513 esac 14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14515 (eval "$ac_try") 2>&5 14516 ac_status=$? 14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14518 (exit $ac_status); }; } && 14519 { ac_try='test -s conftest$ac_exeext' 14520 { (case "(($ac_try" in 14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14522 *) ac_try_echo=$ac_try;; 14523 esac 14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14525 (eval "$ac_try") 2>&5 14526 ac_status=$? 14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14528 (exit $ac_status); }; }; then 14529 eval "$as_ac_var=yes" 14530 else 14531 echo "$as_me: failed program was:" >&5 14532 sed 's/^/| /' conftest.$ac_ext >&5 14533 14534 eval "$as_ac_var=no" 14535 fi 14536 14537 rm -f core conftest.err conftest.$ac_objext \ 14538 conftest$ac_exeext conftest.$ac_ext 14539 fi 14540 ac_res=`eval echo '${'$as_ac_var'}'` 14541 { echo "$as_me:$LINENO: result: $ac_res" >&5 14542 echo "${ECHO_T}$ac_res" >&6; } 14543 if test `eval echo '${'$as_ac_var'}'` = yes; then 14544 cat >>confdefs.h <<_ACEOF 14545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14546 _ACEOF 14547 14548 fi 14549 done 14550 14551 14552 14553 14554 14555 for ac_func in strtoll strtoq sysconf malloc_zone_statistics 14556 do 14557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14558 { echo "$as_me:$LINENO: checking for $ac_func" >&5 14559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14561 echo $ECHO_N "(cached) $ECHO_C" >&6 14562 else 14563 cat >conftest.$ac_ext <<_ACEOF 14564 /* confdefs.h. */ 14565 _ACEOF 14566 cat confdefs.h >>conftest.$ac_ext 14567 cat >>conftest.$ac_ext <<_ACEOF 14568 /* end confdefs.h. */ 14569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14570 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14571 #define $ac_func innocuous_$ac_func 14572 14573 /* System header to define __stub macros and hopefully few prototypes, 14574 which can conflict with char $ac_func (); below. 14575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14576 <limits.h> exists even on freestanding compilers. */ 14577 14578 #ifdef __STDC__ 14579 # include <limits.h> 14580 #else 14581 # include <assert.h> 14582 #endif 14583 14584 #undef $ac_func 14585 14586 /* Override any GCC internal prototype to avoid an error. 14587 Use char because int might match the return type of a GCC 14588 builtin and then its argument prototype would still apply. */ 14589 #ifdef __cplusplus 14590 extern "C" 14591 #endif 14592 char $ac_func (); 14593 /* The GNU C library defines this for functions which it implements 14594 to always fail with ENOSYS. Some functions are actually named 14595 something starting with __ and the normal name is an alias. */ 14596 #if defined __stub_$ac_func || defined __stub___$ac_func 14597 choke me 14598 #endif 14599 14600 int 14601 main () 14602 { 14603 return $ac_func (); 14604 ; 14605 return 0; 14606 } 14607 _ACEOF 14608 rm -f conftest.$ac_objext conftest$ac_exeext 14609 if { (ac_try="$ac_link" 14610 case "(($ac_try" in 14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14612 *) ac_try_echo=$ac_try;; 14613 esac 14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14615 (eval "$ac_link") 2>conftest.er1 14616 ac_status=$? 14617 grep -v '^ *+' conftest.er1 >conftest.err 14618 rm -f conftest.er1 14619 cat conftest.err >&5 14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14621 (exit $ac_status); } && 14622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14623 { (case "(($ac_try" in 14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14625 *) ac_try_echo=$ac_try;; 14626 esac 14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14628 (eval "$ac_try") 2>&5 14629 ac_status=$? 14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14631 (exit $ac_status); }; } && 14632 { ac_try='test -s conftest$ac_exeext' 14633 { (case "(($ac_try" in 14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14635 *) ac_try_echo=$ac_try;; 14636 esac 14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14638 (eval "$ac_try") 2>&5 14639 ac_status=$? 14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14641 (exit $ac_status); }; }; then 14642 eval "$as_ac_var=yes" 14643 else 14644 echo "$as_me: failed program was:" >&5 14645 sed 's/^/| /' conftest.$ac_ext >&5 14646 14647 eval "$as_ac_var=no" 14648 fi 14649 14650 rm -f core conftest.err conftest.$ac_objext \ 14651 conftest$ac_exeext conftest.$ac_ext 14652 fi 14653 ac_res=`eval echo '${'$as_ac_var'}'` 14654 { echo "$as_me:$LINENO: result: $ac_res" >&5 14655 echo "${ECHO_T}$ac_res" >&6; } 14656 if test `eval echo '${'$as_ac_var'}'` = yes; then 14657 cat >>confdefs.h <<_ACEOF 14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14659 _ACEOF 14660 14661 fi 14662 done 14663 14664 14665 14666 14667 14668 14669 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 14670 do 14671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14672 { echo "$as_me:$LINENO: checking for $ac_func" >&5 14673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14675 echo $ECHO_N "(cached) $ECHO_C" >&6 14676 else 14677 cat >conftest.$ac_ext <<_ACEOF 14678 /* confdefs.h. */ 14679 _ACEOF 14680 cat confdefs.h >>conftest.$ac_ext 14681 cat >>conftest.$ac_ext <<_ACEOF 14682 /* end confdefs.h. */ 14683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14684 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14685 #define $ac_func innocuous_$ac_func 14686 14687 /* System header to define __stub macros and hopefully few prototypes, 14688 which can conflict with char $ac_func (); below. 14689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14690 <limits.h> exists even on freestanding compilers. */ 14691 14692 #ifdef __STDC__ 14693 # include <limits.h> 14694 #else 14695 # include <assert.h> 14696 #endif 14697 14698 #undef $ac_func 14699 14700 /* Override any GCC internal prototype to avoid an error. 14701 Use char because int might match the return type of a GCC 14702 builtin and then its argument prototype would still apply. */ 14703 #ifdef __cplusplus 14704 extern "C" 14705 #endif 14706 char $ac_func (); 14707 /* The GNU C library defines this for functions which it implements 14708 to always fail with ENOSYS. Some functions are actually named 14709 something starting with __ and the normal name is an alias. */ 14710 #if defined __stub_$ac_func || defined __stub___$ac_func 14711 choke me 14712 #endif 14713 14714 int 14715 main () 14716 { 14717 return $ac_func (); 14718 ; 14719 return 0; 14720 } 14721 _ACEOF 14722 rm -f conftest.$ac_objext conftest$ac_exeext 14723 if { (ac_try="$ac_link" 14724 case "(($ac_try" in 14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14726 *) ac_try_echo=$ac_try;; 14727 esac 14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14729 (eval "$ac_link") 2>conftest.er1 14730 ac_status=$? 14731 grep -v '^ *+' conftest.er1 >conftest.err 14732 rm -f conftest.er1 14733 cat conftest.err >&5 14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14735 (exit $ac_status); } && 14736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14737 { (case "(($ac_try" in 14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14739 *) ac_try_echo=$ac_try;; 14740 esac 14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14742 (eval "$ac_try") 2>&5 14743 ac_status=$? 14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14745 (exit $ac_status); }; } && 14746 { ac_try='test -s conftest$ac_exeext' 14747 { (case "(($ac_try" in 14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14749 *) ac_try_echo=$ac_try;; 14750 esac 14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14752 (eval "$ac_try") 2>&5 14753 ac_status=$? 14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14755 (exit $ac_status); }; }; then 14756 eval "$as_ac_var=yes" 14757 else 14758 echo "$as_me: failed program was:" >&5 14759 sed 's/^/| /' conftest.$ac_ext >&5 14760 14761 eval "$as_ac_var=no" 14762 fi 14763 14764 rm -f core conftest.err conftest.$ac_objext \ 14765 conftest$ac_exeext conftest.$ac_ext 14766 fi 14767 ac_res=`eval echo '${'$as_ac_var'}'` 14768 { echo "$as_me:$LINENO: result: $ac_res" >&5 14769 echo "${ECHO_T}$ac_res" >&6; } 14770 if test `eval echo '${'$as_ac_var'}'` = yes; then 14771 cat >>confdefs.h <<_ACEOF 14772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14773 _ACEOF 14774 14775 fi 14776 done 14777 14778 14779 14780 for ac_func in futimes futimens 14781 do 14782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14783 { echo "$as_me:$LINENO: checking for $ac_func" >&5 14784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14786 echo $ECHO_N "(cached) $ECHO_C" >&6 14787 else 14788 cat >conftest.$ac_ext <<_ACEOF 14789 /* confdefs.h. */ 14790 _ACEOF 14791 cat confdefs.h >>conftest.$ac_ext 14792 cat >>conftest.$ac_ext <<_ACEOF 14793 /* end confdefs.h. */ 14794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14796 #define $ac_func innocuous_$ac_func 14797 14798 /* System header to define __stub macros and hopefully few prototypes, 14799 which can conflict with char $ac_func (); below. 14800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14801 <limits.h> exists even on freestanding compilers. */ 14802 14803 #ifdef __STDC__ 14804 # include <limits.h> 14805 #else 14806 # include <assert.h> 14807 #endif 14808 14809 #undef $ac_func 14810 14811 /* Override any GCC internal prototype to avoid an error. 14812 Use char because int might match the return type of a GCC 14813 builtin and then its argument prototype would still apply. */ 14814 #ifdef __cplusplus 14815 extern "C" 14816 #endif 14817 char $ac_func (); 14818 /* The GNU C library defines this for functions which it implements 14819 to always fail with ENOSYS. Some functions are actually named 14820 something starting with __ and the normal name is an alias. */ 14821 #if defined __stub_$ac_func || defined __stub___$ac_func 14822 choke me 14823 #endif 14824 14825 int 14826 main () 14827 { 14828 return $ac_func (); 14829 ; 14830 return 0; 14831 } 14832 _ACEOF 14833 rm -f conftest.$ac_objext conftest$ac_exeext 14834 if { (ac_try="$ac_link" 14835 case "(($ac_try" in 14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14837 *) ac_try_echo=$ac_try;; 14838 esac 14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14840 (eval "$ac_link") 2>conftest.er1 14841 ac_status=$? 14842 grep -v '^ *+' conftest.er1 >conftest.err 14843 rm -f conftest.er1 14844 cat conftest.err >&5 14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14846 (exit $ac_status); } && 14847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14848 { (case "(($ac_try" in 14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14850 *) ac_try_echo=$ac_try;; 14851 esac 14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14853 (eval "$ac_try") 2>&5 14854 ac_status=$? 14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14856 (exit $ac_status); }; } && 14857 { ac_try='test -s conftest$ac_exeext' 14858 { (case "(($ac_try" in 14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14860 *) ac_try_echo=$ac_try;; 14861 esac 14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14863 (eval "$ac_try") 2>&5 14864 ac_status=$? 14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14866 (exit $ac_status); }; }; then 14867 eval "$as_ac_var=yes" 14868 else 14869 echo "$as_me: failed program was:" >&5 14870 sed 's/^/| /' conftest.$ac_ext >&5 14871 14872 eval "$as_ac_var=no" 14873 fi 14874 14875 rm -f core conftest.err conftest.$ac_objext \ 14876 conftest$ac_exeext conftest.$ac_ext 14877 fi 14878 ac_res=`eval echo '${'$as_ac_var'}'` 14879 { echo "$as_me:$LINENO: result: $ac_res" >&5 14880 echo "${ECHO_T}$ac_res" >&6; } 14881 if test `eval echo '${'$as_ac_var'}'` = yes; then 14882 cat >>confdefs.h <<_ACEOF 14883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14884 _ACEOF 14885 14886 fi 14887 done 14888 14889 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 14890 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 14891 if test "${llvm_cv_c_printf_a+set}" = set; then 14892 echo $ECHO_N "(cached) $ECHO_C" >&6 14893 else 14894 ac_ext=c 14895 ac_cpp='$CPP $CPPFLAGS' 14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14899 14900 if test "$cross_compiling" = yes; then 14901 llvmac_cv_c_printf_a=no 14902 else 14903 cat >conftest.$ac_ext <<_ACEOF 14904 14905 /* confdefs.h. */ 14906 _ACEOF 14907 cat confdefs.h >>conftest.$ac_ext 14908 cat >>conftest.$ac_ext <<_ACEOF 14909 /* end confdefs.h. */ 14910 14911 #include <stdio.h> 14912 #include <stdlib.h> 14913 14914 int 14915 main () 14916 { 14917 14918 volatile double A, B; 14919 char Buffer[100]; 14920 A = 1; 14921 A /= 10.0; 14922 sprintf(Buffer, "%a", A); 14923 B = atof(Buffer); 14924 if (A != B) 14925 return (1); 14926 if (A != 0x1.999999999999ap-4) 14927 return (1); 14928 return (0); 14929 ; 14930 return 0; 14931 } 14932 _ACEOF 14933 rm -f conftest$ac_exeext 14934 if { (ac_try="$ac_link" 14935 case "(($ac_try" in 14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14937 *) ac_try_echo=$ac_try;; 14938 esac 14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14940 (eval "$ac_link") 2>&5 14941 ac_status=$? 14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14944 { (case "(($ac_try" in 14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14946 *) ac_try_echo=$ac_try;; 14947 esac 14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14949 (eval "$ac_try") 2>&5 14950 ac_status=$? 14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14952 (exit $ac_status); }; }; then 14953 llvm_cv_c_printf_a=yes 14954 else 14955 echo "$as_me: program exited with status $ac_status" >&5 14956 echo "$as_me: failed program was:" >&5 14957 sed 's/^/| /' conftest.$ac_ext >&5 14958 14959 ( exit $ac_status ) 14960 llvmac_cv_c_printf_a=no 14961 fi 14962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14963 fi 14964 14965 14966 ac_ext=c 14967 ac_cpp='$CPP $CPPFLAGS' 14968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14970 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14971 14972 fi 14973 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 14974 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 14975 if test "$llvm_cv_c_printf_a" = "yes"; then 14976 14977 cat >>confdefs.h <<\_ACEOF 14978 #define HAVE_PRINTF_A 1 14979 _ACEOF 14980 14981 fi 14982 14983 14984 14985 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 14986 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 14987 if test "${ac_cv_func_rand48+set}" = set; then 14988 echo $ECHO_N "(cached) $ECHO_C" >&6 14989 else 14990 14991 ac_ext=cpp 14992 ac_cpp='$CXXCPP $CPPFLAGS' 14993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14996 14997 cat >conftest.$ac_ext <<_ACEOF 14998 /* confdefs.h. */ 14999 _ACEOF 15000 cat confdefs.h >>conftest.$ac_ext 15001 cat >>conftest.$ac_ext <<_ACEOF 15002 /* end confdefs.h. */ 15003 #include <stdlib.h> 15004 int 15005 main () 15006 { 15007 srand48(0);lrand48();drand48(); 15008 ; 15009 return 0; 15010 } 15011 _ACEOF 15012 rm -f conftest.$ac_objext 15013 if { (ac_try="$ac_compile" 15014 case "(($ac_try" in 15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15016 *) ac_try_echo=$ac_try;; 15017 esac 15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15019 (eval "$ac_compile") 2>conftest.er1 15020 ac_status=$? 15021 grep -v '^ *+' conftest.er1 >conftest.err 15022 rm -f conftest.er1 15023 cat conftest.err >&5 15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15025 (exit $ac_status); } && 15026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 15027 { (case "(($ac_try" in 15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15029 *) ac_try_echo=$ac_try;; 15030 esac 15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15032 (eval "$ac_try") 2>&5 15033 ac_status=$? 15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15035 (exit $ac_status); }; } && 15036 { ac_try='test -s conftest.$ac_objext' 15037 { (case "(($ac_try" in 15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15039 *) ac_try_echo=$ac_try;; 15040 esac 15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15042 (eval "$ac_try") 2>&5 15043 ac_status=$? 15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15045 (exit $ac_status); }; }; then 15046 ac_cv_func_rand48=yes 15047 else 15048 echo "$as_me: failed program was:" >&5 15049 sed 's/^/| /' conftest.$ac_ext >&5 15050 15051 ac_cv_func_rand48=no 15052 fi 15053 15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15055 ac_ext=c 15056 ac_cpp='$CPP $CPPFLAGS' 15057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15059 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15060 15061 15062 fi 15063 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 15064 echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 15065 15066 if test "$ac_cv_func_rand48" = "yes" ; then 15067 15068 cat >>confdefs.h <<\_ACEOF 15069 #define HAVE_RAND48 1 15070 _ACEOF 15071 15072 fi 15073 15074 15075 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5 15076 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; } 15077 if test "${ac_cv_have_decl_arc4random+set}" = set; then 15078 echo $ECHO_N "(cached) $ECHO_C" >&6 15079 else 15080 cat >conftest.$ac_ext <<_ACEOF 15081 /* confdefs.h. */ 15082 _ACEOF 15083 cat confdefs.h >>conftest.$ac_ext 15084 cat >>conftest.$ac_ext <<_ACEOF 15085 /* end confdefs.h. */ 15086 $ac_includes_default 15087 int 15088 main () 15089 { 15090 #ifndef arc4random 15091 char *p = (char *) arc4random; 15092 return !p; 15093 #endif 15094 15095 ; 15096 return 0; 15097 } 15098 _ACEOF 15099 rm -f conftest.$ac_objext 15100 if { (ac_try="$ac_compile" 15101 case "(($ac_try" in 15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15103 *) ac_try_echo=$ac_try;; 15104 esac 15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15106 (eval "$ac_compile") 2>conftest.er1 15107 ac_status=$? 15108 grep -v '^ *+' conftest.er1 >conftest.err 15109 rm -f conftest.er1 15110 cat conftest.err >&5 15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15112 (exit $ac_status); } && 15113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15114 { (case "(($ac_try" in 15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15116 *) ac_try_echo=$ac_try;; 15117 esac 15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15119 (eval "$ac_try") 2>&5 15120 ac_status=$? 15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15122 (exit $ac_status); }; } && 15123 { ac_try='test -s conftest.$ac_objext' 15124 { (case "(($ac_try" in 15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15126 *) ac_try_echo=$ac_try;; 15127 esac 15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15129 (eval "$ac_try") 2>&5 15130 ac_status=$? 15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15132 (exit $ac_status); }; }; then 15133 ac_cv_have_decl_arc4random=yes 15134 else 15135 echo "$as_me: failed program was:" >&5 15136 sed 's/^/| /' conftest.$ac_ext >&5 15137 15138 ac_cv_have_decl_arc4random=no 15139 fi 15140 15141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15142 fi 15143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5 15144 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; } 15145 if test $ac_cv_have_decl_arc4random = yes; then 15146 15147 cat >>confdefs.h <<_ACEOF 15148 #define HAVE_DECL_ARC4RANDOM 1 15149 _ACEOF 15150 15151 15152 else 15153 cat >>confdefs.h <<_ACEOF 15154 #define HAVE_DECL_ARC4RANDOM 0 15155 _ACEOF 15156 15157 15158 fi 15159 15160 15161 15162 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 15163 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 15164 if test "${ac_cv_have_decl_strerror_s+set}" = set; then 15165 echo $ECHO_N "(cached) $ECHO_C" >&6 15166 else 15167 cat >conftest.$ac_ext <<_ACEOF 15168 /* confdefs.h. */ 15169 _ACEOF 15170 cat confdefs.h >>conftest.$ac_ext 15171 cat >>conftest.$ac_ext <<_ACEOF 15172 /* end confdefs.h. */ 15173 $ac_includes_default 15174 int 15175 main () 15176 { 15177 #ifndef strerror_s 15178 char *p = (char *) strerror_s; 15179 return !p; 15180 #endif 15181 15182 ; 15183 return 0; 15184 } 15185 _ACEOF 15186 rm -f conftest.$ac_objext 15187 if { (ac_try="$ac_compile" 15188 case "(($ac_try" in 15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15190 *) ac_try_echo=$ac_try;; 15191 esac 15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15193 (eval "$ac_compile") 2>conftest.er1 15194 ac_status=$? 15195 grep -v '^ *+' conftest.er1 >conftest.err 15196 rm -f conftest.er1 15197 cat conftest.err >&5 15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15199 (exit $ac_status); } && 15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15201 { (case "(($ac_try" in 15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15203 *) ac_try_echo=$ac_try;; 15204 esac 15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15206 (eval "$ac_try") 2>&5 15207 ac_status=$? 15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15209 (exit $ac_status); }; } && 15210 { ac_try='test -s conftest.$ac_objext' 15211 { (case "(($ac_try" in 15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15213 *) ac_try_echo=$ac_try;; 15214 esac 15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15216 (eval "$ac_try") 2>&5 15217 ac_status=$? 15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15219 (exit $ac_status); }; }; then 15220 ac_cv_have_decl_strerror_s=yes 15221 else 15222 echo "$as_me: failed program was:" >&5 15223 sed 's/^/| /' conftest.$ac_ext >&5 15224 15225 ac_cv_have_decl_strerror_s=no 15226 fi 15227 15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15229 fi 15230 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 15231 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 15232 if test $ac_cv_have_decl_strerror_s = yes; then 15233 15234 cat >>confdefs.h <<_ACEOF 15235 #define HAVE_DECL_STRERROR_S 1 15236 _ACEOF 15237 15238 15239 else 15240 cat >>confdefs.h <<_ACEOF 15241 #define HAVE_DECL_STRERROR_S 0 15242 _ACEOF 15243 15244 15245 fi 15246 15247 15248 15249 if test "$llvm_cv_os_type" = "MingW" ; then 15250 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 15251 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 15252 if test "${ac_cv_lib_gcc__alloca+set}" = set; then 15253 echo $ECHO_N "(cached) $ECHO_C" >&6 15254 else 15255 ac_check_lib_save_LIBS=$LIBS 15256 LIBS="-lgcc $LIBS" 15257 cat >conftest.$ac_ext <<_ACEOF 15258 /* confdefs.h. */ 15259 _ACEOF 15260 cat confdefs.h >>conftest.$ac_ext 15261 cat >>conftest.$ac_ext <<_ACEOF 15262 /* end confdefs.h. */ 15263 15264 /* Override any GCC internal prototype to avoid an error. 15265 Use char because int might match the return type of a GCC 15266 builtin and then its argument prototype would still apply. */ 15267 #ifdef __cplusplus 15268 extern "C" 15269 #endif 15270 char _alloca (); 15271 int 15272 main () 15273 { 15274 return _alloca (); 15275 ; 15276 return 0; 15277 } 15278 _ACEOF 15279 rm -f conftest.$ac_objext conftest$ac_exeext 15280 if { (ac_try="$ac_link" 15281 case "(($ac_try" in 15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15283 *) ac_try_echo=$ac_try;; 15284 esac 15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15286 (eval "$ac_link") 2>conftest.er1 15287 ac_status=$? 15288 grep -v '^ *+' conftest.er1 >conftest.err 15289 rm -f conftest.er1 15290 cat conftest.err >&5 15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15292 (exit $ac_status); } && 15293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15294 { (case "(($ac_try" in 15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15296 *) ac_try_echo=$ac_try;; 15297 esac 15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15299 (eval "$ac_try") 2>&5 15300 ac_status=$? 15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15302 (exit $ac_status); }; } && 15303 { ac_try='test -s conftest$ac_exeext' 15304 { (case "(($ac_try" in 15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15306 *) ac_try_echo=$ac_try;; 15307 esac 15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15309 (eval "$ac_try") 2>&5 15310 ac_status=$? 15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15312 (exit $ac_status); }; }; then 15313 ac_cv_lib_gcc__alloca=yes 15314 else 15315 echo "$as_me: failed program was:" >&5 15316 sed 's/^/| /' conftest.$ac_ext >&5 15317 15318 ac_cv_lib_gcc__alloca=no 15319 fi 15320 15321 rm -f core conftest.err conftest.$ac_objext \ 15322 conftest$ac_exeext conftest.$ac_ext 15323 LIBS=$ac_check_lib_save_LIBS 15324 fi 15325 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 15326 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 15327 if test $ac_cv_lib_gcc__alloca = yes; then 15328 15329 cat >>confdefs.h <<\_ACEOF 15330 #define HAVE__ALLOCA 1 15331 _ACEOF 15332 15333 fi 15334 15335 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 15336 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 15337 if test "${ac_cv_lib_gcc___alloca+set}" = set; then 15338 echo $ECHO_N "(cached) $ECHO_C" >&6 15339 else 15340 ac_check_lib_save_LIBS=$LIBS 15341 LIBS="-lgcc $LIBS" 15342 cat >conftest.$ac_ext <<_ACEOF 15343 /* confdefs.h. */ 15344 _ACEOF 15345 cat confdefs.h >>conftest.$ac_ext 15346 cat >>conftest.$ac_ext <<_ACEOF 15347 /* end confdefs.h. */ 15348 15349 /* Override any GCC internal prototype to avoid an error. 15350 Use char because int might match the return type of a GCC 15351 builtin and then its argument prototype would still apply. */ 15352 #ifdef __cplusplus 15353 extern "C" 15354 #endif 15355 char __alloca (); 15356 int 15357 main () 15358 { 15359 return __alloca (); 15360 ; 15361 return 0; 15362 } 15363 _ACEOF 15364 rm -f conftest.$ac_objext conftest$ac_exeext 15365 if { (ac_try="$ac_link" 15366 case "(($ac_try" in 15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15368 *) ac_try_echo=$ac_try;; 15369 esac 15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15371 (eval "$ac_link") 2>conftest.er1 15372 ac_status=$? 15373 grep -v '^ *+' conftest.er1 >conftest.err 15374 rm -f conftest.er1 15375 cat conftest.err >&5 15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15377 (exit $ac_status); } && 15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15379 { (case "(($ac_try" in 15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15381 *) ac_try_echo=$ac_try;; 15382 esac 15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15384 (eval "$ac_try") 2>&5 15385 ac_status=$? 15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15387 (exit $ac_status); }; } && 15388 { ac_try='test -s conftest$ac_exeext' 15389 { (case "(($ac_try" in 15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15391 *) ac_try_echo=$ac_try;; 15392 esac 15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15394 (eval "$ac_try") 2>&5 15395 ac_status=$? 15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15397 (exit $ac_status); }; }; then 15398 ac_cv_lib_gcc___alloca=yes 15399 else 15400 echo "$as_me: failed program was:" >&5 15401 sed 's/^/| /' conftest.$ac_ext >&5 15402 15403 ac_cv_lib_gcc___alloca=no 15404 fi 15405 15406 rm -f core conftest.err conftest.$ac_objext \ 15407 conftest$ac_exeext conftest.$ac_ext 15408 LIBS=$ac_check_lib_save_LIBS 15409 fi 15410 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 15411 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 15412 if test $ac_cv_lib_gcc___alloca = yes; then 15413 15414 cat >>confdefs.h <<\_ACEOF 15415 #define HAVE___ALLOCA 1 15416 _ACEOF 15417 15418 fi 15419 15420 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 15421 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 15422 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 15423 echo $ECHO_N "(cached) $ECHO_C" >&6 15424 else 15425 ac_check_lib_save_LIBS=$LIBS 15426 LIBS="-lgcc $LIBS" 15427 cat >conftest.$ac_ext <<_ACEOF 15428 /* confdefs.h. */ 15429 _ACEOF 15430 cat confdefs.h >>conftest.$ac_ext 15431 cat >>conftest.$ac_ext <<_ACEOF 15432 /* end confdefs.h. */ 15433 15434 /* Override any GCC internal prototype to avoid an error. 15435 Use char because int might match the return type of a GCC 15436 builtin and then its argument prototype would still apply. */ 15437 #ifdef __cplusplus 15438 extern "C" 15439 #endif 15440 char __chkstk (); 15441 int 15442 main () 15443 { 15444 return __chkstk (); 15445 ; 15446 return 0; 15447 } 15448 _ACEOF 15449 rm -f conftest.$ac_objext conftest$ac_exeext 15450 if { (ac_try="$ac_link" 15451 case "(($ac_try" in 15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15453 *) ac_try_echo=$ac_try;; 15454 esac 15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15456 (eval "$ac_link") 2>conftest.er1 15457 ac_status=$? 15458 grep -v '^ *+' conftest.er1 >conftest.err 15459 rm -f conftest.er1 15460 cat conftest.err >&5 15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15462 (exit $ac_status); } && 15463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15464 { (case "(($ac_try" in 15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15466 *) ac_try_echo=$ac_try;; 15467 esac 15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15469 (eval "$ac_try") 2>&5 15470 ac_status=$? 15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15472 (exit $ac_status); }; } && 15473 { ac_try='test -s conftest$ac_exeext' 15474 { (case "(($ac_try" in 15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15476 *) ac_try_echo=$ac_try;; 15477 esac 15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15479 (eval "$ac_try") 2>&5 15480 ac_status=$? 15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15482 (exit $ac_status); }; }; then 15483 ac_cv_lib_gcc___chkstk=yes 15484 else 15485 echo "$as_me: failed program was:" >&5 15486 sed 's/^/| /' conftest.$ac_ext >&5 15487 15488 ac_cv_lib_gcc___chkstk=no 15489 fi 15490 15491 rm -f core conftest.err conftest.$ac_objext \ 15492 conftest$ac_exeext conftest.$ac_ext 15493 LIBS=$ac_check_lib_save_LIBS 15494 fi 15495 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 15496 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 15497 if test $ac_cv_lib_gcc___chkstk = yes; then 15498 15499 cat >>confdefs.h <<\_ACEOF 15500 #define HAVE___CHKSTK 1 15501 _ACEOF 15502 15503 fi 15504 15505 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5 15506 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; } 15507 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then 15508 echo $ECHO_N "(cached) $ECHO_C" >&6 15509 else 15510 ac_check_lib_save_LIBS=$LIBS 15511 LIBS="-lgcc $LIBS" 15512 cat >conftest.$ac_ext <<_ACEOF 15513 /* confdefs.h. */ 15514 _ACEOF 15515 cat confdefs.h >>conftest.$ac_ext 15516 cat >>conftest.$ac_ext <<_ACEOF 15517 /* end confdefs.h. */ 15518 15519 /* Override any GCC internal prototype to avoid an error. 15520 Use char because int might match the return type of a GCC 15521 builtin and then its argument prototype would still apply. */ 15522 #ifdef __cplusplus 15523 extern "C" 15524 #endif 15525 char __chkstk_ms (); 15526 int 15527 main () 15528 { 15529 return __chkstk_ms (); 15530 ; 15531 return 0; 15532 } 15533 _ACEOF 15534 rm -f conftest.$ac_objext conftest$ac_exeext 15535 if { (ac_try="$ac_link" 15536 case "(($ac_try" in 15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15538 *) ac_try_echo=$ac_try;; 15539 esac 15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15541 (eval "$ac_link") 2>conftest.er1 15542 ac_status=$? 15543 grep -v '^ *+' conftest.er1 >conftest.err 15544 rm -f conftest.er1 15545 cat conftest.err >&5 15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15547 (exit $ac_status); } && 15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15549 { (case "(($ac_try" in 15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15551 *) ac_try_echo=$ac_try;; 15552 esac 15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15554 (eval "$ac_try") 2>&5 15555 ac_status=$? 15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15557 (exit $ac_status); }; } && 15558 { ac_try='test -s conftest$ac_exeext' 15559 { (case "(($ac_try" in 15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15561 *) ac_try_echo=$ac_try;; 15562 esac 15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15564 (eval "$ac_try") 2>&5 15565 ac_status=$? 15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15567 (exit $ac_status); }; }; then 15568 ac_cv_lib_gcc___chkstk_ms=yes 15569 else 15570 echo "$as_me: failed program was:" >&5 15571 sed 's/^/| /' conftest.$ac_ext >&5 15572 15573 ac_cv_lib_gcc___chkstk_ms=no 15574 fi 15575 15576 rm -f core conftest.err conftest.$ac_objext \ 15577 conftest$ac_exeext conftest.$ac_ext 15578 LIBS=$ac_check_lib_save_LIBS 15579 fi 15580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5 15581 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; } 15582 if test $ac_cv_lib_gcc___chkstk_ms = yes; then 15583 15584 cat >>confdefs.h <<\_ACEOF 15585 #define HAVE___CHKSTK_MS 1 15586 _ACEOF 15587 15588 fi 15589 15590 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 15591 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 15592 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 15593 echo $ECHO_N "(cached) $ECHO_C" >&6 15594 else 15595 ac_check_lib_save_LIBS=$LIBS 15596 LIBS="-lgcc $LIBS" 15597 cat >conftest.$ac_ext <<_ACEOF 15598 /* confdefs.h. */ 15599 _ACEOF 15600 cat confdefs.h >>conftest.$ac_ext 15601 cat >>conftest.$ac_ext <<_ACEOF 15602 /* end confdefs.h. */ 15603 15604 /* Override any GCC internal prototype to avoid an error. 15605 Use char because int might match the return type of a GCC 15606 builtin and then its argument prototype would still apply. */ 15607 #ifdef __cplusplus 15608 extern "C" 15609 #endif 15610 char ___chkstk (); 15611 int 15612 main () 15613 { 15614 return ___chkstk (); 15615 ; 15616 return 0; 15617 } 15618 _ACEOF 15619 rm -f conftest.$ac_objext conftest$ac_exeext 15620 if { (ac_try="$ac_link" 15621 case "(($ac_try" in 15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15623 *) ac_try_echo=$ac_try;; 15624 esac 15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15626 (eval "$ac_link") 2>conftest.er1 15627 ac_status=$? 15628 grep -v '^ *+' conftest.er1 >conftest.err 15629 rm -f conftest.er1 15630 cat conftest.err >&5 15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15632 (exit $ac_status); } && 15633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15634 { (case "(($ac_try" in 15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15636 *) ac_try_echo=$ac_try;; 15637 esac 15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15639 (eval "$ac_try") 2>&5 15640 ac_status=$? 15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15642 (exit $ac_status); }; } && 15643 { ac_try='test -s conftest$ac_exeext' 15644 { (case "(($ac_try" in 15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15646 *) ac_try_echo=$ac_try;; 15647 esac 15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15649 (eval "$ac_try") 2>&5 15650 ac_status=$? 15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15652 (exit $ac_status); }; }; then 15653 ac_cv_lib_gcc____chkstk=yes 15654 else 15655 echo "$as_me: failed program was:" >&5 15656 sed 's/^/| /' conftest.$ac_ext >&5 15657 15658 ac_cv_lib_gcc____chkstk=no 15659 fi 15660 15661 rm -f core conftest.err conftest.$ac_objext \ 15662 conftest$ac_exeext conftest.$ac_ext 15663 LIBS=$ac_check_lib_save_LIBS 15664 fi 15665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 15666 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 15667 if test $ac_cv_lib_gcc____chkstk = yes; then 15668 15669 cat >>confdefs.h <<\_ACEOF 15670 #define HAVE____CHKSTK 1 15671 _ACEOF 15672 15673 fi 15674 15675 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5 15676 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; } 15677 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then 15678 echo $ECHO_N "(cached) $ECHO_C" >&6 15679 else 15680 ac_check_lib_save_LIBS=$LIBS 15681 LIBS="-lgcc $LIBS" 15682 cat >conftest.$ac_ext <<_ACEOF 15683 /* confdefs.h. */ 15684 _ACEOF 15685 cat confdefs.h >>conftest.$ac_ext 15686 cat >>conftest.$ac_ext <<_ACEOF 15687 /* end confdefs.h. */ 15688 15689 /* Override any GCC internal prototype to avoid an error. 15690 Use char because int might match the return type of a GCC 15691 builtin and then its argument prototype would still apply. */ 15692 #ifdef __cplusplus 15693 extern "C" 15694 #endif 15695 char ___chkstk_ms (); 15696 int 15697 main () 15698 { 15699 return ___chkstk_ms (); 15700 ; 15701 return 0; 15702 } 15703 _ACEOF 15704 rm -f conftest.$ac_objext conftest$ac_exeext 15705 if { (ac_try="$ac_link" 15706 case "(($ac_try" in 15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15708 *) ac_try_echo=$ac_try;; 15709 esac 15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15711 (eval "$ac_link") 2>conftest.er1 15712 ac_status=$? 15713 grep -v '^ *+' conftest.er1 >conftest.err 15714 rm -f conftest.er1 15715 cat conftest.err >&5 15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15717 (exit $ac_status); } && 15718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15719 { (case "(($ac_try" in 15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15721 *) ac_try_echo=$ac_try;; 15722 esac 15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15724 (eval "$ac_try") 2>&5 15725 ac_status=$? 15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15727 (exit $ac_status); }; } && 15728 { ac_try='test -s conftest$ac_exeext' 15729 { (case "(($ac_try" in 15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15731 *) ac_try_echo=$ac_try;; 15732 esac 15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15734 (eval "$ac_try") 2>&5 15735 ac_status=$? 15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15737 (exit $ac_status); }; }; then 15738 ac_cv_lib_gcc____chkstk_ms=yes 15739 else 15740 echo "$as_me: failed program was:" >&5 15741 sed 's/^/| /' conftest.$ac_ext >&5 15742 15743 ac_cv_lib_gcc____chkstk_ms=no 15744 fi 15745 15746 rm -f core conftest.err conftest.$ac_objext \ 15747 conftest$ac_exeext conftest.$ac_ext 15748 LIBS=$ac_check_lib_save_LIBS 15749 fi 15750 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5 15751 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; } 15752 if test $ac_cv_lib_gcc____chkstk_ms = yes; then 15753 15754 cat >>confdefs.h <<\_ACEOF 15755 #define HAVE____CHKSTK_MS 1 15756 _ACEOF 15757 15758 fi 15759 15760 15761 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 15762 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 15763 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 15764 echo $ECHO_N "(cached) $ECHO_C" >&6 15765 else 15766 ac_check_lib_save_LIBS=$LIBS 15767 LIBS="-lgcc $LIBS" 15768 cat >conftest.$ac_ext <<_ACEOF 15769 /* confdefs.h. */ 15770 _ACEOF 15771 cat confdefs.h >>conftest.$ac_ext 15772 cat >>conftest.$ac_ext <<_ACEOF 15773 /* end confdefs.h. */ 15774 15775 /* Override any GCC internal prototype to avoid an error. 15776 Use char because int might match the return type of a GCC 15777 builtin and then its argument prototype would still apply. */ 15778 #ifdef __cplusplus 15779 extern "C" 15780 #endif 15781 char __ashldi3 (); 15782 int 15783 main () 15784 { 15785 return __ashldi3 (); 15786 ; 15787 return 0; 15788 } 15789 _ACEOF 15790 rm -f conftest.$ac_objext conftest$ac_exeext 15791 if { (ac_try="$ac_link" 15792 case "(($ac_try" in 15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15794 *) ac_try_echo=$ac_try;; 15795 esac 15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15797 (eval "$ac_link") 2>conftest.er1 15798 ac_status=$? 15799 grep -v '^ *+' conftest.er1 >conftest.err 15800 rm -f conftest.er1 15801 cat conftest.err >&5 15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15803 (exit $ac_status); } && 15804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15805 { (case "(($ac_try" in 15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15807 *) ac_try_echo=$ac_try;; 15808 esac 15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15810 (eval "$ac_try") 2>&5 15811 ac_status=$? 15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15813 (exit $ac_status); }; } && 15814 { ac_try='test -s conftest$ac_exeext' 15815 { (case "(($ac_try" in 15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15817 *) ac_try_echo=$ac_try;; 15818 esac 15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15820 (eval "$ac_try") 2>&5 15821 ac_status=$? 15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15823 (exit $ac_status); }; }; then 15824 ac_cv_lib_gcc___ashldi3=yes 15825 else 15826 echo "$as_me: failed program was:" >&5 15827 sed 's/^/| /' conftest.$ac_ext >&5 15828 15829 ac_cv_lib_gcc___ashldi3=no 15830 fi 15831 15832 rm -f core conftest.err conftest.$ac_objext \ 15833 conftest$ac_exeext conftest.$ac_ext 15834 LIBS=$ac_check_lib_save_LIBS 15835 fi 15836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 15837 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 15838 if test $ac_cv_lib_gcc___ashldi3 = yes; then 15839 15840 cat >>confdefs.h <<\_ACEOF 15841 #define HAVE___ASHLDI3 1 15842 _ACEOF 15843 15844 fi 15845 15846 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 15847 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 15848 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 15849 echo $ECHO_N "(cached) $ECHO_C" >&6 15850 else 15851 ac_check_lib_save_LIBS=$LIBS 15852 LIBS="-lgcc $LIBS" 15853 cat >conftest.$ac_ext <<_ACEOF 15854 /* confdefs.h. */ 15855 _ACEOF 15856 cat confdefs.h >>conftest.$ac_ext 15857 cat >>conftest.$ac_ext <<_ACEOF 15858 /* end confdefs.h. */ 15859 15860 /* Override any GCC internal prototype to avoid an error. 15861 Use char because int might match the return type of a GCC 15862 builtin and then its argument prototype would still apply. */ 15863 #ifdef __cplusplus 15864 extern "C" 15865 #endif 15866 char __ashrdi3 (); 15867 int 15868 main () 15869 { 15870 return __ashrdi3 (); 15871 ; 15872 return 0; 15873 } 15874 _ACEOF 15875 rm -f conftest.$ac_objext conftest$ac_exeext 15876 if { (ac_try="$ac_link" 15877 case "(($ac_try" in 15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15879 *) ac_try_echo=$ac_try;; 15880 esac 15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15882 (eval "$ac_link") 2>conftest.er1 15883 ac_status=$? 15884 grep -v '^ *+' conftest.er1 >conftest.err 15885 rm -f conftest.er1 15886 cat conftest.err >&5 15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15888 (exit $ac_status); } && 15889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15890 { (case "(($ac_try" in 15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15892 *) ac_try_echo=$ac_try;; 15893 esac 15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15895 (eval "$ac_try") 2>&5 15896 ac_status=$? 15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15898 (exit $ac_status); }; } && 15899 { ac_try='test -s conftest$ac_exeext' 15900 { (case "(($ac_try" in 15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15902 *) ac_try_echo=$ac_try;; 15903 esac 15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15905 (eval "$ac_try") 2>&5 15906 ac_status=$? 15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15908 (exit $ac_status); }; }; then 15909 ac_cv_lib_gcc___ashrdi3=yes 15910 else 15911 echo "$as_me: failed program was:" >&5 15912 sed 's/^/| /' conftest.$ac_ext >&5 15913 15914 ac_cv_lib_gcc___ashrdi3=no 15915 fi 15916 15917 rm -f core conftest.err conftest.$ac_objext \ 15918 conftest$ac_exeext conftest.$ac_ext 15919 LIBS=$ac_check_lib_save_LIBS 15920 fi 15921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 15922 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 15923 if test $ac_cv_lib_gcc___ashrdi3 = yes; then 15924 15925 cat >>confdefs.h <<\_ACEOF 15926 #define HAVE___ASHRDI3 1 15927 _ACEOF 15928 15929 fi 15930 15931 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 15932 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 15933 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 15934 echo $ECHO_N "(cached) $ECHO_C" >&6 15935 else 15936 ac_check_lib_save_LIBS=$LIBS 15937 LIBS="-lgcc $LIBS" 15938 cat >conftest.$ac_ext <<_ACEOF 15939 /* confdefs.h. */ 15940 _ACEOF 15941 cat confdefs.h >>conftest.$ac_ext 15942 cat >>conftest.$ac_ext <<_ACEOF 15943 /* end confdefs.h. */ 15944 15945 /* Override any GCC internal prototype to avoid an error. 15946 Use char because int might match the return type of a GCC 15947 builtin and then its argument prototype would still apply. */ 15948 #ifdef __cplusplus 15949 extern "C" 15950 #endif 15951 char __divdi3 (); 15952 int 15953 main () 15954 { 15955 return __divdi3 (); 15956 ; 15957 return 0; 15958 } 15959 _ACEOF 15960 rm -f conftest.$ac_objext conftest$ac_exeext 15961 if { (ac_try="$ac_link" 15962 case "(($ac_try" in 15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15964 *) ac_try_echo=$ac_try;; 15965 esac 15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15967 (eval "$ac_link") 2>conftest.er1 15968 ac_status=$? 15969 grep -v '^ *+' conftest.er1 >conftest.err 15970 rm -f conftest.er1 15971 cat conftest.err >&5 15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15973 (exit $ac_status); } && 15974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15975 { (case "(($ac_try" in 15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15977 *) ac_try_echo=$ac_try;; 15978 esac 15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15980 (eval "$ac_try") 2>&5 15981 ac_status=$? 15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15983 (exit $ac_status); }; } && 15984 { ac_try='test -s conftest$ac_exeext' 15985 { (case "(($ac_try" in 15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15987 *) ac_try_echo=$ac_try;; 15988 esac 15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15990 (eval "$ac_try") 2>&5 15991 ac_status=$? 15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15993 (exit $ac_status); }; }; then 15994 ac_cv_lib_gcc___divdi3=yes 15995 else 15996 echo "$as_me: failed program was:" >&5 15997 sed 's/^/| /' conftest.$ac_ext >&5 15998 15999 ac_cv_lib_gcc___divdi3=no 16000 fi 16001 16002 rm -f core conftest.err conftest.$ac_objext \ 16003 conftest$ac_exeext conftest.$ac_ext 16004 LIBS=$ac_check_lib_save_LIBS 16005 fi 16006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 16007 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 16008 if test $ac_cv_lib_gcc___divdi3 = yes; then 16009 16010 cat >>confdefs.h <<\_ACEOF 16011 #define HAVE___DIVDI3 1 16012 _ACEOF 16013 16014 fi 16015 16016 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 16017 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 16018 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 16019 echo $ECHO_N "(cached) $ECHO_C" >&6 16020 else 16021 ac_check_lib_save_LIBS=$LIBS 16022 LIBS="-lgcc $LIBS" 16023 cat >conftest.$ac_ext <<_ACEOF 16024 /* confdefs.h. */ 16025 _ACEOF 16026 cat confdefs.h >>conftest.$ac_ext 16027 cat >>conftest.$ac_ext <<_ACEOF 16028 /* end confdefs.h. */ 16029 16030 /* Override any GCC internal prototype to avoid an error. 16031 Use char because int might match the return type of a GCC 16032 builtin and then its argument prototype would still apply. */ 16033 #ifdef __cplusplus 16034 extern "C" 16035 #endif 16036 char __fixdfdi (); 16037 int 16038 main () 16039 { 16040 return __fixdfdi (); 16041 ; 16042 return 0; 16043 } 16044 _ACEOF 16045 rm -f conftest.$ac_objext conftest$ac_exeext 16046 if { (ac_try="$ac_link" 16047 case "(($ac_try" in 16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16049 *) ac_try_echo=$ac_try;; 16050 esac 16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16052 (eval "$ac_link") 2>conftest.er1 16053 ac_status=$? 16054 grep -v '^ *+' conftest.er1 >conftest.err 16055 rm -f conftest.er1 16056 cat conftest.err >&5 16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16058 (exit $ac_status); } && 16059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16060 { (case "(($ac_try" in 16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16062 *) ac_try_echo=$ac_try;; 16063 esac 16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16065 (eval "$ac_try") 2>&5 16066 ac_status=$? 16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16068 (exit $ac_status); }; } && 16069 { ac_try='test -s conftest$ac_exeext' 16070 { (case "(($ac_try" in 16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16072 *) ac_try_echo=$ac_try;; 16073 esac 16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16075 (eval "$ac_try") 2>&5 16076 ac_status=$? 16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16078 (exit $ac_status); }; }; then 16079 ac_cv_lib_gcc___fixdfdi=yes 16080 else 16081 echo "$as_me: failed program was:" >&5 16082 sed 's/^/| /' conftest.$ac_ext >&5 16083 16084 ac_cv_lib_gcc___fixdfdi=no 16085 fi 16086 16087 rm -f core conftest.err conftest.$ac_objext \ 16088 conftest$ac_exeext conftest.$ac_ext 16089 LIBS=$ac_check_lib_save_LIBS 16090 fi 16091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 16092 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 16093 if test $ac_cv_lib_gcc___fixdfdi = yes; then 16094 16095 cat >>confdefs.h <<\_ACEOF 16096 #define HAVE___FIXDFDI 1 16097 _ACEOF 16098 16099 fi 16100 16101 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 16102 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 16103 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 16104 echo $ECHO_N "(cached) $ECHO_C" >&6 16105 else 16106 ac_check_lib_save_LIBS=$LIBS 16107 LIBS="-lgcc $LIBS" 16108 cat >conftest.$ac_ext <<_ACEOF 16109 /* confdefs.h. */ 16110 _ACEOF 16111 cat confdefs.h >>conftest.$ac_ext 16112 cat >>conftest.$ac_ext <<_ACEOF 16113 /* end confdefs.h. */ 16114 16115 /* Override any GCC internal prototype to avoid an error. 16116 Use char because int might match the return type of a GCC 16117 builtin and then its argument prototype would still apply. */ 16118 #ifdef __cplusplus 16119 extern "C" 16120 #endif 16121 char __fixsfdi (); 16122 int 16123 main () 16124 { 16125 return __fixsfdi (); 16126 ; 16127 return 0; 16128 } 16129 _ACEOF 16130 rm -f conftest.$ac_objext conftest$ac_exeext 16131 if { (ac_try="$ac_link" 16132 case "(($ac_try" in 16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16134 *) ac_try_echo=$ac_try;; 16135 esac 16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16137 (eval "$ac_link") 2>conftest.er1 16138 ac_status=$? 16139 grep -v '^ *+' conftest.er1 >conftest.err 16140 rm -f conftest.er1 16141 cat conftest.err >&5 16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16143 (exit $ac_status); } && 16144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16145 { (case "(($ac_try" in 16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16147 *) ac_try_echo=$ac_try;; 16148 esac 16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16150 (eval "$ac_try") 2>&5 16151 ac_status=$? 16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16153 (exit $ac_status); }; } && 16154 { ac_try='test -s conftest$ac_exeext' 16155 { (case "(($ac_try" in 16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16157 *) ac_try_echo=$ac_try;; 16158 esac 16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16160 (eval "$ac_try") 2>&5 16161 ac_status=$? 16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16163 (exit $ac_status); }; }; then 16164 ac_cv_lib_gcc___fixsfdi=yes 16165 else 16166 echo "$as_me: failed program was:" >&5 16167 sed 's/^/| /' conftest.$ac_ext >&5 16168 16169 ac_cv_lib_gcc___fixsfdi=no 16170 fi 16171 16172 rm -f core conftest.err conftest.$ac_objext \ 16173 conftest$ac_exeext conftest.$ac_ext 16174 LIBS=$ac_check_lib_save_LIBS 16175 fi 16176 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 16177 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 16178 if test $ac_cv_lib_gcc___fixsfdi = yes; then 16179 16180 cat >>confdefs.h <<\_ACEOF 16181 #define HAVE___FIXSFDI 1 16182 _ACEOF 16183 16184 fi 16185 16186 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 16187 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 16188 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 16189 echo $ECHO_N "(cached) $ECHO_C" >&6 16190 else 16191 ac_check_lib_save_LIBS=$LIBS 16192 LIBS="-lgcc $LIBS" 16193 cat >conftest.$ac_ext <<_ACEOF 16194 /* confdefs.h. */ 16195 _ACEOF 16196 cat confdefs.h >>conftest.$ac_ext 16197 cat >>conftest.$ac_ext <<_ACEOF 16198 /* end confdefs.h. */ 16199 16200 /* Override any GCC internal prototype to avoid an error. 16201 Use char because int might match the return type of a GCC 16202 builtin and then its argument prototype would still apply. */ 16203 #ifdef __cplusplus 16204 extern "C" 16205 #endif 16206 char __floatdidf (); 16207 int 16208 main () 16209 { 16210 return __floatdidf (); 16211 ; 16212 return 0; 16213 } 16214 _ACEOF 16215 rm -f conftest.$ac_objext conftest$ac_exeext 16216 if { (ac_try="$ac_link" 16217 case "(($ac_try" in 16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16219 *) ac_try_echo=$ac_try;; 16220 esac 16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16222 (eval "$ac_link") 2>conftest.er1 16223 ac_status=$? 16224 grep -v '^ *+' conftest.er1 >conftest.err 16225 rm -f conftest.er1 16226 cat conftest.err >&5 16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16228 (exit $ac_status); } && 16229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16230 { (case "(($ac_try" in 16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16232 *) ac_try_echo=$ac_try;; 16233 esac 16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16235 (eval "$ac_try") 2>&5 16236 ac_status=$? 16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16238 (exit $ac_status); }; } && 16239 { ac_try='test -s conftest$ac_exeext' 16240 { (case "(($ac_try" in 16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16242 *) ac_try_echo=$ac_try;; 16243 esac 16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16245 (eval "$ac_try") 2>&5 16246 ac_status=$? 16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16248 (exit $ac_status); }; }; then 16249 ac_cv_lib_gcc___floatdidf=yes 16250 else 16251 echo "$as_me: failed program was:" >&5 16252 sed 's/^/| /' conftest.$ac_ext >&5 16253 16254 ac_cv_lib_gcc___floatdidf=no 16255 fi 16256 16257 rm -f core conftest.err conftest.$ac_objext \ 16258 conftest$ac_exeext conftest.$ac_ext 16259 LIBS=$ac_check_lib_save_LIBS 16260 fi 16261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 16262 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 16263 if test $ac_cv_lib_gcc___floatdidf = yes; then 16264 16265 cat >>confdefs.h <<\_ACEOF 16266 #define HAVE___FLOATDIDF 1 16267 _ACEOF 16268 16269 fi 16270 16271 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 16272 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 16273 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 16274 echo $ECHO_N "(cached) $ECHO_C" >&6 16275 else 16276 ac_check_lib_save_LIBS=$LIBS 16277 LIBS="-lgcc $LIBS" 16278 cat >conftest.$ac_ext <<_ACEOF 16279 /* confdefs.h. */ 16280 _ACEOF 16281 cat confdefs.h >>conftest.$ac_ext 16282 cat >>conftest.$ac_ext <<_ACEOF 16283 /* end confdefs.h. */ 16284 16285 /* Override any GCC internal prototype to avoid an error. 16286 Use char because int might match the return type of a GCC 16287 builtin and then its argument prototype would still apply. */ 16288 #ifdef __cplusplus 16289 extern "C" 16290 #endif 16291 char __lshrdi3 (); 16292 int 16293 main () 16294 { 16295 return __lshrdi3 (); 16296 ; 16297 return 0; 16298 } 16299 _ACEOF 16300 rm -f conftest.$ac_objext conftest$ac_exeext 16301 if { (ac_try="$ac_link" 16302 case "(($ac_try" in 16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16304 *) ac_try_echo=$ac_try;; 16305 esac 16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16307 (eval "$ac_link") 2>conftest.er1 16308 ac_status=$? 16309 grep -v '^ *+' conftest.er1 >conftest.err 16310 rm -f conftest.er1 16311 cat conftest.err >&5 16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16313 (exit $ac_status); } && 16314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16315 { (case "(($ac_try" in 16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16317 *) ac_try_echo=$ac_try;; 16318 esac 16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16320 (eval "$ac_try") 2>&5 16321 ac_status=$? 16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16323 (exit $ac_status); }; } && 16324 { ac_try='test -s conftest$ac_exeext' 16325 { (case "(($ac_try" in 16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16327 *) ac_try_echo=$ac_try;; 16328 esac 16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16330 (eval "$ac_try") 2>&5 16331 ac_status=$? 16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16333 (exit $ac_status); }; }; then 16334 ac_cv_lib_gcc___lshrdi3=yes 16335 else 16336 echo "$as_me: failed program was:" >&5 16337 sed 's/^/| /' conftest.$ac_ext >&5 16338 16339 ac_cv_lib_gcc___lshrdi3=no 16340 fi 16341 16342 rm -f core conftest.err conftest.$ac_objext \ 16343 conftest$ac_exeext conftest.$ac_ext 16344 LIBS=$ac_check_lib_save_LIBS 16345 fi 16346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 16347 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 16348 if test $ac_cv_lib_gcc___lshrdi3 = yes; then 16349 16350 cat >>confdefs.h <<\_ACEOF 16351 #define HAVE___LSHRDI3 1 16352 _ACEOF 16353 16354 fi 16355 16356 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 16357 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 16358 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 16359 echo $ECHO_N "(cached) $ECHO_C" >&6 16360 else 16361 ac_check_lib_save_LIBS=$LIBS 16362 LIBS="-lgcc $LIBS" 16363 cat >conftest.$ac_ext <<_ACEOF 16364 /* confdefs.h. */ 16365 _ACEOF 16366 cat confdefs.h >>conftest.$ac_ext 16367 cat >>conftest.$ac_ext <<_ACEOF 16368 /* end confdefs.h. */ 16369 16370 /* Override any GCC internal prototype to avoid an error. 16371 Use char because int might match the return type of a GCC 16372 builtin and then its argument prototype would still apply. */ 16373 #ifdef __cplusplus 16374 extern "C" 16375 #endif 16376 char __moddi3 (); 16377 int 16378 main () 16379 { 16380 return __moddi3 (); 16381 ; 16382 return 0; 16383 } 16384 _ACEOF 16385 rm -f conftest.$ac_objext conftest$ac_exeext 16386 if { (ac_try="$ac_link" 16387 case "(($ac_try" in 16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16389 *) ac_try_echo=$ac_try;; 16390 esac 16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16392 (eval "$ac_link") 2>conftest.er1 16393 ac_status=$? 16394 grep -v '^ *+' conftest.er1 >conftest.err 16395 rm -f conftest.er1 16396 cat conftest.err >&5 16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16398 (exit $ac_status); } && 16399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16400 { (case "(($ac_try" in 16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16402 *) ac_try_echo=$ac_try;; 16403 esac 16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16405 (eval "$ac_try") 2>&5 16406 ac_status=$? 16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16408 (exit $ac_status); }; } && 16409 { ac_try='test -s conftest$ac_exeext' 16410 { (case "(($ac_try" in 16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16412 *) ac_try_echo=$ac_try;; 16413 esac 16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16415 (eval "$ac_try") 2>&5 16416 ac_status=$? 16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16418 (exit $ac_status); }; }; then 16419 ac_cv_lib_gcc___moddi3=yes 16420 else 16421 echo "$as_me: failed program was:" >&5 16422 sed 's/^/| /' conftest.$ac_ext >&5 16423 16424 ac_cv_lib_gcc___moddi3=no 16425 fi 16426 16427 rm -f core conftest.err conftest.$ac_objext \ 16428 conftest$ac_exeext conftest.$ac_ext 16429 LIBS=$ac_check_lib_save_LIBS 16430 fi 16431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 16432 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 16433 if test $ac_cv_lib_gcc___moddi3 = yes; then 16434 16435 cat >>confdefs.h <<\_ACEOF 16436 #define HAVE___MODDI3 1 16437 _ACEOF 16438 16439 fi 16440 16441 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 16442 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 16443 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 16444 echo $ECHO_N "(cached) $ECHO_C" >&6 16445 else 16446 ac_check_lib_save_LIBS=$LIBS 16447 LIBS="-lgcc $LIBS" 16448 cat >conftest.$ac_ext <<_ACEOF 16449 /* confdefs.h. */ 16450 _ACEOF 16451 cat confdefs.h >>conftest.$ac_ext 16452 cat >>conftest.$ac_ext <<_ACEOF 16453 /* end confdefs.h. */ 16454 16455 /* Override any GCC internal prototype to avoid an error. 16456 Use char because int might match the return type of a GCC 16457 builtin and then its argument prototype would still apply. */ 16458 #ifdef __cplusplus 16459 extern "C" 16460 #endif 16461 char __udivdi3 (); 16462 int 16463 main () 16464 { 16465 return __udivdi3 (); 16466 ; 16467 return 0; 16468 } 16469 _ACEOF 16470 rm -f conftest.$ac_objext conftest$ac_exeext 16471 if { (ac_try="$ac_link" 16472 case "(($ac_try" in 16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16474 *) ac_try_echo=$ac_try;; 16475 esac 16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16477 (eval "$ac_link") 2>conftest.er1 16478 ac_status=$? 16479 grep -v '^ *+' conftest.er1 >conftest.err 16480 rm -f conftest.er1 16481 cat conftest.err >&5 16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16483 (exit $ac_status); } && 16484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16485 { (case "(($ac_try" in 16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16487 *) ac_try_echo=$ac_try;; 16488 esac 16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16490 (eval "$ac_try") 2>&5 16491 ac_status=$? 16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16493 (exit $ac_status); }; } && 16494 { ac_try='test -s conftest$ac_exeext' 16495 { (case "(($ac_try" in 16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16497 *) ac_try_echo=$ac_try;; 16498 esac 16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16500 (eval "$ac_try") 2>&5 16501 ac_status=$? 16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16503 (exit $ac_status); }; }; then 16504 ac_cv_lib_gcc___udivdi3=yes 16505 else 16506 echo "$as_me: failed program was:" >&5 16507 sed 's/^/| /' conftest.$ac_ext >&5 16508 16509 ac_cv_lib_gcc___udivdi3=no 16510 fi 16511 16512 rm -f core conftest.err conftest.$ac_objext \ 16513 conftest$ac_exeext conftest.$ac_ext 16514 LIBS=$ac_check_lib_save_LIBS 16515 fi 16516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 16517 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 16518 if test $ac_cv_lib_gcc___udivdi3 = yes; then 16519 16520 cat >>confdefs.h <<\_ACEOF 16521 #define HAVE___UDIVDI3 1 16522 _ACEOF 16523 16524 fi 16525 16526 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 16527 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 16528 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 16529 echo $ECHO_N "(cached) $ECHO_C" >&6 16530 else 16531 ac_check_lib_save_LIBS=$LIBS 16532 LIBS="-lgcc $LIBS" 16533 cat >conftest.$ac_ext <<_ACEOF 16534 /* confdefs.h. */ 16535 _ACEOF 16536 cat confdefs.h >>conftest.$ac_ext 16537 cat >>conftest.$ac_ext <<_ACEOF 16538 /* end confdefs.h. */ 16539 16540 /* Override any GCC internal prototype to avoid an error. 16541 Use char because int might match the return type of a GCC 16542 builtin and then its argument prototype would still apply. */ 16543 #ifdef __cplusplus 16544 extern "C" 16545 #endif 16546 char __umoddi3 (); 16547 int 16548 main () 16549 { 16550 return __umoddi3 (); 16551 ; 16552 return 0; 16553 } 16554 _ACEOF 16555 rm -f conftest.$ac_objext conftest$ac_exeext 16556 if { (ac_try="$ac_link" 16557 case "(($ac_try" in 16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16559 *) ac_try_echo=$ac_try;; 16560 esac 16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16562 (eval "$ac_link") 2>conftest.er1 16563 ac_status=$? 16564 grep -v '^ *+' conftest.er1 >conftest.err 16565 rm -f conftest.er1 16566 cat conftest.err >&5 16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16568 (exit $ac_status); } && 16569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16570 { (case "(($ac_try" in 16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16572 *) ac_try_echo=$ac_try;; 16573 esac 16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16575 (eval "$ac_try") 2>&5 16576 ac_status=$? 16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16578 (exit $ac_status); }; } && 16579 { ac_try='test -s conftest$ac_exeext' 16580 { (case "(($ac_try" in 16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16582 *) ac_try_echo=$ac_try;; 16583 esac 16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16585 (eval "$ac_try") 2>&5 16586 ac_status=$? 16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16588 (exit $ac_status); }; }; then 16589 ac_cv_lib_gcc___umoddi3=yes 16590 else 16591 echo "$as_me: failed program was:" >&5 16592 sed 's/^/| /' conftest.$ac_ext >&5 16593 16594 ac_cv_lib_gcc___umoddi3=no 16595 fi 16596 16597 rm -f core conftest.err conftest.$ac_objext \ 16598 conftest$ac_exeext conftest.$ac_ext 16599 LIBS=$ac_check_lib_save_LIBS 16600 fi 16601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 16602 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 16603 if test $ac_cv_lib_gcc___umoddi3 = yes; then 16604 16605 cat >>confdefs.h <<\_ACEOF 16606 #define HAVE___UMODDI3 1 16607 _ACEOF 16608 16609 fi 16610 16611 16612 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 16613 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 16614 if test "${ac_cv_lib_gcc___main+set}" = set; then 16615 echo $ECHO_N "(cached) $ECHO_C" >&6 16616 else 16617 ac_check_lib_save_LIBS=$LIBS 16618 LIBS="-lgcc $LIBS" 16619 cat >conftest.$ac_ext <<_ACEOF 16620 /* confdefs.h. */ 16621 _ACEOF 16622 cat confdefs.h >>conftest.$ac_ext 16623 cat >>conftest.$ac_ext <<_ACEOF 16624 /* end confdefs.h. */ 16625 16626 /* Override any GCC internal prototype to avoid an error. 16627 Use char because int might match the return type of a GCC 16628 builtin and then its argument prototype would still apply. */ 16629 #ifdef __cplusplus 16630 extern "C" 16631 #endif 16632 char __main (); 16633 int 16634 main () 16635 { 16636 return __main (); 16637 ; 16638 return 0; 16639 } 16640 _ACEOF 16641 rm -f conftest.$ac_objext conftest$ac_exeext 16642 if { (ac_try="$ac_link" 16643 case "(($ac_try" in 16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16645 *) ac_try_echo=$ac_try;; 16646 esac 16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16648 (eval "$ac_link") 2>conftest.er1 16649 ac_status=$? 16650 grep -v '^ *+' conftest.er1 >conftest.err 16651 rm -f conftest.er1 16652 cat conftest.err >&5 16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16654 (exit $ac_status); } && 16655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16656 { (case "(($ac_try" in 16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16658 *) ac_try_echo=$ac_try;; 16659 esac 16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16661 (eval "$ac_try") 2>&5 16662 ac_status=$? 16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16664 (exit $ac_status); }; } && 16665 { ac_try='test -s conftest$ac_exeext' 16666 { (case "(($ac_try" in 16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16668 *) ac_try_echo=$ac_try;; 16669 esac 16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16671 (eval "$ac_try") 2>&5 16672 ac_status=$? 16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16674 (exit $ac_status); }; }; then 16675 ac_cv_lib_gcc___main=yes 16676 else 16677 echo "$as_me: failed program was:" >&5 16678 sed 's/^/| /' conftest.$ac_ext >&5 16679 16680 ac_cv_lib_gcc___main=no 16681 fi 16682 16683 rm -f core conftest.err conftest.$ac_objext \ 16684 conftest$ac_exeext conftest.$ac_ext 16685 LIBS=$ac_check_lib_save_LIBS 16686 fi 16687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 16688 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 16689 if test $ac_cv_lib_gcc___main = yes; then 16690 16691 cat >>confdefs.h <<\_ACEOF 16692 #define HAVE___MAIN 1 16693 _ACEOF 16694 16695 fi 16696 16697 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 16698 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 16699 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 16700 echo $ECHO_N "(cached) $ECHO_C" >&6 16701 else 16702 ac_check_lib_save_LIBS=$LIBS 16703 LIBS="-lgcc $LIBS" 16704 cat >conftest.$ac_ext <<_ACEOF 16705 /* confdefs.h. */ 16706 _ACEOF 16707 cat confdefs.h >>conftest.$ac_ext 16708 cat >>conftest.$ac_ext <<_ACEOF 16709 /* end confdefs.h. */ 16710 16711 /* Override any GCC internal prototype to avoid an error. 16712 Use char because int might match the return type of a GCC 16713 builtin and then its argument prototype would still apply. */ 16714 #ifdef __cplusplus 16715 extern "C" 16716 #endif 16717 char __cmpdi2 (); 16718 int 16719 main () 16720 { 16721 return __cmpdi2 (); 16722 ; 16723 return 0; 16724 } 16725 _ACEOF 16726 rm -f conftest.$ac_objext conftest$ac_exeext 16727 if { (ac_try="$ac_link" 16728 case "(($ac_try" in 16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16730 *) ac_try_echo=$ac_try;; 16731 esac 16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16733 (eval "$ac_link") 2>conftest.er1 16734 ac_status=$? 16735 grep -v '^ *+' conftest.er1 >conftest.err 16736 rm -f conftest.er1 16737 cat conftest.err >&5 16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16739 (exit $ac_status); } && 16740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16741 { (case "(($ac_try" in 16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16743 *) ac_try_echo=$ac_try;; 16744 esac 16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16746 (eval "$ac_try") 2>&5 16747 ac_status=$? 16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16749 (exit $ac_status); }; } && 16750 { ac_try='test -s conftest$ac_exeext' 16751 { (case "(($ac_try" in 16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16753 *) ac_try_echo=$ac_try;; 16754 esac 16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16756 (eval "$ac_try") 2>&5 16757 ac_status=$? 16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16759 (exit $ac_status); }; }; then 16760 ac_cv_lib_gcc___cmpdi2=yes 16761 else 16762 echo "$as_me: failed program was:" >&5 16763 sed 's/^/| /' conftest.$ac_ext >&5 16764 16765 ac_cv_lib_gcc___cmpdi2=no 16766 fi 16767 16768 rm -f core conftest.err conftest.$ac_objext \ 16769 conftest$ac_exeext conftest.$ac_ext 16770 LIBS=$ac_check_lib_save_LIBS 16771 fi 16772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 16773 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 16774 if test $ac_cv_lib_gcc___cmpdi2 = yes; then 16775 16776 cat >>confdefs.h <<\_ACEOF 16777 #define HAVE___CMPDI2 1 16778 _ACEOF 16779 16780 fi 16781 16782 fi 16783 16784 if test "$llvm_cv_os_type" = "MingW" ; then 16785 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 16786 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 16787 cat >conftest.$ac_ext <<_ACEOF 16788 16789 /* confdefs.h. */ 16790 _ACEOF 16791 cat confdefs.h >>conftest.$ac_ext 16792 cat >>conftest.$ac_ext <<_ACEOF 16793 /* end confdefs.h. */ 16794 16795 #include <windows.h> 16796 #include <imagehlp.h> 16797 extern void foo(PENUMLOADED_MODULES_CALLBACK); 16798 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 16799 16800 16801 _ACEOF 16802 rm -f conftest.$ac_objext 16803 if { (ac_try="$ac_compile" 16804 case "(($ac_try" in 16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16806 *) ac_try_echo=$ac_try;; 16807 esac 16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16809 (eval "$ac_compile") 2>conftest.er1 16810 ac_status=$? 16811 grep -v '^ *+' conftest.er1 >conftest.err 16812 rm -f conftest.er1 16813 cat conftest.err >&5 16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16815 (exit $ac_status); } && 16816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16817 { (case "(($ac_try" in 16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16819 *) ac_try_echo=$ac_try;; 16820 esac 16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16822 (eval "$ac_try") 2>&5 16823 ac_status=$? 16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16825 (exit $ac_status); }; } && 16826 { ac_try='test -s conftest.$ac_objext' 16827 { (case "(($ac_try" in 16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16829 *) ac_try_echo=$ac_try;; 16830 esac 16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16832 (eval "$ac_try") 2>&5 16833 ac_status=$? 16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16835 (exit $ac_status); }; }; then 16836 16837 { echo "$as_me:$LINENO: result: yes" >&5 16838 echo "${ECHO_T}yes" >&6; } 16839 llvm_cv_win32_elmcb_pcstr="PCSTR" 16840 16841 else 16842 echo "$as_me: failed program was:" >&5 16843 sed 's/^/| /' conftest.$ac_ext >&5 16844 16845 16846 { echo "$as_me:$LINENO: result: no" >&5 16847 echo "${ECHO_T}no" >&6; } 16848 llvm_cv_win32_elmcb_pcstr="PSTR" 16849 16850 fi 16851 16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16853 16854 cat >>confdefs.h <<_ACEOF 16855 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 16856 _ACEOF 16857 16858 fi 16859 16860 if test "$llvm_cv_platform_type" = "Unix" ; then 16861 16862 16863 for ac_header in stdlib.h unistd.h 16864 do 16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16867 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16870 echo $ECHO_N "(cached) $ECHO_C" >&6 16871 fi 16872 ac_res=`eval echo '${'$as_ac_Header'}'` 16873 { echo "$as_me:$LINENO: result: $ac_res" >&5 16874 echo "${ECHO_T}$ac_res" >&6; } 16875 else 16876 # Is the header compilable? 16877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 16878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16879 cat >conftest.$ac_ext <<_ACEOF 16880 /* confdefs.h. */ 16881 _ACEOF 16882 cat confdefs.h >>conftest.$ac_ext 16883 cat >>conftest.$ac_ext <<_ACEOF 16884 /* end confdefs.h. */ 16885 $ac_includes_default 16886 #include <$ac_header> 16887 _ACEOF 16888 rm -f conftest.$ac_objext 16889 if { (ac_try="$ac_compile" 16890 case "(($ac_try" in 16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16892 *) ac_try_echo=$ac_try;; 16893 esac 16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16895 (eval "$ac_compile") 2>conftest.er1 16896 ac_status=$? 16897 grep -v '^ *+' conftest.er1 >conftest.err 16898 rm -f conftest.er1 16899 cat conftest.err >&5 16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16901 (exit $ac_status); } && 16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16903 { (case "(($ac_try" in 16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16905 *) ac_try_echo=$ac_try;; 16906 esac 16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16908 (eval "$ac_try") 2>&5 16909 ac_status=$? 16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16911 (exit $ac_status); }; } && 16912 { ac_try='test -s conftest.$ac_objext' 16913 { (case "(($ac_try" in 16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16915 *) ac_try_echo=$ac_try;; 16916 esac 16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16918 (eval "$ac_try") 2>&5 16919 ac_status=$? 16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16921 (exit $ac_status); }; }; then 16922 ac_header_compiler=yes 16923 else 16924 echo "$as_me: failed program was:" >&5 16925 sed 's/^/| /' conftest.$ac_ext >&5 16926 16927 ac_header_compiler=no 16928 fi 16929 16930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16932 echo "${ECHO_T}$ac_header_compiler" >&6; } 16933 16934 # Is the header present? 16935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 16936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16937 cat >conftest.$ac_ext <<_ACEOF 16938 /* confdefs.h. */ 16939 _ACEOF 16940 cat confdefs.h >>conftest.$ac_ext 16941 cat >>conftest.$ac_ext <<_ACEOF 16942 /* end confdefs.h. */ 16943 #include <$ac_header> 16944 _ACEOF 16945 if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 2>conftest.er1 16952 ac_status=$? 16953 grep -v '^ *+' conftest.er1 >conftest.err 16954 rm -f conftest.er1 16955 cat conftest.err >&5 16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16957 (exit $ac_status); } >/dev/null; then 16958 if test -s conftest.err; then 16959 ac_cpp_err=$ac_c_preproc_warn_flag 16960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16961 else 16962 ac_cpp_err= 16963 fi 16964 else 16965 ac_cpp_err=yes 16966 fi 16967 if test -z "$ac_cpp_err"; then 16968 ac_header_preproc=yes 16969 else 16970 echo "$as_me: failed program was:" >&5 16971 sed 's/^/| /' conftest.$ac_ext >&5 16972 16973 ac_header_preproc=no 16974 fi 16975 16976 rm -f conftest.err conftest.$ac_ext 16977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16978 echo "${ECHO_T}$ac_header_preproc" >&6; } 16979 16980 # So? What about this header? 16981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16982 yes:no: ) 16983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16987 ac_header_preproc=yes 16988 ;; 16989 no:yes:* ) 16990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17002 ( cat <<\_ASBOX 17003 ## ------------------------------------ ## 17004 ## Report this to http://llvm.org/bugs/ ## 17005 ## ------------------------------------ ## 17006 _ASBOX 17007 ) | sed "s/^/$as_me: WARNING: /" >&2 17008 ;; 17009 esac 17010 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17013 echo $ECHO_N "(cached) $ECHO_C" >&6 17014 else 17015 eval "$as_ac_Header=\$ac_header_preproc" 17016 fi 17017 ac_res=`eval echo '${'$as_ac_Header'}'` 17018 { echo "$as_me:$LINENO: result: $ac_res" >&5 17019 echo "${ECHO_T}$ac_res" >&6; } 17020 17021 fi 17022 if test `eval echo '${'$as_ac_Header'}'` = yes; then 17023 cat >>confdefs.h <<_ACEOF 17024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17025 _ACEOF 17026 17027 fi 17028 17029 done 17030 17031 17032 for ac_func in getpagesize 17033 do 17034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17035 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17038 echo $ECHO_N "(cached) $ECHO_C" >&6 17039 else 17040 cat >conftest.$ac_ext <<_ACEOF 17041 /* confdefs.h. */ 17042 _ACEOF 17043 cat confdefs.h >>conftest.$ac_ext 17044 cat >>conftest.$ac_ext <<_ACEOF 17045 /* end confdefs.h. */ 17046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17047 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17048 #define $ac_func innocuous_$ac_func 17049 17050 /* System header to define __stub macros and hopefully few prototypes, 17051 which can conflict with char $ac_func (); below. 17052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17053 <limits.h> exists even on freestanding compilers. */ 17054 17055 #ifdef __STDC__ 17056 # include <limits.h> 17057 #else 17058 # include <assert.h> 17059 #endif 17060 17061 #undef $ac_func 17062 17063 /* Override any GCC internal prototype to avoid an error. 17064 Use char because int might match the return type of a GCC 17065 builtin and then its argument prototype would still apply. */ 17066 #ifdef __cplusplus 17067 extern "C" 17068 #endif 17069 char $ac_func (); 17070 /* The GNU C library defines this for functions which it implements 17071 to always fail with ENOSYS. Some functions are actually named 17072 something starting with __ and the normal name is an alias. */ 17073 #if defined __stub_$ac_func || defined __stub___$ac_func 17074 choke me 17075 #endif 17076 17077 int 17078 main () 17079 { 17080 return $ac_func (); 17081 ; 17082 return 0; 17083 } 17084 _ACEOF 17085 rm -f conftest.$ac_objext conftest$ac_exeext 17086 if { (ac_try="$ac_link" 17087 case "(($ac_try" in 17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17089 *) ac_try_echo=$ac_try;; 17090 esac 17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17092 (eval "$ac_link") 2>conftest.er1 17093 ac_status=$? 17094 grep -v '^ *+' conftest.er1 >conftest.err 17095 rm -f conftest.er1 17096 cat conftest.err >&5 17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17098 (exit $ac_status); } && 17099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17100 { (case "(($ac_try" in 17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17102 *) ac_try_echo=$ac_try;; 17103 esac 17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17105 (eval "$ac_try") 2>&5 17106 ac_status=$? 17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17108 (exit $ac_status); }; } && 17109 { ac_try='test -s conftest$ac_exeext' 17110 { (case "(($ac_try" in 17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17112 *) ac_try_echo=$ac_try;; 17113 esac 17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17115 (eval "$ac_try") 2>&5 17116 ac_status=$? 17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17118 (exit $ac_status); }; }; then 17119 eval "$as_ac_var=yes" 17120 else 17121 echo "$as_me: failed program was:" >&5 17122 sed 's/^/| /' conftest.$ac_ext >&5 17123 17124 eval "$as_ac_var=no" 17125 fi 17126 17127 rm -f core conftest.err conftest.$ac_objext \ 17128 conftest$ac_exeext conftest.$ac_ext 17129 fi 17130 ac_res=`eval echo '${'$as_ac_var'}'` 17131 { echo "$as_me:$LINENO: result: $ac_res" >&5 17132 echo "${ECHO_T}$ac_res" >&6; } 17133 if test `eval echo '${'$as_ac_var'}'` = yes; then 17134 cat >>confdefs.h <<_ACEOF 17135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17136 _ACEOF 17137 17138 fi 17139 done 17140 17141 { echo "$as_me:$LINENO: checking for working mmap" >&5 17142 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 17143 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 17144 echo $ECHO_N "(cached) $ECHO_C" >&6 17145 else 17146 if test "$cross_compiling" = yes; then 17147 ac_cv_func_mmap_fixed_mapped=no 17148 else 17149 cat >conftest.$ac_ext <<_ACEOF 17150 /* confdefs.h. */ 17151 _ACEOF 17152 cat confdefs.h >>conftest.$ac_ext 17153 cat >>conftest.$ac_ext <<_ACEOF 17154 /* end confdefs.h. */ 17155 $ac_includes_default 17156 /* malloc might have been renamed as rpl_malloc. */ 17157 #undef malloc 17158 17159 /* Thanks to Mike Haertel and Jim Avera for this test. 17160 Here is a matrix of mmap possibilities: 17161 mmap private not fixed 17162 mmap private fixed at somewhere currently unmapped 17163 mmap private fixed at somewhere already mapped 17164 mmap shared not fixed 17165 mmap shared fixed at somewhere currently unmapped 17166 mmap shared fixed at somewhere already mapped 17167 For private mappings, we should verify that changes cannot be read() 17168 back from the file, nor mmap's back from the file at a different 17169 address. (There have been systems where private was not correctly 17170 implemented like the infamous i386 svr4.0, and systems where the 17171 VM page cache was not coherent with the file system buffer cache 17172 like early versions of FreeBSD and possibly contemporary NetBSD.) 17173 For shared mappings, we should conversely verify that changes get 17174 propagated back to all the places they're supposed to be. 17175 17176 Grep wants private fixed already mapped. 17177 The main things grep needs to know about mmap are: 17178 * does it exist and is it safe to write into the mmap'd area 17179 * how to use it (BSD variants) */ 17180 17181 #include <fcntl.h> 17182 #include <sys/mman.h> 17183 17184 #if !STDC_HEADERS && !HAVE_STDLIB_H 17185 char *malloc (); 17186 #endif 17187 17188 /* This mess was copied from the GNU getpagesize.h. */ 17189 #if !HAVE_GETPAGESIZE 17190 /* Assume that all systems that can run configure have sys/param.h. */ 17191 # if !HAVE_SYS_PARAM_H 17192 # define HAVE_SYS_PARAM_H 1 17193 # endif 17194 17195 # ifdef _SC_PAGESIZE 17196 # define getpagesize() sysconf(_SC_PAGESIZE) 17197 # else /* no _SC_PAGESIZE */ 17198 # if HAVE_SYS_PARAM_H 17199 # include <sys/param.h> 17200 # ifdef EXEC_PAGESIZE 17201 # define getpagesize() EXEC_PAGESIZE 17202 # else /* no EXEC_PAGESIZE */ 17203 # ifdef NBPG 17204 # define getpagesize() NBPG * CLSIZE 17205 # ifndef CLSIZE 17206 # define CLSIZE 1 17207 # endif /* no CLSIZE */ 17208 # else /* no NBPG */ 17209 # ifdef NBPC 17210 # define getpagesize() NBPC 17211 # else /* no NBPC */ 17212 # ifdef PAGESIZE 17213 # define getpagesize() PAGESIZE 17214 # endif /* PAGESIZE */ 17215 # endif /* no NBPC */ 17216 # endif /* no NBPG */ 17217 # endif /* no EXEC_PAGESIZE */ 17218 # else /* no HAVE_SYS_PARAM_H */ 17219 # define getpagesize() 8192 /* punt totally */ 17220 # endif /* no HAVE_SYS_PARAM_H */ 17221 # endif /* no _SC_PAGESIZE */ 17222 17223 #endif /* no HAVE_GETPAGESIZE */ 17224 17225 int 17226 main () 17227 { 17228 char *data, *data2, *data3; 17229 int i, pagesize; 17230 int fd; 17231 17232 pagesize = getpagesize (); 17233 17234 /* First, make a file with some known garbage in it. */ 17235 data = (char *) malloc (pagesize); 17236 if (!data) 17237 return 1; 17238 for (i = 0; i < pagesize; ++i) 17239 *(data + i) = rand (); 17240 umask (0); 17241 fd = creat ("conftest.mmap", 0600); 17242 if (fd < 0) 17243 return 1; 17244 if (write (fd, data, pagesize) != pagesize) 17245 return 1; 17246 close (fd); 17247 17248 /* Next, try to mmap the file at a fixed address which already has 17249 something else allocated at it. If we can, also make sure that 17250 we see the same garbage. */ 17251 fd = open ("conftest.mmap", O_RDWR); 17252 if (fd < 0) 17253 return 1; 17254 data2 = (char *) malloc (2 * pagesize); 17255 if (!data2) 17256 return 1; 17257 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 17258 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 17259 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 17260 return 1; 17261 for (i = 0; i < pagesize; ++i) 17262 if (*(data + i) != *(data2 + i)) 17263 return 1; 17264 17265 /* Finally, make sure that changes to the mapped area do not 17266 percolate back to the file as seen by read(). (This is a bug on 17267 some variants of i386 svr4.0.) */ 17268 for (i = 0; i < pagesize; ++i) 17269 *(data2 + i) = *(data2 + i) + 1; 17270 data3 = (char *) malloc (pagesize); 17271 if (!data3) 17272 return 1; 17273 if (read (fd, data3, pagesize) != pagesize) 17274 return 1; 17275 for (i = 0; i < pagesize; ++i) 17276 if (*(data + i) != *(data3 + i)) 17277 return 1; 17278 close (fd); 17279 return 0; 17280 } 17281 _ACEOF 17282 rm -f conftest$ac_exeext 17283 if { (ac_try="$ac_link" 17284 case "(($ac_try" in 17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17286 *) ac_try_echo=$ac_try;; 17287 esac 17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17289 (eval "$ac_link") 2>&5 17290 ac_status=$? 17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17293 { (case "(($ac_try" in 17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17295 *) ac_try_echo=$ac_try;; 17296 esac 17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17298 (eval "$ac_try") 2>&5 17299 ac_status=$? 17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17301 (exit $ac_status); }; }; then 17302 ac_cv_func_mmap_fixed_mapped=yes 17303 else 17304 echo "$as_me: program exited with status $ac_status" >&5 17305 echo "$as_me: failed program was:" >&5 17306 sed 's/^/| /' conftest.$ac_ext >&5 17307 17308 ( exit $ac_status ) 17309 ac_cv_func_mmap_fixed_mapped=no 17310 fi 17311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17312 fi 17313 17314 17315 fi 17316 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 17317 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 17318 if test $ac_cv_func_mmap_fixed_mapped = yes; then 17319 17320 cat >>confdefs.h <<\_ACEOF 17321 #define HAVE_MMAP 1 17322 _ACEOF 17323 17324 fi 17325 rm -f conftest.mmap 17326 17327 { echo "$as_me:$LINENO: checking for mmap of files" >&5 17328 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 17329 if test "${ac_cv_func_mmap_file+set}" = set; then 17330 echo $ECHO_N "(cached) $ECHO_C" >&6 17331 else 17332 ac_ext=c 17333 ac_cpp='$CPP $CPPFLAGS' 17334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17336 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17337 17338 if test "$cross_compiling" = yes; then 17339 ac_cv_func_mmap_file=no 17340 else 17341 cat >conftest.$ac_ext <<_ACEOF 17342 17343 /* confdefs.h. */ 17344 _ACEOF 17345 cat confdefs.h >>conftest.$ac_ext 17346 cat >>conftest.$ac_ext <<_ACEOF 17347 /* end confdefs.h. */ 17348 17349 #include <sys/types.h> 17350 #include <sys/mman.h> 17351 #include <fcntl.h> 17352 17353 int 17354 main () 17355 { 17356 17357 int fd; 17358 fd = creat ("foo",0777); 17359 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 17360 unlink ("foo"); 17361 return (fd != (int) MAP_FAILED); 17362 ; 17363 return 0; 17364 } 17365 _ACEOF 17366 rm -f conftest$ac_exeext 17367 if { (ac_try="$ac_link" 17368 case "(($ac_try" in 17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17370 *) ac_try_echo=$ac_try;; 17371 esac 17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17373 (eval "$ac_link") 2>&5 17374 ac_status=$? 17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17377 { (case "(($ac_try" in 17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17379 *) ac_try_echo=$ac_try;; 17380 esac 17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17382 (eval "$ac_try") 2>&5 17383 ac_status=$? 17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17385 (exit $ac_status); }; }; then 17386 ac_cv_func_mmap_file=yes 17387 else 17388 echo "$as_me: program exited with status $ac_status" >&5 17389 echo "$as_me: failed program was:" >&5 17390 sed 's/^/| /' conftest.$ac_ext >&5 17391 17392 ( exit $ac_status ) 17393 ac_cv_func_mmap_file=no 17394 fi 17395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17396 fi 17397 17398 17399 ac_ext=c 17400 ac_cpp='$CPP $CPPFLAGS' 17401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17403 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17404 17405 17406 fi 17407 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 17408 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 17409 if test "$ac_cv_func_mmap_file" = yes; then 17410 17411 cat >>confdefs.h <<\_ACEOF 17412 #define HAVE_MMAP_FILE 17413 _ACEOF 17414 17415 MMAP_FILE=yes 17416 17417 fi 17418 17419 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 17420 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 17421 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 17422 echo $ECHO_N "(cached) $ECHO_C" >&6 17423 else 17424 if test "$llvm_cv_os_type" = "Interix" ; then 17425 ac_cv_need_dev_zero_for_mmap=yes 17426 else 17427 ac_cv_need_dev_zero_for_mmap=no 17428 fi 17429 17430 fi 17431 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 17432 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 17433 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 17434 17435 cat >>confdefs.h <<\_ACEOF 17436 #define NEED_DEV_ZERO_FOR_MMAP 1 17437 _ACEOF 17438 17439 fi 17440 17441 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 17442 then 17443 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 17444 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 17445 fi 17446 if test "$ac_cv_func_mmap_file" = "no" 17447 then 17448 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 17449 echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 17450 fi 17451 fi 17452 17453 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 17454 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 17455 ac_ext=cpp 17456 ac_cpp='$CXXCPP $CPPFLAGS' 17457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17460 17461 cat >conftest.$ac_ext <<_ACEOF 17462 17463 /* confdefs.h. */ 17464 _ACEOF 17465 cat confdefs.h >>conftest.$ac_ext 17466 cat >>conftest.$ac_ext <<_ACEOF 17467 /* end confdefs.h. */ 17468 17469 int main() { 17470 volatile unsigned long val = 1; 17471 __sync_synchronize(); 17472 __sync_val_compare_and_swap(&val, 1, 0); 17473 __sync_add_and_fetch(&val, 1); 17474 __sync_sub_and_fetch(&val, 1); 17475 return 0; 17476 } 17477 17478 17479 _ACEOF 17480 rm -f conftest.$ac_objext conftest$ac_exeext 17481 if { (ac_try="$ac_link" 17482 case "(($ac_try" in 17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17484 *) ac_try_echo=$ac_try;; 17485 esac 17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17487 (eval "$ac_link") 2>conftest.er1 17488 ac_status=$? 17489 grep -v '^ *+' conftest.er1 >conftest.err 17490 rm -f conftest.er1 17491 cat conftest.err >&5 17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17493 (exit $ac_status); } && 17494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17495 { (case "(($ac_try" in 17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17497 *) ac_try_echo=$ac_try;; 17498 esac 17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17500 (eval "$ac_try") 2>&5 17501 ac_status=$? 17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17503 (exit $ac_status); }; } && 17504 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 17514 17515 { echo "$as_me:$LINENO: result: yes" >&5 17516 echo "${ECHO_T}yes" >&6; } 17517 17518 cat >>confdefs.h <<\_ACEOF 17519 #define LLVM_HAS_ATOMICS 1 17520 _ACEOF 17521 17522 17523 else 17524 echo "$as_me: failed program was:" >&5 17525 sed 's/^/| /' conftest.$ac_ext >&5 17526 17527 17528 { echo "$as_me:$LINENO: result: no" >&5 17529 echo "${ECHO_T}no" >&6; } 17530 17531 cat >>confdefs.h <<\_ACEOF 17532 #define LLVM_HAS_ATOMICS 0 17533 _ACEOF 17534 17535 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 17536 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 17537 17538 fi 17539 17540 rm -f core conftest.err conftest.$ac_objext \ 17541 conftest$ac_exeext conftest.$ac_ext 17542 ac_ext=c 17543 ac_cpp='$CPP $CPPFLAGS' 17544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17546 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17547 17548 17549 17550 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 17551 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 17552 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 17553 if test "${llvm_cv_linux_mixed+set}" = set; then 17554 echo $ECHO_N "(cached) $ECHO_C" >&6 17555 else 17556 ac_ext=c 17557 ac_cpp='$CPP $CPPFLAGS' 17558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17560 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17561 17562 cat >conftest.$ac_ext <<_ACEOF 17563 /* confdefs.h. */ 17564 _ACEOF 17565 cat confdefs.h >>conftest.$ac_ext 17566 cat >>conftest.$ac_ext <<_ACEOF 17567 /* end confdefs.h. */ 17568 #ifndef __x86_64__ 17569 error: Not x86-64 even if uname says so! 17570 #endif 17571 17572 int 17573 main () 17574 { 17575 17576 ; 17577 return 0; 17578 } 17579 _ACEOF 17580 rm -f conftest.$ac_objext 17581 if { (ac_try="$ac_compile" 17582 case "(($ac_try" in 17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17584 *) ac_try_echo=$ac_try;; 17585 esac 17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17587 (eval "$ac_compile") 2>conftest.er1 17588 ac_status=$? 17589 grep -v '^ *+' conftest.er1 >conftest.err 17590 rm -f conftest.er1 17591 cat conftest.err >&5 17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17593 (exit $ac_status); } && 17594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17595 { (case "(($ac_try" in 17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17597 *) ac_try_echo=$ac_try;; 17598 esac 17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17600 (eval "$ac_try") 2>&5 17601 ac_status=$? 17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17603 (exit $ac_status); }; } && 17604 { ac_try='test -s conftest.$ac_objext' 17605 { (case "(($ac_try" in 17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17607 *) ac_try_echo=$ac_try;; 17608 esac 17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17610 (eval "$ac_try") 2>&5 17611 ac_status=$? 17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17613 (exit $ac_status); }; }; then 17614 llvm_cv_linux_mixed=no 17615 else 17616 echo "$as_me: failed program was:" >&5 17617 sed 's/^/| /' conftest.$ac_ext >&5 17618 17619 llvm_cv_linux_mixed=yes 17620 fi 17621 17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17623 ac_ext=c 17624 ac_cpp='$CPP $CPPFLAGS' 17625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17627 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17628 17629 17630 fi 17631 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 17632 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 17633 17634 if test "$llvm_cv_linux_mixed" = "yes"; then 17635 llvm_cv_target_arch="x86" 17636 ARCH="x86" 17637 fi 17638 fi 17639 17640 17641 for ac_func in __dso_handle 17642 do 17643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17644 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17647 echo $ECHO_N "(cached) $ECHO_C" >&6 17648 else 17649 cat >conftest.$ac_ext <<_ACEOF 17650 /* confdefs.h. */ 17651 _ACEOF 17652 cat confdefs.h >>conftest.$ac_ext 17653 cat >>conftest.$ac_ext <<_ACEOF 17654 /* end confdefs.h. */ 17655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17656 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17657 #define $ac_func innocuous_$ac_func 17658 17659 /* System header to define __stub macros and hopefully few prototypes, 17660 which can conflict with char $ac_func (); below. 17661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17662 <limits.h> exists even on freestanding compilers. */ 17663 17664 #ifdef __STDC__ 17665 # include <limits.h> 17666 #else 17667 # include <assert.h> 17668 #endif 17669 17670 #undef $ac_func 17671 17672 /* Override any GCC internal prototype to avoid an error. 17673 Use char because int might match the return type of a GCC 17674 builtin and then its argument prototype would still apply. */ 17675 #ifdef __cplusplus 17676 extern "C" 17677 #endif 17678 char $ac_func (); 17679 /* The GNU C library defines this for functions which it implements 17680 to always fail with ENOSYS. Some functions are actually named 17681 something starting with __ and the normal name is an alias. */ 17682 #if defined __stub_$ac_func || defined __stub___$ac_func 17683 choke me 17684 #endif 17685 17686 int 17687 main () 17688 { 17689 return $ac_func (); 17690 ; 17691 return 0; 17692 } 17693 _ACEOF 17694 rm -f conftest.$ac_objext conftest$ac_exeext 17695 if { (ac_try="$ac_link" 17696 case "(($ac_try" in 17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17698 *) ac_try_echo=$ac_try;; 17699 esac 17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17701 (eval "$ac_link") 2>conftest.er1 17702 ac_status=$? 17703 grep -v '^ *+' conftest.er1 >conftest.err 17704 rm -f conftest.er1 17705 cat conftest.err >&5 17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17707 (exit $ac_status); } && 17708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17709 { (case "(($ac_try" in 17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17711 *) ac_try_echo=$ac_try;; 17712 esac 17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17714 (eval "$ac_try") 2>&5 17715 ac_status=$? 17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17717 (exit $ac_status); }; } && 17718 { ac_try='test -s conftest$ac_exeext' 17719 { (case "(($ac_try" in 17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17721 *) ac_try_echo=$ac_try;; 17722 esac 17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17724 (eval "$ac_try") 2>&5 17725 ac_status=$? 17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17727 (exit $ac_status); }; }; then 17728 eval "$as_ac_var=yes" 17729 else 17730 echo "$as_me: failed program was:" >&5 17731 sed 's/^/| /' conftest.$ac_ext >&5 17732 17733 eval "$as_ac_var=no" 17734 fi 17735 17736 rm -f core conftest.err conftest.$ac_objext \ 17737 conftest$ac_exeext conftest.$ac_ext 17738 fi 17739 ac_res=`eval echo '${'$as_ac_var'}'` 17740 { echo "$as_me:$LINENO: result: $ac_res" >&5 17741 echo "${ECHO_T}$ac_res" >&6; } 17742 if test `eval echo '${'$as_ac_var'}'` = yes; then 17743 cat >>confdefs.h <<_ACEOF 17744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17745 _ACEOF 17746 17747 fi 17748 done 17749 17750 17751 SHLIBEXT=$llvm_shlib_ext 17752 17753 17754 if test "${prefix}" = "NONE" ; then 17755 prefix="/usr/local" 17756 fi 17757 eval LLVM_PREFIX="${prefix}"; 17758 eval LLVM_BINDIR="${prefix}/bin"; 17759 eval LLVM_DATADIR="${prefix}/share/llvm"; 17760 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 17761 eval LLVM_ETCDIR="${prefix}/etc/llvm"; 17762 eval LLVM_INCLUDEDIR="${prefix}/include"; 17763 eval LLVM_INFODIR="${prefix}/info"; 17764 eval LLVM_MANDIR="${prefix}/man"; 17765 LLVM_CONFIGTIME=`date` 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 if test "${ENABLE_TIMESTAMPS}" = "0"; then 17777 LLVM_CONFIGTIME="(timestamp not enabled)" 17778 fi 17779 17780 17781 cat >>confdefs.h <<_ACEOF 17782 #define LLVM_PREFIX "$LLVM_PREFIX" 17783 _ACEOF 17784 17785 17786 cat >>confdefs.h <<_ACEOF 17787 #define LLVM_BINDIR "$LLVM_BINDIR" 17788 _ACEOF 17789 17790 17791 cat >>confdefs.h <<_ACEOF 17792 #define LLVM_DATADIR "$LLVM_DATADIR" 17793 _ACEOF 17794 17795 17796 cat >>confdefs.h <<_ACEOF 17797 #define LLVM_DOCSDIR "$LLVM_DOCSDIR" 17798 _ACEOF 17799 17800 17801 cat >>confdefs.h <<_ACEOF 17802 #define LLVM_ETCDIR "$LLVM_ETCDIR" 17803 _ACEOF 17804 17805 17806 cat >>confdefs.h <<_ACEOF 17807 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 17808 _ACEOF 17809 17810 17811 cat >>confdefs.h <<_ACEOF 17812 #define LLVM_INFODIR "$LLVM_INFODIR" 17813 _ACEOF 17814 17815 17816 cat >>confdefs.h <<_ACEOF 17817 #define LLVM_MANDIR "$LLVM_MANDIR" 17818 _ACEOF 17819 17820 17821 cat >>confdefs.h <<_ACEOF 17822 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 17823 _ACEOF 17824 17825 17826 cat >>confdefs.h <<_ACEOF 17827 #define LLVM_HOST_TRIPLE "$host" 17828 _ACEOF 17829 17830 17831 cat >>confdefs.h <<_ACEOF 17832 #define LLVM_DEFAULT_TARGET_TRIPLE "$target" 17833 _ACEOF 17834 17835 17836 if test "$BINDINGS_TO_BUILD" = auto ; then 17837 BINDINGS_TO_BUILD="" 17838 if test "x$OCAMLFIND" != x ; then 17839 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 17840 fi 17841 if test "x$GO" != x ; then 17842 if $GO run ${srcdir}/bindings/go/conftest.go ; then 17843 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD" 17844 fi 17845 fi 17846 fi 17847 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 17848 17849 17850 binding_prereqs_failed=0 17851 for a_binding in $BINDINGS_TO_BUILD ; do 17852 case "$a_binding" in 17853 ocaml) 17854 if test "x$OCAMLFIND" = x ; then 17855 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5 17856 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;} 17857 binding_prereqs_failed=1 17858 fi 17859 17860 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then 17861 HAVE_OCAMLOPT=1 17862 else 17863 HAVE_OCAMLOPT=0 17864 fi 17865 17866 17867 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then 17868 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5 17869 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;} 17870 binding_prereqs_failed=1 17871 fi 17872 17873 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then 17874 HAVE_OCAML_OUNIT=1 17875 else 17876 HAVE_OCAML_OUNIT=0 17877 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5 17878 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;} 17879 fi 17880 17881 17882 if test "x$with_ocaml_libdir" != xauto ; then 17883 OCAML_LIBDIR=$with_ocaml_libdir 17884 17885 else 17886 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`" 17887 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 17888 then 17889 # ocaml stdlib is beneath our prefix; use stdlib 17890 OCAML_LIBDIR=$ocaml_stdlib 17891 17892 else 17893 # ocaml stdlib is outside our prefix; use libdir/ocaml 17894 OCAML_LIBDIR=${prefix}/lib/ocaml 17895 17896 fi 17897 fi 17898 ;; 17899 go) 17900 if test "x$GO" = x ; then 17901 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5 17902 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;} 17903 binding_prereqs_failed=1 17904 else 17905 if $GO run ${srcdir}/bindings/go/conftest.go ; then 17906 : 17907 else 17908 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5 17909 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;} 17910 binding_prereqs_failed=1 17911 fi 17912 fi 17913 ;; 17914 esac 17915 done 17916 if test "$binding_prereqs_failed" = 1 ; then 17917 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 17918 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 17919 { (exit 1); exit 1; }; } 17920 fi 17921 17922 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 17923 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 17924 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 17925 echo $ECHO_N "(cached) $ECHO_C" >&6 17926 else 17927 ac_ext=cpp 17928 ac_cpp='$CXXCPP $CPPFLAGS' 17929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17932 17933 oldcxxflags="$CXXFLAGS" 17934 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 17935 cat >conftest.$ac_ext <<_ACEOF 17936 /* confdefs.h. */ 17937 _ACEOF 17938 cat confdefs.h >>conftest.$ac_ext 17939 cat >>conftest.$ac_ext <<_ACEOF 17940 /* end confdefs.h. */ 17941 template <typename T> struct X { void __attribute__((noinline)) f() {} }; 17942 int 17943 main () 17944 { 17945 X<int>().f(); 17946 ; 17947 return 0; 17948 } 17949 _ACEOF 17950 rm -f conftest.$ac_objext 17951 if { (ac_try="$ac_compile" 17952 case "(($ac_try" in 17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17954 *) ac_try_echo=$ac_try;; 17955 esac 17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17957 (eval "$ac_compile") 2>conftest.er1 17958 ac_status=$? 17959 grep -v '^ *+' conftest.er1 >conftest.err 17960 rm -f conftest.er1 17961 cat conftest.err >&5 17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17963 (exit $ac_status); } && 17964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17965 { (case "(($ac_try" in 17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17967 *) ac_try_echo=$ac_try;; 17968 esac 17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17970 (eval "$ac_try") 2>&5 17971 ac_status=$? 17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17973 (exit $ac_status); }; } && 17974 { ac_try='test -s conftest.$ac_objext' 17975 { (case "(($ac_try" in 17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17977 *) ac_try_echo=$ac_try;; 17978 esac 17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17980 (eval "$ac_try") 2>&5 17981 ac_status=$? 17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17983 (exit $ac_status); }; }; then 17984 llvm_cv_cxx_visibility_inlines_hidden=yes 17985 else 17986 echo "$as_me: failed program was:" >&5 17987 sed 's/^/| /' conftest.$ac_ext >&5 17988 17989 llvm_cv_cxx_visibility_inlines_hidden=no 17990 fi 17991 17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17993 CXXFLAGS="$oldcxxflags" 17994 ac_ext=c 17995 ac_cpp='$CPP $CPPFLAGS' 17996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17998 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17999 18000 18001 fi 18002 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 18003 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 18004 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 18005 ENABLE_VISIBILITY_INLINES_HIDDEN=1 18006 18007 else 18008 ENABLE_VISIBILITY_INLINES_HIDDEN=0 18009 18010 fi 18011 18012 18013 if test "$llvm_cv_link_use_r" = "yes" ; then 18014 RPATH="-Wl,-R" 18015 else 18016 RPATH="-Wl,-rpath" 18017 fi 18018 18019 18020 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 18021 RDYNAMIC="-rdynamic" 18022 else 18023 RDYNAMIC="" 18024 fi 18025 18026 18027 18028 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 18029 18030 18031 18032 18033 18034 18035 ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 18036 18037 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 18038 18039 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 18040 18041 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 18042 18043 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 18044 18045 18046 ac_config_files="$ac_config_files Makefile.config" 18047 18048 18049 ac_config_files="$ac_config_files llvm.spec" 18050 18051 18052 ac_config_files="$ac_config_files docs/doxygen.cfg" 18053 18054 18055 if test "${clang_src_root}" = ""; then 18056 clang_src_root="$srcdir/tools/clang" 18057 fi 18058 if test -f ${clang_src_root}/README.txt; then 18059 18060 cat >>confdefs.h <<_ACEOF 18061 #define CLANG_LIBDIR_SUFFIX "" 18062 _ACEOF 18063 18064 18065 configh="include/clang/Config/config.h" 18066 doxy="docs/doxygen.cfg" 18067 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 18068 18069 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 18070 18071 fi 18072 18073 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 18074 18075 18076 test "x$program_prefix" = "xNONE" && program_prefix="" 18077 18078 18079 18080 ac_config_commands="$ac_config_commands setup" 18081 18082 ac_config_commands="$ac_config_commands Makefile" 18083 18084 18085 ac_config_commands="$ac_config_commands Makefile.common" 18086 18087 18088 ac_config_commands="$ac_config_commands examples/Makefile" 18089 18090 18091 ac_config_commands="$ac_config_commands lib/Makefile" 18092 18093 18094 ac_config_commands="$ac_config_commands test/Makefile" 18095 18096 18097 ac_config_commands="$ac_config_commands test/Makefile.tests" 18098 18099 18100 ac_config_commands="$ac_config_commands unittests/Makefile" 18101 18102 18103 ac_config_commands="$ac_config_commands tools/Makefile" 18104 18105 18106 ac_config_commands="$ac_config_commands utils/Makefile" 18107 18108 18109 ac_config_commands="$ac_config_commands projects/Makefile" 18110 18111 18112 ac_config_commands="$ac_config_commands bindings/Makefile" 18113 18114 18115 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 18116 18117 18118 18119 cat >confcache <<\_ACEOF 18120 # This file is a shell script that caches the results of configure 18121 # tests run on this system so they can be shared between configure 18122 # scripts and configure runs, see configure's option --config-cache. 18123 # It is not useful on other systems. If it contains results you don't 18124 # want to keep, you may remove or edit it. 18125 # 18126 # config.status only pays attention to the cache file if you give it 18127 # the --recheck option to rerun configure. 18128 # 18129 # `ac_cv_env_foo' variables (set or unset) will be overridden when 18130 # loading this file, other *unset* `ac_cv_foo' will be assigned the 18131 # following values. 18132 18133 _ACEOF 18134 18135 # The following way of writing the cache mishandles newlines in values, 18136 # but we know of no workaround that is simple, portable, and efficient. 18137 # So, we kill variables containing newlines. 18138 # Ultrix sh set writes to stderr and can't be redirected directly, 18139 # and sets the high bit in the cache file unless we assign to the vars. 18140 ( 18141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18142 eval ac_val=\$$ac_var 18143 case $ac_val in #( 18144 *${as_nl}*) 18145 case $ac_var in #( 18146 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 18147 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 18148 esac 18149 case $ac_var in #( 18150 _ | IFS | as_nl) ;; #( 18151 *) $as_unset $ac_var ;; 18152 esac ;; 18153 esac 18154 done 18155 18156 (set) 2>&1 | 18157 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18158 *${as_nl}ac_space=\ *) 18159 # `set' does not quote correctly, so add quotes (double-quote 18160 # substitution turns \\\\ into \\, and sed turns \\ into \). 18161 sed -n \ 18162 "s/'/'\\\\''/g; 18163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18164 ;; #( 18165 *) 18166 # `set' quotes correctly as required by POSIX, so do not add quotes. 18167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18168 ;; 18169 esac | 18170 sort 18171 ) | 18172 sed ' 18173 /^ac_cv_env_/b end 18174 t clear 18175 :clear 18176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18177 t end 18178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18179 :end' >>confcache 18180 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18181 if test -w "$cache_file"; then 18182 test "x$cache_file" != "x/dev/null" && 18183 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 18184 echo "$as_me: updating cache $cache_file" >&6;} 18185 cat confcache >$cache_file 18186 else 18187 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 18188 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18189 fi 18190 fi 18191 rm -f confcache 18192 18193 test "x$prefix" = xNONE && prefix=$ac_default_prefix 18194 # Let make expand exec_prefix. 18195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18196 18197 DEFS=-DHAVE_CONFIG_H 18198 18199 ac_libobjs= 18200 ac_ltlibobjs= 18201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18202 # 1. Remove the extension, and $U if already installed. 18203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18204 ac_i=`echo "$ac_i" | sed "$ac_script"` 18205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18206 # will be set to the directory where LIBOBJS objects are built. 18207 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18208 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 18209 done 18210 LIBOBJS=$ac_libobjs 18211 18212 LTLIBOBJS=$ac_ltlibobjs 18213 18214 18215 18216 : ${CONFIG_STATUS=./config.status} 18217 ac_clean_files_save=$ac_clean_files 18218 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18219 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 18220 echo "$as_me: creating $CONFIG_STATUS" >&6;} 18221 cat >$CONFIG_STATUS <<_ACEOF 18222 #! $SHELL 18223 # Generated by $as_me. 18224 # Run this file to recreate the current configuration. 18225 # Compiler output produced by configure, useful for debugging 18226 # configure, is in config.log if it exists. 18227 18228 debug=false 18229 ac_cs_recheck=false 18230 ac_cs_silent=false 18231 SHELL=\${CONFIG_SHELL-$SHELL} 18232 _ACEOF 18233 18234 cat >>$CONFIG_STATUS <<\_ACEOF 18235 ## --------------------- ## 18236 ## M4sh Initialization. ## 18237 ## --------------------- ## 18238 18239 # Be Bourne compatible 18240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18241 emulate sh 18242 NULLCMD=: 18243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18244 # is contrary to our usage. Disable this feature. 18245 alias -g '${1+"$@"}'='"$@"' 18246 setopt NO_GLOB_SUBST 18247 else 18248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 18249 fi 18250 BIN_SH=xpg4; export BIN_SH # for Tru64 18251 DUALCASE=1; export DUALCASE # for MKS sh 18252 18253 18254 # PATH needs CR 18255 # Avoid depending upon Character Ranges. 18256 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18259 as_cr_digits='0123456789' 18260 as_cr_alnum=$as_cr_Letters$as_cr_digits 18261 18262 # The user is always right. 18263 if test "${PATH_SEPARATOR+set}" != set; then 18264 echo "#! /bin/sh" >conf$$.sh 18265 echo "exit 0" >>conf$$.sh 18266 chmod +x conf$$.sh 18267 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18268 PATH_SEPARATOR=';' 18269 else 18270 PATH_SEPARATOR=: 18271 fi 18272 rm -f conf$$.sh 18273 fi 18274 18275 # Support unset when possible. 18276 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 18277 as_unset=unset 18278 else 18279 as_unset=false 18280 fi 18281 18282 18283 # IFS 18284 # We need space, tab and new line, in precisely that order. Quoting is 18285 # there to prevent editors from complaining about space-tab. 18286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 18287 # splitting by setting IFS to empty value.) 18288 as_nl=' 18289 ' 18290 IFS=" "" $as_nl" 18291 18292 # Find who we are. Look in the path if we contain no directory separator. 18293 case $0 in 18294 *[\\/]* ) as_myself=$0 ;; 18295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18296 for as_dir in $PATH 18297 do 18298 IFS=$as_save_IFS 18299 test -z "$as_dir" && as_dir=. 18300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18301 done 18302 IFS=$as_save_IFS 18303 18304 ;; 18305 esac 18306 # We did not find ourselves, most probably we were run as `sh COMMAND' 18307 # in which case we are not to be found in the path. 18308 if test "x$as_myself" = x; then 18309 as_myself=$0 18310 fi 18311 if test ! -f "$as_myself"; then 18312 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18313 { (exit 1); exit 1; } 18314 fi 18315 18316 # Work around bugs in pre-3.0 UWIN ksh. 18317 for as_var in ENV MAIL MAILPATH 18318 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 18319 done 18320 PS1='$ ' 18321 PS2='> ' 18322 PS4='+ ' 18323 18324 # NLS nuisances. 18325 for as_var in \ 18326 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 18327 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 18328 LC_TELEPHONE LC_TIME 18329 do 18330 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 18331 eval $as_var=C; export $as_var 18332 else 18333 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 18334 fi 18335 done 18336 18337 # Required to use basename. 18338 if expr a : '\(a\)' >/dev/null 2>&1 && 18339 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18340 as_expr=expr 18341 else 18342 as_expr=false 18343 fi 18344 18345 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18346 as_basename=basename 18347 else 18348 as_basename=false 18349 fi 18350 18351 18352 # Name of the executable. 18353 as_me=`$as_basename -- "$0" || 18354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18355 X"$0" : 'X\(//\)$' \| \ 18356 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18357 echo X/"$0" | 18358 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18359 s//\1/ 18360 q 18361 } 18362 /^X\/\(\/\/\)$/{ 18363 s//\1/ 18364 q 18365 } 18366 /^X\/\(\/\).*/{ 18367 s//\1/ 18368 q 18369 } 18370 s/.*/./; q'` 18371 18372 # CDPATH. 18373 $as_unset CDPATH 18374 18375 18376 18377 as_lineno_1=$LINENO 18378 as_lineno_2=$LINENO 18379 test "x$as_lineno_1" != "x$as_lineno_2" && 18380 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 18381 18382 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 18383 # uniformly replaced by the line number. The first 'sed' inserts a 18384 # line-number line after each line using $LINENO; the second 'sed' 18385 # does the real work. The second script uses 'N' to pair each 18386 # line-number line with the line containing $LINENO, and appends 18387 # trailing '-' during substitution so that $LINENO is not a special 18388 # case at line end. 18389 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 18390 # scripts with optimization help from Paolo Bonzini. Blame Lee 18391 # E. McMahon (1931-1989) for sed's syntax. :-) 18392 sed -n ' 18393 p 18394 /[$]LINENO/= 18395 ' <$as_myself | 18396 sed ' 18397 s/[$]LINENO.*/&-/ 18398 t lineno 18399 b 18400 :lineno 18401 N 18402 :loop 18403 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 18404 t loop 18405 s/-\n.*// 18406 ' >$as_me.lineno && 18407 chmod +x "$as_me.lineno" || 18408 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 18409 { (exit 1); exit 1; }; } 18410 18411 # Don't try to exec as it changes $[0], causing all sort of problems 18412 # (the dirname of $[0] is not the place where we might find the 18413 # original and so on. Autoconf is especially sensitive to this). 18414 . "./$as_me.lineno" 18415 # Exit status is that of the last command. 18416 exit 18417 } 18418 18419 18420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18421 as_dirname=dirname 18422 else 18423 as_dirname=false 18424 fi 18425 18426 ECHO_C= ECHO_N= ECHO_T= 18427 case `echo -n x` in 18428 -n*) 18429 case `echo 'x\c'` in 18430 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18431 *) ECHO_C='\c';; 18432 esac;; 18433 *) 18434 ECHO_N='-n';; 18435 esac 18436 18437 if expr a : '\(a\)' >/dev/null 2>&1 && 18438 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18439 as_expr=expr 18440 else 18441 as_expr=false 18442 fi 18443 18444 rm -f conf$$ conf$$.exe conf$$.file 18445 if test -d conf$$.dir; then 18446 rm -f conf$$.dir/conf$$.file 18447 else 18448 rm -f conf$$.dir 18449 mkdir conf$$.dir 18450 fi 18451 echo >conf$$.file 18452 if ln -s conf$$.file conf$$ 2>/dev/null; then 18453 as_ln_s='ln -s' 18454 # ... but there are two gotchas: 18455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18457 # In both cases, we have to default to `cp -p'. 18458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18459 as_ln_s='cp -p' 18460 elif ln conf$$.file conf$$ 2>/dev/null; then 18461 as_ln_s=ln 18462 else 18463 as_ln_s='cp -p' 18464 fi 18465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18466 rmdir conf$$.dir 2>/dev/null 18467 18468 if mkdir -p . 2>/dev/null; then 18469 as_mkdir_p=: 18470 else 18471 test -d ./-p && rmdir ./-p 18472 as_mkdir_p=false 18473 fi 18474 18475 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 18476 # systems may use methods other than mode bits to determine executability. 18477 cat >conf$$.file <<_ASEOF 18478 #! /bin/sh 18479 exit 0 18480 _ASEOF 18481 chmod +x conf$$.file 18482 if test -x conf$$.file >/dev/null 2>&1; then 18483 as_executable_p="test -x" 18484 else 18485 as_executable_p=: 18486 fi 18487 rm -f conf$$.file 18488 18489 # Sed expression to map a string onto a valid CPP name. 18490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18491 18492 # Sed expression to map a string onto a valid variable name. 18493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18494 18495 18496 exec 6>&1 18497 18498 # Save the log message, to keep $[0] and so on meaningful, and to 18499 # report actual input values of CONFIG_FILES etc. instead of their 18500 # values after options handling. 18501 ac_log=" 18502 This file was extended by LLVM $as_me 3.7.0svn, which was 18503 generated by GNU Autoconf 2.60. Invocation command line was 18504 18505 CONFIG_FILES = $CONFIG_FILES 18506 CONFIG_HEADERS = $CONFIG_HEADERS 18507 CONFIG_LINKS = $CONFIG_LINKS 18508 CONFIG_COMMANDS = $CONFIG_COMMANDS 18509 $ $0 $@ 18510 18511 on `(hostname || uname -n) 2>/dev/null | sed 1q` 18512 " 18513 18514 _ACEOF 18515 18516 cat >>$CONFIG_STATUS <<_ACEOF 18517 # Files that config.status was made for. 18518 config_files="$ac_config_files" 18519 config_headers="$ac_config_headers" 18520 config_commands="$ac_config_commands" 18521 18522 _ACEOF 18523 18524 cat >>$CONFIG_STATUS <<\_ACEOF 18525 ac_cs_usage="\ 18526 \`$as_me' instantiates files from templates according to the 18527 current configuration. 18528 18529 Usage: $0 [OPTIONS] [FILE]... 18530 18531 -h, --help print this help, then exit 18532 -V, --version print version number, then exit 18533 -q, --quiet do not print progress messages 18534 -d, --debug don't remove temporary files 18535 --recheck update $as_me by reconfiguring in the same conditions 18536 --file=FILE[:TEMPLATE] 18537 instantiate the configuration file FILE 18538 --header=FILE[:TEMPLATE] 18539 instantiate the configuration header FILE 18540 18541 Configuration files: 18542 $config_files 18543 18544 Configuration headers: 18545 $config_headers 18546 18547 Configuration commands: 18548 $config_commands 18549 18550 Report bugs to <bug-autoconf@gnu.org>." 18551 18552 _ACEOF 18553 cat >>$CONFIG_STATUS <<_ACEOF 18554 ac_cs_version="\\ 18555 LLVM config.status 3.7.0svn 18556 configured by $0, generated by GNU Autoconf 2.60, 18557 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 18558 18559 Copyright (C) 2006 Free Software Foundation, Inc. 18560 This config.status script is free software; the Free Software Foundation 18561 gives unlimited permission to copy, distribute and modify it." 18562 18563 ac_pwd='$ac_pwd' 18564 srcdir='$srcdir' 18565 INSTALL='$INSTALL' 18566 _ACEOF 18567 18568 cat >>$CONFIG_STATUS <<\_ACEOF 18569 # If no file are specified by the user, then we need to provide default 18570 # value. By we need to know if files were specified by the user. 18571 ac_need_defaults=: 18572 while test $# != 0 18573 do 18574 case $1 in 18575 --*=*) 18576 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18578 ac_shift=: 18579 ;; 18580 *) 18581 ac_option=$1 18582 ac_optarg=$2 18583 ac_shift=shift 18584 ;; 18585 esac 18586 18587 case $ac_option in 18588 # Handling of the options. 18589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18590 ac_cs_recheck=: ;; 18591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18592 echo "$ac_cs_version"; exit ;; 18593 --debug | --debu | --deb | --de | --d | -d ) 18594 debug=: ;; 18595 --file | --fil | --fi | --f ) 18596 $ac_shift 18597 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 18598 ac_need_defaults=false;; 18599 --header | --heade | --head | --hea ) 18600 $ac_shift 18601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 18602 ac_need_defaults=false;; 18603 --he | --h) 18604 # Conflict between --help and --header 18605 { echo "$as_me: error: ambiguous option: $1 18606 Try \`$0 --help' for more information." >&2 18607 { (exit 1); exit 1; }; };; 18608 --help | --hel | -h ) 18609 echo "$ac_cs_usage"; exit ;; 18610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18611 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18612 ac_cs_silent=: ;; 18613 18614 # This is an error. 18615 -*) { echo "$as_me: error: unrecognized option: $1 18616 Try \`$0 --help' for more information." >&2 18617 { (exit 1); exit 1; }; } ;; 18618 18619 *) ac_config_targets="$ac_config_targets $1" 18620 ac_need_defaults=false ;; 18621 18622 esac 18623 shift 18624 done 18625 18626 ac_configure_extra_args= 18627 18628 if $ac_cs_silent; then 18629 exec 6>/dev/null 18630 ac_configure_extra_args="$ac_configure_extra_args --silent" 18631 fi 18632 18633 _ACEOF 18634 cat >>$CONFIG_STATUS <<_ACEOF 18635 if \$ac_cs_recheck; then 18636 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 18637 CONFIG_SHELL=$SHELL 18638 export CONFIG_SHELL 18639 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18640 fi 18641 18642 _ACEOF 18643 cat >>$CONFIG_STATUS <<\_ACEOF 18644 exec 5>>config.log 18645 { 18646 echo 18647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18648 ## Running $as_me. ## 18649 _ASBOX 18650 echo "$ac_log" 18651 } >&5 18652 18653 _ACEOF 18654 cat >>$CONFIG_STATUS <<_ACEOF 18655 # 18656 # INIT-COMMANDS 18657 # 18658 llvm_src="${srcdir}" 18659 18660 _ACEOF 18661 18662 cat >>$CONFIG_STATUS <<\_ACEOF 18663 18664 # Handling of arguments. 18665 for ac_config_target in $ac_config_targets 18666 do 18667 case $ac_config_target in 18668 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 18669 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 18670 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 18671 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 18672 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 18673 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 18674 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 18675 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 18676 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 18677 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 18678 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 18679 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 18680 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 18681 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 18682 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 18683 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 18684 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 18685 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 18686 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 18687 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 18688 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 18689 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 18690 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 18691 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 18692 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 18693 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 18694 18695 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 18696 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 18697 { (exit 1); exit 1; }; };; 18698 esac 18699 done 18700 18701 18702 # If the user did not use the arguments to specify the items to instantiate, 18703 # then the envvar interface is used. Set only those that are not. 18704 # We use the long form for the default assignment because of an extremely 18705 # bizarre bug on SunOS 4.1.3. 18706 if $ac_need_defaults; then 18707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18708 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18709 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18710 fi 18711 18712 # Have a temporary directory for convenience. Make it in the build tree 18713 # simply because there is no reason against having it here, and in addition, 18714 # creating and moving files from /tmp can sometimes cause problems. 18715 # Hook for its removal unless debugging. 18716 # Note that there is a small window in which the directory will not be cleaned: 18717 # after its creation but before its name has been assigned to `$tmp'. 18718 $debug || 18719 { 18720 tmp= 18721 trap 'exit_status=$? 18722 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18723 ' 0 18724 trap '{ (exit 1); exit 1; }' 1 2 13 15 18725 } 18726 # Create a (secure) tmp directory for tmp files. 18727 18728 { 18729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18730 test -n "$tmp" && test -d "$tmp" 18731 } || 18732 { 18733 tmp=./conf$$-$RANDOM 18734 (umask 077 && mkdir "$tmp") 18735 } || 18736 { 18737 echo "$me: cannot create a temporary directory in ." >&2 18738 { (exit 1); exit 1; } 18739 } 18740 18741 # 18742 # Set up the sed scripts for CONFIG_FILES section. 18743 # 18744 18745 # No need to generate the scripts if there are no CONFIG_FILES. 18746 # This happens for instance when ./config.status config.h 18747 if test -n "$CONFIG_FILES"; then 18748 18749 _ACEOF 18750 18751 18752 18753 ac_delim='%!_!# ' 18754 for ac_last_try in false false false false false :; do 18755 cat >conf$$subs.sed <<_ACEOF 18756 SHELL!$SHELL$ac_delim 18757 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 18758 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 18759 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 18760 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 18761 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 18762 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 18763 exec_prefix!$exec_prefix$ac_delim 18764 prefix!$prefix$ac_delim 18765 program_transform_name!$program_transform_name$ac_delim 18766 bindir!$bindir$ac_delim 18767 sbindir!$sbindir$ac_delim 18768 libexecdir!$libexecdir$ac_delim 18769 datarootdir!$datarootdir$ac_delim 18770 datadir!$datadir$ac_delim 18771 sysconfdir!$sysconfdir$ac_delim 18772 sharedstatedir!$sharedstatedir$ac_delim 18773 localstatedir!$localstatedir$ac_delim 18774 includedir!$includedir$ac_delim 18775 oldincludedir!$oldincludedir$ac_delim 18776 docdir!$docdir$ac_delim 18777 infodir!$infodir$ac_delim 18778 htmldir!$htmldir$ac_delim 18779 dvidir!$dvidir$ac_delim 18780 pdfdir!$pdfdir$ac_delim 18781 psdir!$psdir$ac_delim 18782 libdir!$libdir$ac_delim 18783 localedir!$localedir$ac_delim 18784 mandir!$mandir$ac_delim 18785 DEFS!$DEFS$ac_delim 18786 ECHO_C!$ECHO_C$ac_delim 18787 ECHO_N!$ECHO_N$ac_delim 18788 ECHO_T!$ECHO_T$ac_delim 18789 LIBS!$LIBS$ac_delim 18790 build_alias!$build_alias$ac_delim 18791 host_alias!$host_alias$ac_delim 18792 target_alias!$target_alias$ac_delim 18793 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim 18794 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim 18795 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim 18796 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim 18797 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 18798 CC!$CC$ac_delim 18799 CFLAGS!$CFLAGS$ac_delim 18800 LDFLAGS!$LDFLAGS$ac_delim 18801 CPPFLAGS!$CPPFLAGS$ac_delim 18802 ac_ct_CC!$ac_ct_CC$ac_delim 18803 EXEEXT!$EXEEXT$ac_delim 18804 OBJEXT!$OBJEXT$ac_delim 18805 CXX!$CXX$ac_delim 18806 CXXFLAGS!$CXXFLAGS$ac_delim 18807 ac_ct_CXX!$ac_ct_CXX$ac_delim 18808 CPP!$CPP$ac_delim 18809 subdirs!$subdirs$ac_delim 18810 ENABLE_POLLY!$ENABLE_POLLY$ac_delim 18811 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 18812 build!$build$ac_delim 18813 build_cpu!$build_cpu$ac_delim 18814 build_vendor!$build_vendor$ac_delim 18815 build_os!$build_os$ac_delim 18816 host!$host$ac_delim 18817 host_cpu!$host_cpu$ac_delim 18818 host_vendor!$host_vendor$ac_delim 18819 host_os!$host_os$ac_delim 18820 target!$target$ac_delim 18821 target_cpu!$target_cpu$ac_delim 18822 target_vendor!$target_vendor$ac_delim 18823 target_os!$target_os$ac_delim 18824 OS!$OS$ac_delim 18825 HOST_OS!$HOST_OS$ac_delim 18826 TARGET_OS!$TARGET_OS$ac_delim 18827 LINKALL!$LINKALL$ac_delim 18828 NOLINKALL!$NOLINKALL$ac_delim 18829 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 18830 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 18831 ARCH!$ARCH$ac_delim 18832 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim 18833 HOST_ARCH!$HOST_ARCH$ac_delim 18834 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 18835 BUILD_CC!$BUILD_CC$ac_delim 18836 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 18837 BUILD_CXX!$BUILD_CXX$ac_delim 18838 CVSBUILD!$CVSBUILD$ac_delim 18839 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 18840 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim 18841 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim 18842 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim 18843 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim 18844 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim 18845 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 18846 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 18847 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 18848 ENABLE_WERROR!$ENABLE_WERROR$ac_delim 18849 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 18850 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 18851 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim 18852 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 18853 _ACEOF 18854 18855 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 18856 break 18857 elif $ac_last_try; then 18858 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18859 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18860 { (exit 1); exit 1; }; } 18861 else 18862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18863 fi 18864 done 18865 18866 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 18867 if test -n "$ac_eof"; then 18868 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 18869 ac_eof=`expr $ac_eof + 1` 18870 fi 18871 18872 cat >>$CONFIG_STATUS <<_ACEOF 18873 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 18874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18875 _ACEOF 18876 sed ' 18877 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 18878 s/^/s,@/; s/!/@,|#_!!_#|/ 18879 :n 18880 t n 18881 s/'"$ac_delim"'$/,g/; t 18882 s/$/\\/; p 18883 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 18884 ' >>$CONFIG_STATUS <conf$$subs.sed 18885 rm -f conf$$subs.sed 18886 cat >>$CONFIG_STATUS <<_ACEOF 18887 CEOF$ac_eof 18888 _ACEOF 18889 18890 18891 ac_delim='%!_!# ' 18892 for ac_last_try in false false false false false :; do 18893 cat >conf$$subs.sed <<_ACEOF 18894 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 18895 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim 18896 JIT!$JIT$ac_delim 18897 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 18898 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim 18899 ENABLE_DOCS!$ENABLE_DOCS$ac_delim 18900 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 18901 enable_searchengine!$enable_searchengine$ac_delim 18902 enable_external_search!$enable_external_search$ac_delim 18903 enable_server_based_search!$enable_server_based_search$ac_delim 18904 searchengine_url!$searchengine_url$ac_delim 18905 extra_search_mappings!$extra_search_mappings$ac_delim 18906 QHELPGENERATOR!$QHELPGENERATOR$ac_delim 18907 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim 18908 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim 18909 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim 18910 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim 18911 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim 18912 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim 18913 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim 18914 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim 18915 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim 18916 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim 18917 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim 18918 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim 18919 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 18920 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 18921 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim 18922 ENABLE_PIC!$ENABLE_PIC$ac_delim 18923 ENABLE_SHARED!$ENABLE_SHARED$ac_delim 18924 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 18925 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 18926 ALL_TARGETS!$ALL_TARGETS$ac_delim 18927 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 18928 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 18929 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 18930 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 18931 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 18932 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 18933 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 18934 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 18935 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 18936 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 18937 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim 18938 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 18939 ifGNUmake!$ifGNUmake$ac_delim 18940 LN_S!$LN_S$ac_delim 18941 NM!$NM$ac_delim 18942 CMP!$CMP$ac_delim 18943 CP!$CP$ac_delim 18944 DATE!$DATE$ac_delim 18945 FIND!$FIND$ac_delim 18946 GREP!$GREP$ac_delim 18947 MKDIR!$MKDIR$ac_delim 18948 MV!$MV$ac_delim 18949 RANLIB!$RANLIB$ac_delim 18950 AR!$AR$ac_delim 18951 RM!$RM$ac_delim 18952 SED!$SED$ac_delim 18953 TAR!$TAR$ac_delim 18954 BINPWD!$BINPWD$ac_delim 18955 DOT!$DOT$ac_delim 18956 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 18957 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 18958 INSTALL_DATA!$INSTALL_DATA$ac_delim 18959 BZIP2!$BZIP2$ac_delim 18960 CAT!$CAT$ac_delim 18961 DOXYGEN!$DOXYGEN$ac_delim 18962 GROFF!$GROFF$ac_delim 18963 GZIPBIN!$GZIPBIN$ac_delim 18964 PDFROFF!$PDFROFF$ac_delim 18965 ZIP!$ZIP$ac_delim 18966 GO!$GO$ac_delim 18967 OCAMLFIND!$OCAMLFIND$ac_delim 18968 GAS!$GAS$ac_delim 18969 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 18970 EGREP!$EGREP$ac_delim 18971 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 18972 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 18973 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 18974 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim 18975 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim 18976 NO_COMMENT!$NO_COMMENT$ac_delim 18977 PYTHON!$PYTHON$ac_delim 18978 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim 18979 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim 18980 USE_OPROFILE!$USE_OPROFILE$ac_delim 18981 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 18982 XML2CONFIG!$XML2CONFIG$ac_delim 18983 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 18984 LIBXML2_INC!$LIBXML2_INC$ac_delim 18985 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 18986 HAVE_LIBZ!$HAVE_LIBZ$ac_delim 18987 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 18988 MMAP_FILE!$MMAP_FILE$ac_delim 18989 SHLIBEXT!$SHLIBEXT$ac_delim 18990 LLVM_PREFIX!$LLVM_PREFIX$ac_delim 18991 _ACEOF 18992 18993 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 18994 break 18995 elif $ac_last_try; then 18996 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18998 { (exit 1); exit 1; }; } 18999 else 19000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19001 fi 19002 done 19003 19004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 19005 if test -n "$ac_eof"; then 19006 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 19007 ac_eof=`expr $ac_eof + 1` 19008 fi 19009 19010 cat >>$CONFIG_STATUS <<_ACEOF 19011 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 19012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19013 _ACEOF 19014 sed ' 19015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 19016 s/^/s,@/; s/!/@,|#_!!_#|/ 19017 :n 19018 t n 19019 s/'"$ac_delim"'$/,g/; t 19020 s/$/\\/; p 19021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 19022 ' >>$CONFIG_STATUS <conf$$subs.sed 19023 rm -f conf$$subs.sed 19024 cat >>$CONFIG_STATUS <<_ACEOF 19025 CEOF$ac_eof 19026 _ACEOF 19027 19028 19029 ac_delim='%!_!# ' 19030 for ac_last_try in false false false false false :; do 19031 cat >conf$$subs.sed <<_ACEOF 19032 LLVM_BINDIR!$LLVM_BINDIR$ac_delim 19033 LLVM_DATADIR!$LLVM_DATADIR$ac_delim 19034 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 19035 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 19036 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 19037 LLVM_INFODIR!$LLVM_INFODIR$ac_delim 19038 LLVM_MANDIR!$LLVM_MANDIR$ac_delim 19039 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 19040 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 19041 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim 19042 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim 19043 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 19044 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 19045 RPATH!$RPATH$ac_delim 19046 RDYNAMIC!$RDYNAMIC$ac_delim 19047 program_prefix!$program_prefix$ac_delim 19048 LIBOBJS!$LIBOBJS$ac_delim 19049 LTLIBOBJS!$LTLIBOBJS$ac_delim 19050 _ACEOF 19051 19052 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then 19053 break 19054 elif $ac_last_try; then 19055 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 19056 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 19057 { (exit 1); exit 1; }; } 19058 else 19059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19060 fi 19061 done 19062 19063 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 19064 if test -n "$ac_eof"; then 19065 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 19066 ac_eof=`expr $ac_eof + 1` 19067 fi 19068 19069 cat >>$CONFIG_STATUS <<_ACEOF 19070 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 19071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 19072 _ACEOF 19073 sed ' 19074 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 19075 s/^/s,@/; s/!/@,|#_!!_#|/ 19076 :n 19077 t n 19078 s/'"$ac_delim"'$/,g/; t 19079 s/$/\\/; p 19080 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 19081 ' >>$CONFIG_STATUS <conf$$subs.sed 19082 rm -f conf$$subs.sed 19083 cat >>$CONFIG_STATUS <<_ACEOF 19084 :end 19085 s/|#_!!_#|//g 19086 CEOF$ac_eof 19087 _ACEOF 19088 19089 19090 # VPATH may cause trouble with some makes, so we remove $(srcdir), 19091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19092 # trailing colons and then remove the whole line if VPATH becomes empty 19093 # (actually we leave an empty line to preserve line numbers). 19094 if test "x$srcdir" = x.; then 19095 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19096 s/:*\$(srcdir):*/:/ 19097 s/:*\${srcdir}:*/:/ 19098 s/:*@srcdir@:*/:/ 19099 s/^\([^=]*=[ ]*\):*/\1/ 19100 s/:*$// 19101 s/^[^=]*=[ ]*$// 19102 }' 19103 fi 19104 19105 cat >>$CONFIG_STATUS <<\_ACEOF 19106 fi # test -n "$CONFIG_FILES" 19107 19108 19109 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 19110 do 19111 case $ac_tag in 19112 :[FHLC]) ac_mode=$ac_tag; continue;; 19113 esac 19114 case $ac_mode$ac_tag in 19115 :[FHL]*:*);; 19116 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 19117 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 19118 { (exit 1); exit 1; }; };; 19119 :[FH]-) ac_tag=-:-;; 19120 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19121 esac 19122 ac_save_IFS=$IFS 19123 IFS=: 19124 set x $ac_tag 19125 IFS=$ac_save_IFS 19126 shift 19127 ac_file=$1 19128 shift 19129 19130 case $ac_mode in 19131 :L) ac_source=$1;; 19132 :[FH]) 19133 ac_file_inputs= 19134 for ac_f 19135 do 19136 case $ac_f in 19137 -) ac_f="$tmp/stdin";; 19138 *) # Look for the file first in the build tree, then in the source tree 19139 # (if the path is not absolute). The absolute path cannot be DOS-style, 19140 # because $ac_f cannot contain `:'. 19141 test -f "$ac_f" || 19142 case $ac_f in 19143 [\\/$]*) false;; 19144 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19145 esac || 19146 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 19147 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 19148 { (exit 1); exit 1; }; };; 19149 esac 19150 ac_file_inputs="$ac_file_inputs $ac_f" 19151 done 19152 19153 # Let's still pretend it is `configure' which instantiates (i.e., don't 19154 # use $as_me), people would be surprised to read: 19155 # /* config.h. Generated by config.status. */ 19156 configure_input="Generated from "`IFS=: 19157 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 19158 if test x"$ac_file" != x-; then 19159 configure_input="$ac_file. $configure_input" 19160 { echo "$as_me:$LINENO: creating $ac_file" >&5 19161 echo "$as_me: creating $ac_file" >&6;} 19162 fi 19163 19164 case $ac_tag in 19165 *:-:* | *:-) cat >"$tmp/stdin";; 19166 esac 19167 ;; 19168 esac 19169 19170 ac_dir=`$as_dirname -- "$ac_file" || 19171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19172 X"$ac_file" : 'X\(//\)[^/]' \| \ 19173 X"$ac_file" : 'X\(//\)$' \| \ 19174 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19175 echo X"$ac_file" | 19176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19177 s//\1/ 19178 q 19179 } 19180 /^X\(\/\/\)[^/].*/{ 19181 s//\1/ 19182 q 19183 } 19184 /^X\(\/\/\)$/{ 19185 s//\1/ 19186 q 19187 } 19188 /^X\(\/\).*/{ 19189 s//\1/ 19190 q 19191 } 19192 s/.*/./; q'` 19193 { as_dir="$ac_dir" 19194 case $as_dir in #( 19195 -*) as_dir=./$as_dir;; 19196 esac 19197 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 19198 as_dirs= 19199 while :; do 19200 case $as_dir in #( 19201 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 19202 *) as_qdir=$as_dir;; 19203 esac 19204 as_dirs="'$as_qdir' $as_dirs" 19205 as_dir=`$as_dirname -- "$as_dir" || 19206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19207 X"$as_dir" : 'X\(//\)[^/]' \| \ 19208 X"$as_dir" : 'X\(//\)$' \| \ 19209 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19210 echo X"$as_dir" | 19211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19212 s//\1/ 19213 q 19214 } 19215 /^X\(\/\/\)[^/].*/{ 19216 s//\1/ 19217 q 19218 } 19219 /^X\(\/\/\)$/{ 19220 s//\1/ 19221 q 19222 } 19223 /^X\(\/\).*/{ 19224 s//\1/ 19225 q 19226 } 19227 s/.*/./; q'` 19228 test -d "$as_dir" && break 19229 done 19230 test -z "$as_dirs" || eval "mkdir $as_dirs" 19231 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 19232 echo "$as_me: error: cannot create directory $as_dir" >&2;} 19233 { (exit 1); exit 1; }; }; } 19234 ac_builddir=. 19235 19236 case "$ac_dir" in 19237 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19238 *) 19239 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19240 # A ".." for each directory in $ac_dir_suffix. 19241 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 19242 case $ac_top_builddir_sub in 19243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19245 esac ;; 19246 esac 19247 ac_abs_top_builddir=$ac_pwd 19248 ac_abs_builddir=$ac_pwd$ac_dir_suffix 19249 # for backward compatibility: 19250 ac_top_builddir=$ac_top_build_prefix 19251 19252 case $srcdir in 19253 .) # We are building in place. 19254 ac_srcdir=. 19255 ac_top_srcdir=$ac_top_builddir_sub 19256 ac_abs_top_srcdir=$ac_pwd ;; 19257 [\\/]* | ?:[\\/]* ) # Absolute name. 19258 ac_srcdir=$srcdir$ac_dir_suffix; 19259 ac_top_srcdir=$srcdir 19260 ac_abs_top_srcdir=$srcdir ;; 19261 *) # Relative name. 19262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19263 ac_top_srcdir=$ac_top_build_prefix$srcdir 19264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19265 esac 19266 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19267 19268 19269 case $ac_mode in 19270 :F) 19271 # 19272 # CONFIG_FILE 19273 # 19274 19275 case $INSTALL in 19276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19278 esac 19279 _ACEOF 19280 19281 cat >>$CONFIG_STATUS <<\_ACEOF 19282 # If the template does not know about datarootdir, expand it. 19283 # FIXME: This hack should be removed a few years after 2.60. 19284 ac_datarootdir_hack=; ac_datarootdir_seen= 19285 19286 case `sed -n '/datarootdir/ { 19287 p 19288 q 19289 } 19290 /@datadir@/p 19291 /@docdir@/p 19292 /@infodir@/p 19293 /@localedir@/p 19294 /@mandir@/p 19295 ' $ac_file_inputs` in 19296 *datarootdir*) ac_datarootdir_seen=yes;; 19297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19298 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19299 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19300 _ACEOF 19301 cat >>$CONFIG_STATUS <<_ACEOF 19302 ac_datarootdir_hack=' 19303 s&@datadir@&$datadir&g 19304 s&@docdir@&$docdir&g 19305 s&@infodir@&$infodir&g 19306 s&@localedir@&$localedir&g 19307 s&@mandir@&$mandir&g 19308 s&\\\${datarootdir}&$datarootdir&g' ;; 19309 esac 19310 _ACEOF 19311 19312 # Neutralize VPATH when `$srcdir' = `.'. 19313 # Shell code in configure.ac might set extrasub. 19314 # FIXME: do we really want to maintain this feature? 19315 cat >>$CONFIG_STATUS <<_ACEOF 19316 sed "$ac_vpsub 19317 $extrasub 19318 _ACEOF 19319 cat >>$CONFIG_STATUS <<\_ACEOF 19320 :t 19321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19322 s&@configure_input@&$configure_input&;t t 19323 s&@top_builddir@&$ac_top_builddir_sub&;t t 19324 s&@srcdir@&$ac_srcdir&;t t 19325 s&@abs_srcdir@&$ac_abs_srcdir&;t t 19326 s&@top_srcdir@&$ac_top_srcdir&;t t 19327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19328 s&@builddir@&$ac_builddir&;t t 19329 s&@abs_builddir@&$ac_abs_builddir&;t t 19330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19331 s&@INSTALL@&$ac_INSTALL&;t t 19332 $ac_datarootdir_hack 19333 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 19334 19335 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19336 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 19337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 19338 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19339 which seems to be undefined. Please make sure it is defined." >&5 19340 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19341 which seems to be undefined. Please make sure it is defined." >&2;} 19342 19343 rm -f "$tmp/stdin" 19344 case $ac_file in 19345 -) cat "$tmp/out"; rm -f "$tmp/out";; 19346 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 19347 esac 19348 ;; 19349 :H) 19350 # 19351 # CONFIG_HEADER 19352 # 19353 _ACEOF 19354 19355 # Transform confdefs.h into a sed script `conftest.defines', that 19356 # substitutes the proper values into config.h.in to produce config.h. 19357 rm -f conftest.defines conftest.tail 19358 # First, append a space to every undef/define line, to ease matching. 19359 echo 's/$/ /' >conftest.defines 19360 # Then, protect against being on the right side of a sed subst, or in 19361 # an unquoted here document, in config.status. If some macros were 19362 # called several times there might be several #defines for the same 19363 # symbol, which is useless. But do not sort them, since the last 19364 # AC_DEFINE must be honored. 19365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19366 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 19367 # NAME is the cpp macro being defined, VALUE is the value it is being given. 19368 # PARAMS is the parameter list in the macro definition--in most cases, it's 19369 # just an empty string. 19370 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 19371 ac_dB='\\)[ (].*,\\1define\\2' 19372 ac_dC=' ' 19373 ac_dD=' ,' 19374 19375 uniq confdefs.h | 19376 sed -n ' 19377 t rset 19378 :rset 19379 s/^[ ]*#[ ]*define[ ][ ]*// 19380 t ok 19381 d 19382 :ok 19383 s/[\\&,]/\\&/g 19384 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 19385 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 19386 ' >>conftest.defines 19387 19388 # Remove the space that was appended to ease matching. 19389 # Then replace #undef with comments. This is necessary, for 19390 # example, in the case of _POSIX_SOURCE, which is predefined and required 19391 # on some systems where configure will not decide to define it. 19392 # (The regexp can be short, since the line contains either #define or #undef.) 19393 echo 's/ $// 19394 s,^[ #]*u.*,/* & */,' >>conftest.defines 19395 19396 # Break up conftest.defines: 19397 ac_max_sed_lines=50 19398 19399 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 19400 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 19401 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 19402 # et cetera. 19403 ac_in='$ac_file_inputs' 19404 ac_out='"$tmp/out1"' 19405 ac_nxt='"$tmp/out2"' 19406 19407 while : 19408 do 19409 # Write a here document: 19410 cat >>$CONFIG_STATUS <<_ACEOF 19411 # First, check the format of the line: 19412 cat >"\$tmp/defines.sed" <<\\CEOF 19413 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 19414 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 19415 b 19416 :def 19417 _ACEOF 19418 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 19419 echo 'CEOF 19420 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 19421 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 19422 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 19423 grep . conftest.tail >/dev/null || break 19424 rm -f conftest.defines 19425 mv conftest.tail conftest.defines 19426 done 19427 rm -f conftest.defines conftest.tail 19428 19429 echo "ac_result=$ac_in" >>$CONFIG_STATUS 19430 cat >>$CONFIG_STATUS <<\_ACEOF 19431 if test x"$ac_file" != x-; then 19432 echo "/* $configure_input */" >"$tmp/config.h" 19433 cat "$ac_result" >>"$tmp/config.h" 19434 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 19435 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 19436 echo "$as_me: $ac_file is unchanged" >&6;} 19437 else 19438 rm -f $ac_file 19439 mv "$tmp/config.h" $ac_file 19440 fi 19441 else 19442 echo "/* $configure_input */" 19443 cat "$ac_result" 19444 fi 19445 rm -f "$tmp/out12" 19446 ;; 19447 19448 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 19449 echo "$as_me: executing $ac_file commands" >&6;} 19450 ;; 19451 esac 19452 19453 19454 case $ac_file$ac_mode in 19455 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 19456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 19457 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 19458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 19459 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 19460 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 19461 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 19462 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 19463 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 19464 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 19465 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 19466 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 19467 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 19468 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 19469 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 19470 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 19471 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 19472 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 19473 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 19474 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 19475 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 19476 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 19477 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 19478 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 19479 19480 esac 19481 done # for ac_tag 19482 19483 19484 { (exit 0); exit 0; } 19485 _ACEOF 19486 chmod +x $CONFIG_STATUS 19487 ac_clean_files=$ac_clean_files_save 19488 19489 19490 # configure is writing to config.log, and then calls config.status. 19491 # config.status does its own redirection, appending to config.log. 19492 # Unfortunately, on DOS this fails, as config.log is still kept open 19493 # by configure, so config.status won't be able to write to it; its 19494 # output is simply discarded. So we exec the FD to /dev/null, 19495 # effectively closing config.log, so it can be properly (re)opened and 19496 # appended to by config.status. When coming back to configure, we 19497 # need to make the FD available again. 19498 if test "$no_create" != yes; then 19499 ac_cs_success=: 19500 ac_config_status_args= 19501 test "$silent" = yes && 19502 ac_config_status_args="$ac_config_status_args --quiet" 19503 exec 5>/dev/null 19504 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19505 exec 5>>config.log 19506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19507 # would make configure fail if this is the last instruction. 19508 $ac_cs_success || { (exit 1); exit 1; } 19509 fi 19510 19511 # 19512 # CONFIG_SUBDIRS section. 19513 # 19514 if test "$no_recursion" != yes; then 19515 19516 # Remove --cache-file and --srcdir arguments so they do not pile up. 19517 ac_sub_configure_args= 19518 ac_prev= 19519 eval "set x $ac_configure_args" 19520 shift 19521 for ac_arg 19522 do 19523 if test -n "$ac_prev"; then 19524 ac_prev= 19525 continue 19526 fi 19527 case $ac_arg in 19528 -cache-file | --cache-file | --cache-fil | --cache-fi \ 19529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 19530 ac_prev=cache_file ;; 19531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 19532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 19533 | --c=*) 19534 ;; 19535 --config-cache | -C) 19536 ;; 19537 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 19538 ac_prev=srcdir ;; 19539 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 19540 ;; 19541 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 19542 ac_prev=prefix ;; 19543 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 19544 ;; 19545 *) 19546 case $ac_arg in 19547 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 19548 esac 19549 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 19550 esac 19551 done 19552 19553 # Always prepend --prefix to ensure using the same prefix 19554 # in subdir configurations. 19555 ac_arg="--prefix=$prefix" 19556 case $ac_arg in 19557 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 19558 esac 19559 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 19560 19561 ac_popdir=`pwd` 19562 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 19563 19564 # Do not complain, so a configure script can configure whichever 19565 # parts of a large source tree are present. 19566 test -d "$srcdir/$ac_dir" || continue 19567 19568 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 19569 echo "$as_me:$LINENO: $ac_msg" >&5 19570 echo "$ac_msg" >&6 19571 { as_dir="$ac_dir" 19572 case $as_dir in #( 19573 -*) as_dir=./$as_dir;; 19574 esac 19575 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 19576 as_dirs= 19577 while :; do 19578 case $as_dir in #( 19579 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 19580 *) as_qdir=$as_dir;; 19581 esac 19582 as_dirs="'$as_qdir' $as_dirs" 19583 as_dir=`$as_dirname -- "$as_dir" || 19584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19585 X"$as_dir" : 'X\(//\)[^/]' \| \ 19586 X"$as_dir" : 'X\(//\)$' \| \ 19587 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19588 echo X"$as_dir" | 19589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19590 s//\1/ 19591 q 19592 } 19593 /^X\(\/\/\)[^/].*/{ 19594 s//\1/ 19595 q 19596 } 19597 /^X\(\/\/\)$/{ 19598 s//\1/ 19599 q 19600 } 19601 /^X\(\/\).*/{ 19602 s//\1/ 19603 q 19604 } 19605 s/.*/./; q'` 19606 test -d "$as_dir" && break 19607 done 19608 test -z "$as_dirs" || eval "mkdir $as_dirs" 19609 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 19610 echo "$as_me: error: cannot create directory $as_dir" >&2;} 19611 { (exit 1); exit 1; }; }; } 19612 ac_builddir=. 19613 19614 case "$ac_dir" in 19615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19616 *) 19617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19618 # A ".." for each directory in $ac_dir_suffix. 19619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 19620 case $ac_top_builddir_sub in 19621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19623 esac ;; 19624 esac 19625 ac_abs_top_builddir=$ac_pwd 19626 ac_abs_builddir=$ac_pwd$ac_dir_suffix 19627 # for backward compatibility: 19628 ac_top_builddir=$ac_top_build_prefix 19629 19630 case $srcdir in 19631 .) # We are building in place. 19632 ac_srcdir=. 19633 ac_top_srcdir=$ac_top_builddir_sub 19634 ac_abs_top_srcdir=$ac_pwd ;; 19635 [\\/]* | ?:[\\/]* ) # Absolute name. 19636 ac_srcdir=$srcdir$ac_dir_suffix; 19637 ac_top_srcdir=$srcdir 19638 ac_abs_top_srcdir=$srcdir ;; 19639 *) # Relative name. 19640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19641 ac_top_srcdir=$ac_top_build_prefix$srcdir 19642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19643 esac 19644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19645 19646 19647 cd "$ac_dir" 19648 19649 # Check for guested configure; otherwise get Cygnus style configure. 19650 if test -f "$ac_srcdir/configure.gnu"; then 19651 ac_sub_configure=$ac_srcdir/configure.gnu 19652 elif test -f "$ac_srcdir/configure"; then 19653 ac_sub_configure=$ac_srcdir/configure 19654 elif test -f "$ac_srcdir/configure.in"; then 19655 # This should be Cygnus configure. 19656 ac_sub_configure=$ac_aux_dir/configure 19657 else 19658 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 19659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 19660 ac_sub_configure= 19661 fi 19662 19663 # The recursion is here. 19664 if test -n "$ac_sub_configure"; then 19665 # Make the cache file name correct relative to the subdirectory. 19666 case $cache_file in 19667 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 19668 *) # Relative name. 19669 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 19670 esac 19671 19672 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 19673 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 19674 # The eval makes quoting arguments work. 19675 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 19676 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 19677 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 19678 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 19679 { (exit 1); exit 1; }; } 19680 fi 19681 19682 cd "$ac_popdir" 19683 done 19684 fi 19685 19686