1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for LLVM 3.8.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 18if 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 25else 26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 27fi 28BIN_SH=xpg4; export BIN_SH # for Tru64 29DUALCASE=1; export DUALCASE # for MKS sh 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if 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 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 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.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 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. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if 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; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for 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 107do 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 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo 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 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$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 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 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 232done 233IFS=$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 241if 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 248else 249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 250fi 251BIN_SH=xpg4; export BIN_SH # for Tru64 252DUALCASE=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 261if 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 268else 269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 270fi 271BIN_SH=xpg4; export BIN_SH # for Tru64 272DUALCASE=1; export DUALCASE # for MKS sh 273 274: 275(as_func_return () { 276 (exit $1) 277} 278as_func_success () { 279 as_func_return 0 280} 281as_func_failure () { 282 as_func_return 1 283} 284as_func_ret_success () { 285 return 0 286} 287as_func_ret_failure () { 288 return 1 289} 290 291exitcode=0 292if as_func_success; then 293 : 294else 295 exitcode=1 296 echo as_func_success failed. 297fi 298 299if as_func_failure; then 300 exitcode=1 301 echo as_func_failure succeeded. 302fi 303 304if as_func_ret_success; then 305 : 306else 307 exitcode=1 308 echo as_func_ret_success failed. 309fi 310 311if as_func_ret_failure; then 312 exitcode=1 313 echo as_func_ret_failure succeeded. 314fi 315 316if ( set x; as_func_ret_success y && test x = "$1" ); then 317 : 318else 319 exitcode=1 320 echo positional parameters were not saved. 321fi 322 323test $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 334fi 335 336fi 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+"$@"} 346fi 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; } 355fi 356 357 358fi 359 360fi 361 362 363 364(eval "as_func_return () { 365 (exit \$1) 366} 367as_func_success () { 368 as_func_return 0 369} 370as_func_failure () { 371 as_func_return 1 372} 373as_func_ret_success () { 374 return 0 375} 376as_func_ret_failure () { 377 return 1 378} 379 380exitcode=0 381if as_func_success; then 382 : 383else 384 exitcode=1 385 echo as_func_success failed. 386fi 387 388if as_func_failure; then 389 exitcode=1 390 echo as_func_failure succeeded. 391fi 392 393if as_func_ret_success; then 394 : 395else 396 exitcode=1 397 echo as_func_ret_success failed. 398fi 399 400if as_func_ret_failure; then 401 exitcode=1 402 echo as_func_ret_failure succeeded. 403fi 404 405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 406 : 407else 408 exitcode=1 409 echo positional parameters were not saved. 410fi 411 412test \$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 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470ECHO_C= ECHO_N= ECHO_T= 471case `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';; 479esac 480 481if expr a : '\(a\)' >/dev/null 2>&1 && 482 test "X`expr 00001 : '.*\(...\)'`" = X001; then 483 as_expr=expr 484else 485 as_expr=false 486fi 487 488rm -f conf$$ conf$$.exe conf$$.file 489if test -d conf$$.dir; then 490 rm -f conf$$.dir/conf$$.file 491else 492 rm -f conf$$.dir 493 mkdir conf$$.dir 494fi 495echo >conf$$.file 496if 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' 504elif ln conf$$.file conf$$ 2>/dev/null; then 505 as_ln_s=ln 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p=: 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 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. 521cat >conf$$.file <<_ASEOF 522#! /bin/sh 523exit 0 524_ASEOF 525chmod +x conf$$.file 526if test -x conf$$.file >/dev/null 2>&1; then 527 as_executable_p="test -x" 528else 529 as_executable_p=: 530fi 531rm -f conf$$.file 532 533# Sed expression to map a string onto a valid CPP name. 534as_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. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541exec 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. 546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548# 549# Initializations. 550# 551ac_default_prefix=/usr/local 552ac_clean_files= 553ac_config_libobj_dir=. 554LIBOBJS= 555cross_compiling=no 556subdirs= 557MFLAGS= 558MAKEFLAGS= 559SHELL=${CONFIG_SHELL-/bin/sh} 560 561# Identity of this package. 562PACKAGE_NAME='LLVM' 563PACKAGE_TARNAME='llvm' 564PACKAGE_VERSION='3.8.0svn' 565PACKAGE_STRING='LLVM 3.8.0svn' 566PACKAGE_BUGREPORT='http://llvm.org/bugs/' 567 568ac_unique_file="lib/IR/Module.cpp" 569# Factoring default headers for most tests. 570ac_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 605ac_subst_vars='SHELL 606PATH_SEPARATOR 607PACKAGE_NAME 608PACKAGE_TARNAME 609PACKAGE_VERSION 610PACKAGE_STRING 611PACKAGE_BUGREPORT 612exec_prefix 613prefix 614program_transform_name 615bindir 616sbindir 617libexecdir 618datarootdir 619datadir 620sysconfdir 621sharedstatedir 622localstatedir 623includedir 624oldincludedir 625docdir 626infodir 627htmldir 628dvidir 629pdfdir 630psdir 631libdir 632localedir 633mandir 634DEFS 635ECHO_C 636ECHO_N 637ECHO_T 638LIBS 639build_alias 640host_alias 641target_alias 642LLVM_VERSION_MAJOR 643LLVM_VERSION_MINOR 644LLVM_VERSION_PATCH 645LLVM_VERSION_SUFFIX 646LLVM_COPYRIGHT 647CC 648CFLAGS 649LDFLAGS 650CPPFLAGS 651ac_ct_CC 652EXEEXT 653OBJEXT 654CXX 655CXXFLAGS 656ac_ct_CXX 657CPP 658CXX_COMPILER 659subdirs 660ENABLE_POLLY 661LLVM_HAS_POLLY 662build 663build_cpu 664build_vendor 665build_os 666host 667host_cpu 668host_vendor 669host_os 670target 671target_cpu 672target_vendor 673target_os 674OS 675HOST_OS 676TARGET_OS 677LINKALL 678NOLINKALL 679LLVM_ON_UNIX 680LLVM_ON_WIN32 681ARCH 682LLVM_NATIVE_ARCH 683HOST_ARCH 684LLVM_CROSS_COMPILING 685BUILD_CC 686BUILD_EXEEXT 687BUILD_CXX 688CVSBUILD 689ENABLE_LIBCPP 690ENABLE_CXX1Y 691ENABLE_SPLIT_DWARF 692ENABLE_CLANG_ARCMT 693CLANG_PLUGIN_SUPPORT 694ENABLE_CLANG_STATIC_ANALYZER 695ENABLE_OPTIMIZED 696ENABLE_PROFILING 697DISABLE_ASSERTIONS 698ENABLE_WERROR 699ENABLE_EXPENSIVE_CHECKS 700EXPENSIVE_CHECKS 701ENABLE_ABI_BREAKING_CHECKS 702DEBUG_RUNTIME 703DEBUG_SYMBOLS 704KEEP_SYMBOLS 705JIT 706TARGET_HAS_JIT 707TARGETS_WITH_JIT 708ENABLE_DOCS 709ENABLE_DOXYGEN 710enable_searchengine 711enable_external_search 712enable_server_based_search 713searchengine_url 714extra_search_mappings 715QHELPGENERATOR 716llvm_doxygen_generate_qhp 717llvm_doxygen_qch_filename 718llvm_doxygen_qhp_namespace 719llvm_doxygen_qhelpgenerator_path 720llvm_doxygen_qhp_cust_filter_name 721llvm_doxygen_qhp_cust_filter_attrs 722clang_doxygen_generate_qhp 723clang_doxygen_qch_filename 724clang_doxygen_qhp_namespace 725clang_doxygen_qhelpgenerator_path 726clang_doxygen_qhp_cust_filter_name 727clang_doxygen_qhp_cust_filter_attrs 728LLVM_ENABLE_THREADS 729ENABLE_PTHREADS 730LLVM_ENABLE_ZLIB 731ENABLE_PIC 732ENABLE_SHARED 733ENABLE_EMBED_STDCXX 734ENABLE_TIMESTAMPS 735ALL_TARGETS 736TARGETS_TO_BUILD 737LLVM_ENUM_TARGETS 738LLVM_ENUM_ASM_PRINTERS 739LLVM_ENUM_ASM_PARSERS 740LLVM_ENUM_DISASSEMBLERS 741OPTIMIZE_OPTION 742EXTRA_OPTIONS 743EXTRA_LD_OPTIONS 744CLANG_SRC_ROOT 745BINUTILS_INCDIR 746ENABLE_TERMINFO 747INTERNAL_PREFIX 748ifGNUmake 749LN_S 750NM 751CMP 752CP 753DATE 754FIND 755GREP 756MKDIR 757MV 758RANLIB 759AR 760RM 761SED 762TAR 763BINPWD 764DOT 765INSTALL_PROGRAM 766INSTALL_SCRIPT 767INSTALL_DATA 768BZIP2 769CAT 770DOXYGEN 771GROFF 772GZIPBIN 773PDFROFF 774ZIP 775GO 776OCAMLFIND 777GAS 778HAVE_LINK_VERSION_SCRIPT 779EGREP 780NO_VARIADIC_MACROS 781MISSING_FIELD_INITIALIZERS 782COVERED_SWITCH_DEFAULT 783NO_MAYBE_UNINITIALIZED 784NO_UNINITIALIZED 785NO_COMMENT 786PYTHON 787HAVE_DLOPEN 788HAVE_TERMINFO 789USE_OPROFILE 790USE_INTEL_JITEVENTS 791XML2CONFIG 792LIBXML2_LIBS 793LIBXML2_INC 794HAVE_PTHREAD 795HAVE_LIBZ 796HUGE_VAL_SANITY 797MMAP_FILE 798SHLIBEXT 799LLVM_PREFIX 800LLVM_BINDIR 801LLVM_DATADIR 802LLVM_DOCSDIR 803LLVM_ETCDIR 804LLVM_INCLUDEDIR 805LLVM_INFODIR 806LLVM_MANDIR 807LLVM_CONFIGTIME 808BINDINGS_TO_BUILD 809HAVE_OCAMLOPT 810HAVE_OCAML_OUNIT 811OCAML_LIBDIR 812ENABLE_VISIBILITY_INLINES_HIDDEN 813RPATH 814RDYNAMIC 815program_prefix 816LIBOBJS 817LTLIBOBJS' 818ac_subst_files='' 819 ac_precious_vars='build_alias 820host_alias 821target_alias 822CC 823CFLAGS 824LDFLAGS 825CPPFLAGS 826CXX 827CXXFLAGS 828CCC 829CPP' 830ac_subdirs_all='projects/test-suite 831projects/llvm-test 832projects/poolalloc 833projects/llvm-poolalloc 834projects/safecode 835tools/polly' 836 837# Initialize some variables set by options. 838ac_init_help= 839ac_init_version=false 840# The variables have the same names as the options, with 841# dashes changed to underlines. 842cache_file=/dev/null 843exec_prefix=NONE 844no_create= 845no_recursion= 846prefix=NONE 847program_prefix=NONE 848program_suffix=NONE 849program_transform_name=s,x,x, 850silent= 851site= 852srcdir= 853verbose= 854x_includes=NONE 855x_libraries=NONE 856 857# Installation directory options. 858# These are left unexpanded so users can "make install exec_prefix=/foo" 859# and all the variables that are supposed to be based on exec_prefix 860# by default will actually change. 861# Use braces instead of parens because sh, perl, etc. also accept them. 862# (The list follows the same order as the GNU Coding Standards.) 863bindir='${exec_prefix}/bin' 864sbindir='${exec_prefix}/sbin' 865libexecdir='${exec_prefix}/libexec' 866datarootdir='${prefix}/share' 867datadir='${datarootdir}' 868sysconfdir='${prefix}/etc' 869sharedstatedir='${prefix}/com' 870localstatedir='${prefix}/var' 871includedir='${prefix}/include' 872oldincludedir='/usr/include' 873docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 874infodir='${datarootdir}/info' 875htmldir='${docdir}' 876dvidir='${docdir}' 877pdfdir='${docdir}' 878psdir='${docdir}' 879libdir='${exec_prefix}/lib' 880localedir='${datarootdir}/locale' 881mandir='${datarootdir}/man' 882 883ac_prev= 884ac_dashdash= 885for ac_option 886do 887 # If the previous option needs an argument, assign it. 888 if test -n "$ac_prev"; then 889 eval $ac_prev=\$ac_option 890 ac_prev= 891 continue 892 fi 893 894 case $ac_option in 895 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 896 *) ac_optarg=yes ;; 897 esac 898 899 # Accept the important Cygnus configure options, so we can diagnose typos. 900 901 case $ac_dashdash$ac_option in 902 --) 903 ac_dashdash=yes ;; 904 905 -bindir | --bindir | --bindi | --bind | --bin | --bi) 906 ac_prev=bindir ;; 907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 908 bindir=$ac_optarg ;; 909 910 -build | --build | --buil | --bui | --bu) 911 ac_prev=build_alias ;; 912 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 913 build_alias=$ac_optarg ;; 914 915 -cache-file | --cache-file | --cache-fil | --cache-fi \ 916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 917 ac_prev=cache_file ;; 918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 920 cache_file=$ac_optarg ;; 921 922 --config-cache | -C) 923 cache_file=config.cache ;; 924 925 -datadir | --datadir | --datadi | --datad) 926 ac_prev=datadir ;; 927 -datadir=* | --datadir=* | --datadi=* | --datad=*) 928 datadir=$ac_optarg ;; 929 930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 931 | --dataroo | --dataro | --datar) 932 ac_prev=datarootdir ;; 933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 935 datarootdir=$ac_optarg ;; 936 937 -disable-* | --disable-*) 938 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 942 { (exit 1); exit 1; }; } 943 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 944 eval enable_$ac_feature=no ;; 945 946 -docdir | --docdir | --docdi | --doc | --do) 947 ac_prev=docdir ;; 948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 949 docdir=$ac_optarg ;; 950 951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 952 ac_prev=dvidir ;; 953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 954 dvidir=$ac_optarg ;; 955 956 -enable-* | --enable-*) 957 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 960 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 961 { (exit 1); exit 1; }; } 962 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 963 eval enable_$ac_feature=\$ac_optarg ;; 964 965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 967 | --exec | --exe | --ex) 968 ac_prev=exec_prefix ;; 969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 971 | --exec=* | --exe=* | --ex=*) 972 exec_prefix=$ac_optarg ;; 973 974 -gas | --gas | --ga | --g) 975 # Obsolete; use --with-gas. 976 with_gas=yes ;; 977 978 -help | --help | --hel | --he | -h) 979 ac_init_help=long ;; 980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 981 ac_init_help=recursive ;; 982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 983 ac_init_help=short ;; 984 985 -host | --host | --hos | --ho) 986 ac_prev=host_alias ;; 987 -host=* | --host=* | --hos=* | --ho=*) 988 host_alias=$ac_optarg ;; 989 990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 991 ac_prev=htmldir ;; 992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 993 | --ht=*) 994 htmldir=$ac_optarg ;; 995 996 -includedir | --includedir | --includedi | --included | --include \ 997 | --includ | --inclu | --incl | --inc) 998 ac_prev=includedir ;; 999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1000 | --includ=* | --inclu=* | --incl=* | --inc=*) 1001 includedir=$ac_optarg ;; 1002 1003 -infodir | --infodir | --infodi | --infod | --info | --inf) 1004 ac_prev=infodir ;; 1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1006 infodir=$ac_optarg ;; 1007 1008 -libdir | --libdir | --libdi | --libd) 1009 ac_prev=libdir ;; 1010 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1011 libdir=$ac_optarg ;; 1012 1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1014 | --libexe | --libex | --libe) 1015 ac_prev=libexecdir ;; 1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1017 | --libexe=* | --libex=* | --libe=*) 1018 libexecdir=$ac_optarg ;; 1019 1020 -localedir | --localedir | --localedi | --localed | --locale) 1021 ac_prev=localedir ;; 1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1023 localedir=$ac_optarg ;; 1024 1025 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1026 | --localstate | --localstat | --localsta | --localst | --locals) 1027 ac_prev=localstatedir ;; 1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1030 localstatedir=$ac_optarg ;; 1031 1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1033 ac_prev=mandir ;; 1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1035 mandir=$ac_optarg ;; 1036 1037 -nfp | --nfp | --nf) 1038 # Obsolete; use --without-fp. 1039 with_fp=no ;; 1040 1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1042 | --no-cr | --no-c | -n) 1043 no_create=yes ;; 1044 1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1047 no_recursion=yes ;; 1048 1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1051 | --oldin | --oldi | --old | --ol | --o) 1052 ac_prev=oldincludedir ;; 1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1056 oldincludedir=$ac_optarg ;; 1057 1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1059 ac_prev=prefix ;; 1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1061 prefix=$ac_optarg ;; 1062 1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1064 | --program-pre | --program-pr | --program-p) 1065 ac_prev=program_prefix ;; 1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1068 program_prefix=$ac_optarg ;; 1069 1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1071 | --program-suf | --program-su | --program-s) 1072 ac_prev=program_suffix ;; 1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1075 program_suffix=$ac_optarg ;; 1076 1077 -program-transform-name | --program-transform-name \ 1078 | --program-transform-nam | --program-transform-na \ 1079 | --program-transform-n | --program-transform- \ 1080 | --program-transform | --program-transfor \ 1081 | --program-transfo | --program-transf \ 1082 | --program-trans | --program-tran \ 1083 | --progr-tra | --program-tr | --program-t) 1084 ac_prev=program_transform_name ;; 1085 -program-transform-name=* | --program-transform-name=* \ 1086 | --program-transform-nam=* | --program-transform-na=* \ 1087 | --program-transform-n=* | --program-transform-=* \ 1088 | --program-transform=* | --program-transfor=* \ 1089 | --program-transfo=* | --program-transf=* \ 1090 | --program-trans=* | --program-tran=* \ 1091 | --progr-tra=* | --program-tr=* | --program-t=*) 1092 program_transform_name=$ac_optarg ;; 1093 1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1095 ac_prev=pdfdir ;; 1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1097 pdfdir=$ac_optarg ;; 1098 1099 -psdir | --psdir | --psdi | --psd | --ps) 1100 ac_prev=psdir ;; 1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1102 psdir=$ac_optarg ;; 1103 1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1105 | -silent | --silent | --silen | --sile | --sil) 1106 silent=yes ;; 1107 1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1109 ac_prev=sbindir ;; 1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1111 | --sbi=* | --sb=*) 1112 sbindir=$ac_optarg ;; 1113 1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1116 | --sharedst | --shareds | --shared | --share | --shar \ 1117 | --sha | --sh) 1118 ac_prev=sharedstatedir ;; 1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1122 | --sha=* | --sh=*) 1123 sharedstatedir=$ac_optarg ;; 1124 1125 -site | --site | --sit) 1126 ac_prev=site ;; 1127 -site=* | --site=* | --sit=*) 1128 site=$ac_optarg ;; 1129 1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1131 ac_prev=srcdir ;; 1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1133 srcdir=$ac_optarg ;; 1134 1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1136 | --syscon | --sysco | --sysc | --sys | --sy) 1137 ac_prev=sysconfdir ;; 1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1140 sysconfdir=$ac_optarg ;; 1141 1142 -target | --target | --targe | --targ | --tar | --ta | --t) 1143 ac_prev=target_alias ;; 1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1145 target_alias=$ac_optarg ;; 1146 1147 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1148 verbose=yes ;; 1149 1150 -version | --version | --versio | --versi | --vers | -V) 1151 ac_init_version=: ;; 1152 1153 -with-* | --with-*) 1154 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1157 { echo "$as_me: error: invalid package name: $ac_package" >&2 1158 { (exit 1); exit 1; }; } 1159 ac_package=`echo $ac_package| sed 's/-/_/g'` 1160 eval with_$ac_package=\$ac_optarg ;; 1161 1162 -without-* | --without-*) 1163 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1166 { echo "$as_me: error: invalid package name: $ac_package" >&2 1167 { (exit 1); exit 1; }; } 1168 ac_package=`echo $ac_package | sed 's/-/_/g'` 1169 eval with_$ac_package=no ;; 1170 1171 --x) 1172 # Obsolete; use --with-x. 1173 with_x=yes ;; 1174 1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1176 | --x-incl | --x-inc | --x-in | --x-i) 1177 ac_prev=x_includes ;; 1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1180 x_includes=$ac_optarg ;; 1181 1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1184 ac_prev=x_libraries ;; 1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1187 x_libraries=$ac_optarg ;; 1188 1189 -*) { echo "$as_me: error: unrecognized option: $ac_option 1190Try \`$0 --help' for more information." >&2 1191 { (exit 1); exit 1; }; } 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1198 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1199 { (exit 1); exit 1; }; } 1200 eval $ac_envvar=\$ac_optarg 1201 export $ac_envvar ;; 1202 1203 *) 1204 # FIXME: should be removed in autoconf 3.0. 1205 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1207 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1208 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1209 ;; 1210 1211 esac 1212done 1213 1214if test -n "$ac_prev"; then 1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1216 { echo "$as_me: error: missing argument to $ac_option" >&2 1217 { (exit 1); exit 1; }; } 1218fi 1219 1220# Be sure to have absolute directory names. 1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1222 datadir sysconfdir sharedstatedir localstatedir includedir \ 1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1224 libdir localedir mandir 1225do 1226 eval ac_val=\$$ac_var 1227 case $ac_val in 1228 [\\/$]* | ?:[\\/]* ) continue;; 1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1230 esac 1231 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1232 { (exit 1); exit 1; }; } 1233done 1234 1235# There might be people who depend on the old broken behavior: `$host' 1236# used to hold the argument of --host etc. 1237# FIXME: To remove some day. 1238build=$build_alias 1239host=$host_alias 1240target=$target_alias 1241 1242# FIXME: To remove some day. 1243if test "x$host_alias" != x; then 1244 if test "x$build_alias" = x; then 1245 cross_compiling=maybe 1246 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1247 If a cross compiler is detected then cross compile mode will be used." >&2 1248 elif test "x$build_alias" != "x$host_alias"; then 1249 cross_compiling=yes 1250 fi 1251fi 1252 1253ac_tool_prefix= 1254test -n "$host_alias" && ac_tool_prefix=$host_alias- 1255 1256test "$silent" = yes && exec 6>/dev/null 1257 1258 1259ac_pwd=`pwd` && test -n "$ac_pwd" && 1260ac_ls_di=`ls -di .` && 1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1262 { echo "$as_me: error: Working directory cannot be determined" >&2 1263 { (exit 1); exit 1; }; } 1264test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1265 { echo "$as_me: error: pwd does not report name of working directory" >&2 1266 { (exit 1); exit 1; }; } 1267 1268 1269# Find the source files, if location was not specified. 1270if test -z "$srcdir"; then 1271 ac_srcdir_defaulted=yes 1272 # Try the directory containing this script, then the parent directory. 1273 ac_confdir=`$as_dirname -- "$0" || 1274$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1275 X"$0" : 'X\(//\)[^/]' \| \ 1276 X"$0" : 'X\(//\)$' \| \ 1277 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1278echo X"$0" | 1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)[^/].*/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\).*/{ 1292 s//\1/ 1293 q 1294 } 1295 s/.*/./; q'` 1296 srcdir=$ac_confdir 1297 if test ! -r "$srcdir/$ac_unique_file"; then 1298 srcdir=.. 1299 fi 1300else 1301 ac_srcdir_defaulted=no 1302fi 1303if test ! -r "$srcdir/$ac_unique_file"; then 1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1305 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1306 { (exit 1); exit 1; }; } 1307fi 1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1309ac_abs_confdir=`( 1310 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1311 { (exit 1); exit 1; }; } 1312 pwd)` 1313# When building in place, set srcdir=. 1314if test "$ac_abs_confdir" = "$ac_pwd"; then 1315 srcdir=. 1316fi 1317# Remove unnecessary trailing slashes from srcdir. 1318# Double slashes in file names in object file debugging info 1319# mess up M-x gdb in Emacs. 1320case $srcdir in 1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1322esac 1323for ac_var in $ac_precious_vars; do 1324 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_env_${ac_var}_value=\$${ac_var} 1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1327 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1328done 1329 1330# 1331# Report the --help message. 1332# 1333if test "$ac_init_help" = "long"; then 1334 # Omit some internal or obsolete options to make the list less imposing. 1335 # This message is too long to be a string in the A/UX 3.1 sh. 1336 cat <<_ACEOF 1337\`configure' configures LLVM 3.8.0svn to adapt to many kinds of systems. 1338 1339Usage: $0 [OPTION]... [VAR=VALUE]... 1340 1341To assign environment variables (e.g., CC, CFLAGS...), specify them as 1342VAR=VALUE. See below for descriptions of some of the useful variables. 1343 1344Defaults for the options are specified in brackets. 1345 1346Configuration: 1347 -h, --help display this help and exit 1348 --help=short display options specific to this package 1349 --help=recursive display the short help of all the included packages 1350 -V, --version display version information and exit 1351 -q, --quiet, --silent do not print \`checking...' messages 1352 --cache-file=FILE cache test results in FILE [disabled] 1353 -C, --config-cache alias for \`--cache-file=config.cache' 1354 -n, --no-create do not create output files 1355 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1356 1357Installation directories: 1358 --prefix=PREFIX install architecture-independent files in PREFIX 1359 [$ac_default_prefix] 1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1361 [PREFIX] 1362 1363By default, \`make install' will install all the files in 1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1365an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1366for instance \`--prefix=\$HOME'. 1367 1368For better control, use the options below. 1369 1370Fine tuning of the installation directories: 1371 --bindir=DIR user executables [EPREFIX/bin] 1372 --sbindir=DIR system admin executables [EPREFIX/sbin] 1373 --libexecdir=DIR program executables [EPREFIX/libexec] 1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1377 --libdir=DIR object code libraries [EPREFIX/lib] 1378 --includedir=DIR C header files [PREFIX/include] 1379 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1382 --infodir=DIR info documentation [DATAROOTDIR/info] 1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1384 --mandir=DIR man documentation [DATAROOTDIR/man] 1385 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1386 --htmldir=DIR html documentation [DOCDIR] 1387 --dvidir=DIR dvi documentation [DOCDIR] 1388 --pdfdir=DIR pdf documentation [DOCDIR] 1389 --psdir=DIR ps documentation [DOCDIR] 1390_ACEOF 1391 1392 cat <<\_ACEOF 1393 1394System types: 1395 --build=BUILD configure for building on BUILD [guessed] 1396 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1397 --target=TARGET configure for building compilers for TARGET [HOST] 1398_ACEOF 1399fi 1400 1401if test -n "$ac_init_help"; then 1402 case $ac_init_help in 1403 short | recursive ) echo "Configuration of LLVM 3.8.0svn:";; 1404 esac 1405 cat <<\_ACEOF 1406 1407Optional Features: 1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1410 --enable-polly Use polly if available (default is YES) 1411 --enable-libcpp Use libc++ if available (default is NO) 1412 --enable-compiler-version-checks 1413 Check the version of the host compiler (default is 1414 YES) 1415 --enable-cxx1y Use c++1y if available (default is NO) 1416 --enable-split-dwarf Use split-dwarf if available (default is NO) 1417 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1418 --enable-clang-plugin-support 1419 Enable plugin support in clang (default is YES) 1420 --enable-clang-static-analyzer 1421 Enable building of clang Static Analyzer (default is 1422 YES) 1423 --enable-optimized Compile with optimizations enabled (default is NO) 1424 --enable-profiling Compile with profiling enabled (default is NO) 1425 --enable-assertions Compile with assertion checks enabled (default is 1426 YES) 1427 --enable-werror Compile with -Werror enabled (default is NO) 1428 --enable-expensive-checks 1429 Compile with expensive debug checks enabled (default 1430 is NO) 1431 --enable-abi-breaking-checks 1432 Compile with abi-breaking asserts support (default 1433 is with-asserts) 1434 --enable-debug-runtime Build runtime libs with debug symbols (default is 1435 NO) 1436 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1437 optimization is on and YES if it's off) 1438 --enable-keep-symbols Do not strip installed executables) 1439 --enable-jit Enable Just In Time Compiling (default is YES) 1440 --enable-docs Build documents (default is YES) 1441 --enable-doxygen Build doxygen documentation (default is NO) 1442 --enable-doxygen-search Enable doxygen search support (default is NO) 1443 --enable-doxygen-external-search 1444 Enable doxygen exteranl search (default is NO) 1445 --enable-doxygen-qt-help 1446 Build Qt help files (default is NO) 1447 --enable-threads Use threads if available (default is YES) 1448 --enable-pthreads Use pthreads if available (default is YES) 1449 --enable-zlib Use zlib for compression/decompression if available 1450 (default is YES) 1451 --enable-pic Build LLVM with Position Independent Code (default 1452 is YES) 1453 --enable-shared Build a shared library and link tools against it 1454 (default is NO) 1455 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1456 Win32 DLL (default is NO) 1457 --enable-timestamps Enable embedding timestamp information in build 1458 (default is YES) 1459 --enable-backtraces Enable embedding backtraces on crash (default is 1460 YES) 1461 --enable-crash-overrides 1462 Enable crash handling overrides (default is YES) 1463 --enable-targets Build specific host targets: all or 1464 target1,target2,... Valid targets are: host, x86, 1465 x86_64, sparc, powerpc, arm64, arm, aarch64, mips, 1466 hexagon, xcore, msp430, nvptx, systemz, r600, bpf, 1467 wasm, and cpp (default=all) 1468 --enable-experimental-targets 1469 Build experimental host targets: disable or 1470 target1,target2,... (default=disable) 1471 --enable-bindings Build specific language bindings: 1472 all,auto,none,{binding-name} (default=auto) 1473 --enable-terminfo Query the terminfo database if available (default is 1474 YES) 1475 --enable-libedit Use libedit if available (default is YES) 1476 --enable-libffi Check for the presence of libffi (default is NO) 1477 1478Optional Packages: 1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1481 --with-doxygen-search-engine-url 1482 Specify the external search engine for doxygen 1483 --with-doxygen-search-mappings 1484 Specify the extra search mapping for doxygen 1485 --with-optimize-option Select the compiler options to use for optimized 1486 builds 1487 --with-extra-options Specify additional options to compile LLVM with 1488 --with-extra-ld-options Specify additional options to link LLVM with 1489 --with-ocaml-libdir Specify install location for ocaml bindings (default 1490 is stdlib) 1491 --with-clang-srcdir Directory to the out-of-tree Clang source 1492 --with-clang-resource-dir 1493 Relative directory from the Clang binary for 1494 resource files 1495 --with-c-include-dirs Colon separated list of directories clang will 1496 search for headers 1497 --with-gcc-toolchain Directory where gcc is installed. 1498 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1499 --with-clang-default-openmp-runtime 1500 The default OpenMP runtime for Clang. 1501 --with-binutils-include Specify path to binutils/include/ containing 1502 plugin-api.h file for gold plugin. 1503 --with-bug-report-url Specify the URL where bug reports should be 1504 submitted (default=http://llvm.org/bugs/) 1505 --with-internal-prefix Installation directory for internal files 1506 --with-python path to python 1507 --with-oprofile=<prefix> 1508 Tell OProfile >= 0.9.4 how to symbolize JIT output 1509 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1510 1511 1512Some influential environment variables: 1513 CC C compiler command 1514 CFLAGS C compiler flags 1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1516 nonstandard directory <lib dir> 1517 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1518 you have headers in a nonstandard directory <include dir> 1519 CXX C++ compiler command 1520 CXXFLAGS C++ compiler flags 1521 CPP C preprocessor 1522 1523Use these variables to override the choices made by `configure' or to help 1524it to find libraries and programs with nonstandard names/locations. 1525 1526Report bugs to <http://llvm.org/bugs/>. 1527_ACEOF 1528ac_status=$? 1529fi 1530 1531if test "$ac_init_help" = "recursive"; then 1532 # If there are subdirs, report their specific --help. 1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1534 test -d "$ac_dir" || continue 1535 ac_builddir=. 1536 1537case "$ac_dir" in 1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539*) 1540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1541 # A ".." for each directory in $ac_dir_suffix. 1542 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1543 case $ac_top_builddir_sub in 1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1546 esac ;; 1547esac 1548ac_abs_top_builddir=$ac_pwd 1549ac_abs_builddir=$ac_pwd$ac_dir_suffix 1550# for backward compatibility: 1551ac_top_builddir=$ac_top_build_prefix 1552 1553case $srcdir in 1554 .) # We are building in place. 1555 ac_srcdir=. 1556 ac_top_srcdir=$ac_top_builddir_sub 1557 ac_abs_top_srcdir=$ac_pwd ;; 1558 [\\/]* | ?:[\\/]* ) # Absolute name. 1559 ac_srcdir=$srcdir$ac_dir_suffix; 1560 ac_top_srcdir=$srcdir 1561 ac_abs_top_srcdir=$srcdir ;; 1562 *) # Relative name. 1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1564 ac_top_srcdir=$ac_top_build_prefix$srcdir 1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1566esac 1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1568 1569 cd "$ac_dir" || { ac_status=$?; continue; } 1570 # Check for guested configure. 1571 if test -f "$ac_srcdir/configure.gnu"; then 1572 echo && 1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1574 elif test -f "$ac_srcdir/configure"; then 1575 echo && 1576 $SHELL "$ac_srcdir/configure" --help=recursive 1577 else 1578 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1579 fi || ac_status=$? 1580 cd "$ac_pwd" || { ac_status=$?; break; } 1581 done 1582fi 1583 1584test -n "$ac_init_help" && exit $ac_status 1585if $ac_init_version; then 1586 cat <<\_ACEOF 1587LLVM configure 3.8.0svn 1588generated by GNU Autoconf 2.60 1589 1590Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15912002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1592This configure script is free software; the Free Software Foundation 1593gives unlimited permission to copy, distribute and modify it. 1594 1595Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. 1596_ACEOF 1597 exit 1598fi 1599cat >config.log <<_ACEOF 1600This file contains any messages produced by compilers while 1601running configure, to aid debugging if configure makes a mistake. 1602 1603It was created by LLVM $as_me 3.8.0svn, which was 1604generated by GNU Autoconf 2.60. Invocation command line was 1605 1606 $ $0 $@ 1607 1608_ACEOF 1609exec 5>>config.log 1610{ 1611cat <<_ASUNAME 1612## --------- ## 1613## Platform. ## 1614## --------- ## 1615 1616hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1617uname -m = `(uname -m) 2>/dev/null || echo unknown` 1618uname -r = `(uname -r) 2>/dev/null || echo unknown` 1619uname -s = `(uname -s) 2>/dev/null || echo unknown` 1620uname -v = `(uname -v) 2>/dev/null || echo unknown` 1621 1622/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1623/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1624 1625/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1626/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1627/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1628/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1629/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1630/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1631/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1632 1633_ASUNAME 1634 1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1636for as_dir in $PATH 1637do 1638 IFS=$as_save_IFS 1639 test -z "$as_dir" && as_dir=. 1640 echo "PATH: $as_dir" 1641done 1642IFS=$as_save_IFS 1643 1644} >&5 1645 1646cat >&5 <<_ACEOF 1647 1648 1649## ----------- ## 1650## Core tests. ## 1651## ----------- ## 1652 1653_ACEOF 1654 1655 1656# Keep a trace of the command line. 1657# Strip out --no-create and --no-recursion so they do not pile up. 1658# Strip out --silent because we don't want to record it for future runs. 1659# Also quote any args containing shell meta-characters. 1660# Make two passes to allow for proper duplicate-argument suppression. 1661ac_configure_args= 1662ac_configure_args0= 1663ac_configure_args1= 1664ac_must_keep_next=false 1665for ac_pass in 1 2 1666do 1667 for ac_arg 1668 do 1669 case $ac_arg in 1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1672 | -silent | --silent | --silen | --sile | --sil) 1673 continue ;; 1674 *\'*) 1675 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1676 esac 1677 case $ac_pass in 1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1679 2) 1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1681 if test $ac_must_keep_next = true; then 1682 ac_must_keep_next=false # Got value, back to normal. 1683 else 1684 case $ac_arg in 1685 *=* | --config-cache | -C | -disable-* | --disable-* \ 1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1688 | -with-* | --with-* | -without-* | --without-* | --x) 1689 case "$ac_configure_args0 " in 1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1691 esac 1692 ;; 1693 -* ) ac_must_keep_next=true ;; 1694 esac 1695 fi 1696 ac_configure_args="$ac_configure_args '$ac_arg'" 1697 ;; 1698 esac 1699 done 1700done 1701$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1702$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1703 1704# When interrupted or exit'd, cleanup temporary files, and complete 1705# config.log. We remove comments because anyway the quotes in there 1706# would cause problems or look ugly. 1707# WARNING: Use '\'' to represent an apostrophe within the trap. 1708# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1709trap 'exit_status=$? 1710 # Save into config.log some information that might help in debugging. 1711 { 1712 echo 1713 1714 cat <<\_ASBOX 1715## ---------------- ## 1716## Cache variables. ## 1717## ---------------- ## 1718_ASBOX 1719 echo 1720 # The following way of writing the cache mishandles newlines in values, 1721( 1722 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1723 eval ac_val=\$$ac_var 1724 case $ac_val in #( 1725 *${as_nl}*) 1726 case $ac_var in #( 1727 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1728echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1729 esac 1730 case $ac_var in #( 1731 _ | IFS | as_nl) ;; #( 1732 *) $as_unset $ac_var ;; 1733 esac ;; 1734 esac 1735 done 1736 (set) 2>&1 | 1737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1738 *${as_nl}ac_space=\ *) 1739 sed -n \ 1740 "s/'\''/'\''\\\\'\'''\''/g; 1741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1742 ;; #( 1743 *) 1744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1745 ;; 1746 esac | 1747 sort 1748) 1749 echo 1750 1751 cat <<\_ASBOX 1752## ----------------- ## 1753## Output variables. ## 1754## ----------------- ## 1755_ASBOX 1756 echo 1757 for ac_var in $ac_subst_vars 1758 do 1759 eval ac_val=\$$ac_var 1760 case $ac_val in 1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1762 esac 1763 echo "$ac_var='\''$ac_val'\''" 1764 done | sort 1765 echo 1766 1767 if test -n "$ac_subst_files"; then 1768 cat <<\_ASBOX 1769## ------------------- ## 1770## File substitutions. ## 1771## ------------------- ## 1772_ASBOX 1773 echo 1774 for ac_var in $ac_subst_files 1775 do 1776 eval ac_val=\$$ac_var 1777 case $ac_val in 1778 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1779 esac 1780 echo "$ac_var='\''$ac_val'\''" 1781 done | sort 1782 echo 1783 fi 1784 1785 if test -s confdefs.h; then 1786 cat <<\_ASBOX 1787## ----------- ## 1788## confdefs.h. ## 1789## ----------- ## 1790_ASBOX 1791 echo 1792 cat confdefs.h 1793 echo 1794 fi 1795 test "$ac_signal" != 0 && 1796 echo "$as_me: caught signal $ac_signal" 1797 echo "$as_me: exit $exit_status" 1798 } >&5 1799 rm -f core *.core core.conftest.* && 1800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1801 exit $exit_status 1802' 0 1803for ac_signal in 1 2 13 15; do 1804 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1805done 1806ac_signal=0 1807 1808# confdefs.h avoids OS command line length limits that DEFS can exceed. 1809rm -f -r conftest* confdefs.h 1810 1811# Predefined preprocessor variables. 1812 1813cat >>confdefs.h <<_ACEOF 1814#define PACKAGE_NAME "$PACKAGE_NAME" 1815_ACEOF 1816 1817 1818cat >>confdefs.h <<_ACEOF 1819#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1820_ACEOF 1821 1822 1823cat >>confdefs.h <<_ACEOF 1824#define PACKAGE_VERSION "$PACKAGE_VERSION" 1825_ACEOF 1826 1827 1828cat >>confdefs.h <<_ACEOF 1829#define PACKAGE_STRING "$PACKAGE_STRING" 1830_ACEOF 1831 1832 1833cat >>confdefs.h <<_ACEOF 1834#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1835_ACEOF 1836 1837 1838# Let the site file select an alternate cache file if it wants to. 1839# Prefer explicitly selected file to automatically selected ones. 1840if test -n "$CONFIG_SITE"; then 1841 set x "$CONFIG_SITE" 1842elif test "x$prefix" != xNONE; then 1843 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1844else 1845 set x "$ac_default_prefix/share/config.site" \ 1846 "$ac_default_prefix/etc/config.site" 1847fi 1848shift 1849for ac_site_file 1850do 1851 if test -r "$ac_site_file"; then 1852 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1853echo "$as_me: loading site script $ac_site_file" >&6;} 1854 sed 's/^/| /' "$ac_site_file" >&5 1855 . "$ac_site_file" 1856 fi 1857done 1858 1859if test -r "$cache_file"; then 1860 # Some versions of bash will fail to source /dev/null (special 1861 # files actually), so we avoid doing that. 1862 if test -f "$cache_file"; then 1863 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1864echo "$as_me: loading cache $cache_file" >&6;} 1865 case $cache_file in 1866 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1867 *) . "./$cache_file";; 1868 esac 1869 fi 1870else 1871 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1872echo "$as_me: creating cache $cache_file" >&6;} 1873 >$cache_file 1874fi 1875 1876# Check that the precious variables saved in the cache have kept the same 1877# value. 1878ac_cache_corrupted=false 1879for ac_var in $ac_precious_vars; do 1880 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1881 eval ac_new_set=\$ac_env_${ac_var}_set 1882 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1883 eval ac_new_val=\$ac_env_${ac_var}_value 1884 case $ac_old_set,$ac_new_set in 1885 set,) 1886 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1887echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1888 ac_cache_corrupted=: ;; 1889 ,set) 1890 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1891echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1892 ac_cache_corrupted=: ;; 1893 ,);; 1894 *) 1895 if test "x$ac_old_val" != "x$ac_new_val"; then 1896 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1897echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1898 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1899echo "$as_me: former value: $ac_old_val" >&2;} 1900 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1901echo "$as_me: current value: $ac_new_val" >&2;} 1902 ac_cache_corrupted=: 1903 fi;; 1904 esac 1905 # Pass precious variables to config.status. 1906 if test "$ac_new_set" = set; then 1907 case $ac_new_val in 1908 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1909 *) ac_arg=$ac_var=$ac_new_val ;; 1910 esac 1911 case " $ac_configure_args " in 1912 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1913 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1914 esac 1915 fi 1916done 1917if $ac_cache_corrupted; then 1918 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1919echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1920 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1921echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1922 { (exit 1); exit 1; }; } 1923fi 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949ac_ext=c 1950ac_cpp='$CPP $CPPFLAGS' 1951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1953ac_compiler_gnu=$ac_cv_c_compiler_gnu 1954 1955 1956 1957LLVM_VERSION_MAJOR=3 1958LLVM_VERSION_MINOR=8 1959LLVM_VERSION_PATCH=0 1960LLVM_VERSION_SUFFIX=svn 1961 1962 1963cat >>confdefs.h <<_ACEOF 1964#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR 1965_ACEOF 1966 1967 1968cat >>confdefs.h <<_ACEOF 1969#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR 1970_ACEOF 1971 1972 1973cat >>confdefs.h <<_ACEOF 1974#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH 1975_ACEOF 1976 1977 1978cat >>confdefs.h <<_ACEOF 1979#define LLVM_VERSION_STRING "$PACKAGE_VERSION" 1980_ACEOF 1981 1982 1983 1984 1985 1986 1987 1988LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign." 1989 1990 1991 1992 1993 1994 1995 1996ac_aux_dir= 1997for ac_dir in autoconf "$srcdir"/autoconf; do 1998 if test -f "$ac_dir/install-sh"; then 1999 ac_aux_dir=$ac_dir 2000 ac_install_sh="$ac_aux_dir/install-sh -c" 2001 break 2002 elif test -f "$ac_dir/install.sh"; then 2003 ac_aux_dir=$ac_dir 2004 ac_install_sh="$ac_aux_dir/install.sh -c" 2005 break 2006 elif test -f "$ac_dir/shtool"; then 2007 ac_aux_dir=$ac_dir 2008 ac_install_sh="$ac_aux_dir/shtool install -c" 2009 break 2010 fi 2011done 2012if test -z "$ac_aux_dir"; then 2013 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 2014echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 2015 { (exit 1); exit 1; }; } 2016fi 2017 2018# These three variables are undocumented and unsupported, 2019# and are intended to be withdrawn in a future Autoconf release. 2020# They can cause serious problems if a builder's source tree is in a directory 2021# whose full name contains unusual characters. 2022ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2023ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2024ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2025 2026 2027 2028if test ${srcdir} != "." ; then 2029 if test -f ${srcdir}/include/llvm/Config/config.h ; then 2030 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 2031echo "$as_me: error: Already configured in ${srcdir}" >&2;} 2032 { (exit 1); exit 1; }; } 2033 fi 2034fi 2035 2036if test ${srcdir} = "." ; then 2037 { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5 2038echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;} 2039 { (exit 1); exit 1; }; } 2040fi 2041 2042: ${CFLAGS=} 2043: ${CXXFLAGS=} 2044 2045ac_ext=c 2046ac_cpp='$CPP $CPPFLAGS' 2047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2049ac_compiler_gnu=$ac_cv_c_compiler_gnu 2050if test -n "$ac_tool_prefix"; then 2051 for ac_prog in clang gcc 2052 do 2053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2054set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2055{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2057if test "${ac_cv_prog_CC+set}" = set; then 2058 echo $ECHO_N "(cached) $ECHO_C" >&6 2059else 2060 if test -n "$CC"; then 2061 ac_cv_prog_CC="$CC" # Let the user override the test. 2062else 2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2064for as_dir in $PATH 2065do 2066 IFS=$as_save_IFS 2067 test -z "$as_dir" && as_dir=. 2068 for ac_exec_ext in '' $ac_executable_extensions; do 2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2072 break 2 2073 fi 2074done 2075done 2076IFS=$as_save_IFS 2077 2078fi 2079fi 2080CC=$ac_cv_prog_CC 2081if test -n "$CC"; then 2082 { echo "$as_me:$LINENO: result: $CC" >&5 2083echo "${ECHO_T}$CC" >&6; } 2084else 2085 { echo "$as_me:$LINENO: result: no" >&5 2086echo "${ECHO_T}no" >&6; } 2087fi 2088 2089 2090 test -n "$CC" && break 2091 done 2092fi 2093if test -z "$CC"; then 2094 ac_ct_CC=$CC 2095 for ac_prog in clang gcc 2096do 2097 # Extract the first word of "$ac_prog", so it can be a program name with args. 2098set dummy $ac_prog; ac_word=$2 2099{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2102 echo $ECHO_N "(cached) $ECHO_C" >&6 2103else 2104 if test -n "$ac_ct_CC"; then 2105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2106else 2107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2108for as_dir in $PATH 2109do 2110 IFS=$as_save_IFS 2111 test -z "$as_dir" && as_dir=. 2112 for ac_exec_ext in '' $ac_executable_extensions; do 2113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2114 ac_cv_prog_ac_ct_CC="$ac_prog" 2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2116 break 2 2117 fi 2118done 2119done 2120IFS=$as_save_IFS 2121 2122fi 2123fi 2124ac_ct_CC=$ac_cv_prog_ac_ct_CC 2125if test -n "$ac_ct_CC"; then 2126 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2127echo "${ECHO_T}$ac_ct_CC" >&6; } 2128else 2129 { echo "$as_me:$LINENO: result: no" >&5 2130echo "${ECHO_T}no" >&6; } 2131fi 2132 2133 2134 test -n "$ac_ct_CC" && break 2135done 2136 2137 if test "x$ac_ct_CC" = x; then 2138 CC="" 2139 else 2140 case $cross_compiling:$ac_tool_warned in 2141yes:) 2142{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2143whose name does not start with the host triplet. If you think this 2144configuration is useful to you, please write to autoconf@gnu.org." >&5 2145echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2146whose name does not start with the host triplet. If you think this 2147configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2148ac_tool_warned=yes ;; 2149esac 2150 CC=$ac_ct_CC 2151 fi 2152fi 2153 2154 2155test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2156See \`config.log' for more details." >&5 2157echo "$as_me: error: no acceptable C compiler found in \$PATH 2158See \`config.log' for more details." >&2;} 2159 { (exit 1); exit 1; }; } 2160 2161# Provide some information about the compiler. 2162echo "$as_me:$LINENO: checking for C compiler version" >&5 2163ac_compiler=`set X $ac_compile; echo $2` 2164{ (ac_try="$ac_compiler --version >&5" 2165case "(($ac_try" in 2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2167 *) ac_try_echo=$ac_try;; 2168esac 2169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2170 (eval "$ac_compiler --version >&5") 2>&5 2171 ac_status=$? 2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2173 (exit $ac_status); } 2174{ (ac_try="$ac_compiler -v >&5" 2175case "(($ac_try" in 2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2177 *) ac_try_echo=$ac_try;; 2178esac 2179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2180 (eval "$ac_compiler -v >&5") 2>&5 2181 ac_status=$? 2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2183 (exit $ac_status); } 2184{ (ac_try="$ac_compiler -V >&5" 2185case "(($ac_try" in 2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2187 *) ac_try_echo=$ac_try;; 2188esac 2189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2190 (eval "$ac_compiler -V >&5") 2>&5 2191 ac_status=$? 2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2193 (exit $ac_status); } 2194 2195cat >conftest.$ac_ext <<_ACEOF 2196/* confdefs.h. */ 2197_ACEOF 2198cat confdefs.h >>conftest.$ac_ext 2199cat >>conftest.$ac_ext <<_ACEOF 2200/* end confdefs.h. */ 2201 2202int 2203main () 2204{ 2205 2206 ; 2207 return 0; 2208} 2209_ACEOF 2210ac_clean_files_save=$ac_clean_files 2211ac_clean_files="$ac_clean_files a.out a.exe b.out" 2212# Try to create an executable without -o first, disregard a.out. 2213# It will help us diagnose broken compilers, and finding out an intuition 2214# of exeext. 2215{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2216echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2217ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2218# 2219# List of possible output files, starting from the most likely. 2220# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2221# only as a last resort. b.out is created by i960 compilers. 2222ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2223# 2224# The IRIX 6 linker writes into existing files which may not be 2225# executable, retaining their permissions. Remove them first so a 2226# subsequent execution test works. 2227ac_rmfiles= 2228for ac_file in $ac_files 2229do 2230 case $ac_file in 2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2232 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2233 esac 2234done 2235rm -f $ac_rmfiles 2236 2237if { (ac_try="$ac_link_default" 2238case "(($ac_try" in 2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2240 *) ac_try_echo=$ac_try;; 2241esac 2242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2243 (eval "$ac_link_default") 2>&5 2244 ac_status=$? 2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2246 (exit $ac_status); }; then 2247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2248# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2249# in a Makefile. We should not override ac_cv_exeext if it was cached, 2250# so that the user can short-circuit this test for compilers unknown to 2251# Autoconf. 2252for ac_file in $ac_files 2253do 2254 test -f "$ac_file" || continue 2255 case $ac_file in 2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2257 ;; 2258 [ab].out ) 2259 # We found the default executable, but exeext='' is most 2260 # certainly right. 2261 break;; 2262 *.* ) 2263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2264 then :; else 2265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2266 fi 2267 # We set ac_cv_exeext here because the later test for it is not 2268 # safe: cross compilers may not add the suffix if given an `-o' 2269 # argument, so we may need to know it at that point already. 2270 # Even if this section looks crufty: it has the advantage of 2271 # actually working. 2272 break;; 2273 * ) 2274 break;; 2275 esac 2276done 2277test "$ac_cv_exeext" = no && ac_cv_exeext= 2278 2279else 2280 echo "$as_me: failed program was:" >&5 2281sed 's/^/| /' conftest.$ac_ext >&5 2282 2283{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2284See \`config.log' for more details." >&5 2285echo "$as_me: error: C compiler cannot create executables 2286See \`config.log' for more details." >&2;} 2287 { (exit 77); exit 77; }; } 2288fi 2289 2290ac_exeext=$ac_cv_exeext 2291{ echo "$as_me:$LINENO: result: $ac_file" >&5 2292echo "${ECHO_T}$ac_file" >&6; } 2293 2294# Check that the compiler produces executables we can run. If not, either 2295# the compiler is broken, or we cross compile. 2296{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2297echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2298# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2299# If not cross compiling, check that we can run a simple program. 2300if test "$cross_compiling" != yes; then 2301 if { ac_try='./$ac_file' 2302 { (case "(($ac_try" in 2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2304 *) ac_try_echo=$ac_try;; 2305esac 2306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2307 (eval "$ac_try") 2>&5 2308 ac_status=$? 2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2310 (exit $ac_status); }; }; then 2311 cross_compiling=no 2312 else 2313 if test "$cross_compiling" = maybe; then 2314 cross_compiling=yes 2315 else 2316 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2317If you meant to cross compile, use \`--host'. 2318See \`config.log' for more details." >&5 2319echo "$as_me: error: cannot run C compiled programs. 2320If you meant to cross compile, use \`--host'. 2321See \`config.log' for more details." >&2;} 2322 { (exit 1); exit 1; }; } 2323 fi 2324 fi 2325fi 2326{ echo "$as_me:$LINENO: result: yes" >&5 2327echo "${ECHO_T}yes" >&6; } 2328 2329rm -f a.out a.exe conftest$ac_cv_exeext b.out 2330ac_clean_files=$ac_clean_files_save 2331# Check that the compiler produces executables we can run. If not, either 2332# the compiler is broken, or we cross compile. 2333{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2334echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2335{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2336echo "${ECHO_T}$cross_compiling" >&6; } 2337 2338{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2339echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2340if { (ac_try="$ac_link" 2341case "(($ac_try" in 2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2343 *) ac_try_echo=$ac_try;; 2344esac 2345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2346 (eval "$ac_link") 2>&5 2347 ac_status=$? 2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2349 (exit $ac_status); }; then 2350 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2351# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2352# work properly (i.e., refer to `conftest.exe'), while it won't with 2353# `rm'. 2354for ac_file in conftest.exe conftest conftest.*; do 2355 test -f "$ac_file" || continue 2356 case $ac_file in 2357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2358 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2359 break;; 2360 * ) break;; 2361 esac 2362done 2363else 2364 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2365See \`config.log' for more details." >&5 2366echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2367See \`config.log' for more details." >&2;} 2368 { (exit 1); exit 1; }; } 2369fi 2370 2371rm -f conftest$ac_cv_exeext 2372{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2373echo "${ECHO_T}$ac_cv_exeext" >&6; } 2374 2375rm -f conftest.$ac_ext 2376EXEEXT=$ac_cv_exeext 2377ac_exeext=$EXEEXT 2378{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2379echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2380if test "${ac_cv_objext+set}" = set; then 2381 echo $ECHO_N "(cached) $ECHO_C" >&6 2382else 2383 cat >conftest.$ac_ext <<_ACEOF 2384/* confdefs.h. */ 2385_ACEOF 2386cat confdefs.h >>conftest.$ac_ext 2387cat >>conftest.$ac_ext <<_ACEOF 2388/* end confdefs.h. */ 2389 2390int 2391main () 2392{ 2393 2394 ; 2395 return 0; 2396} 2397_ACEOF 2398rm -f conftest.o conftest.obj 2399if { (ac_try="$ac_compile" 2400case "(($ac_try" in 2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2402 *) ac_try_echo=$ac_try;; 2403esac 2404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2405 (eval "$ac_compile") 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; then 2409 for ac_file in conftest.o conftest.obj conftest.*; do 2410 test -f "$ac_file" || continue; 2411 case $ac_file in 2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2413 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2414 break;; 2415 esac 2416done 2417else 2418 echo "$as_me: failed program was:" >&5 2419sed 's/^/| /' conftest.$ac_ext >&5 2420 2421{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2422See \`config.log' for more details." >&5 2423echo "$as_me: error: cannot compute suffix of object files: cannot compile 2424See \`config.log' for more details." >&2;} 2425 { (exit 1); exit 1; }; } 2426fi 2427 2428rm -f conftest.$ac_cv_objext conftest.$ac_ext 2429fi 2430{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2431echo "${ECHO_T}$ac_cv_objext" >&6; } 2432OBJEXT=$ac_cv_objext 2433ac_objext=$OBJEXT 2434{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2435echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2436if test "${ac_cv_c_compiler_gnu+set}" = set; then 2437 echo $ECHO_N "(cached) $ECHO_C" >&6 2438else 2439 cat >conftest.$ac_ext <<_ACEOF 2440/* confdefs.h. */ 2441_ACEOF 2442cat confdefs.h >>conftest.$ac_ext 2443cat >>conftest.$ac_ext <<_ACEOF 2444/* end confdefs.h. */ 2445 2446int 2447main () 2448{ 2449#ifndef __GNUC__ 2450 choke me 2451#endif 2452 2453 ; 2454 return 0; 2455} 2456_ACEOF 2457rm -f conftest.$ac_objext 2458if { (ac_try="$ac_compile" 2459case "(($ac_try" in 2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2461 *) ac_try_echo=$ac_try;; 2462esac 2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2464 (eval "$ac_compile") 2>conftest.er1 2465 ac_status=$? 2466 grep -v '^ *+' conftest.er1 >conftest.err 2467 rm -f conftest.er1 2468 cat conftest.err >&5 2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2470 (exit $ac_status); } && 2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2472 { (case "(($ac_try" in 2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2474 *) ac_try_echo=$ac_try;; 2475esac 2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2477 (eval "$ac_try") 2>&5 2478 ac_status=$? 2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2480 (exit $ac_status); }; } && 2481 { ac_try='test -s conftest.$ac_objext' 2482 { (case "(($ac_try" in 2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2484 *) ac_try_echo=$ac_try;; 2485esac 2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2487 (eval "$ac_try") 2>&5 2488 ac_status=$? 2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2490 (exit $ac_status); }; }; then 2491 ac_compiler_gnu=yes 2492else 2493 echo "$as_me: failed program was:" >&5 2494sed 's/^/| /' conftest.$ac_ext >&5 2495 2496 ac_compiler_gnu=no 2497fi 2498 2499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2500ac_cv_c_compiler_gnu=$ac_compiler_gnu 2501 2502fi 2503{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2504echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2505GCC=`test $ac_compiler_gnu = yes && echo yes` 2506ac_test_CFLAGS=${CFLAGS+set} 2507ac_save_CFLAGS=$CFLAGS 2508{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2509echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2510if test "${ac_cv_prog_cc_g+set}" = set; then 2511 echo $ECHO_N "(cached) $ECHO_C" >&6 2512else 2513 ac_save_c_werror_flag=$ac_c_werror_flag 2514 ac_c_werror_flag=yes 2515 ac_cv_prog_cc_g=no 2516 CFLAGS="-g" 2517 cat >conftest.$ac_ext <<_ACEOF 2518/* confdefs.h. */ 2519_ACEOF 2520cat confdefs.h >>conftest.$ac_ext 2521cat >>conftest.$ac_ext <<_ACEOF 2522/* end confdefs.h. */ 2523 2524int 2525main () 2526{ 2527 2528 ; 2529 return 0; 2530} 2531_ACEOF 2532rm -f conftest.$ac_objext 2533if { (ac_try="$ac_compile" 2534case "(($ac_try" in 2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2536 *) ac_try_echo=$ac_try;; 2537esac 2538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2539 (eval "$ac_compile") 2>conftest.er1 2540 ac_status=$? 2541 grep -v '^ *+' conftest.er1 >conftest.err 2542 rm -f conftest.er1 2543 cat conftest.err >&5 2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 (exit $ac_status); } && 2546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2547 { (case "(($ac_try" in 2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2549 *) ac_try_echo=$ac_try;; 2550esac 2551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2552 (eval "$ac_try") 2>&5 2553 ac_status=$? 2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2555 (exit $ac_status); }; } && 2556 { ac_try='test -s conftest.$ac_objext' 2557 { (case "(($ac_try" in 2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2559 *) ac_try_echo=$ac_try;; 2560esac 2561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2562 (eval "$ac_try") 2>&5 2563 ac_status=$? 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); }; }; then 2566 ac_cv_prog_cc_g=yes 2567else 2568 echo "$as_me: failed program was:" >&5 2569sed 's/^/| /' conftest.$ac_ext >&5 2570 2571 CFLAGS="" 2572 cat >conftest.$ac_ext <<_ACEOF 2573/* confdefs.h. */ 2574_ACEOF 2575cat confdefs.h >>conftest.$ac_ext 2576cat >>conftest.$ac_ext <<_ACEOF 2577/* end confdefs.h. */ 2578 2579int 2580main () 2581{ 2582 2583 ; 2584 return 0; 2585} 2586_ACEOF 2587rm -f conftest.$ac_objext 2588if { (ac_try="$ac_compile" 2589case "(($ac_try" in 2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2591 *) ac_try_echo=$ac_try;; 2592esac 2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2594 (eval "$ac_compile") 2>conftest.er1 2595 ac_status=$? 2596 grep -v '^ *+' conftest.er1 >conftest.err 2597 rm -f conftest.er1 2598 cat conftest.err >&5 2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2600 (exit $ac_status); } && 2601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2602 { (case "(($ac_try" in 2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2604 *) ac_try_echo=$ac_try;; 2605esac 2606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2607 (eval "$ac_try") 2>&5 2608 ac_status=$? 2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2610 (exit $ac_status); }; } && 2611 { ac_try='test -s conftest.$ac_objext' 2612 { (case "(($ac_try" in 2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2614 *) ac_try_echo=$ac_try;; 2615esac 2616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2617 (eval "$ac_try") 2>&5 2618 ac_status=$? 2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2620 (exit $ac_status); }; }; then 2621 : 2622else 2623 echo "$as_me: failed program was:" >&5 2624sed 's/^/| /' conftest.$ac_ext >&5 2625 2626 ac_c_werror_flag=$ac_save_c_werror_flag 2627 CFLAGS="-g" 2628 cat >conftest.$ac_ext <<_ACEOF 2629/* confdefs.h. */ 2630_ACEOF 2631cat confdefs.h >>conftest.$ac_ext 2632cat >>conftest.$ac_ext <<_ACEOF 2633/* end confdefs.h. */ 2634 2635int 2636main () 2637{ 2638 2639 ; 2640 return 0; 2641} 2642_ACEOF 2643rm -f conftest.$ac_objext 2644if { (ac_try="$ac_compile" 2645case "(($ac_try" in 2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2647 *) ac_try_echo=$ac_try;; 2648esac 2649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2650 (eval "$ac_compile") 2>conftest.er1 2651 ac_status=$? 2652 grep -v '^ *+' conftest.er1 >conftest.err 2653 rm -f conftest.er1 2654 cat conftest.err >&5 2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2656 (exit $ac_status); } && 2657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2658 { (case "(($ac_try" in 2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2660 *) ac_try_echo=$ac_try;; 2661esac 2662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2663 (eval "$ac_try") 2>&5 2664 ac_status=$? 2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2666 (exit $ac_status); }; } && 2667 { ac_try='test -s conftest.$ac_objext' 2668 { (case "(($ac_try" in 2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2670 *) ac_try_echo=$ac_try;; 2671esac 2672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2673 (eval "$ac_try") 2>&5 2674 ac_status=$? 2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 (exit $ac_status); }; }; then 2677 ac_cv_prog_cc_g=yes 2678else 2679 echo "$as_me: failed program was:" >&5 2680sed 's/^/| /' conftest.$ac_ext >&5 2681 2682 2683fi 2684 2685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2686fi 2687 2688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2689fi 2690 2691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2692 ac_c_werror_flag=$ac_save_c_werror_flag 2693fi 2694{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2695echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2696if test "$ac_test_CFLAGS" = set; then 2697 CFLAGS=$ac_save_CFLAGS 2698elif test $ac_cv_prog_cc_g = yes; then 2699 if test "$GCC" = yes; then 2700 CFLAGS="-g -O2" 2701 else 2702 CFLAGS="-g" 2703 fi 2704else 2705 if test "$GCC" = yes; then 2706 CFLAGS="-O2" 2707 else 2708 CFLAGS= 2709 fi 2710fi 2711{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2712echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2713if test "${ac_cv_prog_cc_c89+set}" = set; then 2714 echo $ECHO_N "(cached) $ECHO_C" >&6 2715else 2716 ac_cv_prog_cc_c89=no 2717ac_save_CC=$CC 2718cat >conftest.$ac_ext <<_ACEOF 2719/* confdefs.h. */ 2720_ACEOF 2721cat confdefs.h >>conftest.$ac_ext 2722cat >>conftest.$ac_ext <<_ACEOF 2723/* end confdefs.h. */ 2724#include <stdarg.h> 2725#include <stdio.h> 2726#include <sys/types.h> 2727#include <sys/stat.h> 2728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2729struct buf { int x; }; 2730FILE * (*rcsopen) (struct buf *, struct stat *, int); 2731static char *e (p, i) 2732 char **p; 2733 int i; 2734{ 2735 return p[i]; 2736} 2737static char *f (char * (*g) (char **, int), char **p, ...) 2738{ 2739 char *s; 2740 va_list v; 2741 va_start (v,p); 2742 s = g (p, va_arg (v,int)); 2743 va_end (v); 2744 return s; 2745} 2746 2747/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2748 function prototypes and stuff, but not '\xHH' hex character constants. 2749 These don't provoke an error unfortunately, instead are silently treated 2750 as 'x'. The following induces an error, until -std is added to get 2751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2752 array size at least. It's necessary to write '\x00'==0 to get something 2753 that's true only with -std. */ 2754int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2755 2756/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2757 inside strings and character constants. */ 2758#define FOO(x) 'x' 2759int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2760 2761int test (int i, double x); 2762struct s1 {int (*f) (int a);}; 2763struct s2 {int (*f) (double a);}; 2764int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2765int argc; 2766char **argv; 2767int 2768main () 2769{ 2770return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2771 ; 2772 return 0; 2773} 2774_ACEOF 2775for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2777do 2778 CC="$ac_save_CC $ac_arg" 2779 rm -f conftest.$ac_objext 2780if { (ac_try="$ac_compile" 2781case "(($ac_try" in 2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2783 *) ac_try_echo=$ac_try;; 2784esac 2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2786 (eval "$ac_compile") 2>conftest.er1 2787 ac_status=$? 2788 grep -v '^ *+' conftest.er1 >conftest.err 2789 rm -f conftest.er1 2790 cat conftest.err >&5 2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2792 (exit $ac_status); } && 2793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2794 { (case "(($ac_try" in 2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2796 *) ac_try_echo=$ac_try;; 2797esac 2798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2799 (eval "$ac_try") 2>&5 2800 ac_status=$? 2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2802 (exit $ac_status); }; } && 2803 { ac_try='test -s conftest.$ac_objext' 2804 { (case "(($ac_try" in 2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2806 *) ac_try_echo=$ac_try;; 2807esac 2808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2809 (eval "$ac_try") 2>&5 2810 ac_status=$? 2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2812 (exit $ac_status); }; }; then 2813 ac_cv_prog_cc_c89=$ac_arg 2814else 2815 echo "$as_me: failed program was:" >&5 2816sed 's/^/| /' conftest.$ac_ext >&5 2817 2818 2819fi 2820 2821rm -f core conftest.err conftest.$ac_objext 2822 test "x$ac_cv_prog_cc_c89" != "xno" && break 2823done 2824rm -f conftest.$ac_ext 2825CC=$ac_save_CC 2826 2827fi 2828# AC_CACHE_VAL 2829case "x$ac_cv_prog_cc_c89" in 2830 x) 2831 { echo "$as_me:$LINENO: result: none needed" >&5 2832echo "${ECHO_T}none needed" >&6; } ;; 2833 xno) 2834 { echo "$as_me:$LINENO: result: unsupported" >&5 2835echo "${ECHO_T}unsupported" >&6; } ;; 2836 *) 2837 CC="$CC $ac_cv_prog_cc_c89" 2838 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2839echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2840esac 2841 2842 2843ac_ext=c 2844ac_cpp='$CPP $CPPFLAGS' 2845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2847ac_compiler_gnu=$ac_cv_c_compiler_gnu 2848 2849ac_ext=cpp 2850ac_cpp='$CXXCPP $CPPFLAGS' 2851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2854if test -z "$CXX"; then 2855 if test -n "$CCC"; then 2856 CXX=$CCC 2857 else 2858 if test -n "$ac_tool_prefix"; then 2859 for ac_prog in clang++ g++ 2860 do 2861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2862set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2863{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2865if test "${ac_cv_prog_CXX+set}" = set; then 2866 echo $ECHO_N "(cached) $ECHO_C" >&6 2867else 2868 if test -n "$CXX"; then 2869 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 test -z "$as_dir" && as_dir=. 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2878 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888CXX=$ac_cv_prog_CXX 2889if test -n "$CXX"; then 2890 { echo "$as_me:$LINENO: result: $CXX" >&5 2891echo "${ECHO_T}$CXX" >&6; } 2892else 2893 { echo "$as_me:$LINENO: result: no" >&5 2894echo "${ECHO_T}no" >&6; } 2895fi 2896 2897 2898 test -n "$CXX" && break 2899 done 2900fi 2901if test -z "$CXX"; then 2902 ac_ct_CXX=$CXX 2903 for ac_prog in clang++ g++ 2904do 2905 # Extract the first word of "$ac_prog", so it can be a program name with args. 2906set dummy $ac_prog; ac_word=$2 2907{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2909if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2910 echo $ECHO_N "(cached) $ECHO_C" >&6 2911else 2912 if test -n "$ac_ct_CXX"; then 2913 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2914else 2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916for as_dir in $PATH 2917do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2922 ac_cv_prog_ac_ct_CXX="$ac_prog" 2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2933if test -n "$ac_ct_CXX"; then 2934 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2935echo "${ECHO_T}$ac_ct_CXX" >&6; } 2936else 2937 { echo "$as_me:$LINENO: result: no" >&5 2938echo "${ECHO_T}no" >&6; } 2939fi 2940 2941 2942 test -n "$ac_ct_CXX" && break 2943done 2944 2945 if test "x$ac_ct_CXX" = x; then 2946 CXX="g++" 2947 else 2948 case $cross_compiling:$ac_tool_warned in 2949yes:) 2950{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2951whose name does not start with the host triplet. If you think this 2952configuration is useful to you, please write to autoconf@gnu.org." >&5 2953echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2954whose name does not start with the host triplet. If you think this 2955configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2956ac_tool_warned=yes ;; 2957esac 2958 CXX=$ac_ct_CXX 2959 fi 2960fi 2961 2962 fi 2963fi 2964# Provide some information about the compiler. 2965echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2966ac_compiler=`set X $ac_compile; echo $2` 2967{ (ac_try="$ac_compiler --version >&5" 2968case "(($ac_try" in 2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2970 *) ac_try_echo=$ac_try;; 2971esac 2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2973 (eval "$ac_compiler --version >&5") 2>&5 2974 ac_status=$? 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976 (exit $ac_status); } 2977{ (ac_try="$ac_compiler -v >&5" 2978case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981esac 2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2983 (eval "$ac_compiler -v >&5") 2>&5 2984 ac_status=$? 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2986 (exit $ac_status); } 2987{ (ac_try="$ac_compiler -V >&5" 2988case "(($ac_try" in 2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2990 *) ac_try_echo=$ac_try;; 2991esac 2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2993 (eval "$ac_compiler -V >&5") 2>&5 2994 ac_status=$? 2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2996 (exit $ac_status); } 2997 2998{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2999echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3000if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3001 echo $ECHO_N "(cached) $ECHO_C" >&6 3002else 3003 cat >conftest.$ac_ext <<_ACEOF 3004/* confdefs.h. */ 3005_ACEOF 3006cat confdefs.h >>conftest.$ac_ext 3007cat >>conftest.$ac_ext <<_ACEOF 3008/* end confdefs.h. */ 3009 3010int 3011main () 3012{ 3013#ifndef __GNUC__ 3014 choke me 3015#endif 3016 3017 ; 3018 return 0; 3019} 3020_ACEOF 3021rm -f conftest.$ac_objext 3022if { (ac_try="$ac_compile" 3023case "(($ac_try" in 3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3025 *) ac_try_echo=$ac_try;; 3026esac 3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3028 (eval "$ac_compile") 2>conftest.er1 3029 ac_status=$? 3030 grep -v '^ *+' conftest.er1 >conftest.err 3031 rm -f conftest.er1 3032 cat conftest.err >&5 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } && 3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3036 { (case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039esac 3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3041 (eval "$ac_try") 2>&5 3042 ac_status=$? 3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3044 (exit $ac_status); }; } && 3045 { ac_try='test -s conftest.$ac_objext' 3046 { (case "(($ac_try" in 3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3048 *) ac_try_echo=$ac_try;; 3049esac 3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3051 (eval "$ac_try") 2>&5 3052 ac_status=$? 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); }; }; then 3055 ac_compiler_gnu=yes 3056else 3057 echo "$as_me: failed program was:" >&5 3058sed 's/^/| /' conftest.$ac_ext >&5 3059 3060 ac_compiler_gnu=no 3061fi 3062 3063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3064ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3065 3066fi 3067{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3068echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3069GXX=`test $ac_compiler_gnu = yes && echo yes` 3070ac_test_CXXFLAGS=${CXXFLAGS+set} 3071ac_save_CXXFLAGS=$CXXFLAGS 3072{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3073echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3074if test "${ac_cv_prog_cxx_g+set}" = set; then 3075 echo $ECHO_N "(cached) $ECHO_C" >&6 3076else 3077 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3078 ac_cxx_werror_flag=yes 3079 ac_cv_prog_cxx_g=no 3080 CXXFLAGS="-g" 3081 cat >conftest.$ac_ext <<_ACEOF 3082/* confdefs.h. */ 3083_ACEOF 3084cat confdefs.h >>conftest.$ac_ext 3085cat >>conftest.$ac_ext <<_ACEOF 3086/* end confdefs.h. */ 3087 3088int 3089main () 3090{ 3091 3092 ; 3093 return 0; 3094} 3095_ACEOF 3096rm -f conftest.$ac_objext 3097if { (ac_try="$ac_compile" 3098case "(($ac_try" in 3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3100 *) ac_try_echo=$ac_try;; 3101esac 3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3103 (eval "$ac_compile") 2>conftest.er1 3104 ac_status=$? 3105 grep -v '^ *+' conftest.er1 >conftest.err 3106 rm -f conftest.er1 3107 cat conftest.err >&5 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); } && 3110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3111 { (case "(($ac_try" in 3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3113 *) ac_try_echo=$ac_try;; 3114esac 3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3116 (eval "$ac_try") 2>&5 3117 ac_status=$? 3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3119 (exit $ac_status); }; } && 3120 { ac_try='test -s conftest.$ac_objext' 3121 { (case "(($ac_try" in 3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3123 *) ac_try_echo=$ac_try;; 3124esac 3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3126 (eval "$ac_try") 2>&5 3127 ac_status=$? 3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3129 (exit $ac_status); }; }; then 3130 ac_cv_prog_cxx_g=yes 3131else 3132 echo "$as_me: failed program was:" >&5 3133sed 's/^/| /' conftest.$ac_ext >&5 3134 3135 CXXFLAGS="" 3136 cat >conftest.$ac_ext <<_ACEOF 3137/* confdefs.h. */ 3138_ACEOF 3139cat confdefs.h >>conftest.$ac_ext 3140cat >>conftest.$ac_ext <<_ACEOF 3141/* end confdefs.h. */ 3142 3143int 3144main () 3145{ 3146 3147 ; 3148 return 0; 3149} 3150_ACEOF 3151rm -f conftest.$ac_objext 3152if { (ac_try="$ac_compile" 3153case "(($ac_try" in 3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3155 *) ac_try_echo=$ac_try;; 3156esac 3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3158 (eval "$ac_compile") 2>conftest.er1 3159 ac_status=$? 3160 grep -v '^ *+' conftest.er1 >conftest.err 3161 rm -f conftest.er1 3162 cat conftest.err >&5 3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3164 (exit $ac_status); } && 3165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3166 { (case "(($ac_try" in 3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3168 *) ac_try_echo=$ac_try;; 3169esac 3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3171 (eval "$ac_try") 2>&5 3172 ac_status=$? 3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3174 (exit $ac_status); }; } && 3175 { ac_try='test -s conftest.$ac_objext' 3176 { (case "(($ac_try" in 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178 *) ac_try_echo=$ac_try;; 3179esac 3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3181 (eval "$ac_try") 2>&5 3182 ac_status=$? 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); }; }; then 3185 : 3186else 3187 echo "$as_me: failed program was:" >&5 3188sed 's/^/| /' conftest.$ac_ext >&5 3189 3190 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3191 CXXFLAGS="-g" 3192 cat >conftest.$ac_ext <<_ACEOF 3193/* confdefs.h. */ 3194_ACEOF 3195cat confdefs.h >>conftest.$ac_ext 3196cat >>conftest.$ac_ext <<_ACEOF 3197/* end confdefs.h. */ 3198 3199int 3200main () 3201{ 3202 3203 ; 3204 return 0; 3205} 3206_ACEOF 3207rm -f conftest.$ac_objext 3208if { (ac_try="$ac_compile" 3209case "(($ac_try" in 3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3211 *) ac_try_echo=$ac_try;; 3212esac 3213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3214 (eval "$ac_compile") 2>conftest.er1 3215 ac_status=$? 3216 grep -v '^ *+' conftest.er1 >conftest.err 3217 rm -f conftest.er1 3218 cat conftest.err >&5 3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); } && 3221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3222 { (case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3227 (eval "$ac_try") 2>&5 3228 ac_status=$? 3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); }; } && 3231 { ac_try='test -s conftest.$ac_objext' 3232 { (case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235esac 3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3237 (eval "$ac_try") 2>&5 3238 ac_status=$? 3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3240 (exit $ac_status); }; }; then 3241 ac_cv_prog_cxx_g=yes 3242else 3243 echo "$as_me: failed program was:" >&5 3244sed 's/^/| /' conftest.$ac_ext >&5 3245 3246 3247fi 3248 3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3250fi 3251 3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3253fi 3254 3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3256 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3257fi 3258{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3259echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3260if test "$ac_test_CXXFLAGS" = set; then 3261 CXXFLAGS=$ac_save_CXXFLAGS 3262elif test $ac_cv_prog_cxx_g = yes; then 3263 if test "$GXX" = yes; then 3264 CXXFLAGS="-g -O2" 3265 else 3266 CXXFLAGS="-g" 3267 fi 3268else 3269 if test "$GXX" = yes; then 3270 CXXFLAGS="-O2" 3271 else 3272 CXXFLAGS= 3273 fi 3274fi 3275ac_ext=c 3276ac_cpp='$CPP $CPPFLAGS' 3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3279ac_compiler_gnu=$ac_cv_c_compiler_gnu 3280 3281ac_ext=c 3282ac_cpp='$CPP $CPPFLAGS' 3283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3285ac_compiler_gnu=$ac_cv_c_compiler_gnu 3286{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3287echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3288# On Suns, sometimes $CPP names a directory. 3289if test -n "$CPP" && test -d "$CPP"; then 3290 CPP= 3291fi 3292if test -z "$CPP"; then 3293 if test "${ac_cv_prog_CPP+set}" = set; then 3294 echo $ECHO_N "(cached) $ECHO_C" >&6 3295else 3296 # Double quotes because CPP needs to be expanded 3297 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3298 do 3299 ac_preproc_ok=false 3300for ac_c_preproc_warn_flag in '' yes 3301do 3302 # Use a header file that comes with gcc, so configuring glibc 3303 # with a fresh cross-compiler works. 3304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3305 # <limits.h> exists even on freestanding compilers. 3306 # On the NeXT, cc -E runs the code through the compiler's parser, 3307 # not just through cpp. "Syntax error" is here to catch this case. 3308 cat >conftest.$ac_ext <<_ACEOF 3309/* confdefs.h. */ 3310_ACEOF 3311cat confdefs.h >>conftest.$ac_ext 3312cat >>conftest.$ac_ext <<_ACEOF 3313/* end confdefs.h. */ 3314#ifdef __STDC__ 3315# include <limits.h> 3316#else 3317# include <assert.h> 3318#endif 3319 Syntax error 3320_ACEOF 3321if { (ac_try="$ac_cpp conftest.$ac_ext" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3328 ac_status=$? 3329 grep -v '^ *+' conftest.er1 >conftest.err 3330 rm -f conftest.er1 3331 cat conftest.err >&5 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } >/dev/null; then 3334 if test -s conftest.err; then 3335 ac_cpp_err=$ac_c_preproc_warn_flag 3336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3337 else 3338 ac_cpp_err= 3339 fi 3340else 3341 ac_cpp_err=yes 3342fi 3343if test -z "$ac_cpp_err"; then 3344 : 3345else 3346 echo "$as_me: failed program was:" >&5 3347sed 's/^/| /' conftest.$ac_ext >&5 3348 3349 # Broken: fails on valid input. 3350continue 3351fi 3352 3353rm -f conftest.err conftest.$ac_ext 3354 3355 # OK, works on sane cases. Now check whether nonexistent headers 3356 # can be detected and how. 3357 cat >conftest.$ac_ext <<_ACEOF 3358/* confdefs.h. */ 3359_ACEOF 3360cat confdefs.h >>conftest.$ac_ext 3361cat >>conftest.$ac_ext <<_ACEOF 3362/* end confdefs.h. */ 3363#include <ac_nonexistent.h> 3364_ACEOF 3365if { (ac_try="$ac_cpp conftest.$ac_ext" 3366case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3372 ac_status=$? 3373 grep -v '^ *+' conftest.er1 >conftest.err 3374 rm -f conftest.er1 3375 cat conftest.err >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); } >/dev/null; then 3378 if test -s conftest.err; then 3379 ac_cpp_err=$ac_c_preproc_warn_flag 3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3381 else 3382 ac_cpp_err= 3383 fi 3384else 3385 ac_cpp_err=yes 3386fi 3387if test -z "$ac_cpp_err"; then 3388 # Broken: success on invalid input. 3389continue 3390else 3391 echo "$as_me: failed program was:" >&5 3392sed 's/^/| /' conftest.$ac_ext >&5 3393 3394 # Passes both tests. 3395ac_preproc_ok=: 3396break 3397fi 3398 3399rm -f conftest.err conftest.$ac_ext 3400 3401done 3402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3403rm -f conftest.err conftest.$ac_ext 3404if $ac_preproc_ok; then 3405 break 3406fi 3407 3408 done 3409 ac_cv_prog_CPP=$CPP 3410 3411fi 3412 CPP=$ac_cv_prog_CPP 3413else 3414 ac_cv_prog_CPP=$CPP 3415fi 3416{ echo "$as_me:$LINENO: result: $CPP" >&5 3417echo "${ECHO_T}$CPP" >&6; } 3418ac_preproc_ok=false 3419for ac_c_preproc_warn_flag in '' yes 3420do 3421 # Use a header file that comes with gcc, so configuring glibc 3422 # with a fresh cross-compiler works. 3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3424 # <limits.h> exists even on freestanding compilers. 3425 # On the NeXT, cc -E runs the code through the compiler's parser, 3426 # not just through cpp. "Syntax error" is here to catch this case. 3427 cat >conftest.$ac_ext <<_ACEOF 3428/* confdefs.h. */ 3429_ACEOF 3430cat confdefs.h >>conftest.$ac_ext 3431cat >>conftest.$ac_ext <<_ACEOF 3432/* end confdefs.h. */ 3433#ifdef __STDC__ 3434# include <limits.h> 3435#else 3436# include <assert.h> 3437#endif 3438 Syntax error 3439_ACEOF 3440if { (ac_try="$ac_cpp conftest.$ac_ext" 3441case "(($ac_try" in 3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3443 *) ac_try_echo=$ac_try;; 3444esac 3445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3447 ac_status=$? 3448 grep -v '^ *+' conftest.er1 >conftest.err 3449 rm -f conftest.er1 3450 cat conftest.err >&5 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3452 (exit $ac_status); } >/dev/null; then 3453 if test -s conftest.err; then 3454 ac_cpp_err=$ac_c_preproc_warn_flag 3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3456 else 3457 ac_cpp_err= 3458 fi 3459else 3460 ac_cpp_err=yes 3461fi 3462if test -z "$ac_cpp_err"; then 3463 : 3464else 3465 echo "$as_me: failed program was:" >&5 3466sed 's/^/| /' conftest.$ac_ext >&5 3467 3468 # Broken: fails on valid input. 3469continue 3470fi 3471 3472rm -f conftest.err conftest.$ac_ext 3473 3474 # OK, works on sane cases. Now check whether nonexistent headers 3475 # can be detected and how. 3476 cat >conftest.$ac_ext <<_ACEOF 3477/* confdefs.h. */ 3478_ACEOF 3479cat confdefs.h >>conftest.$ac_ext 3480cat >>conftest.$ac_ext <<_ACEOF 3481/* end confdefs.h. */ 3482#include <ac_nonexistent.h> 3483_ACEOF 3484if { (ac_try="$ac_cpp conftest.$ac_ext" 3485case "(($ac_try" in 3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3487 *) ac_try_echo=$ac_try;; 3488esac 3489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3491 ac_status=$? 3492 grep -v '^ *+' conftest.er1 >conftest.err 3493 rm -f conftest.er1 3494 cat conftest.err >&5 3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3496 (exit $ac_status); } >/dev/null; then 3497 if test -s conftest.err; then 3498 ac_cpp_err=$ac_c_preproc_warn_flag 3499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3500 else 3501 ac_cpp_err= 3502 fi 3503else 3504 ac_cpp_err=yes 3505fi 3506if test -z "$ac_cpp_err"; then 3507 # Broken: success on invalid input. 3508continue 3509else 3510 echo "$as_me: failed program was:" >&5 3511sed 's/^/| /' conftest.$ac_ext >&5 3512 3513 # Passes both tests. 3514ac_preproc_ok=: 3515break 3516fi 3517 3518rm -f conftest.err conftest.$ac_ext 3519 3520done 3521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3522rm -f conftest.err conftest.$ac_ext 3523if $ac_preproc_ok; then 3524 : 3525else 3526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3527See \`config.log' for more details." >&5 3528echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3529See \`config.log' for more details." >&2;} 3530 { (exit 1); exit 1; }; } 3531fi 3532 3533ac_ext=c 3534ac_cpp='$CPP $CPPFLAGS' 3535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3537ac_compiler_gnu=$ac_cv_c_compiler_gnu 3538 3539 3540if test "$CXX" = "clang++" ; then 3541 { echo "$as_me:$LINENO: checking whether clang works" >&5 3542echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3543 ac_ext=cpp 3544ac_cpp='$CXXCPP $CPPFLAGS' 3545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3548 3549 3550cat >conftest.$ac_ext <<_ACEOF 3551/* confdefs.h. */ 3552_ACEOF 3553cat confdefs.h >>conftest.$ac_ext 3554cat >>conftest.$ac_ext <<_ACEOF 3555/* end confdefs.h. */ 3556#include <limits> 3557#if __has_include (<cxxabi.h>) 3558#include <cxxabi.h> 3559#endif 3560#if __has_include (<unwind.h>) 3561#include <unwind.h> 3562#endif 3563 3564int 3565main () 3566{ 3567 3568 ; 3569 return 0; 3570} 3571_ACEOF 3572rm -f conftest.$ac_objext 3573if { (ac_try="$ac_compile" 3574case "(($ac_try" in 3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3576 *) ac_try_echo=$ac_try;; 3577esac 3578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3579 (eval "$ac_compile") 2>conftest.er1 3580 ac_status=$? 3581 grep -v '^ *+' conftest.er1 >conftest.err 3582 rm -f conftest.er1 3583 cat conftest.err >&5 3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3585 (exit $ac_status); } && 3586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3587 { (case "(($ac_try" in 3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3589 *) ac_try_echo=$ac_try;; 3590esac 3591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3592 (eval "$ac_try") 2>&5 3593 ac_status=$? 3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3595 (exit $ac_status); }; } && 3596 { ac_try='test -s conftest.$ac_objext' 3597 { (case "(($ac_try" in 3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3599 *) ac_try_echo=$ac_try;; 3600esac 3601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3602 (eval "$ac_try") 2>&5 3603 ac_status=$? 3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3605 (exit $ac_status); }; }; then 3606 3607 { echo "$as_me:$LINENO: result: yes" >&5 3608echo "${ECHO_T}yes" >&6; } 3609 3610else 3611 echo "$as_me: failed program was:" >&5 3612sed 's/^/| /' conftest.$ac_ext >&5 3613 3614 3615 { echo "$as_me:$LINENO: result: no" >&5 3616echo "${ECHO_T}no" >&6; } 3617 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5 3618echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;} 3619 { (exit 1); exit 1; }; } 3620 3621fi 3622 3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3624 ac_ext=c 3625ac_cpp='$CPP $CPPFLAGS' 3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3628ac_compiler_gnu=$ac_cv_c_compiler_gnu 3629 3630fi 3631 3632{ echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5 3633echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; } 3634ac_ext=cpp 3635ac_cpp='$CXXCPP $CPPFLAGS' 3636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3639 3640llvm_cv_cxx_compiler=unknown 3641cat >conftest.$ac_ext <<_ACEOF 3642/* confdefs.h. */ 3643_ACEOF 3644cat confdefs.h >>conftest.$ac_ext 3645cat >>conftest.$ac_ext <<_ACEOF 3646/* end confdefs.h. */ 3647#if ! __clang__ 3648 #error 3649 #endif 3650 3651_ACEOF 3652rm -f conftest.$ac_objext 3653if { (ac_try="$ac_compile" 3654case "(($ac_try" in 3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3656 *) ac_try_echo=$ac_try;; 3657esac 3658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3659 (eval "$ac_compile") 2>conftest.er1 3660 ac_status=$? 3661 grep -v '^ *+' conftest.er1 >conftest.err 3662 rm -f conftest.er1 3663 cat conftest.err >&5 3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3665 (exit $ac_status); } && 3666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3667 { (case "(($ac_try" in 3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3669 *) ac_try_echo=$ac_try;; 3670esac 3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3672 (eval "$ac_try") 2>&5 3673 ac_status=$? 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); }; } && 3676 { ac_try='test -s conftest.$ac_objext' 3677 { (case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3682 (eval "$ac_try") 2>&5 3683 ac_status=$? 3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3685 (exit $ac_status); }; }; then 3686 llvm_cv_cxx_compiler=clang 3687else 3688 echo "$as_me: failed program was:" >&5 3689sed 's/^/| /' conftest.$ac_ext >&5 3690 3691 cat >conftest.$ac_ext <<_ACEOF 3692/* confdefs.h. */ 3693_ACEOF 3694cat confdefs.h >>conftest.$ac_ext 3695cat >>conftest.$ac_ext <<_ACEOF 3696/* end confdefs.h. */ 3697#if ! __GNUC__ 3698 #error 3699 #endif 3700 3701_ACEOF 3702rm -f conftest.$ac_objext 3703if { (ac_try="$ac_compile" 3704case "(($ac_try" in 3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3706 *) ac_try_echo=$ac_try;; 3707esac 3708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3709 (eval "$ac_compile") 2>conftest.er1 3710 ac_status=$? 3711 grep -v '^ *+' conftest.er1 >conftest.err 3712 rm -f conftest.er1 3713 cat conftest.err >&5 3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3715 (exit $ac_status); } && 3716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3717 { (case "(($ac_try" in 3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3719 *) ac_try_echo=$ac_try;; 3720esac 3721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3722 (eval "$ac_try") 2>&5 3723 ac_status=$? 3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3725 (exit $ac_status); }; } && 3726 { ac_try='test -s conftest.$ac_objext' 3727 { (case "(($ac_try" in 3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3729 *) ac_try_echo=$ac_try;; 3730esac 3731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3732 (eval "$ac_try") 2>&5 3733 ac_status=$? 3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3735 (exit $ac_status); }; }; then 3736 llvm_cv_cxx_compiler=gcc 3737else 3738 echo "$as_me: failed program was:" >&5 3739sed 's/^/| /' conftest.$ac_ext >&5 3740 3741 3742fi 3743 3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3745fi 3746 3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3748ac_ext=c 3749ac_cpp='$CPP $CPPFLAGS' 3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3752ac_compiler_gnu=$ac_cv_c_compiler_gnu 3753 3754{ echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5 3755echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; } 3756CXX_COMPILER=$llvm_cv_cxx_compiler 3757 3758 3759 3760 3761if test -d ${srcdir}/projects/test-suite ; then 3762 subdirs="$subdirs projects/test-suite" 3763 3764fi 3765 3766if test -d ${srcdir}/projects/llvm-test ; then 3767 subdirs="$subdirs projects/llvm-test" 3768 3769fi 3770 3771if test -d ${srcdir}/projects/poolalloc ; then 3772 subdirs="$subdirs projects/poolalloc" 3773 3774fi 3775 3776if test -d ${srcdir}/projects/llvm-poolalloc ; then 3777 subdirs="$subdirs projects/llvm-poolalloc" 3778 3779fi 3780 3781for i in `ls ${srcdir}/projects` 3782do 3783 if test -d ${srcdir}/projects/${i} ; then 3784 case ${i} in 3785 safecode) subdirs="$subdirs projects/safecode" 3786 ;; 3787 compiler-rt) ;; 3788 test-suite) ;; 3789 llvm-test) ;; 3790 poolalloc) ;; 3791 llvm-poolalloc) ;; 3792 *) 3793 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3794echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3795 ;; 3796 esac 3797 fi 3798done 3799 3800# Check whether --enable-polly was given. 3801if test "${enable_polly+set}" = set; then 3802 enableval=$enable_polly; 3803else 3804 enableval=default 3805fi 3806 3807case "$enableval" in 3808 yes) ENABLE_POLLY=1 3809 ;; 3810 no) ENABLE_POLLY=0 3811 ;; 3812 default) ENABLE_POLLY=1 3813 ;; 3814 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3815echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3816 { (exit 1); exit 1; }; } ;; 3817esac 3818 3819 3820if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3821 LLVM_HAS_POLLY=1 3822 3823 subdirs="$subdirs tools/polly" 3824 3825fi 3826 3827 3828# Make sure we can run config.sub. 3829$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3830 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3831echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3832 { (exit 1); exit 1; }; } 3833 3834{ echo "$as_me:$LINENO: checking build system type" >&5 3835echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3836if test "${ac_cv_build+set}" = set; then 3837 echo $ECHO_N "(cached) $ECHO_C" >&6 3838else 3839 ac_build_alias=$build_alias 3840test "x$ac_build_alias" = x && 3841 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3842test "x$ac_build_alias" = x && 3843 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3844echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3845 { (exit 1); exit 1; }; } 3846ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3847 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3848echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3849 { (exit 1); exit 1; }; } 3850 3851fi 3852{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3853echo "${ECHO_T}$ac_cv_build" >&6; } 3854case $ac_cv_build in 3855*-*-*) ;; 3856*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3857echo "$as_me: error: invalid value of canonical build" >&2;} 3858 { (exit 1); exit 1; }; };; 3859esac 3860build=$ac_cv_build 3861ac_save_IFS=$IFS; IFS='-' 3862set x $ac_cv_build 3863shift 3864build_cpu=$1 3865build_vendor=$2 3866shift; shift 3867# Remember, the first character of IFS is used to create $*, 3868# except with old shells: 3869build_os=$* 3870IFS=$ac_save_IFS 3871case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3872 3873 3874{ echo "$as_me:$LINENO: checking host system type" >&5 3875echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3876if test "${ac_cv_host+set}" = set; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 if test "x$host_alias" = x; then 3880 ac_cv_host=$ac_cv_build 3881else 3882 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3883 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3884echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3885 { (exit 1); exit 1; }; } 3886fi 3887 3888fi 3889{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3890echo "${ECHO_T}$ac_cv_host" >&6; } 3891case $ac_cv_host in 3892*-*-*) ;; 3893*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3894echo "$as_me: error: invalid value of canonical host" >&2;} 3895 { (exit 1); exit 1; }; };; 3896esac 3897host=$ac_cv_host 3898ac_save_IFS=$IFS; IFS='-' 3899set x $ac_cv_host 3900shift 3901host_cpu=$1 3902host_vendor=$2 3903shift; shift 3904# Remember, the first character of IFS is used to create $*, 3905# except with old shells: 3906host_os=$* 3907IFS=$ac_save_IFS 3908case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3909 3910 3911{ echo "$as_me:$LINENO: checking target system type" >&5 3912echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3913if test "${ac_cv_target+set}" = set; then 3914 echo $ECHO_N "(cached) $ECHO_C" >&6 3915else 3916 if test "x$target_alias" = x; then 3917 ac_cv_target=$ac_cv_host 3918else 3919 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3920 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3921echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3922 { (exit 1); exit 1; }; } 3923fi 3924 3925fi 3926{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3927echo "${ECHO_T}$ac_cv_target" >&6; } 3928case $ac_cv_target in 3929*-*-*) ;; 3930*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3931echo "$as_me: error: invalid value of canonical target" >&2;} 3932 { (exit 1); exit 1; }; };; 3933esac 3934target=$ac_cv_target 3935ac_save_IFS=$IFS; IFS='-' 3936set x $ac_cv_target 3937shift 3938target_cpu=$1 3939target_vendor=$2 3940shift; shift 3941# Remember, the first character of IFS is used to create $*, 3942# except with old shells: 3943target_os=$* 3944IFS=$ac_save_IFS 3945case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3946 3947 3948# The aliases save the names the user supplied, while $host etc. 3949# will get canonicalized. 3950test -n "$target_alias" && 3951 test "$program_prefix$program_suffix$program_transform_name" = \ 3952 NONENONEs,x,x, && 3953 program_prefix=${target_alias}- 3954 3955{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3956echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3957if test "${llvm_cv_os_type+set}" = set; then 3958 echo $ECHO_N "(cached) $ECHO_C" >&6 3959else 3960 case $host in 3961 *-*-aix*) 3962 llvm_cv_link_all_option="-Wl,--whole-archive" 3963 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3964 llvm_cv_os_type="AIX" 3965 llvm_cv_platform_type="Unix" ;; 3966 *-*-irix*) 3967 llvm_cv_link_all_option="-Wl,--whole-archive" 3968 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3969 llvm_cv_os_type="IRIX" 3970 llvm_cv_platform_type="Unix" ;; 3971 *-*-cygwin*) 3972 llvm_cv_link_all_option="-Wl,--whole-archive" 3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3974 llvm_cv_os_type="Cygwin" 3975 llvm_cv_platform_type="Unix" ;; 3976 *-*-darwin*) 3977 llvm_cv_link_all_option="-Wl,-all_load" 3978 llvm_cv_no_link_all_option="-Wl,-noall_load" 3979 llvm_cv_os_type="Darwin" 3980 llvm_cv_platform_type="Unix" ;; 3981 *-*-minix*) 3982 llvm_cv_link_all_option="-Wl,-all_load" 3983 llvm_cv_no_link_all_option="-Wl,-noall_load" 3984 llvm_cv_os_type="Minix" 3985 llvm_cv_platform_type="Unix" ;; 3986 *-*-freebsd*) 3987 llvm_cv_link_all_option="-Wl,--whole-archive" 3988 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3989 llvm_cv_os_type="FreeBSD" 3990 llvm_cv_platform_type="Unix" ;; 3991 *-*-kfreebsd-gnu) 3992 llvm_cv_link_all_option="-Wl,--whole-archive" 3993 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3994 llvm_cv_os_type="GNU/kFreeBSD" 3995 llvm_cv_platform_type="Unix" ;; 3996 *-*-openbsd*) 3997 llvm_cv_link_all_option="-Wl,--whole-archive" 3998 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3999 llvm_cv_os_type="OpenBSD" 4000 llvm_cv_platform_type="Unix" ;; 4001 *-*-netbsd*) 4002 llvm_cv_link_all_option="-Wl,--whole-archive" 4003 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4004 llvm_cv_os_type="NetBSD" 4005 llvm_cv_platform_type="Unix" ;; 4006 *-*-dragonfly*) 4007 llvm_cv_link_all_option="-Wl,--whole-archive" 4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4009 llvm_cv_os_type="DragonFly" 4010 llvm_cv_platform_type="Unix" ;; 4011 *-*-bitrig*) 4012 llvm_cv_link_all_option="-Wl,--whole-archive" 4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4014 llvm_cv_os_type="Bitrig" 4015 llvm_cv_platform_type="Unix" ;; 4016 *-*-hpux*) 4017 llvm_cv_link_all_option="-Wl,--whole-archive" 4018 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4019 llvm_cv_os_type="HP-UX" 4020 llvm_cv_platform_type="Unix" ;; 4021 *-*-interix*) 4022 llvm_cv_link_all_option="-Wl,--whole-archive" 4023 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4024 llvm_cv_os_type="Interix" 4025 llvm_cv_platform_type="Unix" ;; 4026 *-*-linux*) 4027 llvm_cv_link_all_option="-Wl,--whole-archive" 4028 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4029 llvm_cv_os_type="Linux" 4030 llvm_cv_platform_type="Unix" ;; 4031 *-*-gnu*) 4032 llvm_cv_link_all_option="-Wl,--whole-archive" 4033 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4034 llvm_cv_os_type="GNU" 4035 llvm_cv_platform_type="Unix" ;; 4036 *-*-solaris*) 4037 llvm_cv_link_all_option="-Wl,-z,allextract" 4038 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 4039 llvm_cv_os_type="SunOS" 4040 llvm_cv_platform_type="Unix" ;; 4041 *-*-win32*) 4042 llvm_cv_link_all_option="-Wl,--whole-archive" 4043 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4044 llvm_cv_os_type="Win32" 4045 llvm_cv_platform_type="Win32" ;; 4046 *-*-mingw*) 4047 llvm_cv_link_all_option="-Wl,--whole-archive" 4048 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4049 llvm_cv_os_type="MingW" 4050 llvm_cv_platform_type="Win32" ;; 4051 *-*-haiku*) 4052 llvm_cv_link_all_option="-Wl,--whole-archive" 4053 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4054 llvm_cv_os_type="Haiku" 4055 llvm_cv_platform_type="Unix" ;; 4056 *-unknown-eabi*) 4057 llvm_cv_link_all_option="-Wl,--whole-archive" 4058 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4059 llvm_cv_os_type="Freestanding" 4060 llvm_cv_platform_type="Unix" ;; 4061 *-unknown-elf*) 4062 llvm_cv_link_all_option="-Wl,--whole-archive" 4063 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4064 llvm_cv_os_type="Freestanding" 4065 llvm_cv_platform_type="Unix" ;; 4066 *) 4067 llvm_cv_link_all_option="" 4068 llvm_cv_no_link_all_option="" 4069 llvm_cv_os_type="Unknown" 4070 llvm_cv_platform_type="Unknown" ;; 4071esac 4072fi 4073{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 4074echo "${ECHO_T}$llvm_cv_os_type" >&6; } 4075 4076{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 4077echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 4078if test "${llvm_cv_target_os_type+set}" = set; then 4079 echo $ECHO_N "(cached) $ECHO_C" >&6 4080else 4081 case $target in 4082 *-*-aix*) 4083 llvm_cv_target_os_type="AIX" ;; 4084 *-*-irix*) 4085 llvm_cv_target_os_type="IRIX" ;; 4086 *-*-cygwin*) 4087 llvm_cv_target_os_type="Cygwin" ;; 4088 *-*-darwin*) 4089 llvm_cv_target_os_type="Darwin" ;; 4090 *-*-minix*) 4091 llvm_cv_target_os_type="Minix" ;; 4092 *-*-freebsd*) 4093 llvm_cv_target_os_type="FreeBSD" ;; 4094 *-*-kfreebsd-gnu) 4095 llvm_cv_target_os_type="GNU/kFreeBSD" ;; 4096 *-*-openbsd*) 4097 llvm_cv_target_os_type="OpenBSD" ;; 4098 *-*-netbsd*) 4099 llvm_cv_target_os_type="NetBSD" ;; 4100 *-*-dragonfly*) 4101 llvm_cv_target_os_type="DragonFly" ;; 4102 *-*-bitrig*) 4103 llvm_cv_target_os_type="Bitrig" ;; 4104 *-*-hpux*) 4105 llvm_cv_target_os_type="HP-UX" ;; 4106 *-*-interix*) 4107 llvm_cv_target_os_type="Interix" ;; 4108 *-*-linux*) 4109 llvm_cv_target_os_type="Linux" ;; 4110 *-*-gnu*) 4111 llvm_cv_target_os_type="GNU" ;; 4112 *-*-solaris*) 4113 llvm_cv_target_os_type="SunOS" ;; 4114 *-*-win32*) 4115 llvm_cv_target_os_type="Win32" ;; 4116 *-*-mingw*) 4117 llvm_cv_target_os_type="MingW" ;; 4118 *-*-haiku*) 4119 llvm_cv_target_os_type="Haiku" ;; 4120 *-*-rtems*) 4121 llvm_cv_target_os_type="RTEMS" ;; 4122 *-*-nacl*) 4123 llvm_cv_target_os_type="NativeClient" ;; 4124 *-unknown-eabi*) 4125 llvm_cv_target_os_type="Freestanding" ;; 4126 *-*-ps4) 4127 llvm_cv_target_os_type="PS4" ;; 4128 *) 4129 llvm_cv_target_os_type="Unknown" ;; 4130esac 4131fi 4132{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 4133echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 4134 4135if test "$llvm_cv_os_type" = "Unknown" ; then 4136 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 4137echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 4138 { (exit 1); exit 1; }; } 4139fi 4140 4141OS=$llvm_cv_os_type 4142 4143HOST_OS=$llvm_cv_os_type 4144 4145TARGET_OS=$llvm_cv_target_os_type 4146 4147 4148LINKALL=$llvm_cv_link_all_option 4149 4150NOLINKALL=$llvm_cv_no_link_all_option 4151 4152 4153case $llvm_cv_platform_type in 4154 Unix) 4155 4156cat >>confdefs.h <<\_ACEOF 4157#define LLVM_ON_UNIX 1 4158_ACEOF 4159 4160 LLVM_ON_UNIX=1 4161 4162 LLVM_ON_WIN32=0 4163 4164 ;; 4165 Win32) 4166 4167cat >>confdefs.h <<\_ACEOF 4168#define LLVM_ON_WIN32 1 4169_ACEOF 4170 4171 LLVM_ON_UNIX=0 4172 4173 LLVM_ON_WIN32=1 4174 4175 ;; 4176esac 4177 4178{ echo "$as_me:$LINENO: checking target architecture" >&5 4179echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 4180if test "${llvm_cv_target_arch+set}" = set; then 4181 echo $ECHO_N "(cached) $ECHO_C" >&6 4182else 4183 case $target in 4184 i?86-*) llvm_cv_target_arch="x86" ;; 4185 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4186 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4187 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4188 arm64*-*) llvm_cv_target_arch="AArch64" ;; 4189 arm*-*) llvm_cv_target_arch="ARM" ;; 4190 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4191 avr-*) llvm_cv_target_arch="AVR" ;; 4192 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4193 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4194 xcore-*) llvm_cv_target_arch="XCore" ;; 4195 msp430-*) llvm_cv_target_arch="MSP430" ;; 4196 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4197 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4198 s390x-*) llvm_cv_target_arch="SystemZ" ;; 4199 wasm*-*) llvm_cv_target_arch="WebAssembly" ;; 4200 *) llvm_cv_target_arch="Unknown" ;; 4201esac 4202fi 4203{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 4204echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 4205 4206if test "$llvm_cv_target_arch" = "Unknown" ; then 4207 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 4208echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4209fi 4210 4211case "$llvm_cv_target_arch" in 4212 x86) LLVM_NATIVE_ARCH="X86" ;; 4213 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4214 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4215esac 4216 4217ARCH=$llvm_cv_target_arch 4218 4219LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH 4220 4221 4222case $host in 4223 i?86-*) host_arch="x86" ;; 4224 amd64-* | x86_64-*) host_arch="x86_64" ;; 4225 sparc*-*) host_arch="Sparc" ;; 4226 powerpc*-*) host_arch="PowerPC" ;; 4227 arm64*-*) host_arch="AArch64" ;; 4228 arm*-*) host_arch="ARM" ;; 4229 aarch64*-*) host_arch="AArch64" ;; 4230 avr-*) host_arch="AVR" ;; 4231 mips-* | mips64-*) host_arch="Mips" ;; 4232 mipsel-* | mips64el-*) host_arch="Mips" ;; 4233 xcore-*) host_arch="XCore" ;; 4234 msp430-*) host_arch="MSP430" ;; 4235 hexagon-*) host_arch="Hexagon" ;; 4236 s390x-*) host_arch="SystemZ" ;; 4237 wasm*-*) host_arch="WebAssembly" ;; 4238 *) host_arch="Unknown" ;; 4239esac 4240 4241if test "$host_arch" = "Unknown" ; then 4242 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 4243echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4244fi 4245 4246HOST_ARCH=$host_arch 4247 4248 4249if test "$cross_compiling" = yes; then 4250 LLVM_CROSS_COMPILING=1 4251 4252 4253{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4254echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4255if test "${ac_cv_build_exeext+set}" = set; then 4256 echo $ECHO_N "(cached) $ECHO_C" >&6 4257else 4258 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4259 ac_cv_build_exeext=.exe 4260else 4261 ac_build_prefix=${build_alias}- 4262 4263 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4264set dummy ${ac_build_prefix}gcc; ac_word=$2 4265{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4267if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4268 echo $ECHO_N "(cached) $ECHO_C" >&6 4269else 4270 if test -n "$BUILD_CC"; then 4271 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4272else 4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274for as_dir in $PATH 4275do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_exec_ext in '' $ac_executable_extensions; do 4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4280 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4282 break 2 4283 fi 4284done 4285done 4286IFS=$as_save_IFS 4287 4288fi 4289fi 4290BUILD_CC=$ac_cv_prog_BUILD_CC 4291if test -n "$BUILD_CC"; then 4292 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4293echo "${ECHO_T}$BUILD_CC" >&6; } 4294else 4295 { echo "$as_me:$LINENO: result: no" >&5 4296echo "${ECHO_T}no" >&6; } 4297fi 4298 4299 4300 if test -z "$BUILD_CC"; then 4301 # Extract the first word of "gcc", so it can be a program name with args. 4302set dummy gcc; ac_word=$2 4303{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4305if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4306 echo $ECHO_N "(cached) $ECHO_C" >&6 4307else 4308 if test -n "$BUILD_CC"; then 4309 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4310else 4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4312for as_dir in $PATH 4313do 4314 IFS=$as_save_IFS 4315 test -z "$as_dir" && as_dir=. 4316 for ac_exec_ext in '' $ac_executable_extensions; do 4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4318 ac_cv_prog_BUILD_CC="gcc" 4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4320 break 2 4321 fi 4322done 4323done 4324IFS=$as_save_IFS 4325 4326fi 4327fi 4328BUILD_CC=$ac_cv_prog_BUILD_CC 4329if test -n "$BUILD_CC"; then 4330 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4331echo "${ECHO_T}$BUILD_CC" >&6; } 4332else 4333 { echo "$as_me:$LINENO: result: no" >&5 4334echo "${ECHO_T}no" >&6; } 4335fi 4336 4337 4338 if test -z "$BUILD_CC"; then 4339 # Extract the first word of "cc", so it can be a program name with args. 4340set dummy cc; ac_word=$2 4341{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4343if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4344 echo $ECHO_N "(cached) $ECHO_C" >&6 4345else 4346 if test -n "$BUILD_CC"; then 4347 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4348else 4349 ac_prog_rejected=no 4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4351for as_dir in $PATH 4352do 4353 IFS=$as_save_IFS 4354 test -z "$as_dir" && as_dir=. 4355 for ac_exec_ext in '' $ac_executable_extensions; do 4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4358 ac_prog_rejected=yes 4359 continue 4360 fi 4361 ac_cv_prog_BUILD_CC="cc" 4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4363 break 2 4364 fi 4365done 4366done 4367IFS=$as_save_IFS 4368 4369if test $ac_prog_rejected = yes; then 4370 # We found a bogon in the path, so make sure we never use it. 4371 set dummy $ac_cv_prog_BUILD_CC 4372 shift 4373 if test $# != 0; then 4374 # We chose a different compiler from the bogus one. 4375 # However, it has the same basename, so the bogon will be chosen 4376 # first if we set BUILD_CC to just the basename; use the full file name. 4377 shift 4378 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4379 fi 4380fi 4381fi 4382fi 4383BUILD_CC=$ac_cv_prog_BUILD_CC 4384if test -n "$BUILD_CC"; then 4385 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4386echo "${ECHO_T}$BUILD_CC" >&6; } 4387else 4388 { echo "$as_me:$LINENO: result: no" >&5 4389echo "${ECHO_T}no" >&6; } 4390fi 4391 4392 4393 fi 4394 fi 4395 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4396echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4397 { (exit 1); exit 1; }; } 4398 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4399 rm -f conftest* 4400 echo 'int main () { return 0; }' > conftest.$ac_ext 4401 ac_cv_build_exeext= 4402 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4403 (eval $ac_build_link) 2>&5 4404 ac_status=$? 4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4406 (exit $ac_status); }; then 4407 for file in conftest.*; do 4408 case $file in 4409 *.c | *.o | *.obj | *.dSYM) ;; 4410 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4411 esac 4412 done 4413 else 4414 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4415echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4416 { (exit 1); exit 1; }; } 4417 fi 4418 rm -f conftest* 4419 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4420fi 4421fi 4422 4423BUILD_EXEEXT="" 4424test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4425{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4426echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4427ac_build_exeext=$BUILD_EXEEXT 4428 4429 ac_build_prefix=${build_alias}- 4430 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4431set dummy ${ac_build_prefix}g++; ac_word=$2 4432{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4434if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4435 echo $ECHO_N "(cached) $ECHO_C" >&6 4436else 4437 if test -n "$BUILD_CXX"; then 4438 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4439else 4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441for as_dir in $PATH 4442do 4443 IFS=$as_save_IFS 4444 test -z "$as_dir" && as_dir=. 4445 for ac_exec_ext in '' $ac_executable_extensions; do 4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4447 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4449 break 2 4450 fi 4451done 4452done 4453IFS=$as_save_IFS 4454 4455fi 4456fi 4457BUILD_CXX=$ac_cv_prog_BUILD_CXX 4458if test -n "$BUILD_CXX"; then 4459 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4460echo "${ECHO_T}$BUILD_CXX" >&6; } 4461else 4462 { echo "$as_me:$LINENO: result: no" >&5 4463echo "${ECHO_T}no" >&6; } 4464fi 4465 4466 4467 if test -z "$BUILD_CXX"; then 4468 # Extract the first word of "g++", so it can be a program name with args. 4469set dummy g++; ac_word=$2 4470{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4472if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4473 echo $ECHO_N "(cached) $ECHO_C" >&6 4474else 4475 if test -n "$BUILD_CXX"; then 4476 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4477else 4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4479for as_dir in $PATH 4480do 4481 IFS=$as_save_IFS 4482 test -z "$as_dir" && as_dir=. 4483 for ac_exec_ext in '' $ac_executable_extensions; do 4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4485 ac_cv_prog_BUILD_CXX="g++" 4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4487 break 2 4488 fi 4489done 4490done 4491IFS=$as_save_IFS 4492 4493fi 4494fi 4495BUILD_CXX=$ac_cv_prog_BUILD_CXX 4496if test -n "$BUILD_CXX"; then 4497 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4498echo "${ECHO_T}$BUILD_CXX" >&6; } 4499else 4500 { echo "$as_me:$LINENO: result: no" >&5 4501echo "${ECHO_T}no" >&6; } 4502fi 4503 4504 4505 if test -z "$BUILD_CXX"; then 4506 # Extract the first word of "c++", so it can be a program name with args. 4507set dummy c++; ac_word=$2 4508{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4510if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4511 echo $ECHO_N "(cached) $ECHO_C" >&6 4512else 4513 if test -n "$BUILD_CXX"; then 4514 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4515else 4516 ac_prog_rejected=no 4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4518for as_dir in $PATH 4519do 4520 IFS=$as_save_IFS 4521 test -z "$as_dir" && as_dir=. 4522 for ac_exec_ext in '' $ac_executable_extensions; do 4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4525 ac_prog_rejected=yes 4526 continue 4527 fi 4528 ac_cv_prog_BUILD_CXX="c++" 4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4530 break 2 4531 fi 4532done 4533done 4534IFS=$as_save_IFS 4535 4536if test $ac_prog_rejected = yes; then 4537 # We found a bogon in the path, so make sure we never use it. 4538 set dummy $ac_cv_prog_BUILD_CXX 4539 shift 4540 if test $# != 0; then 4541 # We chose a different compiler from the bogus one. 4542 # However, it has the same basename, so the bogon will be chosen 4543 # first if we set BUILD_CXX to just the basename; use the full file name. 4544 shift 4545 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4546 fi 4547fi 4548fi 4549fi 4550BUILD_CXX=$ac_cv_prog_BUILD_CXX 4551if test -n "$BUILD_CXX"; then 4552 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4553echo "${ECHO_T}$BUILD_CXX" >&6; } 4554else 4555 { echo "$as_me:$LINENO: result: no" >&5 4556echo "${ECHO_T}no" >&6; } 4557fi 4558 4559 4560 fi 4561 fi 4562else 4563 LLVM_CROSS_COMPILING=0 4564 4565fi 4566 4567if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4568 cvsbuild="yes" 4569 optimize="no" 4570 CVSBUILD=CVSBUILD=1 4571 4572else 4573 cvsbuild="no" 4574 optimize="yes" 4575fi 4576 4577 4578# Check whether --enable-libcpp was given. 4579if test "${enable_libcpp+set}" = set; then 4580 enableval=$enable_libcpp; 4581else 4582 enableval=default 4583fi 4584 4585case "$enableval" in 4586 yes) ENABLE_LIBCPP=1 4587 ;; 4588 no) ENABLE_LIBCPP=0 4589 ;; 4590 default) ENABLE_LIBCPP=0 4591;; 4592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 4593echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 4594 { (exit 1); exit 1; }; } ;; 4595esac 4596 4597# Check whether --enable-compiler-version-checks was given. 4598if test "${enable_compiler_version_checks+set}" = set; then 4599 enableval=$enable_compiler_version_checks; 4600else 4601 enableval=default 4602fi 4603 4604case "$enableval" in 4605 no) 4606 ;; 4607 yes|default) 4608 ac_ext=cpp 4609ac_cpp='$CXXCPP $CPPFLAGS' 4610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4613 4614 case "$llvm_cv_cxx_compiler" in 4615 clang) 4616 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5 4617echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; } 4618 cat >conftest.$ac_ext <<_ACEOF 4619/* confdefs.h. */ 4620_ACEOF 4621cat confdefs.h >>conftest.$ac_ext 4622cat >>conftest.$ac_ext <<_ACEOF 4623/* end confdefs.h. */ 4624 4625#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1) 4626#error This version of Clang is too old to build LLVM 4627#endif 4628 4629_ACEOF 4630rm -f conftest.$ac_objext 4631if { (ac_try="$ac_compile" 4632case "(($ac_try" in 4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4634 *) ac_try_echo=$ac_try;; 4635esac 4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4637 (eval "$ac_compile") 2>conftest.er1 4638 ac_status=$? 4639 grep -v '^ *+' conftest.er1 >conftest.err 4640 rm -f conftest.er1 4641 cat conftest.err >&5 4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4643 (exit $ac_status); } && 4644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4645 { (case "(($ac_try" in 4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4647 *) ac_try_echo=$ac_try;; 4648esac 4649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4650 (eval "$ac_try") 2>&5 4651 ac_status=$? 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4653 (exit $ac_status); }; } && 4654 { ac_try='test -s conftest.$ac_objext' 4655 { (case "(($ac_try" in 4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4657 *) ac_try_echo=$ac_try;; 4658esac 4659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4660 (eval "$ac_try") 2>&5 4661 ac_status=$? 4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4663 (exit $ac_status); }; }; then 4664 { echo "$as_me:$LINENO: result: yes" >&5 4665echo "${ECHO_T}yes" >&6; } 4666else 4667 echo "$as_me: failed program was:" >&5 4668sed 's/^/| /' conftest.$ac_ext >&5 4669 4670 { echo "$as_me:$LINENO: result: no" >&5 4671echo "${ECHO_T}no" >&6; } 4672 { { echo "$as_me:$LINENO: error: 4673The selected Clang compiler is not new enough to build LLVM. Please upgrade to 4674Clang 3.1. You may pass --disable-compiler-version-checks to configure to 4675bypass these sanity checks." >&5 4676echo "$as_me: error: 4677The selected Clang compiler is not new enough to build LLVM. Please upgrade to 4678Clang 3.1. You may pass --disable-compiler-version-checks to configure to 4679bypass these sanity checks." >&2;} 4680 { (exit 1); exit 1; }; } 4681fi 4682 4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4684 4685 if test "$ENABLE_LIBCPP" -eq 0 ; then 4686 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5 4687echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; } 4688 llvm_cv_old_cxxflags="$CXXFLAGS" 4689 CXXFLAGS="$CXXFLAGS -std=c++0x" 4690 cat >conftest.$ac_ext <<_ACEOF 4691/* confdefs.h. */ 4692_ACEOF 4693cat confdefs.h >>conftest.$ac_ext 4694cat >>conftest.$ac_ext <<_ACEOF 4695/* end confdefs.h. */ 4696 4697#include <atomic> 4698std::atomic<float> x(0.0f); 4699int main() { return (float)x; } 4700 4701_ACEOF 4702rm -f conftest.$ac_objext conftest$ac_exeext 4703if { (ac_try="$ac_link" 4704case "(($ac_try" in 4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4706 *) ac_try_echo=$ac_try;; 4707esac 4708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4709 (eval "$ac_link") 2>conftest.er1 4710 ac_status=$? 4711 grep -v '^ *+' conftest.er1 >conftest.err 4712 rm -f conftest.er1 4713 cat conftest.err >&5 4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4715 (exit $ac_status); } && 4716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4717 { (case "(($ac_try" in 4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4719 *) ac_try_echo=$ac_try;; 4720esac 4721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4722 (eval "$ac_try") 2>&5 4723 ac_status=$? 4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4725 (exit $ac_status); }; } && 4726 { ac_try='test -s conftest$ac_exeext' 4727 { (case "(($ac_try" in 4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4729 *) ac_try_echo=$ac_try;; 4730esac 4731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4732 (eval "$ac_try") 2>&5 4733 ac_status=$? 4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4735 (exit $ac_status); }; }; then 4736 { echo "$as_me:$LINENO: result: yes" >&5 4737echo "${ECHO_T}yes" >&6; } 4738else 4739 echo "$as_me: failed program was:" >&5 4740sed 's/^/| /' conftest.$ac_ext >&5 4741 4742 { echo "$as_me:$LINENO: result: no" >&5 4743echo "${ECHO_T}no" >&6; } 4744 { { echo "$as_me:$LINENO: error: 4745We detected a missing feature in the standard C++ library that was known to be 4746missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous 4747C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older 4748than 4.7. You will need to update your system and ensure Clang uses the newer 4749standard library. 4750 4751If this error is incorrect or you need to force things to work, you may pass 4752'--disable-compiler-version-checks' to configure to bypass this test." >&5 4753echo "$as_me: error: 4754We detected a missing feature in the standard C++ library that was known to be 4755missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous 4756C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older 4757than 4.7. You will need to update your system and ensure Clang uses the newer 4758standard library. 4759 4760If this error is incorrect or you need to force things to work, you may pass 4761'--disable-compiler-version-checks' to configure to bypass this test." >&2;} 4762 { (exit 1); exit 1; }; } 4763fi 4764 4765rm -f core conftest.err conftest.$ac_objext \ 4766 conftest$ac_exeext conftest.$ac_ext 4767 CXXFLAGS="$llvm_cv_old_cxxflags" 4768 fi 4769 ;; 4770 gcc) 4771 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5 4772echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; } 4773 cat >conftest.$ac_ext <<_ACEOF 4774/* confdefs.h. */ 4775_ACEOF 4776cat confdefs.h >>conftest.$ac_ext 4777cat >>conftest.$ac_ext <<_ACEOF 4778/* end confdefs.h. */ 4779 4780#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) 4781#error This version of GCC is too old to build LLVM 4782#endif 4783 4784_ACEOF 4785rm -f conftest.$ac_objext 4786if { (ac_try="$ac_compile" 4787case "(($ac_try" in 4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4789 *) ac_try_echo=$ac_try;; 4790esac 4791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4792 (eval "$ac_compile") 2>conftest.er1 4793 ac_status=$? 4794 grep -v '^ *+' conftest.er1 >conftest.err 4795 rm -f conftest.er1 4796 cat conftest.err >&5 4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798 (exit $ac_status); } && 4799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4800 { (case "(($ac_try" in 4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4802 *) ac_try_echo=$ac_try;; 4803esac 4804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4805 (eval "$ac_try") 2>&5 4806 ac_status=$? 4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4808 (exit $ac_status); }; } && 4809 { ac_try='test -s conftest.$ac_objext' 4810 { (case "(($ac_try" in 4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4812 *) ac_try_echo=$ac_try;; 4813esac 4814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4815 (eval "$ac_try") 2>&5 4816 ac_status=$? 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); }; }; then 4819 { echo "$as_me:$LINENO: result: yes" >&5 4820echo "${ECHO_T}yes" >&6; } 4821else 4822 echo "$as_me: failed program was:" >&5 4823sed 's/^/| /' conftest.$ac_ext >&5 4824 4825 { echo "$as_me:$LINENO: result: no" >&5 4826echo "${ECHO_T}no" >&6; } 4827 { { echo "$as_me:$LINENO: error: 4828The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade 4829to GCC 4.7. You may pass --disable-compiler-version-checks to configure to 4830bypass these sanity checks." >&5 4831echo "$as_me: error: 4832The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade 4833to GCC 4.7. You may pass --disable-compiler-version-checks to configure to 4834bypass these sanity checks." >&2;} 4835 { (exit 1); exit 1; }; } 4836fi 4837 4838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4839 ;; 4840 unknown) 4841 ;; 4842 esac 4843 ac_ext=c 4844ac_cpp='$CPP $CPPFLAGS' 4845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4847ac_compiler_gnu=$ac_cv_c_compiler_gnu 4848 4849 ;; 4850 *) 4851 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5 4852echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;} 4853 { (exit 1); exit 1; }; } 4854 ;; 4855esac 4856 4857# Check whether --enable-cxx1y was given. 4858if test "${enable_cxx1y+set}" = set; then 4859 enableval=$enable_cxx1y; 4860else 4861 enableval=default 4862fi 4863 4864case "$enableval" in 4865 yes) ENABLE_CXX1Y=1 4866 ;; 4867 no) ENABLE_CXX1Y=0 4868 ;; 4869 default) ENABLE_CXX1Y=0 4870;; 4871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5 4872echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;} 4873 { (exit 1); exit 1; }; } ;; 4874esac 4875 4876# Check whether --enable-split-dwarf was given. 4877if test "${enable_split_dwarf+set}" = set; then 4878 enableval=$enable_split_dwarf; 4879else 4880 enableval=default 4881fi 4882 4883case "$enableval" in 4884 yes) ENABLE_SPLIT_DWARF=1 4885 ;; 4886 no) ENABLE_SPLIT_DWARF=0 4887 ;; 4888 default) ENABLE_SPLIT_DWARF=0 4889;; 4890 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5 4891echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;} 4892 { (exit 1); exit 1; }; } ;; 4893esac 4894 4895clang_arcmt="yes" 4896# Check whether --enable-clang-arcmt was given. 4897if test "${enable_clang_arcmt+set}" = set; then 4898 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 4899else 4900 enableval="yes" 4901fi 4902 4903case "$enableval" in 4904 yes) ENABLE_CLANG_ARCMT=1 4905 ;; 4906 no) ENABLE_CLANG_ARCMT=0 4907 ;; 4908 default) ENABLE_CLANG_ARCMT=1 4909;; 4910 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 4911echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} 4912 { (exit 1); exit 1; }; } ;; 4913esac 4914 4915clang_plugin_support="yes" 4916# Check whether --enable-clang-plugin-support was given. 4917if test "${enable_clang_plugin_support+set}" = set; then 4918 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval" 4919else 4920 enableval="yes" 4921fi 4922 4923case "$enableval" in 4924 yes) CLANG_PLUGIN_SUPPORT=1 4925 ;; 4926 no) CLANG_PLUGIN_SUPPORT=0 4927 ;; 4928 default) CLANG_PLUGIN_SUPPORT=1 4929;; 4930 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5 4931echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;} 4932 { (exit 1); exit 1; }; } ;; 4933esac 4934 4935clang_static_analyzer="yes" 4936# Check whether --enable-clang-static-analyzer was given. 4937if test "${enable_clang_static_analyzer+set}" = set; then 4938 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 4939else 4940 enableval="yes" 4941fi 4942 4943case "$enableval" in 4944 yes) ENABLE_CLANG_STATIC_ANALYZER=1 4945 ;; 4946 no) 4947 if test ${clang_arcmt} != "no" ; then 4948 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5 4949echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;} 4950 { (exit 1); exit 1; }; } 4951 fi 4952 ENABLE_CLANG_STATIC_ANALYZER=0 4953 4954 ;; 4955 default) ENABLE_CLANG_STATIC_ANALYZER=1 4956;; 4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 4958echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} 4959 { (exit 1); exit 1; }; } ;; 4960esac 4961 4962# Check whether --enable-optimized was given. 4963if test "${enable_optimized+set}" = set; then 4964 enableval=$enable_optimized; 4965else 4966 enableval=$optimize 4967fi 4968 4969if test ${enableval} = "no" ; then 4970 ENABLE_OPTIMIZED= 4971 4972else 4973 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4974 4975fi 4976 4977# Check whether --enable-profiling was given. 4978if test "${enable_profiling+set}" = set; then 4979 enableval=$enable_profiling; 4980else 4981 enableval="no" 4982fi 4983 4984if test ${enableval} = "no" ; then 4985 ENABLE_PROFILING= 4986 4987else 4988 ENABLE_PROFILING=ENABLE_PROFILING=1 4989 4990fi 4991 4992# Check whether --enable-assertions was given. 4993if test "${enable_assertions+set}" = set; then 4994 enableval=$enable_assertions; 4995else 4996 enableval="yes" 4997fi 4998 4999if test ${enableval} = "yes" ; then 5000 DISABLE_ASSERTIONS= 5001 5002 assertions_enabled="yes" 5003else 5004 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5005 5006 assertions_enabled="no" 5007fi 5008 5009# Check whether --enable-werror was given. 5010if test "${enable_werror+set}" = set; then 5011 enableval=$enable_werror; 5012else 5013 enableval="no" 5014fi 5015 5016case "$enableval" in 5017 yes) ENABLE_WERROR=1 5018 ;; 5019 no) ENABLE_WERROR=0 5020 ;; 5021 default) ENABLE_WERROR=0 5022;; 5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5024echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5025 { (exit 1); exit 1; }; } ;; 5026esac 5027 5028# Check whether --enable-expensive-checks was given. 5029if test "${enable_expensive_checks+set}" = set; then 5030 enableval=$enable_expensive_checks; 5031else 5032 enableval="no" 5033fi 5034 5035if test ${enableval} = "yes" ; then 5036 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5037 5038 EXPENSIVE_CHECKS=yes 5039 5040else 5041 ENABLE_EXPENSIVE_CHECKS= 5042 5043 EXPENSIVE_CHECKS=no 5044 5045fi 5046 5047# Check whether --enable-abi-breaking-checks was given. 5048if test "${enable_abi_breaking_checks+set}" = set; then 5049 enableval=$enable_abi_breaking_checks; 5050else 5051 enableval="with-asserts" 5052fi 5053 5054case "$enableval" in 5055 with-asserts) if test ${assertions_enabled} = "yes" ; then 5056 5057cat >>confdefs.h <<\_ACEOF 5058#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 5059_ACEOF 5060 5061 ENABLE_ABI_BREAKING_CHECKS=1 5062 5063 else 5064 ENABLE_ABI_BREAKING_CHECKS=0 5065 5066 fi ;; 5067 yes) 5068 5069cat >>confdefs.h <<\_ACEOF 5070#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 5071_ACEOF 5072 5073 ENABLE_ABI_BREAKING_CHECKS=1 5074 5075 ;; 5076 no) 5077 ENABLE_ABI_BREAKING_CHECKS=0 5078 5079 ;; 5080 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5 5081echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;} 5082 { (exit 1); exit 1; }; } 5083esac 5084 5085# Check whether --enable-debug-runtime was given. 5086if test "${enable_debug_runtime+set}" = set; then 5087 enableval=$enable_debug_runtime; 5088else 5089 enableval=no 5090fi 5091 5092if test ${enableval} = "no" ; then 5093 DEBUG_RUNTIME= 5094 5095else 5096 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5097 5098fi 5099 5100# Check whether --enable-debug-symbols was given. 5101if test "${enable_debug_symbols+set}" = set; then 5102 enableval=$enable_debug_symbols; 5103else 5104 enableval=no 5105fi 5106 5107if test ${enableval} = "no" ; then 5108 DEBUG_SYMBOLS= 5109 5110else 5111 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5112 5113fi 5114 5115# Check whether --enable-keep-symbols was given. 5116if test "${enable_keep_symbols+set}" = set; then 5117 enableval=$enable_keep_symbols; 5118else 5119 enableval=no 5120fi 5121 5122if test ${enableval} = "no" ; then 5123 KEEP_SYMBOLS= 5124 5125else 5126 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5127 5128fi 5129 5130# Check whether --enable-jit was given. 5131if test "${enable_jit+set}" = set; then 5132 enableval=$enable_jit; 5133else 5134 enableval=default 5135fi 5136 5137if test ${enableval} = "no" 5138then 5139 JIT= 5140 5141else 5142 case "$llvm_cv_target_arch" in 5143 x86) TARGET_HAS_JIT=1 5144 ;; 5145 Sparc) TARGET_HAS_JIT=0 5146 ;; 5147 PowerPC) TARGET_HAS_JIT=1 5148 ;; 5149 x86_64) TARGET_HAS_JIT=1 5150 ;; 5151 ARM) TARGET_HAS_JIT=1 5152 ;; 5153 AVR) TARGET_HAS_JIT=0 5154 ;; 5155 Mips) TARGET_HAS_JIT=1 5156 ;; 5157 XCore) TARGET_HAS_JIT=0 5158 ;; 5159 MSP430) TARGET_HAS_JIT=0 5160 ;; 5161 Hexagon) TARGET_HAS_JIT=0 5162 ;; 5163 NVPTX) TARGET_HAS_JIT=0 5164 ;; 5165 SystemZ) TARGET_HAS_JIT=1 5166 ;; 5167 WebAssembly) TARGET_HAS_JIT=0 5168 ;; 5169 *) TARGET_HAS_JIT=0 5170 ;; 5171 esac 5172fi 5173 5174TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86" 5175TARGETS_WITH_JIT=$TARGETS_WITH_JIT 5176 5177 5178# Check whether --enable-docs was given. 5179if test "${enable_docs+set}" = set; then 5180 enableval=$enable_docs; 5181else 5182 enableval=default 5183fi 5184 5185case "$enableval" in 5186 yes) ENABLE_DOCS=1 5187 ;; 5188 no) ENABLE_DOCS=0 5189 ;; 5190 default) ENABLE_DOCS=1 5191 ;; 5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5193echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5194 { (exit 1); exit 1; }; } ;; 5195esac 5196 5197# Check whether --enable-doxygen was given. 5198if test "${enable_doxygen+set}" = set; then 5199 enableval=$enable_doxygen; 5200else 5201 enableval=default 5202fi 5203 5204case "$enableval" in 5205 yes) ENABLE_DOXYGEN=1 5206 ;; 5207 no|default) ENABLE_DOXYGEN=0 5208 ;; 5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5210echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5211 { (exit 1); exit 1; }; } ;; 5212esac 5213 5214# Check whether --enable-doxygen-search was given. 5215if test "${enable_doxygen_search+set}" = set; then 5216 enableval=$enable_doxygen_search; 5217else 5218 enableval=default 5219fi 5220 5221ENABLE_DOXYGEN_SEARCH="$enableval" 5222 5223case "$enableval" in 5224 yes|no|default) ;; 5225 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5 5226echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;} 5227 { (exit 1); exit 1; }; } ;; 5228esac 5229 5230# Check whether --enable-doxygen-external-search was given. 5231if test "${enable_doxygen_external_search+set}" = set; then 5232 enableval=$enable_doxygen_external_search; 5233else 5234 enableval=default 5235fi 5236 5237ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval" 5238 5239case "$enableval" in 5240 yes) 5241 case "$ENABLE_DOXYGEN_SEARCH" in 5242 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;; 5243 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5 5244echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;} 5245 { (exit 1); exit 1; }; } ;; 5246 esac 5247 ;; 5248 no|default) ;; 5249 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5 5250echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;} 5251 { (exit 1); exit 1; }; } ;; 5252esac 5253 5254 5255# Check whether --with-doxygen-search-engine-url was given. 5256if test "${with_doxygen_search_engine_url+set}" = set; then 5257 withval=$with_doxygen_search_engine_url; 5258fi 5259 5260WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval" 5261 5262 5263# Check whether --with-doxygen-search-mappings was given. 5264if test "${with_doxygen_search_mappings+set}" = set; then 5265 withval=$with_doxygen_search_mappings; 5266fi 5267 5268WITH_DOXYGEN_SEARCH_MAPPINGS="$withval" 5269 5270case "$ENABLE_DOXYGEN_SEARCH" in 5271 yes) 5272 if test "$ENABLE_DOXYGEN" = "0" ; then 5273 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5 5274echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;} 5275 { (exit 1); exit 1; }; } 5276 fi 5277 5278 enable_searchengine=YES 5279 5280 5281 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in 5282 yes) 5283 enable_external_search=YES 5284 5285 enable_server_based_search=YES 5286 5287 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL" 5288 5289 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS" 5290 5291 ;; 5292 5293 no|default) 5294 enable_external_search=NO 5295 5296 enable_server_based_search=NO 5297 5298 5299 5300 ;; 5301 esac 5302 ;; 5303 5304 no|default) 5305 enable_searchengine=NO 5306 5307 5308 enable_server_based_search=NO 5309 5310 enable_external_search=NO 5311 5312 5313 ;; 5314 5315 *) 5316 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5 5317echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;} 5318 { (exit 1); exit 1; }; } 5319 ;; 5320esac 5321 5322# Check whether --enable-doxygen-qt-help was given. 5323if test "${enable_doxygen_qt_help+set}" = set; then 5324 enableval=$enable_doxygen_qt_help; 5325else 5326 enableval=default 5327fi 5328 5329case "$enableval" in 5330 yes) 5331 if test "$ENABLE_DOXYGEN" = "0" ; then 5332 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5 5333echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;} 5334 { (exit 1); exit 1; }; } 5335 fi 5336 5337 # Extract the first word of "qhelpgenerator", so it can be a program name with args. 5338set dummy qhelpgenerator; ac_word=$2 5339{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5341if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then 5342 echo $ECHO_N "(cached) $ECHO_C" >&6 5343else 5344 case $QHELPGENERATOR in 5345 [\\/]* | ?:[\\/]*) 5346 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path. 5347 ;; 5348 *) 5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5350for as_dir in $PATH 5351do 5352 IFS=$as_save_IFS 5353 test -z "$as_dir" && as_dir=. 5354 for ac_exec_ext in '' $ac_executable_extensions; do 5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5356 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext" 5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5358 break 2 5359 fi 5360done 5361done 5362IFS=$as_save_IFS 5363 5364 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator" 5365 ;; 5366esac 5367fi 5368QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR 5369if test -n "$QHELPGENERATOR"; then 5370 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5 5371echo "${ECHO_T}$QHELPGENERATOR" >&6; } 5372else 5373 { echo "$as_me:$LINENO: result: no" >&5 5374echo "${ECHO_T}no" >&6; } 5375fi 5376 5377 5378 5379 llvm_doxygen_generate_qhp=YES 5380 5381 llvm_doxygen_qch_filename=org.llvm.qch 5382 5383 llvm_doxygen_qhp_namespace=org.llvm 5384 5385 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR" 5386 5387 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING" 5388 5389 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION" 5390 5391 5392 clang_doxygen_generate_qhp=YES 5393 5394 clang_doxygen_qch_filename=org.llvm.clang.qch 5395 5396 clang_doxygen_qhp_namespace=org.llvm.clang 5397 5398 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR" 5399 5400 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" 5401 5402 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" 5403 5404 ;; 5405 5406 no|default) 5407 llvm_doxygen_generate_qhp=NO 5408 5409 5410 5411 5412 5413 5414 5415 clang_doxygen_generate_qhp=NO 5416 5417 5418 5419 5420 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" 5421 5422 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" 5423 5424 ;; 5425 5426 *) 5427 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5 5428echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;} 5429 { (exit 1); exit 1; }; } ;; 5430esac 5431 5432# Check whether --enable-threads was given. 5433if test "${enable_threads+set}" = set; then 5434 enableval=$enable_threads; 5435else 5436 enableval=default 5437fi 5438 5439case "$enableval" in 5440 yes) LLVM_ENABLE_THREADS=1 5441 ;; 5442 no) LLVM_ENABLE_THREADS=0 5443 ;; 5444 default) LLVM_ENABLE_THREADS=1 5445 ;; 5446 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5447echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5448 { (exit 1); exit 1; }; } ;; 5449esac 5450 5451cat >>confdefs.h <<_ACEOF 5452#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5453_ACEOF 5454 5455 5456# Check whether --enable-pthreads was given. 5457if test "${enable_pthreads+set}" = set; then 5458 enableval=$enable_pthreads; 5459else 5460 enableval=default 5461fi 5462 5463case "$enableval" in 5464 yes) ENABLE_PTHREADS=1 5465 ;; 5466 no) ENABLE_PTHREADS=0 5467 ;; 5468 default) ENABLE_PTHREADS=1 5469 ;; 5470 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5471echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5472 { (exit 1); exit 1; }; } ;; 5473esac 5474 5475# Check whether --enable-zlib was given. 5476if test "${enable_zlib+set}" = set; then 5477 enableval=$enable_zlib; 5478else 5479 enableval=default 5480fi 5481 5482case "$enableval" in 5483 yes) LLVM_ENABLE_ZLIB=1 5484 ;; 5485 no) LLVM_ENABLE_ZLIB=0 5486 ;; 5487 default) LLVM_ENABLE_ZLIB=1 5488 ;; 5489 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5 5490echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;} 5491 { (exit 1); exit 1; }; } ;; 5492esac 5493 5494cat >>confdefs.h <<_ACEOF 5495#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB 5496_ACEOF 5497 5498 5499# Check whether --enable-pic was given. 5500if test "${enable_pic+set}" = set; then 5501 enableval=$enable_pic; 5502else 5503 enableval=default 5504fi 5505 5506case "$enableval" in 5507 yes) ENABLE_PIC=1 5508 ;; 5509 no) ENABLE_PIC=0 5510 ;; 5511 default) ENABLE_PIC=1 5512 ;; 5513 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5514echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5515 { (exit 1); exit 1; }; } ;; 5516esac 5517 5518cat >>confdefs.h <<_ACEOF 5519#define ENABLE_PIC $ENABLE_PIC 5520_ACEOF 5521 5522 5523# Check whether --enable-shared was given. 5524if test "${enable_shared+set}" = set; then 5525 enableval=$enable_shared; 5526else 5527 enableval=default 5528fi 5529 5530case "$enableval" in 5531 yes) ENABLE_SHARED=1 5532 ;; 5533 no) ENABLE_SHARED=0 5534 ;; 5535 default) ENABLE_SHARED=0 5536 ;; 5537 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5538echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5539 { (exit 1); exit 1; }; } ;; 5540esac 5541 5542# Check whether --enable-embed-stdcxx was given. 5543if test "${enable_embed_stdcxx+set}" = set; then 5544 enableval=$enable_embed_stdcxx; 5545else 5546 enableval=default 5547fi 5548 5549case "$enableval" in 5550 yes) ENABLE_EMBED_STDCXX=1 5551 ;; 5552 no) ENABLE_EMBED_STDCXX=0 5553 ;; 5554 default) ENABLE_EMBED_STDCXX=0 5555 ;; 5556 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5557echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5558 { (exit 1); exit 1; }; } ;; 5559esac 5560 5561# Check whether --enable-timestamps was given. 5562if test "${enable_timestamps+set}" = set; then 5563 enableval=$enable_timestamps; 5564else 5565 enableval=default 5566fi 5567 5568case "$enableval" in 5569 yes) ENABLE_TIMESTAMPS=1 5570 ;; 5571 no) ENABLE_TIMESTAMPS=0 5572 ;; 5573 default) ENABLE_TIMESTAMPS=1 5574 ;; 5575 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5576echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5577 { (exit 1); exit 1; }; } ;; 5578esac 5579 5580cat >>confdefs.h <<_ACEOF 5581#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5582_ACEOF 5583 5584 5585# Check whether --enable-backtraces was given. 5586if test "${enable_backtraces+set}" = set; then 5587 enableval=$enable_backtraces; case "$enableval" in 5588 yes) llvm_cv_enable_backtraces="yes" ;; 5589 no) llvm_cv_enable_backtraces="no" ;; 5590 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 5591echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} 5592 { (exit 1); exit 1; }; } ;; 5593 esac 5594else 5595 llvm_cv_enable_backtraces="yes" 5596fi 5597 5598if test "$llvm_cv_enable_backtraces" = "yes" ; then 5599 5600cat >>confdefs.h <<\_ACEOF 5601#define ENABLE_BACKTRACES 1 5602_ACEOF 5603 5604fi 5605 5606# Check whether --enable-crash-overrides was given. 5607if test "${enable_crash_overrides+set}" = set; then 5608 enableval=$enable_crash_overrides; case "$enableval" in 5609 yes) llvm_cv_enable_crash_overrides="yes" ;; 5610 no) llvm_cv_enable_crash_overrides="no" ;; 5611 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5 5612echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;} 5613 { (exit 1); exit 1; }; } ;; 5614 esac 5615else 5616 llvm_cv_enable_crash_overrides="yes" 5617fi 5618 5619if test "$llvm_cv_enable_crash_overrides" = "yes" ; then 5620 5621cat >>confdefs.h <<\_ACEOF 5622#define ENABLE_CRASH_OVERRIDES 1 5623_ACEOF 5624 5625fi 5626 5627ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF" 5628ALL_TARGETS=$ALL_TARGETS 5629 5630 5631TARGETS_TO_BUILD="" 5632# Check whether --enable-targets was given. 5633if test "${enable_targets+set}" = set; then 5634 enableval=$enable_targets; 5635else 5636 enableval=all 5637fi 5638 5639if test "$enableval" = host-only ; then 5640 enableval=host 5641fi 5642case "$enableval" in 5643 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;; 5644 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5645 case "$a_target" 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 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5652 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5653 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;; 5654 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5655 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5656 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5657 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5658 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5659 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5660 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5661 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5662 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5663 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5664 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;; 5665 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;; 5666 wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;; 5667 host) case "$llvm_cv_target_arch" in 5668 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5669 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5670 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5671 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5672 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5673 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5674 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5675 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5676 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5677 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5678 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5679 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5680 WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;; 5681 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5682echo "$as_me: error: Can not set target to build" >&2;} 5683 { (exit 1); exit 1; }; } ;; 5684 esac ;; 5685 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5686echo "$as_me: error: Unrecognized target $a_target" >&2;} 5687 { (exit 1); exit 1; }; } ;; 5688 esac 5689 done 5690 ;; 5691esac 5692 5693# Check whether --enable-experimental-targets was given. 5694if test "${enable_experimental_targets+set}" = set; then 5695 enableval=$enable_experimental_targets; 5696else 5697 enableval=disable 5698fi 5699 5700 5701if test ${enableval} != "disable" 5702then 5703 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5704fi 5705 5706TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5707 5708 5709for a_target in $TARGETS_TO_BUILD; do 5710 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5711 5712cat >>confdefs.h <<_ACEOF 5713#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5714_ACEOF 5715 5716 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5717 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5718 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5719 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5720 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5721 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5722 fi 5723 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5724 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5725 fi 5726 5727cat >>confdefs.h <<_ACEOF 5728#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5729_ACEOF 5730 5731 5732cat >>confdefs.h <<_ACEOF 5733#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5734_ACEOF 5735 5736 5737cat >>confdefs.h <<_ACEOF 5738#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5739_ACEOF 5740 5741 5742cat >>confdefs.h <<_ACEOF 5743#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5744_ACEOF 5745 5746 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5747 5748cat >>confdefs.h <<_ACEOF 5749#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5750_ACEOF 5751 5752 fi 5753 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5754 5755cat >>confdefs.h <<_ACEOF 5756#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5757_ACEOF 5758 5759 fi 5760 fi 5761done 5762 5763LLVM_ENUM_TARGETS="" 5764LLVM_ENUM_ASM_PRINTERS="" 5765LLVM_ENUM_ASM_PARSERS="" 5766LLVM_ENUM_DISASSEMBLERS="" 5767for target_to_build in $TARGETS_TO_BUILD; do 5768 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5769 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5770 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5771 fi 5772 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5773 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5774 fi 5775 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5776 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5777 fi 5778done 5779 5780 5781 5782 5783 5784 5785# Check whether --with-optimize-option was given. 5786if test "${with_optimize_option+set}" = set; then 5787 withval=$with_optimize_option; 5788else 5789 withval=default 5790fi 5791 5792{ echo "$as_me:$LINENO: checking optimization flags" >&5 5793echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5794case "$withval" in 5795 default) 5796 case "$llvm_cv_os_type" in 5797 FreeBSD) optimize_option=-O2 ;; 5798 MingW) optimize_option=-O2 ;; 5799 *) optimize_option=-O3 ;; 5800 esac ;; 5801 *) optimize_option="$withval" ;; 5802esac 5803OPTIMIZE_OPTION=$optimize_option 5804 5805{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5806echo "${ECHO_T}$optimize_option" >&6; } 5807 5808 5809# Check whether --with-extra-options was given. 5810if test "${with_extra_options+set}" = set; then 5811 withval=$with_extra_options; 5812else 5813 withval=default 5814fi 5815 5816case "$withval" in 5817 default) EXTRA_OPTIONS= ;; 5818 *) EXTRA_OPTIONS=$withval ;; 5819esac 5820EXTRA_OPTIONS=$EXTRA_OPTIONS 5821 5822 5823 5824# Check whether --with-extra-ld-options was given. 5825if test "${with_extra_ld_options+set}" = set; then 5826 withval=$with_extra_ld_options; 5827else 5828 withval=default 5829fi 5830 5831case "$withval" in 5832 default) EXTRA_LD_OPTIONS= ;; 5833 *) EXTRA_LD_OPTIONS=$withval ;; 5834esac 5835EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5836 5837 5838# Check whether --enable-bindings was given. 5839if test "${enable_bindings+set}" = set; then 5840 enableval=$enable_bindings; 5841else 5842 enableval=default 5843fi 5844 5845BINDINGS_TO_BUILD="" 5846case "$enableval" in 5847 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5848 all ) BINDINGS_TO_BUILD="ocaml" ;; 5849 none | no) BINDINGS_TO_BUILD="" ;; 5850 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5851 case "$a_binding" in 5852 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5853 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5854echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5855 { (exit 1); exit 1; }; } ;; 5856 esac 5857 done 5858 ;; 5859esac 5860 5861 5862# Check whether --with-ocaml-libdir was given. 5863if test "${with_ocaml_libdir+set}" = set; then 5864 withval=$with_ocaml_libdir; 5865else 5866 withval=auto 5867fi 5868 5869case "$withval" in 5870 auto) with_ocaml_libdir="$withval" ;; 5871 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5872 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5873echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5874 { (exit 1); exit 1; }; } ;; 5875esac 5876 5877 5878# Check whether --with-clang-srcdir was given. 5879if test "${with_clang_srcdir+set}" = set; then 5880 withval=$with_clang_srcdir; 5881else 5882 withval="-" 5883fi 5884 5885case "$withval" in 5886 -) clang_src_root="" ;; 5887 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5888 *) clang_src_root="$ac_pwd/$withval" ;; 5889esac 5890CLANG_SRC_ROOT=$clang_src_root 5891 5892 5893 5894# Check whether --with-clang-resource-dir was given. 5895if test "${with_clang_resource_dir+set}" = set; then 5896 withval=$with_clang_resource_dir; 5897else 5898 withval="" 5899fi 5900 5901 5902cat >>confdefs.h <<_ACEOF 5903#define CLANG_RESOURCE_DIR "$withval" 5904_ACEOF 5905 5906 5907 5908# Check whether --with-c-include-dirs was given. 5909if test "${with_c_include_dirs+set}" = set; then 5910 withval=$with_c_include_dirs; 5911else 5912 withval="" 5913fi 5914 5915 5916cat >>confdefs.h <<_ACEOF 5917#define C_INCLUDE_DIRS "$withval" 5918_ACEOF 5919 5920 5921# Clang normally uses the system c++ headers and libraries. With this option, 5922# clang will use the ones provided by a gcc installation instead. This option should 5923# be passed the same value that was used with --prefix when configuring gcc. 5924 5925# Check whether --with-gcc-toolchain was given. 5926if test "${with_gcc_toolchain+set}" = set; then 5927 withval=$with_gcc_toolchain; 5928else 5929 withval="" 5930fi 5931 5932 5933cat >>confdefs.h <<_ACEOF 5934#define GCC_INSTALL_PREFIX "$withval" 5935_ACEOF 5936 5937 5938 5939# Check whether --with-default-sysroot was given. 5940if test "${with_default_sysroot+set}" = set; then 5941 withval=$with_default_sysroot; 5942else 5943 withval="" 5944fi 5945 5946 5947cat >>confdefs.h <<_ACEOF 5948#define DEFAULT_SYSROOT "$withval" 5949_ACEOF 5950 5951 5952 5953# Check whether --with-clang-default-openmp-runtime was given. 5954if test "${with_clang_default_openmp_runtime+set}" = set; then 5955 withval=$with_clang_default_openmp_runtime; 5956else 5957 withval="libomp" 5958fi 5959 5960 5961cat >>confdefs.h <<_ACEOF 5962#define CLANG_DEFAULT_OPENMP_RUNTIME "$withval" 5963_ACEOF 5964 5965 5966 5967# Check whether --with-binutils-include was given. 5968if test "${with_binutils_include+set}" = set; then 5969 withval=$with_binutils_include; 5970else 5971 withval=default 5972fi 5973 5974case "$withval" in 5975 default) WITH_BINUTILS_INCDIR=default ;; 5976 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5977 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5978echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5979 { (exit 1); exit 1; }; } ;; 5980esac 5981if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5982 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5983 5984 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5985 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5986 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5987echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5988 { (exit 1); exit 1; }; }; 5989 fi 5990fi 5991 5992 5993# Check whether --with-bug-report-url was given. 5994if test "${with_bug_report_url+set}" = set; then 5995 withval=$with_bug_report_url; 5996else 5997 withval="http://llvm.org/bugs/" 5998fi 5999 6000 6001cat >>confdefs.h <<_ACEOF 6002#define BUG_REPORT_URL "$withval" 6003_ACEOF 6004 6005 6006# Check whether --enable-terminfo was given. 6007if test "${enable_terminfo+set}" = set; then 6008 enableval=$enable_terminfo; case "$enableval" in 6009 yes) llvm_cv_enable_terminfo="yes" ;; 6010 no) llvm_cv_enable_terminfo="no" ;; 6011 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5 6012echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;} 6013 { (exit 1); exit 1; }; } ;; 6014 esac 6015else 6016 llvm_cv_enable_terminfo="yes" 6017fi 6018 6019case "$llvm_cv_enable_terminfo" in 6020 yes) ENABLE_TERMINFO=1 6021 ;; 6022 no) ENABLE_TERMINFO=0 6023 ;; 6024esac 6025 6026# Check whether --enable-libedit was given. 6027if test "${enable_libedit+set}" = set; then 6028 enableval=$enable_libedit; case "$enableval" in 6029 yes) llvm_cv_enable_libedit="yes" ;; 6030 no) llvm_cv_enable_libedit="no" ;; 6031 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5 6032echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;} 6033 { (exit 1); exit 1; }; } ;; 6034 esac 6035else 6036 llvm_cv_enable_libedit="yes" 6037fi 6038 6039 6040# Check whether --enable-libffi was given. 6041if test "${enable_libffi+set}" = set; then 6042 enableval=$enable_libffi; case "$enableval" in 6043 yes) llvm_cv_enable_libffi="yes" ;; 6044 no) llvm_cv_enable_libffi="no" ;; 6045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 6046echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 6047 { (exit 1); exit 1; }; } ;; 6048 esac 6049else 6050 llvm_cv_enable_libffi=no 6051fi 6052 6053 6054 6055# Check whether --with-internal-prefix was given. 6056if test "${with_internal_prefix+set}" = set; then 6057 withval=$with_internal_prefix; 6058else 6059 withval="" 6060fi 6061 6062INTERNAL_PREFIX=$withval 6063 6064 6065 6066{ echo "$as_me:$LINENO: checking for GNU make" >&5 6067echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6068if test "${llvm_cv_gnu_make_command+set}" = set; then 6069 echo $ECHO_N "(cached) $ECHO_C" >&6 6070else 6071 llvm_cv_gnu_make_command='' 6072 for a in "$MAKE" make gmake gnumake ; do 6073 if test -z "$a" ; then continue ; fi ; 6074 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6075 then 6076 llvm_cv_gnu_make_command=$a ; 6077 break; 6078 fi 6079 done 6080fi 6081{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6082echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6083 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6084 ifGNUmake='' ; 6085 else 6086 ifGNUmake='#' ; 6087 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6088echo "${ECHO_T}\"Not found\"" >&6; }; 6089 fi 6090 6091 6092{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6093echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6094LN_S=$as_ln_s 6095if test "$LN_S" = "ln -s"; then 6096 { echo "$as_me:$LINENO: result: yes" >&5 6097echo "${ECHO_T}yes" >&6; } 6098else 6099 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6100echo "${ECHO_T}no, using $LN_S" >&6; } 6101fi 6102 6103# Extract the first word of "nm", so it can be a program name with args. 6104set dummy nm; ac_word=$2 6105{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6107if test "${ac_cv_path_NM+set}" = set; then 6108 echo $ECHO_N "(cached) $ECHO_C" >&6 6109else 6110 case $NM in 6111 [\\/]* | ?:[\\/]*) 6112 ac_cv_path_NM="$NM" # Let the user override the test with a path. 6113 ;; 6114 *) 6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6116for as_dir in $PATH 6117do 6118 IFS=$as_save_IFS 6119 test -z "$as_dir" && as_dir=. 6120 for ac_exec_ext in '' $ac_executable_extensions; do 6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6122 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6124 break 2 6125 fi 6126done 6127done 6128IFS=$as_save_IFS 6129 6130 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm" 6131 ;; 6132esac 6133fi 6134NM=$ac_cv_path_NM 6135if test -n "$NM"; then 6136 { echo "$as_me:$LINENO: result: $NM" >&5 6137echo "${ECHO_T}$NM" >&6; } 6138else 6139 { echo "$as_me:$LINENO: result: no" >&5 6140echo "${ECHO_T}no" >&6; } 6141fi 6142 6143 6144# Extract the first word of "cmp", so it can be a program name with args. 6145set dummy cmp; ac_word=$2 6146{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6148if test "${ac_cv_path_CMP+set}" = set; then 6149 echo $ECHO_N "(cached) $ECHO_C" >&6 6150else 6151 case $CMP in 6152 [\\/]* | ?:[\\/]*) 6153 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6154 ;; 6155 *) 6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6157for as_dir in $PATH 6158do 6159 IFS=$as_save_IFS 6160 test -z "$as_dir" && as_dir=. 6161 for ac_exec_ext in '' $ac_executable_extensions; do 6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6163 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6165 break 2 6166 fi 6167done 6168done 6169IFS=$as_save_IFS 6170 6171 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6172 ;; 6173esac 6174fi 6175CMP=$ac_cv_path_CMP 6176if test -n "$CMP"; then 6177 { echo "$as_me:$LINENO: result: $CMP" >&5 6178echo "${ECHO_T}$CMP" >&6; } 6179else 6180 { echo "$as_me:$LINENO: result: no" >&5 6181echo "${ECHO_T}no" >&6; } 6182fi 6183 6184 6185# Extract the first word of "cp", so it can be a program name with args. 6186set dummy cp; ac_word=$2 6187{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6189if test "${ac_cv_path_CP+set}" = set; then 6190 echo $ECHO_N "(cached) $ECHO_C" >&6 6191else 6192 case $CP in 6193 [\\/]* | ?:[\\/]*) 6194 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6195 ;; 6196 *) 6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6198for as_dir in $PATH 6199do 6200 IFS=$as_save_IFS 6201 test -z "$as_dir" && as_dir=. 6202 for ac_exec_ext in '' $ac_executable_extensions; do 6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6204 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6206 break 2 6207 fi 6208done 6209done 6210IFS=$as_save_IFS 6211 6212 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6213 ;; 6214esac 6215fi 6216CP=$ac_cv_path_CP 6217if test -n "$CP"; then 6218 { echo "$as_me:$LINENO: result: $CP" >&5 6219echo "${ECHO_T}$CP" >&6; } 6220else 6221 { echo "$as_me:$LINENO: result: no" >&5 6222echo "${ECHO_T}no" >&6; } 6223fi 6224 6225 6226# Extract the first word of "date", so it can be a program name with args. 6227set dummy date; ac_word=$2 6228{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6230if test "${ac_cv_path_DATE+set}" = set; then 6231 echo $ECHO_N "(cached) $ECHO_C" >&6 6232else 6233 case $DATE in 6234 [\\/]* | ?:[\\/]*) 6235 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6236 ;; 6237 *) 6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6239for as_dir in $PATH 6240do 6241 IFS=$as_save_IFS 6242 test -z "$as_dir" && as_dir=. 6243 for ac_exec_ext in '' $ac_executable_extensions; do 6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6245 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6247 break 2 6248 fi 6249done 6250done 6251IFS=$as_save_IFS 6252 6253 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6254 ;; 6255esac 6256fi 6257DATE=$ac_cv_path_DATE 6258if test -n "$DATE"; then 6259 { echo "$as_me:$LINENO: result: $DATE" >&5 6260echo "${ECHO_T}$DATE" >&6; } 6261else 6262 { echo "$as_me:$LINENO: result: no" >&5 6263echo "${ECHO_T}no" >&6; } 6264fi 6265 6266 6267# Extract the first word of "find", so it can be a program name with args. 6268set dummy find; ac_word=$2 6269{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6271if test "${ac_cv_path_FIND+set}" = set; then 6272 echo $ECHO_N "(cached) $ECHO_C" >&6 6273else 6274 case $FIND in 6275 [\\/]* | ?:[\\/]*) 6276 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6277 ;; 6278 *) 6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6280for as_dir in $PATH 6281do 6282 IFS=$as_save_IFS 6283 test -z "$as_dir" && as_dir=. 6284 for ac_exec_ext in '' $ac_executable_extensions; do 6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6286 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6288 break 2 6289 fi 6290done 6291done 6292IFS=$as_save_IFS 6293 6294 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6295 ;; 6296esac 6297fi 6298FIND=$ac_cv_path_FIND 6299if test -n "$FIND"; then 6300 { echo "$as_me:$LINENO: result: $FIND" >&5 6301echo "${ECHO_T}$FIND" >&6; } 6302else 6303 { echo "$as_me:$LINENO: result: no" >&5 6304echo "${ECHO_T}no" >&6; } 6305fi 6306 6307 6308# Extract the first word of "grep", so it can be a program name with args. 6309set dummy grep; ac_word=$2 6310{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6312if test "${ac_cv_path_GREP+set}" = set; then 6313 echo $ECHO_N "(cached) $ECHO_C" >&6 6314else 6315 case $GREP in 6316 [\\/]* | ?:[\\/]*) 6317 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6318 ;; 6319 *) 6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6321for as_dir in $PATH 6322do 6323 IFS=$as_save_IFS 6324 test -z "$as_dir" && as_dir=. 6325 for ac_exec_ext in '' $ac_executable_extensions; do 6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6327 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6329 break 2 6330 fi 6331done 6332done 6333IFS=$as_save_IFS 6334 6335 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6336 ;; 6337esac 6338fi 6339GREP=$ac_cv_path_GREP 6340if test -n "$GREP"; then 6341 { echo "$as_me:$LINENO: result: $GREP" >&5 6342echo "${ECHO_T}$GREP" >&6; } 6343else 6344 { echo "$as_me:$LINENO: result: no" >&5 6345echo "${ECHO_T}no" >&6; } 6346fi 6347 6348 6349# Extract the first word of "mkdir", so it can be a program name with args. 6350set dummy mkdir; ac_word=$2 6351{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6353if test "${ac_cv_path_MKDIR+set}" = set; then 6354 echo $ECHO_N "(cached) $ECHO_C" >&6 6355else 6356 case $MKDIR in 6357 [\\/]* | ?:[\\/]*) 6358 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6359 ;; 6360 *) 6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362for as_dir in $PATH 6363do 6364 IFS=$as_save_IFS 6365 test -z "$as_dir" && as_dir=. 6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6368 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6370 break 2 6371 fi 6372done 6373done 6374IFS=$as_save_IFS 6375 6376 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6377 ;; 6378esac 6379fi 6380MKDIR=$ac_cv_path_MKDIR 6381if test -n "$MKDIR"; then 6382 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6383echo "${ECHO_T}$MKDIR" >&6; } 6384else 6385 { echo "$as_me:$LINENO: result: no" >&5 6386echo "${ECHO_T}no" >&6; } 6387fi 6388 6389 6390# Extract the first word of "mv", so it can be a program name with args. 6391set dummy mv; ac_word=$2 6392{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6394if test "${ac_cv_path_MV+set}" = set; then 6395 echo $ECHO_N "(cached) $ECHO_C" >&6 6396else 6397 case $MV in 6398 [\\/]* | ?:[\\/]*) 6399 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6400 ;; 6401 *) 6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403for as_dir in $PATH 6404do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6409 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413done 6414done 6415IFS=$as_save_IFS 6416 6417 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6418 ;; 6419esac 6420fi 6421MV=$ac_cv_path_MV 6422if test -n "$MV"; then 6423 { echo "$as_me:$LINENO: result: $MV" >&5 6424echo "${ECHO_T}$MV" >&6; } 6425else 6426 { echo "$as_me:$LINENO: result: no" >&5 6427echo "${ECHO_T}no" >&6; } 6428fi 6429 6430 6431if test -n "$ac_tool_prefix"; then 6432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6433set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6434{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6436if test "${ac_cv_prog_RANLIB+set}" = set; then 6437 echo $ECHO_N "(cached) $ECHO_C" >&6 6438else 6439 if test -n "$RANLIB"; then 6440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6441else 6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443for as_dir in $PATH 6444do 6445 IFS=$as_save_IFS 6446 test -z "$as_dir" && as_dir=. 6447 for ac_exec_ext in '' $ac_executable_extensions; do 6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6451 break 2 6452 fi 6453done 6454done 6455IFS=$as_save_IFS 6456 6457fi 6458fi 6459RANLIB=$ac_cv_prog_RANLIB 6460if test -n "$RANLIB"; then 6461 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6462echo "${ECHO_T}$RANLIB" >&6; } 6463else 6464 { echo "$as_me:$LINENO: result: no" >&5 6465echo "${ECHO_T}no" >&6; } 6466fi 6467 6468 6469fi 6470if test -z "$ac_cv_prog_RANLIB"; then 6471 ac_ct_RANLIB=$RANLIB 6472 # Extract the first word of "ranlib", so it can be a program name with args. 6473set dummy ranlib; ac_word=$2 6474{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6476if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6477 echo $ECHO_N "(cached) $ECHO_C" >&6 6478else 6479 if test -n "$ac_ct_RANLIB"; then 6480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6481else 6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483for as_dir in $PATH 6484do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_exec_ext in '' $ac_executable_extensions; do 6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6489 ac_cv_prog_ac_ct_RANLIB="ranlib" 6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6491 break 2 6492 fi 6493done 6494done 6495IFS=$as_save_IFS 6496 6497fi 6498fi 6499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6500if test -n "$ac_ct_RANLIB"; then 6501 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6502echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6503else 6504 { echo "$as_me:$LINENO: result: no" >&5 6505echo "${ECHO_T}no" >&6; } 6506fi 6507 6508 if test "x$ac_ct_RANLIB" = x; then 6509 RANLIB=":" 6510 else 6511 case $cross_compiling:$ac_tool_warned in 6512yes:) 6513{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6514whose name does not start with the host triplet. If you think this 6515configuration is useful to you, please write to autoconf@gnu.org." >&5 6516echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6517whose name does not start with the host triplet. If you think this 6518configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6519ac_tool_warned=yes ;; 6520esac 6521 RANLIB=$ac_ct_RANLIB 6522 fi 6523else 6524 RANLIB="$ac_cv_prog_RANLIB" 6525fi 6526 6527if test -n "$ac_tool_prefix"; then 6528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6529set dummy ${ac_tool_prefix}ar; ac_word=$2 6530{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6532if test "${ac_cv_prog_AR+set}" = set; then 6533 echo $ECHO_N "(cached) $ECHO_C" >&6 6534else 6535 if test -n "$AR"; then 6536 ac_cv_prog_AR="$AR" # Let the user override the test. 6537else 6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6539for as_dir in $PATH 6540do 6541 IFS=$as_save_IFS 6542 test -z "$as_dir" && as_dir=. 6543 for ac_exec_ext in '' $ac_executable_extensions; do 6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6545 ac_cv_prog_AR="${ac_tool_prefix}ar" 6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6547 break 2 6548 fi 6549done 6550done 6551IFS=$as_save_IFS 6552 6553fi 6554fi 6555AR=$ac_cv_prog_AR 6556if test -n "$AR"; then 6557 { echo "$as_me:$LINENO: result: $AR" >&5 6558echo "${ECHO_T}$AR" >&6; } 6559else 6560 { echo "$as_me:$LINENO: result: no" >&5 6561echo "${ECHO_T}no" >&6; } 6562fi 6563 6564 6565fi 6566if test -z "$ac_cv_prog_AR"; then 6567 ac_ct_AR=$AR 6568 # Extract the first word of "ar", so it can be a program name with args. 6569set dummy ar; ac_word=$2 6570{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6572if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6573 echo $ECHO_N "(cached) $ECHO_C" >&6 6574else 6575 if test -n "$ac_ct_AR"; then 6576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6577else 6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6579for as_dir in $PATH 6580do 6581 IFS=$as_save_IFS 6582 test -z "$as_dir" && as_dir=. 6583 for ac_exec_ext in '' $ac_executable_extensions; do 6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6585 ac_cv_prog_ac_ct_AR="ar" 6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6587 break 2 6588 fi 6589done 6590done 6591IFS=$as_save_IFS 6592 6593fi 6594fi 6595ac_ct_AR=$ac_cv_prog_ac_ct_AR 6596if test -n "$ac_ct_AR"; then 6597 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6598echo "${ECHO_T}$ac_ct_AR" >&6; } 6599else 6600 { echo "$as_me:$LINENO: result: no" >&5 6601echo "${ECHO_T}no" >&6; } 6602fi 6603 6604 if test "x$ac_ct_AR" = x; then 6605 AR="false" 6606 else 6607 case $cross_compiling:$ac_tool_warned in 6608yes:) 6609{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6610whose name does not start with the host triplet. If you think this 6611configuration is useful to you, please write to autoconf@gnu.org." >&5 6612echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6613whose name does not start with the host triplet. If you think this 6614configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6615ac_tool_warned=yes ;; 6616esac 6617 AR=$ac_ct_AR 6618 fi 6619else 6620 AR="$ac_cv_prog_AR" 6621fi 6622 6623# Extract the first word of "rm", so it can be a program name with args. 6624set dummy rm; ac_word=$2 6625{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6627if test "${ac_cv_path_RM+set}" = set; then 6628 echo $ECHO_N "(cached) $ECHO_C" >&6 6629else 6630 case $RM in 6631 [\\/]* | ?:[\\/]*) 6632 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6633 ;; 6634 *) 6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6636for as_dir in $PATH 6637do 6638 IFS=$as_save_IFS 6639 test -z "$as_dir" && as_dir=. 6640 for ac_exec_ext in '' $ac_executable_extensions; do 6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6642 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6644 break 2 6645 fi 6646done 6647done 6648IFS=$as_save_IFS 6649 6650 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6651 ;; 6652esac 6653fi 6654RM=$ac_cv_path_RM 6655if test -n "$RM"; then 6656 { echo "$as_me:$LINENO: result: $RM" >&5 6657echo "${ECHO_T}$RM" >&6; } 6658else 6659 { echo "$as_me:$LINENO: result: no" >&5 6660echo "${ECHO_T}no" >&6; } 6661fi 6662 6663 6664# Extract the first word of "sed", so it can be a program name with args. 6665set dummy sed; ac_word=$2 6666{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6668if test "${ac_cv_path_SED+set}" = set; then 6669 echo $ECHO_N "(cached) $ECHO_C" >&6 6670else 6671 case $SED in 6672 [\\/]* | ?:[\\/]*) 6673 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6674 ;; 6675 *) 6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6677for as_dir in $PATH 6678do 6679 IFS=$as_save_IFS 6680 test -z "$as_dir" && as_dir=. 6681 for ac_exec_ext in '' $ac_executable_extensions; do 6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6683 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6685 break 2 6686 fi 6687done 6688done 6689IFS=$as_save_IFS 6690 6691 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6692 ;; 6693esac 6694fi 6695SED=$ac_cv_path_SED 6696if test -n "$SED"; then 6697 { echo "$as_me:$LINENO: result: $SED" >&5 6698echo "${ECHO_T}$SED" >&6; } 6699else 6700 { echo "$as_me:$LINENO: result: no" >&5 6701echo "${ECHO_T}no" >&6; } 6702fi 6703 6704 6705# Extract the first word of "tar", so it can be a program name with args. 6706set dummy tar; ac_word=$2 6707{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6709if test "${ac_cv_path_TAR+set}" = set; then 6710 echo $ECHO_N "(cached) $ECHO_C" >&6 6711else 6712 case $TAR in 6713 [\\/]* | ?:[\\/]*) 6714 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6715 ;; 6716 *) 6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6718for as_dir in $PATH 6719do 6720 IFS=$as_save_IFS 6721 test -z "$as_dir" && as_dir=. 6722 for ac_exec_ext in '' $ac_executable_extensions; do 6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6724 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6726 break 2 6727 fi 6728done 6729done 6730IFS=$as_save_IFS 6731 6732 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6733 ;; 6734esac 6735fi 6736TAR=$ac_cv_path_TAR 6737if test -n "$TAR"; then 6738 { echo "$as_me:$LINENO: result: $TAR" >&5 6739echo "${ECHO_T}$TAR" >&6; } 6740else 6741 { echo "$as_me:$LINENO: result: no" >&5 6742echo "${ECHO_T}no" >&6; } 6743fi 6744 6745 6746# Extract the first word of "pwd", so it can be a program name with args. 6747set dummy pwd; ac_word=$2 6748{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6750if test "${ac_cv_path_BINPWD+set}" = set; then 6751 echo $ECHO_N "(cached) $ECHO_C" >&6 6752else 6753 case $BINPWD in 6754 [\\/]* | ?:[\\/]*) 6755 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6756 ;; 6757 *) 6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759for as_dir in $PATH 6760do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6765 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770done 6771IFS=$as_save_IFS 6772 6773 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6774 ;; 6775esac 6776fi 6777BINPWD=$ac_cv_path_BINPWD 6778if test -n "$BINPWD"; then 6779 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6780echo "${ECHO_T}$BINPWD" >&6; } 6781else 6782 { echo "$as_me:$LINENO: result: no" >&5 6783echo "${ECHO_T}no" >&6; } 6784fi 6785 6786 6787 6788# Extract the first word of "dot", so it can be a program name with args. 6789set dummy dot; ac_word=$2 6790{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6792if test "${ac_cv_path_DOT+set}" = set; then 6793 echo $ECHO_N "(cached) $ECHO_C" >&6 6794else 6795 case $DOT in 6796 [\\/]* | ?:[\\/]*) 6797 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6798 ;; 6799 *) 6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6801for as_dir in $PATH 6802do 6803 IFS=$as_save_IFS 6804 test -z "$as_dir" && as_dir=. 6805 for ac_exec_ext in '' $ac_executable_extensions; do 6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6807 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6809 break 2 6810 fi 6811done 6812done 6813IFS=$as_save_IFS 6814 6815 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6816 ;; 6817esac 6818fi 6819DOT=$ac_cv_path_DOT 6820if test -n "$DOT"; then 6821 { echo "$as_me:$LINENO: result: $DOT" >&5 6822echo "${ECHO_T}$DOT" >&6; } 6823else 6824 { echo "$as_me:$LINENO: result: no" >&5 6825echo "${ECHO_T}no" >&6; } 6826fi 6827 6828 6829if test "$DOT" != "echo dot" ; then 6830 6831cat >>confdefs.h <<\_ACEOF 6832#define HAVE_DOT 1 6833_ACEOF 6834 6835 if test "$llvm_cv_os_type" = "MingW" ; then 6836 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6837 fi 6838 6839cat >>confdefs.h <<_ACEOF 6840#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6841_ACEOF 6842 6843fi 6844 6845# Find a good install program. We prefer a C program (faster), 6846# so one script is as good as another. But avoid the broken or 6847# incompatible versions: 6848# SysV /etc/install, /usr/sbin/install 6849# SunOS /usr/etc/install 6850# IRIX /sbin/install 6851# AIX /bin/install 6852# AmigaOS /C/install, which installs bootblocks on floppy discs 6853# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6854# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6855# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6856# OS/2's system install, which has a completely different semantic 6857# ./install, which can be erroneously created by make from ./install.sh. 6858{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6859echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 6860if test -z "$INSTALL"; then 6861if test "${ac_cv_path_install+set}" = set; then 6862 echo $ECHO_N "(cached) $ECHO_C" >&6 6863else 6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 test -z "$as_dir" && as_dir=. 6869 # Account for people who put trailing slashes in PATH elements. 6870case $as_dir/ in 6871 ./ | .// | /cC/* | \ 6872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6873 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 6874 /usr/ucb/* ) ;; 6875 *) 6876 # OSF1 and SCO ODT 3.0 have their own names for install. 6877 # Don't use installbsd from OSF since it installs stuff as root 6878 # by default. 6879 for ac_prog in ginstall scoinst install; do 6880 for ac_exec_ext in '' $ac_executable_extensions; do 6881 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 6882 if test $ac_prog = install && 6883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6884 # AIX install. It has an incompatible calling convention. 6885 : 6886 elif test $ac_prog = install && 6887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6888 # program-specific install script used by HP pwplus--don't use. 6889 : 6890 else 6891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6892 break 3 6893 fi 6894 fi 6895 done 6896 done 6897 ;; 6898esac 6899done 6900IFS=$as_save_IFS 6901 6902 6903fi 6904 if test "${ac_cv_path_install+set}" = set; then 6905 INSTALL=$ac_cv_path_install 6906 else 6907 # As a last resort, use the slow shell script. Don't cache a 6908 # value for INSTALL within a source directory, because that will 6909 # break other packages using the cache if that directory is 6910 # removed, or if the value is a relative name. 6911 INSTALL=$ac_install_sh 6912 fi 6913fi 6914{ echo "$as_me:$LINENO: result: $INSTALL" >&5 6915echo "${ECHO_T}$INSTALL" >&6; } 6916 6917# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6918# It thinks the first close brace ends the variable substitution. 6919test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6920 6921test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6922 6923test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6924 6925case "$INSTALL" in 6926 [\\/$]* | ?:[\\/]* ) ;; 6927 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 6928esac 6929 6930# Extract the first word of "bzip2", so it can be a program name with args. 6931set dummy bzip2; ac_word=$2 6932{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6934if test "${ac_cv_path_BZIP2+set}" = set; then 6935 echo $ECHO_N "(cached) $ECHO_C" >&6 6936else 6937 case $BZIP2 in 6938 [\\/]* | ?:[\\/]*) 6939 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 6940 ;; 6941 *) 6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6943for as_dir in $PATH 6944do 6945 IFS=$as_save_IFS 6946 test -z "$as_dir" && as_dir=. 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6949 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954done 6955IFS=$as_save_IFS 6956 6957 ;; 6958esac 6959fi 6960BZIP2=$ac_cv_path_BZIP2 6961if test -n "$BZIP2"; then 6962 { echo "$as_me:$LINENO: result: $BZIP2" >&5 6963echo "${ECHO_T}$BZIP2" >&6; } 6964else 6965 { echo "$as_me:$LINENO: result: no" >&5 6966echo "${ECHO_T}no" >&6; } 6967fi 6968 6969 6970# Extract the first word of "cat", so it can be a program name with args. 6971set dummy cat; ac_word=$2 6972{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6974if test "${ac_cv_path_CAT+set}" = set; then 6975 echo $ECHO_N "(cached) $ECHO_C" >&6 6976else 6977 case $CAT in 6978 [\\/]* | ?:[\\/]*) 6979 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 6980 ;; 6981 *) 6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6983for as_dir in $PATH 6984do 6985 IFS=$as_save_IFS 6986 test -z "$as_dir" && as_dir=. 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6989 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993done 6994done 6995IFS=$as_save_IFS 6996 6997 ;; 6998esac 6999fi 7000CAT=$ac_cv_path_CAT 7001if test -n "$CAT"; then 7002 { echo "$as_me:$LINENO: result: $CAT" >&5 7003echo "${ECHO_T}$CAT" >&6; } 7004else 7005 { echo "$as_me:$LINENO: result: no" >&5 7006echo "${ECHO_T}no" >&6; } 7007fi 7008 7009 7010# Extract the first word of "doxygen", so it can be a program name with args. 7011set dummy doxygen; ac_word=$2 7012{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7014if test "${ac_cv_path_DOXYGEN+set}" = set; then 7015 echo $ECHO_N "(cached) $ECHO_C" >&6 7016else 7017 case $DOXYGEN in 7018 [\\/]* | ?:[\\/]*) 7019 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7020 ;; 7021 *) 7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7023for as_dir in $PATH 7024do 7025 IFS=$as_save_IFS 7026 test -z "$as_dir" && as_dir=. 7027 for ac_exec_ext in '' $ac_executable_extensions; do 7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7029 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7031 break 2 7032 fi 7033done 7034done 7035IFS=$as_save_IFS 7036 7037 ;; 7038esac 7039fi 7040DOXYGEN=$ac_cv_path_DOXYGEN 7041if test -n "$DOXYGEN"; then 7042 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7043echo "${ECHO_T}$DOXYGEN" >&6; } 7044else 7045 { echo "$as_me:$LINENO: result: no" >&5 7046echo "${ECHO_T}no" >&6; } 7047fi 7048 7049 7050# Extract the first word of "groff", so it can be a program name with args. 7051set dummy groff; ac_word=$2 7052{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7054if test "${ac_cv_path_GROFF+set}" = set; then 7055 echo $ECHO_N "(cached) $ECHO_C" >&6 7056else 7057 case $GROFF in 7058 [\\/]* | ?:[\\/]*) 7059 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7060 ;; 7061 *) 7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7063for as_dir in $PATH 7064do 7065 IFS=$as_save_IFS 7066 test -z "$as_dir" && as_dir=. 7067 for ac_exec_ext in '' $ac_executable_extensions; do 7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7069 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7071 break 2 7072 fi 7073done 7074done 7075IFS=$as_save_IFS 7076 7077 ;; 7078esac 7079fi 7080GROFF=$ac_cv_path_GROFF 7081if test -n "$GROFF"; then 7082 { echo "$as_me:$LINENO: result: $GROFF" >&5 7083echo "${ECHO_T}$GROFF" >&6; } 7084else 7085 { echo "$as_me:$LINENO: result: no" >&5 7086echo "${ECHO_T}no" >&6; } 7087fi 7088 7089 7090# Extract the first word of "gzip", so it can be a program name with args. 7091set dummy gzip; ac_word=$2 7092{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7094if test "${ac_cv_path_GZIPBIN+set}" = set; then 7095 echo $ECHO_N "(cached) $ECHO_C" >&6 7096else 7097 case $GZIPBIN in 7098 [\\/]* | ?:[\\/]*) 7099 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7100 ;; 7101 *) 7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7103for as_dir in $PATH 7104do 7105 IFS=$as_save_IFS 7106 test -z "$as_dir" && as_dir=. 7107 for ac_exec_ext in '' $ac_executable_extensions; do 7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7109 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7111 break 2 7112 fi 7113done 7114done 7115IFS=$as_save_IFS 7116 7117 ;; 7118esac 7119fi 7120GZIPBIN=$ac_cv_path_GZIPBIN 7121if test -n "$GZIPBIN"; then 7122 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7123echo "${ECHO_T}$GZIPBIN" >&6; } 7124else 7125 { echo "$as_me:$LINENO: result: no" >&5 7126echo "${ECHO_T}no" >&6; } 7127fi 7128 7129 7130# Extract the first word of "pdfroff", so it can be a program name with args. 7131set dummy pdfroff; ac_word=$2 7132{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7134if test "${ac_cv_path_PDFROFF+set}" = set; then 7135 echo $ECHO_N "(cached) $ECHO_C" >&6 7136else 7137 case $PDFROFF in 7138 [\\/]* | ?:[\\/]*) 7139 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7140 ;; 7141 *) 7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7143for as_dir in $PATH 7144do 7145 IFS=$as_save_IFS 7146 test -z "$as_dir" && as_dir=. 7147 for ac_exec_ext in '' $ac_executable_extensions; do 7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7149 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7151 break 2 7152 fi 7153done 7154done 7155IFS=$as_save_IFS 7156 7157 ;; 7158esac 7159fi 7160PDFROFF=$ac_cv_path_PDFROFF 7161if test -n "$PDFROFF"; then 7162 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7163echo "${ECHO_T}$PDFROFF" >&6; } 7164else 7165 { echo "$as_me:$LINENO: result: no" >&5 7166echo "${ECHO_T}no" >&6; } 7167fi 7168 7169 7170# Extract the first word of "zip", so it can be a program name with args. 7171set dummy zip; ac_word=$2 7172{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7174if test "${ac_cv_path_ZIP+set}" = set; then 7175 echo $ECHO_N "(cached) $ECHO_C" >&6 7176else 7177 case $ZIP in 7178 [\\/]* | ?:[\\/]*) 7179 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7180 ;; 7181 *) 7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7183for as_dir in $PATH 7184do 7185 IFS=$as_save_IFS 7186 test -z "$as_dir" && as_dir=. 7187 for ac_exec_ext in '' $ac_executable_extensions; do 7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7189 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7191 break 2 7192 fi 7193done 7194done 7195IFS=$as_save_IFS 7196 7197 ;; 7198esac 7199fi 7200ZIP=$ac_cv_path_ZIP 7201if test -n "$ZIP"; then 7202 { echo "$as_me:$LINENO: result: $ZIP" >&5 7203echo "${ECHO_T}$ZIP" >&6; } 7204else 7205 { echo "$as_me:$LINENO: result: no" >&5 7206echo "${ECHO_T}no" >&6; } 7207fi 7208 7209 7210# Extract the first word of "go", so it can be a program name with args. 7211set dummy go; ac_word=$2 7212{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7214if test "${ac_cv_path_GO+set}" = set; then 7215 echo $ECHO_N "(cached) $ECHO_C" >&6 7216else 7217 case $GO in 7218 [\\/]* | ?:[\\/]*) 7219 ac_cv_path_GO="$GO" # Let the user override the test with a path. 7220 ;; 7221 *) 7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7223for as_dir in $PATH 7224do 7225 IFS=$as_save_IFS 7226 test -z "$as_dir" && as_dir=. 7227 for ac_exec_ext in '' $ac_executable_extensions; do 7228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7229 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext" 7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7231 break 2 7232 fi 7233done 7234done 7235IFS=$as_save_IFS 7236 7237 ;; 7238esac 7239fi 7240GO=$ac_cv_path_GO 7241if test -n "$GO"; then 7242 { echo "$as_me:$LINENO: result: $GO" >&5 7243echo "${ECHO_T}$GO" >&6; } 7244else 7245 { echo "$as_me:$LINENO: result: no" >&5 7246echo "${ECHO_T}no" >&6; } 7247fi 7248 7249 7250for ac_prog in ocamlfind 7251do 7252 # Extract the first word of "$ac_prog", so it can be a program name with args. 7253set dummy $ac_prog; ac_word=$2 7254{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7256if test "${ac_cv_path_OCAMLFIND+set}" = set; then 7257 echo $ECHO_N "(cached) $ECHO_C" >&6 7258else 7259 case $OCAMLFIND in 7260 [\\/]* | ?:[\\/]*) 7261 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path. 7262 ;; 7263 *) 7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7265for as_dir in $PATH 7266do 7267 IFS=$as_save_IFS 7268 test -z "$as_dir" && as_dir=. 7269 for ac_exec_ext in '' $ac_executable_extensions; do 7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7271 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext" 7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7273 break 2 7274 fi 7275done 7276done 7277IFS=$as_save_IFS 7278 7279 ;; 7280esac 7281fi 7282OCAMLFIND=$ac_cv_path_OCAMLFIND 7283if test -n "$OCAMLFIND"; then 7284 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5 7285echo "${ECHO_T}$OCAMLFIND" >&6; } 7286else 7287 { echo "$as_me:$LINENO: result: no" >&5 7288echo "${ECHO_T}no" >&6; } 7289fi 7290 7291 7292 test -n "$OCAMLFIND" && break 7293done 7294 7295for ac_prog in gas as 7296do 7297 # Extract the first word of "$ac_prog", so it can be a program name with args. 7298set dummy $ac_prog; ac_word=$2 7299{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7301if test "${ac_cv_path_GAS+set}" = set; then 7302 echo $ECHO_N "(cached) $ECHO_C" >&6 7303else 7304 case $GAS in 7305 [\\/]* | ?:[\\/]*) 7306 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7307 ;; 7308 *) 7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7310for as_dir in $PATH 7311do 7312 IFS=$as_save_IFS 7313 test -z "$as_dir" && as_dir=. 7314 for ac_exec_ext in '' $ac_executable_extensions; do 7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7316 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7318 break 2 7319 fi 7320done 7321done 7322IFS=$as_save_IFS 7323 7324 ;; 7325esac 7326fi 7327GAS=$ac_cv_path_GAS 7328if test -n "$GAS"; then 7329 { echo "$as_me:$LINENO: result: $GAS" >&5 7330echo "${ECHO_T}$GAS" >&6; } 7331else 7332 { echo "$as_me:$LINENO: result: no" >&5 7333echo "${ECHO_T}no" >&6; } 7334fi 7335 7336 7337 test -n "$GAS" && break 7338done 7339 7340 7341{ echo "$as_me:$LINENO: checking for linker version" >&5 7342echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7343if test "${llvm_cv_link_version+set}" = set; then 7344 echo $ECHO_N "(cached) $ECHO_C" >&6 7345else 7346 7347 version_string="$(${LD:-ld} -v 2>&1 | head -1)" 7348 7349 # Check for ld64. 7350 if (echo "$version_string" | grep -q "ld64"); then 7351 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7352 else 7353 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7354 fi 7355 7356fi 7357{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7358echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7359 7360cat >>confdefs.h <<_ACEOF 7361#define HOST_LINK_VERSION "$llvm_cv_link_version" 7362_ACEOF 7363 7364 7365 7366 7367{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7368echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7369if test "${llvm_cv_link_use_r+set}" = set; then 7370 echo $ECHO_N "(cached) $ECHO_C" >&6 7371else 7372 ac_ext=c 7373ac_cpp='$CPP $CPPFLAGS' 7374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7376ac_compiler_gnu=$ac_cv_c_compiler_gnu 7377 7378 oldcflags="$CFLAGS" 7379 CFLAGS="$CFLAGS -Wl,-R." 7380 cat >conftest.$ac_ext <<_ACEOF 7381/* confdefs.h. */ 7382_ACEOF 7383cat confdefs.h >>conftest.$ac_ext 7384cat >>conftest.$ac_ext <<_ACEOF 7385/* end confdefs.h. */ 7386 7387int 7388main () 7389{ 7390 7391 ; 7392 return 0; 7393} 7394_ACEOF 7395rm -f conftest.$ac_objext conftest$ac_exeext 7396if { (ac_try="$ac_link" 7397case "(($ac_try" in 7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7399 *) ac_try_echo=$ac_try;; 7400esac 7401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7402 (eval "$ac_link") 2>conftest.er1 7403 ac_status=$? 7404 grep -v '^ *+' conftest.er1 >conftest.err 7405 rm -f conftest.er1 7406 cat conftest.err >&5 7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7408 (exit $ac_status); } && 7409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7410 { (case "(($ac_try" in 7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7412 *) ac_try_echo=$ac_try;; 7413esac 7414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7415 (eval "$ac_try") 2>&5 7416 ac_status=$? 7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7418 (exit $ac_status); }; } && 7419 { ac_try='test -s conftest$ac_exeext' 7420 { (case "(($ac_try" in 7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7422 *) ac_try_echo=$ac_try;; 7423esac 7424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7425 (eval "$ac_try") 2>&5 7426 ac_status=$? 7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7428 (exit $ac_status); }; }; then 7429 llvm_cv_link_use_r=yes 7430else 7431 echo "$as_me: failed program was:" >&5 7432sed 's/^/| /' conftest.$ac_ext >&5 7433 7434 llvm_cv_link_use_r=no 7435fi 7436 7437rm -f core conftest.err conftest.$ac_objext \ 7438 conftest$ac_exeext conftest.$ac_ext 7439 CFLAGS="$oldcflags" 7440 ac_ext=c 7441ac_cpp='$CPP $CPPFLAGS' 7442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7444ac_compiler_gnu=$ac_cv_c_compiler_gnu 7445 7446 7447fi 7448{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7449echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7450if test "$llvm_cv_link_use_r" = yes ; then 7451 7452cat >>confdefs.h <<\_ACEOF 7453#define HAVE_LINK_R 1 7454_ACEOF 7455 7456 fi 7457 7458 7459{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5 7460echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; } 7461if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7462 echo $ECHO_N "(cached) $ECHO_C" >&6 7463else 7464 ac_ext=c 7465ac_cpp='$CPP $CPPFLAGS' 7466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7468ac_compiler_gnu=$ac_cv_c_compiler_gnu 7469 7470 oldcflags="$CFLAGS" 7471 CFLAGS="$CFLAGS -rdynamic" 7472 cat >conftest.$ac_ext <<_ACEOF 7473/* confdefs.h. */ 7474_ACEOF 7475cat confdefs.h >>conftest.$ac_ext 7476cat >>conftest.$ac_ext <<_ACEOF 7477/* end confdefs.h. */ 7478 7479int 7480main () 7481{ 7482 7483 ; 7484 return 0; 7485} 7486_ACEOF 7487rm -f conftest.$ac_objext conftest$ac_exeext 7488if { (ac_try="$ac_link" 7489case "(($ac_try" in 7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7491 *) ac_try_echo=$ac_try;; 7492esac 7493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7494 (eval "$ac_link") 2>conftest.er1 7495 ac_status=$? 7496 grep -v '^ *+' conftest.er1 >conftest.err 7497 rm -f conftest.er1 7498 cat conftest.err >&5 7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7500 (exit $ac_status); } && 7501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7502 { (case "(($ac_try" in 7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7504 *) ac_try_echo=$ac_try;; 7505esac 7506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7507 (eval "$ac_try") 2>&5 7508 ac_status=$? 7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7510 (exit $ac_status); }; } && 7511 { ac_try='test -s conftest$ac_exeext' 7512 { (case "(($ac_try" in 7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7514 *) ac_try_echo=$ac_try;; 7515esac 7516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7517 (eval "$ac_try") 2>&5 7518 ac_status=$? 7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7520 (exit $ac_status); }; }; then 7521 llvm_cv_link_use_export_dynamic=yes 7522else 7523 echo "$as_me: failed program was:" >&5 7524sed 's/^/| /' conftest.$ac_ext >&5 7525 7526 llvm_cv_link_use_export_dynamic=no 7527fi 7528 7529rm -f core conftest.err conftest.$ac_objext \ 7530 conftest$ac_exeext conftest.$ac_ext 7531 CFLAGS="$oldcflags" 7532 ac_ext=c 7533ac_cpp='$CPP $CPPFLAGS' 7534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7536ac_compiler_gnu=$ac_cv_c_compiler_gnu 7537 7538 7539fi 7540{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 7541echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 7542if test "$llvm_cv_link_use_export_dynamic" = yes ; then 7543 7544cat >>confdefs.h <<\_ACEOF 7545#define HAVE_LINK_EXPORT_DYNAMIC 1 7546_ACEOF 7547 7548 fi 7549 7550 7551{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 7552echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 7553if test "${llvm_cv_link_use_version_script+set}" = set; then 7554 echo $ECHO_N "(cached) $ECHO_C" >&6 7555else 7556 ac_ext=c 7557ac_cpp='$CPP $CPPFLAGS' 7558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7560ac_compiler_gnu=$ac_cv_c_compiler_gnu 7561 7562 oldcflags="$CFLAGS" 7563 7564 # The following code is from the autoconf manual, 7565 # "11.13: Limitations of Usual Tools". 7566 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7567 # Use mktemp if possible; otherwise fall back on mkdir, 7568 # with $RANDOM to make collisions less likely. 7569 : ${TMPDIR=/tmp} 7570 { 7571 tmp=` 7572 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7573 ` && 7574 test -n "$tmp" && test -d "$tmp" 7575 } || { 7576 tmp=$TMPDIR/foo$$-$RANDOM 7577 (umask 077 && mkdir "$tmp") 7578 } || exit $? 7579 7580 echo "{" > "$tmp/export.map" 7581 echo " global: main;" >> "$tmp/export.map" 7582 echo " local: *;" >> "$tmp/export.map" 7583 echo "};" >> "$tmp/export.map" 7584 7585 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7586 cat >conftest.$ac_ext <<_ACEOF 7587/* confdefs.h. */ 7588_ACEOF 7589cat confdefs.h >>conftest.$ac_ext 7590cat >>conftest.$ac_ext <<_ACEOF 7591/* end confdefs.h. */ 7592 7593int 7594main () 7595{ 7596 7597 ; 7598 return 0; 7599} 7600_ACEOF 7601rm -f conftest.$ac_objext conftest$ac_exeext 7602if { (ac_try="$ac_link" 7603case "(($ac_try" in 7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7605 *) ac_try_echo=$ac_try;; 7606esac 7607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7608 (eval "$ac_link") 2>conftest.er1 7609 ac_status=$? 7610 grep -v '^ *+' conftest.er1 >conftest.err 7611 rm -f conftest.er1 7612 cat conftest.err >&5 7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7614 (exit $ac_status); } && 7615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7616 { (case "(($ac_try" in 7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7618 *) ac_try_echo=$ac_try;; 7619esac 7620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7621 (eval "$ac_try") 2>&5 7622 ac_status=$? 7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7624 (exit $ac_status); }; } && 7625 { ac_try='test -s conftest$ac_exeext' 7626 { (case "(($ac_try" in 7627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7628 *) ac_try_echo=$ac_try;; 7629esac 7630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7631 (eval "$ac_try") 2>&5 7632 ac_status=$? 7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7634 (exit $ac_status); }; }; then 7635 llvm_cv_link_use_version_script=yes 7636else 7637 echo "$as_me: failed program was:" >&5 7638sed 's/^/| /' conftest.$ac_ext >&5 7639 7640 llvm_cv_link_use_version_script=no 7641fi 7642 7643rm -f core conftest.err conftest.$ac_objext \ 7644 conftest$ac_exeext conftest.$ac_ext 7645 rm "$tmp/export.map" 7646 rmdir "$tmp" 7647 CFLAGS="$oldcflags" 7648 ac_ext=c 7649ac_cpp='$CPP $CPPFLAGS' 7650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7652ac_compiler_gnu=$ac_cv_c_compiler_gnu 7653 7654 7655fi 7656{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 7657echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 7658if test "$llvm_cv_link_use_version_script" = yes ; then 7659 HAVE_LINK_VERSION_SCRIPT=1 7660 7661 fi 7662 7663 7664 7665{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 7666echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 7667if test "${ac_cv_path_GREP+set}" = set; then 7668 echo $ECHO_N "(cached) $ECHO_C" >&6 7669else 7670 # Extract the first word of "grep ggrep" to use in msg output 7671if test -z "$GREP"; then 7672set dummy grep ggrep; ac_prog_name=$2 7673if test "${ac_cv_path_GREP+set}" = set; then 7674 echo $ECHO_N "(cached) $ECHO_C" >&6 7675else 7676 ac_path_GREP_found=false 7677# Loop through the user's path and test for each of PROGNAME-LIST 7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7680do 7681 IFS=$as_save_IFS 7682 test -z "$as_dir" && as_dir=. 7683 for ac_prog in grep ggrep; do 7684 for ac_exec_ext in '' $ac_executable_extensions; do 7685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7686 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 7687 # Check for GNU ac_path_GREP and select it if it is found. 7688 # Check for GNU $ac_path_GREP 7689case `"$ac_path_GREP" --version 2>&1` in 7690*GNU*) 7691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7692*) 7693 ac_count=0 7694 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 7695 while : 7696 do 7697 cat "conftest.in" "conftest.in" >"conftest.tmp" 7698 mv "conftest.tmp" "conftest.in" 7699 cp "conftest.in" "conftest.nl" 7700 echo 'GREP' >> "conftest.nl" 7701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7703 ac_count=`expr $ac_count + 1` 7704 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7705 # Best one so far, save it but keep looking for a better one 7706 ac_cv_path_GREP="$ac_path_GREP" 7707 ac_path_GREP_max=$ac_count 7708 fi 7709 # 10*(2^10) chars as input seems more than enough 7710 test $ac_count -gt 10 && break 7711 done 7712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7713esac 7714 7715 7716 $ac_path_GREP_found && break 3 7717 done 7718done 7719 7720done 7721IFS=$as_save_IFS 7722 7723 7724fi 7725 7726GREP="$ac_cv_path_GREP" 7727if test -z "$GREP"; then 7728 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 7729echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 7730 { (exit 1); exit 1; }; } 7731fi 7732 7733else 7734 ac_cv_path_GREP=$GREP 7735fi 7736 7737 7738fi 7739{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 7740echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 7741 GREP="$ac_cv_path_GREP" 7742 7743 7744{ echo "$as_me:$LINENO: checking for egrep" >&5 7745echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 7746if test "${ac_cv_path_EGREP+set}" = set; then 7747 echo $ECHO_N "(cached) $ECHO_C" >&6 7748else 7749 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7750 then ac_cv_path_EGREP="$GREP -E" 7751 else 7752 # Extract the first word of "egrep" to use in msg output 7753if test -z "$EGREP"; then 7754set dummy egrep; ac_prog_name=$2 7755if test "${ac_cv_path_EGREP+set}" = set; then 7756 echo $ECHO_N "(cached) $ECHO_C" >&6 7757else 7758 ac_path_EGREP_found=false 7759# Loop through the user's path and test for each of PROGNAME-LIST 7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7761for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7762do 7763 IFS=$as_save_IFS 7764 test -z "$as_dir" && as_dir=. 7765 for ac_prog in egrep; do 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7768 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 7769 # Check for GNU ac_path_EGREP and select it if it is found. 7770 # Check for GNU $ac_path_EGREP 7771case `"$ac_path_EGREP" --version 2>&1` in 7772*GNU*) 7773 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7774*) 7775 ac_count=0 7776 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 7777 while : 7778 do 7779 cat "conftest.in" "conftest.in" >"conftest.tmp" 7780 mv "conftest.tmp" "conftest.in" 7781 cp "conftest.in" "conftest.nl" 7782 echo 'EGREP' >> "conftest.nl" 7783 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7785 ac_count=`expr $ac_count + 1` 7786 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7787 # Best one so far, save it but keep looking for a better one 7788 ac_cv_path_EGREP="$ac_path_EGREP" 7789 ac_path_EGREP_max=$ac_count 7790 fi 7791 # 10*(2^10) chars as input seems more than enough 7792 test $ac_count -gt 10 && break 7793 done 7794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7795esac 7796 7797 7798 $ac_path_EGREP_found && break 3 7799 done 7800done 7801 7802done 7803IFS=$as_save_IFS 7804 7805 7806fi 7807 7808EGREP="$ac_cv_path_EGREP" 7809if test -z "$EGREP"; then 7810 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 7811echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 7812 { (exit 1); exit 1; }; } 7813fi 7814 7815else 7816 ac_cv_path_EGREP=$EGREP 7817fi 7818 7819 7820 fi 7821fi 7822{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 7823echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 7824 EGREP="$ac_cv_path_EGREP" 7825 7826 7827{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7828echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 7829if test "${ac_cv_header_stdc+set}" = set; then 7830 echo $ECHO_N "(cached) $ECHO_C" >&6 7831else 7832 cat >conftest.$ac_ext <<_ACEOF 7833/* confdefs.h. */ 7834_ACEOF 7835cat confdefs.h >>conftest.$ac_ext 7836cat >>conftest.$ac_ext <<_ACEOF 7837/* end confdefs.h. */ 7838#include <stdlib.h> 7839#include <stdarg.h> 7840#include <string.h> 7841#include <float.h> 7842 7843int 7844main () 7845{ 7846 7847 ; 7848 return 0; 7849} 7850_ACEOF 7851rm -f conftest.$ac_objext 7852if { (ac_try="$ac_compile" 7853case "(($ac_try" in 7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7855 *) ac_try_echo=$ac_try;; 7856esac 7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7858 (eval "$ac_compile") 2>conftest.er1 7859 ac_status=$? 7860 grep -v '^ *+' conftest.er1 >conftest.err 7861 rm -f conftest.er1 7862 cat conftest.err >&5 7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7864 (exit $ac_status); } && 7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7866 { (case "(($ac_try" in 7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7868 *) ac_try_echo=$ac_try;; 7869esac 7870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7871 (eval "$ac_try") 2>&5 7872 ac_status=$? 7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7874 (exit $ac_status); }; } && 7875 { ac_try='test -s conftest.$ac_objext' 7876 { (case "(($ac_try" in 7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7878 *) ac_try_echo=$ac_try;; 7879esac 7880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7881 (eval "$ac_try") 2>&5 7882 ac_status=$? 7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7884 (exit $ac_status); }; }; then 7885 ac_cv_header_stdc=yes 7886else 7887 echo "$as_me: failed program was:" >&5 7888sed 's/^/| /' conftest.$ac_ext >&5 7889 7890 ac_cv_header_stdc=no 7891fi 7892 7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7894 7895if test $ac_cv_header_stdc = yes; then 7896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7897 cat >conftest.$ac_ext <<_ACEOF 7898/* confdefs.h. */ 7899_ACEOF 7900cat confdefs.h >>conftest.$ac_ext 7901cat >>conftest.$ac_ext <<_ACEOF 7902/* end confdefs.h. */ 7903#include <string.h> 7904 7905_ACEOF 7906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7907 $EGREP "memchr" >/dev/null 2>&1; then 7908 : 7909else 7910 ac_cv_header_stdc=no 7911fi 7912rm -f conftest* 7913 7914fi 7915 7916if test $ac_cv_header_stdc = yes; then 7917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7918 cat >conftest.$ac_ext <<_ACEOF 7919/* confdefs.h. */ 7920_ACEOF 7921cat confdefs.h >>conftest.$ac_ext 7922cat >>conftest.$ac_ext <<_ACEOF 7923/* end confdefs.h. */ 7924#include <stdlib.h> 7925 7926_ACEOF 7927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7928 $EGREP "free" >/dev/null 2>&1; then 7929 : 7930else 7931 ac_cv_header_stdc=no 7932fi 7933rm -f conftest* 7934 7935fi 7936 7937if test $ac_cv_header_stdc = yes; then 7938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7939 if test "$cross_compiling" = yes; then 7940 : 7941else 7942 cat >conftest.$ac_ext <<_ACEOF 7943/* confdefs.h. */ 7944_ACEOF 7945cat confdefs.h >>conftest.$ac_ext 7946cat >>conftest.$ac_ext <<_ACEOF 7947/* end confdefs.h. */ 7948#include <ctype.h> 7949#include <stdlib.h> 7950#if ((' ' & 0x0FF) == 0x020) 7951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7953#else 7954# define ISLOWER(c) \ 7955 (('a' <= (c) && (c) <= 'i') \ 7956 || ('j' <= (c) && (c) <= 'r') \ 7957 || ('s' <= (c) && (c) <= 'z')) 7958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7959#endif 7960 7961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7962int 7963main () 7964{ 7965 int i; 7966 for (i = 0; i < 256; i++) 7967 if (XOR (islower (i), ISLOWER (i)) 7968 || toupper (i) != TOUPPER (i)) 7969 return 2; 7970 return 0; 7971} 7972_ACEOF 7973rm -f conftest$ac_exeext 7974if { (ac_try="$ac_link" 7975case "(($ac_try" in 7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7977 *) ac_try_echo=$ac_try;; 7978esac 7979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7980 (eval "$ac_link") 2>&5 7981 ac_status=$? 7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7984 { (case "(($ac_try" in 7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7986 *) ac_try_echo=$ac_try;; 7987esac 7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7989 (eval "$ac_try") 2>&5 7990 ac_status=$? 7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7992 (exit $ac_status); }; }; then 7993 : 7994else 7995 echo "$as_me: program exited with status $ac_status" >&5 7996echo "$as_me: failed program was:" >&5 7997sed 's/^/| /' conftest.$ac_ext >&5 7998 7999( exit $ac_status ) 8000ac_cv_header_stdc=no 8001fi 8002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8003fi 8004 8005 8006fi 8007fi 8008{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 8009echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 8010if test $ac_cv_header_stdc = yes; then 8011 8012cat >>confdefs.h <<\_ACEOF 8013#define STDC_HEADERS 1 8014_ACEOF 8015 8016fi 8017 8018# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8029 inttypes.h stdint.h unistd.h 8030do 8031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8032{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8035 echo $ECHO_N "(cached) $ECHO_C" >&6 8036else 8037 cat >conftest.$ac_ext <<_ACEOF 8038/* confdefs.h. */ 8039_ACEOF 8040cat confdefs.h >>conftest.$ac_ext 8041cat >>conftest.$ac_ext <<_ACEOF 8042/* end confdefs.h. */ 8043$ac_includes_default 8044 8045#include <$ac_header> 8046_ACEOF 8047rm -f conftest.$ac_objext 8048if { (ac_try="$ac_compile" 8049case "(($ac_try" in 8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8051 *) ac_try_echo=$ac_try;; 8052esac 8053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8054 (eval "$ac_compile") 2>conftest.er1 8055 ac_status=$? 8056 grep -v '^ *+' conftest.er1 >conftest.err 8057 rm -f conftest.er1 8058 cat conftest.err >&5 8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8060 (exit $ac_status); } && 8061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8062 { (case "(($ac_try" in 8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8064 *) ac_try_echo=$ac_try;; 8065esac 8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8067 (eval "$ac_try") 2>&5 8068 ac_status=$? 8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8070 (exit $ac_status); }; } && 8071 { ac_try='test -s conftest.$ac_objext' 8072 { (case "(($ac_try" in 8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8074 *) ac_try_echo=$ac_try;; 8075esac 8076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8077 (eval "$ac_try") 2>&5 8078 ac_status=$? 8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8080 (exit $ac_status); }; }; then 8081 eval "$as_ac_Header=yes" 8082else 8083 echo "$as_me: failed program was:" >&5 8084sed 's/^/| /' conftest.$ac_ext >&5 8085 8086 eval "$as_ac_Header=no" 8087fi 8088 8089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8090fi 8091ac_res=`eval echo '${'$as_ac_Header'}'` 8092 { echo "$as_me:$LINENO: result: $ac_res" >&5 8093echo "${ECHO_T}$ac_res" >&6; } 8094if test `eval echo '${'$as_ac_Header'}'` = yes; then 8095 cat >>confdefs.h <<_ACEOF 8096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8097_ACEOF 8098 8099fi 8100 8101done 8102 8103 8104 8105for ac_header in errno.h 8106do 8107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8109 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8112 echo $ECHO_N "(cached) $ECHO_C" >&6 8113fi 8114ac_res=`eval echo '${'$as_ac_Header'}'` 8115 { echo "$as_me:$LINENO: result: $ac_res" >&5 8116echo "${ECHO_T}$ac_res" >&6; } 8117else 8118 # Is the header compilable? 8119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8121cat >conftest.$ac_ext <<_ACEOF 8122/* confdefs.h. */ 8123_ACEOF 8124cat confdefs.h >>conftest.$ac_ext 8125cat >>conftest.$ac_ext <<_ACEOF 8126/* end confdefs.h. */ 8127$ac_includes_default 8128#include <$ac_header> 8129_ACEOF 8130rm -f conftest.$ac_objext 8131if { (ac_try="$ac_compile" 8132case "(($ac_try" in 8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8134 *) ac_try_echo=$ac_try;; 8135esac 8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8137 (eval "$ac_compile") 2>conftest.er1 8138 ac_status=$? 8139 grep -v '^ *+' conftest.er1 >conftest.err 8140 rm -f conftest.er1 8141 cat conftest.err >&5 8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8143 (exit $ac_status); } && 8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8145 { (case "(($ac_try" in 8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8147 *) ac_try_echo=$ac_try;; 8148esac 8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8150 (eval "$ac_try") 2>&5 8151 ac_status=$? 8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8153 (exit $ac_status); }; } && 8154 { ac_try='test -s conftest.$ac_objext' 8155 { (case "(($ac_try" in 8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8157 *) ac_try_echo=$ac_try;; 8158esac 8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8160 (eval "$ac_try") 2>&5 8161 ac_status=$? 8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8163 (exit $ac_status); }; }; then 8164 ac_header_compiler=yes 8165else 8166 echo "$as_me: failed program was:" >&5 8167sed 's/^/| /' conftest.$ac_ext >&5 8168 8169 ac_header_compiler=no 8170fi 8171 8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8173{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8174echo "${ECHO_T}$ac_header_compiler" >&6; } 8175 8176# Is the header present? 8177{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8178echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8179cat >conftest.$ac_ext <<_ACEOF 8180/* confdefs.h. */ 8181_ACEOF 8182cat confdefs.h >>conftest.$ac_ext 8183cat >>conftest.$ac_ext <<_ACEOF 8184/* end confdefs.h. */ 8185#include <$ac_header> 8186_ACEOF 8187if { (ac_try="$ac_cpp conftest.$ac_ext" 8188case "(($ac_try" in 8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8190 *) ac_try_echo=$ac_try;; 8191esac 8192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8194 ac_status=$? 8195 grep -v '^ *+' conftest.er1 >conftest.err 8196 rm -f conftest.er1 8197 cat conftest.err >&5 8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8199 (exit $ac_status); } >/dev/null; then 8200 if test -s conftest.err; then 8201 ac_cpp_err=$ac_c_preproc_warn_flag 8202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8203 else 8204 ac_cpp_err= 8205 fi 8206else 8207 ac_cpp_err=yes 8208fi 8209if test -z "$ac_cpp_err"; then 8210 ac_header_preproc=yes 8211else 8212 echo "$as_me: failed program was:" >&5 8213sed 's/^/| /' conftest.$ac_ext >&5 8214 8215 ac_header_preproc=no 8216fi 8217 8218rm -f conftest.err conftest.$ac_ext 8219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8220echo "${ECHO_T}$ac_header_preproc" >&6; } 8221 8222# So? What about this header? 8223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8224 yes:no: ) 8225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8229 ac_header_preproc=yes 8230 ;; 8231 no:yes:* ) 8232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8244 ( cat <<\_ASBOX 8245## ------------------------------------ ## 8246## Report this to http://llvm.org/bugs/ ## 8247## ------------------------------------ ## 8248_ASBOX 8249 ) | sed "s/^/$as_me: WARNING: /" >&2 8250 ;; 8251esac 8252{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8255 echo $ECHO_N "(cached) $ECHO_C" >&6 8256else 8257 eval "$as_ac_Header=\$ac_header_preproc" 8258fi 8259ac_res=`eval echo '${'$as_ac_Header'}'` 8260 { echo "$as_me:$LINENO: result: $ac_res" >&5 8261echo "${ECHO_T}$ac_res" >&6; } 8262 8263fi 8264if test `eval echo '${'$as_ac_Header'}'` = yes; then 8265 cat >>confdefs.h <<_ACEOF 8266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8267_ACEOF 8268 8269fi 8270 8271done 8272 8273 8274case "$llvm_cv_os_type" in 8275 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;; 8276 Darwin) llvm_shlib_ext=.dylib ;; 8277 *) llvm_shlib_ext=.so ;; 8278esac 8279 8280 8281cat >>confdefs.h <<_ACEOF 8282#define LTDL_SHLIB_EXT "$llvm_shlib_ext" 8283_ACEOF 8284 8285 8286{ echo "$as_me:$LINENO: checking tool compatibility" >&5 8287echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 8288 8289ICC=no 8290IXX=no 8291case $CC in 8292 icc*|icpc*) 8293 ICC=yes 8294 IXX=yes 8295 ;; 8296 *) 8297 ;; 8298esac 8299 8300if test "$GCC" != "yes" && test "$ICC" != "yes" 8301then 8302 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 8303echo "$as_me: error: gcc|icc required but not found" >&2;} 8304 { (exit 1); exit 1; }; } 8305fi 8306 8307if test "$GXX" != "yes" && test "$IXX" != "yes" 8308then 8309 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 8310echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 8311 { (exit 1); exit 1; }; } 8312fi 8313 8314if test "$GCC" = "yes" 8315then 8316 cat >conftest.$ac_ext <<_ACEOF 8317 8318 /* confdefs.h. */ 8319_ACEOF 8320cat confdefs.h >>conftest.$ac_ext 8321cat >>conftest.$ac_ext <<_ACEOF 8322/* end confdefs.h. */ 8323 8324 #if !defined(__GNUC__) || __GNUC__ < 3 8325 #error Unsupported GCC version 8326 #endif 8327 8328 8329_ACEOF 8330rm -f conftest.$ac_objext 8331if { (ac_try="$ac_compile" 8332case "(($ac_try" in 8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8334 *) ac_try_echo=$ac_try;; 8335esac 8336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8337 (eval "$ac_compile") 2>conftest.er1 8338 ac_status=$? 8339 grep -v '^ *+' conftest.er1 >conftest.err 8340 rm -f conftest.er1 8341 cat conftest.err >&5 8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8343 (exit $ac_status); } && 8344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8345 { (case "(($ac_try" in 8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8347 *) ac_try_echo=$ac_try;; 8348esac 8349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8350 (eval "$ac_try") 2>&5 8351 ac_status=$? 8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8353 (exit $ac_status); }; } && 8354 { ac_try='test -s conftest.$ac_objext' 8355 { (case "(($ac_try" in 8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8357 *) ac_try_echo=$ac_try;; 8358esac 8359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8360 (eval "$ac_try") 2>&5 8361 ac_status=$? 8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8363 (exit $ac_status); }; }; then 8364 : 8365else 8366 echo "$as_me: failed program was:" >&5 8367sed 's/^/| /' conftest.$ac_ext >&5 8368 8369 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 8370echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 8371 { (exit 1); exit 1; }; } 8372fi 8373 8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8375fi 8376 8377if test -z "$llvm_cv_gnu_make_command" 8378then 8379 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 8380echo "$as_me: error: GNU Make required but not found" >&2;} 8381 { (exit 1); exit 1; }; } 8382fi 8383 8384{ echo "$as_me:$LINENO: result: ok" >&5 8385echo "${ECHO_T}ok" >&6; } 8386 8387{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 8388echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 8389case "$llvm_cv_cxx_compiler" in 8390 clang) 8391 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 8392 8393 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wmissing-field-initializers` 8394 8395 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 8396 8397 ;; 8398 gcc) 8399 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 8400 8401 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 8402 8403 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 8404 8405 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 8406 8407 if test -z "$NO_MAYBE_UNINITIALIZED" 8408 then 8409 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 8410 8411 fi 8412 ;; 8413 unknown) 8414 ;; 8415esac 8416 8417no_comment= 8418llvm_cv_old_cxxflags="$CXXFLAGS" 8419CXXFLAGS="$CXXFLAGS -Wcomment -Werror" 8420cat >conftest.$ac_ext <<_ACEOF 8421 8422 /* confdefs.h. */ 8423_ACEOF 8424cat confdefs.h >>conftest.$ac_ext 8425cat >>conftest.$ac_ext <<_ACEOF 8426/* end confdefs.h. */ 8427// Comment \o\ 8428// Another comment 8429int main() { return 0; } 8430 8431 8432_ACEOF 8433rm -f conftest.$ac_objext 8434if { (ac_try="$ac_compile" 8435case "(($ac_try" in 8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8437 *) ac_try_echo=$ac_try;; 8438esac 8439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8440 (eval "$ac_compile") 2>conftest.er1 8441 ac_status=$? 8442 grep -v '^ *+' conftest.er1 >conftest.err 8443 rm -f conftest.er1 8444 cat conftest.err >&5 8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8446 (exit $ac_status); } && 8447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8448 { (case "(($ac_try" in 8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8450 *) ac_try_echo=$ac_try;; 8451esac 8452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8453 (eval "$ac_try") 2>&5 8454 ac_status=$? 8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8456 (exit $ac_status); }; } && 8457 { ac_try='test -s conftest.$ac_objext' 8458 { (case "(($ac_try" in 8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8460 *) ac_try_echo=$ac_try;; 8461esac 8462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8463 (eval "$ac_try") 2>&5 8464 ac_status=$? 8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8466 (exit $ac_status); }; }; then 8467 8468 no_comment=-Wno-comment 8469 8470else 8471 echo "$as_me: failed program was:" >&5 8472sed 's/^/| /' conftest.$ac_ext >&5 8473 8474 8475fi 8476 8477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8478NO_COMMENT=$no_comment 8479 8480CXXFLAGS="$llvm_cv_old_cxxflags" 8481 8482{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5 8483echo "${ECHO_T}$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; } 8484 8485 8486# Check whether --with-python was given. 8487if test "${with_python+set}" = set; then 8488 withval=$with_python; PYTHON="$withval" 8489fi 8490 8491 8492if test -n "$PYTHON" && test -x "$PYTHON" ; then 8493 { echo "$as_me:$LINENO: checking for python" >&5 8494echo $ECHO_N "checking for python... $ECHO_C" >&6; } 8495 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5 8496echo "${ECHO_T}user defined: $with_python" >&6; } 8497else 8498 if test -n "$PYTHON" ; then 8499 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5 8500echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;} 8501 fi 8502 8503 # Extract the first word of "python python2 python27", so it can be a program name with args. 8504set dummy python python2 python27; ac_word=$2 8505{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8507if test "${ac_cv_path_PYTHON+set}" = set; then 8508 echo $ECHO_N "(cached) $ECHO_C" >&6 8509else 8510 case $PYTHON in 8511 [\\/]* | ?:[\\/]*) 8512 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 8513 ;; 8514 *) 8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8516for as_dir in $PATH 8517do 8518 IFS=$as_save_IFS 8519 test -z "$as_dir" && as_dir=. 8520 for ac_exec_ext in '' $ac_executable_extensions; do 8521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8522 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 8523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8524 break 2 8525 fi 8526done 8527done 8528IFS=$as_save_IFS 8529 8530 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5 8531echo "${ECHO_T}not found" >&6; } 8532 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5 8533echo "$as_me: error: could not find python 2.7 or higher" >&2;} 8534 { (exit 1); exit 1; }; }" 8535 ;; 8536esac 8537fi 8538PYTHON=$ac_cv_path_PYTHON 8539if test -n "$PYTHON"; then 8540 { echo "$as_me:$LINENO: result: $PYTHON" >&5 8541echo "${ECHO_T}$PYTHON" >&6; } 8542else 8543 { echo "$as_me:$LINENO: result: no" >&5 8544echo "${ECHO_T}no" >&6; } 8545fi 8546 8547 8548fi 8549 8550{ echo "$as_me:$LINENO: checking for python >= 2.7" >&5 8551echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; } 8552ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2` 8553ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1` 8554ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2` 8555ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3` 8556if test "$ac_python_version_major" -gt "2" || \ 8557 (test "$ac_python_version_major" -eq "2" && \ 8558 test "$ac_python_version_minor" -ge "7") ; then 8559 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5 8560echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; } 8561else 8562 { echo "$as_me:$LINENO: result: not found" >&5 8563echo "${ECHO_T}not found" >&6; } 8564 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7 8565See \`config.log' for more details." >&5 8566echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7 8567See \`config.log' for more details." >&2;} 8568 { (exit 1); exit 1; }; } 8569fi 8570 8571 8572 8573{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 8574echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 8575if test "${ac_cv_lib_m_sin+set}" = set; then 8576 echo $ECHO_N "(cached) $ECHO_C" >&6 8577else 8578 ac_check_lib_save_LIBS=$LIBS 8579LIBS="-lm $LIBS" 8580cat >conftest.$ac_ext <<_ACEOF 8581/* confdefs.h. */ 8582_ACEOF 8583cat confdefs.h >>conftest.$ac_ext 8584cat >>conftest.$ac_ext <<_ACEOF 8585/* end confdefs.h. */ 8586 8587/* Override any GCC internal prototype to avoid an error. 8588 Use char because int might match the return type of a GCC 8589 builtin and then its argument prototype would still apply. */ 8590#ifdef __cplusplus 8591extern "C" 8592#endif 8593char sin (); 8594int 8595main () 8596{ 8597return sin (); 8598 ; 8599 return 0; 8600} 8601_ACEOF 8602rm -f conftest.$ac_objext conftest$ac_exeext 8603if { (ac_try="$ac_link" 8604case "(($ac_try" in 8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8606 *) ac_try_echo=$ac_try;; 8607esac 8608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8609 (eval "$ac_link") 2>conftest.er1 8610 ac_status=$? 8611 grep -v '^ *+' conftest.er1 >conftest.err 8612 rm -f conftest.er1 8613 cat conftest.err >&5 8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8615 (exit $ac_status); } && 8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8617 { (case "(($ac_try" in 8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8619 *) ac_try_echo=$ac_try;; 8620esac 8621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8622 (eval "$ac_try") 2>&5 8623 ac_status=$? 8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8625 (exit $ac_status); }; } && 8626 { ac_try='test -s conftest$ac_exeext' 8627 { (case "(($ac_try" in 8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8629 *) ac_try_echo=$ac_try;; 8630esac 8631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8632 (eval "$ac_try") 2>&5 8633 ac_status=$? 8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8635 (exit $ac_status); }; }; then 8636 ac_cv_lib_m_sin=yes 8637else 8638 echo "$as_me: failed program was:" >&5 8639sed 's/^/| /' conftest.$ac_ext >&5 8640 8641 ac_cv_lib_m_sin=no 8642fi 8643 8644rm -f core conftest.err conftest.$ac_objext \ 8645 conftest$ac_exeext conftest.$ac_ext 8646LIBS=$ac_check_lib_save_LIBS 8647fi 8648{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 8649echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 8650if test $ac_cv_lib_m_sin = yes; then 8651 cat >>confdefs.h <<_ACEOF 8652#define HAVE_LIBM 1 8653_ACEOF 8654 8655 LIBS="-lm $LIBS" 8656 8657fi 8658 8659if test "$llvm_cv_os_type" = "MingW" ; then 8660 8661{ echo "$as_me:$LINENO: checking for main in -lole32" >&5 8662echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; } 8663if test "${ac_cv_lib_ole32_main+set}" = set; then 8664 echo $ECHO_N "(cached) $ECHO_C" >&6 8665else 8666 ac_check_lib_save_LIBS=$LIBS 8667LIBS="-lole32 $LIBS" 8668cat >conftest.$ac_ext <<_ACEOF 8669/* confdefs.h. */ 8670_ACEOF 8671cat confdefs.h >>conftest.$ac_ext 8672cat >>conftest.$ac_ext <<_ACEOF 8673/* end confdefs.h. */ 8674 8675 8676int 8677main () 8678{ 8679return main (); 8680 ; 8681 return 0; 8682} 8683_ACEOF 8684rm -f conftest.$ac_objext conftest$ac_exeext 8685if { (ac_try="$ac_link" 8686case "(($ac_try" in 8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8688 *) ac_try_echo=$ac_try;; 8689esac 8690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8691 (eval "$ac_link") 2>conftest.er1 8692 ac_status=$? 8693 grep -v '^ *+' conftest.er1 >conftest.err 8694 rm -f conftest.er1 8695 cat conftest.err >&5 8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8697 (exit $ac_status); } && 8698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8699 { (case "(($ac_try" in 8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8701 *) ac_try_echo=$ac_try;; 8702esac 8703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8704 (eval "$ac_try") 2>&5 8705 ac_status=$? 8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8707 (exit $ac_status); }; } && 8708 { ac_try='test -s conftest$ac_exeext' 8709 { (case "(($ac_try" in 8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8711 *) ac_try_echo=$ac_try;; 8712esac 8713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8714 (eval "$ac_try") 2>&5 8715 ac_status=$? 8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8717 (exit $ac_status); }; }; then 8718 ac_cv_lib_ole32_main=yes 8719else 8720 echo "$as_me: failed program was:" >&5 8721sed 's/^/| /' conftest.$ac_ext >&5 8722 8723 ac_cv_lib_ole32_main=no 8724fi 8725 8726rm -f core conftest.err conftest.$ac_objext \ 8727 conftest$ac_exeext conftest.$ac_ext 8728LIBS=$ac_check_lib_save_LIBS 8729fi 8730{ echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5 8731echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; } 8732if test $ac_cv_lib_ole32_main = yes; then 8733 cat >>confdefs.h <<_ACEOF 8734#define HAVE_LIBOLE32 1 8735_ACEOF 8736 8737 LIBS="-lole32 $LIBS" 8738 8739fi 8740 8741 8742{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 8743echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 8744if test "${ac_cv_lib_psapi_main+set}" = set; then 8745 echo $ECHO_N "(cached) $ECHO_C" >&6 8746else 8747 ac_check_lib_save_LIBS=$LIBS 8748LIBS="-lpsapi $LIBS" 8749cat >conftest.$ac_ext <<_ACEOF 8750/* confdefs.h. */ 8751_ACEOF 8752cat confdefs.h >>conftest.$ac_ext 8753cat >>conftest.$ac_ext <<_ACEOF 8754/* end confdefs.h. */ 8755 8756 8757int 8758main () 8759{ 8760return main (); 8761 ; 8762 return 0; 8763} 8764_ACEOF 8765rm -f conftest.$ac_objext conftest$ac_exeext 8766if { (ac_try="$ac_link" 8767case "(($ac_try" in 8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8769 *) ac_try_echo=$ac_try;; 8770esac 8771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8772 (eval "$ac_link") 2>conftest.er1 8773 ac_status=$? 8774 grep -v '^ *+' conftest.er1 >conftest.err 8775 rm -f conftest.er1 8776 cat conftest.err >&5 8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8778 (exit $ac_status); } && 8779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8780 { (case "(($ac_try" in 8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8782 *) ac_try_echo=$ac_try;; 8783esac 8784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8785 (eval "$ac_try") 2>&5 8786 ac_status=$? 8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8788 (exit $ac_status); }; } && 8789 { ac_try='test -s conftest$ac_exeext' 8790 { (case "(($ac_try" in 8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8792 *) ac_try_echo=$ac_try;; 8793esac 8794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8795 (eval "$ac_try") 2>&5 8796 ac_status=$? 8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8798 (exit $ac_status); }; }; then 8799 ac_cv_lib_psapi_main=yes 8800else 8801 echo "$as_me: failed program was:" >&5 8802sed 's/^/| /' conftest.$ac_ext >&5 8803 8804 ac_cv_lib_psapi_main=no 8805fi 8806 8807rm -f core conftest.err conftest.$ac_objext \ 8808 conftest$ac_exeext conftest.$ac_ext 8809LIBS=$ac_check_lib_save_LIBS 8810fi 8811{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 8812echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 8813if test $ac_cv_lib_psapi_main = yes; then 8814 cat >>confdefs.h <<_ACEOF 8815#define HAVE_LIBPSAPI 1 8816_ACEOF 8817 8818 LIBS="-lpsapi $LIBS" 8819 8820fi 8821 8822 8823{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5 8824echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; } 8825if test "${ac_cv_lib_shell32_main+set}" = set; then 8826 echo $ECHO_N "(cached) $ECHO_C" >&6 8827else 8828 ac_check_lib_save_LIBS=$LIBS 8829LIBS="-lshell32 $LIBS" 8830cat >conftest.$ac_ext <<_ACEOF 8831/* confdefs.h. */ 8832_ACEOF 8833cat confdefs.h >>conftest.$ac_ext 8834cat >>conftest.$ac_ext <<_ACEOF 8835/* end confdefs.h. */ 8836 8837 8838int 8839main () 8840{ 8841return main (); 8842 ; 8843 return 0; 8844} 8845_ACEOF 8846rm -f conftest.$ac_objext conftest$ac_exeext 8847if { (ac_try="$ac_link" 8848case "(($ac_try" in 8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8850 *) ac_try_echo=$ac_try;; 8851esac 8852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8853 (eval "$ac_link") 2>conftest.er1 8854 ac_status=$? 8855 grep -v '^ *+' conftest.er1 >conftest.err 8856 rm -f conftest.er1 8857 cat conftest.err >&5 8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8859 (exit $ac_status); } && 8860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8861 { (case "(($ac_try" in 8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8863 *) ac_try_echo=$ac_try;; 8864esac 8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8866 (eval "$ac_try") 2>&5 8867 ac_status=$? 8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8869 (exit $ac_status); }; } && 8870 { ac_try='test -s conftest$ac_exeext' 8871 { (case "(($ac_try" in 8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8873 *) ac_try_echo=$ac_try;; 8874esac 8875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8876 (eval "$ac_try") 2>&5 8877 ac_status=$? 8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8879 (exit $ac_status); }; }; then 8880 ac_cv_lib_shell32_main=yes 8881else 8882 echo "$as_me: failed program was:" >&5 8883sed 's/^/| /' conftest.$ac_ext >&5 8884 8885 ac_cv_lib_shell32_main=no 8886fi 8887 8888rm -f core conftest.err conftest.$ac_objext \ 8889 conftest$ac_exeext conftest.$ac_ext 8890LIBS=$ac_check_lib_save_LIBS 8891fi 8892{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5 8893echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; } 8894if test $ac_cv_lib_shell32_main = yes; then 8895 cat >>confdefs.h <<_ACEOF 8896#define HAVE_LIBSHELL32 1 8897_ACEOF 8898 8899 LIBS="-lshell32 $LIBS" 8900 8901fi 8902 8903 8904{ echo "$as_me:$LINENO: checking for main in -luuid" >&5 8905echo $ECHO_N "checking for main in -luuid... $ECHO_C" >&6; } 8906if test "${ac_cv_lib_uuid_main+set}" = set; then 8907 echo $ECHO_N "(cached) $ECHO_C" >&6 8908else 8909 ac_check_lib_save_LIBS=$LIBS 8910LIBS="-luuid $LIBS" 8911cat >conftest.$ac_ext <<_ACEOF 8912/* confdefs.h. */ 8913_ACEOF 8914cat confdefs.h >>conftest.$ac_ext 8915cat >>conftest.$ac_ext <<_ACEOF 8916/* end confdefs.h. */ 8917 8918 8919int 8920main () 8921{ 8922return main (); 8923 ; 8924 return 0; 8925} 8926_ACEOF 8927rm -f conftest.$ac_objext conftest$ac_exeext 8928if { (ac_try="$ac_link" 8929case "(($ac_try" in 8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8931 *) ac_try_echo=$ac_try;; 8932esac 8933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8934 (eval "$ac_link") 2>conftest.er1 8935 ac_status=$? 8936 grep -v '^ *+' conftest.er1 >conftest.err 8937 rm -f conftest.er1 8938 cat conftest.err >&5 8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 (exit $ac_status); } && 8941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8942 { (case "(($ac_try" in 8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8944 *) ac_try_echo=$ac_try;; 8945esac 8946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8947 (eval "$ac_try") 2>&5 8948 ac_status=$? 8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8950 (exit $ac_status); }; } && 8951 { ac_try='test -s conftest$ac_exeext' 8952 { (case "(($ac_try" in 8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8954 *) ac_try_echo=$ac_try;; 8955esac 8956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8957 (eval "$ac_try") 2>&5 8958 ac_status=$? 8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8960 (exit $ac_status); }; }; then 8961 ac_cv_lib_uuid_main=yes 8962else 8963 echo "$as_me: failed program was:" >&5 8964sed 's/^/| /' conftest.$ac_ext >&5 8965 8966 ac_cv_lib_uuid_main=no 8967fi 8968 8969rm -f core conftest.err conftest.$ac_objext \ 8970 conftest$ac_exeext conftest.$ac_ext 8971LIBS=$ac_check_lib_save_LIBS 8972fi 8973{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_main" >&5 8974echo "${ECHO_T}$ac_cv_lib_uuid_main" >&6; } 8975if test $ac_cv_lib_uuid_main = yes; then 8976 cat >>confdefs.h <<_ACEOF 8977#define HAVE_LIBUUID 1 8978_ACEOF 8979 8980 LIBS="-luuid $LIBS" 8981 8982fi 8983 8984fi 8985 8986{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 8987echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 8988if test "${ac_cv_search_dlopen+set}" = set; then 8989 echo $ECHO_N "(cached) $ECHO_C" >&6 8990else 8991 ac_func_search_save_LIBS=$LIBS 8992cat >conftest.$ac_ext <<_ACEOF 8993/* confdefs.h. */ 8994_ACEOF 8995cat confdefs.h >>conftest.$ac_ext 8996cat >>conftest.$ac_ext <<_ACEOF 8997/* end confdefs.h. */ 8998 8999/* Override any GCC internal prototype to avoid an error. 9000 Use char because int might match the return type of a GCC 9001 builtin and then its argument prototype would still apply. */ 9002#ifdef __cplusplus 9003extern "C" 9004#endif 9005char dlopen (); 9006int 9007main () 9008{ 9009return dlopen (); 9010 ; 9011 return 0; 9012} 9013_ACEOF 9014for ac_lib in '' dl; do 9015 if test -z "$ac_lib"; then 9016 ac_res="none required" 9017 else 9018 ac_res=-l$ac_lib 9019 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9020 fi 9021 rm -f conftest.$ac_objext conftest$ac_exeext 9022if { (ac_try="$ac_link" 9023case "(($ac_try" in 9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9025 *) ac_try_echo=$ac_try;; 9026esac 9027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9028 (eval "$ac_link") 2>conftest.er1 9029 ac_status=$? 9030 grep -v '^ *+' conftest.er1 >conftest.err 9031 rm -f conftest.er1 9032 cat conftest.err >&5 9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9034 (exit $ac_status); } && 9035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9036 { (case "(($ac_try" in 9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9038 *) ac_try_echo=$ac_try;; 9039esac 9040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9041 (eval "$ac_try") 2>&5 9042 ac_status=$? 9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 (exit $ac_status); }; } && 9045 { ac_try='test -s conftest$ac_exeext' 9046 { (case "(($ac_try" in 9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9048 *) ac_try_echo=$ac_try;; 9049esac 9050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9051 (eval "$ac_try") 2>&5 9052 ac_status=$? 9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9054 (exit $ac_status); }; }; then 9055 ac_cv_search_dlopen=$ac_res 9056else 9057 echo "$as_me: failed program was:" >&5 9058sed 's/^/| /' conftest.$ac_ext >&5 9059 9060 9061fi 9062 9063rm -f core conftest.err conftest.$ac_objext \ 9064 conftest$ac_exeext 9065 if test "${ac_cv_search_dlopen+set}" = set; then 9066 break 9067fi 9068done 9069if test "${ac_cv_search_dlopen+set}" = set; then 9070 : 9071else 9072 ac_cv_search_dlopen=no 9073fi 9074rm conftest.$ac_ext 9075LIBS=$ac_func_search_save_LIBS 9076fi 9077{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 9078echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 9079ac_res=$ac_cv_search_dlopen 9080if test "$ac_res" != no; then 9081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9082 9083 9084cat >>confdefs.h <<\_ACEOF 9085#define HAVE_DLOPEN 1 9086_ACEOF 9087 9088HAVE_DLOPEN='1' 9089 9090 9091else 9092 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 9093echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 9094fi 9095 9096 9097{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 9098echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } 9099if test "${ac_cv_search_clock_gettime+set}" = set; then 9100 echo $ECHO_N "(cached) $ECHO_C" >&6 9101else 9102 ac_func_search_save_LIBS=$LIBS 9103cat >conftest.$ac_ext <<_ACEOF 9104/* confdefs.h. */ 9105_ACEOF 9106cat confdefs.h >>conftest.$ac_ext 9107cat >>conftest.$ac_ext <<_ACEOF 9108/* end confdefs.h. */ 9109 9110/* Override any GCC internal prototype to avoid an error. 9111 Use char because int might match the return type of a GCC 9112 builtin and then its argument prototype would still apply. */ 9113#ifdef __cplusplus 9114extern "C" 9115#endif 9116char clock_gettime (); 9117int 9118main () 9119{ 9120return clock_gettime (); 9121 ; 9122 return 0; 9123} 9124_ACEOF 9125for ac_lib in '' rt; do 9126 if test -z "$ac_lib"; then 9127 ac_res="none required" 9128 else 9129 ac_res=-l$ac_lib 9130 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9131 fi 9132 rm -f conftest.$ac_objext conftest$ac_exeext 9133if { (ac_try="$ac_link" 9134case "(($ac_try" in 9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9136 *) ac_try_echo=$ac_try;; 9137esac 9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9139 (eval "$ac_link") 2>conftest.er1 9140 ac_status=$? 9141 grep -v '^ *+' conftest.er1 >conftest.err 9142 rm -f conftest.er1 9143 cat conftest.err >&5 9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9145 (exit $ac_status); } && 9146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9147 { (case "(($ac_try" in 9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9149 *) ac_try_echo=$ac_try;; 9150esac 9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9152 (eval "$ac_try") 2>&5 9153 ac_status=$? 9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9155 (exit $ac_status); }; } && 9156 { ac_try='test -s conftest$ac_exeext' 9157 { (case "(($ac_try" in 9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9159 *) ac_try_echo=$ac_try;; 9160esac 9161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9162 (eval "$ac_try") 2>&5 9163 ac_status=$? 9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9165 (exit $ac_status); }; }; then 9166 ac_cv_search_clock_gettime=$ac_res 9167else 9168 echo "$as_me: failed program was:" >&5 9169sed 's/^/| /' conftest.$ac_ext >&5 9170 9171 9172fi 9173 9174rm -f core conftest.err conftest.$ac_objext \ 9175 conftest$ac_exeext 9176 if test "${ac_cv_search_clock_gettime+set}" = set; then 9177 break 9178fi 9179done 9180if test "${ac_cv_search_clock_gettime+set}" = set; then 9181 : 9182else 9183 ac_cv_search_clock_gettime=no 9184fi 9185rm conftest.$ac_ext 9186LIBS=$ac_func_search_save_LIBS 9187fi 9188{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 9189echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } 9190ac_res=$ac_cv_search_clock_gettime 9191if test "$ac_res" != no; then 9192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9193 9194fi 9195 9196 9197if test "$llvm_cv_enable_terminfo" = "yes" ; then 9198 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5 9199echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; } 9200if test "${ac_cv_search_setupterm+set}" = set; then 9201 echo $ECHO_N "(cached) $ECHO_C" >&6 9202else 9203 ac_func_search_save_LIBS=$LIBS 9204cat >conftest.$ac_ext <<_ACEOF 9205/* confdefs.h. */ 9206_ACEOF 9207cat confdefs.h >>conftest.$ac_ext 9208cat >>conftest.$ac_ext <<_ACEOF 9209/* end confdefs.h. */ 9210 9211/* Override any GCC internal prototype to avoid an error. 9212 Use char because int might match the return type of a GCC 9213 builtin and then its argument prototype would still apply. */ 9214#ifdef __cplusplus 9215extern "C" 9216#endif 9217char setupterm (); 9218int 9219main () 9220{ 9221return setupterm (); 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do 9227 if test -z "$ac_lib"; then 9228 ac_res="none required" 9229 else 9230 ac_res=-l$ac_lib 9231 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9232 fi 9233 rm -f conftest.$ac_objext conftest$ac_exeext 9234if { (ac_try="$ac_link" 9235case "(($ac_try" in 9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9237 *) ac_try_echo=$ac_try;; 9238esac 9239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9240 (eval "$ac_link") 2>conftest.er1 9241 ac_status=$? 9242 grep -v '^ *+' conftest.er1 >conftest.err 9243 rm -f conftest.er1 9244 cat conftest.err >&5 9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9246 (exit $ac_status); } && 9247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9248 { (case "(($ac_try" in 9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9250 *) ac_try_echo=$ac_try;; 9251esac 9252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9253 (eval "$ac_try") 2>&5 9254 ac_status=$? 9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9256 (exit $ac_status); }; } && 9257 { ac_try='test -s conftest$ac_exeext' 9258 { (case "(($ac_try" in 9259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9260 *) ac_try_echo=$ac_try;; 9261esac 9262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9263 (eval "$ac_try") 2>&5 9264 ac_status=$? 9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9266 (exit $ac_status); }; }; then 9267 ac_cv_search_setupterm=$ac_res 9268else 9269 echo "$as_me: failed program was:" >&5 9270sed 's/^/| /' conftest.$ac_ext >&5 9271 9272 9273fi 9274 9275rm -f core conftest.err conftest.$ac_objext \ 9276 conftest$ac_exeext 9277 if test "${ac_cv_search_setupterm+set}" = set; then 9278 break 9279fi 9280done 9281if test "${ac_cv_search_setupterm+set}" = set; then 9282 : 9283else 9284 ac_cv_search_setupterm=no 9285fi 9286rm conftest.$ac_ext 9287LIBS=$ac_func_search_save_LIBS 9288fi 9289{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5 9290echo "${ECHO_T}$ac_cv_search_setupterm" >&6; } 9291ac_res=$ac_cv_search_setupterm 9292if test "$ac_res" != no; then 9293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9294 9295 9296cat >>confdefs.h <<\_ACEOF 9297#define HAVE_TERMINFO 1 9298_ACEOF 9299 9300HAVE_TERMINFO='1' 9301 9302 9303fi 9304 9305fi 9306 9307if test "$llvm_cv_enable_libedit" = "yes" ; then 9308 { echo "$as_me:$LINENO: checking for library containing el_init" >&5 9309echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; } 9310if test "${ac_cv_search_el_init+set}" = set; then 9311 echo $ECHO_N "(cached) $ECHO_C" >&6 9312else 9313 ac_func_search_save_LIBS=$LIBS 9314cat >conftest.$ac_ext <<_ACEOF 9315/* confdefs.h. */ 9316_ACEOF 9317cat confdefs.h >>conftest.$ac_ext 9318cat >>conftest.$ac_ext <<_ACEOF 9319/* end confdefs.h. */ 9320 9321/* Override any GCC internal prototype to avoid an error. 9322 Use char because int might match the return type of a GCC 9323 builtin and then its argument prototype would still apply. */ 9324#ifdef __cplusplus 9325extern "C" 9326#endif 9327char el_init (); 9328int 9329main () 9330{ 9331return el_init (); 9332 ; 9333 return 0; 9334} 9335_ACEOF 9336for ac_lib in '' edit; do 9337 if test -z "$ac_lib"; then 9338 ac_res="none required" 9339 else 9340 ac_res=-l$ac_lib 9341 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9342 fi 9343 rm -f conftest.$ac_objext conftest$ac_exeext 9344if { (ac_try="$ac_link" 9345case "(($ac_try" in 9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9347 *) ac_try_echo=$ac_try;; 9348esac 9349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9350 (eval "$ac_link") 2>conftest.er1 9351 ac_status=$? 9352 grep -v '^ *+' conftest.er1 >conftest.err 9353 rm -f conftest.er1 9354 cat conftest.err >&5 9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9356 (exit $ac_status); } && 9357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9358 { (case "(($ac_try" in 9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9360 *) ac_try_echo=$ac_try;; 9361esac 9362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9363 (eval "$ac_try") 2>&5 9364 ac_status=$? 9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9366 (exit $ac_status); }; } && 9367 { ac_try='test -s conftest$ac_exeext' 9368 { (case "(($ac_try" in 9369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9370 *) ac_try_echo=$ac_try;; 9371esac 9372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9373 (eval "$ac_try") 2>&5 9374 ac_status=$? 9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9376 (exit $ac_status); }; }; then 9377 ac_cv_search_el_init=$ac_res 9378else 9379 echo "$as_me: failed program was:" >&5 9380sed 's/^/| /' conftest.$ac_ext >&5 9381 9382 9383fi 9384 9385rm -f core conftest.err conftest.$ac_objext \ 9386 conftest$ac_exeext 9387 if test "${ac_cv_search_el_init+set}" = set; then 9388 break 9389fi 9390done 9391if test "${ac_cv_search_el_init+set}" = set; then 9392 : 9393else 9394 ac_cv_search_el_init=no 9395fi 9396rm conftest.$ac_ext 9397LIBS=$ac_func_search_save_LIBS 9398fi 9399{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5 9400echo "${ECHO_T}$ac_cv_search_el_init" >&6; } 9401ac_res=$ac_cv_search_el_init 9402if test "$ac_res" != no; then 9403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9404 9405cat >>confdefs.h <<\_ACEOF 9406#define HAVE_LIBEDIT 1 9407_ACEOF 9408 9409fi 9410 9411fi 9412 9413if test "$llvm_cv_enable_libffi" = "yes" ; then 9414 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 9415echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 9416if test "${ac_cv_search_ffi_call+set}" = set; then 9417 echo $ECHO_N "(cached) $ECHO_C" >&6 9418else 9419 ac_func_search_save_LIBS=$LIBS 9420cat >conftest.$ac_ext <<_ACEOF 9421/* confdefs.h. */ 9422_ACEOF 9423cat confdefs.h >>conftest.$ac_ext 9424cat >>conftest.$ac_ext <<_ACEOF 9425/* end confdefs.h. */ 9426 9427/* Override any GCC internal prototype to avoid an error. 9428 Use char because int might match the return type of a GCC 9429 builtin and then its argument prototype would still apply. */ 9430#ifdef __cplusplus 9431extern "C" 9432#endif 9433char ffi_call (); 9434int 9435main () 9436{ 9437return ffi_call (); 9438 ; 9439 return 0; 9440} 9441_ACEOF 9442for ac_lib in '' ffi; do 9443 if test -z "$ac_lib"; then 9444 ac_res="none required" 9445 else 9446 ac_res=-l$ac_lib 9447 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9448 fi 9449 rm -f conftest.$ac_objext conftest$ac_exeext 9450if { (ac_try="$ac_link" 9451case "(($ac_try" in 9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9453 *) ac_try_echo=$ac_try;; 9454esac 9455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9456 (eval "$ac_link") 2>conftest.er1 9457 ac_status=$? 9458 grep -v '^ *+' conftest.er1 >conftest.err 9459 rm -f conftest.er1 9460 cat conftest.err >&5 9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9462 (exit $ac_status); } && 9463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9464 { (case "(($ac_try" in 9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9466 *) ac_try_echo=$ac_try;; 9467esac 9468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9469 (eval "$ac_try") 2>&5 9470 ac_status=$? 9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9472 (exit $ac_status); }; } && 9473 { ac_try='test -s conftest$ac_exeext' 9474 { (case "(($ac_try" in 9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9476 *) ac_try_echo=$ac_try;; 9477esac 9478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9479 (eval "$ac_try") 2>&5 9480 ac_status=$? 9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9482 (exit $ac_status); }; }; then 9483 ac_cv_search_ffi_call=$ac_res 9484else 9485 echo "$as_me: failed program was:" >&5 9486sed 's/^/| /' conftest.$ac_ext >&5 9487 9488 9489fi 9490 9491rm -f core conftest.err conftest.$ac_objext \ 9492 conftest$ac_exeext 9493 if test "${ac_cv_search_ffi_call+set}" = set; then 9494 break 9495fi 9496done 9497if test "${ac_cv_search_ffi_call+set}" = set; then 9498 : 9499else 9500 ac_cv_search_ffi_call=no 9501fi 9502rm conftest.$ac_ext 9503LIBS=$ac_func_search_save_LIBS 9504fi 9505{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 9506echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 9507ac_res=$ac_cv_search_ffi_call 9508if test "$ac_res" != no; then 9509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9510 9511cat >>confdefs.h <<\_ACEOF 9512#define HAVE_FFI_CALL 1 9513_ACEOF 9514 9515else 9516 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 9517echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 9518 { (exit 1); exit 1; }; } 9519fi 9520 9521fi 9522 9523{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 9524echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 9525if test "${ac_cv_search_mallinfo+set}" = set; then 9526 echo $ECHO_N "(cached) $ECHO_C" >&6 9527else 9528 ac_func_search_save_LIBS=$LIBS 9529cat >conftest.$ac_ext <<_ACEOF 9530/* confdefs.h. */ 9531_ACEOF 9532cat confdefs.h >>conftest.$ac_ext 9533cat >>conftest.$ac_ext <<_ACEOF 9534/* end confdefs.h. */ 9535 9536/* Override any GCC internal prototype to avoid an error. 9537 Use char because int might match the return type of a GCC 9538 builtin and then its argument prototype would still apply. */ 9539#ifdef __cplusplus 9540extern "C" 9541#endif 9542char mallinfo (); 9543int 9544main () 9545{ 9546return mallinfo (); 9547 ; 9548 return 0; 9549} 9550_ACEOF 9551for ac_lib in '' malloc; do 9552 if test -z "$ac_lib"; then 9553 ac_res="none required" 9554 else 9555 ac_res=-l$ac_lib 9556 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9557 fi 9558 rm -f conftest.$ac_objext conftest$ac_exeext 9559if { (ac_try="$ac_link" 9560case "(($ac_try" in 9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9562 *) ac_try_echo=$ac_try;; 9563esac 9564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9565 (eval "$ac_link") 2>conftest.er1 9566 ac_status=$? 9567 grep -v '^ *+' conftest.er1 >conftest.err 9568 rm -f conftest.er1 9569 cat conftest.err >&5 9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9571 (exit $ac_status); } && 9572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9573 { (case "(($ac_try" in 9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9575 *) ac_try_echo=$ac_try;; 9576esac 9577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9578 (eval "$ac_try") 2>&5 9579 ac_status=$? 9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9581 (exit $ac_status); }; } && 9582 { ac_try='test -s conftest$ac_exeext' 9583 { (case "(($ac_try" in 9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9585 *) ac_try_echo=$ac_try;; 9586esac 9587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9588 (eval "$ac_try") 2>&5 9589 ac_status=$? 9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9591 (exit $ac_status); }; }; then 9592 ac_cv_search_mallinfo=$ac_res 9593else 9594 echo "$as_me: failed program was:" >&5 9595sed 's/^/| /' conftest.$ac_ext >&5 9596 9597 9598fi 9599 9600rm -f core conftest.err conftest.$ac_objext \ 9601 conftest$ac_exeext 9602 if test "${ac_cv_search_mallinfo+set}" = set; then 9603 break 9604fi 9605done 9606if test "${ac_cv_search_mallinfo+set}" = set; then 9607 : 9608else 9609 ac_cv_search_mallinfo=no 9610fi 9611rm conftest.$ac_ext 9612LIBS=$ac_func_search_save_LIBS 9613fi 9614{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 9615echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 9616ac_res=$ac_cv_search_mallinfo 9617if test "$ac_res" != no; then 9618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9619 9620cat >>confdefs.h <<\_ACEOF 9621#define HAVE_MALLINFO 1 9622_ACEOF 9623 9624fi 9625 9626 9627if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 9628 9629{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 9630echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 9631if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 9632 echo $ECHO_N "(cached) $ECHO_C" >&6 9633else 9634 ac_check_lib_save_LIBS=$LIBS 9635LIBS="-lpthread $LIBS" 9636cat >conftest.$ac_ext <<_ACEOF 9637/* confdefs.h. */ 9638_ACEOF 9639cat confdefs.h >>conftest.$ac_ext 9640cat >>conftest.$ac_ext <<_ACEOF 9641/* end confdefs.h. */ 9642 9643/* Override any GCC internal prototype to avoid an error. 9644 Use char because int might match the return type of a GCC 9645 builtin and then its argument prototype would still apply. */ 9646#ifdef __cplusplus 9647extern "C" 9648#endif 9649char pthread_mutex_init (); 9650int 9651main () 9652{ 9653return pthread_mutex_init (); 9654 ; 9655 return 0; 9656} 9657_ACEOF 9658rm -f conftest.$ac_objext conftest$ac_exeext 9659if { (ac_try="$ac_link" 9660case "(($ac_try" in 9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9662 *) ac_try_echo=$ac_try;; 9663esac 9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9665 (eval "$ac_link") 2>conftest.er1 9666 ac_status=$? 9667 grep -v '^ *+' conftest.er1 >conftest.err 9668 rm -f conftest.er1 9669 cat conftest.err >&5 9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9671 (exit $ac_status); } && 9672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9673 { (case "(($ac_try" in 9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9675 *) ac_try_echo=$ac_try;; 9676esac 9677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9678 (eval "$ac_try") 2>&5 9679 ac_status=$? 9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9681 (exit $ac_status); }; } && 9682 { ac_try='test -s conftest$ac_exeext' 9683 { (case "(($ac_try" in 9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9685 *) ac_try_echo=$ac_try;; 9686esac 9687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9688 (eval "$ac_try") 2>&5 9689 ac_status=$? 9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9691 (exit $ac_status); }; }; then 9692 ac_cv_lib_pthread_pthread_mutex_init=yes 9693else 9694 echo "$as_me: failed program was:" >&5 9695sed 's/^/| /' conftest.$ac_ext >&5 9696 9697 ac_cv_lib_pthread_pthread_mutex_init=no 9698fi 9699 9700rm -f core conftest.err conftest.$ac_objext \ 9701 conftest$ac_exeext conftest.$ac_ext 9702LIBS=$ac_check_lib_save_LIBS 9703fi 9704{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 9705echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 9706if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 9707 cat >>confdefs.h <<_ACEOF 9708#define HAVE_LIBPTHREAD 1 9709_ACEOF 9710 9711 LIBS="-lpthread $LIBS" 9712 9713fi 9714 9715 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 9716echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 9717if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 9718 echo $ECHO_N "(cached) $ECHO_C" >&6 9719else 9720 ac_func_search_save_LIBS=$LIBS 9721cat >conftest.$ac_ext <<_ACEOF 9722/* confdefs.h. */ 9723_ACEOF 9724cat confdefs.h >>conftest.$ac_ext 9725cat >>conftest.$ac_ext <<_ACEOF 9726/* end confdefs.h. */ 9727 9728/* Override any GCC internal prototype to avoid an error. 9729 Use char because int might match the return type of a GCC 9730 builtin and then its argument prototype would still apply. */ 9731#ifdef __cplusplus 9732extern "C" 9733#endif 9734char pthread_mutex_lock (); 9735int 9736main () 9737{ 9738return pthread_mutex_lock (); 9739 ; 9740 return 0; 9741} 9742_ACEOF 9743for ac_lib in '' pthread; do 9744 if test -z "$ac_lib"; then 9745 ac_res="none required" 9746 else 9747 ac_res=-l$ac_lib 9748 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9749 fi 9750 rm -f conftest.$ac_objext conftest$ac_exeext 9751if { (ac_try="$ac_link" 9752case "(($ac_try" in 9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9754 *) ac_try_echo=$ac_try;; 9755esac 9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9757 (eval "$ac_link") 2>conftest.er1 9758 ac_status=$? 9759 grep -v '^ *+' conftest.er1 >conftest.err 9760 rm -f conftest.er1 9761 cat conftest.err >&5 9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9763 (exit $ac_status); } && 9764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9765 { (case "(($ac_try" in 9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9767 *) ac_try_echo=$ac_try;; 9768esac 9769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9770 (eval "$ac_try") 2>&5 9771 ac_status=$? 9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9773 (exit $ac_status); }; } && 9774 { ac_try='test -s conftest$ac_exeext' 9775 { (case "(($ac_try" in 9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9777 *) ac_try_echo=$ac_try;; 9778esac 9779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9780 (eval "$ac_try") 2>&5 9781 ac_status=$? 9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9783 (exit $ac_status); }; }; then 9784 ac_cv_search_pthread_mutex_lock=$ac_res 9785else 9786 echo "$as_me: failed program was:" >&5 9787sed 's/^/| /' conftest.$ac_ext >&5 9788 9789 9790fi 9791 9792rm -f core conftest.err conftest.$ac_objext \ 9793 conftest$ac_exeext 9794 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 9795 break 9796fi 9797done 9798if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 9799 : 9800else 9801 ac_cv_search_pthread_mutex_lock=no 9802fi 9803rm conftest.$ac_ext 9804LIBS=$ac_func_search_save_LIBS 9805fi 9806{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 9807echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 9808ac_res=$ac_cv_search_pthread_mutex_lock 9809if test "$ac_res" != no; then 9810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9811 9812cat >>confdefs.h <<\_ACEOF 9813#define HAVE_PTHREAD_MUTEX_LOCK 1 9814_ACEOF 9815 9816fi 9817 9818 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 9819echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 9820if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 9821 echo $ECHO_N "(cached) $ECHO_C" >&6 9822else 9823 ac_func_search_save_LIBS=$LIBS 9824cat >conftest.$ac_ext <<_ACEOF 9825/* confdefs.h. */ 9826_ACEOF 9827cat confdefs.h >>conftest.$ac_ext 9828cat >>conftest.$ac_ext <<_ACEOF 9829/* end confdefs.h. */ 9830 9831/* Override any GCC internal prototype to avoid an error. 9832 Use char because int might match the return type of a GCC 9833 builtin and then its argument prototype would still apply. */ 9834#ifdef __cplusplus 9835extern "C" 9836#endif 9837char pthread_rwlock_init (); 9838int 9839main () 9840{ 9841return pthread_rwlock_init (); 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846for ac_lib in '' pthread; do 9847 if test -z "$ac_lib"; then 9848 ac_res="none required" 9849 else 9850 ac_res=-l$ac_lib 9851 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9852 fi 9853 rm -f conftest.$ac_objext conftest$ac_exeext 9854if { (ac_try="$ac_link" 9855case "(($ac_try" in 9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9857 *) ac_try_echo=$ac_try;; 9858esac 9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9860 (eval "$ac_link") 2>conftest.er1 9861 ac_status=$? 9862 grep -v '^ *+' conftest.er1 >conftest.err 9863 rm -f conftest.er1 9864 cat conftest.err >&5 9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9866 (exit $ac_status); } && 9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9868 { (case "(($ac_try" in 9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9870 *) ac_try_echo=$ac_try;; 9871esac 9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9873 (eval "$ac_try") 2>&5 9874 ac_status=$? 9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9876 (exit $ac_status); }; } && 9877 { ac_try='test -s conftest$ac_exeext' 9878 { (case "(($ac_try" in 9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9880 *) ac_try_echo=$ac_try;; 9881esac 9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9883 (eval "$ac_try") 2>&5 9884 ac_status=$? 9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9886 (exit $ac_status); }; }; then 9887 ac_cv_search_pthread_rwlock_init=$ac_res 9888else 9889 echo "$as_me: failed program was:" >&5 9890sed 's/^/| /' conftest.$ac_ext >&5 9891 9892 9893fi 9894 9895rm -f core conftest.err conftest.$ac_objext \ 9896 conftest$ac_exeext 9897 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 9898 break 9899fi 9900done 9901if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 9902 : 9903else 9904 ac_cv_search_pthread_rwlock_init=no 9905fi 9906rm conftest.$ac_ext 9907LIBS=$ac_func_search_save_LIBS 9908fi 9909{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 9910echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 9911ac_res=$ac_cv_search_pthread_rwlock_init 9912if test "$ac_res" != no; then 9913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9914 9915cat >>confdefs.h <<\_ACEOF 9916#define HAVE_PTHREAD_RWLOCK_INIT 1 9917_ACEOF 9918 9919fi 9920 9921 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 9922echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 9923if test "${ac_cv_search_pthread_getspecific+set}" = set; then 9924 echo $ECHO_N "(cached) $ECHO_C" >&6 9925else 9926 ac_func_search_save_LIBS=$LIBS 9927cat >conftest.$ac_ext <<_ACEOF 9928/* confdefs.h. */ 9929_ACEOF 9930cat confdefs.h >>conftest.$ac_ext 9931cat >>conftest.$ac_ext <<_ACEOF 9932/* end confdefs.h. */ 9933 9934/* Override any GCC internal prototype to avoid an error. 9935 Use char because int might match the return type of a GCC 9936 builtin and then its argument prototype would still apply. */ 9937#ifdef __cplusplus 9938extern "C" 9939#endif 9940char pthread_getspecific (); 9941int 9942main () 9943{ 9944return pthread_getspecific (); 9945 ; 9946 return 0; 9947} 9948_ACEOF 9949for ac_lib in '' pthread; do 9950 if test -z "$ac_lib"; then 9951 ac_res="none required" 9952 else 9953 ac_res=-l$ac_lib 9954 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9955 fi 9956 rm -f conftest.$ac_objext conftest$ac_exeext 9957if { (ac_try="$ac_link" 9958case "(($ac_try" in 9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9960 *) ac_try_echo=$ac_try;; 9961esac 9962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9963 (eval "$ac_link") 2>conftest.er1 9964 ac_status=$? 9965 grep -v '^ *+' conftest.er1 >conftest.err 9966 rm -f conftest.er1 9967 cat conftest.err >&5 9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9969 (exit $ac_status); } && 9970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9971 { (case "(($ac_try" in 9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9973 *) ac_try_echo=$ac_try;; 9974esac 9975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9976 (eval "$ac_try") 2>&5 9977 ac_status=$? 9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9979 (exit $ac_status); }; } && 9980 { ac_try='test -s conftest$ac_exeext' 9981 { (case "(($ac_try" in 9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9983 *) ac_try_echo=$ac_try;; 9984esac 9985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9986 (eval "$ac_try") 2>&5 9987 ac_status=$? 9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9989 (exit $ac_status); }; }; then 9990 ac_cv_search_pthread_getspecific=$ac_res 9991else 9992 echo "$as_me: failed program was:" >&5 9993sed 's/^/| /' conftest.$ac_ext >&5 9994 9995 9996fi 9997 9998rm -f core conftest.err conftest.$ac_objext \ 9999 conftest$ac_exeext 10000 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 10001 break 10002fi 10003done 10004if test "${ac_cv_search_pthread_getspecific+set}" = set; then 10005 : 10006else 10007 ac_cv_search_pthread_getspecific=no 10008fi 10009rm conftest.$ac_ext 10010LIBS=$ac_func_search_save_LIBS 10011fi 10012{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 10013echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 10014ac_res=$ac_cv_search_pthread_getspecific 10015if test "$ac_res" != no; then 10016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10017 10018cat >>confdefs.h <<\_ACEOF 10019#define HAVE_PTHREAD_GETSPECIFIC 1 10020_ACEOF 10021 10022fi 10023 10024fi 10025 10026if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 10027 10028{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 10029echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } 10030if test "${ac_cv_lib_z_compress2+set}" = set; then 10031 echo $ECHO_N "(cached) $ECHO_C" >&6 10032else 10033 ac_check_lib_save_LIBS=$LIBS 10034LIBS="-lz $LIBS" 10035cat >conftest.$ac_ext <<_ACEOF 10036/* confdefs.h. */ 10037_ACEOF 10038cat confdefs.h >>conftest.$ac_ext 10039cat >>conftest.$ac_ext <<_ACEOF 10040/* end confdefs.h. */ 10041 10042/* Override any GCC internal prototype to avoid an error. 10043 Use char because int might match the return type of a GCC 10044 builtin and then its argument prototype would still apply. */ 10045#ifdef __cplusplus 10046extern "C" 10047#endif 10048char compress2 (); 10049int 10050main () 10051{ 10052return compress2 (); 10053 ; 10054 return 0; 10055} 10056_ACEOF 10057rm -f conftest.$ac_objext conftest$ac_exeext 10058if { (ac_try="$ac_link" 10059case "(($ac_try" in 10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10061 *) ac_try_echo=$ac_try;; 10062esac 10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10064 (eval "$ac_link") 2>conftest.er1 10065 ac_status=$? 10066 grep -v '^ *+' conftest.er1 >conftest.err 10067 rm -f conftest.er1 10068 cat conftest.err >&5 10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10070 (exit $ac_status); } && 10071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10072 { (case "(($ac_try" in 10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10074 *) ac_try_echo=$ac_try;; 10075esac 10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10077 (eval "$ac_try") 2>&5 10078 ac_status=$? 10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10080 (exit $ac_status); }; } && 10081 { ac_try='test -s conftest$ac_exeext' 10082 { (case "(($ac_try" in 10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10084 *) ac_try_echo=$ac_try;; 10085esac 10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10087 (eval "$ac_try") 2>&5 10088 ac_status=$? 10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10090 (exit $ac_status); }; }; then 10091 ac_cv_lib_z_compress2=yes 10092else 10093 echo "$as_me: failed program was:" >&5 10094sed 's/^/| /' conftest.$ac_ext >&5 10095 10096 ac_cv_lib_z_compress2=no 10097fi 10098 10099rm -f core conftest.err conftest.$ac_objext \ 10100 conftest$ac_exeext conftest.$ac_ext 10101LIBS=$ac_check_lib_save_LIBS 10102fi 10103{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 10104echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; } 10105if test $ac_cv_lib_z_compress2 = yes; then 10106 cat >>confdefs.h <<_ACEOF 10107#define HAVE_LIBZ 1 10108_ACEOF 10109 10110 LIBS="-lz $LIBS" 10111 10112fi 10113 10114fi 10115 10116 10117# Check whether --with-oprofile was given. 10118if test "${with_oprofile+set}" = set; then 10119 withval=$with_oprofile; 10120 USE_OPROFILE=1 10121 10122 case "$withval" in 10123 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 10124 no) llvm_cv_oppath= 10125 USE_OPROFILE=0 10126 ;; 10127 *) llvm_cv_oppath="${withval}/lib/oprofile" 10128 CPPFLAGS="-I${withval}/include";; 10129 esac 10130 case $llvm_cv_os_type in 10131 Linux) 10132 if test -n "$llvm_cv_oppath" ; then 10133 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 10134 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 10135echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 10136if test "${ac_cv_search_bfd_init+set}" = set; then 10137 echo $ECHO_N "(cached) $ECHO_C" >&6 10138else 10139 ac_func_search_save_LIBS=$LIBS 10140cat >conftest.$ac_ext <<_ACEOF 10141/* confdefs.h. */ 10142_ACEOF 10143cat confdefs.h >>conftest.$ac_ext 10144cat >>conftest.$ac_ext <<_ACEOF 10145/* end confdefs.h. */ 10146 10147/* Override any GCC internal prototype to avoid an error. 10148 Use char because int might match the return type of a GCC 10149 builtin and then its argument prototype would still apply. */ 10150#ifdef __cplusplus 10151extern "C" 10152#endif 10153char bfd_init (); 10154int 10155main () 10156{ 10157return bfd_init (); 10158 ; 10159 return 0; 10160} 10161_ACEOF 10162for ac_lib in '' bfd; do 10163 if test -z "$ac_lib"; then 10164 ac_res="none required" 10165 else 10166 ac_res=-l$ac_lib 10167 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10168 fi 10169 rm -f conftest.$ac_objext conftest$ac_exeext 10170if { (ac_try="$ac_link" 10171case "(($ac_try" in 10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10173 *) ac_try_echo=$ac_try;; 10174esac 10175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10176 (eval "$ac_link") 2>conftest.er1 10177 ac_status=$? 10178 grep -v '^ *+' conftest.er1 >conftest.err 10179 rm -f conftest.er1 10180 cat conftest.err >&5 10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10182 (exit $ac_status); } && 10183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10184 { (case "(($ac_try" in 10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10186 *) ac_try_echo=$ac_try;; 10187esac 10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10189 (eval "$ac_try") 2>&5 10190 ac_status=$? 10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10192 (exit $ac_status); }; } && 10193 { ac_try='test -s conftest$ac_exeext' 10194 { (case "(($ac_try" in 10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10196 *) ac_try_echo=$ac_try;; 10197esac 10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10199 (eval "$ac_try") 2>&5 10200 ac_status=$? 10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10202 (exit $ac_status); }; }; then 10203 ac_cv_search_bfd_init=$ac_res 10204else 10205 echo "$as_me: failed program was:" >&5 10206sed 's/^/| /' conftest.$ac_ext >&5 10207 10208 10209fi 10210 10211rm -f core conftest.err conftest.$ac_objext \ 10212 conftest$ac_exeext 10213 if test "${ac_cv_search_bfd_init+set}" = set; then 10214 break 10215fi 10216done 10217if test "${ac_cv_search_bfd_init+set}" = set; then 10218 : 10219else 10220 ac_cv_search_bfd_init=no 10221fi 10222rm conftest.$ac_ext 10223LIBS=$ac_func_search_save_LIBS 10224fi 10225{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 10226echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 10227ac_res=$ac_cv_search_bfd_init 10228if test "$ac_res" != no; then 10229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10230 10231fi 10232 10233 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 10234echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 10235if test "${ac_cv_search_op_open_agent+set}" = set; then 10236 echo $ECHO_N "(cached) $ECHO_C" >&6 10237else 10238 ac_func_search_save_LIBS=$LIBS 10239cat >conftest.$ac_ext <<_ACEOF 10240/* confdefs.h. */ 10241_ACEOF 10242cat confdefs.h >>conftest.$ac_ext 10243cat >>conftest.$ac_ext <<_ACEOF 10244/* end confdefs.h. */ 10245 10246/* Override any GCC internal prototype to avoid an error. 10247 Use char because int might match the return type of a GCC 10248 builtin and then its argument prototype would still apply. */ 10249#ifdef __cplusplus 10250extern "C" 10251#endif 10252char op_open_agent (); 10253int 10254main () 10255{ 10256return op_open_agent (); 10257 ; 10258 return 0; 10259} 10260_ACEOF 10261for ac_lib in '' opagent; do 10262 if test -z "$ac_lib"; then 10263 ac_res="none required" 10264 else 10265 ac_res=-l$ac_lib 10266 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10267 fi 10268 rm -f conftest.$ac_objext conftest$ac_exeext 10269if { (ac_try="$ac_link" 10270case "(($ac_try" in 10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10272 *) ac_try_echo=$ac_try;; 10273esac 10274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10275 (eval "$ac_link") 2>conftest.er1 10276 ac_status=$? 10277 grep -v '^ *+' conftest.er1 >conftest.err 10278 rm -f conftest.er1 10279 cat conftest.err >&5 10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10281 (exit $ac_status); } && 10282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10283 { (case "(($ac_try" in 10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10285 *) ac_try_echo=$ac_try;; 10286esac 10287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10288 (eval "$ac_try") 2>&5 10289 ac_status=$? 10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10291 (exit $ac_status); }; } && 10292 { ac_try='test -s conftest$ac_exeext' 10293 { (case "(($ac_try" in 10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10295 *) ac_try_echo=$ac_try;; 10296esac 10297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10298 (eval "$ac_try") 2>&5 10299 ac_status=$? 10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10301 (exit $ac_status); }; }; then 10302 ac_cv_search_op_open_agent=$ac_res 10303else 10304 echo "$as_me: failed program was:" >&5 10305sed 's/^/| /' conftest.$ac_ext >&5 10306 10307 10308fi 10309 10310rm -f core conftest.err conftest.$ac_objext \ 10311 conftest$ac_exeext 10312 if test "${ac_cv_search_op_open_agent+set}" = set; then 10313 break 10314fi 10315done 10316if test "${ac_cv_search_op_open_agent+set}" = set; then 10317 : 10318else 10319 ac_cv_search_op_open_agent=no 10320fi 10321rm conftest.$ac_ext 10322LIBS=$ac_func_search_save_LIBS 10323fi 10324{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 10325echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 10326ac_res=$ac_cv_search_op_open_agent 10327if test "$ac_res" != no; then 10328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10329 10330else 10331 10332 echo "Error! You need to have libopagent around." 10333 exit 1 10334 10335fi 10336 10337 if test "${ac_cv_header_opagent_h+set}" = set; then 10338 { echo "$as_me:$LINENO: checking for opagent.h" >&5 10339echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 10340if test "${ac_cv_header_opagent_h+set}" = set; then 10341 echo $ECHO_N "(cached) $ECHO_C" >&6 10342fi 10343{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 10344echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 10345else 10346 # Is the header compilable? 10347{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 10348echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 10349cat >conftest.$ac_ext <<_ACEOF 10350/* confdefs.h. */ 10351_ACEOF 10352cat confdefs.h >>conftest.$ac_ext 10353cat >>conftest.$ac_ext <<_ACEOF 10354/* end confdefs.h. */ 10355$ac_includes_default 10356#include <opagent.h> 10357_ACEOF 10358rm -f conftest.$ac_objext 10359if { (ac_try="$ac_compile" 10360case "(($ac_try" in 10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10362 *) ac_try_echo=$ac_try;; 10363esac 10364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10365 (eval "$ac_compile") 2>conftest.er1 10366 ac_status=$? 10367 grep -v '^ *+' conftest.er1 >conftest.err 10368 rm -f conftest.er1 10369 cat conftest.err >&5 10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10371 (exit $ac_status); } && 10372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10373 { (case "(($ac_try" in 10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10375 *) ac_try_echo=$ac_try;; 10376esac 10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10378 (eval "$ac_try") 2>&5 10379 ac_status=$? 10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10381 (exit $ac_status); }; } && 10382 { ac_try='test -s conftest.$ac_objext' 10383 { (case "(($ac_try" in 10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10385 *) ac_try_echo=$ac_try;; 10386esac 10387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10388 (eval "$ac_try") 2>&5 10389 ac_status=$? 10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10391 (exit $ac_status); }; }; then 10392 ac_header_compiler=yes 10393else 10394 echo "$as_me: failed program was:" >&5 10395sed 's/^/| /' conftest.$ac_ext >&5 10396 10397 ac_header_compiler=no 10398fi 10399 10400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10402echo "${ECHO_T}$ac_header_compiler" >&6; } 10403 10404# Is the header present? 10405{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 10406echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 10407cat >conftest.$ac_ext <<_ACEOF 10408/* confdefs.h. */ 10409_ACEOF 10410cat confdefs.h >>conftest.$ac_ext 10411cat >>conftest.$ac_ext <<_ACEOF 10412/* end confdefs.h. */ 10413#include <opagent.h> 10414_ACEOF 10415if { (ac_try="$ac_cpp conftest.$ac_ext" 10416case "(($ac_try" in 10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10418 *) ac_try_echo=$ac_try;; 10419esac 10420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10422 ac_status=$? 10423 grep -v '^ *+' conftest.er1 >conftest.err 10424 rm -f conftest.er1 10425 cat conftest.err >&5 10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10427 (exit $ac_status); } >/dev/null; then 10428 if test -s conftest.err; then 10429 ac_cpp_err=$ac_c_preproc_warn_flag 10430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10431 else 10432 ac_cpp_err= 10433 fi 10434else 10435 ac_cpp_err=yes 10436fi 10437if test -z "$ac_cpp_err"; then 10438 ac_header_preproc=yes 10439else 10440 echo "$as_me: failed program was:" >&5 10441sed 's/^/| /' conftest.$ac_ext >&5 10442 10443 ac_header_preproc=no 10444fi 10445 10446rm -f conftest.err conftest.$ac_ext 10447{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10448echo "${ECHO_T}$ac_header_preproc" >&6; } 10449 10450# So? What about this header? 10451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10452 yes:no: ) 10453 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 10454echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10455 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 10456echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 10457 ac_header_preproc=yes 10458 ;; 10459 no:yes:* ) 10460 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 10461echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 10462 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 10463echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 10464 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 10465echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 10466 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 10467echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 10468 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 10469echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 10470 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 10471echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 10472 ( cat <<\_ASBOX 10473## ------------------------------------ ## 10474## Report this to http://llvm.org/bugs/ ## 10475## ------------------------------------ ## 10476_ASBOX 10477 ) | sed "s/^/$as_me: WARNING: /" >&2 10478 ;; 10479esac 10480{ echo "$as_me:$LINENO: checking for opagent.h" >&5 10481echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 10482if test "${ac_cv_header_opagent_h+set}" = set; then 10483 echo $ECHO_N "(cached) $ECHO_C" >&6 10484else 10485 ac_cv_header_opagent_h=$ac_header_preproc 10486fi 10487{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 10488echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 10489 10490fi 10491if test $ac_cv_header_opagent_h = yes; then 10492 : 10493else 10494 10495 echo "Error! You need to have opagent.h around." 10496 exit 1 10497 10498fi 10499 10500 10501 fi ;; 10502 *) 10503 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 10504echo "$as_me: error: OProfile support is available on Linux only." >&2;} 10505 { (exit 1); exit 1; }; } ;; 10506 esac 10507 10508else 10509 10510 USE_OPROFILE=0 10511 10512 10513fi 10514 10515 10516cat >>confdefs.h <<_ACEOF 10517#define LLVM_USE_OPROFILE $USE_OPROFILE 10518_ACEOF 10519 10520 10521 10522# Check whether --with-intel-jitevents was given. 10523if test "${with_intel_jitevents+set}" = set; then 10524 withval=$with_intel_jitevents; 10525 case "$withval" in 10526 yes) USE_INTEL_JITEVENTS=1 10527;; 10528 no) USE_INTEL_JITEVENTS=0 10529;; 10530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 10531echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} 10532 { (exit 1); exit 1; }; };; 10533 esac 10534 10535 case $llvm_cv_os_type in 10536 Linux|Win32|Cygwin|MingW) ;; 10537 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 10538echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} 10539 { (exit 1); exit 1; }; };; 10540 esac 10541 10542 case "$llvm_cv_target_arch" in 10543 x86|x86_64) ;; 10544 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 10545echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} 10546 { (exit 1); exit 1; }; };; 10547 esac 10548 10549else 10550 10551 USE_INTEL_JITEVENTS=0 10552 10553 10554fi 10555 10556 10557cat >>confdefs.h <<_ACEOF 10558#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 10559_ACEOF 10560 10561 10562for ac_prog in xml2-config 10563do 10564 # Extract the first word of "$ac_prog", so it can be a program name with args. 10565set dummy $ac_prog; ac_word=$2 10566{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10568if test "${ac_cv_prog_XML2CONFIG+set}" = set; then 10569 echo $ECHO_N "(cached) $ECHO_C" >&6 10570else 10571 if test -n "$XML2CONFIG"; then 10572 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. 10573else 10574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10575for as_dir in $PATH 10576do 10577 IFS=$as_save_IFS 10578 test -z "$as_dir" && as_dir=. 10579 for ac_exec_ext in '' $ac_executable_extensions; do 10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 10581 ac_cv_prog_XML2CONFIG="$ac_prog" 10582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10583 break 2 10584 fi 10585done 10586done 10587IFS=$as_save_IFS 10588 10589fi 10590fi 10591XML2CONFIG=$ac_cv_prog_XML2CONFIG 10592if test -n "$XML2CONFIG"; then 10593 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 10594echo "${ECHO_T}$XML2CONFIG" >&6; } 10595else 10596 { echo "$as_me:$LINENO: result: no" >&5 10597echo "${ECHO_T}no" >&6; } 10598fi 10599 10600 10601 test -n "$XML2CONFIG" && break 10602done 10603 10604 10605{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5 10606echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } 10607if test "x$XML2CONFIG" = "x"; then 10608 { echo "$as_me:$LINENO: result: xml2-config not found" >&5 10609echo "${ECHO_T}xml2-config not found" >&6; } 10610else 10611 LIBXML2_INC=`$XML2CONFIG --cflags` 10612 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 10613echo "${ECHO_T}$LIBXML2_INC" >&6; } 10614 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 10615echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } 10616if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then 10617 echo $ECHO_N "(cached) $ECHO_C" >&6 10618else 10619 ac_check_lib_save_LIBS=$LIBS 10620LIBS="-lxml2 $LIBS" 10621cat >conftest.$ac_ext <<_ACEOF 10622/* confdefs.h. */ 10623_ACEOF 10624cat confdefs.h >>conftest.$ac_ext 10625cat >>conftest.$ac_ext <<_ACEOF 10626/* end confdefs.h. */ 10627 10628/* Override any GCC internal prototype to avoid an error. 10629 Use char because int might match the return type of a GCC 10630 builtin and then its argument prototype would still apply. */ 10631#ifdef __cplusplus 10632extern "C" 10633#endif 10634char xmlReadFile (); 10635int 10636main () 10637{ 10638return xmlReadFile (); 10639 ; 10640 return 0; 10641} 10642_ACEOF 10643rm -f conftest.$ac_objext conftest$ac_exeext 10644if { (ac_try="$ac_link" 10645case "(($ac_try" in 10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10647 *) ac_try_echo=$ac_try;; 10648esac 10649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10650 (eval "$ac_link") 2>conftest.er1 10651 ac_status=$? 10652 grep -v '^ *+' conftest.er1 >conftest.err 10653 rm -f conftest.er1 10654 cat conftest.err >&5 10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10656 (exit $ac_status); } && 10657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10658 { (case "(($ac_try" in 10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10660 *) ac_try_echo=$ac_try;; 10661esac 10662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10663 (eval "$ac_try") 2>&5 10664 ac_status=$? 10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10666 (exit $ac_status); }; } && 10667 { ac_try='test -s conftest$ac_exeext' 10668 { (case "(($ac_try" in 10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10670 *) ac_try_echo=$ac_try;; 10671esac 10672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10673 (eval "$ac_try") 2>&5 10674 ac_status=$? 10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 (exit $ac_status); }; }; then 10677 ac_cv_lib_xml2_xmlReadFile=yes 10678else 10679 echo "$as_me: failed program was:" >&5 10680sed 's/^/| /' conftest.$ac_ext >&5 10681 10682 ac_cv_lib_xml2_xmlReadFile=no 10683fi 10684 10685rm -f core conftest.err conftest.$ac_objext \ 10686 conftest$ac_exeext conftest.$ac_ext 10687LIBS=$ac_check_lib_save_LIBS 10688fi 10689{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 10690echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } 10691if test $ac_cv_lib_xml2_xmlReadFile = yes; then 10692 10693cat >>confdefs.h <<\_ACEOF 10694#define CLANG_HAVE_LIBXML 1 10695_ACEOF 10696 10697 LIBXML2_LIBS="-lxml2" 10698fi 10699 10700fi 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710ac_header_dirent=no 10711for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10712 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10713{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 10714echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 10715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10716 echo $ECHO_N "(cached) $ECHO_C" >&6 10717else 10718 cat >conftest.$ac_ext <<_ACEOF 10719/* confdefs.h. */ 10720_ACEOF 10721cat confdefs.h >>conftest.$ac_ext 10722cat >>conftest.$ac_ext <<_ACEOF 10723/* end confdefs.h. */ 10724#include <sys/types.h> 10725#include <$ac_hdr> 10726 10727int 10728main () 10729{ 10730if ((DIR *) 0) 10731return 0; 10732 ; 10733 return 0; 10734} 10735_ACEOF 10736rm -f conftest.$ac_objext 10737if { (ac_try="$ac_compile" 10738case "(($ac_try" in 10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10740 *) ac_try_echo=$ac_try;; 10741esac 10742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10743 (eval "$ac_compile") 2>conftest.er1 10744 ac_status=$? 10745 grep -v '^ *+' conftest.er1 >conftest.err 10746 rm -f conftest.er1 10747 cat conftest.err >&5 10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10749 (exit $ac_status); } && 10750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10751 { (case "(($ac_try" in 10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10753 *) ac_try_echo=$ac_try;; 10754esac 10755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10756 (eval "$ac_try") 2>&5 10757 ac_status=$? 10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10759 (exit $ac_status); }; } && 10760 { ac_try='test -s conftest.$ac_objext' 10761 { (case "(($ac_try" in 10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10763 *) ac_try_echo=$ac_try;; 10764esac 10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10766 (eval "$ac_try") 2>&5 10767 ac_status=$? 10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10769 (exit $ac_status); }; }; then 10770 eval "$as_ac_Header=yes" 10771else 10772 echo "$as_me: failed program was:" >&5 10773sed 's/^/| /' conftest.$ac_ext >&5 10774 10775 eval "$as_ac_Header=no" 10776fi 10777 10778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10779fi 10780ac_res=`eval echo '${'$as_ac_Header'}'` 10781 { echo "$as_me:$LINENO: result: $ac_res" >&5 10782echo "${ECHO_T}$ac_res" >&6; } 10783if test `eval echo '${'$as_ac_Header'}'` = yes; then 10784 cat >>confdefs.h <<_ACEOF 10785#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10786_ACEOF 10787 10788ac_header_dirent=$ac_hdr; break 10789fi 10790 10791done 10792# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10793if test $ac_header_dirent = dirent.h; then 10794 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 10795echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 10796if test "${ac_cv_search_opendir+set}" = set; then 10797 echo $ECHO_N "(cached) $ECHO_C" >&6 10798else 10799 ac_func_search_save_LIBS=$LIBS 10800cat >conftest.$ac_ext <<_ACEOF 10801/* confdefs.h. */ 10802_ACEOF 10803cat confdefs.h >>conftest.$ac_ext 10804cat >>conftest.$ac_ext <<_ACEOF 10805/* end confdefs.h. */ 10806 10807/* Override any GCC internal prototype to avoid an error. 10808 Use char because int might match the return type of a GCC 10809 builtin and then its argument prototype would still apply. */ 10810#ifdef __cplusplus 10811extern "C" 10812#endif 10813char opendir (); 10814int 10815main () 10816{ 10817return opendir (); 10818 ; 10819 return 0; 10820} 10821_ACEOF 10822for ac_lib in '' dir; do 10823 if test -z "$ac_lib"; then 10824 ac_res="none required" 10825 else 10826 ac_res=-l$ac_lib 10827 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10828 fi 10829 rm -f conftest.$ac_objext conftest$ac_exeext 10830if { (ac_try="$ac_link" 10831case "(($ac_try" in 10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10833 *) ac_try_echo=$ac_try;; 10834esac 10835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10836 (eval "$ac_link") 2>conftest.er1 10837 ac_status=$? 10838 grep -v '^ *+' conftest.er1 >conftest.err 10839 rm -f conftest.er1 10840 cat conftest.err >&5 10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10842 (exit $ac_status); } && 10843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10844 { (case "(($ac_try" in 10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10846 *) ac_try_echo=$ac_try;; 10847esac 10848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10849 (eval "$ac_try") 2>&5 10850 ac_status=$? 10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10852 (exit $ac_status); }; } && 10853 { ac_try='test -s conftest$ac_exeext' 10854 { (case "(($ac_try" in 10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10856 *) ac_try_echo=$ac_try;; 10857esac 10858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10859 (eval "$ac_try") 2>&5 10860 ac_status=$? 10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10862 (exit $ac_status); }; }; then 10863 ac_cv_search_opendir=$ac_res 10864else 10865 echo "$as_me: failed program was:" >&5 10866sed 's/^/| /' conftest.$ac_ext >&5 10867 10868 10869fi 10870 10871rm -f core conftest.err conftest.$ac_objext \ 10872 conftest$ac_exeext 10873 if test "${ac_cv_search_opendir+set}" = set; then 10874 break 10875fi 10876done 10877if test "${ac_cv_search_opendir+set}" = set; then 10878 : 10879else 10880 ac_cv_search_opendir=no 10881fi 10882rm conftest.$ac_ext 10883LIBS=$ac_func_search_save_LIBS 10884fi 10885{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10886echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 10887ac_res=$ac_cv_search_opendir 10888if test "$ac_res" != no; then 10889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10890 10891fi 10892 10893else 10894 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 10895echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 10896if test "${ac_cv_search_opendir+set}" = set; then 10897 echo $ECHO_N "(cached) $ECHO_C" >&6 10898else 10899 ac_func_search_save_LIBS=$LIBS 10900cat >conftest.$ac_ext <<_ACEOF 10901/* confdefs.h. */ 10902_ACEOF 10903cat confdefs.h >>conftest.$ac_ext 10904cat >>conftest.$ac_ext <<_ACEOF 10905/* end confdefs.h. */ 10906 10907/* Override any GCC internal prototype to avoid an error. 10908 Use char because int might match the return type of a GCC 10909 builtin and then its argument prototype would still apply. */ 10910#ifdef __cplusplus 10911extern "C" 10912#endif 10913char opendir (); 10914int 10915main () 10916{ 10917return opendir (); 10918 ; 10919 return 0; 10920} 10921_ACEOF 10922for ac_lib in '' x; do 10923 if test -z "$ac_lib"; then 10924 ac_res="none required" 10925 else 10926 ac_res=-l$ac_lib 10927 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10928 fi 10929 rm -f conftest.$ac_objext conftest$ac_exeext 10930if { (ac_try="$ac_link" 10931case "(($ac_try" in 10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10933 *) ac_try_echo=$ac_try;; 10934esac 10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10936 (eval "$ac_link") 2>conftest.er1 10937 ac_status=$? 10938 grep -v '^ *+' conftest.er1 >conftest.err 10939 rm -f conftest.er1 10940 cat conftest.err >&5 10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10942 (exit $ac_status); } && 10943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10944 { (case "(($ac_try" in 10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10946 *) ac_try_echo=$ac_try;; 10947esac 10948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10949 (eval "$ac_try") 2>&5 10950 ac_status=$? 10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10952 (exit $ac_status); }; } && 10953 { ac_try='test -s conftest$ac_exeext' 10954 { (case "(($ac_try" in 10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10956 *) ac_try_echo=$ac_try;; 10957esac 10958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10959 (eval "$ac_try") 2>&5 10960 ac_status=$? 10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10962 (exit $ac_status); }; }; then 10963 ac_cv_search_opendir=$ac_res 10964else 10965 echo "$as_me: failed program was:" >&5 10966sed 's/^/| /' conftest.$ac_ext >&5 10967 10968 10969fi 10970 10971rm -f core conftest.err conftest.$ac_objext \ 10972 conftest$ac_exeext 10973 if test "${ac_cv_search_opendir+set}" = set; then 10974 break 10975fi 10976done 10977if test "${ac_cv_search_opendir+set}" = set; then 10978 : 10979else 10980 ac_cv_search_opendir=no 10981fi 10982rm conftest.$ac_ext 10983LIBS=$ac_func_search_save_LIBS 10984fi 10985{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10986echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 10987ac_res=$ac_cv_search_opendir 10988if test "$ac_res" != no; then 10989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10990 10991fi 10992 10993fi 10994 10995{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 10996echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 10997if test "${ac_cv_header_mmap_anon+set}" = set; then 10998 echo $ECHO_N "(cached) $ECHO_C" >&6 10999else 11000 ac_ext=c 11001ac_cpp='$CPP $CPPFLAGS' 11002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11004ac_compiler_gnu=$ac_cv_c_compiler_gnu 11005 11006 cat >conftest.$ac_ext <<_ACEOF 11007/* confdefs.h. */ 11008_ACEOF 11009cat confdefs.h >>conftest.$ac_ext 11010cat >>conftest.$ac_ext <<_ACEOF 11011/* end confdefs.h. */ 11012#include <sys/mman.h> 11013#include <unistd.h> 11014#include <fcntl.h> 11015int 11016main () 11017{ 11018mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 11019 ; 11020 return 0; 11021} 11022_ACEOF 11023rm -f conftest.$ac_objext 11024if { (ac_try="$ac_compile" 11025case "(($ac_try" in 11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11027 *) ac_try_echo=$ac_try;; 11028esac 11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11030 (eval "$ac_compile") 2>conftest.er1 11031 ac_status=$? 11032 grep -v '^ *+' conftest.er1 >conftest.err 11033 rm -f conftest.er1 11034 cat conftest.err >&5 11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11036 (exit $ac_status); } && 11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11038 { (case "(($ac_try" in 11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11040 *) ac_try_echo=$ac_try;; 11041esac 11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11043 (eval "$ac_try") 2>&5 11044 ac_status=$? 11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11046 (exit $ac_status); }; } && 11047 { ac_try='test -s conftest.$ac_objext' 11048 { (case "(($ac_try" in 11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11050 *) ac_try_echo=$ac_try;; 11051esac 11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11053 (eval "$ac_try") 2>&5 11054 ac_status=$? 11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11056 (exit $ac_status); }; }; then 11057 ac_cv_header_mmap_anon=yes 11058else 11059 echo "$as_me: failed program was:" >&5 11060sed 's/^/| /' conftest.$ac_ext >&5 11061 11062 ac_cv_header_mmap_anon=no 11063fi 11064 11065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11066 ac_ext=c 11067ac_cpp='$CPP $CPPFLAGS' 11068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11070ac_compiler_gnu=$ac_cv_c_compiler_gnu 11071 11072 11073fi 11074{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 11075echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 11076if test "$ac_cv_header_mmap_anon" = yes; then 11077 11078cat >>confdefs.h <<\_ACEOF 11079#define HAVE_MMAP_ANONYMOUS 1 11080_ACEOF 11081 11082fi 11083 11084{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 11085echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 11086if test "${ac_cv_header_stat_broken+set}" = set; then 11087 echo $ECHO_N "(cached) $ECHO_C" >&6 11088else 11089 cat >conftest.$ac_ext <<_ACEOF 11090/* confdefs.h. */ 11091_ACEOF 11092cat confdefs.h >>conftest.$ac_ext 11093cat >>conftest.$ac_ext <<_ACEOF 11094/* end confdefs.h. */ 11095#include <sys/types.h> 11096#include <sys/stat.h> 11097 11098#if defined S_ISBLK && defined S_IFDIR 11099# if S_ISBLK (S_IFDIR) 11100You lose. 11101# endif 11102#endif 11103 11104#if defined S_ISBLK && defined S_IFCHR 11105# if S_ISBLK (S_IFCHR) 11106You lose. 11107# endif 11108#endif 11109 11110#if defined S_ISLNK && defined S_IFREG 11111# if S_ISLNK (S_IFREG) 11112You lose. 11113# endif 11114#endif 11115 11116#if defined S_ISSOCK && defined S_IFREG 11117# if S_ISSOCK (S_IFREG) 11118You lose. 11119# endif 11120#endif 11121 11122_ACEOF 11123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11124 $EGREP "You lose" >/dev/null 2>&1; then 11125 ac_cv_header_stat_broken=yes 11126else 11127 ac_cv_header_stat_broken=no 11128fi 11129rm -f conftest* 11130 11131fi 11132{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 11133echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 11134if test $ac_cv_header_stat_broken = yes; then 11135 11136cat >>confdefs.h <<\_ACEOF 11137#define STAT_MACROS_BROKEN 1 11138_ACEOF 11139 11140fi 11141 11142{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 11143echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 11144if test "${ac_cv_header_time+set}" = set; then 11145 echo $ECHO_N "(cached) $ECHO_C" >&6 11146else 11147 cat >conftest.$ac_ext <<_ACEOF 11148/* confdefs.h. */ 11149_ACEOF 11150cat confdefs.h >>conftest.$ac_ext 11151cat >>conftest.$ac_ext <<_ACEOF 11152/* end confdefs.h. */ 11153#include <sys/types.h> 11154#include <sys/time.h> 11155#include <time.h> 11156 11157int 11158main () 11159{ 11160if ((struct tm *) 0) 11161return 0; 11162 ; 11163 return 0; 11164} 11165_ACEOF 11166rm -f conftest.$ac_objext 11167if { (ac_try="$ac_compile" 11168case "(($ac_try" in 11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11170 *) ac_try_echo=$ac_try;; 11171esac 11172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11173 (eval "$ac_compile") 2>conftest.er1 11174 ac_status=$? 11175 grep -v '^ *+' conftest.er1 >conftest.err 11176 rm -f conftest.er1 11177 cat conftest.err >&5 11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11179 (exit $ac_status); } && 11180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11181 { (case "(($ac_try" in 11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11183 *) ac_try_echo=$ac_try;; 11184esac 11185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11186 (eval "$ac_try") 2>&5 11187 ac_status=$? 11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11189 (exit $ac_status); }; } && 11190 { ac_try='test -s conftest.$ac_objext' 11191 { (case "(($ac_try" in 11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11193 *) ac_try_echo=$ac_try;; 11194esac 11195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11196 (eval "$ac_try") 2>&5 11197 ac_status=$? 11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11199 (exit $ac_status); }; }; then 11200 ac_cv_header_time=yes 11201else 11202 echo "$as_me: failed program was:" >&5 11203sed 's/^/| /' conftest.$ac_ext >&5 11204 11205 ac_cv_header_time=no 11206fi 11207 11208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11209fi 11210{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 11211echo "${ECHO_T}$ac_cv_header_time" >&6; } 11212if test $ac_cv_header_time = yes; then 11213 11214cat >>confdefs.h <<\_ACEOF 11215#define TIME_WITH_SYS_TIME 1 11216_ACEOF 11217 11218fi 11219 11220 11221ac_ext=cpp 11222ac_cpp='$CXXCPP $CPPFLAGS' 11223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11226 11227 11228for ac_header in cxxabi.h 11229do 11230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11231{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11234 echo $ECHO_N "(cached) $ECHO_C" >&6 11235else 11236 cat >conftest.$ac_ext <<_ACEOF 11237/* confdefs.h. */ 11238_ACEOF 11239cat confdefs.h >>conftest.$ac_ext 11240cat >>conftest.$ac_ext <<_ACEOF 11241/* end confdefs.h. */ 11242#include <stddef.h> 11243 11244 11245#include <$ac_header> 11246_ACEOF 11247rm -f conftest.$ac_objext 11248if { (ac_try="$ac_compile" 11249case "(($ac_try" in 11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11251 *) ac_try_echo=$ac_try;; 11252esac 11253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11254 (eval "$ac_compile") 2>conftest.er1 11255 ac_status=$? 11256 grep -v '^ *+' conftest.er1 >conftest.err 11257 rm -f conftest.er1 11258 cat conftest.err >&5 11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11260 (exit $ac_status); } && 11261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11262 { (case "(($ac_try" in 11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11264 *) ac_try_echo=$ac_try;; 11265esac 11266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11267 (eval "$ac_try") 2>&5 11268 ac_status=$? 11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11270 (exit $ac_status); }; } && 11271 { ac_try='test -s conftest.$ac_objext' 11272 { (case "(($ac_try" in 11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11274 *) ac_try_echo=$ac_try;; 11275esac 11276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11277 (eval "$ac_try") 2>&5 11278 ac_status=$? 11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11280 (exit $ac_status); }; }; then 11281 eval "$as_ac_Header=yes" 11282else 11283 echo "$as_me: failed program was:" >&5 11284sed 's/^/| /' conftest.$ac_ext >&5 11285 11286 eval "$as_ac_Header=no" 11287fi 11288 11289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11290fi 11291ac_res=`eval echo '${'$as_ac_Header'}'` 11292 { echo "$as_me:$LINENO: result: $ac_res" >&5 11293echo "${ECHO_T}$ac_res" >&6; } 11294if test `eval echo '${'$as_ac_Header'}'` = yes; then 11295 cat >>confdefs.h <<_ACEOF 11296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11297_ACEOF 11298 11299fi 11300 11301done 11302 11303ac_ext=c 11304ac_cpp='$CPP $CPPFLAGS' 11305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11307ac_compiler_gnu=$ac_cv_c_compiler_gnu 11308 11309 11310 11311 11312 11313 11314 11315for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h 11316do 11317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11322 echo $ECHO_N "(cached) $ECHO_C" >&6 11323fi 11324ac_res=`eval echo '${'$as_ac_Header'}'` 11325 { echo "$as_me:$LINENO: result: $ac_res" >&5 11326echo "${ECHO_T}$ac_res" >&6; } 11327else 11328 # Is the header compilable? 11329{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11331cat >conftest.$ac_ext <<_ACEOF 11332/* confdefs.h. */ 11333_ACEOF 11334cat confdefs.h >>conftest.$ac_ext 11335cat >>conftest.$ac_ext <<_ACEOF 11336/* end confdefs.h. */ 11337$ac_includes_default 11338#include <$ac_header> 11339_ACEOF 11340rm -f conftest.$ac_objext 11341if { (ac_try="$ac_compile" 11342case "(($ac_try" in 11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11344 *) ac_try_echo=$ac_try;; 11345esac 11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11347 (eval "$ac_compile") 2>conftest.er1 11348 ac_status=$? 11349 grep -v '^ *+' conftest.er1 >conftest.err 11350 rm -f conftest.er1 11351 cat conftest.err >&5 11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11353 (exit $ac_status); } && 11354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11355 { (case "(($ac_try" in 11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11357 *) ac_try_echo=$ac_try;; 11358esac 11359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11360 (eval "$ac_try") 2>&5 11361 ac_status=$? 11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11363 (exit $ac_status); }; } && 11364 { ac_try='test -s conftest.$ac_objext' 11365 { (case "(($ac_try" in 11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11367 *) ac_try_echo=$ac_try;; 11368esac 11369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11370 (eval "$ac_try") 2>&5 11371 ac_status=$? 11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11373 (exit $ac_status); }; }; then 11374 ac_header_compiler=yes 11375else 11376 echo "$as_me: failed program was:" >&5 11377sed 's/^/| /' conftest.$ac_ext >&5 11378 11379 ac_header_compiler=no 11380fi 11381 11382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11383{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11384echo "${ECHO_T}$ac_header_compiler" >&6; } 11385 11386# Is the header present? 11387{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11389cat >conftest.$ac_ext <<_ACEOF 11390/* confdefs.h. */ 11391_ACEOF 11392cat confdefs.h >>conftest.$ac_ext 11393cat >>conftest.$ac_ext <<_ACEOF 11394/* end confdefs.h. */ 11395#include <$ac_header> 11396_ACEOF 11397if { (ac_try="$ac_cpp conftest.$ac_ext" 11398case "(($ac_try" in 11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11400 *) ac_try_echo=$ac_try;; 11401esac 11402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11404 ac_status=$? 11405 grep -v '^ *+' conftest.er1 >conftest.err 11406 rm -f conftest.er1 11407 cat conftest.err >&5 11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11409 (exit $ac_status); } >/dev/null; then 11410 if test -s conftest.err; then 11411 ac_cpp_err=$ac_c_preproc_warn_flag 11412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11413 else 11414 ac_cpp_err= 11415 fi 11416else 11417 ac_cpp_err=yes 11418fi 11419if test -z "$ac_cpp_err"; then 11420 ac_header_preproc=yes 11421else 11422 echo "$as_me: failed program was:" >&5 11423sed 's/^/| /' conftest.$ac_ext >&5 11424 11425 ac_header_preproc=no 11426fi 11427 11428rm -f conftest.err conftest.$ac_ext 11429{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11430echo "${ECHO_T}$ac_header_preproc" >&6; } 11431 11432# So? What about this header? 11433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11434 yes:no: ) 11435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11439 ac_header_preproc=yes 11440 ;; 11441 no:yes:* ) 11442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11454 ( cat <<\_ASBOX 11455## ------------------------------------ ## 11456## Report this to http://llvm.org/bugs/ ## 11457## ------------------------------------ ## 11458_ASBOX 11459 ) | sed "s/^/$as_me: WARNING: /" >&2 11460 ;; 11461esac 11462{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11465 echo $ECHO_N "(cached) $ECHO_C" >&6 11466else 11467 eval "$as_ac_Header=\$ac_header_preproc" 11468fi 11469ac_res=`eval echo '${'$as_ac_Header'}'` 11470 { echo "$as_me:$LINENO: result: $ac_res" >&5 11471echo "${ECHO_T}$ac_res" >&6; } 11472 11473fi 11474if test `eval echo '${'$as_ac_Header'}'` = yes; then 11475 cat >>confdefs.h <<_ACEOF 11476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11477_ACEOF 11478 11479fi 11480 11481done 11482 11483 11484 11485 11486 11487 11488 11489for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 11490do 11491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11493 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11496 echo $ECHO_N "(cached) $ECHO_C" >&6 11497fi 11498ac_res=`eval echo '${'$as_ac_Header'}'` 11499 { echo "$as_me:$LINENO: result: $ac_res" >&5 11500echo "${ECHO_T}$ac_res" >&6; } 11501else 11502 # Is the header compilable? 11503{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11505cat >conftest.$ac_ext <<_ACEOF 11506/* confdefs.h. */ 11507_ACEOF 11508cat confdefs.h >>conftest.$ac_ext 11509cat >>conftest.$ac_ext <<_ACEOF 11510/* end confdefs.h. */ 11511$ac_includes_default 11512#include <$ac_header> 11513_ACEOF 11514rm -f conftest.$ac_objext 11515if { (ac_try="$ac_compile" 11516case "(($ac_try" in 11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11518 *) ac_try_echo=$ac_try;; 11519esac 11520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11521 (eval "$ac_compile") 2>conftest.er1 11522 ac_status=$? 11523 grep -v '^ *+' conftest.er1 >conftest.err 11524 rm -f conftest.er1 11525 cat conftest.err >&5 11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11527 (exit $ac_status); } && 11528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11529 { (case "(($ac_try" in 11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11531 *) ac_try_echo=$ac_try;; 11532esac 11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11534 (eval "$ac_try") 2>&5 11535 ac_status=$? 11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11537 (exit $ac_status); }; } && 11538 { ac_try='test -s conftest.$ac_objext' 11539 { (case "(($ac_try" in 11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11541 *) ac_try_echo=$ac_try;; 11542esac 11543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11544 (eval "$ac_try") 2>&5 11545 ac_status=$? 11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11547 (exit $ac_status); }; }; then 11548 ac_header_compiler=yes 11549else 11550 echo "$as_me: failed program was:" >&5 11551sed 's/^/| /' conftest.$ac_ext >&5 11552 11553 ac_header_compiler=no 11554fi 11555 11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11558echo "${ECHO_T}$ac_header_compiler" >&6; } 11559 11560# Is the header present? 11561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11563cat >conftest.$ac_ext <<_ACEOF 11564/* confdefs.h. */ 11565_ACEOF 11566cat confdefs.h >>conftest.$ac_ext 11567cat >>conftest.$ac_ext <<_ACEOF 11568/* end confdefs.h. */ 11569#include <$ac_header> 11570_ACEOF 11571if { (ac_try="$ac_cpp conftest.$ac_ext" 11572case "(($ac_try" in 11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11574 *) ac_try_echo=$ac_try;; 11575esac 11576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11578 ac_status=$? 11579 grep -v '^ *+' conftest.er1 >conftest.err 11580 rm -f conftest.er1 11581 cat conftest.err >&5 11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11583 (exit $ac_status); } >/dev/null; then 11584 if test -s conftest.err; then 11585 ac_cpp_err=$ac_c_preproc_warn_flag 11586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11587 else 11588 ac_cpp_err= 11589 fi 11590else 11591 ac_cpp_err=yes 11592fi 11593if test -z "$ac_cpp_err"; then 11594 ac_header_preproc=yes 11595else 11596 echo "$as_me: failed program was:" >&5 11597sed 's/^/| /' conftest.$ac_ext >&5 11598 11599 ac_header_preproc=no 11600fi 11601 11602rm -f conftest.err conftest.$ac_ext 11603{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11604echo "${ECHO_T}$ac_header_preproc" >&6; } 11605 11606# So? What about this header? 11607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11608 yes:no: ) 11609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11613 ac_header_preproc=yes 11614 ;; 11615 no:yes:* ) 11616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11628 ( cat <<\_ASBOX 11629## ------------------------------------ ## 11630## Report this to http://llvm.org/bugs/ ## 11631## ------------------------------------ ## 11632_ASBOX 11633 ) | sed "s/^/$as_me: WARNING: /" >&2 11634 ;; 11635esac 11636{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11639 echo $ECHO_N "(cached) $ECHO_C" >&6 11640else 11641 eval "$as_ac_Header=\$ac_header_preproc" 11642fi 11643ac_res=`eval echo '${'$as_ac_Header'}'` 11644 { echo "$as_me:$LINENO: result: $ac_res" >&5 11645echo "${ECHO_T}$ac_res" >&6; } 11646 11647fi 11648if test `eval echo '${'$as_ac_Header'}'` = yes; then 11649 cat >>confdefs.h <<_ACEOF 11650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11651_ACEOF 11652 11653fi 11654 11655done 11656 11657 11658 11659 11660 11661 11662for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 11663do 11664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11666 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11669 echo $ECHO_N "(cached) $ECHO_C" >&6 11670fi 11671ac_res=`eval echo '${'$as_ac_Header'}'` 11672 { echo "$as_me:$LINENO: result: $ac_res" >&5 11673echo "${ECHO_T}$ac_res" >&6; } 11674else 11675 # Is the header compilable? 11676{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11678cat >conftest.$ac_ext <<_ACEOF 11679/* confdefs.h. */ 11680_ACEOF 11681cat confdefs.h >>conftest.$ac_ext 11682cat >>conftest.$ac_ext <<_ACEOF 11683/* end confdefs.h. */ 11684$ac_includes_default 11685#include <$ac_header> 11686_ACEOF 11687rm -f conftest.$ac_objext 11688if { (ac_try="$ac_compile" 11689case "(($ac_try" in 11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11691 *) ac_try_echo=$ac_try;; 11692esac 11693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11694 (eval "$ac_compile") 2>conftest.er1 11695 ac_status=$? 11696 grep -v '^ *+' conftest.er1 >conftest.err 11697 rm -f conftest.er1 11698 cat conftest.err >&5 11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11700 (exit $ac_status); } && 11701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11702 { (case "(($ac_try" in 11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11704 *) ac_try_echo=$ac_try;; 11705esac 11706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11707 (eval "$ac_try") 2>&5 11708 ac_status=$? 11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11710 (exit $ac_status); }; } && 11711 { ac_try='test -s conftest.$ac_objext' 11712 { (case "(($ac_try" in 11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11714 *) ac_try_echo=$ac_try;; 11715esac 11716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11717 (eval "$ac_try") 2>&5 11718 ac_status=$? 11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11720 (exit $ac_status); }; }; then 11721 ac_header_compiler=yes 11722else 11723 echo "$as_me: failed program was:" >&5 11724sed 's/^/| /' conftest.$ac_ext >&5 11725 11726 ac_header_compiler=no 11727fi 11728 11729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11730{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11731echo "${ECHO_T}$ac_header_compiler" >&6; } 11732 11733# Is the header present? 11734{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11736cat >conftest.$ac_ext <<_ACEOF 11737/* confdefs.h. */ 11738_ACEOF 11739cat confdefs.h >>conftest.$ac_ext 11740cat >>conftest.$ac_ext <<_ACEOF 11741/* end confdefs.h. */ 11742#include <$ac_header> 11743_ACEOF 11744if { (ac_try="$ac_cpp conftest.$ac_ext" 11745case "(($ac_try" in 11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11747 *) ac_try_echo=$ac_try;; 11748esac 11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11751 ac_status=$? 11752 grep -v '^ *+' conftest.er1 >conftest.err 11753 rm -f conftest.er1 11754 cat conftest.err >&5 11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11756 (exit $ac_status); } >/dev/null; then 11757 if test -s conftest.err; then 11758 ac_cpp_err=$ac_c_preproc_warn_flag 11759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11760 else 11761 ac_cpp_err= 11762 fi 11763else 11764 ac_cpp_err=yes 11765fi 11766if test -z "$ac_cpp_err"; then 11767 ac_header_preproc=yes 11768else 11769 echo "$as_me: failed program was:" >&5 11770sed 's/^/| /' conftest.$ac_ext >&5 11771 11772 ac_header_preproc=no 11773fi 11774 11775rm -f conftest.err conftest.$ac_ext 11776{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11777echo "${ECHO_T}$ac_header_preproc" >&6; } 11778 11779# So? What about this header? 11780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11781 yes:no: ) 11782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11786 ac_header_preproc=yes 11787 ;; 11788 no:yes:* ) 11789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11792echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11796echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11801 ( cat <<\_ASBOX 11802## ------------------------------------ ## 11803## Report this to http://llvm.org/bugs/ ## 11804## ------------------------------------ ## 11805_ASBOX 11806 ) | sed "s/^/$as_me: WARNING: /" >&2 11807 ;; 11808esac 11809{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11812 echo $ECHO_N "(cached) $ECHO_C" >&6 11813else 11814 eval "$as_ac_Header=\$ac_header_preproc" 11815fi 11816ac_res=`eval echo '${'$as_ac_Header'}'` 11817 { echo "$as_me:$LINENO: result: $ac_res" >&5 11818echo "${ECHO_T}$ac_res" >&6; } 11819 11820fi 11821if test `eval echo '${'$as_ac_Header'}'` = yes; then 11822 cat >>confdefs.h <<_ACEOF 11823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11824_ACEOF 11825 11826fi 11827 11828done 11829 11830 11831 11832 11833for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h 11834do 11835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11837 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11840 echo $ECHO_N "(cached) $ECHO_C" >&6 11841fi 11842ac_res=`eval echo '${'$as_ac_Header'}'` 11843 { echo "$as_me:$LINENO: result: $ac_res" >&5 11844echo "${ECHO_T}$ac_res" >&6; } 11845else 11846 # Is the header compilable? 11847{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11849cat >conftest.$ac_ext <<_ACEOF 11850/* confdefs.h. */ 11851_ACEOF 11852cat confdefs.h >>conftest.$ac_ext 11853cat >>conftest.$ac_ext <<_ACEOF 11854/* end confdefs.h. */ 11855$ac_includes_default 11856#include <$ac_header> 11857_ACEOF 11858rm -f conftest.$ac_objext 11859if { (ac_try="$ac_compile" 11860case "(($ac_try" in 11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11862 *) ac_try_echo=$ac_try;; 11863esac 11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11865 (eval "$ac_compile") 2>conftest.er1 11866 ac_status=$? 11867 grep -v '^ *+' conftest.er1 >conftest.err 11868 rm -f conftest.er1 11869 cat conftest.err >&5 11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11871 (exit $ac_status); } && 11872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11873 { (case "(($ac_try" in 11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11875 *) ac_try_echo=$ac_try;; 11876esac 11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11878 (eval "$ac_try") 2>&5 11879 ac_status=$? 11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11881 (exit $ac_status); }; } && 11882 { ac_try='test -s conftest.$ac_objext' 11883 { (case "(($ac_try" in 11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11885 *) ac_try_echo=$ac_try;; 11886esac 11887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11888 (eval "$ac_try") 2>&5 11889 ac_status=$? 11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11891 (exit $ac_status); }; }; then 11892 ac_header_compiler=yes 11893else 11894 echo "$as_me: failed program was:" >&5 11895sed 's/^/| /' conftest.$ac_ext >&5 11896 11897 ac_header_compiler=no 11898fi 11899 11900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11901{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11902echo "${ECHO_T}$ac_header_compiler" >&6; } 11903 11904# Is the header present? 11905{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11907cat >conftest.$ac_ext <<_ACEOF 11908/* confdefs.h. */ 11909_ACEOF 11910cat confdefs.h >>conftest.$ac_ext 11911cat >>conftest.$ac_ext <<_ACEOF 11912/* end confdefs.h. */ 11913#include <$ac_header> 11914_ACEOF 11915if { (ac_try="$ac_cpp conftest.$ac_ext" 11916case "(($ac_try" in 11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11918 *) ac_try_echo=$ac_try;; 11919esac 11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11922 ac_status=$? 11923 grep -v '^ *+' conftest.er1 >conftest.err 11924 rm -f conftest.er1 11925 cat conftest.err >&5 11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11927 (exit $ac_status); } >/dev/null; then 11928 if test -s conftest.err; then 11929 ac_cpp_err=$ac_c_preproc_warn_flag 11930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11931 else 11932 ac_cpp_err= 11933 fi 11934else 11935 ac_cpp_err=yes 11936fi 11937if test -z "$ac_cpp_err"; then 11938 ac_header_preproc=yes 11939else 11940 echo "$as_me: failed program was:" >&5 11941sed 's/^/| /' conftest.$ac_ext >&5 11942 11943 ac_header_preproc=no 11944fi 11945 11946rm -f conftest.err conftest.$ac_ext 11947{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11948echo "${ECHO_T}$ac_header_preproc" >&6; } 11949 11950# So? What about this header? 11951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11952 yes:no: ) 11953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11957 ac_header_preproc=yes 11958 ;; 11959 no:yes:* ) 11960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11963echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11967echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11972 ( cat <<\_ASBOX 11973## ------------------------------------ ## 11974## Report this to http://llvm.org/bugs/ ## 11975## ------------------------------------ ## 11976_ASBOX 11977 ) | sed "s/^/$as_me: WARNING: /" >&2 11978 ;; 11979esac 11980{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11983 echo $ECHO_N "(cached) $ECHO_C" >&6 11984else 11985 eval "$as_ac_Header=\$ac_header_preproc" 11986fi 11987ac_res=`eval echo '${'$as_ac_Header'}'` 11988 { echo "$as_me:$LINENO: result: $ac_res" >&5 11989echo "${ECHO_T}$ac_res" >&6; } 11990 11991fi 11992if test `eval echo '${'$as_ac_Header'}'` = yes; then 11993 cat >>confdefs.h <<_ACEOF 11994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11995_ACEOF 11996 11997fi 11998 11999done 12000 12001 12002for ac_header in valgrind/valgrind.h 12003do 12004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12006 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12009 echo $ECHO_N "(cached) $ECHO_C" >&6 12010fi 12011ac_res=`eval echo '${'$as_ac_Header'}'` 12012 { echo "$as_me:$LINENO: result: $ac_res" >&5 12013echo "${ECHO_T}$ac_res" >&6; } 12014else 12015 # Is the header compilable? 12016{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12017echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12018cat >conftest.$ac_ext <<_ACEOF 12019/* confdefs.h. */ 12020_ACEOF 12021cat confdefs.h >>conftest.$ac_ext 12022cat >>conftest.$ac_ext <<_ACEOF 12023/* end confdefs.h. */ 12024$ac_includes_default 12025#include <$ac_header> 12026_ACEOF 12027rm -f conftest.$ac_objext 12028if { (ac_try="$ac_compile" 12029case "(($ac_try" in 12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12031 *) ac_try_echo=$ac_try;; 12032esac 12033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12034 (eval "$ac_compile") 2>conftest.er1 12035 ac_status=$? 12036 grep -v '^ *+' conftest.er1 >conftest.err 12037 rm -f conftest.er1 12038 cat conftest.err >&5 12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12040 (exit $ac_status); } && 12041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12042 { (case "(($ac_try" in 12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12044 *) ac_try_echo=$ac_try;; 12045esac 12046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12047 (eval "$ac_try") 2>&5 12048 ac_status=$? 12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12050 (exit $ac_status); }; } && 12051 { ac_try='test -s conftest.$ac_objext' 12052 { (case "(($ac_try" in 12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12054 *) ac_try_echo=$ac_try;; 12055esac 12056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12057 (eval "$ac_try") 2>&5 12058 ac_status=$? 12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12060 (exit $ac_status); }; }; then 12061 ac_header_compiler=yes 12062else 12063 echo "$as_me: failed program was:" >&5 12064sed 's/^/| /' conftest.$ac_ext >&5 12065 12066 ac_header_compiler=no 12067fi 12068 12069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12070{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12071echo "${ECHO_T}$ac_header_compiler" >&6; } 12072 12073# Is the header present? 12074{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12076cat >conftest.$ac_ext <<_ACEOF 12077/* confdefs.h. */ 12078_ACEOF 12079cat confdefs.h >>conftest.$ac_ext 12080cat >>conftest.$ac_ext <<_ACEOF 12081/* end confdefs.h. */ 12082#include <$ac_header> 12083_ACEOF 12084if { (ac_try="$ac_cpp conftest.$ac_ext" 12085case "(($ac_try" in 12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12087 *) ac_try_echo=$ac_try;; 12088esac 12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12091 ac_status=$? 12092 grep -v '^ *+' conftest.er1 >conftest.err 12093 rm -f conftest.er1 12094 cat conftest.err >&5 12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12096 (exit $ac_status); } >/dev/null; then 12097 if test -s conftest.err; then 12098 ac_cpp_err=$ac_c_preproc_warn_flag 12099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12100 else 12101 ac_cpp_err= 12102 fi 12103else 12104 ac_cpp_err=yes 12105fi 12106if test -z "$ac_cpp_err"; then 12107 ac_header_preproc=yes 12108else 12109 echo "$as_me: failed program was:" >&5 12110sed 's/^/| /' conftest.$ac_ext >&5 12111 12112 ac_header_preproc=no 12113fi 12114 12115rm -f conftest.err conftest.$ac_ext 12116{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12117echo "${ECHO_T}$ac_header_preproc" >&6; } 12118 12119# So? What about this header? 12120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12121 yes:no: ) 12122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12126 ac_header_preproc=yes 12127 ;; 12128 no:yes:* ) 12129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12132echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12136echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12141 ( cat <<\_ASBOX 12142## ------------------------------------ ## 12143## Report this to http://llvm.org/bugs/ ## 12144## ------------------------------------ ## 12145_ASBOX 12146 ) | sed "s/^/$as_me: WARNING: /" >&2 12147 ;; 12148esac 12149{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12152 echo $ECHO_N "(cached) $ECHO_C" >&6 12153else 12154 eval "$as_ac_Header=\$ac_header_preproc" 12155fi 12156ac_res=`eval echo '${'$as_ac_Header'}'` 12157 { echo "$as_me:$LINENO: result: $ac_res" >&5 12158echo "${ECHO_T}$ac_res" >&6; } 12159 12160fi 12161if test `eval echo '${'$as_ac_Header'}'` = yes; then 12162 cat >>confdefs.h <<_ACEOF 12163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12164_ACEOF 12165 12166fi 12167 12168done 12169 12170 12171for ac_header in fenv.h 12172do 12173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12175 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12178 echo $ECHO_N "(cached) $ECHO_C" >&6 12179fi 12180ac_res=`eval echo '${'$as_ac_Header'}'` 12181 { echo "$as_me:$LINENO: result: $ac_res" >&5 12182echo "${ECHO_T}$ac_res" >&6; } 12183else 12184 # Is the header compilable? 12185{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12187cat >conftest.$ac_ext <<_ACEOF 12188/* confdefs.h. */ 12189_ACEOF 12190cat confdefs.h >>conftest.$ac_ext 12191cat >>conftest.$ac_ext <<_ACEOF 12192/* end confdefs.h. */ 12193$ac_includes_default 12194#include <$ac_header> 12195_ACEOF 12196rm -f conftest.$ac_objext 12197if { (ac_try="$ac_compile" 12198case "(($ac_try" in 12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12200 *) ac_try_echo=$ac_try;; 12201esac 12202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12203 (eval "$ac_compile") 2>conftest.er1 12204 ac_status=$? 12205 grep -v '^ *+' conftest.er1 >conftest.err 12206 rm -f conftest.er1 12207 cat conftest.err >&5 12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12209 (exit $ac_status); } && 12210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12211 { (case "(($ac_try" in 12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12213 *) ac_try_echo=$ac_try;; 12214esac 12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12216 (eval "$ac_try") 2>&5 12217 ac_status=$? 12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12219 (exit $ac_status); }; } && 12220 { ac_try='test -s conftest.$ac_objext' 12221 { (case "(($ac_try" in 12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12223 *) ac_try_echo=$ac_try;; 12224esac 12225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12226 (eval "$ac_try") 2>&5 12227 ac_status=$? 12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12229 (exit $ac_status); }; }; then 12230 ac_header_compiler=yes 12231else 12232 echo "$as_me: failed program was:" >&5 12233sed 's/^/| /' conftest.$ac_ext >&5 12234 12235 ac_header_compiler=no 12236fi 12237 12238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12239{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12240echo "${ECHO_T}$ac_header_compiler" >&6; } 12241 12242# Is the header present? 12243{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12245cat >conftest.$ac_ext <<_ACEOF 12246/* confdefs.h. */ 12247_ACEOF 12248cat confdefs.h >>conftest.$ac_ext 12249cat >>conftest.$ac_ext <<_ACEOF 12250/* end confdefs.h. */ 12251#include <$ac_header> 12252_ACEOF 12253if { (ac_try="$ac_cpp conftest.$ac_ext" 12254case "(($ac_try" in 12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12256 *) ac_try_echo=$ac_try;; 12257esac 12258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12260 ac_status=$? 12261 grep -v '^ *+' conftest.er1 >conftest.err 12262 rm -f conftest.er1 12263 cat conftest.err >&5 12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12265 (exit $ac_status); } >/dev/null; then 12266 if test -s conftest.err; then 12267 ac_cpp_err=$ac_c_preproc_warn_flag 12268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12269 else 12270 ac_cpp_err= 12271 fi 12272else 12273 ac_cpp_err=yes 12274fi 12275if test -z "$ac_cpp_err"; then 12276 ac_header_preproc=yes 12277else 12278 echo "$as_me: failed program was:" >&5 12279sed 's/^/| /' conftest.$ac_ext >&5 12280 12281 ac_header_preproc=no 12282fi 12283 12284rm -f conftest.err conftest.$ac_ext 12285{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12286echo "${ECHO_T}$ac_header_preproc" >&6; } 12287 12288# So? What about this header? 12289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12290 yes:no: ) 12291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12295 ac_header_preproc=yes 12296 ;; 12297 no:yes:* ) 12298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12305echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12310 ( cat <<\_ASBOX 12311## ------------------------------------ ## 12312## Report this to http://llvm.org/bugs/ ## 12313## ------------------------------------ ## 12314_ASBOX 12315 ) | sed "s/^/$as_me: WARNING: /" >&2 12316 ;; 12317esac 12318{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12321 echo $ECHO_N "(cached) $ECHO_C" >&6 12322else 12323 eval "$as_ac_Header=\$ac_header_preproc" 12324fi 12325ac_res=`eval echo '${'$as_ac_Header'}'` 12326 { echo "$as_me:$LINENO: result: $ac_res" >&5 12327echo "${ECHO_T}$ac_res" >&6; } 12328 12329fi 12330if test `eval echo '${'$as_ac_Header'}'` = yes; then 12331 cat >>confdefs.h <<_ACEOF 12332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12333_ACEOF 12334 12335fi 12336 12337done 12338 12339{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5 12340echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; } 12341if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then 12342 echo $ECHO_N "(cached) $ECHO_C" >&6 12343else 12344 cat >conftest.$ac_ext <<_ACEOF 12345/* confdefs.h. */ 12346_ACEOF 12347cat confdefs.h >>conftest.$ac_ext 12348cat >>conftest.$ac_ext <<_ACEOF 12349/* end confdefs.h. */ 12350#include <fenv.h> 12351 12352int 12353main () 12354{ 12355#ifndef FE_ALL_EXCEPT 12356 char *p = (char *) FE_ALL_EXCEPT; 12357 return !p; 12358#endif 12359 12360 ; 12361 return 0; 12362} 12363_ACEOF 12364rm -f conftest.$ac_objext 12365if { (ac_try="$ac_compile" 12366case "(($ac_try" in 12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12368 *) ac_try_echo=$ac_try;; 12369esac 12370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12371 (eval "$ac_compile") 2>conftest.er1 12372 ac_status=$? 12373 grep -v '^ *+' conftest.er1 >conftest.err 12374 rm -f conftest.er1 12375 cat conftest.err >&5 12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12377 (exit $ac_status); } && 12378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12379 { (case "(($ac_try" in 12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12381 *) ac_try_echo=$ac_try;; 12382esac 12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12384 (eval "$ac_try") 2>&5 12385 ac_status=$? 12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12387 (exit $ac_status); }; } && 12388 { ac_try='test -s conftest.$ac_objext' 12389 { (case "(($ac_try" in 12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12391 *) ac_try_echo=$ac_try;; 12392esac 12393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12394 (eval "$ac_try") 2>&5 12395 ac_status=$? 12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12397 (exit $ac_status); }; }; then 12398 ac_cv_have_decl_FE_ALL_EXCEPT=yes 12399else 12400 echo "$as_me: failed program was:" >&5 12401sed 's/^/| /' conftest.$ac_ext >&5 12402 12403 ac_cv_have_decl_FE_ALL_EXCEPT=no 12404fi 12405 12406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12407fi 12408{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5 12409echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; } 12410if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then 12411 12412cat >>confdefs.h <<_ACEOF 12413#define HAVE_DECL_FE_ALL_EXCEPT 1 12414_ACEOF 12415 12416 12417else 12418 cat >>confdefs.h <<_ACEOF 12419#define HAVE_DECL_FE_ALL_EXCEPT 0 12420_ACEOF 12421 12422 12423fi 12424{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5 12425echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; } 12426if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then 12427 echo $ECHO_N "(cached) $ECHO_C" >&6 12428else 12429 cat >conftest.$ac_ext <<_ACEOF 12430/* confdefs.h. */ 12431_ACEOF 12432cat confdefs.h >>conftest.$ac_ext 12433cat >>conftest.$ac_ext <<_ACEOF 12434/* end confdefs.h. */ 12435#include <fenv.h> 12436 12437int 12438main () 12439{ 12440#ifndef FE_INEXACT 12441 char *p = (char *) FE_INEXACT; 12442 return !p; 12443#endif 12444 12445 ; 12446 return 0; 12447} 12448_ACEOF 12449rm -f conftest.$ac_objext 12450if { (ac_try="$ac_compile" 12451case "(($ac_try" in 12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12453 *) ac_try_echo=$ac_try;; 12454esac 12455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12456 (eval "$ac_compile") 2>conftest.er1 12457 ac_status=$? 12458 grep -v '^ *+' conftest.er1 >conftest.err 12459 rm -f conftest.er1 12460 cat conftest.err >&5 12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12462 (exit $ac_status); } && 12463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12464 { (case "(($ac_try" in 12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12466 *) ac_try_echo=$ac_try;; 12467esac 12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12469 (eval "$ac_try") 2>&5 12470 ac_status=$? 12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12472 (exit $ac_status); }; } && 12473 { ac_try='test -s conftest.$ac_objext' 12474 { (case "(($ac_try" in 12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12476 *) ac_try_echo=$ac_try;; 12477esac 12478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12479 (eval "$ac_try") 2>&5 12480 ac_status=$? 12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12482 (exit $ac_status); }; }; then 12483 ac_cv_have_decl_FE_INEXACT=yes 12484else 12485 echo "$as_me: failed program was:" >&5 12486sed 's/^/| /' conftest.$ac_ext >&5 12487 12488 ac_cv_have_decl_FE_INEXACT=no 12489fi 12490 12491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12492fi 12493{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5 12494echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; } 12495if test $ac_cv_have_decl_FE_INEXACT = yes; then 12496 12497cat >>confdefs.h <<_ACEOF 12498#define HAVE_DECL_FE_INEXACT 1 12499_ACEOF 12500 12501 12502else 12503 cat >>confdefs.h <<_ACEOF 12504#define HAVE_DECL_FE_INEXACT 0 12505_ACEOF 12506 12507 12508fi 12509 12510 12511if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12512 12513for ac_header in pthread.h 12514do 12515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12517 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12520 echo $ECHO_N "(cached) $ECHO_C" >&6 12521fi 12522ac_res=`eval echo '${'$as_ac_Header'}'` 12523 { echo "$as_me:$LINENO: result: $ac_res" >&5 12524echo "${ECHO_T}$ac_res" >&6; } 12525else 12526 # Is the header compilable? 12527{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12529cat >conftest.$ac_ext <<_ACEOF 12530/* confdefs.h. */ 12531_ACEOF 12532cat confdefs.h >>conftest.$ac_ext 12533cat >>conftest.$ac_ext <<_ACEOF 12534/* end confdefs.h. */ 12535$ac_includes_default 12536#include <$ac_header> 12537_ACEOF 12538rm -f conftest.$ac_objext 12539if { (ac_try="$ac_compile" 12540case "(($ac_try" in 12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12542 *) ac_try_echo=$ac_try;; 12543esac 12544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12545 (eval "$ac_compile") 2>conftest.er1 12546 ac_status=$? 12547 grep -v '^ *+' conftest.er1 >conftest.err 12548 rm -f conftest.er1 12549 cat conftest.err >&5 12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12551 (exit $ac_status); } && 12552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12553 { (case "(($ac_try" in 12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12555 *) ac_try_echo=$ac_try;; 12556esac 12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12558 (eval "$ac_try") 2>&5 12559 ac_status=$? 12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12561 (exit $ac_status); }; } && 12562 { ac_try='test -s conftest.$ac_objext' 12563 { (case "(($ac_try" in 12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12565 *) ac_try_echo=$ac_try;; 12566esac 12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12568 (eval "$ac_try") 2>&5 12569 ac_status=$? 12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12571 (exit $ac_status); }; }; then 12572 ac_header_compiler=yes 12573else 12574 echo "$as_me: failed program was:" >&5 12575sed 's/^/| /' conftest.$ac_ext >&5 12576 12577 ac_header_compiler=no 12578fi 12579 12580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12582echo "${ECHO_T}$ac_header_compiler" >&6; } 12583 12584# Is the header present? 12585{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12587cat >conftest.$ac_ext <<_ACEOF 12588/* confdefs.h. */ 12589_ACEOF 12590cat confdefs.h >>conftest.$ac_ext 12591cat >>conftest.$ac_ext <<_ACEOF 12592/* end confdefs.h. */ 12593#include <$ac_header> 12594_ACEOF 12595if { (ac_try="$ac_cpp conftest.$ac_ext" 12596case "(($ac_try" in 12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12598 *) ac_try_echo=$ac_try;; 12599esac 12600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12602 ac_status=$? 12603 grep -v '^ *+' conftest.er1 >conftest.err 12604 rm -f conftest.er1 12605 cat conftest.err >&5 12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12607 (exit $ac_status); } >/dev/null; then 12608 if test -s conftest.err; then 12609 ac_cpp_err=$ac_c_preproc_warn_flag 12610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12611 else 12612 ac_cpp_err= 12613 fi 12614else 12615 ac_cpp_err=yes 12616fi 12617if test -z "$ac_cpp_err"; then 12618 ac_header_preproc=yes 12619else 12620 echo "$as_me: failed program was:" >&5 12621sed 's/^/| /' conftest.$ac_ext >&5 12622 12623 ac_header_preproc=no 12624fi 12625 12626rm -f conftest.err conftest.$ac_ext 12627{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12628echo "${ECHO_T}$ac_header_preproc" >&6; } 12629 12630# So? What about this header? 12631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12632 yes:no: ) 12633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12637 ac_header_preproc=yes 12638 ;; 12639 no:yes:* ) 12640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12652 ( cat <<\_ASBOX 12653## ------------------------------------ ## 12654## Report this to http://llvm.org/bugs/ ## 12655## ------------------------------------ ## 12656_ASBOX 12657 ) | sed "s/^/$as_me: WARNING: /" >&2 12658 ;; 12659esac 12660{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12663 echo $ECHO_N "(cached) $ECHO_C" >&6 12664else 12665 eval "$as_ac_Header=\$ac_header_preproc" 12666fi 12667ac_res=`eval echo '${'$as_ac_Header'}'` 12668 { echo "$as_me:$LINENO: result: $ac_res" >&5 12669echo "${ECHO_T}$ac_res" >&6; } 12670 12671fi 12672if test `eval echo '${'$as_ac_Header'}'` = yes; then 12673 cat >>confdefs.h <<_ACEOF 12674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12675_ACEOF 12676 HAVE_PTHREAD=1 12677 12678else 12679 HAVE_PTHREAD=0 12680 12681fi 12682 12683done 12684 12685else 12686 HAVE_PTHREAD=0 12687 12688fi 12689if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 12690 12691for ac_header in zlib.h 12692do 12693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12695 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12698 echo $ECHO_N "(cached) $ECHO_C" >&6 12699fi 12700ac_res=`eval echo '${'$as_ac_Header'}'` 12701 { echo "$as_me:$LINENO: result: $ac_res" >&5 12702echo "${ECHO_T}$ac_res" >&6; } 12703else 12704 # Is the header compilable? 12705{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12707cat >conftest.$ac_ext <<_ACEOF 12708/* confdefs.h. */ 12709_ACEOF 12710cat confdefs.h >>conftest.$ac_ext 12711cat >>conftest.$ac_ext <<_ACEOF 12712/* end confdefs.h. */ 12713$ac_includes_default 12714#include <$ac_header> 12715_ACEOF 12716rm -f conftest.$ac_objext 12717if { (ac_try="$ac_compile" 12718case "(($ac_try" in 12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12720 *) ac_try_echo=$ac_try;; 12721esac 12722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12723 (eval "$ac_compile") 2>conftest.er1 12724 ac_status=$? 12725 grep -v '^ *+' conftest.er1 >conftest.err 12726 rm -f conftest.er1 12727 cat conftest.err >&5 12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12729 (exit $ac_status); } && 12730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12731 { (case "(($ac_try" in 12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12733 *) ac_try_echo=$ac_try;; 12734esac 12735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12736 (eval "$ac_try") 2>&5 12737 ac_status=$? 12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12739 (exit $ac_status); }; } && 12740 { ac_try='test -s conftest.$ac_objext' 12741 { (case "(($ac_try" in 12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12743 *) ac_try_echo=$ac_try;; 12744esac 12745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12746 (eval "$ac_try") 2>&5 12747 ac_status=$? 12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12749 (exit $ac_status); }; }; then 12750 ac_header_compiler=yes 12751else 12752 echo "$as_me: failed program was:" >&5 12753sed 's/^/| /' conftest.$ac_ext >&5 12754 12755 ac_header_compiler=no 12756fi 12757 12758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12760echo "${ECHO_T}$ac_header_compiler" >&6; } 12761 12762# Is the header present? 12763{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12765cat >conftest.$ac_ext <<_ACEOF 12766/* confdefs.h. */ 12767_ACEOF 12768cat confdefs.h >>conftest.$ac_ext 12769cat >>conftest.$ac_ext <<_ACEOF 12770/* end confdefs.h. */ 12771#include <$ac_header> 12772_ACEOF 12773if { (ac_try="$ac_cpp conftest.$ac_ext" 12774case "(($ac_try" in 12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12776 *) ac_try_echo=$ac_try;; 12777esac 12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12780 ac_status=$? 12781 grep -v '^ *+' conftest.er1 >conftest.err 12782 rm -f conftest.er1 12783 cat conftest.err >&5 12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12785 (exit $ac_status); } >/dev/null; then 12786 if test -s conftest.err; then 12787 ac_cpp_err=$ac_c_preproc_warn_flag 12788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12789 else 12790 ac_cpp_err= 12791 fi 12792else 12793 ac_cpp_err=yes 12794fi 12795if test -z "$ac_cpp_err"; then 12796 ac_header_preproc=yes 12797else 12798 echo "$as_me: failed program was:" >&5 12799sed 's/^/| /' conftest.$ac_ext >&5 12800 12801 ac_header_preproc=no 12802fi 12803 12804rm -f conftest.err conftest.$ac_ext 12805{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12806echo "${ECHO_T}$ac_header_preproc" >&6; } 12807 12808# So? What about this header? 12809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12810 yes:no: ) 12811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12815 ac_header_preproc=yes 12816 ;; 12817 no:yes:* ) 12818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12825echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12830 ( cat <<\_ASBOX 12831## ------------------------------------ ## 12832## Report this to http://llvm.org/bugs/ ## 12833## ------------------------------------ ## 12834_ASBOX 12835 ) | sed "s/^/$as_me: WARNING: /" >&2 12836 ;; 12837esac 12838{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12841 echo $ECHO_N "(cached) $ECHO_C" >&6 12842else 12843 eval "$as_ac_Header=\$ac_header_preproc" 12844fi 12845ac_res=`eval echo '${'$as_ac_Header'}'` 12846 { echo "$as_me:$LINENO: result: $ac_res" >&5 12847echo "${ECHO_T}$ac_res" >&6; } 12848 12849fi 12850if test `eval echo '${'$as_ac_Header'}'` = yes; then 12851 cat >>confdefs.h <<_ACEOF 12852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12853_ACEOF 12854 HAVE_LIBZ=1 12855 12856else 12857 HAVE_LIBZ=0 12858 12859fi 12860 12861done 12862 12863else 12864 HAVE_LIBZ=0 12865 12866fi 12867 12868if test "$llvm_cv_enable_libffi" = "yes" ; then 12869 12870 12871for ac_header in ffi.h ffi/ffi.h 12872do 12873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12875 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12878 echo $ECHO_N "(cached) $ECHO_C" >&6 12879fi 12880ac_res=`eval echo '${'$as_ac_Header'}'` 12881 { echo "$as_me:$LINENO: result: $ac_res" >&5 12882echo "${ECHO_T}$ac_res" >&6; } 12883else 12884 # Is the header compilable? 12885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12887cat >conftest.$ac_ext <<_ACEOF 12888/* confdefs.h. */ 12889_ACEOF 12890cat confdefs.h >>conftest.$ac_ext 12891cat >>conftest.$ac_ext <<_ACEOF 12892/* end confdefs.h. */ 12893$ac_includes_default 12894#include <$ac_header> 12895_ACEOF 12896rm -f conftest.$ac_objext 12897if { (ac_try="$ac_compile" 12898case "(($ac_try" in 12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12900 *) ac_try_echo=$ac_try;; 12901esac 12902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12903 (eval "$ac_compile") 2>conftest.er1 12904 ac_status=$? 12905 grep -v '^ *+' conftest.er1 >conftest.err 12906 rm -f conftest.er1 12907 cat conftest.err >&5 12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12909 (exit $ac_status); } && 12910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12911 { (case "(($ac_try" in 12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12913 *) ac_try_echo=$ac_try;; 12914esac 12915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12916 (eval "$ac_try") 2>&5 12917 ac_status=$? 12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12919 (exit $ac_status); }; } && 12920 { ac_try='test -s conftest.$ac_objext' 12921 { (case "(($ac_try" in 12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12923 *) ac_try_echo=$ac_try;; 12924esac 12925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12926 (eval "$ac_try") 2>&5 12927 ac_status=$? 12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12929 (exit $ac_status); }; }; then 12930 ac_header_compiler=yes 12931else 12932 echo "$as_me: failed program was:" >&5 12933sed 's/^/| /' conftest.$ac_ext >&5 12934 12935 ac_header_compiler=no 12936fi 12937 12938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12940echo "${ECHO_T}$ac_header_compiler" >&6; } 12941 12942# Is the header present? 12943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12945cat >conftest.$ac_ext <<_ACEOF 12946/* confdefs.h. */ 12947_ACEOF 12948cat confdefs.h >>conftest.$ac_ext 12949cat >>conftest.$ac_ext <<_ACEOF 12950/* end confdefs.h. */ 12951#include <$ac_header> 12952_ACEOF 12953if { (ac_try="$ac_cpp conftest.$ac_ext" 12954case "(($ac_try" in 12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12956 *) ac_try_echo=$ac_try;; 12957esac 12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12960 ac_status=$? 12961 grep -v '^ *+' conftest.er1 >conftest.err 12962 rm -f conftest.er1 12963 cat conftest.err >&5 12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12965 (exit $ac_status); } >/dev/null; then 12966 if test -s conftest.err; then 12967 ac_cpp_err=$ac_c_preproc_warn_flag 12968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12969 else 12970 ac_cpp_err= 12971 fi 12972else 12973 ac_cpp_err=yes 12974fi 12975if test -z "$ac_cpp_err"; then 12976 ac_header_preproc=yes 12977else 12978 echo "$as_me: failed program was:" >&5 12979sed 's/^/| /' conftest.$ac_ext >&5 12980 12981 ac_header_preproc=no 12982fi 12983 12984rm -f conftest.err conftest.$ac_ext 12985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12986echo "${ECHO_T}$ac_header_preproc" >&6; } 12987 12988# So? What about this header? 12989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12990 yes:no: ) 12991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12995 ac_header_preproc=yes 12996 ;; 12997 no:yes:* ) 12998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13001echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13005echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13010 ( cat <<\_ASBOX 13011## ------------------------------------ ## 13012## Report this to http://llvm.org/bugs/ ## 13013## ------------------------------------ ## 13014_ASBOX 13015 ) | sed "s/^/$as_me: WARNING: /" >&2 13016 ;; 13017esac 13018{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13021 echo $ECHO_N "(cached) $ECHO_C" >&6 13022else 13023 eval "$as_ac_Header=\$ac_header_preproc" 13024fi 13025ac_res=`eval echo '${'$as_ac_Header'}'` 13026 { echo "$as_me:$LINENO: result: $ac_res" >&5 13027echo "${ECHO_T}$ac_res" >&6; } 13028 13029fi 13030if test `eval echo '${'$as_ac_Header'}'` = yes; then 13031 cat >>confdefs.h <<_ACEOF 13032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13033_ACEOF 13034 13035fi 13036 13037done 13038 13039fi 13040 13041 13042for ac_header in CrashReporterClient.h 13043do 13044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13046 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13049 echo $ECHO_N "(cached) $ECHO_C" >&6 13050fi 13051ac_res=`eval echo '${'$as_ac_Header'}'` 13052 { echo "$as_me:$LINENO: result: $ac_res" >&5 13053echo "${ECHO_T}$ac_res" >&6; } 13054else 13055 # Is the header compilable? 13056{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13058cat >conftest.$ac_ext <<_ACEOF 13059/* confdefs.h. */ 13060_ACEOF 13061cat confdefs.h >>conftest.$ac_ext 13062cat >>conftest.$ac_ext <<_ACEOF 13063/* end confdefs.h. */ 13064$ac_includes_default 13065#include <$ac_header> 13066_ACEOF 13067rm -f conftest.$ac_objext 13068if { (ac_try="$ac_compile" 13069case "(($ac_try" in 13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13071 *) ac_try_echo=$ac_try;; 13072esac 13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13074 (eval "$ac_compile") 2>conftest.er1 13075 ac_status=$? 13076 grep -v '^ *+' conftest.er1 >conftest.err 13077 rm -f conftest.er1 13078 cat conftest.err >&5 13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13080 (exit $ac_status); } && 13081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13082 { (case "(($ac_try" in 13083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13084 *) ac_try_echo=$ac_try;; 13085esac 13086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13087 (eval "$ac_try") 2>&5 13088 ac_status=$? 13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13090 (exit $ac_status); }; } && 13091 { ac_try='test -s conftest.$ac_objext' 13092 { (case "(($ac_try" in 13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13094 *) ac_try_echo=$ac_try;; 13095esac 13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13097 (eval "$ac_try") 2>&5 13098 ac_status=$? 13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13100 (exit $ac_status); }; }; then 13101 ac_header_compiler=yes 13102else 13103 echo "$as_me: failed program was:" >&5 13104sed 's/^/| /' conftest.$ac_ext >&5 13105 13106 ac_header_compiler=no 13107fi 13108 13109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13110{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13111echo "${ECHO_T}$ac_header_compiler" >&6; } 13112 13113# Is the header present? 13114{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 13115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13116cat >conftest.$ac_ext <<_ACEOF 13117/* confdefs.h. */ 13118_ACEOF 13119cat confdefs.h >>conftest.$ac_ext 13120cat >>conftest.$ac_ext <<_ACEOF 13121/* end confdefs.h. */ 13122#include <$ac_header> 13123_ACEOF 13124if { (ac_try="$ac_cpp conftest.$ac_ext" 13125case "(($ac_try" in 13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13127 *) ac_try_echo=$ac_try;; 13128esac 13129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13131 ac_status=$? 13132 grep -v '^ *+' conftest.er1 >conftest.err 13133 rm -f conftest.er1 13134 cat conftest.err >&5 13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13136 (exit $ac_status); } >/dev/null; then 13137 if test -s conftest.err; then 13138 ac_cpp_err=$ac_c_preproc_warn_flag 13139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13140 else 13141 ac_cpp_err= 13142 fi 13143else 13144 ac_cpp_err=yes 13145fi 13146if test -z "$ac_cpp_err"; then 13147 ac_header_preproc=yes 13148else 13149 echo "$as_me: failed program was:" >&5 13150sed 's/^/| /' conftest.$ac_ext >&5 13151 13152 ac_header_preproc=no 13153fi 13154 13155rm -f conftest.err conftest.$ac_ext 13156{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13157echo "${ECHO_T}$ac_header_preproc" >&6; } 13158 13159# So? What about this header? 13160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13161 yes:no: ) 13162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13166 ac_header_preproc=yes 13167 ;; 13168 no:yes:* ) 13169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13172echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13176echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13181 ( cat <<\_ASBOX 13182## ------------------------------------ ## 13183## Report this to http://llvm.org/bugs/ ## 13184## ------------------------------------ ## 13185_ASBOX 13186 ) | sed "s/^/$as_me: WARNING: /" >&2 13187 ;; 13188esac 13189{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13192 echo $ECHO_N "(cached) $ECHO_C" >&6 13193else 13194 eval "$as_ac_Header=\$ac_header_preproc" 13195fi 13196ac_res=`eval echo '${'$as_ac_Header'}'` 13197 { echo "$as_me:$LINENO: result: $ac_res" >&5 13198echo "${ECHO_T}$ac_res" >&6; } 13199 13200fi 13201if test `eval echo '${'$as_ac_Header'}'` = yes; then 13202 cat >>confdefs.h <<_ACEOF 13203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13204_ACEOF 13205 13206fi 13207 13208done 13209 13210 13211{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 13212echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 13213cat >conftest.$ac_ext <<_ACEOF 13214 13215 /* confdefs.h. */ 13216_ACEOF 13217cat confdefs.h >>conftest.$ac_ext 13218cat >>conftest.$ac_ext <<_ACEOF 13219/* end confdefs.h. */ 13220 13221 extern const char *__crashreporter_info__; 13222 int main() { 13223 __crashreporter_info__ = "test"; 13224 return 0; 13225 } 13226 13227 13228_ACEOF 13229rm -f conftest.$ac_objext conftest$ac_exeext 13230if { (ac_try="$ac_link" 13231case "(($ac_try" in 13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13233 *) ac_try_echo=$ac_try;; 13234esac 13235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13236 (eval "$ac_link") 2>conftest.er1 13237 ac_status=$? 13238 grep -v '^ *+' conftest.er1 >conftest.err 13239 rm -f conftest.er1 13240 cat conftest.err >&5 13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13242 (exit $ac_status); } && 13243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13244 { (case "(($ac_try" in 13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13246 *) ac_try_echo=$ac_try;; 13247esac 13248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13249 (eval "$ac_try") 2>&5 13250 ac_status=$? 13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13252 (exit $ac_status); }; } && 13253 { ac_try='test -s conftest$ac_exeext' 13254 { (case "(($ac_try" in 13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13256 *) ac_try_echo=$ac_try;; 13257esac 13258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13259 (eval "$ac_try") 2>&5 13260 ac_status=$? 13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13262 (exit $ac_status); }; }; then 13263 13264 { echo "$as_me:$LINENO: result: yes" >&5 13265echo "${ECHO_T}yes" >&6; } 13266 13267cat >>confdefs.h <<\_ACEOF 13268#define HAVE_CRASHREPORTER_INFO 1 13269_ACEOF 13270 13271 13272else 13273 echo "$as_me: failed program was:" >&5 13274sed 's/^/| /' conftest.$ac_ext >&5 13275 13276 13277 { echo "$as_me:$LINENO: result: no" >&5 13278echo "${ECHO_T}no" >&6; } 13279 13280cat >>confdefs.h <<\_ACEOF 13281#define HAVE_CRASHREPORTER_INFO 0 13282_ACEOF 13283 13284 13285fi 13286 13287rm -f core conftest.err conftest.$ac_objext \ 13288 conftest$ac_exeext conftest.$ac_ext 13289 13290 13291 13292 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 13293echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 13294if test "${ac_cv_huge_val_sanity+set}" = set; then 13295 echo $ECHO_N "(cached) $ECHO_C" >&6 13296else 13297 13298 ac_ext=cpp 13299ac_cpp='$CXXCPP $CPPFLAGS' 13300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13303 13304 ac_save_CXXFLAGS=$CXXFLAGS 13305 CXXFLAGS="$CXXFLAGS -pedantic" 13306 if test "$cross_compiling" = yes; then 13307 ac_cv_huge_val_sanity=yes 13308else 13309 cat >conftest.$ac_ext <<_ACEOF 13310/* confdefs.h. */ 13311_ACEOF 13312cat confdefs.h >>conftest.$ac_ext 13313cat >>conftest.$ac_ext <<_ACEOF 13314/* end confdefs.h. */ 13315#include <math.h> 13316int 13317main () 13318{ 13319double x = HUGE_VAL; return x != x; 13320 ; 13321 return 0; 13322} 13323_ACEOF 13324rm -f conftest$ac_exeext 13325if { (ac_try="$ac_link" 13326case "(($ac_try" in 13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13328 *) ac_try_echo=$ac_try;; 13329esac 13330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13331 (eval "$ac_link") 2>&5 13332 ac_status=$? 13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13335 { (case "(($ac_try" in 13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13337 *) ac_try_echo=$ac_try;; 13338esac 13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13340 (eval "$ac_try") 2>&5 13341 ac_status=$? 13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13343 (exit $ac_status); }; }; then 13344 ac_cv_huge_val_sanity=yes 13345else 13346 echo "$as_me: program exited with status $ac_status" >&5 13347echo "$as_me: failed program was:" >&5 13348sed 's/^/| /' conftest.$ac_ext >&5 13349 13350( exit $ac_status ) 13351ac_cv_huge_val_sanity=no 13352fi 13353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13354fi 13355 13356 13357 CXXFLAGS=$ac_save_CXXFLAGS 13358 ac_ext=c 13359ac_cpp='$CPP $CPPFLAGS' 13360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13362ac_compiler_gnu=$ac_cv_c_compiler_gnu 13363 13364 13365fi 13366{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 13367echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 13368 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 13369 13370 13371{ echo "$as_me:$LINENO: checking for pid_t" >&5 13372echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 13373if test "${ac_cv_type_pid_t+set}" = set; then 13374 echo $ECHO_N "(cached) $ECHO_C" >&6 13375else 13376 cat >conftest.$ac_ext <<_ACEOF 13377/* confdefs.h. */ 13378_ACEOF 13379cat confdefs.h >>conftest.$ac_ext 13380cat >>conftest.$ac_ext <<_ACEOF 13381/* end confdefs.h. */ 13382$ac_includes_default 13383typedef pid_t ac__type_new_; 13384int 13385main () 13386{ 13387if ((ac__type_new_ *) 0) 13388 return 0; 13389if (sizeof (ac__type_new_)) 13390 return 0; 13391 ; 13392 return 0; 13393} 13394_ACEOF 13395rm -f conftest.$ac_objext 13396if { (ac_try="$ac_compile" 13397case "(($ac_try" in 13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13399 *) ac_try_echo=$ac_try;; 13400esac 13401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13402 (eval "$ac_compile") 2>conftest.er1 13403 ac_status=$? 13404 grep -v '^ *+' conftest.er1 >conftest.err 13405 rm -f conftest.er1 13406 cat conftest.err >&5 13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13408 (exit $ac_status); } && 13409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13410 { (case "(($ac_try" in 13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13412 *) ac_try_echo=$ac_try;; 13413esac 13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13415 (eval "$ac_try") 2>&5 13416 ac_status=$? 13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13418 (exit $ac_status); }; } && 13419 { ac_try='test -s conftest.$ac_objext' 13420 { (case "(($ac_try" in 13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13422 *) ac_try_echo=$ac_try;; 13423esac 13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13425 (eval "$ac_try") 2>&5 13426 ac_status=$? 13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13428 (exit $ac_status); }; }; then 13429 ac_cv_type_pid_t=yes 13430else 13431 echo "$as_me: failed program was:" >&5 13432sed 's/^/| /' conftest.$ac_ext >&5 13433 13434 ac_cv_type_pid_t=no 13435fi 13436 13437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13438fi 13439{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 13440echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 13441if test $ac_cv_type_pid_t = yes; then 13442 : 13443else 13444 13445cat >>confdefs.h <<_ACEOF 13446#define pid_t int 13447_ACEOF 13448 13449fi 13450 13451{ echo "$as_me:$LINENO: checking for size_t" >&5 13452echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 13453if test "${ac_cv_type_size_t+set}" = set; then 13454 echo $ECHO_N "(cached) $ECHO_C" >&6 13455else 13456 cat >conftest.$ac_ext <<_ACEOF 13457/* confdefs.h. */ 13458_ACEOF 13459cat confdefs.h >>conftest.$ac_ext 13460cat >>conftest.$ac_ext <<_ACEOF 13461/* end confdefs.h. */ 13462$ac_includes_default 13463typedef size_t ac__type_new_; 13464int 13465main () 13466{ 13467if ((ac__type_new_ *) 0) 13468 return 0; 13469if (sizeof (ac__type_new_)) 13470 return 0; 13471 ; 13472 return 0; 13473} 13474_ACEOF 13475rm -f conftest.$ac_objext 13476if { (ac_try="$ac_compile" 13477case "(($ac_try" in 13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13479 *) ac_try_echo=$ac_try;; 13480esac 13481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13482 (eval "$ac_compile") 2>conftest.er1 13483 ac_status=$? 13484 grep -v '^ *+' conftest.er1 >conftest.err 13485 rm -f conftest.er1 13486 cat conftest.err >&5 13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13488 (exit $ac_status); } && 13489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13490 { (case "(($ac_try" in 13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13492 *) ac_try_echo=$ac_try;; 13493esac 13494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13495 (eval "$ac_try") 2>&5 13496 ac_status=$? 13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13498 (exit $ac_status); }; } && 13499 { ac_try='test -s conftest.$ac_objext' 13500 { (case "(($ac_try" in 13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13502 *) ac_try_echo=$ac_try;; 13503esac 13504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13505 (eval "$ac_try") 2>&5 13506 ac_status=$? 13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13508 (exit $ac_status); }; }; then 13509 ac_cv_type_size_t=yes 13510else 13511 echo "$as_me: failed program was:" >&5 13512sed 's/^/| /' conftest.$ac_ext >&5 13513 13514 ac_cv_type_size_t=no 13515fi 13516 13517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13518fi 13519{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 13520echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 13521if test $ac_cv_type_size_t = yes; then 13522 : 13523else 13524 13525cat >>confdefs.h <<_ACEOF 13526#define size_t unsigned int 13527_ACEOF 13528 13529fi 13530 13531 13532cat >>confdefs.h <<_ACEOF 13533#define RETSIGTYPE void 13534_ACEOF 13535 13536{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 13537echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 13538if test "${ac_cv_struct_tm+set}" = set; then 13539 echo $ECHO_N "(cached) $ECHO_C" >&6 13540else 13541 cat >conftest.$ac_ext <<_ACEOF 13542/* confdefs.h. */ 13543_ACEOF 13544cat confdefs.h >>conftest.$ac_ext 13545cat >>conftest.$ac_ext <<_ACEOF 13546/* end confdefs.h. */ 13547#include <sys/types.h> 13548#include <time.h> 13549 13550int 13551main () 13552{ 13553struct tm *tp; tp->tm_sec; 13554 ; 13555 return 0; 13556} 13557_ACEOF 13558rm -f conftest.$ac_objext 13559if { (ac_try="$ac_compile" 13560case "(($ac_try" in 13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13562 *) ac_try_echo=$ac_try;; 13563esac 13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13565 (eval "$ac_compile") 2>conftest.er1 13566 ac_status=$? 13567 grep -v '^ *+' conftest.er1 >conftest.err 13568 rm -f conftest.er1 13569 cat conftest.err >&5 13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13571 (exit $ac_status); } && 13572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13573 { (case "(($ac_try" in 13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13575 *) ac_try_echo=$ac_try;; 13576esac 13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13578 (eval "$ac_try") 2>&5 13579 ac_status=$? 13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13581 (exit $ac_status); }; } && 13582 { ac_try='test -s conftest.$ac_objext' 13583 { (case "(($ac_try" in 13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13585 *) ac_try_echo=$ac_try;; 13586esac 13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13588 (eval "$ac_try") 2>&5 13589 ac_status=$? 13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13591 (exit $ac_status); }; }; then 13592 ac_cv_struct_tm=time.h 13593else 13594 echo "$as_me: failed program was:" >&5 13595sed 's/^/| /' conftest.$ac_ext >&5 13596 13597 ac_cv_struct_tm=sys/time.h 13598fi 13599 13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13601fi 13602{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 13603echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 13604if test $ac_cv_struct_tm = sys/time.h; then 13605 13606cat >>confdefs.h <<\_ACEOF 13607#define TM_IN_SYS_TIME 1 13608_ACEOF 13609 13610fi 13611 13612{ echo "$as_me:$LINENO: checking for int64_t" >&5 13613echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 13614if test "${ac_cv_type_int64_t+set}" = set; then 13615 echo $ECHO_N "(cached) $ECHO_C" >&6 13616else 13617 cat >conftest.$ac_ext <<_ACEOF 13618/* confdefs.h. */ 13619_ACEOF 13620cat confdefs.h >>conftest.$ac_ext 13621cat >>conftest.$ac_ext <<_ACEOF 13622/* end confdefs.h. */ 13623$ac_includes_default 13624typedef int64_t ac__type_new_; 13625int 13626main () 13627{ 13628if ((ac__type_new_ *) 0) 13629 return 0; 13630if (sizeof (ac__type_new_)) 13631 return 0; 13632 ; 13633 return 0; 13634} 13635_ACEOF 13636rm -f conftest.$ac_objext 13637if { (ac_try="$ac_compile" 13638case "(($ac_try" in 13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13640 *) ac_try_echo=$ac_try;; 13641esac 13642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13643 (eval "$ac_compile") 2>conftest.er1 13644 ac_status=$? 13645 grep -v '^ *+' conftest.er1 >conftest.err 13646 rm -f conftest.er1 13647 cat conftest.err >&5 13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13649 (exit $ac_status); } && 13650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13651 { (case "(($ac_try" in 13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13653 *) ac_try_echo=$ac_try;; 13654esac 13655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13656 (eval "$ac_try") 2>&5 13657 ac_status=$? 13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13659 (exit $ac_status); }; } && 13660 { ac_try='test -s conftest.$ac_objext' 13661 { (case "(($ac_try" in 13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13663 *) ac_try_echo=$ac_try;; 13664esac 13665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13666 (eval "$ac_try") 2>&5 13667 ac_status=$? 13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13669 (exit $ac_status); }; }; then 13670 ac_cv_type_int64_t=yes 13671else 13672 echo "$as_me: failed program was:" >&5 13673sed 's/^/| /' conftest.$ac_ext >&5 13674 13675 ac_cv_type_int64_t=no 13676fi 13677 13678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13679fi 13680{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 13681echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 13682if test $ac_cv_type_int64_t = yes; then 13683 13684cat >>confdefs.h <<_ACEOF 13685#define HAVE_INT64_T 1 13686_ACEOF 13687 13688 13689else 13690 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 13691echo "$as_me: error: Type int64_t required but not found" >&2;} 13692 { (exit 1); exit 1; }; } 13693fi 13694 13695{ echo "$as_me:$LINENO: checking for uint64_t" >&5 13696echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 13697if test "${ac_cv_type_uint64_t+set}" = set; then 13698 echo $ECHO_N "(cached) $ECHO_C" >&6 13699else 13700 cat >conftest.$ac_ext <<_ACEOF 13701/* confdefs.h. */ 13702_ACEOF 13703cat confdefs.h >>conftest.$ac_ext 13704cat >>conftest.$ac_ext <<_ACEOF 13705/* end confdefs.h. */ 13706$ac_includes_default 13707typedef uint64_t ac__type_new_; 13708int 13709main () 13710{ 13711if ((ac__type_new_ *) 0) 13712 return 0; 13713if (sizeof (ac__type_new_)) 13714 return 0; 13715 ; 13716 return 0; 13717} 13718_ACEOF 13719rm -f conftest.$ac_objext 13720if { (ac_try="$ac_compile" 13721case "(($ac_try" in 13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13723 *) ac_try_echo=$ac_try;; 13724esac 13725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13726 (eval "$ac_compile") 2>conftest.er1 13727 ac_status=$? 13728 grep -v '^ *+' conftest.er1 >conftest.err 13729 rm -f conftest.er1 13730 cat conftest.err >&5 13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13732 (exit $ac_status); } && 13733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13734 { (case "(($ac_try" in 13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13736 *) ac_try_echo=$ac_try;; 13737esac 13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13739 (eval "$ac_try") 2>&5 13740 ac_status=$? 13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13742 (exit $ac_status); }; } && 13743 { ac_try='test -s conftest.$ac_objext' 13744 { (case "(($ac_try" in 13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13746 *) ac_try_echo=$ac_try;; 13747esac 13748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13749 (eval "$ac_try") 2>&5 13750 ac_status=$? 13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13752 (exit $ac_status); }; }; then 13753 ac_cv_type_uint64_t=yes 13754else 13755 echo "$as_me: failed program was:" >&5 13756sed 's/^/| /' conftest.$ac_ext >&5 13757 13758 ac_cv_type_uint64_t=no 13759fi 13760 13761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13762fi 13763{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 13764echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 13765if test $ac_cv_type_uint64_t = yes; then 13766 13767cat >>confdefs.h <<_ACEOF 13768#define HAVE_UINT64_T 1 13769_ACEOF 13770 13771 13772else 13773 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 13774echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 13775if test "${ac_cv_type_u_int64_t+set}" = set; then 13776 echo $ECHO_N "(cached) $ECHO_C" >&6 13777else 13778 cat >conftest.$ac_ext <<_ACEOF 13779/* confdefs.h. */ 13780_ACEOF 13781cat confdefs.h >>conftest.$ac_ext 13782cat >>conftest.$ac_ext <<_ACEOF 13783/* end confdefs.h. */ 13784$ac_includes_default 13785typedef u_int64_t ac__type_new_; 13786int 13787main () 13788{ 13789if ((ac__type_new_ *) 0) 13790 return 0; 13791if (sizeof (ac__type_new_)) 13792 return 0; 13793 ; 13794 return 0; 13795} 13796_ACEOF 13797rm -f conftest.$ac_objext 13798if { (ac_try="$ac_compile" 13799case "(($ac_try" in 13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13801 *) ac_try_echo=$ac_try;; 13802esac 13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13804 (eval "$ac_compile") 2>conftest.er1 13805 ac_status=$? 13806 grep -v '^ *+' conftest.er1 >conftest.err 13807 rm -f conftest.er1 13808 cat conftest.err >&5 13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13810 (exit $ac_status); } && 13811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13812 { (case "(($ac_try" in 13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13814 *) ac_try_echo=$ac_try;; 13815esac 13816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13817 (eval "$ac_try") 2>&5 13818 ac_status=$? 13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13820 (exit $ac_status); }; } && 13821 { ac_try='test -s conftest.$ac_objext' 13822 { (case "(($ac_try" in 13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13824 *) ac_try_echo=$ac_try;; 13825esac 13826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13827 (eval "$ac_try") 2>&5 13828 ac_status=$? 13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13830 (exit $ac_status); }; }; then 13831 ac_cv_type_u_int64_t=yes 13832else 13833 echo "$as_me: failed program was:" >&5 13834sed 's/^/| /' conftest.$ac_ext >&5 13835 13836 ac_cv_type_u_int64_t=no 13837fi 13838 13839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13840fi 13841{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 13842echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 13843if test $ac_cv_type_u_int64_t = yes; then 13844 13845cat >>confdefs.h <<_ACEOF 13846#define HAVE_U_INT64_T 1 13847_ACEOF 13848 13849 13850else 13851 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 13852echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 13853 { (exit 1); exit 1; }; } 13854fi 13855 13856fi 13857 13858 13859 13860 13861 13862for ac_func in backtrace getcwd 13863do 13864as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13865{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13867if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13868 echo $ECHO_N "(cached) $ECHO_C" >&6 13869else 13870 cat >conftest.$ac_ext <<_ACEOF 13871/* confdefs.h. */ 13872_ACEOF 13873cat confdefs.h >>conftest.$ac_ext 13874cat >>conftest.$ac_ext <<_ACEOF 13875/* end confdefs.h. */ 13876/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13877 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13878#define $ac_func innocuous_$ac_func 13879 13880/* System header to define __stub macros and hopefully few prototypes, 13881 which can conflict with char $ac_func (); below. 13882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13883 <limits.h> exists even on freestanding compilers. */ 13884 13885#ifdef __STDC__ 13886# include <limits.h> 13887#else 13888# include <assert.h> 13889#endif 13890 13891#undef $ac_func 13892 13893/* Override any GCC internal prototype to avoid an error. 13894 Use char because int might match the return type of a GCC 13895 builtin and then its argument prototype would still apply. */ 13896#ifdef __cplusplus 13897extern "C" 13898#endif 13899char $ac_func (); 13900/* The GNU C library defines this for functions which it implements 13901 to always fail with ENOSYS. Some functions are actually named 13902 something starting with __ and the normal name is an alias. */ 13903#if defined __stub_$ac_func || defined __stub___$ac_func 13904choke me 13905#endif 13906 13907int 13908main () 13909{ 13910return $ac_func (); 13911 ; 13912 return 0; 13913} 13914_ACEOF 13915rm -f conftest.$ac_objext conftest$ac_exeext 13916if { (ac_try="$ac_link" 13917case "(($ac_try" in 13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13919 *) ac_try_echo=$ac_try;; 13920esac 13921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13922 (eval "$ac_link") 2>conftest.er1 13923 ac_status=$? 13924 grep -v '^ *+' conftest.er1 >conftest.err 13925 rm -f conftest.er1 13926 cat conftest.err >&5 13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13928 (exit $ac_status); } && 13929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13930 { (case "(($ac_try" in 13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13932 *) ac_try_echo=$ac_try;; 13933esac 13934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13935 (eval "$ac_try") 2>&5 13936 ac_status=$? 13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13938 (exit $ac_status); }; } && 13939 { ac_try='test -s conftest$ac_exeext' 13940 { (case "(($ac_try" in 13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13942 *) ac_try_echo=$ac_try;; 13943esac 13944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13945 (eval "$ac_try") 2>&5 13946 ac_status=$? 13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13948 (exit $ac_status); }; }; then 13949 eval "$as_ac_var=yes" 13950else 13951 echo "$as_me: failed program was:" >&5 13952sed 's/^/| /' conftest.$ac_ext >&5 13953 13954 eval "$as_ac_var=no" 13955fi 13956 13957rm -f core conftest.err conftest.$ac_objext \ 13958 conftest$ac_exeext conftest.$ac_ext 13959fi 13960ac_res=`eval echo '${'$as_ac_var'}'` 13961 { echo "$as_me:$LINENO: result: $ac_res" >&5 13962echo "${ECHO_T}$ac_res" >&6; } 13963if test `eval echo '${'$as_ac_var'}'` = yes; then 13964 cat >>confdefs.h <<_ACEOF 13965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13966_ACEOF 13967 13968fi 13969done 13970 13971 13972 13973 13974 13975 13976for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 13977do 13978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13979{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13982 echo $ECHO_N "(cached) $ECHO_C" >&6 13983else 13984 cat >conftest.$ac_ext <<_ACEOF 13985/* confdefs.h. */ 13986_ACEOF 13987cat confdefs.h >>conftest.$ac_ext 13988cat >>conftest.$ac_ext <<_ACEOF 13989/* end confdefs.h. */ 13990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13991 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13992#define $ac_func innocuous_$ac_func 13993 13994/* System header to define __stub macros and hopefully few prototypes, 13995 which can conflict with char $ac_func (); below. 13996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13997 <limits.h> exists even on freestanding compilers. */ 13998 13999#ifdef __STDC__ 14000# include <limits.h> 14001#else 14002# include <assert.h> 14003#endif 14004 14005#undef $ac_func 14006 14007/* Override any GCC internal prototype to avoid an error. 14008 Use char because int might match the return type of a GCC 14009 builtin and then its argument prototype would still apply. */ 14010#ifdef __cplusplus 14011extern "C" 14012#endif 14013char $ac_func (); 14014/* The GNU C library defines this for functions which it implements 14015 to always fail with ENOSYS. Some functions are actually named 14016 something starting with __ and the normal name is an alias. */ 14017#if defined __stub_$ac_func || defined __stub___$ac_func 14018choke me 14019#endif 14020 14021int 14022main () 14023{ 14024return $ac_func (); 14025 ; 14026 return 0; 14027} 14028_ACEOF 14029rm -f conftest.$ac_objext conftest$ac_exeext 14030if { (ac_try="$ac_link" 14031case "(($ac_try" in 14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14033 *) ac_try_echo=$ac_try;; 14034esac 14035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14036 (eval "$ac_link") 2>conftest.er1 14037 ac_status=$? 14038 grep -v '^ *+' conftest.er1 >conftest.err 14039 rm -f conftest.er1 14040 cat conftest.err >&5 14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14042 (exit $ac_status); } && 14043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14044 { (case "(($ac_try" in 14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14046 *) ac_try_echo=$ac_try;; 14047esac 14048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14049 (eval "$ac_try") 2>&5 14050 ac_status=$? 14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14052 (exit $ac_status); }; } && 14053 { ac_try='test -s conftest$ac_exeext' 14054 { (case "(($ac_try" in 14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14056 *) ac_try_echo=$ac_try;; 14057esac 14058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14059 (eval "$ac_try") 2>&5 14060 ac_status=$? 14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14062 (exit $ac_status); }; }; then 14063 eval "$as_ac_var=yes" 14064else 14065 echo "$as_me: failed program was:" >&5 14066sed 's/^/| /' conftest.$ac_ext >&5 14067 14068 eval "$as_ac_var=no" 14069fi 14070 14071rm -f core conftest.err conftest.$ac_objext \ 14072 conftest$ac_exeext conftest.$ac_ext 14073fi 14074ac_res=`eval echo '${'$as_ac_var'}'` 14075 { echo "$as_me:$LINENO: result: $ac_res" >&5 14076echo "${ECHO_T}$ac_res" >&6; } 14077if test `eval echo '${'$as_ac_var'}'` = yes; then 14078 cat >>confdefs.h <<_ACEOF 14079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14080_ACEOF 14081 14082fi 14083done 14084 14085 14086 14087 14088for ac_func in isatty mkdtemp mkstemp 14089do 14090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14091{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14094 echo $ECHO_N "(cached) $ECHO_C" >&6 14095else 14096 cat >conftest.$ac_ext <<_ACEOF 14097/* confdefs.h. */ 14098_ACEOF 14099cat confdefs.h >>conftest.$ac_ext 14100cat >>conftest.$ac_ext <<_ACEOF 14101/* end confdefs.h. */ 14102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14103 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14104#define $ac_func innocuous_$ac_func 14105 14106/* System header to define __stub macros and hopefully few prototypes, 14107 which can conflict with char $ac_func (); below. 14108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14109 <limits.h> exists even on freestanding compilers. */ 14110 14111#ifdef __STDC__ 14112# include <limits.h> 14113#else 14114# include <assert.h> 14115#endif 14116 14117#undef $ac_func 14118 14119/* Override any GCC internal prototype to avoid an error. 14120 Use char because int might match the return type of a GCC 14121 builtin and then its argument prototype would still apply. */ 14122#ifdef __cplusplus 14123extern "C" 14124#endif 14125char $ac_func (); 14126/* The GNU C library defines this for functions which it implements 14127 to always fail with ENOSYS. Some functions are actually named 14128 something starting with __ and the normal name is an alias. */ 14129#if defined __stub_$ac_func || defined __stub___$ac_func 14130choke me 14131#endif 14132 14133int 14134main () 14135{ 14136return $ac_func (); 14137 ; 14138 return 0; 14139} 14140_ACEOF 14141rm -f conftest.$ac_objext conftest$ac_exeext 14142if { (ac_try="$ac_link" 14143case "(($ac_try" in 14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14145 *) ac_try_echo=$ac_try;; 14146esac 14147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14148 (eval "$ac_link") 2>conftest.er1 14149 ac_status=$? 14150 grep -v '^ *+' conftest.er1 >conftest.err 14151 rm -f conftest.er1 14152 cat conftest.err >&5 14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14154 (exit $ac_status); } && 14155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14156 { (case "(($ac_try" in 14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14158 *) ac_try_echo=$ac_try;; 14159esac 14160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14161 (eval "$ac_try") 2>&5 14162 ac_status=$? 14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14164 (exit $ac_status); }; } && 14165 { ac_try='test -s conftest$ac_exeext' 14166 { (case "(($ac_try" in 14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14168 *) ac_try_echo=$ac_try;; 14169esac 14170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14171 (eval "$ac_try") 2>&5 14172 ac_status=$? 14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14174 (exit $ac_status); }; }; then 14175 eval "$as_ac_var=yes" 14176else 14177 echo "$as_me: failed program was:" >&5 14178sed 's/^/| /' conftest.$ac_ext >&5 14179 14180 eval "$as_ac_var=no" 14181fi 14182 14183rm -f core conftest.err conftest.$ac_objext \ 14184 conftest$ac_exeext conftest.$ac_ext 14185fi 14186ac_res=`eval echo '${'$as_ac_var'}'` 14187 { echo "$as_me:$LINENO: result: $ac_res" >&5 14188echo "${ECHO_T}$ac_res" >&6; } 14189if test `eval echo '${'$as_ac_var'}'` = yes; then 14190 cat >>confdefs.h <<_ACEOF 14191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14192_ACEOF 14193 14194fi 14195done 14196 14197 14198 14199 14200 14201 14202 14203for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit 14204do 14205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14206{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14209 echo $ECHO_N "(cached) $ECHO_C" >&6 14210else 14211 cat >conftest.$ac_ext <<_ACEOF 14212/* confdefs.h. */ 14213_ACEOF 14214cat confdefs.h >>conftest.$ac_ext 14215cat >>conftest.$ac_ext <<_ACEOF 14216/* end confdefs.h. */ 14217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14218 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14219#define $ac_func innocuous_$ac_func 14220 14221/* System header to define __stub macros and hopefully few prototypes, 14222 which can conflict with char $ac_func (); below. 14223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14224 <limits.h> exists even on freestanding compilers. */ 14225 14226#ifdef __STDC__ 14227# include <limits.h> 14228#else 14229# include <assert.h> 14230#endif 14231 14232#undef $ac_func 14233 14234/* Override any GCC internal prototype to avoid an error. 14235 Use char because int might match the return type of a GCC 14236 builtin and then its argument prototype would still apply. */ 14237#ifdef __cplusplus 14238extern "C" 14239#endif 14240char $ac_func (); 14241/* The GNU C library defines this for functions which it implements 14242 to always fail with ENOSYS. Some functions are actually named 14243 something starting with __ and the normal name is an alias. */ 14244#if defined __stub_$ac_func || defined __stub___$ac_func 14245choke me 14246#endif 14247 14248int 14249main () 14250{ 14251return $ac_func (); 14252 ; 14253 return 0; 14254} 14255_ACEOF 14256rm -f conftest.$ac_objext conftest$ac_exeext 14257if { (ac_try="$ac_link" 14258case "(($ac_try" in 14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14260 *) ac_try_echo=$ac_try;; 14261esac 14262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14263 (eval "$ac_link") 2>conftest.er1 14264 ac_status=$? 14265 grep -v '^ *+' conftest.er1 >conftest.err 14266 rm -f conftest.er1 14267 cat conftest.err >&5 14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14269 (exit $ac_status); } && 14270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14271 { (case "(($ac_try" in 14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14273 *) ac_try_echo=$ac_try;; 14274esac 14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14276 (eval "$ac_try") 2>&5 14277 ac_status=$? 14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14279 (exit $ac_status); }; } && 14280 { ac_try='test -s conftest$ac_exeext' 14281 { (case "(($ac_try" in 14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14283 *) ac_try_echo=$ac_try;; 14284esac 14285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14286 (eval "$ac_try") 2>&5 14287 ac_status=$? 14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14289 (exit $ac_status); }; }; then 14290 eval "$as_ac_var=yes" 14291else 14292 echo "$as_me: failed program was:" >&5 14293sed 's/^/| /' conftest.$ac_ext >&5 14294 14295 eval "$as_ac_var=no" 14296fi 14297 14298rm -f core conftest.err conftest.$ac_objext \ 14299 conftest$ac_exeext conftest.$ac_ext 14300fi 14301ac_res=`eval echo '${'$as_ac_var'}'` 14302 { echo "$as_me:$LINENO: result: $ac_res" >&5 14303echo "${ECHO_T}$ac_res" >&6; } 14304if test `eval echo '${'$as_ac_var'}'` = yes; then 14305 cat >>confdefs.h <<_ACEOF 14306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14307_ACEOF 14308 14309fi 14310done 14311 14312 14313 14314 14315for ac_func in strerror strerror_r setenv 14316do 14317as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14318{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14320if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14321 echo $ECHO_N "(cached) $ECHO_C" >&6 14322else 14323 cat >conftest.$ac_ext <<_ACEOF 14324/* confdefs.h. */ 14325_ACEOF 14326cat confdefs.h >>conftest.$ac_ext 14327cat >>conftest.$ac_ext <<_ACEOF 14328/* end confdefs.h. */ 14329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14330 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14331#define $ac_func innocuous_$ac_func 14332 14333/* System header to define __stub macros and hopefully few prototypes, 14334 which can conflict with char $ac_func (); below. 14335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14336 <limits.h> exists even on freestanding compilers. */ 14337 14338#ifdef __STDC__ 14339# include <limits.h> 14340#else 14341# include <assert.h> 14342#endif 14343 14344#undef $ac_func 14345 14346/* Override any GCC internal prototype to avoid an error. 14347 Use char because int might match the return type of a GCC 14348 builtin and then its argument prototype would still apply. */ 14349#ifdef __cplusplus 14350extern "C" 14351#endif 14352char $ac_func (); 14353/* The GNU C library defines this for functions which it implements 14354 to always fail with ENOSYS. Some functions are actually named 14355 something starting with __ and the normal name is an alias. */ 14356#if defined __stub_$ac_func || defined __stub___$ac_func 14357choke me 14358#endif 14359 14360int 14361main () 14362{ 14363return $ac_func (); 14364 ; 14365 return 0; 14366} 14367_ACEOF 14368rm -f conftest.$ac_objext conftest$ac_exeext 14369if { (ac_try="$ac_link" 14370case "(($ac_try" in 14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14372 *) ac_try_echo=$ac_try;; 14373esac 14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14375 (eval "$ac_link") 2>conftest.er1 14376 ac_status=$? 14377 grep -v '^ *+' conftest.er1 >conftest.err 14378 rm -f conftest.er1 14379 cat conftest.err >&5 14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14381 (exit $ac_status); } && 14382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14383 { (case "(($ac_try" in 14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14385 *) ac_try_echo=$ac_try;; 14386esac 14387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14388 (eval "$ac_try") 2>&5 14389 ac_status=$? 14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14391 (exit $ac_status); }; } && 14392 { ac_try='test -s conftest$ac_exeext' 14393 { (case "(($ac_try" in 14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14395 *) ac_try_echo=$ac_try;; 14396esac 14397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14398 (eval "$ac_try") 2>&5 14399 ac_status=$? 14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14401 (exit $ac_status); }; }; then 14402 eval "$as_ac_var=yes" 14403else 14404 echo "$as_me: failed program was:" >&5 14405sed 's/^/| /' conftest.$ac_ext >&5 14406 14407 eval "$as_ac_var=no" 14408fi 14409 14410rm -f core conftest.err conftest.$ac_objext \ 14411 conftest$ac_exeext conftest.$ac_ext 14412fi 14413ac_res=`eval echo '${'$as_ac_var'}'` 14414 { echo "$as_me:$LINENO: result: $ac_res" >&5 14415echo "${ECHO_T}$ac_res" >&6; } 14416if test `eval echo '${'$as_ac_var'}'` = yes; then 14417 cat >>confdefs.h <<_ACEOF 14418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14419_ACEOF 14420 14421fi 14422done 14423 14424 14425 14426 14427 14428for ac_func in strtoll strtoq sysconf malloc_zone_statistics 14429do 14430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14431{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14434 echo $ECHO_N "(cached) $ECHO_C" >&6 14435else 14436 cat >conftest.$ac_ext <<_ACEOF 14437/* confdefs.h. */ 14438_ACEOF 14439cat confdefs.h >>conftest.$ac_ext 14440cat >>conftest.$ac_ext <<_ACEOF 14441/* end confdefs.h. */ 14442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14443 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14444#define $ac_func innocuous_$ac_func 14445 14446/* System header to define __stub macros and hopefully few prototypes, 14447 which can conflict with char $ac_func (); below. 14448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14449 <limits.h> exists even on freestanding compilers. */ 14450 14451#ifdef __STDC__ 14452# include <limits.h> 14453#else 14454# include <assert.h> 14455#endif 14456 14457#undef $ac_func 14458 14459/* Override any GCC internal prototype to avoid an error. 14460 Use char because int might match the return type of a GCC 14461 builtin and then its argument prototype would still apply. */ 14462#ifdef __cplusplus 14463extern "C" 14464#endif 14465char $ac_func (); 14466/* The GNU C library defines this for functions which it implements 14467 to always fail with ENOSYS. Some functions are actually named 14468 something starting with __ and the normal name is an alias. */ 14469#if defined __stub_$ac_func || defined __stub___$ac_func 14470choke me 14471#endif 14472 14473int 14474main () 14475{ 14476return $ac_func (); 14477 ; 14478 return 0; 14479} 14480_ACEOF 14481rm -f conftest.$ac_objext conftest$ac_exeext 14482if { (ac_try="$ac_link" 14483case "(($ac_try" in 14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14485 *) ac_try_echo=$ac_try;; 14486esac 14487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14488 (eval "$ac_link") 2>conftest.er1 14489 ac_status=$? 14490 grep -v '^ *+' conftest.er1 >conftest.err 14491 rm -f conftest.er1 14492 cat conftest.err >&5 14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14494 (exit $ac_status); } && 14495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14496 { (case "(($ac_try" in 14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14498 *) ac_try_echo=$ac_try;; 14499esac 14500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14501 (eval "$ac_try") 2>&5 14502 ac_status=$? 14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14504 (exit $ac_status); }; } && 14505 { ac_try='test -s conftest$ac_exeext' 14506 { (case "(($ac_try" in 14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14508 *) ac_try_echo=$ac_try;; 14509esac 14510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14511 (eval "$ac_try") 2>&5 14512 ac_status=$? 14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14514 (exit $ac_status); }; }; then 14515 eval "$as_ac_var=yes" 14516else 14517 echo "$as_me: failed program was:" >&5 14518sed 's/^/| /' conftest.$ac_ext >&5 14519 14520 eval "$as_ac_var=no" 14521fi 14522 14523rm -f core conftest.err conftest.$ac_objext \ 14524 conftest$ac_exeext conftest.$ac_ext 14525fi 14526ac_res=`eval echo '${'$as_ac_var'}'` 14527 { echo "$as_me:$LINENO: result: $ac_res" >&5 14528echo "${ECHO_T}$ac_res" >&6; } 14529if test `eval echo '${'$as_ac_var'}'` = yes; then 14530 cat >>confdefs.h <<_ACEOF 14531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14532_ACEOF 14533 14534fi 14535done 14536 14537 14538 14539 14540for ac_func in setjmp longjmp writev 14541do 14542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14543{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14546 echo $ECHO_N "(cached) $ECHO_C" >&6 14547else 14548 cat >conftest.$ac_ext <<_ACEOF 14549/* confdefs.h. */ 14550_ACEOF 14551cat confdefs.h >>conftest.$ac_ext 14552cat >>conftest.$ac_ext <<_ACEOF 14553/* end confdefs.h. */ 14554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14555 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14556#define $ac_func innocuous_$ac_func 14557 14558/* System header to define __stub macros and hopefully few prototypes, 14559 which can conflict with char $ac_func (); below. 14560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14561 <limits.h> exists even on freestanding compilers. */ 14562 14563#ifdef __STDC__ 14564# include <limits.h> 14565#else 14566# include <assert.h> 14567#endif 14568 14569#undef $ac_func 14570 14571/* Override any GCC internal prototype to avoid an error. 14572 Use char because int might match the return type of a GCC 14573 builtin and then its argument prototype would still apply. */ 14574#ifdef __cplusplus 14575extern "C" 14576#endif 14577char $ac_func (); 14578/* The GNU C library defines this for functions which it implements 14579 to always fail with ENOSYS. Some functions are actually named 14580 something starting with __ and the normal name is an alias. */ 14581#if defined __stub_$ac_func || defined __stub___$ac_func 14582choke me 14583#endif 14584 14585int 14586main () 14587{ 14588return $ac_func (); 14589 ; 14590 return 0; 14591} 14592_ACEOF 14593rm -f conftest.$ac_objext conftest$ac_exeext 14594if { (ac_try="$ac_link" 14595case "(($ac_try" in 14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14597 *) ac_try_echo=$ac_try;; 14598esac 14599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14600 (eval "$ac_link") 2>conftest.er1 14601 ac_status=$? 14602 grep -v '^ *+' conftest.er1 >conftest.err 14603 rm -f conftest.er1 14604 cat conftest.err >&5 14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14606 (exit $ac_status); } && 14607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14608 { (case "(($ac_try" in 14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14610 *) ac_try_echo=$ac_try;; 14611esac 14612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14613 (eval "$ac_try") 2>&5 14614 ac_status=$? 14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14616 (exit $ac_status); }; } && 14617 { ac_try='test -s conftest$ac_exeext' 14618 { (case "(($ac_try" in 14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14620 *) ac_try_echo=$ac_try;; 14621esac 14622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14623 (eval "$ac_try") 2>&5 14624 ac_status=$? 14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14626 (exit $ac_status); }; }; then 14627 eval "$as_ac_var=yes" 14628else 14629 echo "$as_me: failed program was:" >&5 14630sed 's/^/| /' conftest.$ac_ext >&5 14631 14632 eval "$as_ac_var=no" 14633fi 14634 14635rm -f core conftest.err conftest.$ac_objext \ 14636 conftest$ac_exeext conftest.$ac_ext 14637fi 14638ac_res=`eval echo '${'$as_ac_var'}'` 14639 { echo "$as_me:$LINENO: result: $ac_res" >&5 14640echo "${ECHO_T}$ac_res" >&6; } 14641if test `eval echo '${'$as_ac_var'}'` = yes; then 14642 cat >>confdefs.h <<_ACEOF 14643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14644_ACEOF 14645 14646fi 14647done 14648 14649 14650 14651for ac_func in futimes futimens 14652do 14653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14654{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14656if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14657 echo $ECHO_N "(cached) $ECHO_C" >&6 14658else 14659 cat >conftest.$ac_ext <<_ACEOF 14660/* confdefs.h. */ 14661_ACEOF 14662cat confdefs.h >>conftest.$ac_ext 14663cat >>conftest.$ac_ext <<_ACEOF 14664/* end confdefs.h. */ 14665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14666 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14667#define $ac_func innocuous_$ac_func 14668 14669/* System header to define __stub macros and hopefully few prototypes, 14670 which can conflict with char $ac_func (); below. 14671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14672 <limits.h> exists even on freestanding compilers. */ 14673 14674#ifdef __STDC__ 14675# include <limits.h> 14676#else 14677# include <assert.h> 14678#endif 14679 14680#undef $ac_func 14681 14682/* Override any GCC internal prototype to avoid an error. 14683 Use char because int might match the return type of a GCC 14684 builtin and then its argument prototype would still apply. */ 14685#ifdef __cplusplus 14686extern "C" 14687#endif 14688char $ac_func (); 14689/* The GNU C library defines this for functions which it implements 14690 to always fail with ENOSYS. Some functions are actually named 14691 something starting with __ and the normal name is an alias. */ 14692#if defined __stub_$ac_func || defined __stub___$ac_func 14693choke me 14694#endif 14695 14696int 14697main () 14698{ 14699return $ac_func (); 14700 ; 14701 return 0; 14702} 14703_ACEOF 14704rm -f conftest.$ac_objext conftest$ac_exeext 14705if { (ac_try="$ac_link" 14706case "(($ac_try" in 14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14708 *) ac_try_echo=$ac_try;; 14709esac 14710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14711 (eval "$ac_link") 2>conftest.er1 14712 ac_status=$? 14713 grep -v '^ *+' conftest.er1 >conftest.err 14714 rm -f conftest.er1 14715 cat conftest.err >&5 14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14717 (exit $ac_status); } && 14718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14719 { (case "(($ac_try" in 14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14721 *) ac_try_echo=$ac_try;; 14722esac 14723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14724 (eval "$ac_try") 2>&5 14725 ac_status=$? 14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14727 (exit $ac_status); }; } && 14728 { ac_try='test -s conftest$ac_exeext' 14729 { (case "(($ac_try" in 14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14731 *) ac_try_echo=$ac_try;; 14732esac 14733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14734 (eval "$ac_try") 2>&5 14735 ac_status=$? 14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14737 (exit $ac_status); }; }; then 14738 eval "$as_ac_var=yes" 14739else 14740 echo "$as_me: failed program was:" >&5 14741sed 's/^/| /' conftest.$ac_ext >&5 14742 14743 eval "$as_ac_var=no" 14744fi 14745 14746rm -f core conftest.err conftest.$ac_objext \ 14747 conftest$ac_exeext conftest.$ac_ext 14748fi 14749ac_res=`eval echo '${'$as_ac_var'}'` 14750 { echo "$as_me:$LINENO: result: $ac_res" >&5 14751echo "${ECHO_T}$ac_res" >&6; } 14752if test `eval echo '${'$as_ac_var'}'` = yes; then 14753 cat >>confdefs.h <<_ACEOF 14754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14755_ACEOF 14756 14757fi 14758done 14759 14760{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 14761echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 14762if test "${llvm_cv_c_printf_a+set}" = set; then 14763 echo $ECHO_N "(cached) $ECHO_C" >&6 14764else 14765 ac_ext=c 14766ac_cpp='$CPP $CPPFLAGS' 14767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14769ac_compiler_gnu=$ac_cv_c_compiler_gnu 14770 14771 if test "$cross_compiling" = yes; then 14772 llvmac_cv_c_printf_a=no 14773else 14774 cat >conftest.$ac_ext <<_ACEOF 14775 14776 /* confdefs.h. */ 14777_ACEOF 14778cat confdefs.h >>conftest.$ac_ext 14779cat >>conftest.$ac_ext <<_ACEOF 14780/* end confdefs.h. */ 14781 14782#include <stdio.h> 14783#include <stdlib.h> 14784 14785int 14786main () 14787{ 14788 14789volatile double A, B; 14790char Buffer[100]; 14791A = 1; 14792A /= 10.0; 14793sprintf(Buffer, "%a", A); 14794B = atof(Buffer); 14795if (A != B) 14796 return (1); 14797if (A != 0x1.999999999999ap-4) 14798 return (1); 14799return (0); 14800 ; 14801 return 0; 14802} 14803_ACEOF 14804rm -f conftest$ac_exeext 14805if { (ac_try="$ac_link" 14806case "(($ac_try" in 14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14808 *) ac_try_echo=$ac_try;; 14809esac 14810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14811 (eval "$ac_link") 2>&5 14812 ac_status=$? 14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14815 { (case "(($ac_try" in 14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14817 *) ac_try_echo=$ac_try;; 14818esac 14819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14820 (eval "$ac_try") 2>&5 14821 ac_status=$? 14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14823 (exit $ac_status); }; }; then 14824 llvm_cv_c_printf_a=yes 14825else 14826 echo "$as_me: program exited with status $ac_status" >&5 14827echo "$as_me: failed program was:" >&5 14828sed 's/^/| /' conftest.$ac_ext >&5 14829 14830( exit $ac_status ) 14831llvmac_cv_c_printf_a=no 14832fi 14833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14834fi 14835 14836 14837 ac_ext=c 14838ac_cpp='$CPP $CPPFLAGS' 14839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14841ac_compiler_gnu=$ac_cv_c_compiler_gnu 14842 14843fi 14844{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 14845echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 14846 if test "$llvm_cv_c_printf_a" = "yes"; then 14847 14848cat >>confdefs.h <<\_ACEOF 14849#define HAVE_PRINTF_A 1 14850_ACEOF 14851 14852 fi 14853 14854 14855{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5 14856echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; } 14857if test "${ac_cv_have_decl_arc4random+set}" = set; then 14858 echo $ECHO_N "(cached) $ECHO_C" >&6 14859else 14860 cat >conftest.$ac_ext <<_ACEOF 14861/* confdefs.h. */ 14862_ACEOF 14863cat confdefs.h >>conftest.$ac_ext 14864cat >>conftest.$ac_ext <<_ACEOF 14865/* end confdefs.h. */ 14866$ac_includes_default 14867int 14868main () 14869{ 14870#ifndef arc4random 14871 char *p = (char *) arc4random; 14872 return !p; 14873#endif 14874 14875 ; 14876 return 0; 14877} 14878_ACEOF 14879rm -f conftest.$ac_objext 14880if { (ac_try="$ac_compile" 14881case "(($ac_try" in 14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14883 *) ac_try_echo=$ac_try;; 14884esac 14885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14886 (eval "$ac_compile") 2>conftest.er1 14887 ac_status=$? 14888 grep -v '^ *+' conftest.er1 >conftest.err 14889 rm -f conftest.er1 14890 cat conftest.err >&5 14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14892 (exit $ac_status); } && 14893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14894 { (case "(($ac_try" in 14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14896 *) ac_try_echo=$ac_try;; 14897esac 14898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14899 (eval "$ac_try") 2>&5 14900 ac_status=$? 14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14902 (exit $ac_status); }; } && 14903 { ac_try='test -s conftest.$ac_objext' 14904 { (case "(($ac_try" in 14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14906 *) ac_try_echo=$ac_try;; 14907esac 14908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14909 (eval "$ac_try") 2>&5 14910 ac_status=$? 14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14912 (exit $ac_status); }; }; then 14913 ac_cv_have_decl_arc4random=yes 14914else 14915 echo "$as_me: failed program was:" >&5 14916sed 's/^/| /' conftest.$ac_ext >&5 14917 14918 ac_cv_have_decl_arc4random=no 14919fi 14920 14921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14922fi 14923{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5 14924echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; } 14925if test $ac_cv_have_decl_arc4random = yes; then 14926 14927cat >>confdefs.h <<_ACEOF 14928#define HAVE_DECL_ARC4RANDOM 1 14929_ACEOF 14930 14931 14932else 14933 cat >>confdefs.h <<_ACEOF 14934#define HAVE_DECL_ARC4RANDOM 0 14935_ACEOF 14936 14937 14938fi 14939 14940 14941 14942{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 14943echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 14944if test "${ac_cv_have_decl_strerror_s+set}" = set; then 14945 echo $ECHO_N "(cached) $ECHO_C" >&6 14946else 14947 cat >conftest.$ac_ext <<_ACEOF 14948/* confdefs.h. */ 14949_ACEOF 14950cat confdefs.h >>conftest.$ac_ext 14951cat >>conftest.$ac_ext <<_ACEOF 14952/* end confdefs.h. */ 14953$ac_includes_default 14954int 14955main () 14956{ 14957#ifndef strerror_s 14958 char *p = (char *) strerror_s; 14959 return !p; 14960#endif 14961 14962 ; 14963 return 0; 14964} 14965_ACEOF 14966rm -f conftest.$ac_objext 14967if { (ac_try="$ac_compile" 14968case "(($ac_try" in 14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14970 *) ac_try_echo=$ac_try;; 14971esac 14972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14973 (eval "$ac_compile") 2>conftest.er1 14974 ac_status=$? 14975 grep -v '^ *+' conftest.er1 >conftest.err 14976 rm -f conftest.er1 14977 cat conftest.err >&5 14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14979 (exit $ac_status); } && 14980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14981 { (case "(($ac_try" in 14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14983 *) ac_try_echo=$ac_try;; 14984esac 14985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14986 (eval "$ac_try") 2>&5 14987 ac_status=$? 14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14989 (exit $ac_status); }; } && 14990 { ac_try='test -s conftest.$ac_objext' 14991 { (case "(($ac_try" in 14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14993 *) ac_try_echo=$ac_try;; 14994esac 14995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14996 (eval "$ac_try") 2>&5 14997 ac_status=$? 14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14999 (exit $ac_status); }; }; then 15000 ac_cv_have_decl_strerror_s=yes 15001else 15002 echo "$as_me: failed program was:" >&5 15003sed 's/^/| /' conftest.$ac_ext >&5 15004 15005 ac_cv_have_decl_strerror_s=no 15006fi 15007 15008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15009fi 15010{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 15011echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 15012if test $ac_cv_have_decl_strerror_s = yes; then 15013 15014cat >>confdefs.h <<_ACEOF 15015#define HAVE_DECL_STRERROR_S 1 15016_ACEOF 15017 15018 15019else 15020 cat >>confdefs.h <<_ACEOF 15021#define HAVE_DECL_STRERROR_S 0 15022_ACEOF 15023 15024 15025fi 15026 15027 15028 15029if test "$llvm_cv_os_type" = "MingW" ; then 15030 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 15031echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 15032if test "${ac_cv_lib_gcc__alloca+set}" = set; then 15033 echo $ECHO_N "(cached) $ECHO_C" >&6 15034else 15035 ac_check_lib_save_LIBS=$LIBS 15036LIBS="-lgcc $LIBS" 15037cat >conftest.$ac_ext <<_ACEOF 15038/* confdefs.h. */ 15039_ACEOF 15040cat confdefs.h >>conftest.$ac_ext 15041cat >>conftest.$ac_ext <<_ACEOF 15042/* end confdefs.h. */ 15043 15044/* Override any GCC internal prototype to avoid an error. 15045 Use char because int might match the return type of a GCC 15046 builtin and then its argument prototype would still apply. */ 15047#ifdef __cplusplus 15048extern "C" 15049#endif 15050char _alloca (); 15051int 15052main () 15053{ 15054return _alloca (); 15055 ; 15056 return 0; 15057} 15058_ACEOF 15059rm -f conftest.$ac_objext conftest$ac_exeext 15060if { (ac_try="$ac_link" 15061case "(($ac_try" in 15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15063 *) ac_try_echo=$ac_try;; 15064esac 15065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15066 (eval "$ac_link") 2>conftest.er1 15067 ac_status=$? 15068 grep -v '^ *+' conftest.er1 >conftest.err 15069 rm -f conftest.er1 15070 cat conftest.err >&5 15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15072 (exit $ac_status); } && 15073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15074 { (case "(($ac_try" in 15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15076 *) ac_try_echo=$ac_try;; 15077esac 15078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15079 (eval "$ac_try") 2>&5 15080 ac_status=$? 15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15082 (exit $ac_status); }; } && 15083 { ac_try='test -s conftest$ac_exeext' 15084 { (case "(($ac_try" in 15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15086 *) ac_try_echo=$ac_try;; 15087esac 15088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15089 (eval "$ac_try") 2>&5 15090 ac_status=$? 15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15092 (exit $ac_status); }; }; then 15093 ac_cv_lib_gcc__alloca=yes 15094else 15095 echo "$as_me: failed program was:" >&5 15096sed 's/^/| /' conftest.$ac_ext >&5 15097 15098 ac_cv_lib_gcc__alloca=no 15099fi 15100 15101rm -f core conftest.err conftest.$ac_objext \ 15102 conftest$ac_exeext conftest.$ac_ext 15103LIBS=$ac_check_lib_save_LIBS 15104fi 15105{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 15106echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 15107if test $ac_cv_lib_gcc__alloca = yes; then 15108 15109cat >>confdefs.h <<\_ACEOF 15110#define HAVE__ALLOCA 1 15111_ACEOF 15112 15113fi 15114 15115 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 15116echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 15117if test "${ac_cv_lib_gcc___alloca+set}" = set; then 15118 echo $ECHO_N "(cached) $ECHO_C" >&6 15119else 15120 ac_check_lib_save_LIBS=$LIBS 15121LIBS="-lgcc $LIBS" 15122cat >conftest.$ac_ext <<_ACEOF 15123/* confdefs.h. */ 15124_ACEOF 15125cat confdefs.h >>conftest.$ac_ext 15126cat >>conftest.$ac_ext <<_ACEOF 15127/* end confdefs.h. */ 15128 15129/* Override any GCC internal prototype to avoid an error. 15130 Use char because int might match the return type of a GCC 15131 builtin and then its argument prototype would still apply. */ 15132#ifdef __cplusplus 15133extern "C" 15134#endif 15135char __alloca (); 15136int 15137main () 15138{ 15139return __alloca (); 15140 ; 15141 return 0; 15142} 15143_ACEOF 15144rm -f conftest.$ac_objext conftest$ac_exeext 15145if { (ac_try="$ac_link" 15146case "(($ac_try" in 15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15148 *) ac_try_echo=$ac_try;; 15149esac 15150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15151 (eval "$ac_link") 2>conftest.er1 15152 ac_status=$? 15153 grep -v '^ *+' conftest.er1 >conftest.err 15154 rm -f conftest.er1 15155 cat conftest.err >&5 15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15157 (exit $ac_status); } && 15158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15159 { (case "(($ac_try" in 15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15161 *) ac_try_echo=$ac_try;; 15162esac 15163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15164 (eval "$ac_try") 2>&5 15165 ac_status=$? 15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15167 (exit $ac_status); }; } && 15168 { ac_try='test -s conftest$ac_exeext' 15169 { (case "(($ac_try" in 15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15171 *) ac_try_echo=$ac_try;; 15172esac 15173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15174 (eval "$ac_try") 2>&5 15175 ac_status=$? 15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15177 (exit $ac_status); }; }; then 15178 ac_cv_lib_gcc___alloca=yes 15179else 15180 echo "$as_me: failed program was:" >&5 15181sed 's/^/| /' conftest.$ac_ext >&5 15182 15183 ac_cv_lib_gcc___alloca=no 15184fi 15185 15186rm -f core conftest.err conftest.$ac_objext \ 15187 conftest$ac_exeext conftest.$ac_ext 15188LIBS=$ac_check_lib_save_LIBS 15189fi 15190{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 15191echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 15192if test $ac_cv_lib_gcc___alloca = yes; then 15193 15194cat >>confdefs.h <<\_ACEOF 15195#define HAVE___ALLOCA 1 15196_ACEOF 15197 15198fi 15199 15200 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 15201echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 15202if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 15203 echo $ECHO_N "(cached) $ECHO_C" >&6 15204else 15205 ac_check_lib_save_LIBS=$LIBS 15206LIBS="-lgcc $LIBS" 15207cat >conftest.$ac_ext <<_ACEOF 15208/* confdefs.h. */ 15209_ACEOF 15210cat confdefs.h >>conftest.$ac_ext 15211cat >>conftest.$ac_ext <<_ACEOF 15212/* end confdefs.h. */ 15213 15214/* Override any GCC internal prototype to avoid an error. 15215 Use char because int might match the return type of a GCC 15216 builtin and then its argument prototype would still apply. */ 15217#ifdef __cplusplus 15218extern "C" 15219#endif 15220char __chkstk (); 15221int 15222main () 15223{ 15224return __chkstk (); 15225 ; 15226 return 0; 15227} 15228_ACEOF 15229rm -f conftest.$ac_objext conftest$ac_exeext 15230if { (ac_try="$ac_link" 15231case "(($ac_try" in 15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15233 *) ac_try_echo=$ac_try;; 15234esac 15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15236 (eval "$ac_link") 2>conftest.er1 15237 ac_status=$? 15238 grep -v '^ *+' conftest.er1 >conftest.err 15239 rm -f conftest.er1 15240 cat conftest.err >&5 15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15242 (exit $ac_status); } && 15243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15244 { (case "(($ac_try" in 15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15246 *) ac_try_echo=$ac_try;; 15247esac 15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15249 (eval "$ac_try") 2>&5 15250 ac_status=$? 15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15252 (exit $ac_status); }; } && 15253 { ac_try='test -s conftest$ac_exeext' 15254 { (case "(($ac_try" in 15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15256 *) ac_try_echo=$ac_try;; 15257esac 15258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15259 (eval "$ac_try") 2>&5 15260 ac_status=$? 15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15262 (exit $ac_status); }; }; then 15263 ac_cv_lib_gcc___chkstk=yes 15264else 15265 echo "$as_me: failed program was:" >&5 15266sed 's/^/| /' conftest.$ac_ext >&5 15267 15268 ac_cv_lib_gcc___chkstk=no 15269fi 15270 15271rm -f core conftest.err conftest.$ac_objext \ 15272 conftest$ac_exeext conftest.$ac_ext 15273LIBS=$ac_check_lib_save_LIBS 15274fi 15275{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 15276echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 15277if test $ac_cv_lib_gcc___chkstk = yes; then 15278 15279cat >>confdefs.h <<\_ACEOF 15280#define HAVE___CHKSTK 1 15281_ACEOF 15282 15283fi 15284 15285 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5 15286echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; } 15287if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then 15288 echo $ECHO_N "(cached) $ECHO_C" >&6 15289else 15290 ac_check_lib_save_LIBS=$LIBS 15291LIBS="-lgcc $LIBS" 15292cat >conftest.$ac_ext <<_ACEOF 15293/* confdefs.h. */ 15294_ACEOF 15295cat confdefs.h >>conftest.$ac_ext 15296cat >>conftest.$ac_ext <<_ACEOF 15297/* end confdefs.h. */ 15298 15299/* Override any GCC internal prototype to avoid an error. 15300 Use char because int might match the return type of a GCC 15301 builtin and then its argument prototype would still apply. */ 15302#ifdef __cplusplus 15303extern "C" 15304#endif 15305char __chkstk_ms (); 15306int 15307main () 15308{ 15309return __chkstk_ms (); 15310 ; 15311 return 0; 15312} 15313_ACEOF 15314rm -f conftest.$ac_objext conftest$ac_exeext 15315if { (ac_try="$ac_link" 15316case "(($ac_try" in 15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15318 *) ac_try_echo=$ac_try;; 15319esac 15320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15321 (eval "$ac_link") 2>conftest.er1 15322 ac_status=$? 15323 grep -v '^ *+' conftest.er1 >conftest.err 15324 rm -f conftest.er1 15325 cat conftest.err >&5 15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15327 (exit $ac_status); } && 15328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15329 { (case "(($ac_try" in 15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15331 *) ac_try_echo=$ac_try;; 15332esac 15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15334 (eval "$ac_try") 2>&5 15335 ac_status=$? 15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15337 (exit $ac_status); }; } && 15338 { ac_try='test -s conftest$ac_exeext' 15339 { (case "(($ac_try" in 15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15341 *) ac_try_echo=$ac_try;; 15342esac 15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15344 (eval "$ac_try") 2>&5 15345 ac_status=$? 15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15347 (exit $ac_status); }; }; then 15348 ac_cv_lib_gcc___chkstk_ms=yes 15349else 15350 echo "$as_me: failed program was:" >&5 15351sed 's/^/| /' conftest.$ac_ext >&5 15352 15353 ac_cv_lib_gcc___chkstk_ms=no 15354fi 15355 15356rm -f core conftest.err conftest.$ac_objext \ 15357 conftest$ac_exeext conftest.$ac_ext 15358LIBS=$ac_check_lib_save_LIBS 15359fi 15360{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5 15361echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; } 15362if test $ac_cv_lib_gcc___chkstk_ms = yes; then 15363 15364cat >>confdefs.h <<\_ACEOF 15365#define HAVE___CHKSTK_MS 1 15366_ACEOF 15367 15368fi 15369 15370 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 15371echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 15372if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 15373 echo $ECHO_N "(cached) $ECHO_C" >&6 15374else 15375 ac_check_lib_save_LIBS=$LIBS 15376LIBS="-lgcc $LIBS" 15377cat >conftest.$ac_ext <<_ACEOF 15378/* confdefs.h. */ 15379_ACEOF 15380cat confdefs.h >>conftest.$ac_ext 15381cat >>conftest.$ac_ext <<_ACEOF 15382/* end confdefs.h. */ 15383 15384/* Override any GCC internal prototype to avoid an error. 15385 Use char because int might match the return type of a GCC 15386 builtin and then its argument prototype would still apply. */ 15387#ifdef __cplusplus 15388extern "C" 15389#endif 15390char ___chkstk (); 15391int 15392main () 15393{ 15394return ___chkstk (); 15395 ; 15396 return 0; 15397} 15398_ACEOF 15399rm -f conftest.$ac_objext conftest$ac_exeext 15400if { (ac_try="$ac_link" 15401case "(($ac_try" in 15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15403 *) ac_try_echo=$ac_try;; 15404esac 15405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15406 (eval "$ac_link") 2>conftest.er1 15407 ac_status=$? 15408 grep -v '^ *+' conftest.er1 >conftest.err 15409 rm -f conftest.er1 15410 cat conftest.err >&5 15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15412 (exit $ac_status); } && 15413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15414 { (case "(($ac_try" in 15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15416 *) ac_try_echo=$ac_try;; 15417esac 15418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15419 (eval "$ac_try") 2>&5 15420 ac_status=$? 15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15422 (exit $ac_status); }; } && 15423 { ac_try='test -s conftest$ac_exeext' 15424 { (case "(($ac_try" in 15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15426 *) ac_try_echo=$ac_try;; 15427esac 15428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15429 (eval "$ac_try") 2>&5 15430 ac_status=$? 15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15432 (exit $ac_status); }; }; then 15433 ac_cv_lib_gcc____chkstk=yes 15434else 15435 echo "$as_me: failed program was:" >&5 15436sed 's/^/| /' conftest.$ac_ext >&5 15437 15438 ac_cv_lib_gcc____chkstk=no 15439fi 15440 15441rm -f core conftest.err conftest.$ac_objext \ 15442 conftest$ac_exeext conftest.$ac_ext 15443LIBS=$ac_check_lib_save_LIBS 15444fi 15445{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 15446echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 15447if test $ac_cv_lib_gcc____chkstk = yes; then 15448 15449cat >>confdefs.h <<\_ACEOF 15450#define HAVE____CHKSTK 1 15451_ACEOF 15452 15453fi 15454 15455 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5 15456echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; } 15457if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then 15458 echo $ECHO_N "(cached) $ECHO_C" >&6 15459else 15460 ac_check_lib_save_LIBS=$LIBS 15461LIBS="-lgcc $LIBS" 15462cat >conftest.$ac_ext <<_ACEOF 15463/* confdefs.h. */ 15464_ACEOF 15465cat confdefs.h >>conftest.$ac_ext 15466cat >>conftest.$ac_ext <<_ACEOF 15467/* end confdefs.h. */ 15468 15469/* Override any GCC internal prototype to avoid an error. 15470 Use char because int might match the return type of a GCC 15471 builtin and then its argument prototype would still apply. */ 15472#ifdef __cplusplus 15473extern "C" 15474#endif 15475char ___chkstk_ms (); 15476int 15477main () 15478{ 15479return ___chkstk_ms (); 15480 ; 15481 return 0; 15482} 15483_ACEOF 15484rm -f conftest.$ac_objext conftest$ac_exeext 15485if { (ac_try="$ac_link" 15486case "(($ac_try" in 15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15488 *) ac_try_echo=$ac_try;; 15489esac 15490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15491 (eval "$ac_link") 2>conftest.er1 15492 ac_status=$? 15493 grep -v '^ *+' conftest.er1 >conftest.err 15494 rm -f conftest.er1 15495 cat conftest.err >&5 15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15497 (exit $ac_status); } && 15498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15499 { (case "(($ac_try" in 15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15501 *) ac_try_echo=$ac_try;; 15502esac 15503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15504 (eval "$ac_try") 2>&5 15505 ac_status=$? 15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15507 (exit $ac_status); }; } && 15508 { ac_try='test -s conftest$ac_exeext' 15509 { (case "(($ac_try" in 15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15511 *) ac_try_echo=$ac_try;; 15512esac 15513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15514 (eval "$ac_try") 2>&5 15515 ac_status=$? 15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15517 (exit $ac_status); }; }; then 15518 ac_cv_lib_gcc____chkstk_ms=yes 15519else 15520 echo "$as_me: failed program was:" >&5 15521sed 's/^/| /' conftest.$ac_ext >&5 15522 15523 ac_cv_lib_gcc____chkstk_ms=no 15524fi 15525 15526rm -f core conftest.err conftest.$ac_objext \ 15527 conftest$ac_exeext conftest.$ac_ext 15528LIBS=$ac_check_lib_save_LIBS 15529fi 15530{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5 15531echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; } 15532if test $ac_cv_lib_gcc____chkstk_ms = yes; then 15533 15534cat >>confdefs.h <<\_ACEOF 15535#define HAVE____CHKSTK_MS 1 15536_ACEOF 15537 15538fi 15539 15540 15541 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 15542echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 15543if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 15544 echo $ECHO_N "(cached) $ECHO_C" >&6 15545else 15546 ac_check_lib_save_LIBS=$LIBS 15547LIBS="-lgcc $LIBS" 15548cat >conftest.$ac_ext <<_ACEOF 15549/* confdefs.h. */ 15550_ACEOF 15551cat confdefs.h >>conftest.$ac_ext 15552cat >>conftest.$ac_ext <<_ACEOF 15553/* end confdefs.h. */ 15554 15555/* Override any GCC internal prototype to avoid an error. 15556 Use char because int might match the return type of a GCC 15557 builtin and then its argument prototype would still apply. */ 15558#ifdef __cplusplus 15559extern "C" 15560#endif 15561char __ashldi3 (); 15562int 15563main () 15564{ 15565return __ashldi3 (); 15566 ; 15567 return 0; 15568} 15569_ACEOF 15570rm -f conftest.$ac_objext conftest$ac_exeext 15571if { (ac_try="$ac_link" 15572case "(($ac_try" in 15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15574 *) ac_try_echo=$ac_try;; 15575esac 15576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15577 (eval "$ac_link") 2>conftest.er1 15578 ac_status=$? 15579 grep -v '^ *+' conftest.er1 >conftest.err 15580 rm -f conftest.er1 15581 cat conftest.err >&5 15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15583 (exit $ac_status); } && 15584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15585 { (case "(($ac_try" in 15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15587 *) ac_try_echo=$ac_try;; 15588esac 15589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15590 (eval "$ac_try") 2>&5 15591 ac_status=$? 15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15593 (exit $ac_status); }; } && 15594 { ac_try='test -s conftest$ac_exeext' 15595 { (case "(($ac_try" in 15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15597 *) ac_try_echo=$ac_try;; 15598esac 15599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15600 (eval "$ac_try") 2>&5 15601 ac_status=$? 15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15603 (exit $ac_status); }; }; then 15604 ac_cv_lib_gcc___ashldi3=yes 15605else 15606 echo "$as_me: failed program was:" >&5 15607sed 's/^/| /' conftest.$ac_ext >&5 15608 15609 ac_cv_lib_gcc___ashldi3=no 15610fi 15611 15612rm -f core conftest.err conftest.$ac_objext \ 15613 conftest$ac_exeext conftest.$ac_ext 15614LIBS=$ac_check_lib_save_LIBS 15615fi 15616{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 15617echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 15618if test $ac_cv_lib_gcc___ashldi3 = yes; then 15619 15620cat >>confdefs.h <<\_ACEOF 15621#define HAVE___ASHLDI3 1 15622_ACEOF 15623 15624fi 15625 15626 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 15627echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 15628if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 15629 echo $ECHO_N "(cached) $ECHO_C" >&6 15630else 15631 ac_check_lib_save_LIBS=$LIBS 15632LIBS="-lgcc $LIBS" 15633cat >conftest.$ac_ext <<_ACEOF 15634/* confdefs.h. */ 15635_ACEOF 15636cat confdefs.h >>conftest.$ac_ext 15637cat >>conftest.$ac_ext <<_ACEOF 15638/* end confdefs.h. */ 15639 15640/* Override any GCC internal prototype to avoid an error. 15641 Use char because int might match the return type of a GCC 15642 builtin and then its argument prototype would still apply. */ 15643#ifdef __cplusplus 15644extern "C" 15645#endif 15646char __ashrdi3 (); 15647int 15648main () 15649{ 15650return __ashrdi3 (); 15651 ; 15652 return 0; 15653} 15654_ACEOF 15655rm -f conftest.$ac_objext conftest$ac_exeext 15656if { (ac_try="$ac_link" 15657case "(($ac_try" in 15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15659 *) ac_try_echo=$ac_try;; 15660esac 15661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15662 (eval "$ac_link") 2>conftest.er1 15663 ac_status=$? 15664 grep -v '^ *+' conftest.er1 >conftest.err 15665 rm -f conftest.er1 15666 cat conftest.err >&5 15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15668 (exit $ac_status); } && 15669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15670 { (case "(($ac_try" in 15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15672 *) ac_try_echo=$ac_try;; 15673esac 15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15675 (eval "$ac_try") 2>&5 15676 ac_status=$? 15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15678 (exit $ac_status); }; } && 15679 { ac_try='test -s conftest$ac_exeext' 15680 { (case "(($ac_try" in 15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15682 *) ac_try_echo=$ac_try;; 15683esac 15684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15685 (eval "$ac_try") 2>&5 15686 ac_status=$? 15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15688 (exit $ac_status); }; }; then 15689 ac_cv_lib_gcc___ashrdi3=yes 15690else 15691 echo "$as_me: failed program was:" >&5 15692sed 's/^/| /' conftest.$ac_ext >&5 15693 15694 ac_cv_lib_gcc___ashrdi3=no 15695fi 15696 15697rm -f core conftest.err conftest.$ac_objext \ 15698 conftest$ac_exeext conftest.$ac_ext 15699LIBS=$ac_check_lib_save_LIBS 15700fi 15701{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 15702echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 15703if test $ac_cv_lib_gcc___ashrdi3 = yes; then 15704 15705cat >>confdefs.h <<\_ACEOF 15706#define HAVE___ASHRDI3 1 15707_ACEOF 15708 15709fi 15710 15711 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 15712echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 15713if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 15714 echo $ECHO_N "(cached) $ECHO_C" >&6 15715else 15716 ac_check_lib_save_LIBS=$LIBS 15717LIBS="-lgcc $LIBS" 15718cat >conftest.$ac_ext <<_ACEOF 15719/* confdefs.h. */ 15720_ACEOF 15721cat confdefs.h >>conftest.$ac_ext 15722cat >>conftest.$ac_ext <<_ACEOF 15723/* end confdefs.h. */ 15724 15725/* Override any GCC internal prototype to avoid an error. 15726 Use char because int might match the return type of a GCC 15727 builtin and then its argument prototype would still apply. */ 15728#ifdef __cplusplus 15729extern "C" 15730#endif 15731char __divdi3 (); 15732int 15733main () 15734{ 15735return __divdi3 (); 15736 ; 15737 return 0; 15738} 15739_ACEOF 15740rm -f conftest.$ac_objext conftest$ac_exeext 15741if { (ac_try="$ac_link" 15742case "(($ac_try" in 15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15744 *) ac_try_echo=$ac_try;; 15745esac 15746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15747 (eval "$ac_link") 2>conftest.er1 15748 ac_status=$? 15749 grep -v '^ *+' conftest.er1 >conftest.err 15750 rm -f conftest.er1 15751 cat conftest.err >&5 15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15753 (exit $ac_status); } && 15754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15755 { (case "(($ac_try" in 15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15757 *) ac_try_echo=$ac_try;; 15758esac 15759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15760 (eval "$ac_try") 2>&5 15761 ac_status=$? 15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15763 (exit $ac_status); }; } && 15764 { ac_try='test -s conftest$ac_exeext' 15765 { (case "(($ac_try" in 15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15767 *) ac_try_echo=$ac_try;; 15768esac 15769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15770 (eval "$ac_try") 2>&5 15771 ac_status=$? 15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15773 (exit $ac_status); }; }; then 15774 ac_cv_lib_gcc___divdi3=yes 15775else 15776 echo "$as_me: failed program was:" >&5 15777sed 's/^/| /' conftest.$ac_ext >&5 15778 15779 ac_cv_lib_gcc___divdi3=no 15780fi 15781 15782rm -f core conftest.err conftest.$ac_objext \ 15783 conftest$ac_exeext conftest.$ac_ext 15784LIBS=$ac_check_lib_save_LIBS 15785fi 15786{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 15787echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 15788if test $ac_cv_lib_gcc___divdi3 = yes; then 15789 15790cat >>confdefs.h <<\_ACEOF 15791#define HAVE___DIVDI3 1 15792_ACEOF 15793 15794fi 15795 15796 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 15797echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 15798if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 15799 echo $ECHO_N "(cached) $ECHO_C" >&6 15800else 15801 ac_check_lib_save_LIBS=$LIBS 15802LIBS="-lgcc $LIBS" 15803cat >conftest.$ac_ext <<_ACEOF 15804/* confdefs.h. */ 15805_ACEOF 15806cat confdefs.h >>conftest.$ac_ext 15807cat >>conftest.$ac_ext <<_ACEOF 15808/* end confdefs.h. */ 15809 15810/* Override any GCC internal prototype to avoid an error. 15811 Use char because int might match the return type of a GCC 15812 builtin and then its argument prototype would still apply. */ 15813#ifdef __cplusplus 15814extern "C" 15815#endif 15816char __fixdfdi (); 15817int 15818main () 15819{ 15820return __fixdfdi (); 15821 ; 15822 return 0; 15823} 15824_ACEOF 15825rm -f conftest.$ac_objext conftest$ac_exeext 15826if { (ac_try="$ac_link" 15827case "(($ac_try" in 15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15829 *) ac_try_echo=$ac_try;; 15830esac 15831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15832 (eval "$ac_link") 2>conftest.er1 15833 ac_status=$? 15834 grep -v '^ *+' conftest.er1 >conftest.err 15835 rm -f conftest.er1 15836 cat conftest.err >&5 15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15838 (exit $ac_status); } && 15839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15840 { (case "(($ac_try" in 15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15842 *) ac_try_echo=$ac_try;; 15843esac 15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15845 (eval "$ac_try") 2>&5 15846 ac_status=$? 15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15848 (exit $ac_status); }; } && 15849 { ac_try='test -s conftest$ac_exeext' 15850 { (case "(($ac_try" in 15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15852 *) ac_try_echo=$ac_try;; 15853esac 15854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15855 (eval "$ac_try") 2>&5 15856 ac_status=$? 15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15858 (exit $ac_status); }; }; then 15859 ac_cv_lib_gcc___fixdfdi=yes 15860else 15861 echo "$as_me: failed program was:" >&5 15862sed 's/^/| /' conftest.$ac_ext >&5 15863 15864 ac_cv_lib_gcc___fixdfdi=no 15865fi 15866 15867rm -f core conftest.err conftest.$ac_objext \ 15868 conftest$ac_exeext conftest.$ac_ext 15869LIBS=$ac_check_lib_save_LIBS 15870fi 15871{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 15872echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 15873if test $ac_cv_lib_gcc___fixdfdi = yes; then 15874 15875cat >>confdefs.h <<\_ACEOF 15876#define HAVE___FIXDFDI 1 15877_ACEOF 15878 15879fi 15880 15881 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 15882echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 15883if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 15884 echo $ECHO_N "(cached) $ECHO_C" >&6 15885else 15886 ac_check_lib_save_LIBS=$LIBS 15887LIBS="-lgcc $LIBS" 15888cat >conftest.$ac_ext <<_ACEOF 15889/* confdefs.h. */ 15890_ACEOF 15891cat confdefs.h >>conftest.$ac_ext 15892cat >>conftest.$ac_ext <<_ACEOF 15893/* end confdefs.h. */ 15894 15895/* Override any GCC internal prototype to avoid an error. 15896 Use char because int might match the return type of a GCC 15897 builtin and then its argument prototype would still apply. */ 15898#ifdef __cplusplus 15899extern "C" 15900#endif 15901char __fixsfdi (); 15902int 15903main () 15904{ 15905return __fixsfdi (); 15906 ; 15907 return 0; 15908} 15909_ACEOF 15910rm -f conftest.$ac_objext conftest$ac_exeext 15911if { (ac_try="$ac_link" 15912case "(($ac_try" in 15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15914 *) ac_try_echo=$ac_try;; 15915esac 15916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15917 (eval "$ac_link") 2>conftest.er1 15918 ac_status=$? 15919 grep -v '^ *+' conftest.er1 >conftest.err 15920 rm -f conftest.er1 15921 cat conftest.err >&5 15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15923 (exit $ac_status); } && 15924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15925 { (case "(($ac_try" in 15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15927 *) ac_try_echo=$ac_try;; 15928esac 15929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15930 (eval "$ac_try") 2>&5 15931 ac_status=$? 15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15933 (exit $ac_status); }; } && 15934 { ac_try='test -s conftest$ac_exeext' 15935 { (case "(($ac_try" in 15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15937 *) ac_try_echo=$ac_try;; 15938esac 15939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15940 (eval "$ac_try") 2>&5 15941 ac_status=$? 15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15943 (exit $ac_status); }; }; then 15944 ac_cv_lib_gcc___fixsfdi=yes 15945else 15946 echo "$as_me: failed program was:" >&5 15947sed 's/^/| /' conftest.$ac_ext >&5 15948 15949 ac_cv_lib_gcc___fixsfdi=no 15950fi 15951 15952rm -f core conftest.err conftest.$ac_objext \ 15953 conftest$ac_exeext conftest.$ac_ext 15954LIBS=$ac_check_lib_save_LIBS 15955fi 15956{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 15957echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 15958if test $ac_cv_lib_gcc___fixsfdi = yes; then 15959 15960cat >>confdefs.h <<\_ACEOF 15961#define HAVE___FIXSFDI 1 15962_ACEOF 15963 15964fi 15965 15966 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 15967echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 15968if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 15969 echo $ECHO_N "(cached) $ECHO_C" >&6 15970else 15971 ac_check_lib_save_LIBS=$LIBS 15972LIBS="-lgcc $LIBS" 15973cat >conftest.$ac_ext <<_ACEOF 15974/* confdefs.h. */ 15975_ACEOF 15976cat confdefs.h >>conftest.$ac_ext 15977cat >>conftest.$ac_ext <<_ACEOF 15978/* end confdefs.h. */ 15979 15980/* Override any GCC internal prototype to avoid an error. 15981 Use char because int might match the return type of a GCC 15982 builtin and then its argument prototype would still apply. */ 15983#ifdef __cplusplus 15984extern "C" 15985#endif 15986char __floatdidf (); 15987int 15988main () 15989{ 15990return __floatdidf (); 15991 ; 15992 return 0; 15993} 15994_ACEOF 15995rm -f conftest.$ac_objext conftest$ac_exeext 15996if { (ac_try="$ac_link" 15997case "(($ac_try" in 15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15999 *) ac_try_echo=$ac_try;; 16000esac 16001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16002 (eval "$ac_link") 2>conftest.er1 16003 ac_status=$? 16004 grep -v '^ *+' conftest.er1 >conftest.err 16005 rm -f conftest.er1 16006 cat conftest.err >&5 16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16008 (exit $ac_status); } && 16009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16010 { (case "(($ac_try" in 16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16012 *) ac_try_echo=$ac_try;; 16013esac 16014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16015 (eval "$ac_try") 2>&5 16016 ac_status=$? 16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16018 (exit $ac_status); }; } && 16019 { ac_try='test -s conftest$ac_exeext' 16020 { (case "(($ac_try" in 16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16022 *) ac_try_echo=$ac_try;; 16023esac 16024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16025 (eval "$ac_try") 2>&5 16026 ac_status=$? 16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16028 (exit $ac_status); }; }; then 16029 ac_cv_lib_gcc___floatdidf=yes 16030else 16031 echo "$as_me: failed program was:" >&5 16032sed 's/^/| /' conftest.$ac_ext >&5 16033 16034 ac_cv_lib_gcc___floatdidf=no 16035fi 16036 16037rm -f core conftest.err conftest.$ac_objext \ 16038 conftest$ac_exeext conftest.$ac_ext 16039LIBS=$ac_check_lib_save_LIBS 16040fi 16041{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 16042echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 16043if test $ac_cv_lib_gcc___floatdidf = yes; then 16044 16045cat >>confdefs.h <<\_ACEOF 16046#define HAVE___FLOATDIDF 1 16047_ACEOF 16048 16049fi 16050 16051 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 16052echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 16053if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 16054 echo $ECHO_N "(cached) $ECHO_C" >&6 16055else 16056 ac_check_lib_save_LIBS=$LIBS 16057LIBS="-lgcc $LIBS" 16058cat >conftest.$ac_ext <<_ACEOF 16059/* confdefs.h. */ 16060_ACEOF 16061cat confdefs.h >>conftest.$ac_ext 16062cat >>conftest.$ac_ext <<_ACEOF 16063/* end confdefs.h. */ 16064 16065/* Override any GCC internal prototype to avoid an error. 16066 Use char because int might match the return type of a GCC 16067 builtin and then its argument prototype would still apply. */ 16068#ifdef __cplusplus 16069extern "C" 16070#endif 16071char __lshrdi3 (); 16072int 16073main () 16074{ 16075return __lshrdi3 (); 16076 ; 16077 return 0; 16078} 16079_ACEOF 16080rm -f conftest.$ac_objext conftest$ac_exeext 16081if { (ac_try="$ac_link" 16082case "(($ac_try" in 16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16084 *) ac_try_echo=$ac_try;; 16085esac 16086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16087 (eval "$ac_link") 2>conftest.er1 16088 ac_status=$? 16089 grep -v '^ *+' conftest.er1 >conftest.err 16090 rm -f conftest.er1 16091 cat conftest.err >&5 16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16093 (exit $ac_status); } && 16094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16095 { (case "(($ac_try" in 16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16097 *) ac_try_echo=$ac_try;; 16098esac 16099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16100 (eval "$ac_try") 2>&5 16101 ac_status=$? 16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16103 (exit $ac_status); }; } && 16104 { ac_try='test -s conftest$ac_exeext' 16105 { (case "(($ac_try" in 16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16107 *) ac_try_echo=$ac_try;; 16108esac 16109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16110 (eval "$ac_try") 2>&5 16111 ac_status=$? 16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16113 (exit $ac_status); }; }; then 16114 ac_cv_lib_gcc___lshrdi3=yes 16115else 16116 echo "$as_me: failed program was:" >&5 16117sed 's/^/| /' conftest.$ac_ext >&5 16118 16119 ac_cv_lib_gcc___lshrdi3=no 16120fi 16121 16122rm -f core conftest.err conftest.$ac_objext \ 16123 conftest$ac_exeext conftest.$ac_ext 16124LIBS=$ac_check_lib_save_LIBS 16125fi 16126{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 16127echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 16128if test $ac_cv_lib_gcc___lshrdi3 = yes; then 16129 16130cat >>confdefs.h <<\_ACEOF 16131#define HAVE___LSHRDI3 1 16132_ACEOF 16133 16134fi 16135 16136 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 16137echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 16138if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 16139 echo $ECHO_N "(cached) $ECHO_C" >&6 16140else 16141 ac_check_lib_save_LIBS=$LIBS 16142LIBS="-lgcc $LIBS" 16143cat >conftest.$ac_ext <<_ACEOF 16144/* confdefs.h. */ 16145_ACEOF 16146cat confdefs.h >>conftest.$ac_ext 16147cat >>conftest.$ac_ext <<_ACEOF 16148/* end confdefs.h. */ 16149 16150/* Override any GCC internal prototype to avoid an error. 16151 Use char because int might match the return type of a GCC 16152 builtin and then its argument prototype would still apply. */ 16153#ifdef __cplusplus 16154extern "C" 16155#endif 16156char __moddi3 (); 16157int 16158main () 16159{ 16160return __moddi3 (); 16161 ; 16162 return 0; 16163} 16164_ACEOF 16165rm -f conftest.$ac_objext conftest$ac_exeext 16166if { (ac_try="$ac_link" 16167case "(($ac_try" in 16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16169 *) ac_try_echo=$ac_try;; 16170esac 16171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16172 (eval "$ac_link") 2>conftest.er1 16173 ac_status=$? 16174 grep -v '^ *+' conftest.er1 >conftest.err 16175 rm -f conftest.er1 16176 cat conftest.err >&5 16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16178 (exit $ac_status); } && 16179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16180 { (case "(($ac_try" in 16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16182 *) ac_try_echo=$ac_try;; 16183esac 16184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16185 (eval "$ac_try") 2>&5 16186 ac_status=$? 16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16188 (exit $ac_status); }; } && 16189 { ac_try='test -s conftest$ac_exeext' 16190 { (case "(($ac_try" in 16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16192 *) ac_try_echo=$ac_try;; 16193esac 16194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16195 (eval "$ac_try") 2>&5 16196 ac_status=$? 16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16198 (exit $ac_status); }; }; then 16199 ac_cv_lib_gcc___moddi3=yes 16200else 16201 echo "$as_me: failed program was:" >&5 16202sed 's/^/| /' conftest.$ac_ext >&5 16203 16204 ac_cv_lib_gcc___moddi3=no 16205fi 16206 16207rm -f core conftest.err conftest.$ac_objext \ 16208 conftest$ac_exeext conftest.$ac_ext 16209LIBS=$ac_check_lib_save_LIBS 16210fi 16211{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 16212echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 16213if test $ac_cv_lib_gcc___moddi3 = yes; then 16214 16215cat >>confdefs.h <<\_ACEOF 16216#define HAVE___MODDI3 1 16217_ACEOF 16218 16219fi 16220 16221 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 16222echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 16223if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 16224 echo $ECHO_N "(cached) $ECHO_C" >&6 16225else 16226 ac_check_lib_save_LIBS=$LIBS 16227LIBS="-lgcc $LIBS" 16228cat >conftest.$ac_ext <<_ACEOF 16229/* confdefs.h. */ 16230_ACEOF 16231cat confdefs.h >>conftest.$ac_ext 16232cat >>conftest.$ac_ext <<_ACEOF 16233/* end confdefs.h. */ 16234 16235/* Override any GCC internal prototype to avoid an error. 16236 Use char because int might match the return type of a GCC 16237 builtin and then its argument prototype would still apply. */ 16238#ifdef __cplusplus 16239extern "C" 16240#endif 16241char __udivdi3 (); 16242int 16243main () 16244{ 16245return __udivdi3 (); 16246 ; 16247 return 0; 16248} 16249_ACEOF 16250rm -f conftest.$ac_objext conftest$ac_exeext 16251if { (ac_try="$ac_link" 16252case "(($ac_try" in 16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16254 *) ac_try_echo=$ac_try;; 16255esac 16256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16257 (eval "$ac_link") 2>conftest.er1 16258 ac_status=$? 16259 grep -v '^ *+' conftest.er1 >conftest.err 16260 rm -f conftest.er1 16261 cat conftest.err >&5 16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16263 (exit $ac_status); } && 16264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16265 { (case "(($ac_try" in 16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16267 *) ac_try_echo=$ac_try;; 16268esac 16269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16270 (eval "$ac_try") 2>&5 16271 ac_status=$? 16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16273 (exit $ac_status); }; } && 16274 { ac_try='test -s conftest$ac_exeext' 16275 { (case "(($ac_try" in 16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16277 *) ac_try_echo=$ac_try;; 16278esac 16279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16280 (eval "$ac_try") 2>&5 16281 ac_status=$? 16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16283 (exit $ac_status); }; }; then 16284 ac_cv_lib_gcc___udivdi3=yes 16285else 16286 echo "$as_me: failed program was:" >&5 16287sed 's/^/| /' conftest.$ac_ext >&5 16288 16289 ac_cv_lib_gcc___udivdi3=no 16290fi 16291 16292rm -f core conftest.err conftest.$ac_objext \ 16293 conftest$ac_exeext conftest.$ac_ext 16294LIBS=$ac_check_lib_save_LIBS 16295fi 16296{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 16297echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 16298if test $ac_cv_lib_gcc___udivdi3 = yes; then 16299 16300cat >>confdefs.h <<\_ACEOF 16301#define HAVE___UDIVDI3 1 16302_ACEOF 16303 16304fi 16305 16306 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 16307echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 16308if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 16309 echo $ECHO_N "(cached) $ECHO_C" >&6 16310else 16311 ac_check_lib_save_LIBS=$LIBS 16312LIBS="-lgcc $LIBS" 16313cat >conftest.$ac_ext <<_ACEOF 16314/* confdefs.h. */ 16315_ACEOF 16316cat confdefs.h >>conftest.$ac_ext 16317cat >>conftest.$ac_ext <<_ACEOF 16318/* end confdefs.h. */ 16319 16320/* Override any GCC internal prototype to avoid an error. 16321 Use char because int might match the return type of a GCC 16322 builtin and then its argument prototype would still apply. */ 16323#ifdef __cplusplus 16324extern "C" 16325#endif 16326char __umoddi3 (); 16327int 16328main () 16329{ 16330return __umoddi3 (); 16331 ; 16332 return 0; 16333} 16334_ACEOF 16335rm -f conftest.$ac_objext conftest$ac_exeext 16336if { (ac_try="$ac_link" 16337case "(($ac_try" in 16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16339 *) ac_try_echo=$ac_try;; 16340esac 16341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16342 (eval "$ac_link") 2>conftest.er1 16343 ac_status=$? 16344 grep -v '^ *+' conftest.er1 >conftest.err 16345 rm -f conftest.er1 16346 cat conftest.err >&5 16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16348 (exit $ac_status); } && 16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16350 { (case "(($ac_try" in 16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16352 *) ac_try_echo=$ac_try;; 16353esac 16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16355 (eval "$ac_try") 2>&5 16356 ac_status=$? 16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16358 (exit $ac_status); }; } && 16359 { ac_try='test -s conftest$ac_exeext' 16360 { (case "(($ac_try" in 16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16362 *) ac_try_echo=$ac_try;; 16363esac 16364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16365 (eval "$ac_try") 2>&5 16366 ac_status=$? 16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16368 (exit $ac_status); }; }; then 16369 ac_cv_lib_gcc___umoddi3=yes 16370else 16371 echo "$as_me: failed program was:" >&5 16372sed 's/^/| /' conftest.$ac_ext >&5 16373 16374 ac_cv_lib_gcc___umoddi3=no 16375fi 16376 16377rm -f core conftest.err conftest.$ac_objext \ 16378 conftest$ac_exeext conftest.$ac_ext 16379LIBS=$ac_check_lib_save_LIBS 16380fi 16381{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 16382echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 16383if test $ac_cv_lib_gcc___umoddi3 = yes; then 16384 16385cat >>confdefs.h <<\_ACEOF 16386#define HAVE___UMODDI3 1 16387_ACEOF 16388 16389fi 16390 16391 16392 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 16393echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 16394if test "${ac_cv_lib_gcc___main+set}" = set; then 16395 echo $ECHO_N "(cached) $ECHO_C" >&6 16396else 16397 ac_check_lib_save_LIBS=$LIBS 16398LIBS="-lgcc $LIBS" 16399cat >conftest.$ac_ext <<_ACEOF 16400/* confdefs.h. */ 16401_ACEOF 16402cat confdefs.h >>conftest.$ac_ext 16403cat >>conftest.$ac_ext <<_ACEOF 16404/* end confdefs.h. */ 16405 16406/* Override any GCC internal prototype to avoid an error. 16407 Use char because int might match the return type of a GCC 16408 builtin and then its argument prototype would still apply. */ 16409#ifdef __cplusplus 16410extern "C" 16411#endif 16412char __main (); 16413int 16414main () 16415{ 16416return __main (); 16417 ; 16418 return 0; 16419} 16420_ACEOF 16421rm -f conftest.$ac_objext conftest$ac_exeext 16422if { (ac_try="$ac_link" 16423case "(($ac_try" in 16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16425 *) ac_try_echo=$ac_try;; 16426esac 16427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16428 (eval "$ac_link") 2>conftest.er1 16429 ac_status=$? 16430 grep -v '^ *+' conftest.er1 >conftest.err 16431 rm -f conftest.er1 16432 cat conftest.err >&5 16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16434 (exit $ac_status); } && 16435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16436 { (case "(($ac_try" in 16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16438 *) ac_try_echo=$ac_try;; 16439esac 16440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16441 (eval "$ac_try") 2>&5 16442 ac_status=$? 16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16444 (exit $ac_status); }; } && 16445 { ac_try='test -s conftest$ac_exeext' 16446 { (case "(($ac_try" in 16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16448 *) ac_try_echo=$ac_try;; 16449esac 16450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16451 (eval "$ac_try") 2>&5 16452 ac_status=$? 16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16454 (exit $ac_status); }; }; then 16455 ac_cv_lib_gcc___main=yes 16456else 16457 echo "$as_me: failed program was:" >&5 16458sed 's/^/| /' conftest.$ac_ext >&5 16459 16460 ac_cv_lib_gcc___main=no 16461fi 16462 16463rm -f core conftest.err conftest.$ac_objext \ 16464 conftest$ac_exeext conftest.$ac_ext 16465LIBS=$ac_check_lib_save_LIBS 16466fi 16467{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 16468echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 16469if test $ac_cv_lib_gcc___main = yes; then 16470 16471cat >>confdefs.h <<\_ACEOF 16472#define HAVE___MAIN 1 16473_ACEOF 16474 16475fi 16476 16477 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 16478echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 16479if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 16480 echo $ECHO_N "(cached) $ECHO_C" >&6 16481else 16482 ac_check_lib_save_LIBS=$LIBS 16483LIBS="-lgcc $LIBS" 16484cat >conftest.$ac_ext <<_ACEOF 16485/* confdefs.h. */ 16486_ACEOF 16487cat confdefs.h >>conftest.$ac_ext 16488cat >>conftest.$ac_ext <<_ACEOF 16489/* end confdefs.h. */ 16490 16491/* Override any GCC internal prototype to avoid an error. 16492 Use char because int might match the return type of a GCC 16493 builtin and then its argument prototype would still apply. */ 16494#ifdef __cplusplus 16495extern "C" 16496#endif 16497char __cmpdi2 (); 16498int 16499main () 16500{ 16501return __cmpdi2 (); 16502 ; 16503 return 0; 16504} 16505_ACEOF 16506rm -f conftest.$ac_objext conftest$ac_exeext 16507if { (ac_try="$ac_link" 16508case "(($ac_try" in 16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16510 *) ac_try_echo=$ac_try;; 16511esac 16512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16513 (eval "$ac_link") 2>conftest.er1 16514 ac_status=$? 16515 grep -v '^ *+' conftest.er1 >conftest.err 16516 rm -f conftest.er1 16517 cat conftest.err >&5 16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16519 (exit $ac_status); } && 16520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16521 { (case "(($ac_try" in 16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16523 *) ac_try_echo=$ac_try;; 16524esac 16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16526 (eval "$ac_try") 2>&5 16527 ac_status=$? 16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16529 (exit $ac_status); }; } && 16530 { ac_try='test -s conftest$ac_exeext' 16531 { (case "(($ac_try" in 16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16533 *) ac_try_echo=$ac_try;; 16534esac 16535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16536 (eval "$ac_try") 2>&5 16537 ac_status=$? 16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16539 (exit $ac_status); }; }; then 16540 ac_cv_lib_gcc___cmpdi2=yes 16541else 16542 echo "$as_me: failed program was:" >&5 16543sed 's/^/| /' conftest.$ac_ext >&5 16544 16545 ac_cv_lib_gcc___cmpdi2=no 16546fi 16547 16548rm -f core conftest.err conftest.$ac_objext \ 16549 conftest$ac_exeext conftest.$ac_ext 16550LIBS=$ac_check_lib_save_LIBS 16551fi 16552{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 16553echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 16554if test $ac_cv_lib_gcc___cmpdi2 = yes; then 16555 16556cat >>confdefs.h <<\_ACEOF 16557#define HAVE___CMPDI2 1 16558_ACEOF 16559 16560fi 16561 16562fi 16563 16564if test "$llvm_cv_os_type" = "MingW" ; then 16565 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 16566echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 16567 cat >conftest.$ac_ext <<_ACEOF 16568 16569 /* confdefs.h. */ 16570_ACEOF 16571cat confdefs.h >>conftest.$ac_ext 16572cat >>conftest.$ac_ext <<_ACEOF 16573/* end confdefs.h. */ 16574 16575 #include <windows.h> 16576 #include <imagehlp.h> 16577 extern void foo(PENUMLOADED_MODULES_CALLBACK); 16578 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 16579 16580 16581_ACEOF 16582rm -f conftest.$ac_objext 16583if { (ac_try="$ac_compile" 16584case "(($ac_try" in 16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16586 *) ac_try_echo=$ac_try;; 16587esac 16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16589 (eval "$ac_compile") 2>conftest.er1 16590 ac_status=$? 16591 grep -v '^ *+' conftest.er1 >conftest.err 16592 rm -f conftest.er1 16593 cat conftest.err >&5 16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16595 (exit $ac_status); } && 16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16597 { (case "(($ac_try" in 16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16599 *) ac_try_echo=$ac_try;; 16600esac 16601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16602 (eval "$ac_try") 2>&5 16603 ac_status=$? 16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16605 (exit $ac_status); }; } && 16606 { ac_try='test -s conftest.$ac_objext' 16607 { (case "(($ac_try" in 16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16609 *) ac_try_echo=$ac_try;; 16610esac 16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16612 (eval "$ac_try") 2>&5 16613 ac_status=$? 16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16615 (exit $ac_status); }; }; then 16616 16617 { echo "$as_me:$LINENO: result: yes" >&5 16618echo "${ECHO_T}yes" >&6; } 16619 llvm_cv_win32_elmcb_pcstr="PCSTR" 16620 16621else 16622 echo "$as_me: failed program was:" >&5 16623sed 's/^/| /' conftest.$ac_ext >&5 16624 16625 16626 { echo "$as_me:$LINENO: result: no" >&5 16627echo "${ECHO_T}no" >&6; } 16628 llvm_cv_win32_elmcb_pcstr="PSTR" 16629 16630fi 16631 16632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16633 16634cat >>confdefs.h <<_ACEOF 16635#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 16636_ACEOF 16637 16638fi 16639 16640if test "$llvm_cv_platform_type" = "Unix" ; then 16641 16642 16643for ac_header in stdlib.h unistd.h 16644do 16645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16647 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16650 echo $ECHO_N "(cached) $ECHO_C" >&6 16651fi 16652ac_res=`eval echo '${'$as_ac_Header'}'` 16653 { echo "$as_me:$LINENO: result: $ac_res" >&5 16654echo "${ECHO_T}$ac_res" >&6; } 16655else 16656 # Is the header compilable? 16657{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16659cat >conftest.$ac_ext <<_ACEOF 16660/* confdefs.h. */ 16661_ACEOF 16662cat confdefs.h >>conftest.$ac_ext 16663cat >>conftest.$ac_ext <<_ACEOF 16664/* end confdefs.h. */ 16665$ac_includes_default 16666#include <$ac_header> 16667_ACEOF 16668rm -f conftest.$ac_objext 16669if { (ac_try="$ac_compile" 16670case "(($ac_try" in 16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16672 *) ac_try_echo=$ac_try;; 16673esac 16674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16675 (eval "$ac_compile") 2>conftest.er1 16676 ac_status=$? 16677 grep -v '^ *+' conftest.er1 >conftest.err 16678 rm -f conftest.er1 16679 cat conftest.err >&5 16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16681 (exit $ac_status); } && 16682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16683 { (case "(($ac_try" in 16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16685 *) ac_try_echo=$ac_try;; 16686esac 16687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16688 (eval "$ac_try") 2>&5 16689 ac_status=$? 16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16691 (exit $ac_status); }; } && 16692 { ac_try='test -s conftest.$ac_objext' 16693 { (case "(($ac_try" in 16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16695 *) ac_try_echo=$ac_try;; 16696esac 16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16698 (eval "$ac_try") 2>&5 16699 ac_status=$? 16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16701 (exit $ac_status); }; }; then 16702 ac_header_compiler=yes 16703else 16704 echo "$as_me: failed program was:" >&5 16705sed 's/^/| /' conftest.$ac_ext >&5 16706 16707 ac_header_compiler=no 16708fi 16709 16710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16711{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16712echo "${ECHO_T}$ac_header_compiler" >&6; } 16713 16714# Is the header present? 16715{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16717cat >conftest.$ac_ext <<_ACEOF 16718/* confdefs.h. */ 16719_ACEOF 16720cat confdefs.h >>conftest.$ac_ext 16721cat >>conftest.$ac_ext <<_ACEOF 16722/* end confdefs.h. */ 16723#include <$ac_header> 16724_ACEOF 16725if { (ac_try="$ac_cpp conftest.$ac_ext" 16726case "(($ac_try" in 16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16728 *) ac_try_echo=$ac_try;; 16729esac 16730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16732 ac_status=$? 16733 grep -v '^ *+' conftest.er1 >conftest.err 16734 rm -f conftest.er1 16735 cat conftest.err >&5 16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16737 (exit $ac_status); } >/dev/null; then 16738 if test -s conftest.err; then 16739 ac_cpp_err=$ac_c_preproc_warn_flag 16740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16741 else 16742 ac_cpp_err= 16743 fi 16744else 16745 ac_cpp_err=yes 16746fi 16747if test -z "$ac_cpp_err"; then 16748 ac_header_preproc=yes 16749else 16750 echo "$as_me: failed program was:" >&5 16751sed 's/^/| /' conftest.$ac_ext >&5 16752 16753 ac_header_preproc=no 16754fi 16755 16756rm -f conftest.err conftest.$ac_ext 16757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16758echo "${ECHO_T}$ac_header_preproc" >&6; } 16759 16760# So? What about this header? 16761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16762 yes:no: ) 16763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16767 ac_header_preproc=yes 16768 ;; 16769 no:yes:* ) 16770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16782 ( cat <<\_ASBOX 16783## ------------------------------------ ## 16784## Report this to http://llvm.org/bugs/ ## 16785## ------------------------------------ ## 16786_ASBOX 16787 ) | sed "s/^/$as_me: WARNING: /" >&2 16788 ;; 16789esac 16790{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16793 echo $ECHO_N "(cached) $ECHO_C" >&6 16794else 16795 eval "$as_ac_Header=\$ac_header_preproc" 16796fi 16797ac_res=`eval echo '${'$as_ac_Header'}'` 16798 { echo "$as_me:$LINENO: result: $ac_res" >&5 16799echo "${ECHO_T}$ac_res" >&6; } 16800 16801fi 16802if test `eval echo '${'$as_ac_Header'}'` = yes; then 16803 cat >>confdefs.h <<_ACEOF 16804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16805_ACEOF 16806 16807fi 16808 16809done 16810 16811 16812for ac_func in getpagesize 16813do 16814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16815{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16817if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16818 echo $ECHO_N "(cached) $ECHO_C" >&6 16819else 16820 cat >conftest.$ac_ext <<_ACEOF 16821/* confdefs.h. */ 16822_ACEOF 16823cat confdefs.h >>conftest.$ac_ext 16824cat >>conftest.$ac_ext <<_ACEOF 16825/* end confdefs.h. */ 16826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16827 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16828#define $ac_func innocuous_$ac_func 16829 16830/* System header to define __stub macros and hopefully few prototypes, 16831 which can conflict with char $ac_func (); below. 16832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16833 <limits.h> exists even on freestanding compilers. */ 16834 16835#ifdef __STDC__ 16836# include <limits.h> 16837#else 16838# include <assert.h> 16839#endif 16840 16841#undef $ac_func 16842 16843/* Override any GCC internal prototype to avoid an error. 16844 Use char because int might match the return type of a GCC 16845 builtin and then its argument prototype would still apply. */ 16846#ifdef __cplusplus 16847extern "C" 16848#endif 16849char $ac_func (); 16850/* The GNU C library defines this for functions which it implements 16851 to always fail with ENOSYS. Some functions are actually named 16852 something starting with __ and the normal name is an alias. */ 16853#if defined __stub_$ac_func || defined __stub___$ac_func 16854choke me 16855#endif 16856 16857int 16858main () 16859{ 16860return $ac_func (); 16861 ; 16862 return 0; 16863} 16864_ACEOF 16865rm -f conftest.$ac_objext conftest$ac_exeext 16866if { (ac_try="$ac_link" 16867case "(($ac_try" in 16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16869 *) ac_try_echo=$ac_try;; 16870esac 16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16872 (eval "$ac_link") 2>conftest.er1 16873 ac_status=$? 16874 grep -v '^ *+' conftest.er1 >conftest.err 16875 rm -f conftest.er1 16876 cat conftest.err >&5 16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16878 (exit $ac_status); } && 16879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16880 { (case "(($ac_try" in 16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16882 *) ac_try_echo=$ac_try;; 16883esac 16884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16885 (eval "$ac_try") 2>&5 16886 ac_status=$? 16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16888 (exit $ac_status); }; } && 16889 { ac_try='test -s conftest$ac_exeext' 16890 { (case "(($ac_try" in 16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16892 *) ac_try_echo=$ac_try;; 16893esac 16894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16895 (eval "$ac_try") 2>&5 16896 ac_status=$? 16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16898 (exit $ac_status); }; }; then 16899 eval "$as_ac_var=yes" 16900else 16901 echo "$as_me: failed program was:" >&5 16902sed 's/^/| /' conftest.$ac_ext >&5 16903 16904 eval "$as_ac_var=no" 16905fi 16906 16907rm -f core conftest.err conftest.$ac_objext \ 16908 conftest$ac_exeext conftest.$ac_ext 16909fi 16910ac_res=`eval echo '${'$as_ac_var'}'` 16911 { echo "$as_me:$LINENO: result: $ac_res" >&5 16912echo "${ECHO_T}$ac_res" >&6; } 16913if test `eval echo '${'$as_ac_var'}'` = yes; then 16914 cat >>confdefs.h <<_ACEOF 16915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16916_ACEOF 16917 16918fi 16919done 16920 16921{ echo "$as_me:$LINENO: checking for working mmap" >&5 16922echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 16923if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 16924 echo $ECHO_N "(cached) $ECHO_C" >&6 16925else 16926 if test "$cross_compiling" = yes; then 16927 ac_cv_func_mmap_fixed_mapped=no 16928else 16929 cat >conftest.$ac_ext <<_ACEOF 16930/* confdefs.h. */ 16931_ACEOF 16932cat confdefs.h >>conftest.$ac_ext 16933cat >>conftest.$ac_ext <<_ACEOF 16934/* end confdefs.h. */ 16935$ac_includes_default 16936/* malloc might have been renamed as rpl_malloc. */ 16937#undef malloc 16938 16939/* Thanks to Mike Haertel and Jim Avera for this test. 16940 Here is a matrix of mmap possibilities: 16941 mmap private not fixed 16942 mmap private fixed at somewhere currently unmapped 16943 mmap private fixed at somewhere already mapped 16944 mmap shared not fixed 16945 mmap shared fixed at somewhere currently unmapped 16946 mmap shared fixed at somewhere already mapped 16947 For private mappings, we should verify that changes cannot be read() 16948 back from the file, nor mmap's back from the file at a different 16949 address. (There have been systems where private was not correctly 16950 implemented like the infamous i386 svr4.0, and systems where the 16951 VM page cache was not coherent with the file system buffer cache 16952 like early versions of FreeBSD and possibly contemporary NetBSD.) 16953 For shared mappings, we should conversely verify that changes get 16954 propagated back to all the places they're supposed to be. 16955 16956 Grep wants private fixed already mapped. 16957 The main things grep needs to know about mmap are: 16958 * does it exist and is it safe to write into the mmap'd area 16959 * how to use it (BSD variants) */ 16960 16961#include <fcntl.h> 16962#include <sys/mman.h> 16963 16964#if !STDC_HEADERS && !HAVE_STDLIB_H 16965char *malloc (); 16966#endif 16967 16968/* This mess was copied from the GNU getpagesize.h. */ 16969#if !HAVE_GETPAGESIZE 16970/* Assume that all systems that can run configure have sys/param.h. */ 16971# if !HAVE_SYS_PARAM_H 16972# define HAVE_SYS_PARAM_H 1 16973# endif 16974 16975# ifdef _SC_PAGESIZE 16976# define getpagesize() sysconf(_SC_PAGESIZE) 16977# else /* no _SC_PAGESIZE */ 16978# if HAVE_SYS_PARAM_H 16979# include <sys/param.h> 16980# ifdef EXEC_PAGESIZE 16981# define getpagesize() EXEC_PAGESIZE 16982# else /* no EXEC_PAGESIZE */ 16983# ifdef NBPG 16984# define getpagesize() NBPG * CLSIZE 16985# ifndef CLSIZE 16986# define CLSIZE 1 16987# endif /* no CLSIZE */ 16988# else /* no NBPG */ 16989# ifdef NBPC 16990# define getpagesize() NBPC 16991# else /* no NBPC */ 16992# ifdef PAGESIZE 16993# define getpagesize() PAGESIZE 16994# endif /* PAGESIZE */ 16995# endif /* no NBPC */ 16996# endif /* no NBPG */ 16997# endif /* no EXEC_PAGESIZE */ 16998# else /* no HAVE_SYS_PARAM_H */ 16999# define getpagesize() 8192 /* punt totally */ 17000# endif /* no HAVE_SYS_PARAM_H */ 17001# endif /* no _SC_PAGESIZE */ 17002 17003#endif /* no HAVE_GETPAGESIZE */ 17004 17005int 17006main () 17007{ 17008 char *data, *data2, *data3; 17009 int i, pagesize; 17010 int fd; 17011 17012 pagesize = getpagesize (); 17013 17014 /* First, make a file with some known garbage in it. */ 17015 data = (char *) malloc (pagesize); 17016 if (!data) 17017 return 1; 17018 for (i = 0; i < pagesize; ++i) 17019 *(data + i) = rand (); 17020 umask (0); 17021 fd = creat ("conftest.mmap", 0600); 17022 if (fd < 0) 17023 return 1; 17024 if (write (fd, data, pagesize) != pagesize) 17025 return 1; 17026 close (fd); 17027 17028 /* Next, try to mmap the file at a fixed address which already has 17029 something else allocated at it. If we can, also make sure that 17030 we see the same garbage. */ 17031 fd = open ("conftest.mmap", O_RDWR); 17032 if (fd < 0) 17033 return 1; 17034 data2 = (char *) malloc (2 * pagesize); 17035 if (!data2) 17036 return 1; 17037 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 17038 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 17039 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 17040 return 1; 17041 for (i = 0; i < pagesize; ++i) 17042 if (*(data + i) != *(data2 + i)) 17043 return 1; 17044 17045 /* Finally, make sure that changes to the mapped area do not 17046 percolate back to the file as seen by read(). (This is a bug on 17047 some variants of i386 svr4.0.) */ 17048 for (i = 0; i < pagesize; ++i) 17049 *(data2 + i) = *(data2 + i) + 1; 17050 data3 = (char *) malloc (pagesize); 17051 if (!data3) 17052 return 1; 17053 if (read (fd, data3, pagesize) != pagesize) 17054 return 1; 17055 for (i = 0; i < pagesize; ++i) 17056 if (*(data + i) != *(data3 + i)) 17057 return 1; 17058 close (fd); 17059 return 0; 17060} 17061_ACEOF 17062rm -f conftest$ac_exeext 17063if { (ac_try="$ac_link" 17064case "(($ac_try" in 17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17066 *) ac_try_echo=$ac_try;; 17067esac 17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17069 (eval "$ac_link") 2>&5 17070 ac_status=$? 17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17073 { (case "(($ac_try" in 17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17075 *) ac_try_echo=$ac_try;; 17076esac 17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17078 (eval "$ac_try") 2>&5 17079 ac_status=$? 17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17081 (exit $ac_status); }; }; then 17082 ac_cv_func_mmap_fixed_mapped=yes 17083else 17084 echo "$as_me: program exited with status $ac_status" >&5 17085echo "$as_me: failed program was:" >&5 17086sed 's/^/| /' conftest.$ac_ext >&5 17087 17088( exit $ac_status ) 17089ac_cv_func_mmap_fixed_mapped=no 17090fi 17091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17092fi 17093 17094 17095fi 17096{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 17097echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 17098if test $ac_cv_func_mmap_fixed_mapped = yes; then 17099 17100cat >>confdefs.h <<\_ACEOF 17101#define HAVE_MMAP 1 17102_ACEOF 17103 17104fi 17105rm -f conftest.mmap 17106 17107 { echo "$as_me:$LINENO: checking for mmap of files" >&5 17108echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 17109if test "${ac_cv_func_mmap_file+set}" = set; then 17110 echo $ECHO_N "(cached) $ECHO_C" >&6 17111else 17112 ac_ext=c 17113ac_cpp='$CPP $CPPFLAGS' 17114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17116ac_compiler_gnu=$ac_cv_c_compiler_gnu 17117 17118 if test "$cross_compiling" = yes; then 17119 ac_cv_func_mmap_file=no 17120else 17121 cat >conftest.$ac_ext <<_ACEOF 17122 17123 /* confdefs.h. */ 17124_ACEOF 17125cat confdefs.h >>conftest.$ac_ext 17126cat >>conftest.$ac_ext <<_ACEOF 17127/* end confdefs.h. */ 17128 17129#include <sys/types.h> 17130#include <sys/mman.h> 17131#include <fcntl.h> 17132 17133int 17134main () 17135{ 17136 17137 int fd; 17138 fd = creat ("foo",0777); 17139 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 17140 unlink ("foo"); 17141 return (fd != (int) MAP_FAILED); 17142 ; 17143 return 0; 17144} 17145_ACEOF 17146rm -f conftest$ac_exeext 17147if { (ac_try="$ac_link" 17148case "(($ac_try" in 17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17150 *) ac_try_echo=$ac_try;; 17151esac 17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17153 (eval "$ac_link") 2>&5 17154 ac_status=$? 17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17157 { (case "(($ac_try" in 17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17159 *) ac_try_echo=$ac_try;; 17160esac 17161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17162 (eval "$ac_try") 2>&5 17163 ac_status=$? 17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17165 (exit $ac_status); }; }; then 17166 ac_cv_func_mmap_file=yes 17167else 17168 echo "$as_me: program exited with status $ac_status" >&5 17169echo "$as_me: failed program was:" >&5 17170sed 's/^/| /' conftest.$ac_ext >&5 17171 17172( exit $ac_status ) 17173ac_cv_func_mmap_file=no 17174fi 17175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17176fi 17177 17178 17179 ac_ext=c 17180ac_cpp='$CPP $CPPFLAGS' 17181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17183ac_compiler_gnu=$ac_cv_c_compiler_gnu 17184 17185 17186fi 17187{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 17188echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 17189if test "$ac_cv_func_mmap_file" = yes; then 17190 17191cat >>confdefs.h <<\_ACEOF 17192#define HAVE_MMAP_FILE 17193_ACEOF 17194 17195 MMAP_FILE=yes 17196 17197fi 17198 17199 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 17200echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 17201if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 17202 echo $ECHO_N "(cached) $ECHO_C" >&6 17203else 17204 if test "$llvm_cv_os_type" = "Interix" ; then 17205 ac_cv_need_dev_zero_for_mmap=yes 17206 else 17207 ac_cv_need_dev_zero_for_mmap=no 17208 fi 17209 17210fi 17211{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 17212echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 17213if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 17214 17215cat >>confdefs.h <<\_ACEOF 17216#define NEED_DEV_ZERO_FOR_MMAP 1 17217_ACEOF 17218 17219fi 17220 17221 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 17222 then 17223 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 17224echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 17225 fi 17226 if test "$ac_cv_func_mmap_file" = "no" 17227 then 17228 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 17229echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 17230 fi 17231fi 17232 17233{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 17234echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 17235ac_ext=cpp 17236ac_cpp='$CXXCPP $CPPFLAGS' 17237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17240 17241cat >conftest.$ac_ext <<_ACEOF 17242 17243 /* confdefs.h. */ 17244_ACEOF 17245cat confdefs.h >>conftest.$ac_ext 17246cat >>conftest.$ac_ext <<_ACEOF 17247/* end confdefs.h. */ 17248 17249 int main() { 17250 volatile unsigned long val = 1; 17251 __sync_synchronize(); 17252 __sync_val_compare_and_swap(&val, 1, 0); 17253 __sync_add_and_fetch(&val, 1); 17254 __sync_sub_and_fetch(&val, 1); 17255 return 0; 17256 } 17257 17258 17259_ACEOF 17260rm -f conftest.$ac_objext conftest$ac_exeext 17261if { (ac_try="$ac_link" 17262case "(($ac_try" in 17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17264 *) ac_try_echo=$ac_try;; 17265esac 17266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17267 (eval "$ac_link") 2>conftest.er1 17268 ac_status=$? 17269 grep -v '^ *+' conftest.er1 >conftest.err 17270 rm -f conftest.er1 17271 cat conftest.err >&5 17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17273 (exit $ac_status); } && 17274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17275 { (case "(($ac_try" in 17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17277 *) ac_try_echo=$ac_try;; 17278esac 17279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17280 (eval "$ac_try") 2>&5 17281 ac_status=$? 17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17283 (exit $ac_status); }; } && 17284 { ac_try='test -s conftest$ac_exeext' 17285 { (case "(($ac_try" in 17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17287 *) ac_try_echo=$ac_try;; 17288esac 17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17290 (eval "$ac_try") 2>&5 17291 ac_status=$? 17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17293 (exit $ac_status); }; }; then 17294 17295 { echo "$as_me:$LINENO: result: yes" >&5 17296echo "${ECHO_T}yes" >&6; } 17297 17298cat >>confdefs.h <<\_ACEOF 17299#define LLVM_HAS_ATOMICS 1 17300_ACEOF 17301 17302 17303else 17304 echo "$as_me: failed program was:" >&5 17305sed 's/^/| /' conftest.$ac_ext >&5 17306 17307 17308 { echo "$as_me:$LINENO: result: no" >&5 17309echo "${ECHO_T}no" >&6; } 17310 17311cat >>confdefs.h <<\_ACEOF 17312#define LLVM_HAS_ATOMICS 0 17313_ACEOF 17314 17315 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 17316echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 17317 17318fi 17319 17320rm -f core conftest.err conftest.$ac_objext \ 17321 conftest$ac_exeext conftest.$ac_ext 17322ac_ext=c 17323ac_cpp='$CPP $CPPFLAGS' 17324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17326ac_compiler_gnu=$ac_cv_c_compiler_gnu 17327 17328 17329 17330if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 17331 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 17332echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 17333if test "${llvm_cv_linux_mixed+set}" = set; then 17334 echo $ECHO_N "(cached) $ECHO_C" >&6 17335else 17336 ac_ext=c 17337ac_cpp='$CPP $CPPFLAGS' 17338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17340ac_compiler_gnu=$ac_cv_c_compiler_gnu 17341 17342 cat >conftest.$ac_ext <<_ACEOF 17343/* confdefs.h. */ 17344_ACEOF 17345cat confdefs.h >>conftest.$ac_ext 17346cat >>conftest.$ac_ext <<_ACEOF 17347/* end confdefs.h. */ 17348#ifndef __x86_64__ 17349 error: Not x86-64 even if uname says so! 17350 #endif 17351 17352int 17353main () 17354{ 17355 17356 ; 17357 return 0; 17358} 17359_ACEOF 17360rm -f conftest.$ac_objext 17361if { (ac_try="$ac_compile" 17362case "(($ac_try" in 17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17364 *) ac_try_echo=$ac_try;; 17365esac 17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17367 (eval "$ac_compile") 2>conftest.er1 17368 ac_status=$? 17369 grep -v '^ *+' conftest.er1 >conftest.err 17370 rm -f conftest.er1 17371 cat conftest.err >&5 17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17373 (exit $ac_status); } && 17374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17375 { (case "(($ac_try" in 17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17377 *) ac_try_echo=$ac_try;; 17378esac 17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17380 (eval "$ac_try") 2>&5 17381 ac_status=$? 17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17383 (exit $ac_status); }; } && 17384 { ac_try='test -s conftest.$ac_objext' 17385 { (case "(($ac_try" in 17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17387 *) ac_try_echo=$ac_try;; 17388esac 17389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17390 (eval "$ac_try") 2>&5 17391 ac_status=$? 17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17393 (exit $ac_status); }; }; then 17394 llvm_cv_linux_mixed=no 17395else 17396 echo "$as_me: failed program was:" >&5 17397sed 's/^/| /' conftest.$ac_ext >&5 17398 17399 llvm_cv_linux_mixed=yes 17400fi 17401 17402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17403 ac_ext=c 17404ac_cpp='$CPP $CPPFLAGS' 17405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17407ac_compiler_gnu=$ac_cv_c_compiler_gnu 17408 17409 17410fi 17411{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 17412echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 17413 17414 if test "$llvm_cv_linux_mixed" = "yes"; then 17415 llvm_cv_target_arch="x86" 17416 ARCH="x86" 17417 fi 17418fi 17419 17420 17421for ac_func in __dso_handle 17422do 17423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17424{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17426if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17427 echo $ECHO_N "(cached) $ECHO_C" >&6 17428else 17429 cat >conftest.$ac_ext <<_ACEOF 17430/* confdefs.h. */ 17431_ACEOF 17432cat confdefs.h >>conftest.$ac_ext 17433cat >>conftest.$ac_ext <<_ACEOF 17434/* end confdefs.h. */ 17435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17437#define $ac_func innocuous_$ac_func 17438 17439/* System header to define __stub macros and hopefully few prototypes, 17440 which can conflict with char $ac_func (); below. 17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17442 <limits.h> exists even on freestanding compilers. */ 17443 17444#ifdef __STDC__ 17445# include <limits.h> 17446#else 17447# include <assert.h> 17448#endif 17449 17450#undef $ac_func 17451 17452/* Override any GCC internal prototype to avoid an error. 17453 Use char because int might match the return type of a GCC 17454 builtin and then its argument prototype would still apply. */ 17455#ifdef __cplusplus 17456extern "C" 17457#endif 17458char $ac_func (); 17459/* The GNU C library defines this for functions which it implements 17460 to always fail with ENOSYS. Some functions are actually named 17461 something starting with __ and the normal name is an alias. */ 17462#if defined __stub_$ac_func || defined __stub___$ac_func 17463choke me 17464#endif 17465 17466int 17467main () 17468{ 17469return $ac_func (); 17470 ; 17471 return 0; 17472} 17473_ACEOF 17474rm -f conftest.$ac_objext conftest$ac_exeext 17475if { (ac_try="$ac_link" 17476case "(($ac_try" in 17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17478 *) ac_try_echo=$ac_try;; 17479esac 17480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17481 (eval "$ac_link") 2>conftest.er1 17482 ac_status=$? 17483 grep -v '^ *+' conftest.er1 >conftest.err 17484 rm -f conftest.er1 17485 cat conftest.err >&5 17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17487 (exit $ac_status); } && 17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17489 { (case "(($ac_try" in 17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17491 *) ac_try_echo=$ac_try;; 17492esac 17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17494 (eval "$ac_try") 2>&5 17495 ac_status=$? 17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17497 (exit $ac_status); }; } && 17498 { ac_try='test -s conftest$ac_exeext' 17499 { (case "(($ac_try" in 17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17501 *) ac_try_echo=$ac_try;; 17502esac 17503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17504 (eval "$ac_try") 2>&5 17505 ac_status=$? 17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17507 (exit $ac_status); }; }; then 17508 eval "$as_ac_var=yes" 17509else 17510 echo "$as_me: failed program was:" >&5 17511sed 's/^/| /' conftest.$ac_ext >&5 17512 17513 eval "$as_ac_var=no" 17514fi 17515 17516rm -f core conftest.err conftest.$ac_objext \ 17517 conftest$ac_exeext conftest.$ac_ext 17518fi 17519ac_res=`eval echo '${'$as_ac_var'}'` 17520 { echo "$as_me:$LINENO: result: $ac_res" >&5 17521echo "${ECHO_T}$ac_res" >&6; } 17522if test `eval echo '${'$as_ac_var'}'` = yes; then 17523 cat >>confdefs.h <<_ACEOF 17524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17525_ACEOF 17526 17527fi 17528done 17529 17530 17531SHLIBEXT=$llvm_shlib_ext 17532 17533 17534if test "${prefix}" = "NONE" ; then 17535 prefix="/usr/local" 17536fi 17537eval LLVM_PREFIX="${prefix}"; 17538eval LLVM_BINDIR="${prefix}/bin"; 17539eval LLVM_DATADIR="${prefix}/share/llvm"; 17540eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 17541eval LLVM_ETCDIR="${prefix}/etc/llvm"; 17542eval LLVM_INCLUDEDIR="${prefix}/include"; 17543eval LLVM_INFODIR="${prefix}/info"; 17544eval LLVM_MANDIR="${prefix}/man"; 17545LLVM_CONFIGTIME=`date` 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556if test "${ENABLE_TIMESTAMPS}" = "0"; then 17557 LLVM_CONFIGTIME="(timestamp not enabled)" 17558fi 17559 17560 17561cat >>confdefs.h <<_ACEOF 17562#define LLVM_PREFIX "$LLVM_PREFIX" 17563_ACEOF 17564 17565 17566cat >>confdefs.h <<_ACEOF 17567#define LLVM_BINDIR "$LLVM_BINDIR" 17568_ACEOF 17569 17570 17571cat >>confdefs.h <<_ACEOF 17572#define LLVM_DATADIR "$LLVM_DATADIR" 17573_ACEOF 17574 17575 17576cat >>confdefs.h <<_ACEOF 17577#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 17578_ACEOF 17579 17580 17581cat >>confdefs.h <<_ACEOF 17582#define LLVM_ETCDIR "$LLVM_ETCDIR" 17583_ACEOF 17584 17585 17586cat >>confdefs.h <<_ACEOF 17587#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 17588_ACEOF 17589 17590 17591cat >>confdefs.h <<_ACEOF 17592#define LLVM_INFODIR "$LLVM_INFODIR" 17593_ACEOF 17594 17595 17596cat >>confdefs.h <<_ACEOF 17597#define LLVM_MANDIR "$LLVM_MANDIR" 17598_ACEOF 17599 17600 17601cat >>confdefs.h <<_ACEOF 17602#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 17603_ACEOF 17604 17605 17606cat >>confdefs.h <<_ACEOF 17607#define LLVM_HOST_TRIPLE "$host" 17608_ACEOF 17609 17610 17611cat >>confdefs.h <<_ACEOF 17612#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 17613_ACEOF 17614 17615 17616if test "$BINDINGS_TO_BUILD" = auto ; then 17617 BINDINGS_TO_BUILD="" 17618 if test "x$OCAMLFIND" != x ; then 17619 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 17620 fi 17621 if test "x$GO" != x ; then 17622 if $GO run ${srcdir}/bindings/go/conftest.go ; then 17623 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD" 17624 fi 17625 fi 17626fi 17627BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 17628 17629 17630binding_prereqs_failed=0 17631for a_binding in $BINDINGS_TO_BUILD ; do 17632 case "$a_binding" in 17633 ocaml) 17634 if test "x$OCAMLFIND" = x ; then 17635 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5 17636echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;} 17637 binding_prereqs_failed=1 17638 fi 17639 17640 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then 17641 HAVE_OCAMLOPT=1 17642 else 17643 HAVE_OCAMLOPT=0 17644 fi 17645 17646 17647 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then 17648 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5 17649echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;} 17650 binding_prereqs_failed=1 17651 fi 17652 17653 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then 17654 HAVE_OCAML_OUNIT=1 17655 else 17656 HAVE_OCAML_OUNIT=0 17657 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5 17658echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;} 17659 fi 17660 17661 17662 if test "x$with_ocaml_libdir" != xauto ; then 17663 OCAML_LIBDIR=$with_ocaml_libdir 17664 17665 else 17666 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`" 17667 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 17668 then 17669 # ocaml stdlib is beneath our prefix; use stdlib 17670 OCAML_LIBDIR=$ocaml_stdlib 17671 17672 else 17673 # ocaml stdlib is outside our prefix; use libdir/ocaml 17674 OCAML_LIBDIR=${prefix}/lib/ocaml 17675 17676 fi 17677 fi 17678 ;; 17679 go) 17680 if test "x$GO" = x ; then 17681 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5 17682echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;} 17683 binding_prereqs_failed=1 17684 else 17685 if $GO run ${srcdir}/bindings/go/conftest.go ; then 17686 : 17687 else 17688 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5 17689echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;} 17690 binding_prereqs_failed=1 17691 fi 17692 fi 17693 ;; 17694 esac 17695done 17696if test "$binding_prereqs_failed" = 1 ; then 17697 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 17698echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 17699 { (exit 1); exit 1; }; } 17700fi 17701 17702{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 17703echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 17704if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 17705 echo $ECHO_N "(cached) $ECHO_C" >&6 17706else 17707 ac_ext=cpp 17708ac_cpp='$CXXCPP $CPPFLAGS' 17709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17712 17713 oldcxxflags="$CXXFLAGS" 17714 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 17715 cat >conftest.$ac_ext <<_ACEOF 17716/* confdefs.h. */ 17717_ACEOF 17718cat confdefs.h >>conftest.$ac_ext 17719cat >>conftest.$ac_ext <<_ACEOF 17720/* end confdefs.h. */ 17721template <typename T> struct X { void __attribute__((noinline)) f() {} }; 17722int 17723main () 17724{ 17725X<int>().f(); 17726 ; 17727 return 0; 17728} 17729_ACEOF 17730rm -f conftest.$ac_objext 17731if { (ac_try="$ac_compile" 17732case "(($ac_try" in 17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17734 *) ac_try_echo=$ac_try;; 17735esac 17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17737 (eval "$ac_compile") 2>conftest.er1 17738 ac_status=$? 17739 grep -v '^ *+' conftest.er1 >conftest.err 17740 rm -f conftest.er1 17741 cat conftest.err >&5 17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17743 (exit $ac_status); } && 17744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17745 { (case "(($ac_try" in 17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17747 *) ac_try_echo=$ac_try;; 17748esac 17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17750 (eval "$ac_try") 2>&5 17751 ac_status=$? 17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17753 (exit $ac_status); }; } && 17754 { ac_try='test -s conftest.$ac_objext' 17755 { (case "(($ac_try" in 17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17757 *) ac_try_echo=$ac_try;; 17758esac 17759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17760 (eval "$ac_try") 2>&5 17761 ac_status=$? 17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17763 (exit $ac_status); }; }; then 17764 llvm_cv_cxx_visibility_inlines_hidden=yes 17765else 17766 echo "$as_me: failed program was:" >&5 17767sed 's/^/| /' conftest.$ac_ext >&5 17768 17769 llvm_cv_cxx_visibility_inlines_hidden=no 17770fi 17771 17772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17773 CXXFLAGS="$oldcxxflags" 17774 ac_ext=c 17775ac_cpp='$CPP $CPPFLAGS' 17776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17778ac_compiler_gnu=$ac_cv_c_compiler_gnu 17779 17780 17781fi 17782{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 17783echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 17784if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 17785 ENABLE_VISIBILITY_INLINES_HIDDEN=1 17786 17787else 17788 ENABLE_VISIBILITY_INLINES_HIDDEN=0 17789 17790fi 17791 17792 17793if test "$llvm_cv_link_use_r" = "yes" ; then 17794 RPATH="-Wl,-R" 17795else 17796 RPATH="-Wl,-rpath" 17797fi 17798 17799 17800if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 17801 RDYNAMIC="-rdynamic" 17802else 17803 RDYNAMIC="" 17804fi 17805 17806 17807 17808ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 17809 17810 17811 17812 17813 17814 17815ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 17816 17817ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 17818 17819ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 17820 17821ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 17822 17823ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 17824 17825 17826ac_config_files="$ac_config_files Makefile.config" 17827 17828 17829ac_config_files="$ac_config_files llvm.spec" 17830 17831 17832ac_config_files="$ac_config_files docs/doxygen.cfg" 17833 17834 17835if test "${clang_src_root}" = ""; then 17836 clang_src_root="$srcdir/tools/clang" 17837fi 17838if test -f ${clang_src_root}/README.txt; then 17839 17840cat >>confdefs.h <<_ACEOF 17841#define CLANG_LIBDIR_SUFFIX "" 17842_ACEOF 17843 17844 17845 configh="include/clang/Config/config.h" 17846 doxy="docs/doxygen.cfg" 17847 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 17848 17849 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 17850 17851fi 17852 17853ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 17854 17855 17856test "x$program_prefix" = "xNONE" && program_prefix="" 17857 17858 17859 17860ac_config_commands="$ac_config_commands setup" 17861 17862ac_config_commands="$ac_config_commands Makefile" 17863 17864 17865ac_config_commands="$ac_config_commands Makefile.common" 17866 17867 17868ac_config_commands="$ac_config_commands examples/Makefile" 17869 17870 17871ac_config_commands="$ac_config_commands lib/Makefile" 17872 17873 17874ac_config_commands="$ac_config_commands test/Makefile" 17875 17876 17877ac_config_commands="$ac_config_commands test/Makefile.tests" 17878 17879 17880ac_config_commands="$ac_config_commands unittests/Makefile" 17881 17882 17883ac_config_commands="$ac_config_commands tools/Makefile" 17884 17885 17886ac_config_commands="$ac_config_commands utils/Makefile" 17887 17888 17889ac_config_commands="$ac_config_commands projects/Makefile" 17890 17891 17892ac_config_commands="$ac_config_commands bindings/Makefile" 17893 17894 17895ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 17896 17897 17898 17899cat >confcache <<\_ACEOF 17900# This file is a shell script that caches the results of configure 17901# tests run on this system so they can be shared between configure 17902# scripts and configure runs, see configure's option --config-cache. 17903# It is not useful on other systems. If it contains results you don't 17904# want to keep, you may remove or edit it. 17905# 17906# config.status only pays attention to the cache file if you give it 17907# the --recheck option to rerun configure. 17908# 17909# `ac_cv_env_foo' variables (set or unset) will be overridden when 17910# loading this file, other *unset* `ac_cv_foo' will be assigned the 17911# following values. 17912 17913_ACEOF 17914 17915# The following way of writing the cache mishandles newlines in values, 17916# but we know of no workaround that is simple, portable, and efficient. 17917# So, we kill variables containing newlines. 17918# Ultrix sh set writes to stderr and can't be redirected directly, 17919# and sets the high bit in the cache file unless we assign to the vars. 17920( 17921 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17922 eval ac_val=\$$ac_var 17923 case $ac_val in #( 17924 *${as_nl}*) 17925 case $ac_var in #( 17926 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 17927echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 17928 esac 17929 case $ac_var in #( 17930 _ | IFS | as_nl) ;; #( 17931 *) $as_unset $ac_var ;; 17932 esac ;; 17933 esac 17934 done 17935 17936 (set) 2>&1 | 17937 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17938 *${as_nl}ac_space=\ *) 17939 # `set' does not quote correctly, so add quotes (double-quote 17940 # substitution turns \\\\ into \\, and sed turns \\ into \). 17941 sed -n \ 17942 "s/'/'\\\\''/g; 17943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17944 ;; #( 17945 *) 17946 # `set' quotes correctly as required by POSIX, so do not add quotes. 17947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17948 ;; 17949 esac | 17950 sort 17951) | 17952 sed ' 17953 /^ac_cv_env_/b end 17954 t clear 17955 :clear 17956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17957 t end 17958 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17959 :end' >>confcache 17960if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17961 if test -w "$cache_file"; then 17962 test "x$cache_file" != "x/dev/null" && 17963 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 17964echo "$as_me: updating cache $cache_file" >&6;} 17965 cat confcache >$cache_file 17966 else 17967 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 17968echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17969 fi 17970fi 17971rm -f confcache 17972 17973test "x$prefix" = xNONE && prefix=$ac_default_prefix 17974# Let make expand exec_prefix. 17975test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17976 17977DEFS=-DHAVE_CONFIG_H 17978 17979ac_libobjs= 17980ac_ltlibobjs= 17981for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17982 # 1. Remove the extension, and $U if already installed. 17983 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17984 ac_i=`echo "$ac_i" | sed "$ac_script"` 17985 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17986 # will be set to the directory where LIBOBJS objects are built. 17987 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17988 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 17989done 17990LIBOBJS=$ac_libobjs 17991 17992LTLIBOBJS=$ac_ltlibobjs 17993 17994 17995 17996: ${CONFIG_STATUS=./config.status} 17997ac_clean_files_save=$ac_clean_files 17998ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17999{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 18000echo "$as_me: creating $CONFIG_STATUS" >&6;} 18001cat >$CONFIG_STATUS <<_ACEOF 18002#! $SHELL 18003# Generated by $as_me. 18004# Run this file to recreate the current configuration. 18005# Compiler output produced by configure, useful for debugging 18006# configure, is in config.log if it exists. 18007 18008debug=false 18009ac_cs_recheck=false 18010ac_cs_silent=false 18011SHELL=\${CONFIG_SHELL-$SHELL} 18012_ACEOF 18013 18014cat >>$CONFIG_STATUS <<\_ACEOF 18015## --------------------- ## 18016## M4sh Initialization. ## 18017## --------------------- ## 18018 18019# Be Bourne compatible 18020if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18021 emulate sh 18022 NULLCMD=: 18023 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18024 # is contrary to our usage. Disable this feature. 18025 alias -g '${1+"$@"}'='"$@"' 18026 setopt NO_GLOB_SUBST 18027else 18028 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 18029fi 18030BIN_SH=xpg4; export BIN_SH # for Tru64 18031DUALCASE=1; export DUALCASE # for MKS sh 18032 18033 18034# PATH needs CR 18035# Avoid depending upon Character Ranges. 18036as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18037as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18038as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18039as_cr_digits='0123456789' 18040as_cr_alnum=$as_cr_Letters$as_cr_digits 18041 18042# The user is always right. 18043if test "${PATH_SEPARATOR+set}" != set; then 18044 echo "#! /bin/sh" >conf$$.sh 18045 echo "exit 0" >>conf$$.sh 18046 chmod +x conf$$.sh 18047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18048 PATH_SEPARATOR=';' 18049 else 18050 PATH_SEPARATOR=: 18051 fi 18052 rm -f conf$$.sh 18053fi 18054 18055# Support unset when possible. 18056if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 18057 as_unset=unset 18058else 18059 as_unset=false 18060fi 18061 18062 18063# IFS 18064# We need space, tab and new line, in precisely that order. Quoting is 18065# there to prevent editors from complaining about space-tab. 18066# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18067# splitting by setting IFS to empty value.) 18068as_nl=' 18069' 18070IFS=" "" $as_nl" 18071 18072# Find who we are. Look in the path if we contain no directory separator. 18073case $0 in 18074 *[\\/]* ) as_myself=$0 ;; 18075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18076for as_dir in $PATH 18077do 18078 IFS=$as_save_IFS 18079 test -z "$as_dir" && as_dir=. 18080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18081done 18082IFS=$as_save_IFS 18083 18084 ;; 18085esac 18086# We did not find ourselves, most probably we were run as `sh COMMAND' 18087# in which case we are not to be found in the path. 18088if test "x$as_myself" = x; then 18089 as_myself=$0 18090fi 18091if test ! -f "$as_myself"; then 18092 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18093 { (exit 1); exit 1; } 18094fi 18095 18096# Work around bugs in pre-3.0 UWIN ksh. 18097for as_var in ENV MAIL MAILPATH 18098do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 18099done 18100PS1='$ ' 18101PS2='> ' 18102PS4='+ ' 18103 18104# NLS nuisances. 18105for as_var in \ 18106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 18107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 18108 LC_TELEPHONE LC_TIME 18109do 18110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 18111 eval $as_var=C; export $as_var 18112 else 18113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 18114 fi 18115done 18116 18117# Required to use basename. 18118if expr a : '\(a\)' >/dev/null 2>&1 && 18119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18120 as_expr=expr 18121else 18122 as_expr=false 18123fi 18124 18125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18126 as_basename=basename 18127else 18128 as_basename=false 18129fi 18130 18131 18132# Name of the executable. 18133as_me=`$as_basename -- "$0" || 18134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18135 X"$0" : 'X\(//\)$' \| \ 18136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18137echo X/"$0" | 18138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18139 s//\1/ 18140 q 18141 } 18142 /^X\/\(\/\/\)$/{ 18143 s//\1/ 18144 q 18145 } 18146 /^X\/\(\/\).*/{ 18147 s//\1/ 18148 q 18149 } 18150 s/.*/./; q'` 18151 18152# CDPATH. 18153$as_unset CDPATH 18154 18155 18156 18157 as_lineno_1=$LINENO 18158 as_lineno_2=$LINENO 18159 test "x$as_lineno_1" != "x$as_lineno_2" && 18160 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 18161 18162 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 18163 # uniformly replaced by the line number. The first 'sed' inserts a 18164 # line-number line after each line using $LINENO; the second 'sed' 18165 # does the real work. The second script uses 'N' to pair each 18166 # line-number line with the line containing $LINENO, and appends 18167 # trailing '-' during substitution so that $LINENO is not a special 18168 # case at line end. 18169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 18170 # scripts with optimization help from Paolo Bonzini. Blame Lee 18171 # E. McMahon (1931-1989) for sed's syntax. :-) 18172 sed -n ' 18173 p 18174 /[$]LINENO/= 18175 ' <$as_myself | 18176 sed ' 18177 s/[$]LINENO.*/&-/ 18178 t lineno 18179 b 18180 :lineno 18181 N 18182 :loop 18183 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 18184 t loop 18185 s/-\n.*// 18186 ' >$as_me.lineno && 18187 chmod +x "$as_me.lineno" || 18188 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 18189 { (exit 1); exit 1; }; } 18190 18191 # Don't try to exec as it changes $[0], causing all sort of problems 18192 # (the dirname of $[0] is not the place where we might find the 18193 # original and so on. Autoconf is especially sensitive to this). 18194 . "./$as_me.lineno" 18195 # Exit status is that of the last command. 18196 exit 18197} 18198 18199 18200if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18201 as_dirname=dirname 18202else 18203 as_dirname=false 18204fi 18205 18206ECHO_C= ECHO_N= ECHO_T= 18207case `echo -n x` in 18208-n*) 18209 case `echo 'x\c'` in 18210 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18211 *) ECHO_C='\c';; 18212 esac;; 18213*) 18214 ECHO_N='-n';; 18215esac 18216 18217if expr a : '\(a\)' >/dev/null 2>&1 && 18218 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18219 as_expr=expr 18220else 18221 as_expr=false 18222fi 18223 18224rm -f conf$$ conf$$.exe conf$$.file 18225if test -d conf$$.dir; then 18226 rm -f conf$$.dir/conf$$.file 18227else 18228 rm -f conf$$.dir 18229 mkdir conf$$.dir 18230fi 18231echo >conf$$.file 18232if ln -s conf$$.file conf$$ 2>/dev/null; then 18233 as_ln_s='ln -s' 18234 # ... but there are two gotchas: 18235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18237 # In both cases, we have to default to `cp -p'. 18238 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18239 as_ln_s='cp -p' 18240elif ln conf$$.file conf$$ 2>/dev/null; then 18241 as_ln_s=ln 18242else 18243 as_ln_s='cp -p' 18244fi 18245rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18246rmdir conf$$.dir 2>/dev/null 18247 18248if mkdir -p . 2>/dev/null; then 18249 as_mkdir_p=: 18250else 18251 test -d ./-p && rmdir ./-p 18252 as_mkdir_p=false 18253fi 18254 18255# Find out whether ``test -x'' works. Don't use a zero-byte file, as 18256# systems may use methods other than mode bits to determine executability. 18257cat >conf$$.file <<_ASEOF 18258#! /bin/sh 18259exit 0 18260_ASEOF 18261chmod +x conf$$.file 18262if test -x conf$$.file >/dev/null 2>&1; then 18263 as_executable_p="test -x" 18264else 18265 as_executable_p=: 18266fi 18267rm -f conf$$.file 18268 18269# Sed expression to map a string onto a valid CPP name. 18270as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18271 18272# Sed expression to map a string onto a valid variable name. 18273as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18274 18275 18276exec 6>&1 18277 18278# Save the log message, to keep $[0] and so on meaningful, and to 18279# report actual input values of CONFIG_FILES etc. instead of their 18280# values after options handling. 18281ac_log=" 18282This file was extended by LLVM $as_me 3.8.0svn, which was 18283generated by GNU Autoconf 2.60. Invocation command line was 18284 18285 CONFIG_FILES = $CONFIG_FILES 18286 CONFIG_HEADERS = $CONFIG_HEADERS 18287 CONFIG_LINKS = $CONFIG_LINKS 18288 CONFIG_COMMANDS = $CONFIG_COMMANDS 18289 $ $0 $@ 18290 18291on `(hostname || uname -n) 2>/dev/null | sed 1q` 18292" 18293 18294_ACEOF 18295 18296cat >>$CONFIG_STATUS <<_ACEOF 18297# Files that config.status was made for. 18298config_files="$ac_config_files" 18299config_headers="$ac_config_headers" 18300config_commands="$ac_config_commands" 18301 18302_ACEOF 18303 18304cat >>$CONFIG_STATUS <<\_ACEOF 18305ac_cs_usage="\ 18306\`$as_me' instantiates files from templates according to the 18307current configuration. 18308 18309Usage: $0 [OPTIONS] [FILE]... 18310 18311 -h, --help print this help, then exit 18312 -V, --version print version number, then exit 18313 -q, --quiet do not print progress messages 18314 -d, --debug don't remove temporary files 18315 --recheck update $as_me by reconfiguring in the same conditions 18316 --file=FILE[:TEMPLATE] 18317 instantiate the configuration file FILE 18318 --header=FILE[:TEMPLATE] 18319 instantiate the configuration header FILE 18320 18321Configuration files: 18322$config_files 18323 18324Configuration headers: 18325$config_headers 18326 18327Configuration commands: 18328$config_commands 18329 18330Report bugs to <bug-autoconf@gnu.org>." 18331 18332_ACEOF 18333cat >>$CONFIG_STATUS <<_ACEOF 18334ac_cs_version="\\ 18335LLVM config.status 3.8.0svn 18336configured by $0, generated by GNU Autoconf 2.60, 18337 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 18338 18339Copyright (C) 2006 Free Software Foundation, Inc. 18340This config.status script is free software; the Free Software Foundation 18341gives unlimited permission to copy, distribute and modify it." 18342 18343ac_pwd='$ac_pwd' 18344srcdir='$srcdir' 18345INSTALL='$INSTALL' 18346_ACEOF 18347 18348cat >>$CONFIG_STATUS <<\_ACEOF 18349# If no file are specified by the user, then we need to provide default 18350# value. By we need to know if files were specified by the user. 18351ac_need_defaults=: 18352while test $# != 0 18353do 18354 case $1 in 18355 --*=*) 18356 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18357 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18358 ac_shift=: 18359 ;; 18360 *) 18361 ac_option=$1 18362 ac_optarg=$2 18363 ac_shift=shift 18364 ;; 18365 esac 18366 18367 case $ac_option in 18368 # Handling of the options. 18369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18370 ac_cs_recheck=: ;; 18371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18372 echo "$ac_cs_version"; exit ;; 18373 --debug | --debu | --deb | --de | --d | -d ) 18374 debug=: ;; 18375 --file | --fil | --fi | --f ) 18376 $ac_shift 18377 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 18378 ac_need_defaults=false;; 18379 --header | --heade | --head | --hea ) 18380 $ac_shift 18381 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 18382 ac_need_defaults=false;; 18383 --he | --h) 18384 # Conflict between --help and --header 18385 { echo "$as_me: error: ambiguous option: $1 18386Try \`$0 --help' for more information." >&2 18387 { (exit 1); exit 1; }; };; 18388 --help | --hel | -h ) 18389 echo "$ac_cs_usage"; exit ;; 18390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18391 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18392 ac_cs_silent=: ;; 18393 18394 # This is an error. 18395 -*) { echo "$as_me: error: unrecognized option: $1 18396Try \`$0 --help' for more information." >&2 18397 { (exit 1); exit 1; }; } ;; 18398 18399 *) ac_config_targets="$ac_config_targets $1" 18400 ac_need_defaults=false ;; 18401 18402 esac 18403 shift 18404done 18405 18406ac_configure_extra_args= 18407 18408if $ac_cs_silent; then 18409 exec 6>/dev/null 18410 ac_configure_extra_args="$ac_configure_extra_args --silent" 18411fi 18412 18413_ACEOF 18414cat >>$CONFIG_STATUS <<_ACEOF 18415if \$ac_cs_recheck; then 18416 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 18417 CONFIG_SHELL=$SHELL 18418 export CONFIG_SHELL 18419 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18420fi 18421 18422_ACEOF 18423cat >>$CONFIG_STATUS <<\_ACEOF 18424exec 5>>config.log 18425{ 18426 echo 18427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18428## Running $as_me. ## 18429_ASBOX 18430 echo "$ac_log" 18431} >&5 18432 18433_ACEOF 18434cat >>$CONFIG_STATUS <<_ACEOF 18435# 18436# INIT-COMMANDS 18437# 18438llvm_src="${srcdir}" 18439 18440_ACEOF 18441 18442cat >>$CONFIG_STATUS <<\_ACEOF 18443 18444# Handling of arguments. 18445for ac_config_target in $ac_config_targets 18446do 18447 case $ac_config_target in 18448 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 18449 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 18450 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 18451 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 18452 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 18453 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 18454 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 18455 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 18456 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 18457 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 18458 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 18459 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 18460 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 18461 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 18462 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 18463 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 18464 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 18465 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 18466 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 18467 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 18468 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 18469 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 18470 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 18471 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 18472 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 18473 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 18474 18475 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 18476echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 18477 { (exit 1); exit 1; }; };; 18478 esac 18479done 18480 18481 18482# If the user did not use the arguments to specify the items to instantiate, 18483# then the envvar interface is used. Set only those that are not. 18484# We use the long form for the default assignment because of an extremely 18485# bizarre bug on SunOS 4.1.3. 18486if $ac_need_defaults; then 18487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18488 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18489 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18490fi 18491 18492# Have a temporary directory for convenience. Make it in the build tree 18493# simply because there is no reason against having it here, and in addition, 18494# creating and moving files from /tmp can sometimes cause problems. 18495# Hook for its removal unless debugging. 18496# Note that there is a small window in which the directory will not be cleaned: 18497# after its creation but before its name has been assigned to `$tmp'. 18498$debug || 18499{ 18500 tmp= 18501 trap 'exit_status=$? 18502 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18503' 0 18504 trap '{ (exit 1); exit 1; }' 1 2 13 15 18505} 18506# Create a (secure) tmp directory for tmp files. 18507 18508{ 18509 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18510 test -n "$tmp" && test -d "$tmp" 18511} || 18512{ 18513 tmp=./conf$$-$RANDOM 18514 (umask 077 && mkdir "$tmp") 18515} || 18516{ 18517 echo "$me: cannot create a temporary directory in ." >&2 18518 { (exit 1); exit 1; } 18519} 18520 18521# 18522# Set up the sed scripts for CONFIG_FILES section. 18523# 18524 18525# No need to generate the scripts if there are no CONFIG_FILES. 18526# This happens for instance when ./config.status config.h 18527if test -n "$CONFIG_FILES"; then 18528 18529_ACEOF 18530 18531 18532 18533ac_delim='%!_!# ' 18534for ac_last_try in false false false false false :; do 18535 cat >conf$$subs.sed <<_ACEOF 18536SHELL!$SHELL$ac_delim 18537PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 18538PACKAGE_NAME!$PACKAGE_NAME$ac_delim 18539PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 18540PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 18541PACKAGE_STRING!$PACKAGE_STRING$ac_delim 18542PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 18543exec_prefix!$exec_prefix$ac_delim 18544prefix!$prefix$ac_delim 18545program_transform_name!$program_transform_name$ac_delim 18546bindir!$bindir$ac_delim 18547sbindir!$sbindir$ac_delim 18548libexecdir!$libexecdir$ac_delim 18549datarootdir!$datarootdir$ac_delim 18550datadir!$datadir$ac_delim 18551sysconfdir!$sysconfdir$ac_delim 18552sharedstatedir!$sharedstatedir$ac_delim 18553localstatedir!$localstatedir$ac_delim 18554includedir!$includedir$ac_delim 18555oldincludedir!$oldincludedir$ac_delim 18556docdir!$docdir$ac_delim 18557infodir!$infodir$ac_delim 18558htmldir!$htmldir$ac_delim 18559dvidir!$dvidir$ac_delim 18560pdfdir!$pdfdir$ac_delim 18561psdir!$psdir$ac_delim 18562libdir!$libdir$ac_delim 18563localedir!$localedir$ac_delim 18564mandir!$mandir$ac_delim 18565DEFS!$DEFS$ac_delim 18566ECHO_C!$ECHO_C$ac_delim 18567ECHO_N!$ECHO_N$ac_delim 18568ECHO_T!$ECHO_T$ac_delim 18569LIBS!$LIBS$ac_delim 18570build_alias!$build_alias$ac_delim 18571host_alias!$host_alias$ac_delim 18572target_alias!$target_alias$ac_delim 18573LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim 18574LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim 18575LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim 18576LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim 18577LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 18578CC!$CC$ac_delim 18579CFLAGS!$CFLAGS$ac_delim 18580LDFLAGS!$LDFLAGS$ac_delim 18581CPPFLAGS!$CPPFLAGS$ac_delim 18582ac_ct_CC!$ac_ct_CC$ac_delim 18583EXEEXT!$EXEEXT$ac_delim 18584OBJEXT!$OBJEXT$ac_delim 18585CXX!$CXX$ac_delim 18586CXXFLAGS!$CXXFLAGS$ac_delim 18587ac_ct_CXX!$ac_ct_CXX$ac_delim 18588CPP!$CPP$ac_delim 18589CXX_COMPILER!$CXX_COMPILER$ac_delim 18590subdirs!$subdirs$ac_delim 18591ENABLE_POLLY!$ENABLE_POLLY$ac_delim 18592LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 18593build!$build$ac_delim 18594build_cpu!$build_cpu$ac_delim 18595build_vendor!$build_vendor$ac_delim 18596build_os!$build_os$ac_delim 18597host!$host$ac_delim 18598host_cpu!$host_cpu$ac_delim 18599host_vendor!$host_vendor$ac_delim 18600host_os!$host_os$ac_delim 18601target!$target$ac_delim 18602target_cpu!$target_cpu$ac_delim 18603target_vendor!$target_vendor$ac_delim 18604target_os!$target_os$ac_delim 18605OS!$OS$ac_delim 18606HOST_OS!$HOST_OS$ac_delim 18607TARGET_OS!$TARGET_OS$ac_delim 18608LINKALL!$LINKALL$ac_delim 18609NOLINKALL!$NOLINKALL$ac_delim 18610LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 18611LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 18612ARCH!$ARCH$ac_delim 18613LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim 18614HOST_ARCH!$HOST_ARCH$ac_delim 18615LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 18616BUILD_CC!$BUILD_CC$ac_delim 18617BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 18618BUILD_CXX!$BUILD_CXX$ac_delim 18619CVSBUILD!$CVSBUILD$ac_delim 18620ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 18621ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim 18622ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim 18623ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim 18624CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim 18625ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim 18626ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 18627ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 18628DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 18629ENABLE_WERROR!$ENABLE_WERROR$ac_delim 18630ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 18631EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 18632ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim 18633_ACEOF 18634 18635 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 18636 break 18637 elif $ac_last_try; then 18638 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18639echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18640 { (exit 1); exit 1; }; } 18641 else 18642 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18643 fi 18644done 18645 18646ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 18647if test -n "$ac_eof"; then 18648 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 18649 ac_eof=`expr $ac_eof + 1` 18650fi 18651 18652cat >>$CONFIG_STATUS <<_ACEOF 18653cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 18654/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18655_ACEOF 18656sed ' 18657s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 18658s/^/s,@/; s/!/@,|#_!!_#|/ 18659:n 18660t n 18661s/'"$ac_delim"'$/,g/; t 18662s/$/\\/; p 18663N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 18664' >>$CONFIG_STATUS <conf$$subs.sed 18665rm -f conf$$subs.sed 18666cat >>$CONFIG_STATUS <<_ACEOF 18667CEOF$ac_eof 18668_ACEOF 18669 18670 18671ac_delim='%!_!# ' 18672for ac_last_try in false false false false false :; do 18673 cat >conf$$subs.sed <<_ACEOF 18674DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 18675DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 18676KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim 18677JIT!$JIT$ac_delim 18678TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 18679TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim 18680ENABLE_DOCS!$ENABLE_DOCS$ac_delim 18681ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 18682enable_searchengine!$enable_searchengine$ac_delim 18683enable_external_search!$enable_external_search$ac_delim 18684enable_server_based_search!$enable_server_based_search$ac_delim 18685searchengine_url!$searchengine_url$ac_delim 18686extra_search_mappings!$extra_search_mappings$ac_delim 18687QHELPGENERATOR!$QHELPGENERATOR$ac_delim 18688llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim 18689llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim 18690llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim 18691llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim 18692llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim 18693llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim 18694clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim 18695clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim 18696clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim 18697clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim 18698clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim 18699clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim 18700LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 18701ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 18702LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim 18703ENABLE_PIC!$ENABLE_PIC$ac_delim 18704ENABLE_SHARED!$ENABLE_SHARED$ac_delim 18705ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 18706ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 18707ALL_TARGETS!$ALL_TARGETS$ac_delim 18708TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 18709LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 18710LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 18711LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 18712LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 18713OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 18714EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 18715EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 18716CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 18717BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 18718ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim 18719INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 18720ifGNUmake!$ifGNUmake$ac_delim 18721LN_S!$LN_S$ac_delim 18722NM!$NM$ac_delim 18723CMP!$CMP$ac_delim 18724CP!$CP$ac_delim 18725DATE!$DATE$ac_delim 18726FIND!$FIND$ac_delim 18727GREP!$GREP$ac_delim 18728MKDIR!$MKDIR$ac_delim 18729MV!$MV$ac_delim 18730RANLIB!$RANLIB$ac_delim 18731AR!$AR$ac_delim 18732RM!$RM$ac_delim 18733SED!$SED$ac_delim 18734TAR!$TAR$ac_delim 18735BINPWD!$BINPWD$ac_delim 18736DOT!$DOT$ac_delim 18737INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 18738INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 18739INSTALL_DATA!$INSTALL_DATA$ac_delim 18740BZIP2!$BZIP2$ac_delim 18741CAT!$CAT$ac_delim 18742DOXYGEN!$DOXYGEN$ac_delim 18743GROFF!$GROFF$ac_delim 18744GZIPBIN!$GZIPBIN$ac_delim 18745PDFROFF!$PDFROFF$ac_delim 18746ZIP!$ZIP$ac_delim 18747GO!$GO$ac_delim 18748OCAMLFIND!$OCAMLFIND$ac_delim 18749GAS!$GAS$ac_delim 18750HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 18751EGREP!$EGREP$ac_delim 18752NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 18753MISSING_FIELD_INITIALIZERS!$MISSING_FIELD_INITIALIZERS$ac_delim 18754COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 18755NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim 18756NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim 18757NO_COMMENT!$NO_COMMENT$ac_delim 18758PYTHON!$PYTHON$ac_delim 18759HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim 18760HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim 18761USE_OPROFILE!$USE_OPROFILE$ac_delim 18762USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 18763XML2CONFIG!$XML2CONFIG$ac_delim 18764LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 18765LIBXML2_INC!$LIBXML2_INC$ac_delim 18766HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 18767HAVE_LIBZ!$HAVE_LIBZ$ac_delim 18768HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 18769MMAP_FILE!$MMAP_FILE$ac_delim 18770SHLIBEXT!$SHLIBEXT$ac_delim 18771_ACEOF 18772 18773 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 18774 break 18775 elif $ac_last_try; then 18776 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18777echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18778 { (exit 1); exit 1; }; } 18779 else 18780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18781 fi 18782done 18783 18784ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 18785if test -n "$ac_eof"; then 18786 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 18787 ac_eof=`expr $ac_eof + 1` 18788fi 18789 18790cat >>$CONFIG_STATUS <<_ACEOF 18791cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 18792/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18793_ACEOF 18794sed ' 18795s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 18796s/^/s,@/; s/!/@,|#_!!_#|/ 18797:n 18798t n 18799s/'"$ac_delim"'$/,g/; t 18800s/$/\\/; p 18801N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 18802' >>$CONFIG_STATUS <conf$$subs.sed 18803rm -f conf$$subs.sed 18804cat >>$CONFIG_STATUS <<_ACEOF 18805CEOF$ac_eof 18806_ACEOF 18807 18808 18809ac_delim='%!_!# ' 18810for ac_last_try in false false false false false :; do 18811 cat >conf$$subs.sed <<_ACEOF 18812LLVM_PREFIX!$LLVM_PREFIX$ac_delim 18813LLVM_BINDIR!$LLVM_BINDIR$ac_delim 18814LLVM_DATADIR!$LLVM_DATADIR$ac_delim 18815LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 18816LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 18817LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 18818LLVM_INFODIR!$LLVM_INFODIR$ac_delim 18819LLVM_MANDIR!$LLVM_MANDIR$ac_delim 18820LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 18821BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 18822HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim 18823HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim 18824OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 18825ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 18826RPATH!$RPATH$ac_delim 18827RDYNAMIC!$RDYNAMIC$ac_delim 18828program_prefix!$program_prefix$ac_delim 18829LIBOBJS!$LIBOBJS$ac_delim 18830LTLIBOBJS!$LTLIBOBJS$ac_delim 18831_ACEOF 18832 18833 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then 18834 break 18835 elif $ac_last_try; then 18836 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18837echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18838 { (exit 1); exit 1; }; } 18839 else 18840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18841 fi 18842done 18843 18844ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 18845if test -n "$ac_eof"; then 18846 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 18847 ac_eof=`expr $ac_eof + 1` 18848fi 18849 18850cat >>$CONFIG_STATUS <<_ACEOF 18851cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 18852/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 18853_ACEOF 18854sed ' 18855s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 18856s/^/s,@/; s/!/@,|#_!!_#|/ 18857:n 18858t n 18859s/'"$ac_delim"'$/,g/; t 18860s/$/\\/; p 18861N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 18862' >>$CONFIG_STATUS <conf$$subs.sed 18863rm -f conf$$subs.sed 18864cat >>$CONFIG_STATUS <<_ACEOF 18865:end 18866s/|#_!!_#|//g 18867CEOF$ac_eof 18868_ACEOF 18869 18870 18871# VPATH may cause trouble with some makes, so we remove $(srcdir), 18872# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 18873# trailing colons and then remove the whole line if VPATH becomes empty 18874# (actually we leave an empty line to preserve line numbers). 18875if test "x$srcdir" = x.; then 18876 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 18877s/:*\$(srcdir):*/:/ 18878s/:*\${srcdir}:*/:/ 18879s/:*@srcdir@:*/:/ 18880s/^\([^=]*=[ ]*\):*/\1/ 18881s/:*$// 18882s/^[^=]*=[ ]*$// 18883}' 18884fi 18885 18886cat >>$CONFIG_STATUS <<\_ACEOF 18887fi # test -n "$CONFIG_FILES" 18888 18889 18890for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 18891do 18892 case $ac_tag in 18893 :[FHLC]) ac_mode=$ac_tag; continue;; 18894 esac 18895 case $ac_mode$ac_tag in 18896 :[FHL]*:*);; 18897 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 18898echo "$as_me: error: Invalid tag $ac_tag." >&2;} 18899 { (exit 1); exit 1; }; };; 18900 :[FH]-) ac_tag=-:-;; 18901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18902 esac 18903 ac_save_IFS=$IFS 18904 IFS=: 18905 set x $ac_tag 18906 IFS=$ac_save_IFS 18907 shift 18908 ac_file=$1 18909 shift 18910 18911 case $ac_mode in 18912 :L) ac_source=$1;; 18913 :[FH]) 18914 ac_file_inputs= 18915 for ac_f 18916 do 18917 case $ac_f in 18918 -) ac_f="$tmp/stdin";; 18919 *) # Look for the file first in the build tree, then in the source tree 18920 # (if the path is not absolute). The absolute path cannot be DOS-style, 18921 # because $ac_f cannot contain `:'. 18922 test -f "$ac_f" || 18923 case $ac_f in 18924 [\\/$]*) false;; 18925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18926 esac || 18927 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 18928echo "$as_me: error: cannot find input file: $ac_f" >&2;} 18929 { (exit 1); exit 1; }; };; 18930 esac 18931 ac_file_inputs="$ac_file_inputs $ac_f" 18932 done 18933 18934 # Let's still pretend it is `configure' which instantiates (i.e., don't 18935 # use $as_me), people would be surprised to read: 18936 # /* config.h. Generated by config.status. */ 18937 configure_input="Generated from "`IFS=: 18938 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 18939 if test x"$ac_file" != x-; then 18940 configure_input="$ac_file. $configure_input" 18941 { echo "$as_me:$LINENO: creating $ac_file" >&5 18942echo "$as_me: creating $ac_file" >&6;} 18943 fi 18944 18945 case $ac_tag in 18946 *:-:* | *:-) cat >"$tmp/stdin";; 18947 esac 18948 ;; 18949 esac 18950 18951 ac_dir=`$as_dirname -- "$ac_file" || 18952$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18953 X"$ac_file" : 'X\(//\)[^/]' \| \ 18954 X"$ac_file" : 'X\(//\)$' \| \ 18955 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18956echo X"$ac_file" | 18957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18958 s//\1/ 18959 q 18960 } 18961 /^X\(\/\/\)[^/].*/{ 18962 s//\1/ 18963 q 18964 } 18965 /^X\(\/\/\)$/{ 18966 s//\1/ 18967 q 18968 } 18969 /^X\(\/\).*/{ 18970 s//\1/ 18971 q 18972 } 18973 s/.*/./; q'` 18974 { as_dir="$ac_dir" 18975 case $as_dir in #( 18976 -*) as_dir=./$as_dir;; 18977 esac 18978 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 18979 as_dirs= 18980 while :; do 18981 case $as_dir in #( 18982 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 18983 *) as_qdir=$as_dir;; 18984 esac 18985 as_dirs="'$as_qdir' $as_dirs" 18986 as_dir=`$as_dirname -- "$as_dir" || 18987$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18988 X"$as_dir" : 'X\(//\)[^/]' \| \ 18989 X"$as_dir" : 'X\(//\)$' \| \ 18990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18991echo X"$as_dir" | 18992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18993 s//\1/ 18994 q 18995 } 18996 /^X\(\/\/\)[^/].*/{ 18997 s//\1/ 18998 q 18999 } 19000 /^X\(\/\/\)$/{ 19001 s//\1/ 19002 q 19003 } 19004 /^X\(\/\).*/{ 19005 s//\1/ 19006 q 19007 } 19008 s/.*/./; q'` 19009 test -d "$as_dir" && break 19010 done 19011 test -z "$as_dirs" || eval "mkdir $as_dirs" 19012 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 19013echo "$as_me: error: cannot create directory $as_dir" >&2;} 19014 { (exit 1); exit 1; }; }; } 19015 ac_builddir=. 19016 19017case "$ac_dir" in 19018.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19019*) 19020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19021 # A ".." for each directory in $ac_dir_suffix. 19022 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 19023 case $ac_top_builddir_sub in 19024 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19025 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19026 esac ;; 19027esac 19028ac_abs_top_builddir=$ac_pwd 19029ac_abs_builddir=$ac_pwd$ac_dir_suffix 19030# for backward compatibility: 19031ac_top_builddir=$ac_top_build_prefix 19032 19033case $srcdir in 19034 .) # We are building in place. 19035 ac_srcdir=. 19036 ac_top_srcdir=$ac_top_builddir_sub 19037 ac_abs_top_srcdir=$ac_pwd ;; 19038 [\\/]* | ?:[\\/]* ) # Absolute name. 19039 ac_srcdir=$srcdir$ac_dir_suffix; 19040 ac_top_srcdir=$srcdir 19041 ac_abs_top_srcdir=$srcdir ;; 19042 *) # Relative name. 19043 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19044 ac_top_srcdir=$ac_top_build_prefix$srcdir 19045 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19046esac 19047ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19048 19049 19050 case $ac_mode in 19051 :F) 19052 # 19053 # CONFIG_FILE 19054 # 19055 19056 case $INSTALL in 19057 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19058 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19059 esac 19060_ACEOF 19061 19062cat >>$CONFIG_STATUS <<\_ACEOF 19063# If the template does not know about datarootdir, expand it. 19064# FIXME: This hack should be removed a few years after 2.60. 19065ac_datarootdir_hack=; ac_datarootdir_seen= 19066 19067case `sed -n '/datarootdir/ { 19068 p 19069 q 19070} 19071/@datadir@/p 19072/@docdir@/p 19073/@infodir@/p 19074/@localedir@/p 19075/@mandir@/p 19076' $ac_file_inputs` in 19077*datarootdir*) ac_datarootdir_seen=yes;; 19078*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19079 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19080echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19081_ACEOF 19082cat >>$CONFIG_STATUS <<_ACEOF 19083 ac_datarootdir_hack=' 19084 s&@datadir@&$datadir&g 19085 s&@docdir@&$docdir&g 19086 s&@infodir@&$infodir&g 19087 s&@localedir@&$localedir&g 19088 s&@mandir@&$mandir&g 19089 s&\\\${datarootdir}&$datarootdir&g' ;; 19090esac 19091_ACEOF 19092 19093# Neutralize VPATH when `$srcdir' = `.'. 19094# Shell code in configure.ac might set extrasub. 19095# FIXME: do we really want to maintain this feature? 19096cat >>$CONFIG_STATUS <<_ACEOF 19097 sed "$ac_vpsub 19098$extrasub 19099_ACEOF 19100cat >>$CONFIG_STATUS <<\_ACEOF 19101:t 19102/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19103s&@configure_input@&$configure_input&;t t 19104s&@top_builddir@&$ac_top_builddir_sub&;t t 19105s&@srcdir@&$ac_srcdir&;t t 19106s&@abs_srcdir@&$ac_abs_srcdir&;t t 19107s&@top_srcdir@&$ac_top_srcdir&;t t 19108s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19109s&@builddir@&$ac_builddir&;t t 19110s&@abs_builddir@&$ac_abs_builddir&;t t 19111s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19112s&@INSTALL@&$ac_INSTALL&;t t 19113$ac_datarootdir_hack 19114" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 19115 19116test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19117 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 19118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 19119 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19120which seems to be undefined. Please make sure it is defined." >&5 19121echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19122which seems to be undefined. Please make sure it is defined." >&2;} 19123 19124 rm -f "$tmp/stdin" 19125 case $ac_file in 19126 -) cat "$tmp/out"; rm -f "$tmp/out";; 19127 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 19128 esac 19129 ;; 19130 :H) 19131 # 19132 # CONFIG_HEADER 19133 # 19134_ACEOF 19135 19136# Transform confdefs.h into a sed script `conftest.defines', that 19137# substitutes the proper values into config.h.in to produce config.h. 19138rm -f conftest.defines conftest.tail 19139# First, append a space to every undef/define line, to ease matching. 19140echo 's/$/ /' >conftest.defines 19141# Then, protect against being on the right side of a sed subst, or in 19142# an unquoted here document, in config.status. If some macros were 19143# called several times there might be several #defines for the same 19144# symbol, which is useless. But do not sort them, since the last 19145# AC_DEFINE must be honored. 19146ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19147# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 19148# NAME is the cpp macro being defined, VALUE is the value it is being given. 19149# PARAMS is the parameter list in the macro definition--in most cases, it's 19150# just an empty string. 19151ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 19152ac_dB='\\)[ (].*,\\1define\\2' 19153ac_dC=' ' 19154ac_dD=' ,' 19155 19156uniq confdefs.h | 19157 sed -n ' 19158 t rset 19159 :rset 19160 s/^[ ]*#[ ]*define[ ][ ]*// 19161 t ok 19162 d 19163 :ok 19164 s/[\\&,]/\\&/g 19165 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 19166 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 19167 ' >>conftest.defines 19168 19169# Remove the space that was appended to ease matching. 19170# Then replace #undef with comments. This is necessary, for 19171# example, in the case of _POSIX_SOURCE, which is predefined and required 19172# on some systems where configure will not decide to define it. 19173# (The regexp can be short, since the line contains either #define or #undef.) 19174echo 's/ $// 19175s,^[ #]*u.*,/* & */,' >>conftest.defines 19176 19177# Break up conftest.defines: 19178ac_max_sed_lines=50 19179 19180# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 19181# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 19182# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 19183# et cetera. 19184ac_in='$ac_file_inputs' 19185ac_out='"$tmp/out1"' 19186ac_nxt='"$tmp/out2"' 19187 19188while : 19189do 19190 # Write a here document: 19191 cat >>$CONFIG_STATUS <<_ACEOF 19192 # First, check the format of the line: 19193 cat >"\$tmp/defines.sed" <<\\CEOF 19194/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 19195/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 19196b 19197:def 19198_ACEOF 19199 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 19200 echo 'CEOF 19201 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 19202 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 19203 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 19204 grep . conftest.tail >/dev/null || break 19205 rm -f conftest.defines 19206 mv conftest.tail conftest.defines 19207done 19208rm -f conftest.defines conftest.tail 19209 19210echo "ac_result=$ac_in" >>$CONFIG_STATUS 19211cat >>$CONFIG_STATUS <<\_ACEOF 19212 if test x"$ac_file" != x-; then 19213 echo "/* $configure_input */" >"$tmp/config.h" 19214 cat "$ac_result" >>"$tmp/config.h" 19215 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 19216 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 19217echo "$as_me: $ac_file is unchanged" >&6;} 19218 else 19219 rm -f $ac_file 19220 mv "$tmp/config.h" $ac_file 19221 fi 19222 else 19223 echo "/* $configure_input */" 19224 cat "$ac_result" 19225 fi 19226 rm -f "$tmp/out12" 19227 ;; 19228 19229 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 19230echo "$as_me: executing $ac_file commands" >&6;} 19231 ;; 19232 esac 19233 19234 19235 case $ac_file$ac_mode in 19236 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 19237 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 19238 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 19239 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 19240 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 19241 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 19242 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 19243 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 19244 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 19245 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 19246 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 19247 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 19248 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 19249 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 19250 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 19251 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 19252 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 19253 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 19254 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 19255 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 19256 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 19257 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 19258 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 19259 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 19260 19261 esac 19262done # for ac_tag 19263 19264 19265{ (exit 0); exit 0; } 19266_ACEOF 19267chmod +x $CONFIG_STATUS 19268ac_clean_files=$ac_clean_files_save 19269 19270 19271# configure is writing to config.log, and then calls config.status. 19272# config.status does its own redirection, appending to config.log. 19273# Unfortunately, on DOS this fails, as config.log is still kept open 19274# by configure, so config.status won't be able to write to it; its 19275# output is simply discarded. So we exec the FD to /dev/null, 19276# effectively closing config.log, so it can be properly (re)opened and 19277# appended to by config.status. When coming back to configure, we 19278# need to make the FD available again. 19279if test "$no_create" != yes; then 19280 ac_cs_success=: 19281 ac_config_status_args= 19282 test "$silent" = yes && 19283 ac_config_status_args="$ac_config_status_args --quiet" 19284 exec 5>/dev/null 19285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19286 exec 5>>config.log 19287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19288 # would make configure fail if this is the last instruction. 19289 $ac_cs_success || { (exit 1); exit 1; } 19290fi 19291 19292# 19293# CONFIG_SUBDIRS section. 19294# 19295if test "$no_recursion" != yes; then 19296 19297 # Remove --cache-file and --srcdir arguments so they do not pile up. 19298 ac_sub_configure_args= 19299 ac_prev= 19300 eval "set x $ac_configure_args" 19301 shift 19302 for ac_arg 19303 do 19304 if test -n "$ac_prev"; then 19305 ac_prev= 19306 continue 19307 fi 19308 case $ac_arg in 19309 -cache-file | --cache-file | --cache-fil | --cache-fi \ 19310 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 19311 ac_prev=cache_file ;; 19312 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 19313 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 19314 | --c=*) 19315 ;; 19316 --config-cache | -C) 19317 ;; 19318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 19319 ac_prev=srcdir ;; 19320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 19321 ;; 19322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 19323 ac_prev=prefix ;; 19324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 19325 ;; 19326 *) 19327 case $ac_arg in 19328 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 19329 esac 19330 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 19331 esac 19332 done 19333 19334 # Always prepend --prefix to ensure using the same prefix 19335 # in subdir configurations. 19336 ac_arg="--prefix=$prefix" 19337 case $ac_arg in 19338 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 19339 esac 19340 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 19341 19342 ac_popdir=`pwd` 19343 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 19344 19345 # Do not complain, so a configure script can configure whichever 19346 # parts of a large source tree are present. 19347 test -d "$srcdir/$ac_dir" || continue 19348 19349 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 19350 echo "$as_me:$LINENO: $ac_msg" >&5 19351 echo "$ac_msg" >&6 19352 { as_dir="$ac_dir" 19353 case $as_dir in #( 19354 -*) as_dir=./$as_dir;; 19355 esac 19356 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 19357 as_dirs= 19358 while :; do 19359 case $as_dir in #( 19360 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 19361 *) as_qdir=$as_dir;; 19362 esac 19363 as_dirs="'$as_qdir' $as_dirs" 19364 as_dir=`$as_dirname -- "$as_dir" || 19365$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19366 X"$as_dir" : 'X\(//\)[^/]' \| \ 19367 X"$as_dir" : 'X\(//\)$' \| \ 19368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19369echo X"$as_dir" | 19370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19371 s//\1/ 19372 q 19373 } 19374 /^X\(\/\/\)[^/].*/{ 19375 s//\1/ 19376 q 19377 } 19378 /^X\(\/\/\)$/{ 19379 s//\1/ 19380 q 19381 } 19382 /^X\(\/\).*/{ 19383 s//\1/ 19384 q 19385 } 19386 s/.*/./; q'` 19387 test -d "$as_dir" && break 19388 done 19389 test -z "$as_dirs" || eval "mkdir $as_dirs" 19390 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 19391echo "$as_me: error: cannot create directory $as_dir" >&2;} 19392 { (exit 1); exit 1; }; }; } 19393 ac_builddir=. 19394 19395case "$ac_dir" in 19396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19397*) 19398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19399 # A ".." for each directory in $ac_dir_suffix. 19400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 19401 case $ac_top_builddir_sub in 19402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19404 esac ;; 19405esac 19406ac_abs_top_builddir=$ac_pwd 19407ac_abs_builddir=$ac_pwd$ac_dir_suffix 19408# for backward compatibility: 19409ac_top_builddir=$ac_top_build_prefix 19410 19411case $srcdir in 19412 .) # We are building in place. 19413 ac_srcdir=. 19414 ac_top_srcdir=$ac_top_builddir_sub 19415 ac_abs_top_srcdir=$ac_pwd ;; 19416 [\\/]* | ?:[\\/]* ) # Absolute name. 19417 ac_srcdir=$srcdir$ac_dir_suffix; 19418 ac_top_srcdir=$srcdir 19419 ac_abs_top_srcdir=$srcdir ;; 19420 *) # Relative name. 19421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19422 ac_top_srcdir=$ac_top_build_prefix$srcdir 19423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19424esac 19425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19426 19427 19428 cd "$ac_dir" 19429 19430 # Check for guested configure; otherwise get Cygnus style configure. 19431 if test -f "$ac_srcdir/configure.gnu"; then 19432 ac_sub_configure=$ac_srcdir/configure.gnu 19433 elif test -f "$ac_srcdir/configure"; then 19434 ac_sub_configure=$ac_srcdir/configure 19435 elif test -f "$ac_srcdir/configure.in"; then 19436 # This should be Cygnus configure. 19437 ac_sub_configure=$ac_aux_dir/configure 19438 else 19439 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 19440echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 19441 ac_sub_configure= 19442 fi 19443 19444 # The recursion is here. 19445 if test -n "$ac_sub_configure"; then 19446 # Make the cache file name correct relative to the subdirectory. 19447 case $cache_file in 19448 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 19449 *) # Relative name. 19450 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 19451 esac 19452 19453 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 19454echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 19455 # The eval makes quoting arguments work. 19456 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 19457 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 19458 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 19459echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 19460 { (exit 1); exit 1; }; } 19461 fi 19462 19463 cd "$ac_popdir" 19464 done 19465fi 19466 19467echo "" 19468echo "" 19469echo "################################################################################" 19470echo "################################################################################" 19471echo "The LLVM project has deprecated building with configure & make." 19472echo "The autoconf-based makefile build system will be removed in the 3.9 release." 19473echo "" 19474echo "Please migrate to the CMake-based build system." 19475echo "For more information see: http://llvm.org/docs/CMake.html" 19476echo "################################################################################" 19477echo "################################################################################" 19478