1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.60 for LLVM 3.5.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-2014 University of Illinois at Urbana-Champaign. 13 ## --------------------- ## 14 ## M4sh Initialization. ## 15 ## --------------------- ## 16 17 # Be Bourne compatible. 18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25 else 26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 27 fi 28 BIN_SH=xpg4; export BIN_SH # for Tru64 29 DUALCASE=1; export DUALCASE # for MKS sh 30 31 32 # PATH needs CR 33 # Avoid depending upon Character Ranges. 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37 as_cr_digits='0123456789' 38 as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40 # The user is always right. 41 if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51 fi 52 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 58 fi 59 60 61 # IFS 62 # We need space, tab and new line, in precisely that order. Quoting is 63 # there to prevent editors from complaining about space-tab. 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 68 IFS=" "" $as_nl" 69 70 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74 for as_dir in $PATH 75 do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79 done 80 IFS=$as_save_IFS 81 82 ;; 83 esac 84 # We did not find ourselves, most probably we were run as `sh COMMAND' 85 # in which case we are not to be found in the path. 86 if test "x$as_myself" = x; then 87 as_myself=$0 88 fi 89 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97 done 98 PS1='$ ' 99 PS2='> ' 100 PS4='+ ' 101 102 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113 done 114 115 # Required to use basename. 116 if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119 else 120 as_expr=false 121 fi 122 123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125 else 126 as_basename=false 127 fi 128 129 130 # Name of the executable. 131 as_me=`$as_basename -- "$0" || 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223 do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 # Be Bourne compatible 241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248 else 249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 250 fi 251 BIN_SH=xpg4; export BIN_SH # for Tru64 252 DUALCASE=1; export DUALCASE # for MKS sh 253 254 : 255 _ASEOF 256 }; then 257 CONFIG_SHELL=$as_shell 258 as_have_required=yes 259 if { "$as_shell" 2> /dev/null <<\_ASEOF 260 # Be Bourne compatible 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 270 fi 271 BIN_SH=xpg4; export BIN_SH # for Tru64 272 DUALCASE=1; export DUALCASE # for MKS sh 273 274 : 275 (as_func_return () { 276 (exit $1) 277 } 278 as_func_success () { 279 as_func_return 0 280 } 281 as_func_failure () { 282 as_func_return 1 283 } 284 as_func_ret_success () { 285 return 0 286 } 287 as_func_ret_failure () { 288 return 1 289 } 290 291 exitcode=0 292 if as_func_success; then 293 : 294 else 295 exitcode=1 296 echo as_func_success failed. 297 fi 298 299 if as_func_failure; then 300 exitcode=1 301 echo as_func_failure succeeded. 302 fi 303 304 if as_func_ret_success; then 305 : 306 else 307 exitcode=1 308 echo as_func_ret_success failed. 309 fi 310 311 if as_func_ret_failure; then 312 exitcode=1 313 echo as_func_ret_failure succeeded. 314 fi 315 316 if ( set x; as_func_ret_success y && test x = "$1" ); then 317 : 318 else 319 exitcode=1 320 echo positional parameters were not saved. 321 fi 322 323 test $exitcode = 0) || { (exit 1); exit 1; } 324 325 ( 326 as_lineno_1=$LINENO 327 as_lineno_2=$LINENO 328 test "x$as_lineno_1" != "x$as_lineno_2" && 329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 330 331 _ASEOF 332 }; then 333 break 334 fi 335 336 fi 337 338 done 339 340 if test "x$CONFIG_SHELL" != x; then 341 for as_var in BASH_ENV ENV 342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 343 done 344 export CONFIG_SHELL 345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 346 fi 347 348 349 if test $as_have_required = no; then 350 echo This script requires a shell more modern than all the 351 echo shells that I found on your system. Please install a 352 echo modern shell, or manually run the script under such a 353 echo shell if you do have one. 354 { (exit 1); exit 1; } 355 fi 356 357 358 fi 359 360 fi 361 362 363 364 (eval "as_func_return () { 365 (exit \$1) 366 } 367 as_func_success () { 368 as_func_return 0 369 } 370 as_func_failure () { 371 as_func_return 1 372 } 373 as_func_ret_success () { 374 return 0 375 } 376 as_func_ret_failure () { 377 return 1 378 } 379 380 exitcode=0 381 if as_func_success; then 382 : 383 else 384 exitcode=1 385 echo as_func_success failed. 386 fi 387 388 if as_func_failure; then 389 exitcode=1 390 echo as_func_failure succeeded. 391 fi 392 393 if as_func_ret_success; then 394 : 395 else 396 exitcode=1 397 echo as_func_ret_success failed. 398 fi 399 400 if as_func_ret_failure; then 401 exitcode=1 402 echo as_func_ret_failure succeeded. 403 fi 404 405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 406 : 407 else 408 exitcode=1 409 echo positional parameters were not saved. 410 fi 411 412 test \$exitcode = 0") || { 413 echo No shell found that supports shell functions. 414 echo Please tell autoconf@gnu.org about your system, 415 echo including any error possibly output before this 416 echo message 417 } 418 419 420 421 as_lineno_1=$LINENO 422 as_lineno_2=$LINENO 423 test "x$as_lineno_1" != "x$as_lineno_2" && 424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 425 426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 427 # uniformly replaced by the line number. The first 'sed' inserts a 428 # line-number line after each line using $LINENO; the second 'sed' 429 # does the real work. The second script uses 'N' to pair each 430 # line-number line with the line containing $LINENO, and appends 431 # trailing '-' during substitution so that $LINENO is not a special 432 # case at line end. 433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 434 # scripts with optimization help from Paolo Bonzini. Blame Lee 435 # E. McMahon (1931-1989) for sed's syntax. :-) 436 sed -n ' 437 p 438 /[$]LINENO/= 439 ' <$as_myself | 440 sed ' 441 s/[$]LINENO.*/&-/ 442 t lineno 443 b 444 :lineno 445 N 446 :loop 447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 448 t loop 449 s/-\n.*// 450 ' >$as_me.lineno && 451 chmod +x "$as_me.lineno" || 452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 453 { (exit 1); exit 1; }; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461 } 462 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 ECHO_C= ECHO_N= ECHO_T= 471 case `echo -n x` in 472 -n*) 473 case `echo 'x\c'` in 474 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 475 *) ECHO_C='\c';; 476 esac;; 477 *) 478 ECHO_N='-n';; 479 esac 480 481 if expr a : '\(a\)' >/dev/null 2>&1 && 482 test "X`expr 00001 : '.*\(...\)'`" = X001; then 483 as_expr=expr 484 else 485 as_expr=false 486 fi 487 488 rm -f conf$$ conf$$.exe conf$$.file 489 if test -d conf$$.dir; then 490 rm -f conf$$.dir/conf$$.file 491 else 492 rm -f conf$$.dir 493 mkdir conf$$.dir 494 fi 495 echo >conf$$.file 496 if ln -s conf$$.file conf$$ 2>/dev/null; then 497 as_ln_s='ln -s' 498 # ... but there are two gotchas: 499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 501 # In both cases, we have to default to `cp -p'. 502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 503 as_ln_s='cp -p' 504 elif ln conf$$.file conf$$ 2>/dev/null; then 505 as_ln_s=ln 506 else 507 as_ln_s='cp -p' 508 fi 509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510 rmdir conf$$.dir 2>/dev/null 511 512 if mkdir -p . 2>/dev/null; then 513 as_mkdir_p=: 514 else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517 fi 518 519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 520 # systems may use methods other than mode bits to determine executability. 521 cat >conf$$.file <<_ASEOF 522 #! /bin/sh 523 exit 0 524 _ASEOF 525 chmod +x conf$$.file 526 if test -x conf$$.file >/dev/null 2>&1; then 527 as_executable_p="test -x" 528 else 529 as_executable_p=: 530 fi 531 rm -f conf$$.file 532 533 # Sed expression to map a string onto a valid CPP name. 534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536 # Sed expression to map a string onto a valid variable name. 537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541 exec 7<&0 </dev/null 6>&1 542 543 # Name of the host. 544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 545 # so uname gets run too. 546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548 # 549 # Initializations. 550 # 551 ac_default_prefix=/usr/local 552 ac_clean_files= 553 ac_config_libobj_dir=. 554 LIBOBJS= 555 cross_compiling=no 556 subdirs= 557 MFLAGS= 558 MAKEFLAGS= 559 SHELL=${CONFIG_SHELL-/bin/sh} 560 561 # Identity of this package. 562 PACKAGE_NAME='LLVM' 563 PACKAGE_TARNAME='llvm' 564 PACKAGE_VERSION='3.5.0svn' 565 PACKAGE_STRING='LLVM 3.5.0svn' 566 PACKAGE_BUGREPORT='http://llvm.org/bugs/' 567 568 ac_unique_file="lib/IR/Module.cpp" 569 # Factoring default headers for most tests. 570 ac_includes_default="\ 571 #include <stdio.h> 572 #if HAVE_SYS_TYPES_H 573 # include <sys/types.h> 574 #endif 575 #if HAVE_SYS_STAT_H 576 # include <sys/stat.h> 577 #endif 578 #if STDC_HEADERS 579 # include <stdlib.h> 580 # include <stddef.h> 581 #else 582 # if HAVE_STDLIB_H 583 # include <stdlib.h> 584 # endif 585 #endif 586 #if HAVE_STRING_H 587 # if !STDC_HEADERS && HAVE_MEMORY_H 588 # include <memory.h> 589 # endif 590 # include <string.h> 591 #endif 592 #if HAVE_STRINGS_H 593 # include <strings.h> 594 #endif 595 #if HAVE_INTTYPES_H 596 # include <inttypes.h> 597 #endif 598 #if HAVE_STDINT_H 599 # include <stdint.h> 600 #endif 601 #if HAVE_UNISTD_H 602 # include <unistd.h> 603 #endif" 604 605 ac_subst_vars='SHELL 606 PATH_SEPARATOR 607 PACKAGE_NAME 608 PACKAGE_TARNAME 609 PACKAGE_VERSION 610 PACKAGE_STRING 611 PACKAGE_BUGREPORT 612 exec_prefix 613 prefix 614 program_transform_name 615 bindir 616 sbindir 617 libexecdir 618 datarootdir 619 datadir 620 sysconfdir 621 sharedstatedir 622 localstatedir 623 includedir 624 oldincludedir 625 docdir 626 infodir 627 htmldir 628 dvidir 629 pdfdir 630 psdir 631 libdir 632 localedir 633 mandir 634 DEFS 635 ECHO_C 636 ECHO_N 637 ECHO_T 638 LIBS 639 build_alias 640 host_alias 641 target_alias 642 LLVM_VERSION_MAJOR 643 LLVM_VERSION_MINOR 644 LLVM_VERSION_PATCH 645 LLVM_VERSION_SUFFIX 646 LLVM_COPYRIGHT 647 CC 648 CFLAGS 649 LDFLAGS 650 CPPFLAGS 651 ac_ct_CC 652 EXEEXT 653 OBJEXT 654 CXX 655 CXXFLAGS 656 ac_ct_CXX 657 CPP 658 subdirs 659 ENABLE_POLLY 660 LLVM_HAS_POLLY 661 build 662 build_cpu 663 build_vendor 664 build_os 665 host 666 host_cpu 667 host_vendor 668 host_os 669 target 670 target_cpu 671 target_vendor 672 target_os 673 OS 674 HOST_OS 675 TARGET_OS 676 LINKALL 677 NOLINKALL 678 LLVM_ON_UNIX 679 LLVM_ON_WIN32 680 ARCH 681 LLVM_NATIVE_ARCH 682 HOST_ARCH 683 LLVM_CROSS_COMPILING 684 BUILD_CC 685 BUILD_EXEEXT 686 BUILD_CXX 687 CVSBUILD 688 ENABLE_LIBCPP 689 ENABLE_CXX1Y 690 ENABLE_SPLIT_DWARF 691 ENABLE_CLANG_ARCMT 692 CLANG_PLUGIN_SUPPORT 693 ENABLE_CLANG_STATIC_ANALYZER 694 ENABLE_CLANG_REWRITER 695 ENABLE_OPTIMIZED 696 ENABLE_PROFILING 697 DISABLE_ASSERTIONS 698 ENABLE_WERROR 699 ENABLE_EXPENSIVE_CHECKS 700 EXPENSIVE_CHECKS 701 DEBUG_RUNTIME 702 DEBUG_SYMBOLS 703 KEEP_SYMBOLS 704 JIT 705 TARGET_HAS_JIT 706 TARGETS_WITH_JIT 707 ENABLE_DOCS 708 ENABLE_DOXYGEN 709 LLVM_ENABLE_THREADS 710 ENABLE_PTHREADS 711 LLVM_ENABLE_ZLIB 712 ENABLE_PIC 713 ENABLE_SHARED 714 ENABLE_EMBED_STDCXX 715 ENABLE_TIMESTAMPS 716 ALL_TARGETS 717 TARGETS_TO_BUILD 718 LLVM_ENUM_TARGETS 719 LLVM_ENUM_ASM_PRINTERS 720 LLVM_ENUM_ASM_PARSERS 721 LLVM_ENUM_DISASSEMBLERS 722 OPTIMIZE_OPTION 723 EXTRA_OPTIONS 724 EXTRA_LD_OPTIONS 725 CLANG_SRC_ROOT 726 BINUTILS_INCDIR 727 ENABLE_TERMINFO 728 INTERNAL_PREFIX 729 ifGNUmake 730 LN_S 731 NM 732 CMP 733 CP 734 DATE 735 FIND 736 GREP 737 MKDIR 738 MV 739 RANLIB 740 AR 741 RM 742 SED 743 TAR 744 BINPWD 745 GRAPHVIZ 746 DOT 747 FDP 748 NEATO 749 TWOPI 750 CIRCO 751 GV 752 DOTTY 753 XDOT 754 INSTALL_PROGRAM 755 INSTALL_SCRIPT 756 INSTALL_DATA 757 BZIP2 758 CAT 759 DOXYGEN 760 GROFF 761 GZIPBIN 762 PDFROFF 763 ZIP 764 OCAMLC 765 OCAMLOPT 766 OCAMLDEP 767 OCAMLDOC 768 GAS 769 HAVE_LINK_VERSION_SCRIPT 770 EGREP 771 NO_VARIADIC_MACROS 772 NO_MISSING_FIELD_INITIALIZERS 773 COVERED_SWITCH_DEFAULT 774 NO_MAYBE_UNINITIALIZED 775 NO_UNINITIALIZED 776 PYTHON 777 HAVE_DLOPEN 778 HAVE_TERMINFO 779 USE_UDIS86 780 USE_OPROFILE 781 USE_INTEL_JITEVENTS 782 XML2CONFIG 783 LIBXML2_LIBS 784 LIBXML2_INC 785 CXXCPP 786 HAVE_PTHREAD 787 HAVE_LIBZ 788 HUGE_VAL_SANITY 789 MMAP_FILE 790 SHLIBEXT 791 LLVM_PREFIX 792 LLVM_BINDIR 793 LLVM_DATADIR 794 LLVM_DOCSDIR 795 LLVM_ETCDIR 796 LLVM_INCLUDEDIR 797 LLVM_INFODIR 798 LLVM_MANDIR 799 LLVM_CONFIGTIME 800 BINDINGS_TO_BUILD 801 ALL_BINDINGS 802 OCAML_LIBDIR 803 ENABLE_VISIBILITY_INLINES_HIDDEN 804 RPATH 805 RDYNAMIC 806 program_prefix 807 LIBOBJS 808 LTLIBOBJS' 809 ac_subst_files='' 810 ac_precious_vars='build_alias 811 host_alias 812 target_alias 813 CC 814 CFLAGS 815 LDFLAGS 816 CPPFLAGS 817 CXX 818 CXXFLAGS 819 CCC 820 CPP 821 CXXCPP' 822 ac_subdirs_all='projects/test-suite 823 projects/llvm-test 824 projects/poolalloc 825 projects/llvm-poolalloc 826 projects/safecode 827 tools/polly' 828 829 # Initialize some variables set by options. 830 ac_init_help= 831 ac_init_version=false 832 # The variables have the same names as the options, with 833 # dashes changed to underlines. 834 cache_file=/dev/null 835 exec_prefix=NONE 836 no_create= 837 no_recursion= 838 prefix=NONE 839 program_prefix=NONE 840 program_suffix=NONE 841 program_transform_name=s,x,x, 842 silent= 843 site= 844 srcdir= 845 verbose= 846 x_includes=NONE 847 x_libraries=NONE 848 849 # Installation directory options. 850 # These are left unexpanded so users can "make install exec_prefix=/foo" 851 # and all the variables that are supposed to be based on exec_prefix 852 # by default will actually change. 853 # Use braces instead of parens because sh, perl, etc. also accept them. 854 # (The list follows the same order as the GNU Coding Standards.) 855 bindir='${exec_prefix}/bin' 856 sbindir='${exec_prefix}/sbin' 857 libexecdir='${exec_prefix}/libexec' 858 datarootdir='${prefix}/share' 859 datadir='${datarootdir}' 860 sysconfdir='${prefix}/etc' 861 sharedstatedir='${prefix}/com' 862 localstatedir='${prefix}/var' 863 includedir='${prefix}/include' 864 oldincludedir='/usr/include' 865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 866 infodir='${datarootdir}/info' 867 htmldir='${docdir}' 868 dvidir='${docdir}' 869 pdfdir='${docdir}' 870 psdir='${docdir}' 871 libdir='${exec_prefix}/lib' 872 localedir='${datarootdir}/locale' 873 mandir='${datarootdir}/man' 874 875 ac_prev= 876 ac_dashdash= 877 for ac_option 878 do 879 # If the previous option needs an argument, assign it. 880 if test -n "$ac_prev"; then 881 eval $ac_prev=\$ac_option 882 ac_prev= 883 continue 884 fi 885 886 case $ac_option in 887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 888 *) ac_optarg=yes ;; 889 esac 890 891 # Accept the important Cygnus configure options, so we can diagnose typos. 892 893 case $ac_dashdash$ac_option in 894 --) 895 ac_dashdash=yes ;; 896 897 -bindir | --bindir | --bindi | --bind | --bin | --bi) 898 ac_prev=bindir ;; 899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 900 bindir=$ac_optarg ;; 901 902 -build | --build | --buil | --bui | --bu) 903 ac_prev=build_alias ;; 904 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 905 build_alias=$ac_optarg ;; 906 907 -cache-file | --cache-file | --cache-fil | --cache-fi \ 908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 909 ac_prev=cache_file ;; 910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 912 cache_file=$ac_optarg ;; 913 914 --config-cache | -C) 915 cache_file=config.cache ;; 916 917 -datadir | --datadir | --datadi | --datad) 918 ac_prev=datadir ;; 919 -datadir=* | --datadir=* | --datadi=* | --datad=*) 920 datadir=$ac_optarg ;; 921 922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 923 | --dataroo | --dataro | --datar) 924 ac_prev=datarootdir ;; 925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 927 datarootdir=$ac_optarg ;; 928 929 -disable-* | --disable-*) 930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 934 { (exit 1); exit 1; }; } 935 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 936 eval enable_$ac_feature=no ;; 937 938 -docdir | --docdir | --docdi | --doc | --do) 939 ac_prev=docdir ;; 940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 941 docdir=$ac_optarg ;; 942 943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 944 ac_prev=dvidir ;; 945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 946 dvidir=$ac_optarg ;; 947 948 -enable-* | --enable-*) 949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 950 # Reject names that are not valid shell variable names. 951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 953 { (exit 1); exit 1; }; } 954 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 955 eval enable_$ac_feature=\$ac_optarg ;; 956 957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 959 | --exec | --exe | --ex) 960 ac_prev=exec_prefix ;; 961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 963 | --exec=* | --exe=* | --ex=*) 964 exec_prefix=$ac_optarg ;; 965 966 -gas | --gas | --ga | --g) 967 # Obsolete; use --with-gas. 968 with_gas=yes ;; 969 970 -help | --help | --hel | --he | -h) 971 ac_init_help=long ;; 972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 973 ac_init_help=recursive ;; 974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 975 ac_init_help=short ;; 976 977 -host | --host | --hos | --ho) 978 ac_prev=host_alias ;; 979 -host=* | --host=* | --hos=* | --ho=*) 980 host_alias=$ac_optarg ;; 981 982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 983 ac_prev=htmldir ;; 984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 985 | --ht=*) 986 htmldir=$ac_optarg ;; 987 988 -includedir | --includedir | --includedi | --included | --include \ 989 | --includ | --inclu | --incl | --inc) 990 ac_prev=includedir ;; 991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 992 | --includ=* | --inclu=* | --incl=* | --inc=*) 993 includedir=$ac_optarg ;; 994 995 -infodir | --infodir | --infodi | --infod | --info | --inf) 996 ac_prev=infodir ;; 997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 998 infodir=$ac_optarg ;; 999 1000 -libdir | --libdir | --libdi | --libd) 1001 ac_prev=libdir ;; 1002 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1003 libdir=$ac_optarg ;; 1004 1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1006 | --libexe | --libex | --libe) 1007 ac_prev=libexecdir ;; 1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1009 | --libexe=* | --libex=* | --libe=*) 1010 libexecdir=$ac_optarg ;; 1011 1012 -localedir | --localedir | --localedi | --localed | --locale) 1013 ac_prev=localedir ;; 1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1015 localedir=$ac_optarg ;; 1016 1017 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1018 | --localstate | --localstat | --localsta | --localst | --locals) 1019 ac_prev=localstatedir ;; 1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1022 localstatedir=$ac_optarg ;; 1023 1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1025 ac_prev=mandir ;; 1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1027 mandir=$ac_optarg ;; 1028 1029 -nfp | --nfp | --nf) 1030 # Obsolete; use --without-fp. 1031 with_fp=no ;; 1032 1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1034 | --no-cr | --no-c | -n) 1035 no_create=yes ;; 1036 1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1039 no_recursion=yes ;; 1040 1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1043 | --oldin | --oldi | --old | --ol | --o) 1044 ac_prev=oldincludedir ;; 1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1048 oldincludedir=$ac_optarg ;; 1049 1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1051 ac_prev=prefix ;; 1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1053 prefix=$ac_optarg ;; 1054 1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1056 | --program-pre | --program-pr | --program-p) 1057 ac_prev=program_prefix ;; 1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1060 program_prefix=$ac_optarg ;; 1061 1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1063 | --program-suf | --program-su | --program-s) 1064 ac_prev=program_suffix ;; 1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1067 program_suffix=$ac_optarg ;; 1068 1069 -program-transform-name | --program-transform-name \ 1070 | --program-transform-nam | --program-transform-na \ 1071 | --program-transform-n | --program-transform- \ 1072 | --program-transform | --program-transfor \ 1073 | --program-transfo | --program-transf \ 1074 | --program-trans | --program-tran \ 1075 | --progr-tra | --program-tr | --program-t) 1076 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1085 1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1087 ac_prev=pdfdir ;; 1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1089 pdfdir=$ac_optarg ;; 1090 1091 -psdir | --psdir | --psdi | --psd | --ps) 1092 ac_prev=psdir ;; 1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1094 psdir=$ac_optarg ;; 1095 1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1097 | -silent | --silent | --silen | --sile | --sil) 1098 silent=yes ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1149 { echo "$as_me: error: invalid package name: $ac_package" >&2 1150 { (exit 1); exit 1; }; } 1151 ac_package=`echo $ac_package| sed 's/-/_/g'` 1152 eval with_$ac_package=\$ac_optarg ;; 1153 1154 -without-* | --without-*) 1155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1158 { echo "$as_me: error: invalid package name: $ac_package" >&2 1159 { (exit 1); exit 1; }; } 1160 ac_package=`echo $ac_package | sed 's/-/_/g'` 1161 eval with_$ac_package=no ;; 1162 1163 --x) 1164 # Obsolete; use --with-x. 1165 with_x=yes ;; 1166 1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1168 | --x-incl | --x-inc | --x-in | --x-i) 1169 ac_prev=x_includes ;; 1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1172 x_includes=$ac_optarg ;; 1173 1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1176 ac_prev=x_libraries ;; 1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1179 x_libraries=$ac_optarg ;; 1180 1181 -*) { echo "$as_me: error: unrecognized option: $ac_option 1182 Try \`$0 --help' for more information." >&2 1183 { (exit 1); exit 1; }; } 1184 ;; 1185 1186 *=*) 1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1191 { (exit 1); exit 1; }; } 1192 eval $ac_envvar=\$ac_optarg 1193 export $ac_envvar ;; 1194 1195 *) 1196 # FIXME: should be removed in autoconf 3.0. 1197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1201 ;; 1202 1203 esac 1204 done 1205 1206 if test -n "$ac_prev"; then 1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1208 { echo "$as_me: error: missing argument to $ac_option" >&2 1209 { (exit 1); exit 1; }; } 1210 fi 1211 1212 # Be sure to have absolute directory names. 1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1214 datadir sysconfdir sharedstatedir localstatedir includedir \ 1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1216 libdir localedir mandir 1217 do 1218 eval ac_val=\$$ac_var 1219 case $ac_val in 1220 [\\/$]* | ?:[\\/]* ) continue;; 1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1222 esac 1223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1224 { (exit 1); exit 1; }; } 1225 done 1226 1227 # There might be people who depend on the old broken behavior: `$host' 1228 # used to hold the argument of --host etc. 1229 # FIXME: To remove some day. 1230 build=$build_alias 1231 host=$host_alias 1232 target=$target_alias 1233 1234 # FIXME: To remove some day. 1235 if test "x$host_alias" != x; then 1236 if test "x$build_alias" = x; then 1237 cross_compiling=maybe 1238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1239 If a cross compiler is detected then cross compile mode will be used." >&2 1240 elif test "x$build_alias" != "x$host_alias"; then 1241 cross_compiling=yes 1242 fi 1243 fi 1244 1245 ac_tool_prefix= 1246 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1247 1248 test "$silent" = yes && exec 6>/dev/null 1249 1250 1251 ac_pwd=`pwd` && test -n "$ac_pwd" && 1252 ac_ls_di=`ls -di .` && 1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1254 { echo "$as_me: error: Working directory cannot be determined" >&2 1255 { (exit 1); exit 1; }; } 1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1257 { echo "$as_me: error: pwd does not report name of working directory" >&2 1258 { (exit 1); exit 1; }; } 1259 1260 1261 # Find the source files, if location was not specified. 1262 if test -z "$srcdir"; then 1263 ac_srcdir_defaulted=yes 1264 # Try the directory containing this script, then the parent directory. 1265 ac_confdir=`$as_dirname -- "$0" || 1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1267 X"$0" : 'X\(//\)[^/]' \| \ 1268 X"$0" : 'X\(//\)$' \| \ 1269 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1270 echo X"$0" | 1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)[^/].*/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\/\)$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\).*/{ 1284 s//\1/ 1285 q 1286 } 1287 s/.*/./; q'` 1288 srcdir=$ac_confdir 1289 if test ! -r "$srcdir/$ac_unique_file"; then 1290 srcdir=.. 1291 fi 1292 else 1293 ac_srcdir_defaulted=no 1294 fi 1295 if test ! -r "$srcdir/$ac_unique_file"; then 1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1298 { (exit 1); exit 1; }; } 1299 fi 1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1301 ac_abs_confdir=`( 1302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1303 { (exit 1); exit 1; }; } 1304 pwd)` 1305 # When building in place, set srcdir=. 1306 if test "$ac_abs_confdir" = "$ac_pwd"; then 1307 srcdir=. 1308 fi 1309 # Remove unnecessary trailing slashes from srcdir. 1310 # Double slashes in file names in object file debugging info 1311 # mess up M-x gdb in Emacs. 1312 case $srcdir in 1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1314 esac 1315 for ac_var in $ac_precious_vars; do 1316 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1317 eval ac_env_${ac_var}_value=\$${ac_var} 1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1320 done 1321 1322 # 1323 # Report the --help message. 1324 # 1325 if test "$ac_init_help" = "long"; then 1326 # Omit some internal or obsolete options to make the list less imposing. 1327 # This message is too long to be a string in the A/UX 3.1 sh. 1328 cat <<_ACEOF 1329 \`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems. 1330 1331 Usage: $0 [OPTION]... [VAR=VALUE]... 1332 1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1334 VAR=VALUE. See below for descriptions of some of the useful variables. 1335 1336 Defaults for the options are specified in brackets. 1337 1338 Configuration: 1339 -h, --help display this help and exit 1340 --help=short display options specific to this package 1341 --help=recursive display the short help of all the included packages 1342 -V, --version display version information and exit 1343 -q, --quiet, --silent do not print \`checking...' messages 1344 --cache-file=FILE cache test results in FILE [disabled] 1345 -C, --config-cache alias for \`--cache-file=config.cache' 1346 -n, --no-create do not create output files 1347 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1348 1349 Installation directories: 1350 --prefix=PREFIX install architecture-independent files in PREFIX 1351 [$ac_default_prefix] 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1353 [PREFIX] 1354 1355 By default, \`make install' will install all the files in 1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1358 for instance \`--prefix=\$HOME'. 1359 1360 For better control, use the options below. 1361 1362 Fine tuning of the installation directories: 1363 --bindir=DIR user executables [EPREFIX/bin] 1364 --sbindir=DIR system admin executables [EPREFIX/sbin] 1365 --libexecdir=DIR program executables [EPREFIX/libexec] 1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1369 --libdir=DIR object code libraries [EPREFIX/lib] 1370 --includedir=DIR C header files [PREFIX/include] 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1374 --infodir=DIR info documentation [DATAROOTDIR/info] 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1376 --mandir=DIR man documentation [DATAROOTDIR/man] 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1378 --htmldir=DIR html documentation [DOCDIR] 1379 --dvidir=DIR dvi documentation [DOCDIR] 1380 --pdfdir=DIR pdf documentation [DOCDIR] 1381 --psdir=DIR ps documentation [DOCDIR] 1382 _ACEOF 1383 1384 cat <<\_ACEOF 1385 1386 System types: 1387 --build=BUILD configure for building on BUILD [guessed] 1388 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1389 --target=TARGET configure for building compilers for TARGET [HOST] 1390 _ACEOF 1391 fi 1392 1393 if test -n "$ac_init_help"; then 1394 case $ac_init_help in 1395 short | recursive ) echo "Configuration of LLVM 3.5.0svn:";; 1396 esac 1397 cat <<\_ACEOF 1398 1399 Optional Features: 1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1402 --enable-polly Use polly if available (default is YES) 1403 --enable-libcpp Use libc++ if available (default is NO) 1404 --enable-compiler-version-checks 1405 Check the version of the host compiler (default is 1406 YES) 1407 --enable-cxx1y Use c++1y if available (default is NO) 1408 --enable-split-dwarf Use split-dwarf if available (default is NO) 1409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1410 --enable-clang-plugin-support 1411 Enable plugin support in clang (default is YES) 1412 --enable-clang-static-analyzer 1413 Enable building of clang Static Analyzer (default is 1414 YES) 1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES) 1416 --enable-optimized Compile with optimizations enabled (default is NO) 1417 --enable-profiling Compile with profiling enabled (default is NO) 1418 --enable-assertions Compile with assertion checks enabled (default is 1419 YES) 1420 --enable-werror Compile with -Werror enabled (default is NO) 1421 --enable-expensive-checks 1422 Compile with expensive debug checks enabled (default 1423 is NO) 1424 --enable-debug-runtime Build runtime libs with debug symbols (default is 1425 NO) 1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1427 optimization is on and YES if it's off) 1428 --enable-keep-symbols Do not strip installed executables) 1429 --enable-jit Enable Just In Time Compiling (default is YES) 1430 --enable-docs Build documents (default is YES) 1431 --enable-doxygen Build doxygen documentation (default is NO) 1432 --enable-threads Use threads if available (default is YES) 1433 --enable-pthreads Use pthreads if available (default is YES) 1434 --enable-zlib Use zlib for compression/decompression if available 1435 (default is YES) 1436 --enable-pic Build LLVM with Position Independent Code (default 1437 is YES) 1438 --enable-shared Build a shared library and link tools against it 1439 (default is NO) 1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1441 Win32 DLL (default is NO) 1442 --enable-timestamps Enable embedding timestamp information in build 1443 (default is YES) 1444 --enable-backtraces Enable embedding backtraces on crash (default is 1445 YES) 1446 --enable-crash-overrides 1447 Enable crash handling overrides (default is YES) 1448 --enable-targets Build specific host targets: all or 1449 target1,target2,... Valid targets are: host, x86, 1450 x86_64, sparc, powerpc, arm64, arm, aarch64, mips, 1451 hexagon, xcore, msp430, nvptx, systemz, r600, and 1452 cpp (default=all) 1453 --enable-experimental-targets 1454 Build experimental host targets: disable or 1455 target1,target2,... (default=disable) 1456 --enable-bindings Build specific language bindings: 1457 all,auto,none,{binding-name} (default=auto) 1458 --enable-terminfo Query the terminfo database if available (default is 1459 YES) 1460 --enable-libedit Use libedit if available (default is YES) 1461 --enable-libffi Check for the presence of libffi (default is NO) 1462 1463 Optional Packages: 1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1466 --with-optimize-option Select the compiler options to use for optimized 1467 builds 1468 --with-extra-options Specify additional options to compile LLVM with 1469 --with-extra-ld-options Specify additional options to link LLVM with 1470 --with-ocaml-libdir Specify install location for ocaml bindings (default 1471 is stdlib) 1472 --with-clang-srcdir Directory to the out-of-tree Clang source 1473 --with-clang-resource-dir 1474 Relative directory from the Clang binary for 1475 resource files 1476 --with-c-include-dirs Colon separated list of directories clang will 1477 search for headers 1478 --with-gcc-toolchain Directory where gcc is installed. 1479 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1480 --with-binutils-include Specify path to binutils/include/ containing 1481 plugin-api.h file for gold plugin. 1482 --with-bug-report-url Specify the URL where bug reports should be 1483 submitted (default=http://llvm.org/bugs/) 1484 --with-internal-prefix Installation directory for internal files 1485 --with-python path to python 1486 --with-udis86=<path> Use udis86 external x86 disassembler library 1487 --with-oprofile=<prefix> 1488 Tell OProfile >= 0.9.4 how to symbolize JIT output 1489 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1490 1491 1492 Some influential environment variables: 1493 CC C compiler command 1494 CFLAGS C compiler flags 1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1496 nonstandard directory <lib dir> 1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1498 you have headers in a nonstandard directory <include dir> 1499 CXX C++ compiler command 1500 CXXFLAGS C++ compiler flags 1501 CPP C preprocessor 1502 CXXCPP C++ preprocessor 1503 1504 Use these variables to override the choices made by `configure' or to help 1505 it to find libraries and programs with nonstandard names/locations. 1506 1507 Report bugs to <http://llvm.org/bugs/>. 1508 _ACEOF 1509 ac_status=$? 1510 fi 1511 1512 if test "$ac_init_help" = "recursive"; then 1513 # If there are subdirs, report their specific --help. 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1515 test -d "$ac_dir" || continue 1516 ac_builddir=. 1517 1518 case "$ac_dir" in 1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520 *) 1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1522 # A ".." for each directory in $ac_dir_suffix. 1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1524 case $ac_top_builddir_sub in 1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1527 esac ;; 1528 esac 1529 ac_abs_top_builddir=$ac_pwd 1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1531 # for backward compatibility: 1532 ac_top_builddir=$ac_top_build_prefix 1533 1534 case $srcdir in 1535 .) # We are building in place. 1536 ac_srcdir=. 1537 ac_top_srcdir=$ac_top_builddir_sub 1538 ac_abs_top_srcdir=$ac_pwd ;; 1539 [\\/]* | ?:[\\/]* ) # Absolute name. 1540 ac_srcdir=$srcdir$ac_dir_suffix; 1541 ac_top_srcdir=$srcdir 1542 ac_abs_top_srcdir=$srcdir ;; 1543 *) # Relative name. 1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1545 ac_top_srcdir=$ac_top_build_prefix$srcdir 1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1547 esac 1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1549 1550 cd "$ac_dir" || { ac_status=$?; continue; } 1551 # Check for guested configure. 1552 if test -f "$ac_srcdir/configure.gnu"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1555 elif test -f "$ac_srcdir/configure"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure" --help=recursive 1558 else 1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1560 fi || ac_status=$? 1561 cd "$ac_pwd" || { ac_status=$?; break; } 1562 done 1563 fi 1564 1565 test -n "$ac_init_help" && exit $ac_status 1566 if $ac_init_version; then 1567 cat <<\_ACEOF 1568 LLVM configure 3.5.0svn 1569 generated by GNU Autoconf 2.60 1570 1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1573 This configure script is free software; the Free Software Foundation 1574 gives unlimited permission to copy, distribute and modify it. 1575 1576 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign. 1577 _ACEOF 1578 exit 1579 fi 1580 cat >config.log <<_ACEOF 1581 This file contains any messages produced by compilers while 1582 running configure, to aid debugging if configure makes a mistake. 1583 1584 It was created by LLVM $as_me 3.5.0svn, which was 1585 generated by GNU Autoconf 2.60. Invocation command line was 1586 1587 $ $0 $@ 1588 1589 _ACEOF 1590 exec 5>>config.log 1591 { 1592 cat <<_ASUNAME 1593 ## --------- ## 1594 ## Platform. ## 1595 ## --------- ## 1596 1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1598 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1599 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1600 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1601 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1602 1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1605 1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1613 1614 _ASUNAME 1615 1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1617 for as_dir in $PATH 1618 do 1619 IFS=$as_save_IFS 1620 test -z "$as_dir" && as_dir=. 1621 echo "PATH: $as_dir" 1622 done 1623 IFS=$as_save_IFS 1624 1625 } >&5 1626 1627 cat >&5 <<_ACEOF 1628 1629 1630 ## ----------- ## 1631 ## Core tests. ## 1632 ## ----------- ## 1633 1634 _ACEOF 1635 1636 1637 # Keep a trace of the command line. 1638 # Strip out --no-create and --no-recursion so they do not pile up. 1639 # Strip out --silent because we don't want to record it for future runs. 1640 # Also quote any args containing shell meta-characters. 1641 # Make two passes to allow for proper duplicate-argument suppression. 1642 ac_configure_args= 1643 ac_configure_args0= 1644 ac_configure_args1= 1645 ac_must_keep_next=false 1646 for ac_pass in 1 2 1647 do 1648 for ac_arg 1649 do 1650 case $ac_arg in 1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1653 | -silent | --silent | --silen | --sile | --sil) 1654 continue ;; 1655 *\'*) 1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1657 esac 1658 case $ac_pass in 1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1660 2) 1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1662 if test $ac_must_keep_next = true; then 1663 ac_must_keep_next=false # Got value, back to normal. 1664 else 1665 case $ac_arg in 1666 *=* | --config-cache | -C | -disable-* | --disable-* \ 1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1669 | -with-* | --with-* | -without-* | --without-* | --x) 1670 case "$ac_configure_args0 " in 1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1672 esac 1673 ;; 1674 -* ) ac_must_keep_next=true ;; 1675 esac 1676 fi 1677 ac_configure_args="$ac_configure_args '$ac_arg'" 1678 ;; 1679 esac 1680 done 1681 done 1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1684 1685 # When interrupted or exit'd, cleanup temporary files, and complete 1686 # config.log. We remove comments because anyway the quotes in there 1687 # would cause problems or look ugly. 1688 # WARNING: Use '\'' to represent an apostrophe within the trap. 1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1690 trap 'exit_status=$? 1691 # Save into config.log some information that might help in debugging. 1692 { 1693 echo 1694 1695 cat <<\_ASBOX 1696 ## ---------------- ## 1697 ## Cache variables. ## 1698 ## ---------------- ## 1699 _ASBOX 1700 echo 1701 # The following way of writing the cache mishandles newlines in values, 1702 ( 1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1704 eval ac_val=\$$ac_var 1705 case $ac_val in #( 1706 *${as_nl}*) 1707 case $ac_var in #( 1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1710 esac 1711 case $ac_var in #( 1712 _ | IFS | as_nl) ;; #( 1713 *) $as_unset $ac_var ;; 1714 esac ;; 1715 esac 1716 done 1717 (set) 2>&1 | 1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1719 *${as_nl}ac_space=\ *) 1720 sed -n \ 1721 "s/'\''/'\''\\\\'\'''\''/g; 1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1723 ;; #( 1724 *) 1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1726 ;; 1727 esac | 1728 sort 1729 ) 1730 echo 1731 1732 cat <<\_ASBOX 1733 ## ----------------- ## 1734 ## Output variables. ## 1735 ## ----------------- ## 1736 _ASBOX 1737 echo 1738 for ac_var in $ac_subst_vars 1739 do 1740 eval ac_val=\$$ac_var 1741 case $ac_val in 1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1743 esac 1744 echo "$ac_var='\''$ac_val'\''" 1745 done | sort 1746 echo 1747 1748 if test -n "$ac_subst_files"; then 1749 cat <<\_ASBOX 1750 ## ------------------- ## 1751 ## File substitutions. ## 1752 ## ------------------- ## 1753 _ASBOX 1754 echo 1755 for ac_var in $ac_subst_files 1756 do 1757 eval ac_val=\$$ac_var 1758 case $ac_val in 1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1760 esac 1761 echo "$ac_var='\''$ac_val'\''" 1762 done | sort 1763 echo 1764 fi 1765 1766 if test -s confdefs.h; then 1767 cat <<\_ASBOX 1768 ## ----------- ## 1769 ## confdefs.h. ## 1770 ## ----------- ## 1771 _ASBOX 1772 echo 1773 cat confdefs.h 1774 echo 1775 fi 1776 test "$ac_signal" != 0 && 1777 echo "$as_me: caught signal $ac_signal" 1778 echo "$as_me: exit $exit_status" 1779 } >&5 1780 rm -f core *.core core.conftest.* && 1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1782 exit $exit_status 1783 ' 0 1784 for ac_signal in 1 2 13 15; do 1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1786 done 1787 ac_signal=0 1788 1789 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1790 rm -f -r conftest* confdefs.h 1791 1792 # Predefined preprocessor variables. 1793 1794 cat >>confdefs.h <<_ACEOF 1795 #define PACKAGE_NAME "$PACKAGE_NAME" 1796 _ACEOF 1797 1798 1799 cat >>confdefs.h <<_ACEOF 1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1801 _ACEOF 1802 1803 1804 cat >>confdefs.h <<_ACEOF 1805 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1806 _ACEOF 1807 1808 1809 cat >>confdefs.h <<_ACEOF 1810 #define PACKAGE_STRING "$PACKAGE_STRING" 1811 _ACEOF 1812 1813 1814 cat >>confdefs.h <<_ACEOF 1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1816 _ACEOF 1817 1818 1819 # Let the site file select an alternate cache file if it wants to. 1820 # Prefer explicitly selected file to automatically selected ones. 1821 if test -n "$CONFIG_SITE"; then 1822 set x "$CONFIG_SITE" 1823 elif test "x$prefix" != xNONE; then 1824 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1825 else 1826 set x "$ac_default_prefix/share/config.site" \ 1827 "$ac_default_prefix/etc/config.site" 1828 fi 1829 shift 1830 for ac_site_file 1831 do 1832 if test -r "$ac_site_file"; then 1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1834 echo "$as_me: loading site script $ac_site_file" >&6;} 1835 sed 's/^/| /' "$ac_site_file" >&5 1836 . "$ac_site_file" 1837 fi 1838 done 1839 1840 if test -r "$cache_file"; then 1841 # Some versions of bash will fail to source /dev/null (special 1842 # files actually), so we avoid doing that. 1843 if test -f "$cache_file"; then 1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1845 echo "$as_me: loading cache $cache_file" >&6;} 1846 case $cache_file in 1847 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1848 *) . "./$cache_file";; 1849 esac 1850 fi 1851 else 1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1853 echo "$as_me: creating cache $cache_file" >&6;} 1854 >$cache_file 1855 fi 1856 1857 # Check that the precious variables saved in the cache have kept the same 1858 # value. 1859 ac_cache_corrupted=false 1860 for ac_var in $ac_precious_vars; do 1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1862 eval ac_new_set=\$ac_env_${ac_var}_set 1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1864 eval ac_new_val=\$ac_env_${ac_var}_value 1865 case $ac_old_set,$ac_new_set in 1866 set,) 1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1869 ac_cache_corrupted=: ;; 1870 ,set) 1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1873 ac_cache_corrupted=: ;; 1874 ,);; 1875 *) 1876 if test "x$ac_old_val" != "x$ac_new_val"; then 1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1880 echo "$as_me: former value: $ac_old_val" >&2;} 1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1882 echo "$as_me: current value: $ac_new_val" >&2;} 1883 ac_cache_corrupted=: 1884 fi;; 1885 esac 1886 # Pass precious variables to config.status. 1887 if test "$ac_new_set" = set; then 1888 case $ac_new_val in 1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1890 *) ac_arg=$ac_var=$ac_new_val ;; 1891 esac 1892 case " $ac_configure_args " in 1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1895 esac 1896 fi 1897 done 1898 if $ac_cache_corrupted; then 1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1903 { (exit 1); exit 1; }; } 1904 fi 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 ac_ext=c 1931 ac_cpp='$CPP $CPPFLAGS' 1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1935 1936 1937 1938 LLVM_VERSION_MAJOR=3 1939 LLVM_VERSION_MINOR=5 1940 LLVM_VERSION_PATCH=0 1941 LLVM_VERSION_SUFFIX=svn 1942 1943 1944 cat >>confdefs.h <<_ACEOF 1945 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR 1946 _ACEOF 1947 1948 1949 cat >>confdefs.h <<_ACEOF 1950 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR 1951 _ACEOF 1952 1953 1954 cat >>confdefs.h <<_ACEOF 1955 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH 1956 _ACEOF 1957 1958 1959 1960 1961 1962 1963 1964 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign." 1965 1966 1967 1968 1969 1970 1971 1972 ac_aux_dir= 1973 for ac_dir in autoconf "$srcdir"/autoconf; do 1974 if test -f "$ac_dir/install-sh"; then 1975 ac_aux_dir=$ac_dir 1976 ac_install_sh="$ac_aux_dir/install-sh -c" 1977 break 1978 elif test -f "$ac_dir/install.sh"; then 1979 ac_aux_dir=$ac_dir 1980 ac_install_sh="$ac_aux_dir/install.sh -c" 1981 break 1982 elif test -f "$ac_dir/shtool"; then 1983 ac_aux_dir=$ac_dir 1984 ac_install_sh="$ac_aux_dir/shtool install -c" 1985 break 1986 fi 1987 done 1988 if test -z "$ac_aux_dir"; then 1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1990 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1991 { (exit 1); exit 1; }; } 1992 fi 1993 1994 # These three variables are undocumented and unsupported, 1995 # and are intended to be withdrawn in a future Autoconf release. 1996 # They can cause serious problems if a builder's source tree is in a directory 1997 # whose full name contains unusual characters. 1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2000 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2001 2002 2003 2004 if test ${srcdir} != "." ; then 2005 if test -f ${srcdir}/include/llvm/Config/config.h ; then 2006 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 2007 echo "$as_me: error: Already configured in ${srcdir}" >&2;} 2008 { (exit 1); exit 1; }; } 2009 fi 2010 fi 2011 2012 : ${CFLAGS=} 2013 : ${CXXFLAGS=} 2014 2015 ac_ext=c 2016 ac_cpp='$CPP $CPPFLAGS' 2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2020 if test -n "$ac_tool_prefix"; then 2021 for ac_prog in clang gcc 2022 do 2023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2027 if test "${ac_cv_prog_CC+set}" = set; then 2028 echo $ECHO_N "(cached) $ECHO_C" >&6 2029 else 2030 if test -n "$CC"; then 2031 ac_cv_prog_CC="$CC" # Let the user override the test. 2032 else 2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2034 for as_dir in $PATH 2035 do 2036 IFS=$as_save_IFS 2037 test -z "$as_dir" && as_dir=. 2038 for ac_exec_ext in '' $ac_executable_extensions; do 2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2042 break 2 2043 fi 2044 done 2045 done 2046 IFS=$as_save_IFS 2047 2048 fi 2049 fi 2050 CC=$ac_cv_prog_CC 2051 if test -n "$CC"; then 2052 { echo "$as_me:$LINENO: result: $CC" >&5 2053 echo "${ECHO_T}$CC" >&6; } 2054 else 2055 { echo "$as_me:$LINENO: result: no" >&5 2056 echo "${ECHO_T}no" >&6; } 2057 fi 2058 2059 2060 test -n "$CC" && break 2061 done 2062 fi 2063 if test -z "$CC"; then 2064 ac_ct_CC=$CC 2065 for ac_prog in clang gcc 2066 do 2067 # Extract the first word of "$ac_prog", so it can be a program name with args. 2068 set dummy $ac_prog; ac_word=$2 2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2072 echo $ECHO_N "(cached) $ECHO_C" >&6 2073 else 2074 if test -n "$ac_ct_CC"; then 2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2076 else 2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2078 for as_dir in $PATH 2079 do 2080 IFS=$as_save_IFS 2081 test -z "$as_dir" && as_dir=. 2082 for ac_exec_ext in '' $ac_executable_extensions; do 2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2084 ac_cv_prog_ac_ct_CC="$ac_prog" 2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2086 break 2 2087 fi 2088 done 2089 done 2090 IFS=$as_save_IFS 2091 2092 fi 2093 fi 2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2095 if test -n "$ac_ct_CC"; then 2096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2097 echo "${ECHO_T}$ac_ct_CC" >&6; } 2098 else 2099 { echo "$as_me:$LINENO: result: no" >&5 2100 echo "${ECHO_T}no" >&6; } 2101 fi 2102 2103 2104 test -n "$ac_ct_CC" && break 2105 done 2106 2107 if test "x$ac_ct_CC" = x; then 2108 CC="" 2109 else 2110 case $cross_compiling:$ac_tool_warned in 2111 yes:) 2112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2113 whose name does not start with the host triplet. If you think this 2114 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2116 whose name does not start with the host triplet. If you think this 2117 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2118 ac_tool_warned=yes ;; 2119 esac 2120 CC=$ac_ct_CC 2121 fi 2122 fi 2123 2124 2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2126 See \`config.log' for more details." >&5 2127 echo "$as_me: error: no acceptable C compiler found in \$PATH 2128 See \`config.log' for more details." >&2;} 2129 { (exit 1); exit 1; }; } 2130 2131 # Provide some information about the compiler. 2132 echo "$as_me:$LINENO: checking for C compiler version" >&5 2133 ac_compiler=`set X $ac_compile; echo $2` 2134 { (ac_try="$ac_compiler --version >&5" 2135 case "(($ac_try" in 2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2137 *) ac_try_echo=$ac_try;; 2138 esac 2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2140 (eval "$ac_compiler --version >&5") 2>&5 2141 ac_status=$? 2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2143 (exit $ac_status); } 2144 { (ac_try="$ac_compiler -v >&5" 2145 case "(($ac_try" in 2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2147 *) ac_try_echo=$ac_try;; 2148 esac 2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2150 (eval "$ac_compiler -v >&5") 2>&5 2151 ac_status=$? 2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2153 (exit $ac_status); } 2154 { (ac_try="$ac_compiler -V >&5" 2155 case "(($ac_try" in 2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2157 *) ac_try_echo=$ac_try;; 2158 esac 2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2160 (eval "$ac_compiler -V >&5") 2>&5 2161 ac_status=$? 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); } 2164 2165 cat >conftest.$ac_ext <<_ACEOF 2166 /* confdefs.h. */ 2167 _ACEOF 2168 cat confdefs.h >>conftest.$ac_ext 2169 cat >>conftest.$ac_ext <<_ACEOF 2170 /* end confdefs.h. */ 2171 2172 int 2173 main () 2174 { 2175 2176 ; 2177 return 0; 2178 } 2179 _ACEOF 2180 ac_clean_files_save=$ac_clean_files 2181 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2182 # Try to create an executable without -o first, disregard a.out. 2183 # It will help us diagnose broken compilers, and finding out an intuition 2184 # of exeext. 2185 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2188 # 2189 # List of possible output files, starting from the most likely. 2190 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2191 # only as a last resort. b.out is created by i960 compilers. 2192 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2193 # 2194 # The IRIX 6 linker writes into existing files which may not be 2195 # executable, retaining their permissions. Remove them first so a 2196 # subsequent execution test works. 2197 ac_rmfiles= 2198 for ac_file in $ac_files 2199 do 2200 case $ac_file in 2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2202 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2203 esac 2204 done 2205 rm -f $ac_rmfiles 2206 2207 if { (ac_try="$ac_link_default" 2208 case "(($ac_try" in 2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2210 *) ac_try_echo=$ac_try;; 2211 esac 2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2213 (eval "$ac_link_default") 2>&5 2214 ac_status=$? 2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2216 (exit $ac_status); }; then 2217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2219 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2220 # so that the user can short-circuit this test for compilers unknown to 2221 # Autoconf. 2222 for ac_file in $ac_files 2223 do 2224 test -f "$ac_file" || continue 2225 case $ac_file in 2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2227 ;; 2228 [ab].out ) 2229 # We found the default executable, but exeext='' is most 2230 # certainly right. 2231 break;; 2232 *.* ) 2233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2234 then :; else 2235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2236 fi 2237 # We set ac_cv_exeext here because the later test for it is not 2238 # safe: cross compilers may not add the suffix if given an `-o' 2239 # argument, so we may need to know it at that point already. 2240 # Even if this section looks crufty: it has the advantage of 2241 # actually working. 2242 break;; 2243 * ) 2244 break;; 2245 esac 2246 done 2247 test "$ac_cv_exeext" = no && ac_cv_exeext= 2248 2249 else 2250 echo "$as_me: failed program was:" >&5 2251 sed 's/^/| /' conftest.$ac_ext >&5 2252 2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2254 See \`config.log' for more details." >&5 2255 echo "$as_me: error: C compiler cannot create executables 2256 See \`config.log' for more details." >&2;} 2257 { (exit 77); exit 77; }; } 2258 fi 2259 2260 ac_exeext=$ac_cv_exeext 2261 { echo "$as_me:$LINENO: result: $ac_file" >&5 2262 echo "${ECHO_T}$ac_file" >&6; } 2263 2264 # Check that the compiler produces executables we can run. If not, either 2265 # the compiler is broken, or we cross compile. 2266 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2267 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2269 # If not cross compiling, check that we can run a simple program. 2270 if test "$cross_compiling" != yes; then 2271 if { ac_try='./$ac_file' 2272 { (case "(($ac_try" in 2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2274 *) ac_try_echo=$ac_try;; 2275 esac 2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2277 (eval "$ac_try") 2>&5 2278 ac_status=$? 2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2280 (exit $ac_status); }; }; then 2281 cross_compiling=no 2282 else 2283 if test "$cross_compiling" = maybe; then 2284 cross_compiling=yes 2285 else 2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2287 If you meant to cross compile, use \`--host'. 2288 See \`config.log' for more details." >&5 2289 echo "$as_me: error: cannot run C compiled programs. 2290 If you meant to cross compile, use \`--host'. 2291 See \`config.log' for more details." >&2;} 2292 { (exit 1); exit 1; }; } 2293 fi 2294 fi 2295 fi 2296 { echo "$as_me:$LINENO: result: yes" >&5 2297 echo "${ECHO_T}yes" >&6; } 2298 2299 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2300 ac_clean_files=$ac_clean_files_save 2301 # Check that the compiler produces executables we can run. If not, either 2302 # the compiler is broken, or we cross compile. 2303 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2304 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2305 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2306 echo "${ECHO_T}$cross_compiling" >&6; } 2307 2308 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2309 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2310 if { (ac_try="$ac_link" 2311 case "(($ac_try" in 2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2313 *) ac_try_echo=$ac_try;; 2314 esac 2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2316 (eval "$ac_link") 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); }; then 2320 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2321 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2322 # work properly (i.e., refer to `conftest.exe'), while it won't with 2323 # `rm'. 2324 for ac_file in conftest.exe conftest conftest.*; do 2325 test -f "$ac_file" || continue 2326 case $ac_file in 2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2329 break;; 2330 * ) break;; 2331 esac 2332 done 2333 else 2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2335 See \`config.log' for more details." >&5 2336 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2337 See \`config.log' for more details." >&2;} 2338 { (exit 1); exit 1; }; } 2339 fi 2340 2341 rm -f conftest$ac_cv_exeext 2342 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2343 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2344 2345 rm -f conftest.$ac_ext 2346 EXEEXT=$ac_cv_exeext 2347 ac_exeext=$EXEEXT 2348 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2349 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2350 if test "${ac_cv_objext+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352 else 2353 cat >conftest.$ac_ext <<_ACEOF 2354 /* confdefs.h. */ 2355 _ACEOF 2356 cat confdefs.h >>conftest.$ac_ext 2357 cat >>conftest.$ac_ext <<_ACEOF 2358 /* end confdefs.h. */ 2359 2360 int 2361 main () 2362 { 2363 2364 ; 2365 return 0; 2366 } 2367 _ACEOF 2368 rm -f conftest.o conftest.obj 2369 if { (ac_try="$ac_compile" 2370 case "(($ac_try" in 2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2372 *) ac_try_echo=$ac_try;; 2373 esac 2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2375 (eval "$ac_compile") 2>&5 2376 ac_status=$? 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); }; then 2379 for ac_file in conftest.o conftest.obj conftest.*; do 2380 test -f "$ac_file" || continue; 2381 case $ac_file in 2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2384 break;; 2385 esac 2386 done 2387 else 2388 echo "$as_me: failed program was:" >&5 2389 sed 's/^/| /' conftest.$ac_ext >&5 2390 2391 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2392 See \`config.log' for more details." >&5 2393 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2394 See \`config.log' for more details." >&2;} 2395 { (exit 1); exit 1; }; } 2396 fi 2397 2398 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2399 fi 2400 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2401 echo "${ECHO_T}$ac_cv_objext" >&6; } 2402 OBJEXT=$ac_cv_objext 2403 ac_objext=$OBJEXT 2404 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2405 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2406 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2407 echo $ECHO_N "(cached) $ECHO_C" >&6 2408 else 2409 cat >conftest.$ac_ext <<_ACEOF 2410 /* confdefs.h. */ 2411 _ACEOF 2412 cat confdefs.h >>conftest.$ac_ext 2413 cat >>conftest.$ac_ext <<_ACEOF 2414 /* end confdefs.h. */ 2415 2416 int 2417 main () 2418 { 2419 #ifndef __GNUC__ 2420 choke me 2421 #endif 2422 2423 ; 2424 return 0; 2425 } 2426 _ACEOF 2427 rm -f conftest.$ac_objext 2428 if { (ac_try="$ac_compile" 2429 case "(($ac_try" in 2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2431 *) ac_try_echo=$ac_try;; 2432 esac 2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2434 (eval "$ac_compile") 2>conftest.er1 2435 ac_status=$? 2436 grep -v '^ *+' conftest.er1 >conftest.err 2437 rm -f conftest.er1 2438 cat conftest.err >&5 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); } && 2441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2442 { (case "(($ac_try" in 2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2444 *) ac_try_echo=$ac_try;; 2445 esac 2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2447 (eval "$ac_try") 2>&5 2448 ac_status=$? 2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2450 (exit $ac_status); }; } && 2451 { ac_try='test -s conftest.$ac_objext' 2452 { (case "(($ac_try" in 2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2454 *) ac_try_echo=$ac_try;; 2455 esac 2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2457 (eval "$ac_try") 2>&5 2458 ac_status=$? 2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2460 (exit $ac_status); }; }; then 2461 ac_compiler_gnu=yes 2462 else 2463 echo "$as_me: failed program was:" >&5 2464 sed 's/^/| /' conftest.$ac_ext >&5 2465 2466 ac_compiler_gnu=no 2467 fi 2468 2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2470 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2471 2472 fi 2473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2475 GCC=`test $ac_compiler_gnu = yes && echo yes` 2476 ac_test_CFLAGS=${CFLAGS+set} 2477 ac_save_CFLAGS=$CFLAGS 2478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2480 if test "${ac_cv_prog_cc_g+set}" = set; then 2481 echo $ECHO_N "(cached) $ECHO_C" >&6 2482 else 2483 ac_save_c_werror_flag=$ac_c_werror_flag 2484 ac_c_werror_flag=yes 2485 ac_cv_prog_cc_g=no 2486 CFLAGS="-g" 2487 cat >conftest.$ac_ext <<_ACEOF 2488 /* confdefs.h. */ 2489 _ACEOF 2490 cat confdefs.h >>conftest.$ac_ext 2491 cat >>conftest.$ac_ext <<_ACEOF 2492 /* end confdefs.h. */ 2493 2494 int 2495 main () 2496 { 2497 2498 ; 2499 return 0; 2500 } 2501 _ACEOF 2502 rm -f conftest.$ac_objext 2503 if { (ac_try="$ac_compile" 2504 case "(($ac_try" in 2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2506 *) ac_try_echo=$ac_try;; 2507 esac 2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2509 (eval "$ac_compile") 2>conftest.er1 2510 ac_status=$? 2511 grep -v '^ *+' conftest.er1 >conftest.err 2512 rm -f conftest.er1 2513 cat conftest.err >&5 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); } && 2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2517 { (case "(($ac_try" in 2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2519 *) ac_try_echo=$ac_try;; 2520 esac 2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2522 (eval "$ac_try") 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); }; } && 2526 { ac_try='test -s conftest.$ac_objext' 2527 { (case "(($ac_try" in 2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2529 *) ac_try_echo=$ac_try;; 2530 esac 2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2532 (eval "$ac_try") 2>&5 2533 ac_status=$? 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); }; }; then 2536 ac_cv_prog_cc_g=yes 2537 else 2538 echo "$as_me: failed program was:" >&5 2539 sed 's/^/| /' conftest.$ac_ext >&5 2540 2541 CFLAGS="" 2542 cat >conftest.$ac_ext <<_ACEOF 2543 /* confdefs.h. */ 2544 _ACEOF 2545 cat confdefs.h >>conftest.$ac_ext 2546 cat >>conftest.$ac_ext <<_ACEOF 2547 /* end confdefs.h. */ 2548 2549 int 2550 main () 2551 { 2552 2553 ; 2554 return 0; 2555 } 2556 _ACEOF 2557 rm -f conftest.$ac_objext 2558 if { (ac_try="$ac_compile" 2559 case "(($ac_try" in 2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2561 *) ac_try_echo=$ac_try;; 2562 esac 2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2564 (eval "$ac_compile") 2>conftest.er1 2565 ac_status=$? 2566 grep -v '^ *+' conftest.er1 >conftest.err 2567 rm -f conftest.er1 2568 cat conftest.err >&5 2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2570 (exit $ac_status); } && 2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2572 { (case "(($ac_try" in 2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2574 *) ac_try_echo=$ac_try;; 2575 esac 2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2577 (eval "$ac_try") 2>&5 2578 ac_status=$? 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); }; } && 2581 { ac_try='test -s conftest.$ac_objext' 2582 { (case "(($ac_try" in 2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2584 *) ac_try_echo=$ac_try;; 2585 esac 2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2587 (eval "$ac_try") 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; }; then 2591 : 2592 else 2593 echo "$as_me: failed program was:" >&5 2594 sed 's/^/| /' conftest.$ac_ext >&5 2595 2596 ac_c_werror_flag=$ac_save_c_werror_flag 2597 CFLAGS="-g" 2598 cat >conftest.$ac_ext <<_ACEOF 2599 /* confdefs.h. */ 2600 _ACEOF 2601 cat confdefs.h >>conftest.$ac_ext 2602 cat >>conftest.$ac_ext <<_ACEOF 2603 /* end confdefs.h. */ 2604 2605 int 2606 main () 2607 { 2608 2609 ; 2610 return 0; 2611 } 2612 _ACEOF 2613 rm -f conftest.$ac_objext 2614 if { (ac_try="$ac_compile" 2615 case "(($ac_try" in 2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2617 *) ac_try_echo=$ac_try;; 2618 esac 2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2620 (eval "$ac_compile") 2>conftest.er1 2621 ac_status=$? 2622 grep -v '^ *+' conftest.er1 >conftest.err 2623 rm -f conftest.er1 2624 cat conftest.err >&5 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); } && 2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2628 { (case "(($ac_try" in 2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2630 *) ac_try_echo=$ac_try;; 2631 esac 2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2633 (eval "$ac_try") 2>&5 2634 ac_status=$? 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2636 (exit $ac_status); }; } && 2637 { ac_try='test -s conftest.$ac_objext' 2638 { (case "(($ac_try" in 2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2640 *) ac_try_echo=$ac_try;; 2641 esac 2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2643 (eval "$ac_try") 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); }; }; then 2647 ac_cv_prog_cc_g=yes 2648 else 2649 echo "$as_me: failed program was:" >&5 2650 sed 's/^/| /' conftest.$ac_ext >&5 2651 2652 2653 fi 2654 2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2656 fi 2657 2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2659 fi 2660 2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2662 ac_c_werror_flag=$ac_save_c_werror_flag 2663 fi 2664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2666 if test "$ac_test_CFLAGS" = set; then 2667 CFLAGS=$ac_save_CFLAGS 2668 elif test $ac_cv_prog_cc_g = yes; then 2669 if test "$GCC" = yes; then 2670 CFLAGS="-g -O2" 2671 else 2672 CFLAGS="-g" 2673 fi 2674 else 2675 if test "$GCC" = yes; then 2676 CFLAGS="-O2" 2677 else 2678 CFLAGS= 2679 fi 2680 fi 2681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2683 if test "${ac_cv_prog_cc_c89+set}" = set; then 2684 echo $ECHO_N "(cached) $ECHO_C" >&6 2685 else 2686 ac_cv_prog_cc_c89=no 2687 ac_save_CC=$CC 2688 cat >conftest.$ac_ext <<_ACEOF 2689 /* confdefs.h. */ 2690 _ACEOF 2691 cat confdefs.h >>conftest.$ac_ext 2692 cat >>conftest.$ac_ext <<_ACEOF 2693 /* end confdefs.h. */ 2694 #include <stdarg.h> 2695 #include <stdio.h> 2696 #include <sys/types.h> 2697 #include <sys/stat.h> 2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2699 struct buf { int x; }; 2700 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2701 static char *e (p, i) 2702 char **p; 2703 int i; 2704 { 2705 return p[i]; 2706 } 2707 static char *f (char * (*g) (char **, int), char **p, ...) 2708 { 2709 char *s; 2710 va_list v; 2711 va_start (v,p); 2712 s = g (p, va_arg (v,int)); 2713 va_end (v); 2714 return s; 2715 } 2716 2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2718 function prototypes and stuff, but not '\xHH' hex character constants. 2719 These don't provoke an error unfortunately, instead are silently treated 2720 as 'x'. The following induces an error, until -std is added to get 2721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2722 array size at least. It's necessary to write '\x00'==0 to get something 2723 that's true only with -std. */ 2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2725 2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2727 inside strings and character constants. */ 2728 #define FOO(x) 'x' 2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2730 2731 int test (int i, double x); 2732 struct s1 {int (*f) (int a);}; 2733 struct s2 {int (*f) (double a);}; 2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2735 int argc; 2736 char **argv; 2737 int 2738 main () 2739 { 2740 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2741 ; 2742 return 0; 2743 } 2744 _ACEOF 2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2747 do 2748 CC="$ac_save_CC $ac_arg" 2749 rm -f conftest.$ac_objext 2750 if { (ac_try="$ac_compile" 2751 case "(($ac_try" in 2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2753 *) ac_try_echo=$ac_try;; 2754 esac 2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2756 (eval "$ac_compile") 2>conftest.er1 2757 ac_status=$? 2758 grep -v '^ *+' conftest.er1 >conftest.err 2759 rm -f conftest.er1 2760 cat conftest.err >&5 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); } && 2763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2764 { (case "(($ac_try" in 2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2766 *) ac_try_echo=$ac_try;; 2767 esac 2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2769 (eval "$ac_try") 2>&5 2770 ac_status=$? 2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2772 (exit $ac_status); }; } && 2773 { ac_try='test -s conftest.$ac_objext' 2774 { (case "(($ac_try" in 2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2776 *) ac_try_echo=$ac_try;; 2777 esac 2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2779 (eval "$ac_try") 2>&5 2780 ac_status=$? 2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2782 (exit $ac_status); }; }; then 2783 ac_cv_prog_cc_c89=$ac_arg 2784 else 2785 echo "$as_me: failed program was:" >&5 2786 sed 's/^/| /' conftest.$ac_ext >&5 2787 2788 2789 fi 2790 2791 rm -f core conftest.err conftest.$ac_objext 2792 test "x$ac_cv_prog_cc_c89" != "xno" && break 2793 done 2794 rm -f conftest.$ac_ext 2795 CC=$ac_save_CC 2796 2797 fi 2798 # AC_CACHE_VAL 2799 case "x$ac_cv_prog_cc_c89" in 2800 x) 2801 { echo "$as_me:$LINENO: result: none needed" >&5 2802 echo "${ECHO_T}none needed" >&6; } ;; 2803 xno) 2804 { echo "$as_me:$LINENO: result: unsupported" >&5 2805 echo "${ECHO_T}unsupported" >&6; } ;; 2806 *) 2807 CC="$CC $ac_cv_prog_cc_c89" 2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2810 esac 2811 2812 2813 ac_ext=c 2814 ac_cpp='$CPP $CPPFLAGS' 2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2818 2819 ac_ext=cpp 2820 ac_cpp='$CXXCPP $CPPFLAGS' 2821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2824 if test -z "$CXX"; then 2825 if test -n "$CCC"; then 2826 CXX=$CCC 2827 else 2828 if test -n "$ac_tool_prefix"; then 2829 for ac_prog in clang++ g++ 2830 do 2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2835 if test "${ac_cv_prog_CXX+set}" = set; then 2836 echo $ECHO_N "(cached) $ECHO_C" >&6 2837 else 2838 if test -n "$CXX"; then 2839 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2840 else 2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2842 for as_dir in $PATH 2843 do 2844 IFS=$as_save_IFS 2845 test -z "$as_dir" && as_dir=. 2846 for ac_exec_ext in '' $ac_executable_extensions; do 2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2848 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2850 break 2 2851 fi 2852 done 2853 done 2854 IFS=$as_save_IFS 2855 2856 fi 2857 fi 2858 CXX=$ac_cv_prog_CXX 2859 if test -n "$CXX"; then 2860 { echo "$as_me:$LINENO: result: $CXX" >&5 2861 echo "${ECHO_T}$CXX" >&6; } 2862 else 2863 { echo "$as_me:$LINENO: result: no" >&5 2864 echo "${ECHO_T}no" >&6; } 2865 fi 2866 2867 2868 test -n "$CXX" && break 2869 done 2870 fi 2871 if test -z "$CXX"; then 2872 ac_ct_CXX=$CXX 2873 for ac_prog in clang++ g++ 2874 do 2875 # Extract the first word of "$ac_prog", so it can be a program name with args. 2876 set dummy $ac_prog; ac_word=$2 2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2879 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2880 echo $ECHO_N "(cached) $ECHO_C" >&6 2881 else 2882 if test -n "$ac_ct_CXX"; then 2883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2884 else 2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886 for as_dir in $PATH 2887 do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2892 ac_cv_prog_ac_ct_CXX="$ac_prog" 2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896 done 2897 done 2898 IFS=$as_save_IFS 2899 2900 fi 2901 fi 2902 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2903 if test -n "$ac_ct_CXX"; then 2904 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2905 echo "${ECHO_T}$ac_ct_CXX" >&6; } 2906 else 2907 { echo "$as_me:$LINENO: result: no" >&5 2908 echo "${ECHO_T}no" >&6; } 2909 fi 2910 2911 2912 test -n "$ac_ct_CXX" && break 2913 done 2914 2915 if test "x$ac_ct_CXX" = x; then 2916 CXX="g++" 2917 else 2918 case $cross_compiling:$ac_tool_warned in 2919 yes:) 2920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2921 whose name does not start with the host triplet. If you think this 2922 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2924 whose name does not start with the host triplet. If you think this 2925 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2926 ac_tool_warned=yes ;; 2927 esac 2928 CXX=$ac_ct_CXX 2929 fi 2930 fi 2931 2932 fi 2933 fi 2934 # Provide some information about the compiler. 2935 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2936 ac_compiler=`set X $ac_compile; echo $2` 2937 { (ac_try="$ac_compiler --version >&5" 2938 case "(($ac_try" in 2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2940 *) ac_try_echo=$ac_try;; 2941 esac 2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2943 (eval "$ac_compiler --version >&5") 2>&5 2944 ac_status=$? 2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2946 (exit $ac_status); } 2947 { (ac_try="$ac_compiler -v >&5" 2948 case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951 esac 2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2953 (eval "$ac_compiler -v >&5") 2>&5 2954 ac_status=$? 2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2956 (exit $ac_status); } 2957 { (ac_try="$ac_compiler -V >&5" 2958 case "(($ac_try" in 2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2960 *) ac_try_echo=$ac_try;; 2961 esac 2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2963 (eval "$ac_compiler -V >&5") 2>&5 2964 ac_status=$? 2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2966 (exit $ac_status); } 2967 2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2969 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2970 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2971 echo $ECHO_N "(cached) $ECHO_C" >&6 2972 else 2973 cat >conftest.$ac_ext <<_ACEOF 2974 /* confdefs.h. */ 2975 _ACEOF 2976 cat confdefs.h >>conftest.$ac_ext 2977 cat >>conftest.$ac_ext <<_ACEOF 2978 /* end confdefs.h. */ 2979 2980 int 2981 main () 2982 { 2983 #ifndef __GNUC__ 2984 choke me 2985 #endif 2986 2987 ; 2988 return 0; 2989 } 2990 _ACEOF 2991 rm -f conftest.$ac_objext 2992 if { (ac_try="$ac_compile" 2993 case "(($ac_try" in 2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2995 *) ac_try_echo=$ac_try;; 2996 esac 2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2998 (eval "$ac_compile") 2>conftest.er1 2999 ac_status=$? 3000 grep -v '^ *+' conftest.er1 >conftest.err 3001 rm -f conftest.er1 3002 cat conftest.err >&5 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); } && 3005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3006 { (case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009 esac 3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3011 (eval "$ac_try") 2>&5 3012 ac_status=$? 3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3014 (exit $ac_status); }; } && 3015 { ac_try='test -s conftest.$ac_objext' 3016 { (case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019 esac 3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3021 (eval "$ac_try") 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); }; }; then 3025 ac_compiler_gnu=yes 3026 else 3027 echo "$as_me: failed program was:" >&5 3028 sed 's/^/| /' conftest.$ac_ext >&5 3029 3030 ac_compiler_gnu=no 3031 fi 3032 3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3035 3036 fi 3037 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3039 GXX=`test $ac_compiler_gnu = yes && echo yes` 3040 ac_test_CXXFLAGS=${CXXFLAGS+set} 3041 ac_save_CXXFLAGS=$CXXFLAGS 3042 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3043 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3044 if test "${ac_cv_prog_cxx_g+set}" = set; then 3045 echo $ECHO_N "(cached) $ECHO_C" >&6 3046 else 3047 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3048 ac_cxx_werror_flag=yes 3049 ac_cv_prog_cxx_g=no 3050 CXXFLAGS="-g" 3051 cat >conftest.$ac_ext <<_ACEOF 3052 /* confdefs.h. */ 3053 _ACEOF 3054 cat confdefs.h >>conftest.$ac_ext 3055 cat >>conftest.$ac_ext <<_ACEOF 3056 /* end confdefs.h. */ 3057 3058 int 3059 main () 3060 { 3061 3062 ; 3063 return 0; 3064 } 3065 _ACEOF 3066 rm -f conftest.$ac_objext 3067 if { (ac_try="$ac_compile" 3068 case "(($ac_try" in 3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *) ac_try_echo=$ac_try;; 3071 esac 3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3073 (eval "$ac_compile") 2>conftest.er1 3074 ac_status=$? 3075 grep -v '^ *+' conftest.er1 >conftest.err 3076 rm -f conftest.er1 3077 cat conftest.err >&5 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); } && 3080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3081 { (case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084 esac 3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3086 (eval "$ac_try") 2>&5 3087 ac_status=$? 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); }; } && 3090 { ac_try='test -s conftest.$ac_objext' 3091 { (case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094 esac 3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3096 (eval "$ac_try") 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); }; }; then 3100 ac_cv_prog_cxx_g=yes 3101 else 3102 echo "$as_me: failed program was:" >&5 3103 sed 's/^/| /' conftest.$ac_ext >&5 3104 3105 CXXFLAGS="" 3106 cat >conftest.$ac_ext <<_ACEOF 3107 /* confdefs.h. */ 3108 _ACEOF 3109 cat confdefs.h >>conftest.$ac_ext 3110 cat >>conftest.$ac_ext <<_ACEOF 3111 /* end confdefs.h. */ 3112 3113 int 3114 main () 3115 { 3116 3117 ; 3118 return 0; 3119 } 3120 _ACEOF 3121 rm -f conftest.$ac_objext 3122 if { (ac_try="$ac_compile" 3123 case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126 esac 3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3128 (eval "$ac_compile") 2>conftest.er1 3129 ac_status=$? 3130 grep -v '^ *+' conftest.er1 >conftest.err 3131 rm -f conftest.er1 3132 cat conftest.err >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); } && 3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3136 { (case "(($ac_try" in 3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3138 *) ac_try_echo=$ac_try;; 3139 esac 3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3141 (eval "$ac_try") 2>&5 3142 ac_status=$? 3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 (exit $ac_status); }; } && 3145 { ac_try='test -s conftest.$ac_objext' 3146 { (case "(($ac_try" in 3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3148 *) ac_try_echo=$ac_try;; 3149 esac 3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3151 (eval "$ac_try") 2>&5 3152 ac_status=$? 3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3154 (exit $ac_status); }; }; then 3155 : 3156 else 3157 echo "$as_me: failed program was:" >&5 3158 sed 's/^/| /' conftest.$ac_ext >&5 3159 3160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3161 CXXFLAGS="-g" 3162 cat >conftest.$ac_ext <<_ACEOF 3163 /* confdefs.h. */ 3164 _ACEOF 3165 cat confdefs.h >>conftest.$ac_ext 3166 cat >>conftest.$ac_ext <<_ACEOF 3167 /* end confdefs.h. */ 3168 3169 int 3170 main () 3171 { 3172 3173 ; 3174 return 0; 3175 } 3176 _ACEOF 3177 rm -f conftest.$ac_objext 3178 if { (ac_try="$ac_compile" 3179 case "(($ac_try" in 3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3181 *) ac_try_echo=$ac_try;; 3182 esac 3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3184 (eval "$ac_compile") 2>conftest.er1 3185 ac_status=$? 3186 grep -v '^ *+' conftest.er1 >conftest.err 3187 rm -f conftest.er1 3188 cat conftest.err >&5 3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3190 (exit $ac_status); } && 3191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3192 { (case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195 esac 3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3197 (eval "$ac_try") 2>&5 3198 ac_status=$? 3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3200 (exit $ac_status); }; } && 3201 { ac_try='test -s conftest.$ac_objext' 3202 { (case "(($ac_try" in 3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3204 *) ac_try_echo=$ac_try;; 3205 esac 3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3207 (eval "$ac_try") 2>&5 3208 ac_status=$? 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3210 (exit $ac_status); }; }; then 3211 ac_cv_prog_cxx_g=yes 3212 else 3213 echo "$as_me: failed program was:" >&5 3214 sed 's/^/| /' conftest.$ac_ext >&5 3215 3216 3217 fi 3218 3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3220 fi 3221 3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3223 fi 3224 3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3226 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3227 fi 3228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3229 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3230 if test "$ac_test_CXXFLAGS" = set; then 3231 CXXFLAGS=$ac_save_CXXFLAGS 3232 elif test $ac_cv_prog_cxx_g = yes; then 3233 if test "$GXX" = yes; then 3234 CXXFLAGS="-g -O2" 3235 else 3236 CXXFLAGS="-g" 3237 fi 3238 else 3239 if test "$GXX" = yes; then 3240 CXXFLAGS="-O2" 3241 else 3242 CXXFLAGS= 3243 fi 3244 fi 3245 ac_ext=c 3246 ac_cpp='$CPP $CPPFLAGS' 3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3250 3251 ac_ext=c 3252 ac_cpp='$CPP $CPPFLAGS' 3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3256 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3257 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3258 # On Suns, sometimes $CPP names a directory. 3259 if test -n "$CPP" && test -d "$CPP"; then 3260 CPP= 3261 fi 3262 if test -z "$CPP"; then 3263 if test "${ac_cv_prog_CPP+set}" = set; then 3264 echo $ECHO_N "(cached) $ECHO_C" >&6 3265 else 3266 # Double quotes because CPP needs to be expanded 3267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3268 do 3269 ac_preproc_ok=false 3270 for ac_c_preproc_warn_flag in '' yes 3271 do 3272 # Use a header file that comes with gcc, so configuring glibc 3273 # with a fresh cross-compiler works. 3274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3275 # <limits.h> exists even on freestanding compilers. 3276 # On the NeXT, cc -E runs the code through the compiler's parser, 3277 # not just through cpp. "Syntax error" is here to catch this case. 3278 cat >conftest.$ac_ext <<_ACEOF 3279 /* confdefs.h. */ 3280 _ACEOF 3281 cat confdefs.h >>conftest.$ac_ext 3282 cat >>conftest.$ac_ext <<_ACEOF 3283 /* end confdefs.h. */ 3284 #ifdef __STDC__ 3285 # include <limits.h> 3286 #else 3287 # include <assert.h> 3288 #endif 3289 Syntax error 3290 _ACEOF 3291 if { (ac_try="$ac_cpp conftest.$ac_ext" 3292 case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295 esac 3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3298 ac_status=$? 3299 grep -v '^ *+' conftest.er1 >conftest.err 3300 rm -f conftest.er1 3301 cat conftest.err >&5 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } >/dev/null; then 3304 if test -s conftest.err; then 3305 ac_cpp_err=$ac_c_preproc_warn_flag 3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3307 else 3308 ac_cpp_err= 3309 fi 3310 else 3311 ac_cpp_err=yes 3312 fi 3313 if test -z "$ac_cpp_err"; then 3314 : 3315 else 3316 echo "$as_me: failed program was:" >&5 3317 sed 's/^/| /' conftest.$ac_ext >&5 3318 3319 # Broken: fails on valid input. 3320 continue 3321 fi 3322 3323 rm -f conftest.err conftest.$ac_ext 3324 3325 # OK, works on sane cases. Now check whether nonexistent headers 3326 # can be detected and how. 3327 cat >conftest.$ac_ext <<_ACEOF 3328 /* confdefs.h. */ 3329 _ACEOF 3330 cat confdefs.h >>conftest.$ac_ext 3331 cat >>conftest.$ac_ext <<_ACEOF 3332 /* end confdefs.h. */ 3333 #include <ac_nonexistent.h> 3334 _ACEOF 3335 if { (ac_try="$ac_cpp conftest.$ac_ext" 3336 case "(($ac_try" in 3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3338 *) ac_try_echo=$ac_try;; 3339 esac 3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3342 ac_status=$? 3343 grep -v '^ *+' conftest.er1 >conftest.err 3344 rm -f conftest.er1 3345 cat conftest.err >&5 3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3347 (exit $ac_status); } >/dev/null; then 3348 if test -s conftest.err; then 3349 ac_cpp_err=$ac_c_preproc_warn_flag 3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3351 else 3352 ac_cpp_err= 3353 fi 3354 else 3355 ac_cpp_err=yes 3356 fi 3357 if test -z "$ac_cpp_err"; then 3358 # Broken: success on invalid input. 3359 continue 3360 else 3361 echo "$as_me: failed program was:" >&5 3362 sed 's/^/| /' conftest.$ac_ext >&5 3363 3364 # Passes both tests. 3365 ac_preproc_ok=: 3366 break 3367 fi 3368 3369 rm -f conftest.err conftest.$ac_ext 3370 3371 done 3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3373 rm -f conftest.err conftest.$ac_ext 3374 if $ac_preproc_ok; then 3375 break 3376 fi 3377 3378 done 3379 ac_cv_prog_CPP=$CPP 3380 3381 fi 3382 CPP=$ac_cv_prog_CPP 3383 else 3384 ac_cv_prog_CPP=$CPP 3385 fi 3386 { echo "$as_me:$LINENO: result: $CPP" >&5 3387 echo "${ECHO_T}$CPP" >&6; } 3388 ac_preproc_ok=false 3389 for ac_c_preproc_warn_flag in '' yes 3390 do 3391 # Use a header file that comes with gcc, so configuring glibc 3392 # with a fresh cross-compiler works. 3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3394 # <limits.h> exists even on freestanding compilers. 3395 # On the NeXT, cc -E runs the code through the compiler's parser, 3396 # not just through cpp. "Syntax error" is here to catch this case. 3397 cat >conftest.$ac_ext <<_ACEOF 3398 /* confdefs.h. */ 3399 _ACEOF 3400 cat confdefs.h >>conftest.$ac_ext 3401 cat >>conftest.$ac_ext <<_ACEOF 3402 /* end confdefs.h. */ 3403 #ifdef __STDC__ 3404 # include <limits.h> 3405 #else 3406 # include <assert.h> 3407 #endif 3408 Syntax error 3409 _ACEOF 3410 if { (ac_try="$ac_cpp conftest.$ac_ext" 3411 case "(($ac_try" in 3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3413 *) ac_try_echo=$ac_try;; 3414 esac 3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3417 ac_status=$? 3418 grep -v '^ *+' conftest.er1 >conftest.err 3419 rm -f conftest.er1 3420 cat conftest.err >&5 3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); } >/dev/null; then 3423 if test -s conftest.err; then 3424 ac_cpp_err=$ac_c_preproc_warn_flag 3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3426 else 3427 ac_cpp_err= 3428 fi 3429 else 3430 ac_cpp_err=yes 3431 fi 3432 if test -z "$ac_cpp_err"; then 3433 : 3434 else 3435 echo "$as_me: failed program was:" >&5 3436 sed 's/^/| /' conftest.$ac_ext >&5 3437 3438 # Broken: fails on valid input. 3439 continue 3440 fi 3441 3442 rm -f conftest.err conftest.$ac_ext 3443 3444 # OK, works on sane cases. Now check whether nonexistent headers 3445 # can be detected and how. 3446 cat >conftest.$ac_ext <<_ACEOF 3447 /* confdefs.h. */ 3448 _ACEOF 3449 cat confdefs.h >>conftest.$ac_ext 3450 cat >>conftest.$ac_ext <<_ACEOF 3451 /* end confdefs.h. */ 3452 #include <ac_nonexistent.h> 3453 _ACEOF 3454 if { (ac_try="$ac_cpp conftest.$ac_ext" 3455 case "(($ac_try" in 3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3457 *) ac_try_echo=$ac_try;; 3458 esac 3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3461 ac_status=$? 3462 grep -v '^ *+' conftest.er1 >conftest.err 3463 rm -f conftest.er1 3464 cat conftest.err >&5 3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3466 (exit $ac_status); } >/dev/null; then 3467 if test -s conftest.err; then 3468 ac_cpp_err=$ac_c_preproc_warn_flag 3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3470 else 3471 ac_cpp_err= 3472 fi 3473 else 3474 ac_cpp_err=yes 3475 fi 3476 if test -z "$ac_cpp_err"; then 3477 # Broken: success on invalid input. 3478 continue 3479 else 3480 echo "$as_me: failed program was:" >&5 3481 sed 's/^/| /' conftest.$ac_ext >&5 3482 3483 # Passes both tests. 3484 ac_preproc_ok=: 3485 break 3486 fi 3487 3488 rm -f conftest.err conftest.$ac_ext 3489 3490 done 3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3492 rm -f conftest.err conftest.$ac_ext 3493 if $ac_preproc_ok; then 3494 : 3495 else 3496 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3497 See \`config.log' for more details." >&5 3498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3499 See \`config.log' for more details." >&2;} 3500 { (exit 1); exit 1; }; } 3501 fi 3502 3503 ac_ext=c 3504 ac_cpp='$CPP $CPPFLAGS' 3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3508 3509 3510 if test "$CXX" = "clang++" ; then 3511 { echo "$as_me:$LINENO: checking whether clang works" >&5 3512 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3513 ac_ext=cpp 3514 ac_cpp='$CXXCPP $CPPFLAGS' 3515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3518 3519 3520 cat >conftest.$ac_ext <<_ACEOF 3521 /* confdefs.h. */ 3522 _ACEOF 3523 cat confdefs.h >>conftest.$ac_ext 3524 cat >>conftest.$ac_ext <<_ACEOF 3525 /* end confdefs.h. */ 3526 #include <limits> 3527 #if __has_include (<cxxabi.h>) 3528 #include <cxxabi.h> 3529 #endif 3530 #if __has_include (<unwind.h>) 3531 #include <unwind.h> 3532 #endif 3533 3534 int 3535 main () 3536 { 3537 3538 ; 3539 return 0; 3540 } 3541 _ACEOF 3542 rm -f conftest.$ac_objext 3543 if { (ac_try="$ac_compile" 3544 case "(($ac_try" in 3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3546 *) ac_try_echo=$ac_try;; 3547 esac 3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3549 (eval "$ac_compile") 2>conftest.er1 3550 ac_status=$? 3551 grep -v '^ *+' conftest.er1 >conftest.err 3552 rm -f conftest.er1 3553 cat conftest.err >&5 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); } && 3556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3557 { (case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560 esac 3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3562 (eval "$ac_try") 2>&5 3563 ac_status=$? 3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3565 (exit $ac_status); }; } && 3566 { ac_try='test -s conftest.$ac_objext' 3567 { (case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570 esac 3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3572 (eval "$ac_try") 2>&5 3573 ac_status=$? 3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3575 (exit $ac_status); }; }; then 3576 3577 { echo "$as_me:$LINENO: result: yes" >&5 3578 echo "${ECHO_T}yes" >&6; } 3579 3580 else 3581 echo "$as_me: failed program was:" >&5 3582 sed 's/^/| /' conftest.$ac_ext >&5 3583 3584 3585 { echo "$as_me:$LINENO: result: no" >&5 3586 echo "${ECHO_T}no" >&6; } 3587 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5 3588 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;} 3589 { (exit 1); exit 1; }; } 3590 3591 fi 3592 3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3594 ac_ext=c 3595 ac_cpp='$CPP $CPPFLAGS' 3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3599 3600 fi 3601 3602 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5 3603 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; } 3604 ac_ext=cpp 3605 ac_cpp='$CXXCPP $CPPFLAGS' 3606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3609 3610 llvm_cv_cxx_compiler=unknown 3611 cat >conftest.$ac_ext <<_ACEOF 3612 /* confdefs.h. */ 3613 _ACEOF 3614 cat confdefs.h >>conftest.$ac_ext 3615 cat >>conftest.$ac_ext <<_ACEOF 3616 /* end confdefs.h. */ 3617 #if ! __clang__ 3618 #error 3619 #endif 3620 3621 _ACEOF 3622 rm -f conftest.$ac_objext 3623 if { (ac_try="$ac_compile" 3624 case "(($ac_try" in 3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3626 *) ac_try_echo=$ac_try;; 3627 esac 3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3629 (eval "$ac_compile") 2>conftest.er1 3630 ac_status=$? 3631 grep -v '^ *+' conftest.er1 >conftest.err 3632 rm -f conftest.er1 3633 cat conftest.err >&5 3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3635 (exit $ac_status); } && 3636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3637 { (case "(($ac_try" in 3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3639 *) ac_try_echo=$ac_try;; 3640 esac 3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3642 (eval "$ac_try") 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); }; } && 3646 { ac_try='test -s conftest.$ac_objext' 3647 { (case "(($ac_try" in 3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3649 *) ac_try_echo=$ac_try;; 3650 esac 3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3652 (eval "$ac_try") 2>&5 3653 ac_status=$? 3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3655 (exit $ac_status); }; }; then 3656 llvm_cv_cxx_compiler=clang 3657 else 3658 echo "$as_me: failed program was:" >&5 3659 sed 's/^/| /' conftest.$ac_ext >&5 3660 3661 cat >conftest.$ac_ext <<_ACEOF 3662 /* confdefs.h. */ 3663 _ACEOF 3664 cat confdefs.h >>conftest.$ac_ext 3665 cat >>conftest.$ac_ext <<_ACEOF 3666 /* end confdefs.h. */ 3667 #if ! __GNUC__ 3668 #error 3669 #endif 3670 3671 _ACEOF 3672 rm -f conftest.$ac_objext 3673 if { (ac_try="$ac_compile" 3674 case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677 esac 3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3679 (eval "$ac_compile") 2>conftest.er1 3680 ac_status=$? 3681 grep -v '^ *+' conftest.er1 >conftest.err 3682 rm -f conftest.er1 3683 cat conftest.err >&5 3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3685 (exit $ac_status); } && 3686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3687 { (case "(($ac_try" in 3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3689 *) ac_try_echo=$ac_try;; 3690 esac 3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3692 (eval "$ac_try") 2>&5 3693 ac_status=$? 3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3695 (exit $ac_status); }; } && 3696 { ac_try='test -s conftest.$ac_objext' 3697 { (case "(($ac_try" in 3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 *) ac_try_echo=$ac_try;; 3700 esac 3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3702 (eval "$ac_try") 2>&5 3703 ac_status=$? 3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3705 (exit $ac_status); }; }; then 3706 llvm_cv_cxx_compiler=gcc 3707 else 3708 echo "$as_me: failed program was:" >&5 3709 sed 's/^/| /' conftest.$ac_ext >&5 3710 3711 3712 fi 3713 3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3715 fi 3716 3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3718 ac_ext=c 3719 ac_cpp='$CPP $CPPFLAGS' 3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723 3724 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5 3725 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; } 3726 3727 3728 3729 if test -d ${srcdir}/projects/test-suite ; then 3730 subdirs="$subdirs projects/test-suite" 3731 3732 fi 3733 3734 if test -d ${srcdir}/projects/llvm-test ; then 3735 subdirs="$subdirs projects/llvm-test" 3736 3737 fi 3738 3739 if test -d ${srcdir}/projects/poolalloc ; then 3740 subdirs="$subdirs projects/poolalloc" 3741 3742 fi 3743 3744 if test -d ${srcdir}/projects/llvm-poolalloc ; then 3745 subdirs="$subdirs projects/llvm-poolalloc" 3746 3747 fi 3748 3749 for i in `ls ${srcdir}/projects` 3750 do 3751 if test -d ${srcdir}/projects/${i} ; then 3752 case ${i} in 3753 safecode) subdirs="$subdirs projects/safecode" 3754 ;; 3755 compiler-rt) ;; 3756 test-suite) ;; 3757 llvm-test) ;; 3758 poolalloc) ;; 3759 llvm-poolalloc) ;; 3760 *) 3761 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3762 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3763 ;; 3764 esac 3765 fi 3766 done 3767 3768 # Check whether --enable-polly was given. 3769 if test "${enable_polly+set}" = set; then 3770 enableval=$enable_polly; 3771 else 3772 enableval=default 3773 fi 3774 3775 case "$enableval" in 3776 yes) ENABLE_POLLY=1 3777 ;; 3778 no) ENABLE_POLLY=0 3779 ;; 3780 default) ENABLE_POLLY=1 3781 ;; 3782 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3783 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3784 { (exit 1); exit 1; }; } ;; 3785 esac 3786 3787 3788 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3789 LLVM_HAS_POLLY=1 3790 3791 subdirs="$subdirs tools/polly" 3792 3793 fi 3794 3795 3796 # Make sure we can run config.sub. 3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3800 { (exit 1); exit 1; }; } 3801 3802 { echo "$as_me:$LINENO: checking build system type" >&5 3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3804 if test "${ac_cv_build+set}" = set; then 3805 echo $ECHO_N "(cached) $ECHO_C" >&6 3806 else 3807 ac_build_alias=$build_alias 3808 test <