1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn. 4 # 5 # Report bugs to <llvmbugs (at] cs.uiuc.edu>. 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-2011 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.0svn' 565 PACKAGE_STRING='llvm 3.0svn' 566 PACKAGE_BUGREPORT='llvmbugs (at] cs.uiuc.edu' 567 568 ac_unique_file="lib/VMCore/Module.cpp" 569 # Factoring default headers for most tests. 570 ac_includes_default="\ 571 #include <stdio.h> 572 #if HAVE_SYS_TYPES_H 573 # include <sys/types.h> 574 #endif 575 #if HAVE_SYS_STAT_H 576 # include <sys/stat.h> 577 #endif 578 #if STDC_HEADERS 579 # include <stdlib.h> 580 # include <stddef.h> 581 #else 582 # if HAVE_STDLIB_H 583 # include <stdlib.h> 584 # endif 585 #endif 586 #if HAVE_STRING_H 587 # if !STDC_HEADERS && HAVE_MEMORY_H 588 # include <memory.h> 589 # endif 590 # include <string.h> 591 #endif 592 #if HAVE_STRINGS_H 593 # include <strings.h> 594 #endif 595 #if HAVE_INTTYPES_H 596 # include <inttypes.h> 597 #endif 598 #if HAVE_STDINT_H 599 # include <stdint.h> 600 #endif 601 #if HAVE_UNISTD_H 602 # include <unistd.h> 603 #endif" 604 605 ac_subst_vars='SHELL 606 PATH_SEPARATOR 607 PACKAGE_NAME 608 PACKAGE_TARNAME 609 PACKAGE_VERSION 610 PACKAGE_STRING 611 PACKAGE_BUGREPORT 612 exec_prefix 613 prefix 614 program_transform_name 615 bindir 616 sbindir 617 libexecdir 618 datarootdir 619 datadir 620 sysconfdir 621 sharedstatedir 622 localstatedir 623 includedir 624 oldincludedir 625 docdir 626 infodir 627 htmldir 628 dvidir 629 pdfdir 630 psdir 631 libdir 632 localedir 633 mandir 634 DEFS 635 ECHO_C 636 ECHO_N 637 ECHO_T 638 LIBS 639 build_alias 640 host_alias 641 target_alias 642 LLVM_COPYRIGHT 643 subdirs 644 ENABLE_POLLY 645 LLVM_HAS_POLLY 646 build 647 build_cpu 648 build_vendor 649 build_os 650 host 651 host_cpu 652 host_vendor 653 host_os 654 target 655 target_cpu 656 target_vendor 657 target_os 658 OS 659 HOST_OS 660 TARGET_OS 661 LINKALL 662 NOLINKALL 663 LLVM_ON_UNIX 664 LLVM_ON_WIN32 665 ARCH 666 ENDIAN 667 CC 668 CFLAGS 669 LDFLAGS 670 CPPFLAGS 671 ac_ct_CC 672 EXEEXT 673 OBJEXT 674 CPP 675 GREP 676 EGREP 677 LLVM_CROSS_COMPILING 678 BUILD_CC 679 BUILD_EXEEXT 680 BUILD_CXX 681 CVSBUILD 682 ENABLE_OPTIMIZED 683 ENABLE_PROFILING 684 DISABLE_ASSERTIONS 685 ENABLE_EXPENSIVE_CHECKS 686 EXPENSIVE_CHECKS 687 DEBUG_RUNTIME 688 DEBUG_SYMBOLS 689 JIT 690 TARGET_HAS_JIT 691 ENABLE_DOCS 692 ENABLE_DOXYGEN 693 ENABLE_THREADS 694 ENABLE_PTHREADS 695 ENABLE_PIC 696 ENABLE_SHARED 697 ENABLE_EMBED_STDCXX 698 ENABLE_TIMESTAMPS 699 TARGETS_TO_BUILD 700 LLVM_ENUM_TARGETS 701 LLVM_ENUM_ASM_PRINTERS 702 LLVM_ENUM_ASM_PARSERS 703 LLVM_ENUM_DISASSEMBLERS 704 ENABLE_CBE_PRINTF_A 705 CLANGPATH 706 CLANGXXPATH 707 ENABLE_BUILT_CLANG 708 OPTIMIZE_OPTION 709 EXTRA_OPTIONS 710 EXTRA_LD_OPTIONS 711 BINUTILS_INCDIR 712 CXX 713 CXXFLAGS 714 ac_ct_CXX 715 NM 716 ifGNUmake 717 LN_S 718 CMP 719 CP 720 DATE 721 FIND 722 MKDIR 723 MV 724 RANLIB 725 AR 726 RM 727 SED 728 TAR 729 BINPWD 730 GRAPHVIZ 731 DOT 732 FDP 733 NEATO 734 TWOPI 735 CIRCO 736 GV 737 DOTTY 738 XDOT_PY 739 PERL 740 HAVE_PERL 741 INSTALL_PROGRAM 742 INSTALL_SCRIPT 743 INSTALL_DATA 744 BZIP2 745 CAT 746 DOXYGEN 747 GROFF 748 GZIPBIN 749 POD2HTML 750 POD2MAN 751 PDFROFF 752 RUNTEST 753 TCLSH 754 ZIP 755 OCAMLC 756 OCAMLOPT 757 OCAMLDEP 758 OCAMLDOC 759 GAS 760 HAVE_LINK_VERSION_SCRIPT 761 INSTALL_LTDL_TRUE 762 INSTALL_LTDL_FALSE 763 CONVENIENCE_LTDL_TRUE 764 CONVENIENCE_LTDL_FALSE 765 LIBADD_DL 766 LLVMGCCCOMMAND 767 LLVMGXXCOMMAND 768 LLVMGCC 769 LLVMGXX 770 LLVMCC_OPTION 771 NO_VARIADIC_MACROS 772 NO_MISSING_FIELD_INITIALIZERS 773 USE_UDIS86 774 USE_OPROFILE 775 HAVE_PTHREAD 776 HUGE_VAL_SANITY 777 MMAP_FILE 778 LLVMCC_EMITIR_FLAG 779 LLVMCC1 780 LLVMCC1PLUS 781 LLVMGCCDIR 782 LLVMGCC_LANGS 783 LLVMGCC_DRAGONEGG 784 LLVMCC_DISABLEOPT_FLAGS 785 SHLIBEXT 786 SHLIBPATH_VAR 787 LLVM_PREFIX 788 LLVM_BINDIR 789 LLVM_LIBDIR 790 LLVM_DATADIR 791 LLVM_DOCSDIR 792 LLVM_ETCDIR 793 LLVM_INCLUDEDIR 794 LLVM_INFODIR 795 LLVM_MANDIR 796 LLVM_CONFIGTIME 797 BINDINGS_TO_BUILD 798 ALL_BINDINGS 799 OCAML_LIBDIR 800 ENABLE_VISIBILITY_INLINES_HIDDEN 801 RPATH 802 RDYNAMIC 803 LIBOBJS 804 LTLIBOBJS' 805 ac_subst_files='' 806 ac_precious_vars='build_alias 807 host_alias 808 target_alias 809 CC 810 CFLAGS 811 LDFLAGS 812 CPPFLAGS 813 CPP 814 CXX 815 CXXFLAGS 816 CCC' 817 ac_subdirs_all='projects/llvm-gcc 818 projects/test-suite 819 projects/llvm-test 820 projects/poolalloc 821 projects/llvm-poolalloc 822 projects/sample 823 projects/privbracket 824 projects/llvm-stacker 825 projects/llvm-reopt 826 projects/llvm-java 827 projects/llvm-tv 828 projects/safecode 829 projects/llvm-kernel 830 tools/polly' 831 832 # Initialize some variables set by options. 833 ac_init_help= 834 ac_init_version=false 835 # The variables have the same names as the options, with 836 # dashes changed to underlines. 837 cache_file=/dev/null 838 exec_prefix=NONE 839 no_create= 840 no_recursion= 841 prefix=NONE 842 program_prefix=NONE 843 program_suffix=NONE 844 program_transform_name=s,x,x, 845 silent= 846 site= 847 srcdir= 848 verbose= 849 x_includes=NONE 850 x_libraries=NONE 851 852 # Installation directory options. 853 # These are left unexpanded so users can "make install exec_prefix=/foo" 854 # and all the variables that are supposed to be based on exec_prefix 855 # by default will actually change. 856 # Use braces instead of parens because sh, perl, etc. also accept them. 857 # (The list follows the same order as the GNU Coding Standards.) 858 bindir='${exec_prefix}/bin' 859 sbindir='${exec_prefix}/sbin' 860 libexecdir='${exec_prefix}/libexec' 861 datarootdir='${prefix}/share' 862 datadir='${datarootdir}' 863 sysconfdir='${prefix}/etc' 864 sharedstatedir='${prefix}/com' 865 localstatedir='${prefix}/var' 866 includedir='${prefix}/include' 867 oldincludedir='/usr/include' 868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 869 infodir='${datarootdir}/info' 870 htmldir='${docdir}' 871 dvidir='${docdir}' 872 pdfdir='${docdir}' 873 psdir='${docdir}' 874 libdir='${exec_prefix}/lib' 875 localedir='${datarootdir}/locale' 876 mandir='${datarootdir}/man' 877 878 ac_prev= 879 ac_dashdash= 880 for ac_option 881 do 882 # If the previous option needs an argument, assign it. 883 if test -n "$ac_prev"; then 884 eval $ac_prev=\$ac_option 885 ac_prev= 886 continue 887 fi 888 889 case $ac_option in 890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 891 *) ac_optarg=yes ;; 892 esac 893 894 # Accept the important Cygnus configure options, so we can diagnose typos. 895 896 case $ac_dashdash$ac_option in 897 --) 898 ac_dashdash=yes ;; 899 900 -bindir | --bindir | --bindi | --bind | --bin | --bi) 901 ac_prev=bindir ;; 902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 903 bindir=$ac_optarg ;; 904 905 -build | --build | --buil | --bui | --bu) 906 ac_prev=build_alias ;; 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 908 build_alias=$ac_optarg ;; 909 910 -cache-file | --cache-file | --cache-fil | --cache-fi \ 911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 912 ac_prev=cache_file ;; 913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 915 cache_file=$ac_optarg ;; 916 917 --config-cache | -C) 918 cache_file=config.cache ;; 919 920 -datadir | --datadir | --datadi | --datad) 921 ac_prev=datadir ;; 922 -datadir=* | --datadir=* | --datadi=* | --datad=*) 923 datadir=$ac_optarg ;; 924 925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 926 | --dataroo | --dataro | --datar) 927 ac_prev=datarootdir ;; 928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 930 datarootdir=$ac_optarg ;; 931 932 -disable-* | --disable-*) 933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 937 { (exit 1); exit 1; }; } 938 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 939 eval enable_$ac_feature=no ;; 940 941 -docdir | --docdir | --docdi | --doc | --do) 942 ac_prev=docdir ;; 943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 944 docdir=$ac_optarg ;; 945 946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 947 ac_prev=dvidir ;; 948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 949 dvidir=$ac_optarg ;; 950 951 -enable-* | --enable-*) 952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 956 { (exit 1); exit 1; }; } 957 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 958 eval enable_$ac_feature=\$ac_optarg ;; 959 960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 962 | --exec | --exe | --ex) 963 ac_prev=exec_prefix ;; 964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 966 | --exec=* | --exe=* | --ex=*) 967 exec_prefix=$ac_optarg ;; 968 969 -gas | --gas | --ga | --g) 970 # Obsolete; use --with-gas. 971 with_gas=yes ;; 972 973 -help | --help | --hel | --he | -h) 974 ac_init_help=long ;; 975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 976 ac_init_help=recursive ;; 977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 978 ac_init_help=short ;; 979 980 -host | --host | --hos | --ho) 981 ac_prev=host_alias ;; 982 -host=* | --host=* | --hos=* | --ho=*) 983 host_alias=$ac_optarg ;; 984 985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 986 ac_prev=htmldir ;; 987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 988 | --ht=*) 989 htmldir=$ac_optarg ;; 990 991 -includedir | --includedir | --includedi | --included | --include \ 992 | --includ | --inclu | --incl | --inc) 993 ac_prev=includedir ;; 994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 995 | --includ=* | --inclu=* | --incl=* | --inc=*) 996 includedir=$ac_optarg ;; 997 998 -infodir | --infodir | --infodi | --infod | --info | --inf) 999 ac_prev=infodir ;; 1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1001 infodir=$ac_optarg ;; 1002 1003 -libdir | --libdir | --libdi | --libd) 1004 ac_prev=libdir ;; 1005 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1006 libdir=$ac_optarg ;; 1007 1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1009 | --libexe | --libex | --libe) 1010 ac_prev=libexecdir ;; 1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1012 | --libexe=* | --libex=* | --libe=*) 1013 libexecdir=$ac_optarg ;; 1014 1015 -localedir | --localedir | --localedi | --localed | --locale) 1016 ac_prev=localedir ;; 1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1018 localedir=$ac_optarg ;; 1019 1020 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1021 | --localstate | --localstat | --localsta | --localst | --locals) 1022 ac_prev=localstatedir ;; 1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1025 localstatedir=$ac_optarg ;; 1026 1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1028 ac_prev=mandir ;; 1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1030 mandir=$ac_optarg ;; 1031 1032 -nfp | --nfp | --nf) 1033 # Obsolete; use --without-fp. 1034 with_fp=no ;; 1035 1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1037 | --no-cr | --no-c | -n) 1038 no_create=yes ;; 1039 1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1042 no_recursion=yes ;; 1043 1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1046 | --oldin | --oldi | --old | --ol | --o) 1047 ac_prev=oldincludedir ;; 1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1051 oldincludedir=$ac_optarg ;; 1052 1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1054 ac_prev=prefix ;; 1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1056 prefix=$ac_optarg ;; 1057 1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1059 | --program-pre | --program-pr | --program-p) 1060 ac_prev=program_prefix ;; 1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1063 program_prefix=$ac_optarg ;; 1064 1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1066 | --program-suf | --program-su | --program-s) 1067 ac_prev=program_suffix ;; 1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1070 program_suffix=$ac_optarg ;; 1071 1072 -program-transform-name | --program-transform-name \ 1073 | --program-transform-nam | --program-transform-na \ 1074 | --program-transform-n | --program-transform- \ 1075 | --program-transform | --program-transfor \ 1076 | --program-transfo | --program-transf \ 1077 | --program-trans | --program-tran \ 1078 | --progr-tra | --program-tr | --program-t) 1079 ac_prev=program_transform_name ;; 1080 -program-transform-name=* | --program-transform-name=* \ 1081 | --program-transform-nam=* | --program-transform-na=* \ 1082 | --program-transform-n=* | --program-transform-=* \ 1083 | --program-transform=* | --program-transfor=* \ 1084 | --program-transfo=* | --program-transf=* \ 1085 | --program-trans=* | --program-tran=* \ 1086 | --progr-tra=* | --program-tr=* | --program-t=*) 1087 program_transform_name=$ac_optarg ;; 1088 1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1090 ac_prev=pdfdir ;; 1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1092 pdfdir=$ac_optarg ;; 1093 1094 -psdir | --psdir | --psdi | --psd | --ps) 1095 ac_prev=psdir ;; 1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1097 psdir=$ac_optarg ;; 1098 1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1100 | -silent | --silent | --silen | --sile | --sil) 1101 silent=yes ;; 1102 1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1104 ac_prev=sbindir ;; 1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1106 | --sbi=* | --sb=*) 1107 sbindir=$ac_optarg ;; 1108 1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1111 | --sharedst | --shareds | --shared | --share | --shar \ 1112 | --sha | --sh) 1113 ac_prev=sharedstatedir ;; 1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1117 | --sha=* | --sh=*) 1118 sharedstatedir=$ac_optarg ;; 1119 1120 -site | --site | --sit) 1121 ac_prev=site ;; 1122 -site=* | --site=* | --sit=*) 1123 site=$ac_optarg ;; 1124 1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1126 ac_prev=srcdir ;; 1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1128 srcdir=$ac_optarg ;; 1129 1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1131 | --syscon | --sysco | --sysc | --sys | --sy) 1132 ac_prev=sysconfdir ;; 1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1135 sysconfdir=$ac_optarg ;; 1136 1137 -target | --target | --targe | --targ | --tar | --ta | --t) 1138 ac_prev=target_alias ;; 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1140 target_alias=$ac_optarg ;; 1141 1142 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1143 verbose=yes ;; 1144 1145 -version | --version | --versio | --versi | --vers | -V) 1146 ac_init_version=: ;; 1147 1148 -with-* | --with-*) 1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1152 { echo "$as_me: error: invalid package name: $ac_package" >&2 1153 { (exit 1); exit 1; }; } 1154 ac_package=`echo $ac_package| sed 's/-/_/g'` 1155 eval with_$ac_package=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1161 { echo "$as_me: error: invalid package name: $ac_package" >&2 1162 { (exit 1); exit 1; }; } 1163 ac_package=`echo $ac_package | sed 's/-/_/g'` 1164 eval with_$ac_package=no ;; 1165 1166 --x) 1167 # Obsolete; use --with-x. 1168 with_x=yes ;; 1169 1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1171 | --x-incl | --x-inc | --x-in | --x-i) 1172 ac_prev=x_includes ;; 1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1175 x_includes=$ac_optarg ;; 1176 1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1179 ac_prev=x_libraries ;; 1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1182 x_libraries=$ac_optarg ;; 1183 1184 -*) { echo "$as_me: error: unrecognized option: $ac_option 1185 Try \`$0 --help' for more information." >&2 1186 { (exit 1); exit 1; }; } 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1194 { (exit 1); exit 1; }; } 1195 eval $ac_envvar=\$ac_optarg 1196 export $ac_envvar ;; 1197 1198 *) 1199 # FIXME: should be removed in autoconf 3.0. 1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1204 ;; 1205 1206 esac 1207 done 1208 1209 if test -n "$ac_prev"; then 1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1211 { echo "$as_me: error: missing argument to $ac_option" >&2 1212 { (exit 1); exit 1; }; } 1213 fi 1214 1215 # Be sure to have absolute directory names. 1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1217 datadir sysconfdir sharedstatedir localstatedir includedir \ 1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1219 libdir localedir mandir 1220 do 1221 eval ac_val=\$$ac_var 1222 case $ac_val in 1223 [\\/$]* | ?:[\\/]* ) continue;; 1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1225 esac 1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1227 { (exit 1); exit 1; }; } 1228 done 1229 1230 # There might be people who depend on the old broken behavior: `$host' 1231 # used to hold the argument of --host etc. 1232 # FIXME: To remove some day. 1233 build=$build_alias 1234 host=$host_alias 1235 target=$target_alias 1236 1237 # FIXME: To remove some day. 1238 if test "x$host_alias" != x; then 1239 if test "x$build_alias" = x; then 1240 cross_compiling=maybe 1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1242 If a cross compiler is detected then cross compile mode will be used." >&2 1243 elif test "x$build_alias" != "x$host_alias"; then 1244 cross_compiling=yes 1245 fi 1246 fi 1247 1248 ac_tool_prefix= 1249 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1250 1251 test "$silent" = yes && exec 6>/dev/null 1252 1253 1254 ac_pwd=`pwd` && test -n "$ac_pwd" && 1255 ac_ls_di=`ls -di .` && 1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1257 { echo "$as_me: error: Working directory cannot be determined" >&2 1258 { (exit 1); exit 1; }; } 1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1260 { echo "$as_me: error: pwd does not report name of working directory" >&2 1261 { (exit 1); exit 1; }; } 1262 1263 1264 # Find the source files, if location was not specified. 1265 if test -z "$srcdir"; then 1266 ac_srcdir_defaulted=yes 1267 # Try the directory containing this script, then the parent directory. 1268 ac_confdir=`$as_dirname -- "$0" || 1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1270 X"$0" : 'X\(//\)[^/]' \| \ 1271 X"$0" : 'X\(//\)$' \| \ 1272 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1273 echo X"$0" | 1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\/\)[^/].*/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\).*/{ 1287 s//\1/ 1288 q 1289 } 1290 s/.*/./; q'` 1291 srcdir=$ac_confdir 1292 if test ! -r "$srcdir/$ac_unique_file"; then 1293 srcdir=.. 1294 fi 1295 else 1296 ac_srcdir_defaulted=no 1297 fi 1298 if test ! -r "$srcdir/$ac_unique_file"; then 1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1301 { (exit 1); exit 1; }; } 1302 fi 1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1304 ac_abs_confdir=`( 1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1306 { (exit 1); exit 1; }; } 1307 pwd)` 1308 # When building in place, set srcdir=. 1309 if test "$ac_abs_confdir" = "$ac_pwd"; then 1310 srcdir=. 1311 fi 1312 # Remove unnecessary trailing slashes from srcdir. 1313 # Double slashes in file names in object file debugging info 1314 # mess up M-x gdb in Emacs. 1315 case $srcdir in 1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1317 esac 1318 for ac_var in $ac_precious_vars; do 1319 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_env_${ac_var}_value=\$${ac_var} 1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1323 done 1324 1325 # 1326 # Report the --help message. 1327 # 1328 if test "$ac_init_help" = "long"; then 1329 # Omit some internal or obsolete options to make the list less imposing. 1330 # This message is too long to be a string in the A/UX 3.1 sh. 1331 cat <<_ACEOF 1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems. 1333 1334 Usage: $0 [OPTION]... [VAR=VALUE]... 1335 1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1337 VAR=VALUE. See below for descriptions of some of the useful variables. 1338 1339 Defaults for the options are specified in brackets. 1340 1341 Configuration: 1342 -h, --help display this help and exit 1343 --help=short display options specific to this package 1344 --help=recursive display the short help of all the included packages 1345 -V, --version display version information and exit 1346 -q, --quiet, --silent do not print \`checking...' messages 1347 --cache-file=FILE cache test results in FILE [disabled] 1348 -C, --config-cache alias for \`--cache-file=config.cache' 1349 -n, --no-create do not create output files 1350 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1351 1352 Installation directories: 1353 --prefix=PREFIX install architecture-independent files in PREFIX 1354 [$ac_default_prefix] 1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1356 [PREFIX] 1357 1358 By default, \`make install' will install all the files in 1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1361 for instance \`--prefix=\$HOME'. 1362 1363 For better control, use the options below. 1364 1365 Fine tuning of the installation directories: 1366 --bindir=DIR user executables [EPREFIX/bin] 1367 --sbindir=DIR system admin executables [EPREFIX/sbin] 1368 --libexecdir=DIR program executables [EPREFIX/libexec] 1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1372 --libdir=DIR object code libraries [EPREFIX/lib] 1373 --includedir=DIR C header files [PREFIX/include] 1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1377 --infodir=DIR info documentation [DATAROOTDIR/info] 1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1379 --mandir=DIR man documentation [DATAROOTDIR/man] 1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] 1381 --htmldir=DIR html documentation [DOCDIR] 1382 --dvidir=DIR dvi documentation [DOCDIR] 1383 --pdfdir=DIR pdf documentation [DOCDIR] 1384 --psdir=DIR ps documentation [DOCDIR] 1385 _ACEOF 1386 1387 cat <<\_ACEOF 1388 1389 System types: 1390 --build=BUILD configure for building on BUILD [guessed] 1391 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1392 --target=TARGET configure for building compilers for TARGET [HOST] 1393 _ACEOF 1394 fi 1395 1396 if test -n "$ac_init_help"; then 1397 case $ac_init_help in 1398 short | recursive ) echo "Configuration of llvm 3.0svn:";; 1399 esac 1400 cat <<\_ACEOF 1401 1402 Optional Features: 1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1405 --enable-polly Use polly if available (default is YES) 1406 --enable-optimized Compile with optimizations enabled (default is NO) 1407 --enable-profiling Compile with profiling enabled (default is NO) 1408 --enable-assertions Compile with assertion checks enabled (default is 1409 YES) 1410 --enable-expensive-checks 1411 Compile with expensive debug checks enabled (default 1412 is NO) 1413 --enable-debug-runtime Build runtime libs with debug symbols (default is 1414 NO) 1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1416 optimization is on and YES if it's off) 1417 --enable-jit Enable Just In Time Compiling (default is YES) 1418 --enable-docs Build documents (default is YES) 1419 --enable-doxygen Build doxygen documentation (default is NO) 1420 --enable-threads Use threads if available (default is YES) 1421 --enable-pthreads Use pthreads if available (default is YES) 1422 --enable-pic Build LLVM with Position Independent Code (default 1423 is YES) 1424 --enable-shared Build a shared library and link tools against it 1425 (default is NO) 1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1427 Win32 DLL (default is YES) 1428 --enable-timestamps Enable embedding timestamp information in build 1429 (default is YES) 1430 --enable-targets Build specific host targets: all or 1431 target1,target2,... Valid targets are: host, x86, 1432 x86_64, sparc, powerpc, alpha, arm, mips, spu, 1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp 1434 (default=all) 1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via 1436 %a (default is YES) 1437 --enable-bindings Build specific language bindings: 1438 all,auto,none,{binding-name} (default=auto) 1439 --enable-libffi Check for the presence of libffi (default is NO) 1440 --enable-ltdl-install install libltdl 1441 1442 Optional Packages: 1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default 1446 searches PATH) 1447 --with-llvmgcc Specify location of llvm-gcc driver (default 1448 searches PATH) 1449 --with-llvmgxx Specify location of llvm-g++ driver (default 1450 searches PATH) 1451 --with-clang Specify location of clang compiler (default is 1452 --with-built-clang) 1453 --with-built-clang Use the compiled Clang as the LLVM compiler 1454 (default=check) 1455 --with-optimize-option Select the compiler options to use for optimized 1456 builds 1457 --with-extra-options Specify additional options to compile LLVM with 1458 --with-extra-ld-options Specify additional options to link LLVM with 1459 --with-ocaml-libdir Specify install location for ocaml bindings (default 1460 is stdlib) 1461 --with-clang-resource-dir 1462 Relative directory from the Clang binary for 1463 resource files 1464 --with-c-include-dirs Colon separated list of directories clang will 1465 search for headers 1466 --with-cxx-include-root Directory with the libstdc++ headers. 1467 --with-cxx-include-arch Architecture of the libstdc++ headers. 1468 --with-cxx-include-32bit-dir 1469 32 bit multilib dir. 1470 --with-cxx-include-64bit-dir 1471 64 bit multilib directory. 1472 --with-binutils-include Specify path to binutils/include/ containing 1473 plugin-api.h file for gold plugin. 1474 --with-tclinclude directory where tcl headers are 1475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, 1476 clang, or none; default=check) 1477 --with-udis86=<path> Use udis86 external x86 disassembler library 1478 --with-oprofile=<prefix> 1479 Tell OProfile >= 0.9.4 how to symbolize JIT output 1480 1481 Some influential environment variables: 1482 CC C compiler command 1483 CFLAGS C compiler flags 1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1485 nonstandard directory <lib dir> 1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1487 you have headers in a nonstandard directory <include dir> 1488 CPP C preprocessor 1489 CXX C++ compiler command 1490 CXXFLAGS C++ compiler flags 1491 1492 Use these variables to override the choices made by `configure' or to help 1493 it to find libraries and programs with nonstandard names/locations. 1494 1495 Report bugs to <llvmbugs (at] cs.uiuc.edu>. 1496 _ACEOF 1497 ac_status=$? 1498 fi 1499 1500 if test "$ac_init_help" = "recursive"; then 1501 # If there are subdirs, report their specific --help. 1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1503 test -d "$ac_dir" || continue 1504 ac_builddir=. 1505 1506 case "$ac_dir" in 1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508 *) 1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1510 # A ".." for each directory in $ac_dir_suffix. 1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1512 case $ac_top_builddir_sub in 1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1515 esac ;; 1516 esac 1517 ac_abs_top_builddir=$ac_pwd 1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1519 # for backward compatibility: 1520 ac_top_builddir=$ac_top_build_prefix 1521 1522 case $srcdir in 1523 .) # We are building in place. 1524 ac_srcdir=. 1525 ac_top_srcdir=$ac_top_builddir_sub 1526 ac_abs_top_srcdir=$ac_pwd ;; 1527 [\\/]* | ?:[\\/]* ) # Absolute name. 1528 ac_srcdir=$srcdir$ac_dir_suffix; 1529 ac_top_srcdir=$srcdir 1530 ac_abs_top_srcdir=$srcdir ;; 1531 *) # Relative name. 1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1533 ac_top_srcdir=$ac_top_build_prefix$srcdir 1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1535 esac 1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1537 1538 cd "$ac_dir" || { ac_status=$?; continue; } 1539 # Check for guested configure. 1540 if test -f "$ac_srcdir/configure.gnu"; then 1541 echo && 1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1543 elif test -f "$ac_srcdir/configure"; then 1544 echo && 1545 $SHELL "$ac_srcdir/configure" --help=recursive 1546 else 1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1548 fi || ac_status=$? 1549 cd "$ac_pwd" || { ac_status=$?; break; } 1550 done 1551 fi 1552 1553 test -n "$ac_init_help" && exit $ac_status 1554 if $ac_init_version; then 1555 cat <<\_ACEOF 1556 llvm configure 3.0svn 1557 generated by GNU Autoconf 2.60 1558 1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1561 This configure script is free software; the Free Software Foundation 1562 gives unlimited permission to copy, distribute and modify it. 1563 1564 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. 1565 _ACEOF 1566 exit 1567 fi 1568 cat >config.log <<_ACEOF 1569 This file contains any messages produced by compilers while 1570 running configure, to aid debugging if configure makes a mistake. 1571 1572 It was created by llvm $as_me 3.0svn, which was 1573 generated by GNU Autoconf 2.60. Invocation command line was 1574 1575 $ $0 $@ 1576 1577 _ACEOF 1578 exec 5>>config.log 1579 { 1580 cat <<_ASUNAME 1581 ## --------- ## 1582 ## Platform. ## 1583 ## --------- ## 1584 1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1586 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1587 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1588 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1589 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1590 1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1593 1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1601 1602 _ASUNAME 1603 1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1605 for as_dir in $PATH 1606 do 1607 IFS=$as_save_IFS 1608 test -z "$as_dir" && as_dir=. 1609 echo "PATH: $as_dir" 1610 done 1611 IFS=$as_save_IFS 1612 1613 } >&5 1614 1615 cat >&5 <<_ACEOF 1616 1617 1618 ## ----------- ## 1619 ## Core tests. ## 1620 ## ----------- ## 1621 1622 _ACEOF 1623 1624 1625 # Keep a trace of the command line. 1626 # Strip out --no-create and --no-recursion so they do not pile up. 1627 # Strip out --silent because we don't want to record it for future runs. 1628 # Also quote any args containing shell meta-characters. 1629 # Make two passes to allow for proper duplicate-argument suppression. 1630 ac_configure_args= 1631 ac_configure_args0= 1632 ac_configure_args1= 1633 ac_must_keep_next=false 1634 for ac_pass in 1 2 1635 do 1636 for ac_arg 1637 do 1638 case $ac_arg in 1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1641 | -silent | --silent | --silen | --sile | --sil) 1642 continue ;; 1643 *\'*) 1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1645 esac 1646 case $ac_pass in 1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1648 2) 1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1650 if test $ac_must_keep_next = true; then 1651 ac_must_keep_next=false # Got value, back to normal. 1652 else 1653 case $ac_arg in 1654 *=* | --config-cache | -C | -disable-* | --disable-* \ 1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1657 | -with-* | --with-* | -without-* | --without-* | --x) 1658 case "$ac_configure_args0 " in 1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1660 esac 1661 ;; 1662 -* ) ac_must_keep_next=true ;; 1663 esac 1664 fi 1665 ac_configure_args="$ac_configure_args '$ac_arg'" 1666 ;; 1667 esac 1668 done 1669 done 1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1672 1673 # When interrupted or exit'd, cleanup temporary files, and complete 1674 # config.log. We remove comments because anyway the quotes in there 1675 # would cause problems or look ugly. 1676 # WARNING: Use '\'' to represent an apostrophe within the trap. 1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1678 trap 'exit_status=$? 1679 # Save into config.log some information that might help in debugging. 1680 { 1681 echo 1682 1683 cat <<\_ASBOX 1684 ## ---------------- ## 1685 ## Cache variables. ## 1686 ## ---------------- ## 1687 _ASBOX 1688 echo 1689 # The following way of writing the cache mishandles newlines in values, 1690 ( 1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1692 eval ac_val=\$$ac_var 1693 case $ac_val in #( 1694 *${as_nl}*) 1695 case $ac_var in #( 1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1698 esac 1699 case $ac_var in #( 1700 _ | IFS | as_nl) ;; #( 1701 *) $as_unset $ac_var ;; 1702 esac ;; 1703 esac 1704 done 1705 (set) 2>&1 | 1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1707 *${as_nl}ac_space=\ *) 1708 sed -n \ 1709 "s/'\''/'\''\\\\'\'''\''/g; 1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1711 ;; #( 1712 *) 1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1714 ;; 1715 esac | 1716 sort 1717 ) 1718 echo 1719 1720 cat <<\_ASBOX 1721 ## ----------------- ## 1722 ## Output variables. ## 1723 ## ----------------- ## 1724 _ASBOX 1725 echo 1726 for ac_var in $ac_subst_vars 1727 do 1728 eval ac_val=\$$ac_var 1729 case $ac_val in 1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1731 esac 1732 echo "$ac_var='\''$ac_val'\''" 1733 done | sort 1734 echo 1735 1736 if test -n "$ac_subst_files"; then 1737 cat <<\_ASBOX 1738 ## ------------------- ## 1739 ## File substitutions. ## 1740 ## ------------------- ## 1741 _ASBOX 1742 echo 1743 for ac_var in $ac_subst_files 1744 do 1745 eval ac_val=\$$ac_var 1746 case $ac_val in 1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1748 esac 1749 echo "$ac_var='\''$ac_val'\''" 1750 done | sort 1751 echo 1752 fi 1753 1754 if test -s confdefs.h; then 1755 cat <<\_ASBOX 1756 ## ----------- ## 1757 ## confdefs.h. ## 1758 ## ----------- ## 1759 _ASBOX 1760 echo 1761 cat confdefs.h 1762 echo 1763 fi 1764 test "$ac_signal" != 0 && 1765 echo "$as_me: caught signal $ac_signal" 1766 echo "$as_me: exit $exit_status" 1767 } >&5 1768 rm -f core *.core core.conftest.* && 1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1770 exit $exit_status 1771 ' 0 1772 for ac_signal in 1 2 13 15; do 1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1774 done 1775 ac_signal=0 1776 1777 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1778 rm -f -r conftest* confdefs.h 1779 1780 # Predefined preprocessor variables. 1781 1782 cat >>confdefs.h <<_ACEOF 1783 #define PACKAGE_NAME "$PACKAGE_NAME" 1784 _ACEOF 1785 1786 1787 cat >>confdefs.h <<_ACEOF 1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1789 _ACEOF 1790 1791 1792 cat >>confdefs.h <<_ACEOF 1793 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1794 _ACEOF 1795 1796 1797 cat >>confdefs.h <<_ACEOF 1798 #define PACKAGE_STRING "$PACKAGE_STRING" 1799 _ACEOF 1800 1801 1802 cat >>confdefs.h <<_ACEOF 1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1804 _ACEOF 1805 1806 1807 # Let the site file select an alternate cache file if it wants to. 1808 # Prefer explicitly selected file to automatically selected ones. 1809 if test -n "$CONFIG_SITE"; then 1810 set x "$CONFIG_SITE" 1811 elif test "x$prefix" != xNONE; then 1812 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1813 else 1814 set x "$ac_default_prefix/share/config.site" \ 1815 "$ac_default_prefix/etc/config.site" 1816 fi 1817 shift 1818 for ac_site_file 1819 do 1820 if test -r "$ac_site_file"; then 1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1822 echo "$as_me: loading site script $ac_site_file" >&6;} 1823 sed 's/^/| /' "$ac_site_file" >&5 1824 . "$ac_site_file" 1825 fi 1826 done 1827 1828 if test -r "$cache_file"; then 1829 # Some versions of bash will fail to source /dev/null (special 1830 # files actually), so we avoid doing that. 1831 if test -f "$cache_file"; then 1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1833 echo "$as_me: loading cache $cache_file" >&6;} 1834 case $cache_file in 1835 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1836 *) . "./$cache_file";; 1837 esac 1838 fi 1839 else 1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1841 echo "$as_me: creating cache $cache_file" >&6;} 1842 >$cache_file 1843 fi 1844 1845 # Check that the precious variables saved in the cache have kept the same 1846 # value. 1847 ac_cache_corrupted=false 1848 for ac_var in $ac_precious_vars; do 1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1850 eval ac_new_set=\$ac_env_${ac_var}_set 1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1852 eval ac_new_val=\$ac_env_${ac_var}_value 1853 case $ac_old_set,$ac_new_set in 1854 set,) 1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1857 ac_cache_corrupted=: ;; 1858 ,set) 1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1861 ac_cache_corrupted=: ;; 1862 ,);; 1863 *) 1864 if test "x$ac_old_val" != "x$ac_new_val"; then 1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1868 echo "$as_me: former value: $ac_old_val" >&2;} 1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1870 echo "$as_me: current value: $ac_new_val" >&2;} 1871 ac_cache_corrupted=: 1872 fi;; 1873 esac 1874 # Pass precious variables to config.status. 1875 if test "$ac_new_set" = set; then 1876 case $ac_new_val in 1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1878 *) ac_arg=$ac_var=$ac_new_val ;; 1879 esac 1880 case " $ac_configure_args " in 1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1883 esac 1884 fi 1885 done 1886 if $ac_cache_corrupted; then 1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1891 { (exit 1); exit 1; }; } 1892 fi 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 ac_ext=c 1919 ac_cpp='$CPP $CPPFLAGS' 1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1923 1924 1925 1926 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign." 1927 1928 1929 1930 1931 1932 1933 1934 ac_aux_dir= 1935 for ac_dir in autoconf "$srcdir"/autoconf; do 1936 if test -f "$ac_dir/install-sh"; then 1937 ac_aux_dir=$ac_dir 1938 ac_install_sh="$ac_aux_dir/install-sh -c" 1939 break 1940 elif test -f "$ac_dir/install.sh"; then 1941 ac_aux_dir=$ac_dir 1942 ac_install_sh="$ac_aux_dir/install.sh -c" 1943 break 1944 elif test -f "$ac_dir/shtool"; then 1945 ac_aux_dir=$ac_dir 1946 ac_install_sh="$ac_aux_dir/shtool install -c" 1947 break 1948 fi 1949 done 1950 if test -z "$ac_aux_dir"; then 1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1953 { (exit 1); exit 1; }; } 1954 fi 1955 1956 # These three variables are undocumented and unsupported, 1957 # and are intended to be withdrawn in a future Autoconf release. 1958 # They can cause serious problems if a builder's source tree is in a directory 1959 # whose full name contains unusual characters. 1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1963 1964 1965 1966 if test ${srcdir} != "." ; then 1967 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1970 { (exit 1); exit 1; }; } 1971 fi 1972 fi 1973 1974 1975 1976 if test -d ${srcdir}/projects/llvm-gcc ; then 1977 subdirs="$subdirs projects/llvm-gcc" 1978 1979 fi 1980 1981 if test -d ${srcdir}/projects/test-suite ; then 1982 subdirs="$subdirs projects/test-suite" 1983 1984 fi 1985 1986 if test -d ${srcdir}/projects/llvm-test ; then 1987 subdirs="$subdirs projects/llvm-test" 1988 1989 fi 1990 1991 if test -d ${srcdir}/projects/poolalloc ; then 1992 subdirs="$subdirs projects/poolalloc" 1993 1994 fi 1995 1996 if test -d ${srcdir}/projects/llvm-poolalloc ; then 1997 subdirs="$subdirs projects/llvm-poolalloc" 1998 1999 fi 2000 2001 for i in `ls ${srcdir}/projects` 2002 do 2003 if test -d ${srcdir}/projects/${i} ; then 2004 case ${i} in 2005 sample) subdirs="$subdirs projects/sample" 2006 ;; 2007 privbracket) subdirs="$subdirs projects/privbracket" 2008 ;; 2009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 2010 ;; 2011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 2012 ;; 2013 llvm-java) subdirs="$subdirs projects/llvm-java" 2014 ;; 2015 llvm-tv) subdirs="$subdirs projects/llvm-tv" 2016 ;; 2017 safecode) subdirs="$subdirs projects/safecode" 2018 ;; 2019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 2020 ;; 2021 llvm-gcc) ;; 2022 test-suite) ;; 2023 llvm-test) ;; 2024 poolalloc) ;; 2025 llvm-poolalloc) ;; 2026 *) 2027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 2028 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 2029 ;; 2030 esac 2031 fi 2032 done 2033 2034 # Check whether --enable-polly was given. 2035 if test "${enable_polly+set}" = set; then 2036 enableval=$enable_polly; 2037 else 2038 enableval=default 2039 fi 2040 2041 case "$enableval" in 2042 yes) ENABLE_POLLY=1 2043 ;; 2044 no) ENABLE_POLLY=0 2045 ;; 2046 default) ENABLE_POLLY=1 2047 ;; 2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 2049 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 2050 { (exit 1); exit 1; }; } ;; 2051 esac 2052 2053 2054 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 2055 LLVM_HAS_POLLY=1 2056 2057 subdirs="$subdirs tools/polly" 2058 2059 fi 2060 2061 2062 # Make sure we can run config.sub. 2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2065 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2066 { (exit 1); exit 1; }; } 2067 2068 { echo "$as_me:$LINENO: checking build system type" >&5 2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2070 if test "${ac_cv_build+set}" = set; then 2071 echo $ECHO_N "(cached) $ECHO_C" >&6 2072 else 2073 ac_build_alias=$build_alias 2074 test "x$ac_build_alias" = x && 2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2076 test "x$ac_build_alias" = x && 2077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2079 { (exit 1); exit 1; }; } 2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2083 { (exit 1); exit 1; }; } 2084 2085 fi 2086 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2087 echo "${ECHO_T}$ac_cv_build" >&6; } 2088 case $ac_cv_build in 2089 *-*-*) ;; 2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2091 echo "$as_me: error: invalid value of canonical build" >&2;} 2092 { (exit 1); exit 1; }; };; 2093 esac 2094 build=$ac_cv_build 2095 ac_save_IFS=$IFS; IFS='-' 2096 set x $ac_cv_build 2097 shift 2098 build_cpu=$1 2099 build_vendor=$2 2100 shift; shift 2101 # Remember, the first character of IFS is used to create $*, 2102 # except with old shells: 2103 build_os=$* 2104 IFS=$ac_save_IFS 2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2106 2107 2108 { echo "$as_me:$LINENO: checking host system type" >&5 2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2110 if test "${ac_cv_host+set}" = set; then 2111 echo $ECHO_N "(cached) $ECHO_C" >&6 2112 else 2113 if test "x$host_alias" = x; then 2114 ac_cv_host=$ac_cv_build 2115 else 2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2118 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2119 { (exit 1); exit 1; }; } 2120 fi 2121 2122 fi 2123 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2124 echo "${ECHO_T}$ac_cv_host" >&6; } 2125 case $ac_cv_host in 2126 *-*-*) ;; 2127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2128 echo "$as_me: error: invalid value of canonical host" >&2;} 2129 { (exit 1); exit 1; }; };; 2130 esac 2131 host=$ac_cv_host 2132 ac_save_IFS=$IFS; IFS='-' 2133 set x $ac_cv_host 2134 shift 2135 host_cpu=$1 2136 host_vendor=$2 2137 shift; shift 2138 # Remember, the first character of IFS is used to create $*, 2139 # except with old shells: 2140 host_os=$* 2141 IFS=$ac_save_IFS 2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2143 2144 2145 { echo "$as_me:$LINENO: checking target system type" >&5 2146 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2147 if test "${ac_cv_target+set}" = set; then 2148 echo $ECHO_N "(cached) $ECHO_C" >&6 2149 else 2150 if test "x$target_alias" = x; then 2151 ac_cv_target=$ac_cv_host 2152 else 2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2156 { (exit 1); exit 1; }; } 2157 fi 2158 2159 fi 2160 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2161 echo "${ECHO_T}$ac_cv_target" >&6; } 2162 case $ac_cv_target in 2163 *-*-*) ;; 2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2165 echo "$as_me: error: invalid value of canonical target" >&2;} 2166 { (exit 1); exit 1; }; };; 2167 esac 2168 target=$ac_cv_target 2169 ac_save_IFS=$IFS; IFS='-' 2170 set x $ac_cv_target 2171 shift 2172 target_cpu=$1 2173 target_vendor=$2 2174 shift; shift 2175 # Remember, the first character of IFS is used to create $*, 2176 # except with old shells: 2177 target_os=$* 2178 IFS=$ac_save_IFS 2179 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2180 2181 2182 # The aliases save the names the user supplied, while $host etc. 2183 # will get canonicalized. 2184 test -n "$target_alias" && 2185 test "$program_prefix$program_suffix$program_transform_name" = \ 2186 NONENONEs,x,x, && 2187 program_prefix=${target_alias}- 2188 2189 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 2190 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 2191 if test "${llvm_cv_os_type+set}" = set; then 2192 echo $ECHO_N "(cached) $ECHO_C" >&6 2193 else 2194 case $host in 2195 *-*-aix*) 2196 llvm_cv_link_all_option="-Wl,--whole-archive" 2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2198 llvm_cv_os_type="AIX" 2199 llvm_cv_platform_type="Unix" ;; 2200 *-*-irix*) 2201 llvm_cv_link_all_option="-Wl,--whole-archive" 2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2203 llvm_cv_os_type="IRIX" 2204 llvm_cv_platform_type="Unix" ;; 2205 *-*-cygwin*) 2206 llvm_cv_link_all_option="-Wl,--whole-archive" 2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2208 llvm_cv_os_type="Cygwin" 2209 llvm_cv_platform_type="Unix" ;; 2210 *-*-darwin*) 2211 llvm_cv_link_all_option="-Wl,-all_load" 2212 llvm_cv_no_link_all_option="-Wl,-noall_load" 2213 llvm_cv_os_type="Darwin" 2214 llvm_cv_platform_type="Unix" ;; 2215 *-*-minix*) 2216 llvm_cv_link_all_option="-Wl,-all_load" 2217 llvm_cv_no_link_all_option="-Wl,-noall_load" 2218 llvm_cv_os_type="Minix" 2219 llvm_cv_platform_type="Unix" ;; 2220 *-*-freebsd*) 2221 llvm_cv_link_all_option="-Wl,--whole-archive" 2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2223 llvm_cv_os_type="FreeBSD" 2224 llvm_cv_platform_type="Unix" ;; 2225 *-*-openbsd*) 2226 llvm_cv_link_all_option="-Wl,--whole-archive" 2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2228 llvm_cv_os_type="OpenBSD" 2229 llvm_cv_platform_type="Unix" ;; 2230 *-*-netbsd*) 2231 llvm_cv_link_all_option="-Wl,--whole-archive" 2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2233 llvm_cv_os_type="NetBSD" 2234 llvm_cv_platform_type="Unix" ;; 2235 *-*-dragonfly*) 2236 llvm_cv_link_all_option="-Wl,--whole-archive" 2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2238 llvm_cv_os_type="DragonFly" 2239 llvm_cv_platform_type="Unix" ;; 2240 *-*-hpux*) 2241 llvm_cv_link_all_option="-Wl,--whole-archive" 2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2243 llvm_cv_os_type="HP-UX" 2244 llvm_cv_platform_type="Unix" ;; 2245 *-*-interix*) 2246 llvm_cv_link_all_option="-Wl,--whole-archive" 2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2248 llvm_cv_os_type="Interix" 2249 llvm_cv_platform_type="Unix" ;; 2250 *-*-linux*) 2251 llvm_cv_link_all_option="-Wl,--whole-archive" 2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2253 llvm_cv_os_type="Linux" 2254 llvm_cv_platform_type="Unix" ;; 2255 *-*-solaris*) 2256 llvm_cv_link_all_option="-Wl,-z,allextract" 2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 2258 llvm_cv_os_type="SunOS" 2259 llvm_cv_platform_type="Unix" ;; 2260 *-*-auroraux*) 2261 llvm_cv_link_all_option="-Wl,-z,allextract" 2262 llvm_cv_link_all_option="-Wl,-z,defaultextract" 2263 llvm_cv_os_type="AuroraUX" 2264 llvm_cv_platform_type="Unix" ;; 2265 *-*-win32*) 2266 llvm_cv_link_all_option="-Wl,--whole-archive" 2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2268 llvm_cv_os_type="Win32" 2269 llvm_cv_platform_type="Win32" ;; 2270 *-*-mingw*) 2271 llvm_cv_link_all_option="-Wl,--whole-archive" 2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2273 llvm_cv_os_type="MingW" 2274 llvm_cv_platform_type="Win32" ;; 2275 *-*-haiku*) 2276 llvm_cv_link_all_option="-Wl,--whole-archive" 2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2278 llvm_cv_os_type="Haiku" 2279 llvm_cv_platform_type="Unix" ;; 2280 *-unknown-eabi*) 2281 llvm_cv_link_all_option="-Wl,--whole-archive" 2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2283 llvm_cv_os_type="Freestanding" 2284 llvm_cv_platform_type="Unix" ;; 2285 *-unknown-elf*) 2286 llvm_cv_link_all_option="-Wl,--whole-archive" 2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2288 llvm_cv_os_type="Freestanding" 2289 llvm_cv_platform_type="Unix" ;; 2290 *) 2291 llvm_cv_link_all_option="" 2292 llvm_cv_no_link_all_option="" 2293 llvm_cv_os_type="Unknown" 2294 llvm_cv_platform_type="Unknown" ;; 2295 esac 2296 fi 2297 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 2298 echo "${ECHO_T}$llvm_cv_os_type" >&6; } 2299 2300 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 2301 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 2302 if test "${llvm_cv_target_os_type+set}" = set; then 2303 echo $ECHO_N "(cached) $ECHO_C" >&6 2304 else 2305 case $target in 2306 *-*-aix*) 2307 llvm_cv_target_os_type="AIX" ;; 2308 *-*-irix*) 2309 llvm_cv_target_os_type="IRIX" ;; 2310 *-*-cygwin*) 2311 llvm_cv_target_os_type="Cygwin" ;; 2312 *-*-darwin*) 2313 llvm_cv_target_os_type="Darwin" ;; 2314 *-*-minix*) 2315 llvm_cv_target_os_type="Minix" ;; 2316 *-*-freebsd*) 2317 llvm_cv_target_os_type="FreeBSD" ;; 2318 *-*-openbsd*) 2319 llvm_cv_target_os_type="OpenBSD" ;; 2320 *-*-netbsd*) 2321 llvm_cv_target_os_type="NetBSD" ;; 2322 *-*-dragonfly*) 2323 llvm_cv_target_os_type="DragonFly" ;; 2324 *-*-hpux*) 2325 llvm_cv_target_os_type="HP-UX" ;; 2326 *-*-interix*) 2327 llvm_cv_target_os_type="Interix" ;; 2328 *-*-linux*) 2329 llvm_cv_target_os_type="Linux" ;; 2330 *-*-solaris*) 2331 llvm_cv_target_os_type="SunOS" ;; 2332 *-*-auroraux*) 2333 llvm_cv_target_os_type="AuroraUX" ;; 2334 *-*-win32*) 2335 llvm_cv_target_os_type="Win32" ;; 2336 *-*-mingw*) 2337 llvm_cv_target_os_type="MingW" ;; 2338 *-*-haiku*) 2339 llvm_cv_target_os_type="Haiku" ;; 2340 *-*-rtems*) 2341 llvm_cv_target_os_type="RTEMS" ;; 2342 *-unknown-eabi*) 2343 llvm_cv_target_os_type="Freestanding" ;; 2344 *) 2345 llvm_cv_target_os_type="Unknown" ;; 2346 esac 2347 fi 2348 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 2349 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 2350 2351 if test "$llvm_cv_os_type" = "Unknown" ; then 2352 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 2353 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 2354 { (exit 1); exit 1; }; } 2355 fi 2356 2357 OS=$llvm_cv_os_type 2358 2359 HOST_OS=$llvm_cv_os_type 2360 2361 TARGET_OS=$llvm_cv_target_os_type 2362 2363 2364 LINKALL=$llvm_cv_link_all_option 2365 2366 NOLINKALL=$llvm_cv_no_link_all_option 2367 2368 2369 case $llvm_cv_platform_type in 2370 Unix) 2371 2372 cat >>confdefs.h <<\_ACEOF 2373 #define LLVM_ON_UNIX 1 2374 _ACEOF 2375 2376 LLVM_ON_UNIX=1 2377 2378 LLVM_ON_WIN32=0 2379 2380 ;; 2381 Win32) 2382 2383 cat >>confdefs.h <<\_ACEOF 2384 #define LLVM_ON_WIN32 1 2385 _ACEOF 2386 2387 LLVM_ON_UNIX=0 2388 2389 LLVM_ON_WIN32=1 2390 2391 ;; 2392 esac 2393 2394 { echo "$as_me:$LINENO: checking target architecture" >&5 2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 2396 if test "${llvm_cv_target_arch+set}" = set; then 2397 echo $ECHO_N "(cached) $ECHO_C" >&6 2398 else 2399 case $target in 2400 i?86-*) llvm_cv_target_arch="x86" ;; 2401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 2402 sparc*-*) llvm_cv_target_arch="Sparc" ;; 2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 2404 alpha*-*) llvm_cv_target_arch="Alpha" ;; 2405 arm*-*) llvm_cv_target_arch="ARM" ;; 2406 mips-*) llvm_cv_target_arch="Mips" ;; 2407 xcore-*) llvm_cv_target_arch="XCore" ;; 2408 msp430-*) llvm_cv_target_arch="MSP430" ;; 2409 s390x-*) llvm_cv_target_arch="SystemZ" ;; 2410 bfin-*) llvm_cv_target_arch="Blackfin" ;; 2411 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 2412 ptx-*) llvm_cv_target_arch="PTX" ;; 2413 *) llvm_cv_target_arch="Unknown" ;; 2414 esac 2415 fi 2416 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 2417 echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 2418 2419 if test "$llvm_cv_target_arch" = "Unknown" ; then 2420 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 2421 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 2422 fi 2423 2424 # Determine the LLVM native architecture for the target 2425 case "$llvm_cv_target_arch" in 2426 x86) LLVM_NATIVE_ARCH="X86" ;; 2427 x86_64) LLVM_NATIVE_ARCH="X86" ;; 2428 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 2429 esac 2430 2431 ARCH=$llvm_cv_target_arch 2432 2433 2434 ac_ext=c 2435 ac_cpp='$CPP $CPPFLAGS' 2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2439 if test -n "$ac_tool_prefix"; then 2440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2441 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2442 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2444 if test "${ac_cv_prog_CC+set}" = set; then 2445 echo $ECHO_N "(cached) $ECHO_C" >&6 2446 else 2447 if test -n "$CC"; then 2448 ac_cv_prog_CC="$CC" # Let the user override the test. 2449 else 2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2451 for as_dir in $PATH 2452 do 2453 IFS=$as_save_IFS 2454 test -z "$as_dir" && as_dir=. 2455 for ac_exec_ext in '' $ac_executable_extensions; do 2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2457 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2459 break 2 2460 fi 2461 done 2462 done 2463 IFS=$as_save_IFS 2464 2465 fi 2466 fi 2467 CC=$ac_cv_prog_CC 2468 if test -n "$CC"; then 2469 { echo "$as_me:$LINENO: result: $CC" >&5 2470 echo "${ECHO_T}$CC" >&6; } 2471 else 2472 { echo "$as_me:$LINENO: result: no" >&5 2473 echo "${ECHO_T}no" >&6; } 2474 fi 2475 2476 2477 fi 2478 if test -z "$ac_cv_prog_CC"; then 2479 ac_ct_CC=$CC 2480 # Extract the first word of "gcc", so it can be a program name with args. 2481 set dummy gcc; ac_word=$2 2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2485 echo $ECHO_N "(cached) $ECHO_C" >&6 2486 else 2487 if test -n "$ac_ct_CC"; then 2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2489 else 2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491 for as_dir in $PATH 2492 do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 for ac_exec_ext in '' $ac_executable_extensions; do 2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2497 ac_cv_prog_ac_ct_CC="gcc" 2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2499 break 2 2500 fi 2501 done 2502 done 2503 IFS=$as_save_IFS 2504 2505 fi 2506 fi 2507 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2508 if test -n "$ac_ct_CC"; then 2509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2510 echo "${ECHO_T}$ac_ct_CC" >&6; } 2511 else 2512 { echo "$as_me:$LINENO: result: no" >&5 2513 echo "${ECHO_T}no" >&6; } 2514 fi 2515 2516 if test "x$ac_ct_CC" = x; then 2517 CC="" 2518 else 2519 case $cross_compiling:$ac_tool_warned in 2520 yes:) 2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2522 whose name does not start with the host triplet. If you think this 2523 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2525 whose name does not start with the host triplet. If you think this 2526 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2527 ac_tool_warned=yes ;; 2528 esac 2529 CC=$ac_ct_CC 2530 fi 2531 else 2532 CC="$ac_cv_prog_CC" 2533 fi 2534 2535 if test -z "$CC"; then 2536 if test -n "$ac_tool_prefix"; then 2537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2538 set dummy ${ac_tool_prefix}cc; ac_word=$2 2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2541 if test "${ac_cv_prog_CC+set}" = set; then 2542 echo $ECHO_N "(cached) $ECHO_C" >&6 2543 else 2544 if test -n "$CC"; then 2545 ac_cv_prog_CC="$CC" # Let the user override the test. 2546 else 2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548 for as_dir in $PATH 2549 do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2554 ac_cv_prog_CC="${ac_tool_prefix}cc" 2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558 done 2559 done 2560 IFS=$as_save_IFS 2561 2562 fi 2563 fi 2564 CC=$ac_cv_prog_CC 2565 if test -n "$CC"; then 2566 { echo "$as_me:$LINENO: result: $CC" >&5 2567 echo "${ECHO_T}$CC" >&6; } 2568 else 2569 { echo "$as_me:$LINENO: result: no" >&5 2570 echo "${ECHO_T}no" >&6; } 2571 fi 2572 2573 2574 fi 2575 fi 2576 if test -z "$CC"; then 2577 # Extract the first word of "cc", so it can be a program name with args. 2578 set dummy cc; ac_word=$2 2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2581 if test "${ac_cv_prog_CC+set}" = set; then 2582 echo $ECHO_N "(cached) $ECHO_C" >&6 2583 else 2584 if test -n "$CC"; then 2585 ac_cv_prog_CC="$CC" # Let the user override the test. 2586 else 2587 ac_prog_rejected=no 2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589 for as_dir in $PATH 2590 do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2596 ac_prog_rejected=yes 2597 continue 2598 fi 2599 ac_cv_prog_CC="cc" 2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2601 break 2 2602 fi 2603 done 2604 done 2605 IFS=$as_save_IFS 2606 2607 if test $ac_prog_rejected = yes; then 2608 # We found a bogon in the path, so make sure we never use it. 2609 set dummy $ac_cv_prog_CC 2610 shift 2611 if test $# != 0; then 2612 # We chose a different compiler from the bogus one. 2613 # However, it has the same basename, so the bogon will be chosen 2614 # first if we set CC to just the basename; use the full file name. 2615 shift 2616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2617 fi 2618 fi 2619 fi 2620 fi 2621 CC=$ac_cv_prog_CC 2622 if test -n "$CC"; then 2623 { echo "$as_me:$LINENO: result: $CC" >&5 2624 echo "${ECHO_T}$CC" >&6; } 2625 else 2626 { echo "$as_me:$LINENO: result: no" >&5 2627 echo "${ECHO_T}no" >&6; } 2628 fi 2629 2630 2631 fi 2632 if test -z "$CC"; then 2633 if test -n "$ac_tool_prefix"; then 2634 for ac_prog in cl.exe 2635 do 2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2640 if test "${ac_cv_prog_CC+set}" = set; then 2641 echo $ECHO_N "(cached) $ECHO_C" >&6 2642 else 2643 if test -n "$CC"; then 2644 ac_cv_prog_CC="$CC" # Let the user override the test. 2645 else 2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647 for as_dir in $PATH 2648 do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657 done 2658 done 2659 IFS=$as_save_IFS 2660 2661 fi 2662 fi 2663 CC=$ac_cv_prog_CC 2664 if test -n "$CC"; then 2665 { echo "$as_me:$LINENO: result: $CC" >&5 2666 echo "${ECHO_T}$CC" >&6; } 2667 else 2668 { echo "$as_me:$LINENO: result: no" >&5 2669 echo "${ECHO_T}no" >&6; } 2670 fi 2671 2672 2673 test -n "$CC" && break 2674 done 2675 fi 2676 if test -z "$CC"; then 2677 ac_ct_CC=$CC 2678 for ac_prog in cl.exe 2679 do 2680 # Extract the first word of "$ac_prog", so it can be a program name with args. 2681 set dummy $ac_prog; ac_word=$2 2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2685 echo $ECHO_N "(cached) $ECHO_C" >&6 2686 else 2687 if test -n "$ac_ct_CC"; then 2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2689 else 2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691 for as_dir in $PATH 2692 do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2697 ac_cv_prog_ac_ct_CC="$ac_prog" 2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2699 break 2 2700 fi 2701 done 2702 done 2703 IFS=$as_save_IFS 2704 2705 fi 2706 fi 2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2708 if test -n "$ac_ct_CC"; then 2709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2710 echo "${ECHO_T}$ac_ct_CC" >&6; } 2711 else 2712 { echo "$as_me:$LINENO: result: no" >&5 2713 echo "${ECHO_T}no" >&6; } 2714 fi 2715 2716 2717 test -n "$ac_ct_CC" && break 2718 done 2719 2720 if test "x$ac_ct_CC" = x; then 2721 CC="" 2722 else 2723 case $cross_compiling:$ac_tool_warned in 2724 yes:) 2725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2726 whose name does not start with the host triplet. If you think this 2727 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2729 whose name does not start with the host triplet. If you think this 2730 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2731 ac_tool_warned=yes ;; 2732 esac 2733 CC=$ac_ct_CC 2734 fi 2735 fi 2736 2737 fi 2738 2739 2740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2741 See \`config.log' for more details." >&5 2742 echo "$as_me: error: no acceptable C compiler found in \$PATH 2743 See \`config.log' for more details." >&2;} 2744 { (exit 1); exit 1; }; } 2745 2746 # Provide some information about the compiler. 2747 echo "$as_me:$LINENO: checking for C compiler version" >&5 2748 ac_compiler=`set X $ac_compile; echo $2` 2749 { (ac_try="$ac_compiler --version >&5" 2750 case "(($ac_try" in 2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2752 *) ac_try_echo=$ac_try;; 2753 esac 2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2755 (eval "$ac_compiler --version >&5") 2>&5 2756 ac_status=$? 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); } 2759 { (ac_try="$ac_compiler -v >&5" 2760 case "(($ac_try" in 2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2762 *) ac_try_echo=$ac_try;; 2763 esac 2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2765 (eval "$ac_compiler -v >&5") 2>&5 2766 ac_status=$? 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2768 (exit $ac_status); } 2769 { (ac_try="$ac_compiler -V >&5" 2770 case "(($ac_try" in 2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2772 *) ac_try_echo=$ac_try;; 2773 esac 2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2775 (eval "$ac_compiler -V >&5") 2>&5 2776 ac_status=$? 2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2778 (exit $ac_status); } 2779 2780 cat >conftest.$ac_ext <<_ACEOF 2781 /* confdefs.h. */ 2782 _ACEOF 2783 cat confdefs.h >>conftest.$ac_ext 2784 cat >>conftest.$ac_ext <<_ACEOF 2785 /* end confdefs.h. */ 2786 2787 int 2788 main () 2789 { 2790 2791 ; 2792 return 0; 2793 } 2794 _ACEOF 2795 ac_clean_files_save=$ac_clean_files 2796 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2797 # Try to create an executable without -o first, disregard a.out. 2798 # It will help us diagnose broken compilers, and finding out an intuition 2799 # of exeext. 2800 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2801 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2802 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2803 # 2804 # List of possible output files, starting from the most likely. 2805 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2806 # only as a last resort. b.out is created by i960 compilers. 2807 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2808 # 2809 # The IRIX 6 linker writes into existing files which may not be 2810 # executable, retaining their permissions. Remove them first so a 2811 # subsequent execution test works. 2812 ac_rmfiles= 2813 for ac_file in $ac_files 2814 do 2815 case $ac_file in 2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2817 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2818 esac 2819 done 2820 rm -f $ac_rmfiles 2821 2822 if { (ac_try="$ac_link_default" 2823 case "(($ac_try" in 2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2825 *) ac_try_echo=$ac_try;; 2826 esac 2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2828 (eval "$ac_link_default") 2>&5 2829 ac_status=$? 2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2831 (exit $ac_status); }; then 2832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2834 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2835 # so that the user can short-circuit this test for compilers unknown to 2836 # Autoconf. 2837 for ac_file in $ac_files 2838 do 2839 test -f "$ac_file" || continue 2840 case $ac_file in 2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2842 ;; 2843 [ab].out ) 2844 # We found the default executable, but exeext='' is most 2845 # certainly right. 2846 break;; 2847 *.* ) 2848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2849 then :; else 2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2851 fi 2852 # We set ac_cv_exeext here because the later test for it is not 2853 # safe: cross compilers may not add the suffix if given an `-o' 2854 # argument, so we may need to know it at that point already. 2855 # Even if this section looks crufty: it has the advantage of 2856 # actually working. 2857 break;; 2858 * ) 2859 break;; 2860 esac 2861 done 2862 test "$ac_cv_exeext" = no && ac_cv_exeext= 2863 2864 else 2865 echo "$as_me: failed program was:" >&5 2866 sed 's/^/| /' conftest.$ac_ext >&5 2867 2868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2869 See \`config.log' for more details." >&5 2870 echo "$as_me: error: C compiler cannot create executables 2871 See \`config.log' for more details." >&2;} 2872 { (exit 77); exit 77; }; } 2873 fi 2874 2875 ac_exeext=$ac_cv_exeext 2876 { echo "$as_me:$LINENO: result: $ac_file" >&5 2877 echo "${ECHO_T}$ac_file" >&6; } 2878 2879 # Check that the compiler produces executables we can run. If not, either 2880 # the compiler is broken, or we cross compile. 2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2884 # If not cross compiling, check that we can run a simple program. 2885 if test "$cross_compiling" != yes; then 2886 if { ac_try='./$ac_file' 2887 { (case "(($ac_try" in 2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2889 *) ac_try_echo=$ac_try;; 2890 esac 2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2892 (eval "$ac_try") 2>&5 2893 ac_status=$? 2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2895 (exit $ac_status); }; }; then 2896 cross_compiling=no 2897 else 2898 if test "$cross_compiling" = maybe; then 2899 cross_compiling=yes 2900 else 2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2902 If you meant to cross compile, use \`--host'. 2903 See \`config.log' for more details." >&5 2904 echo "$as_me: error: cannot run C compiled programs. 2905 If you meant to cross compile, use \`--host'. 2906 See \`config.log' for more details." >&2;} 2907 { (exit 1); exit 1; }; } 2908 fi 2909 fi 2910 fi 2911 { echo "$as_me:$LINENO: result: yes" >&5 2912 echo "${ECHO_T}yes" >&6; } 2913 2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2915 ac_clean_files=$ac_clean_files_save 2916 # Check that the compiler produces executables we can run. If not, either 2917 # the compiler is broken, or we cross compile. 2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2921 echo "${ECHO_T}$cross_compiling" >&6; } 2922 2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2925 if { (ac_try="$ac_link" 2926 case "(($ac_try" in 2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2928 *) ac_try_echo=$ac_try;; 2929 esac 2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2931 (eval "$ac_link") 2>&5 2932 ac_status=$? 2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2934 (exit $ac_status); }; then 2935 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2936 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2937 # work properly (i.e., refer to `conftest.exe'), while it won't with 2938 # `rm'. 2939 for ac_file in conftest.exe conftest conftest.*; do 2940 test -f "$ac_file" || continue 2941 case $ac_file in 2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2944 break;; 2945 * ) break;; 2946 esac 2947 done 2948 else 2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2950 See \`config.log' for more details." >&5 2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2952 See \`config.log' for more details." >&2;} 2953 { (exit 1); exit 1; }; } 2954 fi 2955 2956 rm -f conftest$ac_cv_exeext 2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2958 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2959 2960 rm -f conftest.$ac_ext 2961 EXEEXT=$ac_cv_exeext 2962 ac_exeext=$EXEEXT 2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2965 if test "${ac_cv_objext+set}" = set; then 2966 echo $ECHO_N "(cached) $ECHO_C" >&6 2967 else 2968 cat >conftest.$ac_ext <<_ACEOF 2969 /* confdefs.h. */ 2970 _ACEOF 2971 cat confdefs.h >>conftest.$ac_ext 2972 cat >>conftest.$ac_ext <<_ACEOF 2973 /* end confdefs.h. */ 2974 2975 int 2976 main () 2977 { 2978 2979 ; 2980 return 0; 2981 } 2982 _ACEOF 2983 rm -f conftest.o conftest.obj 2984 if { (ac_try="$ac_compile" 2985 case "(($ac_try" in 2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2987 *) ac_try_echo=$ac_try;; 2988 esac 2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2990 (eval "$ac_compile") 2>&5 2991 ac_status=$? 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); }; then 2994 for ac_file in conftest.o conftest.obj conftest.*; do 2995 test -f "$ac_file" || continue; 2996 case $ac_file in 2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2999 break;; 3000 esac 3001 done 3002 else 3003 echo "$as_me: failed program was:" >&5 3004 sed 's/^/| /' conftest.$ac_ext >&5 3005 3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3007 See \`config.log' for more details." >&5 3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile 3009 See \`config.log' for more details." >&2;} 3010 { (exit 1); exit 1; }; } 3011 fi 3012 3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3014 fi 3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3016 echo "${ECHO_T}$ac_cv_objext" >&6; } 3017 OBJEXT=$ac_cv_objext 3018 ac_objext=$OBJEXT 3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3022 echo $ECHO_N "(cached) $ECHO_C" >&6 3023 else 3024 cat >conftest.$ac_ext <<_ACEOF 3025 /* confdefs.h. */ 3026 _ACEOF 3027 cat confdefs.h >>conftest.$ac_ext 3028 cat >>conftest.$ac_ext <<_ACEOF 3029 /* end confdefs.h. */ 3030 3031 int 3032 main () 3033 { 3034 #ifndef __GNUC__ 3035 choke me 3036 #endif 3037 3038 ; 3039 return 0; 3040 } 3041 _ACEOF 3042 rm -f conftest.$ac_objext 3043 if { (ac_try="$ac_compile" 3044 case "(($ac_try" in 3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3046 *) ac_try_echo=$ac_try;; 3047 esac 3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3049 (eval "$ac_compile") 2>conftest.er1 3050 ac_status=$? 3051 grep -v '^ *+' conftest.er1 >conftest.err 3052 rm -f conftest.er1 3053 cat conftest.err >&5 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3055 (exit $ac_status); } && 3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3057 { (case "(($ac_try" in 3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3059 *) ac_try_echo=$ac_try;; 3060 esac 3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3062 (eval "$ac_try") 2>&5 3063 ac_status=$? 3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3065 (exit $ac_status); }; } && 3066 { ac_try='test -s conftest.$ac_objext' 3067 { (case "(($ac_try" in 3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3069 *) ac_try_echo=$ac_try;; 3070 esac 3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3072 (eval "$ac_try") 2>&5 3073 ac_status=$? 3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3075 (exit $ac_status); }; }; then 3076 ac_compiler_gnu=yes 3077 else 3078 echo "$as_me: failed program was:" >&5 3079 sed 's/^/| /' conftest.$ac_ext >&5 3080 3081 ac_compiler_gnu=no 3082 fi 3083 3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3086 3087 fi 3088 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3090 GCC=`test $ac_compiler_gnu = yes && echo yes` 3091 ac_test_CFLAGS=${CFLAGS+set} 3092 ac_save_CFLAGS=$CFLAGS 3093 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3094 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3095 if test "${ac_cv_prog_cc_g+set}" = set; then 3096 echo $ECHO_N "(cached) $ECHO_C" >&6 3097 else 3098 ac_save_c_werror_flag=$ac_c_werror_flag 3099 ac_c_werror_flag=yes 3100 ac_cv_prog_cc_g=no 3101 CFLAGS="-g" 3102 cat >conftest.$ac_ext <<_ACEOF 3103 /* confdefs.h. */ 3104 _ACEOF 3105 cat confdefs.h >>conftest.$ac_ext 3106 cat >>conftest.$ac_ext <<_ACEOF 3107 /* end confdefs.h. */ 3108 3109 int 3110 main () 3111 { 3112 3113 ; 3114 return 0; 3115 } 3116 _ACEOF 3117 rm -f conftest.$ac_objext 3118 if { (ac_try="$ac_compile" 3119 case "(($ac_try" in 3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3121 *) ac_try_echo=$ac_try;; 3122 esac 3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3124 (eval "$ac_compile") 2>conftest.er1 3125 ac_status=$? 3126 grep -v '^ *+' conftest.er1 >conftest.err 3127 rm -f conftest.er1 3128 cat conftest.err >&5 3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 (exit $ac_status); } && 3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3132 { (case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135 esac 3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3137 (eval "$ac_try") 2>&5 3138 ac_status=$? 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); }; } && 3141 { ac_try='test -s conftest.$ac_objext' 3142 { (case "(($ac_try" in 3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3144 *) ac_try_echo=$ac_try;; 3145 esac 3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3147 (eval "$ac_try") 2>&5 3148 ac_status=$? 3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3150 (exit $ac_status); }; }; then 3151 ac_cv_prog_cc_g=yes 3152 else 3153 echo "$as_me: failed program was:" >&5 3154 sed 's/^/| /' conftest.$ac_ext >&5 3155 3156 CFLAGS="" 3157 cat >conftest.$ac_ext <<_ACEOF 3158 /* confdefs.h. */ 3159 _ACEOF 3160 cat confdefs.h >>conftest.$ac_ext 3161 cat >>conftest.$ac_ext <<_ACEOF 3162 /* end confdefs.h. */ 3163 3164 int 3165 main () 3166 { 3167 3168 ; 3169 return 0; 3170 } 3171 _ACEOF 3172 rm -f conftest.$ac_objext 3173 if { (ac_try="$ac_compile" 3174 case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177 esac 3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3179 (eval "$ac_compile") 2>conftest.er1 3180 ac_status=$? 3181 grep -v '^ *+' conftest.er1 >conftest.err 3182 rm -f conftest.er1 3183 cat conftest.err >&5 3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3185 (exit $ac_status); } && 3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3187 { (case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190 esac 3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3192 (eval "$ac_try") 2>&5 3193 ac_status=$? 3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3195 (exit $ac_status); }; } && 3196 { ac_try='test -s conftest.$ac_objext' 3197 { (case "(($ac_try" in 3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3199 *) ac_try_echo=$ac_try;; 3200 esac 3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3202 (eval "$ac_try") 2>&5 3203 ac_status=$? 3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3205 (exit $ac_status); }; }; then 3206 : 3207 else 3208 echo "$as_me: failed program was:" >&5 3209 sed 's/^/| /' conftest.$ac_ext >&5 3210 3211 ac_c_werror_flag=$ac_save_c_werror_flag 3212 CFLAGS="-g" 3213 cat >conftest.$ac_ext <<_ACEOF 3214 /* confdefs.h. */ 3215 _ACEOF 3216 cat confdefs.h >>conftest.$ac_ext 3217 cat >>conftest.$ac_ext <<_ACEOF 3218 /* end confdefs.h. */ 3219 3220 int 3221 main () 3222 { 3223 3224 ; 3225 return 0; 3226 } 3227 _ACEOF 3228 rm -f conftest.$ac_objext 3229 if { (ac_try="$ac_compile" 3230 case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233 esac 3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3235 (eval "$ac_compile") 2>conftest.er1 3236 ac_status=$? 3237 grep -v '^ *+' conftest.er1 >conftest.err 3238 rm -f conftest.er1 3239 cat conftest.err >&5 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); } && 3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3243 { (case "(($ac_try" in 3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3245 *) ac_try_echo=$ac_try;; 3246 esac 3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3248 (eval "$ac_try") 2>&5 3249 ac_status=$? 3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3251 (exit $ac_status); }; } && 3252 { ac_try='test -s conftest.$ac_objext' 3253 { (case "(($ac_try" in 3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3255 *) ac_try_echo=$ac_try;; 3256 esac 3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3258 (eval "$ac_try") 2>&5 3259 ac_status=$? 3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3261 (exit $ac_status); }; }; then 3262 ac_cv_prog_cc_g=yes 3263 else 3264 echo "$as_me: failed program was:" >&5 3265 sed 's/^/| /' conftest.$ac_ext >&5 3266 3267 3268 fi 3269 3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3271 fi 3272 3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3274 fi 3275 3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3277 ac_c_werror_flag=$ac_save_c_werror_flag 3278 fi 3279 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3281 if test "$ac_test_CFLAGS" = set; then 3282 CFLAGS=$ac_save_CFLAGS 3283 elif test $ac_cv_prog_cc_g = yes; then 3284 if test "$GCC" = yes; then 3285 CFLAGS="-g -O2" 3286 else 3287 CFLAGS="-g" 3288 fi 3289 else 3290 if test "$GCC" = yes; then 3291 CFLAGS="-O2" 3292 else 3293 CFLAGS= 3294 fi 3295 fi 3296 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3297 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3298 if test "${ac_cv_prog_cc_c89+set}" = set; then 3299 echo $ECHO_N "(cached) $ECHO_C" >&6 3300 else 3301 ac_cv_prog_cc_c89=no 3302 ac_save_CC=$CC 3303 cat >conftest.$ac_ext <<_ACEOF 3304 /* confdefs.h. */ 3305 _ACEOF 3306 cat confdefs.h >>conftest.$ac_ext 3307 cat >>conftest.$ac_ext <<_ACEOF 3308 /* end confdefs.h. */ 3309 #include <stdarg.h> 3310 #include <stdio.h> 3311 #include <sys/types.h> 3312 #include <sys/stat.h> 3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3314 struct buf { int x; }; 3315 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3316 static char *e (p, i) 3317 char **p; 3318 int i; 3319 { 3320 return p[i]; 3321 } 3322 static char *f (char * (*g) (char **, int), char **p, ...) 3323 { 3324 char *s; 3325 va_list v; 3326 va_start (v,p); 3327 s = g (p, va_arg (v,int)); 3328 va_end (v); 3329 return s; 3330 } 3331 3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3333 function prototypes and stuff, but not '\xHH' hex character constants. 3334 These don't provoke an error unfortunately, instead are silently treated 3335 as 'x'. The following induces an error, until -std is added to get 3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3337 array size at least. It's necessary to write '\x00'==0 to get something 3338 that's true only with -std. */ 3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3340 3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3342 inside strings and character constants. */ 3343 #define FOO(x) 'x' 3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3345 3346 int test (int i, double x); 3347 struct s1 {int (*f) (int a);}; 3348 struct s2 {int (*f) (double a);}; 3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3350 int argc; 3351 char **argv; 3352 int 3353 main () 3354 { 3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3356 ; 3357 return 0; 3358 } 3359 _ACEOF 3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3362 do 3363 CC="$ac_save_CC $ac_arg" 3364 rm -f conftest.$ac_objext 3365 if { (ac_try="$ac_compile" 3366 case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369 esac 3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3371 (eval "$ac_compile") 2>conftest.er1 3372 ac_status=$? 3373 grep -v '^ *+' conftest.er1 >conftest.err 3374 rm -f conftest.er1 3375 cat conftest.err >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); } && 3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3379 { (case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382 esac 3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3384 (eval "$ac_try") 2>&5 3385 ac_status=$? 3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3387 (exit $ac_status); }; } && 3388 { ac_try='test -s conftest.$ac_objext' 3389 { (case "(($ac_try" in 3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3391 *) ac_try_echo=$ac_try;; 3392 esac 3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3394 (eval "$ac_try") 2>&5 3395 ac_status=$? 3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3397 (exit $ac_status); }; }; then 3398 ac_cv_prog_cc_c89=$ac_arg 3399 else 3400 echo "$as_me: failed program was:" >&5 3401 sed 's/^/| /' conftest.$ac_ext >&5 3402 3403 3404 fi 3405 3406 rm -f core conftest.err conftest.$ac_objext 3407 test "x$ac_cv_prog_cc_c89" != "xno" && break 3408 done 3409 rm -f conftest.$ac_ext 3410 CC=$ac_save_CC 3411 3412 fi 3413 # AC_CACHE_VAL 3414 case "x$ac_cv_prog_cc_c89" in 3415 x) 3416 { echo "$as_me:$LINENO: result: none needed" >&5 3417 echo "${ECHO_T}none needed" >&6; } ;; 3418 xno) 3419 { echo "$as_me:$LINENO: result: unsupported" >&5 3420 echo "${ECHO_T}unsupported" >&6; } ;; 3421 *) 3422 CC="$CC $ac_cv_prog_cc_c89" 3423 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3424 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3425 esac 3426 3427 3428 ac_ext=c 3429 ac_cpp='$CPP $CPPFLAGS' 3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3433 3434 3435 ac_ext=c 3436 ac_cpp='$CPP $CPPFLAGS' 3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3440 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3442 # On Suns, sometimes $CPP names a directory. 3443 if test -n "$CPP" && test -d "$CPP"; then 3444 CPP= 3445 fi 3446 if test -z "$CPP"; then 3447 if test "${ac_cv_prog_CPP+set}" = set; then 3448 echo $ECHO_N "(cached) $ECHO_C" >&6 3449 else 3450 # Double quotes because CPP needs to be expanded 3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3452 do 3453 ac_preproc_ok=false 3454 for ac_c_preproc_warn_flag in '' yes 3455 do 3456 # Use a header file that comes with gcc, so configuring glibc 3457 # with a fresh cross-compiler works. 3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3459 # <limits.h> exists even on freestanding compilers. 3460 # On the NeXT, cc -E runs the code through the compiler's parser, 3461 # not just through cpp. "Syntax error" is here to catch this case. 3462 cat >conftest.$ac_ext <<_ACEOF 3463 /* confdefs.h. */ 3464 _ACEOF 3465 cat confdefs.h >>conftest.$ac_ext 3466 cat >>conftest.$ac_ext <<_ACEOF 3467 /* end confdefs.h. */ 3468 #ifdef __STDC__ 3469 # include <limits.h> 3470 #else 3471 # include <assert.h> 3472 #endif 3473 Syntax error 3474 _ACEOF 3475 if { (ac_try="$ac_cpp conftest.$ac_ext" 3476 case "(($ac_try" in 3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3478 *) ac_try_echo=$ac_try;; 3479 esac 3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3482 ac_status=$? 3483 grep -v '^ *+' conftest.er1 >conftest.err 3484 rm -f conftest.er1 3485 cat conftest.err >&5 3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); } >/dev/null; then 3488 if test -s conftest.err; then 3489 ac_cpp_err=$ac_c_preproc_warn_flag 3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3491 else 3492 ac_cpp_err= 3493 fi 3494 else 3495 ac_cpp_err=yes 3496 fi 3497 if test -z "$ac_cpp_err"; then 3498 : 3499 else 3500 echo "$as_me: failed program was:" >&5 3501 sed 's/^/| /' conftest.$ac_ext >&5 3502 3503 # Broken: fails on valid input. 3504 continue 3505 fi 3506 3507 rm -f conftest.err conftest.$ac_ext 3508 3509 # OK, works on sane cases. Now check whether nonexistent headers 3510 # can be detected and how. 3511 cat >conftest.$ac_ext <<_ACEOF 3512 /* confdefs.h. */ 3513 _ACEOF 3514 cat confdefs.h >>conftest.$ac_ext 3515 cat >>conftest.$ac_ext <<_ACEOF 3516 /* end confdefs.h. */ 3517 #include <ac_nonexistent.h> 3518 _ACEOF 3519 if { (ac_try="$ac_cpp conftest.$ac_ext" 3520 case "(($ac_try" in 3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *) ac_try_echo=$ac_try;; 3523 esac 3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3526 ac_status=$? 3527 grep -v '^ *+' conftest.er1 >conftest.err 3528 rm -f conftest.er1 3529 cat conftest.err >&5 3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); } >/dev/null; then 3532 if test -s conftest.err; then 3533 ac_cpp_err=$ac_c_preproc_warn_flag 3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3535 else 3536 ac_cpp_err= 3537 fi 3538 else 3539 ac_cpp_err=yes 3540 fi 3541 if test -z "$ac_cpp_err"; then 3542 # Broken: success on invalid input. 3543 continue 3544 else 3545 echo "$as_me: failed program was:" >&5 3546 sed 's/^/| /' conftest.$ac_ext >&5 3547 3548 # Passes both tests. 3549 ac_preproc_ok=: 3550 break 3551 fi 3552 3553 rm -f conftest.err conftest.$ac_ext 3554 3555 done 3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3557 rm -f conftest.err conftest.$ac_ext 3558 if $ac_preproc_ok; then 3559 break 3560 fi 3561 3562 done 3563 ac_cv_prog_CPP=$CPP 3564 3565 fi 3566 CPP=$ac_cv_prog_CPP 3567 else 3568 ac_cv_prog_CPP=$CPP 3569 fi 3570 { echo "$as_me:$LINENO: result: $CPP" >&5 3571 echo "${ECHO_T}$CPP" >&6; } 3572 ac_preproc_ok=false 3573 for ac_c_preproc_warn_flag in '' yes 3574 do 3575 # Use a header file that comes with gcc, so configuring glibc 3576 # with a fresh cross-compiler works. 3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3578 # <limits.h> exists even on freestanding compilers. 3579 # On the NeXT, cc -E runs the code through the compiler's parser, 3580 # not just through cpp. "Syntax error" is here to catch this case. 3581 cat >conftest.$ac_ext <<_ACEOF 3582 /* confdefs.h. */ 3583 _ACEOF 3584 cat confdefs.h >>conftest.$ac_ext 3585 cat >>conftest.$ac_ext <<_ACEOF 3586 /* end confdefs.h. */ 3587 #ifdef __STDC__ 3588 # include <limits.h> 3589 #else 3590 # include <assert.h> 3591 #endif 3592 Syntax error 3593 _ACEOF 3594 if { (ac_try="$ac_cpp conftest.$ac_ext" 3595 case "(($ac_try" in 3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3597 *) ac_try_echo=$ac_try;; 3598 esac 3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3601 ac_status=$? 3602 grep -v '^ *+' conftest.er1 >conftest.err 3603 rm -f conftest.er1 3604 cat conftest.err >&5 3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3606 (exit $ac_status); } >/dev/null; then 3607 if test -s conftest.err; then 3608 ac_cpp_err=$ac_c_preproc_warn_flag 3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3610 else 3611 ac_cpp_err= 3612 fi 3613 else 3614 ac_cpp_err=yes 3615 fi 3616 if test -z "$ac_cpp_err"; then 3617 : 3618 else 3619 echo "$as_me: failed program was:" >&5 3620 sed 's/^/| /' conftest.$ac_ext >&5 3621 3622 # Broken: fails on valid input. 3623 continue 3624 fi 3625 3626 rm -f conftest.err conftest.$ac_ext 3627 3628 # OK, works on sane cases. Now check whether nonexistent headers 3629 # can be detected and how. 3630 cat >conftest.$ac_ext <<_ACEOF 3631 /* confdefs.h. */ 3632 _ACEOF 3633 cat confdefs.h >>conftest.$ac_ext 3634 cat >>conftest.$ac_ext <<_ACEOF 3635 /* end confdefs.h. */ 3636 #include <ac_nonexistent.h> 3637 _ACEOF 3638 if { (ac_try="$ac_cpp conftest.$ac_ext" 3639 case "(($ac_try" in 3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3641 *) ac_try_echo=$ac_try;; 3642 esac 3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3645 ac_status=$? 3646 grep -v '^ *+' conftest.er1 >conftest.err 3647 rm -f conftest.er1 3648 cat conftest.err >&5 3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3650 (exit $ac_status); } >/dev/null; then 3651 if test -s conftest.err; then 3652 ac_cpp_err=$ac_c_preproc_warn_flag 3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3654 else 3655 ac_cpp_err= 3656 fi 3657 else 3658 ac_cpp_err=yes 3659 fi 3660 if test -z "$ac_cpp_err"; then 3661 # Broken: success on invalid input. 3662 continue 3663 else 3664 echo "$as_me: failed program was:" >&5 3665 sed 's/^/| /' conftest.$ac_ext >&5 3666 3667 # Passes both tests. 3668 ac_preproc_ok=: 3669 break 3670 fi 3671 3672 rm -f conftest.err conftest.$ac_ext 3673 3674 done 3675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3676 rm -f conftest.err conftest.$ac_ext 3677 if $ac_preproc_ok; then 3678 : 3679 else 3680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3681 See \`config.log' for more details." >&5 3682 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3683 See \`config.log' for more details." >&2;} 3684 { (exit 1); exit 1; }; } 3685 fi 3686 3687 ac_ext=c 3688 ac_cpp='$CPP $CPPFLAGS' 3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3692 3693 3694 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3695 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3696 if test "${ac_cv_path_GREP+set}" = set; then 3697 echo $ECHO_N "(cached) $ECHO_C" >&6 3698 else 3699 # Extract the first word of "grep ggrep" to use in msg output 3700 if test -z "$GREP"; then 3701 set dummy grep ggrep; ac_prog_name=$2 3702 if test "${ac_cv_path_GREP+set}" = set; then 3703 echo $ECHO_N "(cached) $ECHO_C" >&6 3704 else 3705 ac_path_GREP_found=false 3706 # Loop through the user's path and test for each of PROGNAME-LIST 3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3709 do 3710 IFS=$as_save_IFS 3711 test -z "$as_dir" && as_dir=. 3712 for ac_prog in grep ggrep; do 3713 for ac_exec_ext in '' $ac_executable_extensions; do 3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3715 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3716 # Check for GNU ac_path_GREP and select it if it is found. 3717 # Check for GNU $ac_path_GREP 3718 case `"$ac_path_GREP" --version 2>&1` in 3719 *GNU*) 3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3721 *) 3722 ac_count=0 3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3724 while : 3725 do 3726 cat "conftest.in" "conftest.in" >"conftest.tmp" 3727 mv "conftest.tmp" "conftest.in" 3728 cp "conftest.in" "conftest.nl" 3729 echo 'GREP' >> "conftest.nl" 3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3732 ac_count=`expr $ac_count + 1` 3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3734 # Best one so far, save it but keep looking for a better one 3735 ac_cv_path_GREP="$ac_path_GREP" 3736 ac_path_GREP_max=$ac_count 3737 fi 3738 # 10*(2^10) chars as input seems more than enough 3739 test $ac_count -gt 10 && break 3740 done 3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3742 esac 3743 3744 3745 $ac_path_GREP_found && break 3 3746 done 3747 done 3748 3749 done 3750 IFS=$as_save_IFS 3751 3752 3753 fi 3754 3755 GREP="$ac_cv_path_GREP" 3756 if test -z "$GREP"; then 3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3759 { (exit 1); exit 1; }; } 3760 fi 3761 3762 else 3763 ac_cv_path_GREP=$GREP 3764 fi 3765 3766 3767 fi 3768 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3769 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3770 GREP="$ac_cv_path_GREP" 3771 3772 3773 { echo "$as_me:$LINENO: checking for egrep" >&5 3774 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3775 if test "${ac_cv_path_EGREP+set}" = set; then 3776 echo $ECHO_N "(cached) $ECHO_C" >&6 3777 else 3778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3779 then ac_cv_path_EGREP="$GREP -E" 3780 else 3781 # Extract the first word of "egrep" to use in msg output 3782 if test -z "$EGREP"; then 3783 set dummy egrep; ac_prog_name=$2 3784 if test "${ac_cv_path_EGREP+set}" = set; then 3785 echo $ECHO_N "(cached) $ECHO_C" >&6 3786 else 3787 ac_path_EGREP_found=false 3788 # Loop through the user's path and test for each of PROGNAME-LIST 3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3791 do 3792 IFS=$as_save_IFS 3793 test -z "$as_dir" && as_dir=. 3794 for ac_prog in egrep; do 3795 for ac_exec_ext in '' $ac_executable_extensions; do 3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3797 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3798 # Check for GNU ac_path_EGREP and select it if it is found. 3799 # Check for GNU $ac_path_EGREP 3800 case `"$ac_path_EGREP" --version 2>&1` in 3801 *GNU*) 3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3803 *) 3804 ac_count=0 3805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3806 while : 3807 do 3808 cat "conftest.in" "conftest.in" >"conftest.tmp" 3809 mv "conftest.tmp" "conftest.in" 3810 cp "conftest.in" "conftest.nl" 3811 echo 'EGREP' >> "conftest.nl" 3812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3814 ac_count=`expr $ac_count + 1` 3815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3816 # Best one so far, save it but keep looking for a better one 3817 ac_cv_path_EGREP="$ac_path_EGREP" 3818 ac_path_EGREP_max=$ac_count 3819 fi 3820 # 10*(2^10) chars as input seems more than enough 3821 test $ac_count -gt 10 && break 3822 done 3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3824 esac 3825 3826 3827 $ac_path_EGREP_found && break 3 3828 done 3829 done 3830 3831 done 3832 IFS=$as_save_IFS 3833 3834 3835 fi 3836 3837 EGREP="$ac_cv_path_EGREP" 3838 if test -z "$EGREP"; then 3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3840 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3841 { (exit 1); exit 1; }; } 3842 fi 3843 3844 else 3845 ac_cv_path_EGREP=$EGREP 3846 fi 3847 3848 3849 fi 3850 fi 3851 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3852 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3853 EGREP="$ac_cv_path_EGREP" 3854 3855 3856 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3858 if test "${ac_cv_header_stdc+set}" = set; then 3859 echo $ECHO_N "(cached) $ECHO_C" >&6 3860 else 3861 cat >conftest.$ac_ext <<_ACEOF 3862 /* confdefs.h. */ 3863 _ACEOF 3864 cat confdefs.h >>conftest.$ac_ext 3865 cat >>conftest.$ac_ext <<_ACEOF 3866 /* end confdefs.h. */ 3867 #include <stdlib.h> 3868 #include <stdarg.h> 3869 #include <string.h> 3870 #include <float.h> 3871 3872 int 3873 main () 3874 { 3875 3876 ; 3877 return 0; 3878 } 3879 _ACEOF 3880 rm -f conftest.$ac_objext 3881 if { (ac_try="$ac_compile" 3882 case "(($ac_try" in 3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3884 *) ac_try_echo=$ac_try;; 3885 esac 3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3887 (eval "$ac_compile") 2>conftest.er1 3888 ac_status=$? 3889 grep -v '^ *+' conftest.er1 >conftest.err 3890 rm -f conftest.er1 3891 cat conftest.err >&5 3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3893 (exit $ac_status); } && 3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3895 { (case "(($ac_try" in 3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3897 *) ac_try_echo=$ac_try;; 3898 esac 3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3900 (eval "$ac_try") 2>&5 3901 ac_status=$? 3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3903 (exit $ac_status); }; } && 3904 { ac_try='test -s conftest.$ac_objext' 3905 { (case "(($ac_try" in 3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3907 *) ac_try_echo=$ac_try;; 3908 esac 3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3910 (eval "$ac_try") 2>&5 3911 ac_status=$? 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); }; }; then 3914 ac_cv_header_stdc=yes 3915 else 3916 echo "$as_me: failed program was:" >&5 3917 sed 's/^/| /' conftest.$ac_ext >&5 3918 3919 ac_cv_header_stdc=no 3920 fi 3921 3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3923 3924 if test $ac_cv_header_stdc = yes; then 3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3926 cat >conftest.$ac_ext <<_ACEOF 3927 /* confdefs.h. */ 3928 _ACEOF 3929 cat confdefs.h >>conftest.$ac_ext 3930 cat >>conftest.$ac_ext <<_ACEOF 3931 /* end confdefs.h. */ 3932 #include <string.h> 3933 3934 _ACEOF 3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3936 $EGREP "memchr" >/dev/null 2>&1; then 3937 : 3938 else 3939 ac_cv_header_stdc=no 3940 fi 3941 rm -f conftest* 3942 3943 fi 3944 3945 if test $ac_cv_header_stdc = yes; then 3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3947 cat >conftest.$ac_ext <<_ACEOF 3948 /* confdefs.h. */ 3949 _ACEOF 3950 cat confdefs.h >>conftest.$ac_ext 3951 cat >>conftest.$ac_ext <<_ACEOF 3952 /* end confdefs.h. */ 3953 #include <stdlib.h> 3954 3955 _ACEOF 3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3957 $EGREP "free" >/dev/null 2>&1; then 3958 : 3959 else 3960 ac_cv_header_stdc=no 3961 fi 3962 rm -f conftest* 3963 3964 fi 3965 3966 if test $ac_cv_header_stdc = yes; then 3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3968 if test "$cross_compiling" = yes; then 3969 : 3970 else 3971 cat >conftest.$ac_ext <<_ACEOF 3972 /* confdefs.h. */ 3973 _ACEOF 3974 cat confdefs.h >>conftest.$ac_ext 3975 cat >>conftest.$ac_ext <<_ACEOF 3976 /* end confdefs.h. */ 3977 #include <ctype.h> 3978 #include <stdlib.h> 3979 #if ((' ' & 0x0FF) == 0x020) 3980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3982 #else 3983 # define ISLOWER(c) \ 3984 (('a' <= (c) && (c) <= 'i') \ 3985 || ('j' <= (c) && (c) <= 'r') \ 3986 || ('s' <= (c) && (c) <= 'z')) 3987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3988 #endif 3989 3990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3991 int 3992 main () 3993 { 3994 int i; 3995 for (i = 0; i < 256; i++) 3996 if (XOR (islower (i), ISLOWER (i)) 3997 || toupper (i) != TOUPPER (i)) 3998 return 2; 3999 return 0; 4000 } 4001 _ACEOF 4002 rm -f conftest$ac_exeext 4003 if { (ac_try="$ac_link" 4004 case "(($ac_try" in 4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4006 *) ac_try_echo=$ac_try;; 4007 esac 4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4009 (eval "$ac_link") 2>&5 4010 ac_status=$? 4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4013 { (case "(($ac_try" in 4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4015 *) ac_try_echo=$ac_try;; 4016 esac 4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4018 (eval "$ac_try") 2>&5 4019 ac_status=$? 4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4021 (exit $ac_status); }; }; then 4022 : 4023 else 4024 echo "$as_me: program exited with status $ac_status" >&5 4025 echo "$as_me: failed program was:" >&5 4026 sed 's/^/| /' conftest.$ac_ext >&5 4027 4028 ( exit $ac_status ) 4029 ac_cv_header_stdc=no 4030 fi 4031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4032 fi 4033 4034 4035 fi 4036 fi 4037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4039 if test $ac_cv_header_stdc = yes; then 4040 4041 cat >>confdefs.h <<\_ACEOF 4042 #define STDC_HEADERS 1 4043 _ACEOF 4044 4045 fi 4046 4047 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4058 inttypes.h stdint.h unistd.h 4059 do 4060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4064 echo $ECHO_N "(cached) $ECHO_C" >&6 4065 else 4066 cat >conftest.$ac_ext <<_ACEOF 4067 /* confdefs.h. */ 4068 _ACEOF 4069 cat confdefs.h >>conftest.$ac_ext 4070 cat >>conftest.$ac_ext <<_ACEOF 4071 /* end confdefs.h. */ 4072 $ac_includes_default 4073 4074 #include <$ac_header> 4075 _ACEOF 4076 rm -f conftest.$ac_objext 4077 if { (ac_try="$ac_compile" 4078 case "(($ac_try" in 4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4080 *) ac_try_echo=$ac_try;; 4081 esac 4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4083 (eval "$ac_compile") 2>conftest.er1 4084 ac_status=$? 4085 grep -v '^ *+' conftest.er1 >conftest.err 4086 rm -f conftest.er1 4087 cat conftest.err >&5 4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4089 (exit $ac_status); } && 4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4091 { (case "(($ac_try" in 4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4093 *) ac_try_echo=$ac_try;; 4094 esac 4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4096 (eval "$ac_try") 2>&5 4097 ac_status=$? 4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4099 (exit $ac_status); }; } && 4100 { ac_try='test -s conftest.$ac_objext' 4101 { (case "(($ac_try" in 4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4103 *) ac_try_echo=$ac_try;; 4104 esac 4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4106 (eval "$ac_try") 2>&5 4107 ac_status=$? 4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4109 (exit $ac_status); }; }; then 4110 eval "$as_ac_Header=yes" 4111 else 4112 echo "$as_me: failed program was:" >&5 4113 sed 's/^/| /' conftest.$ac_ext >&5 4114 4115 eval "$as_ac_Header=no" 4116 fi 4117 4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4119 fi 4120 ac_res=`eval echo '${'$as_ac_Header'}'` 4121 { echo "$as_me:$LINENO: result: $ac_res" >&5 4122 echo "${ECHO_T}$ac_res" >&6; } 4123 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4124 cat >>confdefs.h <<_ACEOF 4125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4126 _ACEOF 4127 4128 fi 4129 4130 done 4131 4132 4133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4135 if test "${ac_cv_c_bigendian+set}" = set; then 4136 echo $ECHO_N "(cached) $ECHO_C" >&6 4137 else 4138 # See if sys/param.h defines the BYTE_ORDER macro. 4139 cat >conftest.$ac_ext <<_ACEOF 4140 /* confdefs.h. */ 4141 _ACEOF 4142 cat confdefs.h >>conftest.$ac_ext 4143 cat >>conftest.$ac_ext <<_ACEOF 4144 /* end confdefs.h. */ 4145 #include <sys/types.h> 4146 #include <sys/param.h> 4147 4148 int 4149 main () 4150 { 4151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4152 bogus endian macros 4153 #endif 4154 4155 ; 4156 return 0; 4157 } 4158 _ACEOF 4159 rm -f conftest.$ac_objext 4160 if { (ac_try="$ac_compile" 4161 case "(($ac_try" in 4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4163 *) ac_try_echo=$ac_try;; 4164 esac 4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4166 (eval "$ac_compile") 2>conftest.er1 4167 ac_status=$? 4168 grep -v '^ *+' conftest.er1 >conftest.err 4169 rm -f conftest.er1 4170 cat conftest.err >&5 4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4172 (exit $ac_status); } && 4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4174 { (case "(($ac_try" in 4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4176 *) ac_try_echo=$ac_try;; 4177 esac 4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4179 (eval "$ac_try") 2>&5 4180 ac_status=$? 4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4182 (exit $ac_status); }; } && 4183 { ac_try='test -s conftest.$ac_objext' 4184 { (case "(($ac_try" in 4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4186 *) ac_try_echo=$ac_try;; 4187 esac 4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4189 (eval "$ac_try") 2>&5 4190 ac_status=$? 4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4192 (exit $ac_status); }; }; then 4193 # It does; now see whether it defined to BIG_ENDIAN or not. 4194 cat >conftest.$ac_ext <<_ACEOF 4195 /* confdefs.h. */ 4196 _ACEOF 4197 cat confdefs.h >>conftest.$ac_ext 4198 cat >>conftest.$ac_ext <<_ACEOF 4199 /* end confdefs.h. */ 4200 #include <sys/types.h> 4201 #include <sys/param.h> 4202 4203 int 4204 main () 4205 { 4206 #if BYTE_ORDER != BIG_ENDIAN 4207 not big endian 4208 #endif 4209 4210 ; 4211 return 0; 4212 } 4213 _ACEOF 4214 rm -f conftest.$ac_objext 4215 if { (ac_try="$ac_compile" 4216 case "(($ac_try" in 4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4218 *) ac_try_echo=$ac_try;; 4219 esac 4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4221 (eval "$ac_compile") 2>conftest.er1 4222 ac_status=$? 4223 grep -v '^ *+' conftest.er1 >conftest.err 4224 rm -f conftest.er1 4225 cat conftest.err >&5 4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4227 (exit $ac_status); } && 4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4229 { (case "(($ac_try" in 4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4231 *) ac_try_echo=$ac_try;; 4232 esac 4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4234 (eval "$ac_try") 2>&5 4235 ac_status=$? 4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4237 (exit $ac_status); }; } && 4238 { ac_try='test -s conftest.$ac_objext' 4239 { (case "(($ac_try" in 4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4241 *) ac_try_echo=$ac_try;; 4242 esac 4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4244 (eval "$ac_try") 2>&5 4245 ac_status=$? 4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4247 (exit $ac_status); }; }; then 4248 ac_cv_c_bigendian=yes 4249 else 4250 echo "$as_me: failed program was:" >&5 4251 sed 's/^/| /' conftest.$ac_ext >&5 4252 4253 ac_cv_c_bigendian=no 4254 fi 4255 4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4257 else 4258 echo "$as_me: failed program was:" >&5 4259 sed 's/^/| /' conftest.$ac_ext >&5 4260 4261 # It does not; compile a test program. 4262 if test "$cross_compiling" = yes; then 4263 # try to guess the endianness by grepping values into an object file 4264 ac_cv_c_bigendian=unknown 4265 cat >conftest.$ac_ext <<_ACEOF 4266 /* confdefs.h. */ 4267 _ACEOF 4268 cat confdefs.h >>conftest.$ac_ext 4269 cat >>conftest.$ac_ext <<_ACEOF 4270 /* end confdefs.h. */ 4271 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4272 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4273 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4274 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4275 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4276 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4277 int 4278 main () 4279 { 4280 _ascii (); _ebcdic (); 4281 ; 4282 return 0; 4283 } 4284 _ACEOF 4285 rm -f conftest.$ac_objext 4286 if { (ac_try="$ac_compile" 4287 case "(($ac_try" in 4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4289 *) ac_try_echo=$ac_try;; 4290 esac 4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4292 (eval "$ac_compile") 2>conftest.er1 4293 ac_status=$? 4294 grep -v '^ *+' conftest.er1 >conftest.err 4295 rm -f conftest.er1 4296 cat conftest.err >&5 4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4298 (exit $ac_status); } && 4299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4300 { (case "(($ac_try" in 4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4302 *) ac_try_echo=$ac_try;; 4303 esac 4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4305 (eval "$ac_try") 2>&5 4306 ac_status=$? 4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4308 (exit $ac_status); }; } && 4309 { ac_try='test -s conftest.$ac_objext' 4310 { (case "(($ac_try" in 4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4312 *) ac_try_echo=$ac_try;; 4313 esac 4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4315 (eval "$ac_try") 2>&5 4316 ac_status=$? 4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4318 (exit $ac_status); }; }; then 4319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4320 ac_cv_c_bigendian=yes 4321 fi 4322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4323 if test "$ac_cv_c_bigendian" = unknown; then 4324 ac_cv_c_bigendian=no 4325 else 4326 # finding both strings is unlikely to happen, but who knows? 4327 ac_cv_c_bigendian=unknown 4328 fi 4329 fi 4330 else 4331 echo "$as_me: failed program was:" >&5 4332 sed 's/^/| /' conftest.$ac_ext >&5 4333 4334 4335 fi 4336 4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4338 else 4339 cat >conftest.$ac_ext <<_ACEOF 4340 /* confdefs.h. */ 4341 _ACEOF 4342 cat confdefs.h >>conftest.$ac_ext 4343 cat >>conftest.$ac_ext <<_ACEOF 4344 /* end confdefs.h. */ 4345 $ac_includes_default 4346 int 4347 main () 4348 { 4349 4350 /* Are we little or big endian? From Harbison&Steele. */ 4351 union 4352 { 4353 long int l; 4354 char c[sizeof (long int)]; 4355 } u; 4356 u.l = 1; 4357 return u.c[sizeof (long int) - 1] == 1; 4358 4359 ; 4360 return 0; 4361 } 4362 _ACEOF 4363 rm -f conftest$ac_exeext 4364 if { (ac_try="$ac_link" 4365 case "(($ac_try" in 4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4367 *) ac_try_echo=$ac_try;; 4368 esac 4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4370 (eval "$ac_link") 2>&5 4371 ac_status=$? 4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4374 { (case "(($ac_try" in 4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4376 *) ac_try_echo=$ac_try;; 4377 esac 4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4379 (eval "$ac_try") 2>&5 4380 ac_status=$? 4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4382 (exit $ac_status); }; }; then 4383 ac_cv_c_bigendian=no 4384 else 4385 echo "$as_me: program exited with status $ac_status" >&5 4386 echo "$as_me: failed program was:" >&5 4387 sed 's/^/| /' conftest.$ac_ext >&5 4388 4389 ( exit $ac_status ) 4390 ac_cv_c_bigendian=yes 4391 fi 4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4393 fi 4394 4395 4396 fi 4397 4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4399 fi 4400 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4401 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4402 case $ac_cv_c_bigendian in 4403 yes) 4404 ENDIAN=big 4405 ;; 4406 no) 4407 ENDIAN=little 4408 ;; 4409 *) 4410 { { echo "$as_me:$LINENO: error: unknown endianness 4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4412 echo "$as_me: error: unknown endianness 4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4414 { (exit 1); exit 1; }; } ;; 4415 esac 4416 4417 4418 if test "$cross_compiling" = yes; then 4419 LLVM_CROSS_COMPILING=1 4420 4421 4422 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4423 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4424 if test "${ac_cv_build_exeext+set}" = set; then 4425 echo $ECHO_N "(cached) $ECHO_C" >&6 4426 else 4427 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4428 ac_cv_build_exeext=.exe 4429 else 4430 ac_build_prefix=${build_alias}- 4431 4432 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4433 set dummy ${ac_build_prefix}gcc; ac_word=$2 4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4436 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4437 echo $ECHO_N "(cached) $ECHO_C" >&6 4438 else 4439 if test -n "$BUILD_CC"; then 4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4441 else 4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4443 for as_dir in $PATH 4444 do 4445 IFS=$as_save_IFS 4446 test -z "$as_dir" && as_dir=. 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4449 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4451 break 2 4452 fi 4453 done 4454 done 4455 IFS=$as_save_IFS 4456 4457 fi 4458 fi 4459 BUILD_CC=$ac_cv_prog_BUILD_CC 4460 if test -n "$BUILD_CC"; then 4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4462 echo "${ECHO_T}$BUILD_CC" >&6; } 4463 else 4464 { echo "$as_me:$LINENO: result: no" >&5 4465 echo "${ECHO_T}no" >&6; } 4466 fi 4467 4468 4469 if test -z "$BUILD_CC"; then 4470 # Extract the first word of "gcc", so it can be a program name with args. 4471 set dummy gcc; ac_word=$2 4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4474 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4475 echo $ECHO_N "(cached) $ECHO_C" >&6 4476 else 4477 if test -n "$BUILD_CC"; then 4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4479 else 4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4481 for as_dir in $PATH 4482 do 4483 IFS=$as_save_IFS 4484 test -z "$as_dir" && as_dir=. 4485 for ac_exec_ext in '' $ac_executable_extensions; do 4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4487 ac_cv_prog_BUILD_CC="gcc" 4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4489 break 2 4490 fi 4491 done 4492 done 4493 IFS=$as_save_IFS 4494 4495 fi 4496 fi 4497 BUILD_CC=$ac_cv_prog_BUILD_CC 4498 if test -n "$BUILD_CC"; then 4499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4500 echo "${ECHO_T}$BUILD_CC" >&6; } 4501 else 4502 { echo "$as_me:$LINENO: result: no" >&5 4503 echo "${ECHO_T}no" >&6; } 4504 fi 4505 4506 4507 if test -z "$BUILD_CC"; then 4508 # Extract the first word of "cc", so it can be a program name with args. 4509 set dummy cc; ac_word=$2 4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4512 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4513 echo $ECHO_N "(cached) $ECHO_C" >&6 4514 else 4515 if test -n "$BUILD_CC"; then 4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4517 else 4518 ac_prog_rejected=no 4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4520 for as_dir in $PATH 4521 do 4522 IFS=$as_save_IFS 4523 test -z "$as_dir" && as_dir=. 4524 for ac_exec_ext in '' $ac_executable_extensions; do 4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4527 ac_prog_rejected=yes 4528 continue 4529 fi 4530 ac_cv_prog_BUILD_CC="cc" 4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4532 break 2 4533 fi 4534 done 4535 done 4536 IFS=$as_save_IFS 4537 4538 if test $ac_prog_rejected = yes; then 4539 # We found a bogon in the path, so make sure we never use it. 4540 set dummy $ac_cv_prog_BUILD_CC 4541 shift 4542 if test $# != 0; then 4543 # We chose a different compiler from the bogus one. 4544 # However, it has the same basename, so the bogon will be chosen 4545 # first if we set BUILD_CC to just the basename; use the full file name. 4546 shift 4547 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4548 fi 4549 fi 4550 fi 4551 fi 4552 BUILD_CC=$ac_cv_prog_BUILD_CC 4553 if test -n "$BUILD_CC"; then 4554 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4555 echo "${ECHO_T}$BUILD_CC" >&6; } 4556 else 4557 { echo "$as_me:$LINENO: result: no" >&5 4558 echo "${ECHO_T}no" >&6; } 4559 fi 4560 4561 4562 fi 4563 fi 4564 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4565 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4566 { (exit 1); exit 1; }; } 4567 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4568 rm -f conftest* 4569 echo 'int main () { return 0; }' > conftest.$ac_ext 4570 ac_cv_build_exeext= 4571 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4572 (eval $ac_build_link) 2>&5 4573 ac_status=$? 4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4575 (exit $ac_status); }; then 4576 for file in conftest.*; do 4577 case $file in 4578 *.c | *.o | *.obj | *.dSYM) ;; 4579 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4580 esac 4581 done 4582 else 4583 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4584 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4585 { (exit 1); exit 1; }; } 4586 fi 4587 rm -f conftest* 4588 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4589 fi 4590 fi 4591 4592 BUILD_EXEEXT="" 4593 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4594 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4595 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4596 ac_build_exeext=$BUILD_EXEEXT 4597 4598 ac_build_prefix=${build_alias}- 4599 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4600 set dummy ${ac_build_prefix}g++; ac_word=$2 4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4603 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4604 echo $ECHO_N "(cached) $ECHO_C" >&6 4605 else 4606 if test -n "$BUILD_CXX"; then 4607 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4608 else 4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610 for as_dir in $PATH 4611 do 4612 IFS=$as_save_IFS 4613 test -z "$as_dir" && as_dir=. 4614 for ac_exec_ext in '' $ac_executable_extensions; do 4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4616 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4618 break 2 4619 fi 4620 done 4621 done 4622 IFS=$as_save_IFS 4623 4624 fi 4625 fi 4626 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4627 if test -n "$BUILD_CXX"; then 4628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4629 echo "${ECHO_T}$BUILD_CXX" >&6; } 4630 else 4631 { echo "$as_me:$LINENO: result: no" >&5 4632 echo "${ECHO_T}no" >&6; } 4633 fi 4634 4635 4636 if test -z "$BUILD_CXX"; then 4637 # Extract the first word of "g++", so it can be a program name with args. 4638 set dummy g++; ac_word=$2 4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4641 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4642 echo $ECHO_N "(cached) $ECHO_C" >&6 4643 else 4644 if test -n "$BUILD_CXX"; then 4645 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4646 else 4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4648 for as_dir in $PATH 4649 do 4650 IFS=$as_save_IFS 4651 test -z "$as_dir" && as_dir=. 4652 for ac_exec_ext in '' $ac_executable_extensions; do 4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4654 ac_cv_prog_BUILD_CXX="g++" 4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4656 break 2 4657 fi 4658 done 4659 done 4660 IFS=$as_save_IFS 4661 4662 fi 4663 fi 4664 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4665 if test -n "$BUILD_CXX"; then 4666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4667 echo "${ECHO_T}$BUILD_CXX" >&6; } 4668 else 4669 { echo "$as_me:$LINENO: result: no" >&5 4670 echo "${ECHO_T}no" >&6; } 4671 fi 4672 4673 4674 if test -z "$BUILD_CXX"; then 4675 # Extract the first word of "c++", so it can be a program name with args. 4676 set dummy c++; ac_word=$2 4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4679 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4680 echo $ECHO_N "(cached) $ECHO_C" >&6 4681 else 4682 if test -n "$BUILD_CXX"; then 4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4684 else 4685 ac_prog_rejected=no 4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4687 for as_dir in $PATH 4688 do 4689 IFS=$as_save_IFS 4690 test -z "$as_dir" && as_dir=. 4691 for ac_exec_ext in '' $ac_executable_extensions; do 4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4694 ac_prog_rejected=yes 4695 continue 4696 fi 4697 ac_cv_prog_BUILD_CXX="c++" 4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4699 break 2 4700 fi 4701 done 4702 done 4703 IFS=$as_save_IFS 4704 4705 if test $ac_prog_rejected = yes; then 4706 # We found a bogon in the path, so make sure we never use it. 4707 set dummy $ac_cv_prog_BUILD_CXX 4708 shift 4709 if test $# != 0; then 4710 # We chose a different compiler from the bogus one. 4711 # However, it has the same basename, so the bogon will be chosen 4712 # first if we set BUILD_CXX to just the basename; use the full file name. 4713 shift 4714 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4715 fi 4716 fi 4717 fi 4718 fi 4719 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4720 if test -n "$BUILD_CXX"; then 4721 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4722 echo "${ECHO_T}$BUILD_CXX" >&6; } 4723 else 4724 { echo "$as_me:$LINENO: result: no" >&5 4725 echo "${ECHO_T}no" >&6; } 4726 fi 4727 4728 4729 fi 4730 fi 4731 else 4732 LLVM_CROSS_COMPILING=0 4733 4734 fi 4735 4736 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4737 cvsbuild="yes" 4738 optimize="no" 4739 CVSBUILD=CVSBUILD=1 4740 4741 else 4742 cvsbuild="no" 4743 optimize="yes" 4744 fi 4745 4746 4747 # Check whether --enable-optimized was given. 4748 if test "${enable_optimized+set}" = set; then 4749 enableval=$enable_optimized; 4750 else 4751 enableval=$optimize 4752 fi 4753 4754 if test ${enableval} = "no" ; then 4755 ENABLE_OPTIMIZED= 4756 4757 else 4758 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4759 4760 fi 4761 4762 # Check whether --enable-profiling was given. 4763 if test "${enable_profiling+set}" = set; then 4764 enableval=$enable_profiling; 4765 else 4766 enableval="no" 4767 fi 4768 4769 if test ${enableval} = "no" ; then 4770 ENABLE_PROFILING= 4771 4772 else 4773 ENABLE_PROFILING=ENABLE_PROFILING=1 4774 4775 fi 4776 4777 # Check whether --enable-assertions was given. 4778 if test "${enable_assertions+set}" = set; then 4779 enableval=$enable_assertions; 4780 else 4781 enableval="yes" 4782 fi 4783 4784 if test ${enableval} = "yes" ; then 4785 DISABLE_ASSERTIONS= 4786 4787 else 4788 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4789 4790 fi 4791 4792 # Check whether --enable-expensive-checks was given. 4793 if test "${enable_expensive_checks+set}" = set; then 4794 enableval=$enable_expensive_checks; 4795 else 4796 enableval="no" 4797 fi 4798 4799 if test ${enableval} = "yes" ; then 4800 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 4801 4802 EXPENSIVE_CHECKS=yes 4803 4804 else 4805 ENABLE_EXPENSIVE_CHECKS= 4806 4807 EXPENSIVE_CHECKS=no 4808 4809 fi 4810 4811 # Check whether --enable-debug-runtime was given. 4812 if test "${enable_debug_runtime+set}" = set; then 4813 enableval=$enable_debug_runtime; 4814 else 4815 enableval=no 4816 fi 4817 4818 if test ${enableval} = "no" ; then 4819 DEBUG_RUNTIME= 4820 4821 else 4822 DEBUG_RUNTIME=DEBUG_RUNTIME=1 4823 4824 fi 4825 4826 # Check whether --enable-debug-symbols was given. 4827 if test "${enable_debug_symbols+set}" = set; then 4828 enableval=$enable_debug_symbols; 4829 else 4830 enableval=no 4831 fi 4832 4833 if test ${enableval} = "no" ; then 4834 DEBUG_SYMBOLS= 4835 4836 else 4837 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 4838 4839 fi 4840 4841 # Check whether --enable-jit was given. 4842 if test "${enable_jit+set}" = set; then 4843 enableval=$enable_jit; 4844 else 4845 enableval=default 4846 fi 4847 4848 if test ${enableval} = "no" 4849 then 4850 JIT= 4851 4852 else 4853 case "$llvm_cv_target_arch" in 4854 x86) TARGET_HAS_JIT=1 4855 ;; 4856 Sparc) TARGET_HAS_JIT=0 4857 ;; 4858 PowerPC) TARGET_HAS_JIT=1 4859 ;; 4860 x86_64) TARGET_HAS_JIT=1 4861 ;; 4862 Alpha) TARGET_HAS_JIT=0 4863 ;; 4864 ARM) TARGET_HAS_JIT=1 4865 ;; 4866 Mips) TARGET_HAS_JIT=0 4867 ;; 4868 XCore) TARGET_HAS_JIT=0 4869 ;; 4870 MSP430) TARGET_HAS_JIT=0 4871 ;; 4872 SystemZ) TARGET_HAS_JIT=0 4873 ;; 4874 Blackfin) TARGET_HAS_JIT=0 4875 ;; 4876 MBlaze) TARGET_HAS_JIT=0 4877 ;; 4878 PTX) TARGET_HAS_JIT=0 4879 ;; 4880 *) TARGET_HAS_JIT=0 4881 ;; 4882 esac 4883 fi 4884 4885 # Check whether --enable-docs was given. 4886 if test "${enable_docs+set}" = set; then 4887 enableval=$enable_docs; 4888 else 4889 enableval=default 4890 fi 4891 4892 case "$enableval" in 4893 yes) ENABLE_DOCS=1 4894 ;; 4895 no) ENABLE_DOCS=0 4896 ;; 4897 default) ENABLE_DOCS=1 4898 ;; 4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 4900 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 4901 { (exit 1); exit 1; }; } ;; 4902 esac 4903 4904 # Check whether --enable-doxygen was given. 4905 if test "${enable_doxygen+set}" = set; then 4906 enableval=$enable_doxygen; 4907 else 4908 enableval=default 4909 fi 4910 4911 case "$enableval" in 4912 yes) ENABLE_DOXYGEN=1 4913 ;; 4914 no) ENABLE_DOXYGEN=0 4915 ;; 4916 default) ENABLE_DOXYGEN=0 4917 ;; 4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 4919 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 4920 { (exit 1); exit 1; }; } ;; 4921 esac 4922 4923 # Check whether --enable-threads was given. 4924 if test "${enable_threads+set}" = set; then 4925 enableval=$enable_threads; 4926 else 4927 enableval=default 4928 fi 4929 4930 case "$enableval" in 4931 yes) ENABLE_THREADS=1 4932 ;; 4933 no) ENABLE_THREADS=0 4934 ;; 4935 default) ENABLE_THREADS=1 4936 ;; 4937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 4938 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 4939 { (exit 1); exit 1; }; } ;; 4940 esac 4941 4942 cat >>confdefs.h <<_ACEOF 4943 #define ENABLE_THREADS $ENABLE_THREADS 4944 _ACEOF 4945 4946 4947 # Check whether --enable-pthreads was given. 4948 if test "${enable_pthreads+set}" = set; then 4949 enableval=$enable_pthreads; 4950 else 4951 enableval=default 4952 fi 4953 4954 case "$enableval" in 4955 yes) ENABLE_PTHREADS=1 4956 ;; 4957 no) ENABLE_PTHREADS=0 4958 ;; 4959 default) ENABLE_PTHREADS=1 4960 ;; 4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 4962 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 4963 { (exit 1); exit 1; }; } ;; 4964 esac 4965 4966 # Check whether --enable-pic was given. 4967 if test "${enable_pic+set}" = set; then 4968 enableval=$enable_pic; 4969 else 4970 enableval=default 4971 fi 4972 4973 case "$enableval" in 4974 yes) ENABLE_PIC=1 4975 ;; 4976 no) ENABLE_PIC=0 4977 ;; 4978 default) ENABLE_PIC=1 4979 ;; 4980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 4981 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 4982 { (exit 1); exit 1; }; } ;; 4983 esac 4984 4985 cat >>confdefs.h <<_ACEOF 4986 #define ENABLE_PIC $ENABLE_PIC 4987 _ACEOF 4988 4989 4990 # Check whether --enable-shared was given. 4991 if test "${enable_shared+set}" = set; then 4992 enableval=$enable_shared; 4993 else 4994 enableval=default 4995 fi 4996 4997 case "$enableval" in 4998 yes) ENABLE_SHARED=1 4999 ;; 5000 no) ENABLE_SHARED=0 5001 ;; 5002 default) ENABLE_SHARED=0 5003 ;; 5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5005 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5006 { (exit 1); exit 1; }; } ;; 5007 esac 5008 5009 # Check whether --enable-embed-stdcxx was given. 5010 if test "${enable_embed_stdcxx+set}" = set; then 5011 enableval=$enable_embed_stdcxx; 5012 else 5013 enableval=default 5014 fi 5015 5016 case "$enableval" in 5017 yes) ENABLE_EMBED_STDCXX=1 5018 ;; 5019 no) ENABLE_EMBED_STDCXX=0 5020 ;; 5021 default) ENABLE_EMBED_STDCXX=1 5022 ;; 5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5024 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5025 { (exit 1); exit 1; }; } ;; 5026 esac 5027 5028 # Check whether --enable-timestamps was given. 5029 if test "${enable_timestamps+set}" = set; then 5030 enableval=$enable_timestamps; 5031 else 5032 enableval=default 5033 fi 5034 5035 case "$enableval" in 5036 yes) ENABLE_TIMESTAMPS=1 5037 ;; 5038 no) ENABLE_TIMESTAMPS=0 5039 ;; 5040 default) ENABLE_TIMESTAMPS=1 5041 ;; 5042 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5043 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5044 { (exit 1); exit 1; }; } ;; 5045 esac 5046 5047 cat >>confdefs.h <<_ACEOF 5048 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5049 _ACEOF 5050 5051 5052 TARGETS_TO_BUILD="" 5053 # Check whether --enable-targets was given. 5054 if test "${enable_targets+set}" = set; then 5055 enableval=$enable_targets; 5056 else 5057 enableval=all 5058 fi 5059 5060 if test "$enableval" = host-only ; then 5061 enableval=host 5062 fi 5063 case "$enableval" in 5064 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;; 5065 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5066 case "$a_target" in 5067 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5068 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5069 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5070 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5071 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 5072 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5073 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5074 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5075 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5076 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5077 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5078 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 5079 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; 5080 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5081 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5082 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5083 host) case "$llvm_cv_target_arch" in 5084 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5085 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5086 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5087 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5088 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 5089 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5090 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5091 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5092 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5093 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5094 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5095 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5096 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 5097 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5098 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5099 echo "$as_me: error: Can not set target to build" >&2;} 5100 { (exit 1); exit 1; }; } ;; 5101 esac ;; 5102 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5103 echo "$as_me: error: Unrecognized target $a_target" >&2;} 5104 { (exit 1); exit 1; }; } ;; 5105 esac 5106 done 5107 ;; 5108 esac 5109 TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5110 5111 5112 # Determine whether we are building LLVM support for the native architecture. 5113 # If so, define LLVM_NATIVE_ARCH to that LLVM target. 5114 for a_target in $TARGETS_TO_BUILD; do 5115 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5116 5117 cat >>confdefs.h <<_ACEOF 5118 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5119 _ACEOF 5120 5121 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5122 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5123 LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo" 5124 LLVM_NATIVE_MCCODEGENINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCCodeGenInfo" 5125 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5126 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5127 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5128 fi 5129 5130 cat >>confdefs.h <<_ACEOF 5131 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5132 _ACEOF 5133 5134 5135 cat >>confdefs.h <<_ACEOF 5136 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5137 _ACEOF 5138 5139 5140 cat >>confdefs.h <<_ACEOF 5141 #define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO 5142 _ACEOF 5143 5144 5145 cat >>confdefs.h <<_ACEOF 5146 #define LLVM_NATIVE_MCCODEGENINFO $LLVM_NATIVE_MCCODEGENINFO 5147 _ACEOF 5148 5149 5150 cat >>confdefs.h <<_ACEOF 5151 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5152 _ACEOF 5153 5154 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5155 5156 cat >>confdefs.h <<_ACEOF 5157 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5158 _ACEOF 5159 5160 fi 5161 fi 5162 done 5163 5164 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 5165 # target feature def files. 5166 LLVM_ENUM_TARGETS="" 5167 LLVM_ENUM_ASM_PRINTERS="" 5168 LLVM_ENUM_ASM_PARSERS="" 5169 LLVM_ENUM_DISASSEMBLERS="" 5170 for target_to_build in $TARGETS_TO_BUILD; do 5171 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5172 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5173 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5174 fi 5175 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5176 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5177 fi 5178 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5179 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5180 fi 5181 done 5182 5183 5184 5185 5186 5187 # Check whether --enable-cbe-printf-a was given. 5188 if test "${enable_cbe_printf_a+set}" = set; then 5189 enableval=$enable_cbe_printf_a; 5190 else 5191 enableval=default 5192 fi 5193 5194 case "$enableval" in 5195 yes) ENABLE_CBE_PRINTF_A=1 5196 ;; 5197 no) ENABLE_CBE_PRINTF_A=0 5198 ;; 5199 default) ENABLE_CBE_PRINTF_A=1 5200 ;; 5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 5202 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} 5203 { (exit 1); exit 1; }; } ;; 5204 esac 5205 5206 cat >>confdefs.h <<_ACEOF 5207 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A 5208 _ACEOF 5209 5210 5211 5212 # Check whether --with-llvmgccdir was given. 5213 if test "${with_llvmgccdir+set}" = set; then 5214 withval=$with_llvmgccdir; 5215 else 5216 withval=default 5217 fi 5218 5219 case "$withval" in 5220 default) WITH_LLVMGCCDIR=default ;; 5221 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; 5222 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 5223 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} 5224 { (exit 1); exit 1; }; } ;; 5225 esac 5226 5227 5228 # Check whether --with-llvmgcc was given. 5229 if test "${with_llvmgcc+set}" = set; then 5230 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc 5231 WITH_LLVMGCCDIR="" 5232 fi 5233 5234 5235 5236 # Check whether --with-llvmgxx was given. 5237 if test "${with_llvmgxx+set}" = set; then 5238 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx 5239 WITH_LLVMGCCDIR="" 5240 fi 5241 5242 5243 if test -n "$LLVMGCC"; then 5244 LLVMGCCCOMMAND="$LLVMGCC" 5245 fi 5246 5247 if test -n "$LLVMGXX"; then 5248 LLVMGXXCOMMAND="$LLVMGXX" 5249 fi 5250 5251 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then 5252 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 5253 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} 5254 { (exit 1); exit 1; }; }; 5255 fi 5256 5257 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then 5258 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 5259 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} 5260 { (exit 1); exit 1; }; }; 5261 fi 5262 5263 5264 # Check whether --with-clang was given. 5265 if test "${with_clang+set}" = set; then 5266 withval=$with_clang; 5267 else 5268 with_clang=default 5269 fi 5270 5271 5272 5273 # Check whether --with-built-clang was given. 5274 if test "${with_built_clang+set}" = set; then 5275 withval=$with_built_clang; 5276 else 5277 with_built_clang=check 5278 fi 5279 5280 5281 { echo "$as_me:$LINENO: checking clang compiler" >&5 5282 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } 5283 WITH_CLANGPATH="" 5284 WITH_BUILT_CLANG=0 5285 if test "$with_clang" != "default"; then 5286 WITH_CLANGPATH="$with_clang" 5287 if ! test -x "$WITH_CLANGPATH"; then 5288 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 5289 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} 5290 { (exit 1); exit 1; }; } 5291 fi 5292 elif test "$with_built_clang" = "yes"; then 5293 WITH_BUILT_CLANG=1 5294 elif test "$with_built_clang" = "no"; then 5295 WITH_BUILT_CLANG=0 5296 else 5297 if test "$with_built_clang" != "check"; then 5298 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 5299 echo "$as_me: error: invalid value for --with-built-clang." >&2;} 5300 { (exit 1); exit 1; }; } 5301 fi 5302 5303 if test -f ${srcdir}/tools/clang/README.txt; then 5304 WITH_BUILT_CLANG=1 5305 fi 5306 fi 5307 5308 if ! test -z "$WITH_CLANGPATH"; then 5309 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 5310 echo "${ECHO_T}$WITH_CLANGPATH" >&6; } 5311 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` 5312 elif test "$WITH_BUILT_CLANG" = "1"; then 5313 { echo "$as_me:$LINENO: result: built" >&5 5314 echo "${ECHO_T}built" >&6; } 5315 else 5316 { echo "$as_me:$LINENO: result: none" >&5 5317 echo "${ECHO_T}none" >&6; } 5318 fi 5319 CLANGPATH=$WITH_CLANGPATH 5320 5321 CLANGXXPATH=$WITH_CLANGXXPATH 5322 5323 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG 5324 5325 5326 5327 # Check whether --with-optimize-option was given. 5328 if test "${with_optimize_option+set}" = set; then 5329 withval=$with_optimize_option; 5330 else 5331 withval=default 5332 fi 5333 5334 { echo "$as_me:$LINENO: checking optimization flags" >&5 5335 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5336 case "$withval" in 5337 default) 5338 case "$llvm_cv_os_type" in 5339 FreeBSD) optimize_option=-O2 ;; 5340 MingW) optimize_option=-O2 ;; 5341 *) optimize_option=-O3 ;; 5342 esac ;; 5343 *) optimize_option="$withval" ;; 5344 esac 5345 OPTIMIZE_OPTION=$optimize_option 5346 5347 { echo "$as_me:$LINENO: result: $optimize_option" >&5 5348 echo "${ECHO_T}$optimize_option" >&6; } 5349 5350 5351 # Check whether --with-extra-options was given. 5352 if test "${with_extra_options+set}" = set; then 5353 withval=$with_extra_options; 5354 else 5355 withval=default 5356 fi 5357 5358 case "$withval" in 5359 default) EXTRA_OPTIONS= ;; 5360 *) EXTRA_OPTIONS=$withval ;; 5361 esac 5362 EXTRA_OPTIONS=$EXTRA_OPTIONS 5363 5364 5365 5366 # Check whether --with-extra-ld-options was given. 5367 if test "${with_extra_ld_options+set}" = set; then 5368 withval=$with_extra_ld_options; 5369 else 5370 withval=default 5371 fi 5372 5373 case "$withval" in 5374 default) EXTRA_LD_OPTIONS= ;; 5375 *) EXTRA_LD_OPTIONS=$withval ;; 5376 esac 5377 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5378 5379 5380 # Check whether --enable-bindings was given. 5381 if test "${enable_bindings+set}" = set; then 5382 enableval=$enable_bindings; 5383 else 5384 enableval=default 5385 fi 5386 5387 BINDINGS_TO_BUILD="" 5388 case "$enableval" in 5389 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5390 all ) BINDINGS_TO_BUILD="ocaml" ;; 5391 none | no) BINDINGS_TO_BUILD="" ;; 5392 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5393 case "$a_binding" in 5394 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5395 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5396 echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5397 { (exit 1); exit 1; }; } ;; 5398 esac 5399 done 5400 ;; 5401 esac 5402 5403 5404 # Check whether --with-ocaml-libdir was given. 5405 if test "${with_ocaml_libdir+set}" = set; then 5406 withval=$with_ocaml_libdir; 5407 else 5408 withval=auto 5409 fi 5410 5411 case "$withval" in 5412 auto) with_ocaml_libdir="$withval" ;; 5413 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5414 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5415 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5416 { (exit 1); exit 1; }; } ;; 5417 esac 5418 5419 5420 # Check whether --with-clang-resource-dir was given. 5421 if test "${with_clang_resource_dir+set}" = set; then 5422 withval=$with_clang_resource_dir; 5423 else 5424 withval="" 5425 fi 5426 5427 5428 cat >>confdefs.h <<_ACEOF 5429 #define CLANG_RESOURCE_DIR "$withval" 5430 _ACEOF 5431 5432 5433 5434 # Check whether --with-c-include-dirs was given. 5435 if test "${with_c_include_dirs+set}" = set; then 5436 withval=$with_c_include_dirs; 5437 else 5438 withval="" 5439 fi 5440 5441 5442 cat >>confdefs.h <<_ACEOF 5443 #define C_INCLUDE_DIRS "$withval" 5444 _ACEOF 5445 5446 5447 5448 # Check whether --with-cxx-include-root was given. 5449 if test "${with_cxx_include_root+set}" = set; then 5450 withval=$with_cxx_include_root; 5451 else 5452 withval="" 5453 fi 5454 5455 5456 cat >>confdefs.h <<_ACEOF 5457 #define CXX_INCLUDE_ROOT "$withval" 5458 _ACEOF 5459 5460 5461 5462 # Check whether --with-cxx-include-arch was given. 5463 if test "${with_cxx_include_arch+set}" = set; then 5464 withval=$with_cxx_include_arch; 5465 else 5466 withval="" 5467 fi 5468 5469 5470 cat >>confdefs.h <<_ACEOF 5471 #define CXX_INCLUDE_ARCH "$withval" 5472 _ACEOF 5473 5474 5475 5476 # Check whether --with-cxx-include-32bit-dir was given. 5477 if test "${with_cxx_include_32bit_dir+set}" = set; then 5478 withval=$with_cxx_include_32bit_dir; 5479 else 5480 withval="" 5481 fi 5482 5483 5484 cat >>confdefs.h <<_ACEOF 5485 #define CXX_INCLUDE_32BIT_DIR "$withval" 5486 _ACEOF 5487 5488 5489 5490 # Check whether --with-cxx-include-64bit-dir was given. 5491 if test "${with_cxx_include_64bit_dir+set}" = set; then 5492 withval=$with_cxx_include_64bit_dir; 5493 else 5494 withval="" 5495 fi 5496 5497 5498 cat >>confdefs.h <<_ACEOF 5499 #define CXX_INCLUDE_64BIT_DIR "$withval" 5500 _ACEOF 5501 5502 5503 5504 # Check whether --with-binutils-include was given. 5505 if test "${with_binutils_include+set}" = set; then 5506 withval=$with_binutils_include; 5507 else 5508 withval=default 5509 fi 5510 5511 case "$withval" in 5512 default) WITH_BINUTILS_INCDIR=default ;; 5513 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5514 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5515 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5516 { (exit 1); exit 1; }; } ;; 5517 esac 5518 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5519 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5520 5521 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5522 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5523 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5524 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5525 { (exit 1); exit 1; }; }; 5526 fi 5527 fi 5528 5529 # Check whether --enable-libffi was given. 5530 if test "${enable_libffi+set}" = set; then 5531 enableval=$enable_libffi; case "$enableval" in 5532 yes) llvm_cv_enable_libffi="yes" ;; 5533 no) llvm_cv_enable_libffi="no" ;; 5534 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5535 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5536 { (exit 1); exit 1; }; } ;; 5537 esac 5538 else 5539 llvm_cv_enable_libffi=no 5540 fi 5541 5542 5543 5544 ac_ext=c 5545 ac_cpp='$CPP $CPPFLAGS' 5546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5548 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5549 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5550 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5551 # On Suns, sometimes $CPP names a directory. 5552 if test -n "$CPP" && test -d "$CPP"; then 5553 CPP= 5554 fi 5555 if test -z "$CPP"; then 5556 if test "${ac_cv_prog_CPP+set}" = set; then 5557 echo $ECHO_N "(cached) $ECHO_C" >&6 5558 else 5559 # Double quotes because CPP needs to be expanded 5560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5561 do 5562 ac_preproc_ok=false 5563 for ac_c_preproc_warn_flag in '' yes 5564 do 5565 # Use a header file that comes with gcc, so configuring glibc 5566 # with a fresh cross-compiler works. 5567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5568 # <limits.h> exists even on freestanding compilers. 5569 # On the NeXT, cc -E runs the code through the compiler's parser, 5570 # not just through cpp. "Syntax error" is here to catch this case. 5571 cat >conftest.$ac_ext <<_ACEOF 5572 /* confdefs.h. */ 5573 _ACEOF 5574 cat confdefs.h >>conftest.$ac_ext 5575 cat >>conftest.$ac_ext <<_ACEOF 5576 /* end confdefs.h. */ 5577 #ifdef __STDC__ 5578 # include <limits.h> 5579 #else 5580 # include <assert.h> 5581 #endif 5582 Syntax error 5583 _ACEOF 5584 if { (ac_try="$ac_cpp conftest.$ac_ext" 5585 case "(($ac_try" in 5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5587 *) ac_try_echo=$ac_try;; 5588 esac 5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5591 ac_status=$? 5592 grep -v '^ *+' conftest.er1 >conftest.err 5593 rm -f conftest.er1 5594 cat conftest.err >&5 5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5596 (exit $ac_status); } >/dev/null; then 5597 if test -s conftest.err; then 5598 ac_cpp_err=$ac_c_preproc_warn_flag 5599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5600 else 5601 ac_cpp_err= 5602 fi 5603 else 5604 ac_cpp_err=yes 5605 fi 5606 if test -z "$ac_cpp_err"; then 5607 : 5608 else 5609 echo "$as_me: failed program was:" >&5 5610 sed 's/^/| /' conftest.$ac_ext >&5 5611 5612 # Broken: fails on valid input. 5613 continue 5614 fi 5615 5616 rm -f conftest.err conftest.$ac_ext 5617 5618 # OK, works on sane cases. Now check whether nonexistent headers 5619 # can be detected and how. 5620 cat >conftest.$ac_ext <<_ACEOF 5621 /* confdefs.h. */ 5622 _ACEOF 5623 cat confdefs.h >>conftest.$ac_ext 5624 cat >>conftest.$ac_ext <<_ACEOF 5625 /* end confdefs.h. */ 5626 #include <ac_nonexistent.h> 5627 _ACEOF 5628 if { (ac_try="$ac_cpp conftest.$ac_ext" 5629 case "(($ac_try" in 5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5631 *) ac_try_echo=$ac_try;; 5632 esac 5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5635 ac_status=$? 5636 grep -v '^ *+' conftest.er1 >conftest.err 5637 rm -f conftest.er1 5638 cat conftest.err >&5 5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5640 (exit $ac_status); } >/dev/null; then 5641 if test -s conftest.err; then 5642 ac_cpp_err=$ac_c_preproc_warn_flag 5643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5644 else 5645 ac_cpp_err= 5646 fi 5647 else 5648 ac_cpp_err=yes 5649 fi 5650 if test -z "$ac_cpp_err"; then 5651 # Broken: success on invalid input. 5652 continue 5653 else 5654 echo "$as_me: failed program was:" >&5 5655 sed 's/^/| /' conftest.$ac_ext >&5 5656 5657 # Passes both tests. 5658 ac_preproc_ok=: 5659 break 5660 fi 5661 5662 rm -f conftest.err conftest.$ac_ext 5663 5664 done 5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5666 rm -f conftest.err conftest.$ac_ext 5667 if $ac_preproc_ok; then 5668 break 5669 fi 5670 5671 done 5672 ac_cv_prog_CPP=$CPP 5673 5674 fi 5675 CPP=$ac_cv_prog_CPP 5676 else 5677 ac_cv_prog_CPP=$CPP 5678 fi 5679 { echo "$as_me:$LINENO: result: $CPP" >&5 5680 echo "${ECHO_T}$CPP" >&6; } 5681 ac_preproc_ok=false 5682 for ac_c_preproc_warn_flag in '' yes 5683 do 5684 # Use a header file that comes with gcc, so configuring glibc 5685 # with a fresh cross-compiler works. 5686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5687 # <limits.h> exists even on freestanding compilers. 5688 # On the NeXT, cc -E runs the code through the compiler's parser, 5689 # not just through cpp. "Syntax error" is here to catch this case. 5690 cat >conftest.$ac_ext <<_ACEOF 5691 /* confdefs.h. */ 5692 _ACEOF 5693 cat confdefs.h >>conftest.$ac_ext 5694 cat >>conftest.$ac_ext <<_ACEOF 5695 /* end confdefs.h. */ 5696 #ifdef __STDC__ 5697 # include <limits.h> 5698 #else 5699 # include <assert.h> 5700 #endif 5701 Syntax error 5702 _ACEOF 5703 if { (ac_try="$ac_cpp conftest.$ac_ext" 5704 case "(($ac_try" in 5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5706 *) ac_try_echo=$ac_try;; 5707 esac 5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5710 ac_status=$? 5711 grep -v '^ *+' conftest.er1 >conftest.err 5712 rm -f conftest.er1 5713 cat conftest.err >&5 5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5715 (exit $ac_status); } >/dev/null; then 5716 if test -s conftest.err; then 5717 ac_cpp_err=$ac_c_preproc_warn_flag 5718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5719 else 5720 ac_cpp_err= 5721 fi 5722 else 5723 ac_cpp_err=yes 5724 fi 5725 if test -z "$ac_cpp_err"; then 5726 : 5727 else 5728 echo "$as_me: failed program was:" >&5 5729 sed 's/^/| /' conftest.$ac_ext >&5 5730 5731 # Broken: fails on valid input. 5732 continue 5733 fi 5734 5735 rm -f conftest.err conftest.$ac_ext 5736 5737 # OK, works on sane cases. Now check whether nonexistent headers 5738 # can be detected and how. 5739 cat >conftest.$ac_ext <<_ACEOF 5740 /* confdefs.h. */ 5741 _ACEOF 5742 cat confdefs.h >>conftest.$ac_ext 5743 cat >>conftest.$ac_ext <<_ACEOF 5744 /* end confdefs.h. */ 5745 #include <ac_nonexistent.h> 5746 _ACEOF 5747 if { (ac_try="$ac_cpp conftest.$ac_ext" 5748 case "(($ac_try" in 5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5750 *) ac_try_echo=$ac_try;; 5751 esac 5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5754 ac_status=$? 5755 grep -v '^ *+' conftest.er1 >conftest.err 5756 rm -f conftest.er1 5757 cat conftest.err >&5 5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5759 (exit $ac_status); } >/dev/null; then 5760 if test -s conftest.err; then 5761 ac_cpp_err=$ac_c_preproc_warn_flag 5762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5763 else 5764 ac_cpp_err= 5765 fi 5766 else 5767 ac_cpp_err=yes 5768 fi 5769 if test -z "$ac_cpp_err"; then 5770 # Broken: success on invalid input. 5771 continue 5772 else 5773 echo "$as_me: failed program was:" >&5 5774 sed 's/^/| /' conftest.$ac_ext >&5 5775 5776 # Passes both tests. 5777 ac_preproc_ok=: 5778 break 5779 fi 5780 5781 rm -f conftest.err conftest.$ac_ext 5782 5783 done 5784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5785 rm -f conftest.err conftest.$ac_ext 5786 if $ac_preproc_ok; then 5787 : 5788 else 5789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5790 See \`config.log' for more details." >&5 5791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5792 See \`config.log' for more details." >&2;} 5793 { (exit 1); exit 1; }; } 5794 fi 5795 5796 ac_ext=c 5797 ac_cpp='$CPP $CPPFLAGS' 5798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5800 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5801 5802 ac_ext=c 5803 ac_cpp='$CPP $CPPFLAGS' 5804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5807 if test -n "$ac_tool_prefix"; then 5808 for ac_prog in gcc 5809 do 5810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5812 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5814 if test "${ac_cv_prog_CC+set}" = set; then 5815 echo $ECHO_N "(cached) $ECHO_C" >&6 5816 else 5817 if test -n "$CC"; then 5818 ac_cv_prog_CC="$CC" # Let the user override the test. 5819 else 5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5821 for as_dir in $PATH 5822 do 5823 IFS=$as_save_IFS 5824 test -z "$as_dir" && as_dir=. 5825 for ac_exec_ext in '' $ac_executable_extensions; do 5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5829 break 2 5830 fi 5831 done 5832 done 5833 IFS=$as_save_IFS 5834 5835 fi 5836 fi 5837 CC=$ac_cv_prog_CC 5838 if test -n "$CC"; then 5839 { echo "$as_me:$LINENO: result: $CC" >&5 5840 echo "${ECHO_T}$CC" >&6; } 5841 else 5842 { echo "$as_me:$LINENO: result: no" >&5 5843 echo "${ECHO_T}no" >&6; } 5844 fi 5845 5846 5847 test -n "$CC" && break 5848 done 5849 fi 5850 if test -z "$CC"; then 5851 ac_ct_CC=$CC 5852 for ac_prog in gcc 5853 do 5854 # Extract the first word of "$ac_prog", so it can be a program name with args. 5855 set dummy $ac_prog; ac_word=$2 5856 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5859 echo $ECHO_N "(cached) $ECHO_C" >&6 5860 else 5861 if test -n "$ac_ct_CC"; then 5862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5863 else 5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5865 for as_dir in $PATH 5866 do 5867 IFS=$as_save_IFS 5868 test -z "$as_dir" && as_dir=. 5869 for ac_exec_ext in '' $ac_executable_extensions; do 5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5871 ac_cv_prog_ac_ct_CC="$ac_prog" 5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5873 break 2 5874 fi 5875 done 5876 done 5877 IFS=$as_save_IFS 5878 5879 fi 5880 fi 5881 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5882 if test -n "$ac_ct_CC"; then 5883 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5884 echo "${ECHO_T}$ac_ct_CC" >&6; } 5885 else 5886 { echo "$as_me:$LINENO: result: no" >&5 5887 echo "${ECHO_T}no" >&6; } 5888 fi 5889 5890 5891 test -n "$ac_ct_CC" && break 5892 done 5893 5894 if test "x$ac_ct_CC" = x; then 5895 CC="" 5896 else 5897 case $cross_compiling:$ac_tool_warned in 5898 yes:) 5899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5900 whose name does not start with the host triplet. If you think this 5901 configuration is useful to you, please write to autoconf@gnu.org." >&5 5902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5903 whose name does not start with the host triplet. If you think this 5904 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5905 ac_tool_warned=yes ;; 5906 esac 5907 CC=$ac_ct_CC 5908 fi 5909 fi 5910 5911 5912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5913 See \`config.log' for more details." >&5 5914 echo "$as_me: error: no acceptable C compiler found in \$PATH 5915 See \`config.log' for more details." >&2;} 5916 { (exit 1); exit 1; }; } 5917 5918 # Provide some information about the compiler. 5919 echo "$as_me:$LINENO: checking for C compiler version" >&5 5920 ac_compiler=`set X $ac_compile; echo $2` 5921 { (ac_try="$ac_compiler --version >&5" 5922 case "(($ac_try" in 5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5924 *) ac_try_echo=$ac_try;; 5925 esac 5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5927 (eval "$ac_compiler --version >&5") 2>&5 5928 ac_status=$? 5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5930 (exit $ac_status); } 5931 { (ac_try="$ac_compiler -v >&5" 5932 case "(($ac_try" in 5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5934 *) ac_try_echo=$ac_try;; 5935 esac 5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5937 (eval "$ac_compiler -v >&5") 2>&5 5938 ac_status=$? 5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5940 (exit $ac_status); } 5941 { (ac_try="$ac_compiler -V >&5" 5942 case "(($ac_try" in 5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5944 *) ac_try_echo=$ac_try;; 5945 esac 5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5947 (eval "$ac_compiler -V >&5") 2>&5 5948 ac_status=$? 5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5950 (exit $ac_status); } 5951 5952 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5953 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 5954 if test "${ac_cv_c_compiler_gnu+set}" = set; then 5955 echo $ECHO_N "(cached) $ECHO_C" >&6 5956 else 5957 cat >conftest.$ac_ext <<_ACEOF 5958 /* confdefs.h. */ 5959 _ACEOF 5960 cat confdefs.h >>conftest.$ac_ext 5961 cat >>conftest.$ac_ext <<_ACEOF 5962 /* end confdefs.h. */ 5963 5964 int 5965 main () 5966 { 5967 #ifndef __GNUC__ 5968 choke me 5969 #endif 5970 5971 ; 5972 return 0; 5973 } 5974 _ACEOF 5975 rm -f conftest.$ac_objext 5976 if { (ac_try="$ac_compile" 5977 case "(($ac_try" in 5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5979 *) ac_try_echo=$ac_try;; 5980 esac 5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5982 (eval "$ac_compile") 2>conftest.er1 5983 ac_status=$? 5984 grep -v '^ *+' conftest.er1 >conftest.err 5985 rm -f conftest.er1 5986 cat conftest.err >&5 5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5988 (exit $ac_status); } && 5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5990 { (case "(($ac_try" in 5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5992 *) ac_try_echo=$ac_try;; 5993 esac 5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5995 (eval "$ac_try") 2>&5 5996 ac_status=$? 5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5998 (exit $ac_status); }; } && 5999 { ac_try='test -s conftest.$ac_objext' 6000 { (case "(($ac_try" in 6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6002 *) ac_try_echo=$ac_try;; 6003 esac 6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6005 (eval "$ac_try") 2>&5 6006 ac_status=$? 6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6008 (exit $ac_status); }; }; then 6009 ac_compiler_gnu=yes 6010 else 6011 echo "$as_me: failed program was:" >&5 6012 sed 's/^/| /' conftest.$ac_ext >&5 6013 6014 ac_compiler_gnu=no 6015 fi 6016 6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6018 ac_cv_c_compiler_gnu=$ac_compiler_gnu 6019 6020 fi 6021 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 6022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 6023 GCC=`test $ac_compiler_gnu = yes && echo yes` 6024 ac_test_CFLAGS=${CFLAGS+set} 6025 ac_save_CFLAGS=$CFLAGS 6026 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 6027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 6028 if test "${ac_cv_prog_cc_g+set}" = set; then 6029 echo $ECHO_N "(cached) $ECHO_C" >&6 6030 else 6031 ac_save_c_werror_flag=$ac_c_werror_flag 6032 ac_c_werror_flag=yes 6033 ac_cv_prog_cc_g=no 6034 CFLAGS="-g" 6035 cat >conftest.$ac_ext <<_ACEOF 6036 /* confdefs.h. */ 6037 _ACEOF 6038 cat confdefs.h >>conftest.$ac_ext 6039 cat >>conftest.$ac_ext <<_ACEOF 6040 /* end confdefs.h. */ 6041 6042 int 6043 main () 6044 { 6045 6046 ; 6047 return 0; 6048 } 6049 _ACEOF 6050 rm -f conftest.$ac_objext 6051 if { (ac_try="$ac_compile" 6052 case "(($ac_try" in 6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6054 *) ac_try_echo=$ac_try;; 6055 esac 6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6057 (eval "$ac_compile") 2>conftest.er1 6058 ac_status=$? 6059 grep -v '^ *+' conftest.er1 >conftest.err 6060 rm -f conftest.er1 6061 cat conftest.err >&5 6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6063 (exit $ac_status); } && 6064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6065 { (case "(($ac_try" in 6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6067 *) ac_try_echo=$ac_try;; 6068 esac 6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6070 (eval "$ac_try") 2>&5 6071 ac_status=$? 6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); }; } && 6074 { ac_try='test -s conftest.$ac_objext' 6075 { (case "(($ac_try" in 6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6077 *) ac_try_echo=$ac_try;; 6078 esac 6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6080 (eval "$ac_try") 2>&5 6081 ac_status=$? 6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6083 (exit $ac_status); }; }; then 6084 ac_cv_prog_cc_g=yes 6085 else 6086 echo "$as_me: failed program was:" >&5 6087 sed 's/^/| /' conftest.$ac_ext >&5 6088 6089 CFLAGS="" 6090 cat >conftest.$ac_ext <<_ACEOF 6091 /* confdefs.h. */ 6092 _ACEOF 6093 cat confdefs.h >>conftest.$ac_ext 6094 cat >>conftest.$ac_ext <<_ACEOF 6095 /* end confdefs.h. */ 6096 6097 int 6098 main () 6099 { 6100 6101 ; 6102 return 0; 6103 } 6104 _ACEOF 6105 rm -f conftest.$ac_objext 6106 if { (ac_try="$ac_compile" 6107 case "(($ac_try" in 6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6109 *) ac_try_echo=$ac_try;; 6110 esac 6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6112 (eval "$ac_compile") 2>conftest.er1 6113 ac_status=$? 6114 grep -v '^ *+' conftest.er1 >conftest.err 6115 rm -f conftest.er1 6116 cat conftest.err >&5 6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6118 (exit $ac_status); } && 6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6120 { (case "(($ac_try" in 6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6122 *) ac_try_echo=$ac_try;; 6123 esac 6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6125 (eval "$ac_try") 2>&5 6126 ac_status=$? 6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6128 (exit $ac_status); }; } && 6129 { ac_try='test -s conftest.$ac_objext' 6130 { (case "(($ac_try" in 6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6132 *) ac_try_echo=$ac_try;; 6133 esac 6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6135 (eval "$ac_try") 2>&5 6136 ac_status=$? 6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6138 (exit $ac_status); }; }; then 6139 : 6140 else 6141 echo "$as_me: failed program was:" >&5 6142 sed 's/^/| /' conftest.$ac_ext >&5 6143 6144 ac_c_werror_flag=$ac_save_c_werror_flag 6145 CFLAGS="-g" 6146 cat >conftest.$ac_ext <<_ACEOF 6147 /* confdefs.h. */ 6148 _ACEOF 6149 cat confdefs.h >>conftest.$ac_ext 6150 cat >>conftest.$ac_ext <<_ACEOF 6151 /* end confdefs.h. */ 6152 6153 int 6154 main () 6155 { 6156 6157 ; 6158 return 0; 6159 } 6160 _ACEOF 6161 rm -f conftest.$ac_objext 6162 if { (ac_try="$ac_compile" 6163 case "(($ac_try" in 6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6165 *) ac_try_echo=$ac_try;; 6166 esac 6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6168 (eval "$ac_compile") 2>conftest.er1 6169 ac_status=$? 6170 grep -v '^ *+' conftest.er1 >conftest.err 6171 rm -f conftest.er1 6172 cat conftest.err >&5 6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6174 (exit $ac_status); } && 6175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6176 { (case "(($ac_try" in 6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6178 *) ac_try_echo=$ac_try;; 6179 esac 6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6181 (eval "$ac_try") 2>&5 6182 ac_status=$? 6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6184 (exit $ac_status); }; } && 6185 { ac_try='test -s conftest.$ac_objext' 6186 { (case "(($ac_try" in 6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6188 *) ac_try_echo=$ac_try;; 6189 esac 6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6191 (eval "$ac_try") 2>&5 6192 ac_status=$? 6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6194 (exit $ac_status); }; }; then 6195 ac_cv_prog_cc_g=yes 6196 else 6197 echo "$as_me: failed program was:" >&5 6198 sed 's/^/| /' conftest.$ac_ext >&5 6199 6200 6201 fi 6202 6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6204 fi 6205 6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6207 fi 6208 6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6210 ac_c_werror_flag=$ac_save_c_werror_flag 6211 fi 6212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 6213 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 6214 if test "$ac_test_CFLAGS" = set; then 6215 CFLAGS=$ac_save_CFLAGS 6216 elif test $ac_cv_prog_cc_g = yes; then 6217 if test "$GCC" = yes; then 6218 CFLAGS="-g -O2" 6219 else 6220 CFLAGS="-g" 6221 fi 6222 else 6223 if test "$GCC" = yes; then 6224 CFLAGS="-O2" 6225 else 6226 CFLAGS= 6227 fi 6228 fi 6229 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 6230 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 6231 if test "${ac_cv_prog_cc_c89+set}" = set; then 6232 echo $ECHO_N "(cached) $ECHO_C" >&6 6233 else 6234 ac_cv_prog_cc_c89=no 6235 ac_save_CC=$CC 6236 cat >conftest.$ac_ext <<_ACEOF 6237 /* confdefs.h. */ 6238 _ACEOF 6239 cat confdefs.h >>conftest.$ac_ext 6240 cat >>conftest.$ac_ext <<_ACEOF 6241 /* end confdefs.h. */ 6242 #include <stdarg.h> 6243 #include <stdio.h> 6244 #include <sys/types.h> 6245 #include <sys/stat.h> 6246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6247 struct buf { int x; }; 6248 FILE * (*rcsopen) (struct buf *, struct stat *, int); 6249 static char *e (p, i) 6250 char **p; 6251 int i; 6252 { 6253 return p[i]; 6254 } 6255 static char *f (char * (*g) (char **, int), char **p, ...) 6256 { 6257 char *s; 6258 va_list v; 6259 va_start (v,p); 6260 s = g (p, va_arg (v,int)); 6261 va_end (v); 6262 return s; 6263 } 6264 6265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6266 function prototypes and stuff, but not '\xHH' hex character constants. 6267 These don't provoke an error unfortunately, instead are silently treated 6268 as 'x'. The following induces an error, until -std is added to get 6269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6270 array size at least. It's necessary to write '\x00'==0 to get something 6271 that's true only with -std. */ 6272 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6273 6274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6275 inside strings and character constants. */ 6276 #define FOO(x) 'x' 6277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6278 6279 int test (int i, double x); 6280 struct s1 {int (*f) (int a);}; 6281 struct s2 {int (*f) (double a);}; 6282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6283 int argc; 6284 char **argv; 6285 int 6286 main () 6287 { 6288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6289 ; 6290 return 0; 6291 } 6292 _ACEOF 6293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6295 do 6296 CC="$ac_save_CC $ac_arg" 6297 rm -f conftest.$ac_objext 6298 if { (ac_try="$ac_compile" 6299 case "(($ac_try" in 6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6301 *) ac_try_echo=$ac_try;; 6302 esac 6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6304 (eval "$ac_compile") 2>conftest.er1 6305 ac_status=$? 6306 grep -v '^ *+' conftest.er1 >conftest.err 6307 rm -f conftest.er1 6308 cat conftest.err >&5 6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6310 (exit $ac_status); } && 6311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6312 { (case "(($ac_try" in 6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6314 *) ac_try_echo=$ac_try;; 6315 esac 6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6317 (eval "$ac_try") 2>&5 6318 ac_status=$? 6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6320 (exit $ac_status); }; } && 6321 { ac_try='test -s conftest.$ac_objext' 6322 { (case "(($ac_try" in 6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6324 *) ac_try_echo=$ac_try;; 6325 esac 6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6327 (eval "$ac_try") 2>&5 6328 ac_status=$? 6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6330 (exit $ac_status); }; }; then 6331 ac_cv_prog_cc_c89=$ac_arg 6332 else 6333 echo "$as_me: failed program was:" >&5 6334 sed 's/^/| /' conftest.$ac_ext >&5 6335 6336 6337 fi 6338 6339 rm -f core conftest.err conftest.$ac_objext 6340 test "x$ac_cv_prog_cc_c89" != "xno" && break 6341 done 6342 rm -f conftest.$ac_ext 6343 CC=$ac_save_CC 6344 6345 fi 6346 # AC_CACHE_VAL 6347 case "x$ac_cv_prog_cc_c89" in 6348 x) 6349 { echo "$as_me:$LINENO: result: none needed" >&5 6350 echo "${ECHO_T}none needed" >&6; } ;; 6351 xno) 6352 { echo "$as_me:$LINENO: result: unsupported" >&5 6353 echo "${ECHO_T}unsupported" >&6; } ;; 6354 *) 6355 CC="$CC $ac_cv_prog_cc_c89" 6356 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 6357 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 6358 esac 6359 6360 6361 ac_ext=c 6362 ac_cpp='$CPP $CPPFLAGS' 6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6366 6367 ac_ext=cpp 6368 ac_cpp='$CXXCPP $CPPFLAGS' 6369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6372 if test -z "$CXX"; then 6373 if test -n "$CCC"; then 6374 CXX=$CCC 6375 else 6376 if test -n "$ac_tool_prefix"; then 6377 for ac_prog in g++ 6378 do 6379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6383 if test "${ac_cv_prog_CXX+set}" = set; then 6384 echo $ECHO_N "(cached) $ECHO_C" >&6 6385 else 6386 if test -n "$CXX"; then 6387 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6388 else 6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390 for as_dir in $PATH 6391 do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400 done 6401 done 6402 IFS=$as_save_IFS 6403 6404 fi 6405 fi 6406 CXX=$ac_cv_prog_CXX 6407 if test -n "$CXX"; then 6408 { echo "$as_me:$LINENO: result: $CXX" >&5 6409 echo "${ECHO_T}$CXX" >&6; } 6410 else 6411 { echo "$as_me:$LINENO: result: no" >&5 6412 echo "${ECHO_T}no" >&6; } 6413 fi 6414 6415 6416 test -n "$CXX" && break 6417 done 6418 fi 6419 if test -z "$CXX"; then 6420 ac_ct_CXX=$CXX 6421 for ac_prog in g++ 6422 do 6423 # Extract the first word of "$ac_prog", so it can be a program name with args. 6424 set dummy $ac_prog; ac_word=$2 6425 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6427 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6428 echo $ECHO_N "(cached) $ECHO_C" >&6 6429 else 6430 if test -n "$ac_ct_CXX"; then 6431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6432 else 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434 for as_dir in $PATH 6435 do 6436 IFS=$as_save_IFS 6437 test -z "$as_dir" && as_dir=. 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6440 ac_cv_prog_ac_ct_CXX="$ac_prog" 6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444 done 6445 done 6446 IFS=$as_save_IFS 6447 6448 fi 6449 fi 6450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6451 if test -n "$ac_ct_CXX"; then 6452 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6453 echo "${ECHO_T}$ac_ct_CXX" >&6; } 6454 else 6455 { echo "$as_me:$LINENO: result: no" >&5 6456 echo "${ECHO_T}no" >&6; } 6457 fi 6458 6459 6460 test -n "$ac_ct_CXX" && break 6461 done 6462 6463 if test "x$ac_ct_CXX" = x; then 6464 CXX="g++" 6465 else 6466 case $cross_compiling:$ac_tool_warned in 6467 yes:) 6468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6469 whose name does not start with the host triplet. If you think this 6470 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6472 whose name does not start with the host triplet. If you think this 6473 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6474 ac_tool_warned=yes ;; 6475 esac 6476 CXX=$ac_ct_CXX 6477 fi 6478 fi 6479 6480 fi 6481 fi 6482 # Provide some information about the compiler. 6483 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6484 ac_compiler=`set X $ac_compile; echo $2` 6485 { (ac_try="$ac_compiler --version >&5" 6486 case "(($ac_try" in 6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6488 *) ac_try_echo=$ac_try;; 6489 esac 6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6491 (eval "$ac_compiler --version >&5") 2>&5 6492 ac_status=$? 6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6494 (exit $ac_status); } 6495 { (ac_try="$ac_compiler -v >&5" 6496 case "(($ac_try" in 6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6498 *) ac_try_echo=$ac_try;; 6499 esac 6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6501 (eval "$ac_compiler -v >&5") 2>&5 6502 ac_status=$? 6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6504 (exit $ac_status); } 6505 { (ac_try="$ac_compiler -V >&5" 6506 case "(($ac_try" in 6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6508 *) ac_try_echo=$ac_try;; 6509 esac 6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6511 (eval "$ac_compiler -V >&5") 2>&5 6512 ac_status=$? 6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6514 (exit $ac_status); } 6515 6516 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6517 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6519 echo $ECHO_N "(cached) $ECHO_C" >&6 6520 else 6521 cat >conftest.$ac_ext <<_ACEOF 6522 /* confdefs.h. */ 6523 _ACEOF 6524 cat confdefs.h >>conftest.$ac_ext 6525 cat >>conftest.$ac_ext <<_ACEOF 6526 /* end confdefs.h. */ 6527 6528 int 6529 main () 6530 { 6531 #ifndef __GNUC__ 6532 choke me 6533 #endif 6534 6535 ; 6536 return 0; 6537 } 6538 _ACEOF 6539 rm -f conftest.$ac_objext 6540 if { (ac_try="$ac_compile" 6541 case "(($ac_try" in 6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6543 *) ac_try_echo=$ac_try;; 6544 esac 6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6546 (eval "$ac_compile") 2>conftest.er1 6547 ac_status=$? 6548 grep -v '^ *+' conftest.er1 >conftest.err 6549 rm -f conftest.er1 6550 cat conftest.err >&5 6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6552 (exit $ac_status); } && 6553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6554 { (case "(($ac_try" in 6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6556 *) ac_try_echo=$ac_try;; 6557 esac 6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6559 (eval "$ac_try") 2>&5 6560 ac_status=$? 6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6562 (exit $ac_status); }; } && 6563 { ac_try='test -s conftest.$ac_objext' 6564 { (case "(($ac_try" in 6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6566 *) ac_try_echo=$ac_try;; 6567 esac 6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6569 (eval "$ac_try") 2>&5 6570 ac_status=$? 6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6572 (exit $ac_status); }; }; then 6573 ac_compiler_gnu=yes 6574 else 6575 echo "$as_me: failed program was:" >&5 6576 sed 's/^/| /' conftest.$ac_ext >&5 6577 6578 ac_compiler_gnu=no 6579 fi 6580 6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6582 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6583 6584 fi 6585 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6586 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6587 GXX=`test $ac_compiler_gnu = yes && echo yes` 6588 ac_test_CXXFLAGS=${CXXFLAGS+set} 6589 ac_save_CXXFLAGS=$CXXFLAGS 6590 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6591 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6592 if test "${ac_cv_prog_cxx_g+set}" = set; then 6593 echo $ECHO_N "(cached) $ECHO_C" >&6 6594 else 6595 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6596 ac_cxx_werror_flag=yes 6597 ac_cv_prog_cxx_g=no 6598 CXXFLAGS="-g" 6599 cat >conftest.$ac_ext <<_ACEOF 6600 /* confdefs.h. */ 6601 _ACEOF 6602 cat confdefs.h >>conftest.$ac_ext 6603 cat >>conftest.$ac_ext <<_ACEOF 6604 /* end confdefs.h. */ 6605 6606 int 6607 main () 6608 { 6609 6610 ; 6611 return 0; 6612 } 6613 _ACEOF 6614 rm -f conftest.$ac_objext 6615 if { (ac_try="$ac_compile" 6616 case "(($ac_try" in 6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6618 *) ac_try_echo=$ac_try;; 6619 esac 6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6621 (eval "$ac_compile") 2>conftest.er1 6622 ac_status=$? 6623 grep -v '^ *+' conftest.er1 >conftest.err 6624 rm -f conftest.er1 6625 cat conftest.err >&5 6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && 6628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6629 { (case "(($ac_try" in 6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6631 *) ac_try_echo=$ac_try;; 6632 esac 6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6634 (eval "$ac_try") 2>&5 6635 ac_status=$? 6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6637 (exit $ac_status); }; } && 6638 { ac_try='test -s conftest.$ac_objext' 6639 { (case "(($ac_try" in 6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6641 *) ac_try_echo=$ac_try;; 6642 esac 6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6644 (eval "$ac_try") 2>&5 6645 ac_status=$? 6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6647 (exit $ac_status); }; }; then 6648 ac_cv_prog_cxx_g=yes 6649 else 6650 echo "$as_me: failed program was:" >&5 6651 sed 's/^/| /' conftest.$ac_ext >&5 6652 6653 CXXFLAGS="" 6654 cat >conftest.$ac_ext <<_ACEOF 6655 /* confdefs.h. */ 6656 _ACEOF 6657 cat confdefs.h >>conftest.$ac_ext 6658 cat >>conftest.$ac_ext <<_ACEOF 6659 /* end confdefs.h. */ 6660 6661 int 6662 main () 6663 { 6664 6665 ; 6666 return 0; 6667 } 6668 _ACEOF 6669 rm -f conftest.$ac_objext 6670 if { (ac_try="$ac_compile" 6671 case "(($ac_try" in 6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6673 *) ac_try_echo=$ac_try;; 6674 esac 6675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6676 (eval "$ac_compile") 2>conftest.er1 6677 ac_status=$? 6678 grep -v '^ *+' conftest.er1 >conftest.err 6679 rm -f conftest.er1 6680 cat conftest.err >&5 6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6682 (exit $ac_status); } && 6683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6684 { (case "(($ac_try" in 6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6686 *) ac_try_echo=$ac_try;; 6687 esac 6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6689 (eval "$ac_try") 2>&5 6690 ac_status=$? 6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6692 (exit $ac_status); }; } && 6693 { ac_try='test -s conftest.$ac_objext' 6694 { (case "(($ac_try" in 6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6696 *) ac_try_echo=$ac_try;; 6697 esac 6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6699 (eval "$ac_try") 2>&5 6700 ac_status=$? 6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6702 (exit $ac_status); }; }; then 6703 : 6704 else 6705 echo "$as_me: failed program was:" >&5 6706 sed 's/^/| /' conftest.$ac_ext >&5 6707 6708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6709 CXXFLAGS="-g" 6710 cat >conftest.$ac_ext <<_ACEOF 6711 /* confdefs.h. */ 6712 _ACEOF 6713 cat confdefs.h >>conftest.$ac_ext 6714 cat >>conftest.$ac_ext <<_ACEOF 6715 /* end confdefs.h. */ 6716 6717 int 6718 main () 6719 { 6720 6721 ; 6722 return 0; 6723 } 6724 _ACEOF 6725 rm -f conftest.$ac_objext 6726 if { (ac_try="$ac_compile" 6727 case "(($ac_try" in 6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6729 *) ac_try_echo=$ac_try;; 6730 esac 6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6732 (eval "$ac_compile") 2>conftest.er1 6733 ac_status=$? 6734 grep -v '^ *+' conftest.er1 >conftest.err 6735 rm -f conftest.er1 6736 cat conftest.err >&5 6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6738 (exit $ac_status); } && 6739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6740 { (case "(($ac_try" in 6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6742 *) ac_try_echo=$ac_try;; 6743 esac 6744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6745 (eval "$ac_try") 2>&5 6746 ac_status=$? 6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6748 (exit $ac_status); }; } && 6749 { ac_try='test -s conftest.$ac_objext' 6750 { (case "(($ac_try" in 6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6752 *) ac_try_echo=$ac_try;; 6753 esac 6754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6755 (eval "$ac_try") 2>&5 6756 ac_status=$? 6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6758 (exit $ac_status); }; }; then 6759 ac_cv_prog_cxx_g=yes 6760 else 6761 echo "$as_me: failed program was:" >&5 6762 sed 's/^/| /' conftest.$ac_ext >&5 6763 6764 6765 fi 6766 6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6768 fi 6769 6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6771 fi 6772 6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6775 fi 6776 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6777 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6778 if test "$ac_test_CXXFLAGS" = set; then 6779 CXXFLAGS=$ac_save_CXXFLAGS 6780 elif test $ac_cv_prog_cxx_g = yes; then 6781 if test "$GXX" = yes; then 6782 CXXFLAGS="-g -O2" 6783 else 6784 CXXFLAGS="-g" 6785 fi 6786 else 6787 if test "$GXX" = yes; then 6788 CXXFLAGS="-O2" 6789 else 6790 CXXFLAGS= 6791 fi 6792 fi 6793 ac_ext=c 6794 ac_cpp='$CPP $CPPFLAGS' 6795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6797 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6798 6799 6800 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6801 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6802 if test "${lt_cv_path_NM+set}" = set; then 6803 echo $ECHO_N "(cached) $ECHO_C" >&6 6804 else 6805 if test -n "$NM"; then 6806 # Let the user override the test. 6807 lt_cv_path_NM="$NM" 6808 else 6809 lt_nm_to_check="${ac_tool_prefix}nm" 6810 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6811 lt_nm_to_check="$lt_nm_to_check nm" 6812 fi 6813 for lt_tmp_nm in $lt_nm_to_check; do 6814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6815 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6816 IFS="$lt_save_ifs" 6817 test -z "$ac_dir" && ac_dir=. 6818 tmp_nm="$ac_dir/$lt_tmp_nm" 6819 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6820 # Check to see if the nm accepts a BSD-compat flag. 6821 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6822 # nm: unknown option "B" ignored 6823 # Tru64's nm complains that /dev/null is an invalid object file 6824 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6825 */dev/null* | *'Invalid file or object type'*) 6826 lt_cv_path_NM="$tmp_nm -B" 6827 break 6828 ;; 6829 *) 6830 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6831 */dev/null*) 6832 lt_cv_path_NM="$tmp_nm -p" 6833 break 6834 ;; 6835 *) 6836 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6837 continue # so that we can try to find one that supports BSD flags 6838 ;; 6839 esac 6840 ;; 6841 esac 6842 fi 6843 done 6844 IFS="$lt_save_ifs" 6845 done 6846 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6847 fi 6848 fi 6849 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6850 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6851 NM="$lt_cv_path_NM" 6852 6853 6854 6855 { echo "$as_me:$LINENO: checking for GNU make" >&5 6856 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6857 if test "${llvm_cv_gnu_make_command+set}" = set; then 6858 echo $ECHO_N "(cached) $ECHO_C" >&6 6859 else 6860 llvm_cv_gnu_make_command='' 6861 for a in "$MAKE" make gmake gnumake ; do 6862 if test -z "$a" ; then continue ; fi ; 6863 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6864 then 6865 llvm_cv_gnu_make_command=$a ; 6866 break; 6867 fi 6868 done 6869 fi 6870 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6871 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6872 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6873 ifGNUmake='' ; 6874 else 6875 ifGNUmake='#' ; 6876 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6877 echo "${ECHO_T}\"Not found\"" >&6; }; 6878 fi 6879 6880 6881 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 6882 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6883 LN_S=$as_ln_s 6884 if test "$LN_S" = "ln -s"; then 6885 { echo "$as_me:$LINENO: result: yes" >&5 6886 echo "${ECHO_T}yes" >&6; } 6887 else 6888 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6889 echo "${ECHO_T}no, using $LN_S" >&6; } 6890 fi 6891 6892 # Extract the first word of "cmp", so it can be a program name with args. 6893 set dummy cmp; ac_word=$2 6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6896 if test "${ac_cv_path_CMP+set}" = set; then 6897 echo $ECHO_N "(cached) $ECHO_C" >&6 6898 else 6899 case $CMP in 6900 [\\/]* | ?:[\\/]*) 6901 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6902 ;; 6903 *) 6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905 for as_dir in $PATH 6906 do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6911 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915 done 6916 done 6917 IFS=$as_save_IFS 6918 6919 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6920 ;; 6921 esac 6922 fi 6923 CMP=$ac_cv_path_CMP 6924 if test -n "$CMP"; then 6925 { echo "$as_me:$LINENO: result: $CMP" >&5 6926 echo "${ECHO_T}$CMP" >&6; } 6927 else 6928 { echo "$as_me:$LINENO: result: no" >&5 6929 echo "${ECHO_T}no" >&6; } 6930 fi 6931 6932 6933 # Extract the first word of "cp", so it can be a program name with args. 6934 set dummy cp; ac_word=$2 6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6937 if test "${ac_cv_path_CP+set}" = set; then 6938 echo $ECHO_N "(cached) $ECHO_C" >&6 6939 else 6940 case $CP in 6941 [\\/]* | ?:[\\/]*) 6942 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6943 ;; 6944 *) 6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946 for as_dir in $PATH 6947 do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6952 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956 done 6957 done 6958 IFS=$as_save_IFS 6959 6960 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6961 ;; 6962 esac 6963 fi 6964 CP=$ac_cv_path_CP 6965 if test -n "$CP"; then 6966 { echo "$as_me:$LINENO: result: $CP" >&5 6967 echo "${ECHO_T}$CP" >&6; } 6968 else 6969 { echo "$as_me:$LINENO: result: no" >&5 6970 echo "${ECHO_T}no" >&6; } 6971 fi 6972 6973 6974 # Extract the first word of "date", so it can be a program name with args. 6975 set dummy date; ac_word=$2 6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6978 if test "${ac_cv_path_DATE+set}" = set; then 6979 echo $ECHO_N "(cached) $ECHO_C" >&6 6980 else 6981 case $DATE in 6982 [\\/]* | ?:[\\/]*) 6983 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6984 ;; 6985 *) 6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987 for as_dir in $PATH 6988 do 6989 IFS=$as_save_IFS 6990 test -z "$as_dir" && as_dir=. 6991 for ac_exec_ext in '' $ac_executable_extensions; do 6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6993 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6995 break 2 6996 fi 6997 done 6998 done 6999 IFS=$as_save_IFS 7000 7001 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 7002 ;; 7003 esac 7004 fi 7005 DATE=$ac_cv_path_DATE 7006 if test -n "$DATE"; then 7007 { echo "$as_me:$LINENO: result: $DATE" >&5 7008 echo "${ECHO_T}$DATE" >&6; } 7009 else 7010 { echo "$as_me:$LINENO: result: no" >&5 7011 echo "${ECHO_T}no" >&6; } 7012 fi 7013 7014 7015 # Extract the first word of "find", so it can be a program name with args. 7016 set dummy find; ac_word=$2 7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7019 if test "${ac_cv_path_FIND+set}" = set; then 7020 echo $ECHO_N "(cached) $ECHO_C" >&6 7021 else 7022 case $FIND in 7023 [\\/]* | ?:[\\/]*) 7024 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7025 ;; 7026 *) 7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7028 for as_dir in $PATH 7029 do 7030 IFS=$as_save_IFS 7031 test -z "$as_dir" && as_dir=. 7032 for ac_exec_ext in '' $ac_executable_extensions; do 7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7034 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7036 break 2 7037 fi 7038 done 7039 done 7040 IFS=$as_save_IFS 7041 7042 test -z "