configure revision a1095b237f338714f191b0a73fe14f5f1c33df67
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for LLVM 3.2svn. 4# 5# Report bugs to <http://llvm.org/bugs/>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11# 12# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. 13## --------------------- ## 14## M4sh Initialization. ## 15## --------------------- ## 16 17# Be Bourne compatible 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 27fi 28BIN_SH=xpg4; export BIN_SH # for Tru64 29DUALCASE=1; export DUALCASE # for MKS sh 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240# Be Bourne compatible 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 250fi 251BIN_SH=xpg4; export BIN_SH # for Tru64 252DUALCASE=1; export DUALCASE # for MKS sh 253 254: 255_ASEOF 256}; then 257 CONFIG_SHELL=$as_shell 258 as_have_required=yes 259 if { "$as_shell" 2> /dev/null <<\_ASEOF 260# Be Bourne compatible 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 270fi 271BIN_SH=xpg4; export BIN_SH # for Tru64 272DUALCASE=1; export DUALCASE # for MKS sh 273 274: 275(as_func_return () { 276 (exit $1) 277} 278as_func_success () { 279 as_func_return 0 280} 281as_func_failure () { 282 as_func_return 1 283} 284as_func_ret_success () { 285 return 0 286} 287as_func_ret_failure () { 288 return 1 289} 290 291exitcode=0 292if as_func_success; then 293 : 294else 295 exitcode=1 296 echo as_func_success failed. 297fi 298 299if as_func_failure; then 300 exitcode=1 301 echo as_func_failure succeeded. 302fi 303 304if as_func_ret_success; then 305 : 306else 307 exitcode=1 308 echo as_func_ret_success failed. 309fi 310 311if as_func_ret_failure; then 312 exitcode=1 313 echo as_func_ret_failure succeeded. 314fi 315 316if ( set x; as_func_ret_success y && test x = "$1" ); then 317 : 318else 319 exitcode=1 320 echo positional parameters were not saved. 321fi 322 323test $exitcode = 0) || { (exit 1); exit 1; } 324 325( 326 as_lineno_1=$LINENO 327 as_lineno_2=$LINENO 328 test "x$as_lineno_1" != "x$as_lineno_2" && 329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 330 331_ASEOF 332}; then 333 break 334fi 335 336fi 337 338 done 339 340 if test "x$CONFIG_SHELL" != x; then 341 for as_var in BASH_ENV ENV 342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 343 done 344 export CONFIG_SHELL 345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 346fi 347 348 349 if test $as_have_required = no; then 350 echo This script requires a shell more modern than all the 351 echo shells that I found on your system. Please install a 352 echo modern shell, or manually run the script under such a 353 echo shell if you do have one. 354 { (exit 1); exit 1; } 355fi 356 357 358fi 359 360fi 361 362 363 364(eval "as_func_return () { 365 (exit \$1) 366} 367as_func_success () { 368 as_func_return 0 369} 370as_func_failure () { 371 as_func_return 1 372} 373as_func_ret_success () { 374 return 0 375} 376as_func_ret_failure () { 377 return 1 378} 379 380exitcode=0 381if as_func_success; then 382 : 383else 384 exitcode=1 385 echo as_func_success failed. 386fi 387 388if as_func_failure; then 389 exitcode=1 390 echo as_func_failure succeeded. 391fi 392 393if as_func_ret_success; then 394 : 395else 396 exitcode=1 397 echo as_func_ret_success failed. 398fi 399 400if as_func_ret_failure; then 401 exitcode=1 402 echo as_func_ret_failure succeeded. 403fi 404 405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 406 : 407else 408 exitcode=1 409 echo positional parameters were not saved. 410fi 411 412test \$exitcode = 0") || { 413 echo No shell found that supports shell functions. 414 echo Please tell autoconf@gnu.org about your system, 415 echo including any error possibly output before this 416 echo message 417} 418 419 420 421 as_lineno_1=$LINENO 422 as_lineno_2=$LINENO 423 test "x$as_lineno_1" != "x$as_lineno_2" && 424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 425 426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 427 # uniformly replaced by the line number. The first 'sed' inserts a 428 # line-number line after each line using $LINENO; the second 'sed' 429 # does the real work. The second script uses 'N' to pair each 430 # line-number line with the line containing $LINENO, and appends 431 # trailing '-' during substitution so that $LINENO is not a special 432 # case at line end. 433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 434 # scripts with optimization help from Paolo Bonzini. Blame Lee 435 # E. McMahon (1931-1989) for sed's syntax. :-) 436 sed -n ' 437 p 438 /[$]LINENO/= 439 ' <$as_myself | 440 sed ' 441 s/[$]LINENO.*/&-/ 442 t lineno 443 b 444 :lineno 445 N 446 :loop 447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 448 t loop 449 s/-\n.*// 450 ' >$as_me.lineno && 451 chmod +x "$as_me.lineno" || 452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 453 { (exit 1); exit 1; }; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470ECHO_C= ECHO_N= ECHO_T= 471case `echo -n x` in 472-n*) 473 case `echo 'x\c'` in 474 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 475 *) ECHO_C='\c';; 476 esac;; 477*) 478 ECHO_N='-n';; 479esac 480 481if expr a : '\(a\)' >/dev/null 2>&1 && 482 test "X`expr 00001 : '.*\(...\)'`" = X001; then 483 as_expr=expr 484else 485 as_expr=false 486fi 487 488rm -f conf$$ conf$$.exe conf$$.file 489if test -d conf$$.dir; then 490 rm -f conf$$.dir/conf$$.file 491else 492 rm -f conf$$.dir 493 mkdir conf$$.dir 494fi 495echo >conf$$.file 496if ln -s conf$$.file conf$$ 2>/dev/null; then 497 as_ln_s='ln -s' 498 # ... but there are two gotchas: 499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 501 # In both cases, we have to default to `cp -p'. 502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 503 as_ln_s='cp -p' 504elif ln conf$$.file conf$$ 2>/dev/null; then 505 as_ln_s=ln 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p=: 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519# Find out whether ``test -x'' works. Don't use a zero-byte file, as 520# systems may use methods other than mode bits to determine executability. 521cat >conf$$.file <<_ASEOF 522#! /bin/sh 523exit 0 524_ASEOF 525chmod +x conf$$.file 526if test -x conf$$.file >/dev/null 2>&1; then 527 as_executable_p="test -x" 528else 529 as_executable_p=: 530fi 531rm -f conf$$.file 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541exec 7<&0 </dev/null 6>&1 542 543# Name of the host. 544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 545# so uname gets run too. 546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548# 549# Initializations. 550# 551ac_default_prefix=/usr/local 552ac_clean_files= 553ac_config_libobj_dir=. 554LIBOBJS= 555cross_compiling=no 556subdirs= 557MFLAGS= 558MAKEFLAGS= 559SHELL=${CONFIG_SHELL-/bin/sh} 560 561# Identity of this package. 562PACKAGE_NAME='LLVM' 563PACKAGE_TARNAME='llvm' 564PACKAGE_VERSION='3.2svn' 565PACKAGE_STRING='LLVM 3.2svn' 566PACKAGE_BUGREPORT='http://llvm.org/bugs/' 567 568ac_unique_file="lib/VMCore/Module.cpp" 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#if HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#if HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#if STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# if HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#if HAVE_STRING_H 587# if !STDC_HEADERS && HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#if HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#if HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#if HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#if HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='SHELL 606PATH_SEPARATOR 607PACKAGE_NAME 608PACKAGE_TARNAME 609PACKAGE_VERSION 610PACKAGE_STRING 611PACKAGE_BUGREPORT 612exec_prefix 613prefix 614program_transform_name 615bindir 616sbindir 617libexecdir 618datarootdir 619datadir 620sysconfdir 621sharedstatedir 622localstatedir 623includedir 624oldincludedir 625docdir 626infodir 627htmldir 628dvidir 629pdfdir 630psdir 631libdir 632localedir 633mandir 634DEFS 635ECHO_C 636ECHO_N 637ECHO_T 638LIBS 639build_alias 640host_alias 641target_alias 642LLVM_COPYRIGHT 643CC 644CFLAGS 645LDFLAGS 646CPPFLAGS 647ac_ct_CC 648EXEEXT 649OBJEXT 650CXX 651CXXFLAGS 652ac_ct_CXX 653CPP 654subdirs 655ENABLE_POLLY 656LLVM_HAS_POLLY 657build 658build_cpu 659build_vendor 660build_os 661host 662host_cpu 663host_vendor 664host_os 665target 666target_cpu 667target_vendor 668target_os 669OS 670HOST_OS 671TARGET_OS 672LINKALL 673NOLINKALL 674LLVM_ON_UNIX 675LLVM_ON_WIN32 676ARCH 677HOST_ARCH 678ENDIAN 679GREP 680EGREP 681LLVM_CROSS_COMPILING 682BUILD_CC 683BUILD_EXEEXT 684BUILD_CXX 685CVSBUILD 686ENABLE_LIBCPP 687ENABLE_OPTIMIZED 688ENABLE_PROFILING 689DISABLE_ASSERTIONS 690ENABLE_EXPENSIVE_CHECKS 691EXPENSIVE_CHECKS 692DEBUG_RUNTIME 693DEBUG_SYMBOLS 694JIT 695TARGET_HAS_JIT 696ENABLE_DOCS 697ENABLE_DOXYGEN 698LLVM_ENABLE_THREADS 699ENABLE_PTHREADS 700ENABLE_PIC 701ENABLE_SHARED 702ENABLE_EMBED_STDCXX 703ENABLE_TIMESTAMPS 704TARGETS_TO_BUILD 705LLVM_ENUM_TARGETS 706LLVM_ENUM_ASM_PRINTERS 707LLVM_ENUM_ASM_PARSERS 708LLVM_ENUM_DISASSEMBLERS 709OPTIMIZE_OPTION 710EXTRA_OPTIONS 711EXTRA_LD_OPTIONS 712CLANG_SRC_ROOT 713BINUTILS_INCDIR 714INTERNAL_PREFIX 715NM 716ifGNUmake 717LN_S 718CMP 719CP 720DATE 721FIND 722MKDIR 723MV 724RANLIB 725AR 726RM 727SED 728TAR 729BINPWD 730GRAPHVIZ 731DOT 732FDP 733NEATO 734TWOPI 735CIRCO 736GV 737DOTTY 738XDOT_PY 739INSTALL_PROGRAM 740INSTALL_SCRIPT 741INSTALL_DATA 742BZIP2 743CAT 744DOXYGEN 745GROFF 746GZIPBIN 747PDFROFF 748ZIP 749OCAMLC 750OCAMLOPT 751OCAMLDEP 752OCAMLDOC 753GAS 754HAVE_LINK_VERSION_SCRIPT 755INSTALL_LTDL_TRUE 756INSTALL_LTDL_FALSE 757CONVENIENCE_LTDL_TRUE 758CONVENIENCE_LTDL_FALSE 759LIBADD_DL 760NO_VARIADIC_MACROS 761NO_MISSING_FIELD_INITIALIZERS 762COVERED_SWITCH_DEFAULT 763USE_UDIS86 764USE_OPROFILE 765USE_INTEL_JITEVENTS 766INTEL_JITEVENTS_INCDIR 767INTEL_JITEVENTS_LIBDIR 768HAVE_PTHREAD 769HUGE_VAL_SANITY 770MMAP_FILE 771SHLIBEXT 772SHLIBPATH_VAR 773LLVM_PREFIX 774LLVM_BINDIR 775LLVM_LIBDIR 776LLVM_DATADIR 777LLVM_DOCSDIR 778LLVM_ETCDIR 779LLVM_INCLUDEDIR 780LLVM_INFODIR 781LLVM_MANDIR 782LLVM_CONFIGTIME 783BINDINGS_TO_BUILD 784ALL_BINDINGS 785OCAML_LIBDIR 786ENABLE_VISIBILITY_INLINES_HIDDEN 787RPATH 788RDYNAMIC 789LIBOBJS 790LTLIBOBJS' 791ac_subst_files='' 792 ac_precious_vars='build_alias 793host_alias 794target_alias 795CC 796CFLAGS 797LDFLAGS 798CPPFLAGS 799CXX 800CXXFLAGS 801CCC 802CPP' 803ac_subdirs_all='projects/llvm-gcc 804projects/test-suite 805projects/llvm-test 806projects/poolalloc 807projects/llvm-poolalloc 808projects/sample 809projects/privbracket 810projects/llvm-stacker 811projects/llvm-reopt 812projects/llvm-java 813projects/llvm-tv 814projects/safecode 815projects/llvm-kernel 816tools/polly' 817 818# Initialize some variables set by options. 819ac_init_help= 820ac_init_version=false 821# The variables have the same names as the options, with 822# dashes changed to underlines. 823cache_file=/dev/null 824exec_prefix=NONE 825no_create= 826no_recursion= 827prefix=NONE 828program_prefix=NONE 829program_suffix=NONE 830program_transform_name=s,x,x, 831silent= 832site= 833srcdir= 834verbose= 835x_includes=NONE 836x_libraries=NONE 837 838# Installation directory options. 839# These are left unexpanded so users can "make install exec_prefix=/foo" 840# and all the variables that are supposed to be based on exec_prefix 841# by default will actually change. 842# Use braces instead of parens because sh, perl, etc. also accept them. 843# (The list follows the same order as the GNU Coding Standards.) 844bindir='${exec_prefix}/bin' 845sbindir='${exec_prefix}/sbin' 846libexecdir='${exec_prefix}/libexec' 847datarootdir='${prefix}/share' 848datadir='${datarootdir}' 849sysconfdir='${prefix}/etc' 850sharedstatedir='${prefix}/com' 851localstatedir='${prefix}/var' 852includedir='${prefix}/include' 853oldincludedir='/usr/include' 854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 855infodir='${datarootdir}/info' 856htmldir='${docdir}' 857dvidir='${docdir}' 858pdfdir='${docdir}' 859psdir='${docdir}' 860libdir='${exec_prefix}/lib' 861localedir='${datarootdir}/locale' 862mandir='${datarootdir}/man' 863 864ac_prev= 865ac_dashdash= 866for ac_option 867do 868 # If the previous option needs an argument, assign it. 869 if test -n "$ac_prev"; then 870 eval $ac_prev=\$ac_option 871 ac_prev= 872 continue 873 fi 874 875 case $ac_option in 876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 877 *) ac_optarg=yes ;; 878 esac 879 880 # Accept the important Cygnus configure options, so we can diagnose typos. 881 882 case $ac_dashdash$ac_option in 883 --) 884 ac_dashdash=yes ;; 885 886 -bindir | --bindir | --bindi | --bind | --bin | --bi) 887 ac_prev=bindir ;; 888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 889 bindir=$ac_optarg ;; 890 891 -build | --build | --buil | --bui | --bu) 892 ac_prev=build_alias ;; 893 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 894 build_alias=$ac_optarg ;; 895 896 -cache-file | --cache-file | --cache-fil | --cache-fi \ 897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 898 ac_prev=cache_file ;; 899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 901 cache_file=$ac_optarg ;; 902 903 --config-cache | -C) 904 cache_file=config.cache ;; 905 906 -datadir | --datadir | --datadi | --datad) 907 ac_prev=datadir ;; 908 -datadir=* | --datadir=* | --datadi=* | --datad=*) 909 datadir=$ac_optarg ;; 910 911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 912 | --dataroo | --dataro | --datar) 913 ac_prev=datarootdir ;; 914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 916 datarootdir=$ac_optarg ;; 917 918 -disable-* | --disable-*) 919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 920 # Reject names that are not valid shell variable names. 921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 923 { (exit 1); exit 1; }; } 924 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 925 eval enable_$ac_feature=no ;; 926 927 -docdir | --docdir | --docdi | --doc | --do) 928 ac_prev=docdir ;; 929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 930 docdir=$ac_optarg ;; 931 932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 933 ac_prev=dvidir ;; 934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 935 dvidir=$ac_optarg ;; 936 937 -enable-* | --enable-*) 938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 942 { (exit 1); exit 1; }; } 943 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 944 eval enable_$ac_feature=\$ac_optarg ;; 945 946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 948 | --exec | --exe | --ex) 949 ac_prev=exec_prefix ;; 950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 952 | --exec=* | --exe=* | --ex=*) 953 exec_prefix=$ac_optarg ;; 954 955 -gas | --gas | --ga | --g) 956 # Obsolete; use --with-gas. 957 with_gas=yes ;; 958 959 -help | --help | --hel | --he | -h) 960 ac_init_help=long ;; 961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 962 ac_init_help=recursive ;; 963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 964 ac_init_help=short ;; 965 966 -host | --host | --hos | --ho) 967 ac_prev=host_alias ;; 968 -host=* | --host=* | --hos=* | --ho=*) 969 host_alias=$ac_optarg ;; 970 971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 972 ac_prev=htmldir ;; 973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 974 | --ht=*) 975 htmldir=$ac_optarg ;; 976 977 -includedir | --includedir | --includedi | --included | --include \ 978 | --includ | --inclu | --incl | --inc) 979 ac_prev=includedir ;; 980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 981 | --includ=* | --inclu=* | --incl=* | --inc=*) 982 includedir=$ac_optarg ;; 983 984 -infodir | --infodir | --infodi | --infod | --info | --inf) 985 ac_prev=infodir ;; 986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 987 infodir=$ac_optarg ;; 988 989 -libdir | --libdir | --libdi | --libd) 990 ac_prev=libdir ;; 991 -libdir=* | --libdir=* | --libdi=* | --libd=*) 992 libdir=$ac_optarg ;; 993 994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 995 | --libexe | --libex | --libe) 996 ac_prev=libexecdir ;; 997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 998 | --libexe=* | --libex=* | --libe=*) 999 libexecdir=$ac_optarg ;; 1000 1001 -localedir | --localedir | --localedi | --localed | --locale) 1002 ac_prev=localedir ;; 1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1004 localedir=$ac_optarg ;; 1005 1006 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1007 | --localstate | --localstat | --localsta | --localst | --locals) 1008 ac_prev=localstatedir ;; 1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1011 localstatedir=$ac_optarg ;; 1012 1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1014 ac_prev=mandir ;; 1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1016 mandir=$ac_optarg ;; 1017 1018 -nfp | --nfp | --nf) 1019 # Obsolete; use --without-fp. 1020 with_fp=no ;; 1021 1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1023 | --no-cr | --no-c | -n) 1024 no_create=yes ;; 1025 1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1028 no_recursion=yes ;; 1029 1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1032 | --oldin | --oldi | --old | --ol | --o) 1033 ac_prev=oldincludedir ;; 1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1037 oldincludedir=$ac_optarg ;; 1038 1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1040 ac_prev=prefix ;; 1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1042 prefix=$ac_optarg ;; 1043 1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1045 | --program-pre | --program-pr | --program-p) 1046 ac_prev=program_prefix ;; 1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1049 program_prefix=$ac_optarg ;; 1050 1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1052 | --program-suf | --program-su | --program-s) 1053 ac_prev=program_suffix ;; 1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1056 program_suffix=$ac_optarg ;; 1057 1058 -program-transform-name | --program-transform-name \ 1059 | --program-transform-nam | --program-transform-na \ 1060 | --program-transform-n | --program-transform- \ 1061 | --program-transform | --program-transfor \ 1062 | --program-transfo | --program-transf \ 1063 | --program-trans | --program-tran \ 1064 | --progr-tra | --program-tr | --program-t) 1065 ac_prev=program_transform_name ;; 1066 -program-transform-name=* | --program-transform-name=* \ 1067 | --program-transform-nam=* | --program-transform-na=* \ 1068 | --program-transform-n=* | --program-transform-=* \ 1069 | --program-transform=* | --program-transfor=* \ 1070 | --program-transfo=* | --program-transf=* \ 1071 | --program-trans=* | --program-tran=* \ 1072 | --progr-tra=* | --program-tr=* | --program-t=*) 1073 program_transform_name=$ac_optarg ;; 1074 1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1076 ac_prev=pdfdir ;; 1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1078 pdfdir=$ac_optarg ;; 1079 1080 -psdir | --psdir | --psdi | --psd | --ps) 1081 ac_prev=psdir ;; 1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1083 psdir=$ac_optarg ;; 1084 1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1086 | -silent | --silent | --silen | --sile | --sil) 1087 silent=yes ;; 1088 1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1090 ac_prev=sbindir ;; 1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1092 | --sbi=* | --sb=*) 1093 sbindir=$ac_optarg ;; 1094 1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1097 | --sharedst | --shareds | --shared | --share | --shar \ 1098 | --sha | --sh) 1099 ac_prev=sharedstatedir ;; 1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1103 | --sha=* | --sh=*) 1104 sharedstatedir=$ac_optarg ;; 1105 1106 -site | --site | --sit) 1107 ac_prev=site ;; 1108 -site=* | --site=* | --sit=*) 1109 site=$ac_optarg ;; 1110 1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1112 ac_prev=srcdir ;; 1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1114 srcdir=$ac_optarg ;; 1115 1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1117 | --syscon | --sysco | --sysc | --sys | --sy) 1118 ac_prev=sysconfdir ;; 1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1121 sysconfdir=$ac_optarg ;; 1122 1123 -target | --target | --targe | --targ | --tar | --ta | --t) 1124 ac_prev=target_alias ;; 1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1126 target_alias=$ac_optarg ;; 1127 1128 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1129 verbose=yes ;; 1130 1131 -version | --version | --versio | --versi | --vers | -V) 1132 ac_init_version=: ;; 1133 1134 -with-* | --with-*) 1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1138 { echo "$as_me: error: invalid package name: $ac_package" >&2 1139 { (exit 1); exit 1; }; } 1140 ac_package=`echo $ac_package| sed 's/-/_/g'` 1141 eval with_$ac_package=\$ac_optarg ;; 1142 1143 -without-* | --without-*) 1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1147 { echo "$as_me: error: invalid package name: $ac_package" >&2 1148 { (exit 1); exit 1; }; } 1149 ac_package=`echo $ac_package | sed 's/-/_/g'` 1150 eval with_$ac_package=no ;; 1151 1152 --x) 1153 # Obsolete; use --with-x. 1154 with_x=yes ;; 1155 1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1157 | --x-incl | --x-inc | --x-in | --x-i) 1158 ac_prev=x_includes ;; 1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1161 x_includes=$ac_optarg ;; 1162 1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1165 ac_prev=x_libraries ;; 1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1168 x_libraries=$ac_optarg ;; 1169 1170 -*) { echo "$as_me: error: unrecognized option: $ac_option 1171Try \`$0 --help' for more information." >&2 1172 { (exit 1); exit 1; }; } 1173 ;; 1174 1175 *=*) 1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1180 { (exit 1); exit 1; }; } 1181 eval $ac_envvar=\$ac_optarg 1182 export $ac_envvar ;; 1183 1184 *) 1185 # FIXME: should be removed in autoconf 3.0. 1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1190 ;; 1191 1192 esac 1193done 1194 1195if test -n "$ac_prev"; then 1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1197 { echo "$as_me: error: missing argument to $ac_option" >&2 1198 { (exit 1); exit 1; }; } 1199fi 1200 1201# Be sure to have absolute directory names. 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206do 1207 eval ac_val=\$$ac_var 1208 case $ac_val in 1209 [\\/$]* | ?:[\\/]* ) continue;; 1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1211 esac 1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1213 { (exit 1); exit 1; }; } 1214done 1215 1216# There might be people who depend on the old broken behavior: `$host' 1217# used to hold the argument of --host etc. 1218# FIXME: To remove some day. 1219build=$build_alias 1220host=$host_alias 1221target=$target_alias 1222 1223# FIXME: To remove some day. 1224if test "x$host_alias" != x; then 1225 if test "x$build_alias" = x; then 1226 cross_compiling=maybe 1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1228 If a cross compiler is detected then cross compile mode will be used." >&2 1229 elif test "x$build_alias" != "x$host_alias"; then 1230 cross_compiling=yes 1231 fi 1232fi 1233 1234ac_tool_prefix= 1235test -n "$host_alias" && ac_tool_prefix=$host_alias- 1236 1237test "$silent" = yes && exec 6>/dev/null 1238 1239 1240ac_pwd=`pwd` && test -n "$ac_pwd" && 1241ac_ls_di=`ls -di .` && 1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1243 { echo "$as_me: error: Working directory cannot be determined" >&2 1244 { (exit 1); exit 1; }; } 1245test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1246 { echo "$as_me: error: pwd does not report name of working directory" >&2 1247 { (exit 1); exit 1; }; } 1248 1249 1250# Find the source files, if location was not specified. 1251if test -z "$srcdir"; then 1252 ac_srcdir_defaulted=yes 1253 # Try the directory containing this script, then the parent directory. 1254 ac_confdir=`$as_dirname -- "$0" || 1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1256 X"$0" : 'X\(//\)[^/]' \| \ 1257 X"$0" : 'X\(//\)$' \| \ 1258 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1259echo X"$0" | 1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)[^/].*/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\).*/{ 1273 s//\1/ 1274 q 1275 } 1276 s/.*/./; q'` 1277 srcdir=$ac_confdir 1278 if test ! -r "$srcdir/$ac_unique_file"; then 1279 srcdir=.. 1280 fi 1281else 1282 ac_srcdir_defaulted=no 1283fi 1284if test ! -r "$srcdir/$ac_unique_file"; then 1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1287 { (exit 1); exit 1; }; } 1288fi 1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1290ac_abs_confdir=`( 1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1292 { (exit 1); exit 1; }; } 1293 pwd)` 1294# When building in place, set srcdir=. 1295if test "$ac_abs_confdir" = "$ac_pwd"; then 1296 srcdir=. 1297fi 1298# Remove unnecessary trailing slashes from srcdir. 1299# Double slashes in file names in object file debugging info 1300# mess up M-x gdb in Emacs. 1301case $srcdir in 1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1303esac 1304for ac_var in $ac_precious_vars; do 1305 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_env_${ac_var}_value=\$${ac_var} 1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1309done 1310 1311# 1312# Report the --help message. 1313# 1314if test "$ac_init_help" = "long"; then 1315 # Omit some internal or obsolete options to make the list less imposing. 1316 # This message is too long to be a string in the A/UX 3.1 sh. 1317 cat <<_ACEOF 1318\`configure' configures LLVM 3.2svn to adapt to many kinds of systems. 1319 1320Usage: $0 [OPTION]... [VAR=VALUE]... 1321 1322To assign environment variables (e.g., CC, CFLAGS...), specify them as 1323VAR=VALUE. See below for descriptions of some of the useful variables. 1324 1325Defaults for the options are specified in brackets. 1326 1327Configuration: 1328 -h, --help display this help and exit 1329 --help=short display options specific to this package 1330 --help=recursive display the short help of all the included packages 1331 -V, --version display version information and exit 1332 -q, --quiet, --silent do not print \`checking...' messages 1333 --cache-file=FILE cache test results in FILE [disabled] 1334 -C, --config-cache alias for \`--cache-file=config.cache' 1335 -n, --no-create do not create output files 1336 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1337 1338Installation directories: 1339 --prefix=PREFIX install architecture-independent files in PREFIX 1340 [$ac_default_prefix] 1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1342 [PREFIX] 1343 1344By default, \`make install' will install all the files in 1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1346an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1347for instance \`--prefix=\$HOME'. 1348 1349For better control, use the options below. 1350 1351Fine tuning of the installation directories: 1352 --bindir=DIR user executables [EPREFIX/bin] 1353 --sbindir=DIR system admin executables [EPREFIX/sbin] 1354 --libexecdir=DIR program executables [EPREFIX/libexec] 1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1358 --libdir=DIR object code libraries [EPREFIX/lib] 1359 --includedir=DIR C header files [PREFIX/include] 1360 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1363 --infodir=DIR info documentation [DATAROOTDIR/info] 1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1365 --mandir=DIR man documentation [DATAROOTDIR/man] 1366 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1367 --htmldir=DIR html documentation [DOCDIR] 1368 --dvidir=DIR dvi documentation [DOCDIR] 1369 --pdfdir=DIR pdf documentation [DOCDIR] 1370 --psdir=DIR ps documentation [DOCDIR] 1371_ACEOF 1372 1373 cat <<\_ACEOF 1374 1375System types: 1376 --build=BUILD configure for building on BUILD [guessed] 1377 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1378 --target=TARGET configure for building compilers for TARGET [HOST] 1379_ACEOF 1380fi 1381 1382if test -n "$ac_init_help"; then 1383 case $ac_init_help in 1384 short | recursive ) echo "Configuration of LLVM 3.2svn:";; 1385 esac 1386 cat <<\_ACEOF 1387 1388Optional Features: 1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1391 --enable-polly Use polly if available (default is YES) 1392 --enable-libcpp Use libc++ if available (default is NO) 1393 --enable-optimized Compile with optimizations enabled (default is NO) 1394 --enable-profiling Compile with profiling enabled (default is NO) 1395 --enable-assertions Compile with assertion checks enabled (default is 1396 YES) 1397 --enable-expensive-checks 1398 Compile with expensive debug checks enabled (default 1399 is NO) 1400 --enable-debug-runtime Build runtime libs with debug symbols (default is 1401 NO) 1402 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1403 optimization is on and YES if it's off) 1404 --enable-jit Enable Just In Time Compiling (default is YES) 1405 --enable-docs Build documents (default is YES) 1406 --enable-doxygen Build doxygen documentation (default is NO) 1407 --enable-threads Use threads if available (default is YES) 1408 --enable-pthreads Use pthreads if available (default is YES) 1409 --enable-pic Build LLVM with Position Independent Code (default 1410 is YES) 1411 --enable-shared Build a shared library and link tools against it 1412 (default is NO) 1413 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1414 Win32 DLL (default is NO) 1415 --enable-timestamps Enable embedding timestamp information in build 1416 (default is YES) 1417 --enable-targets Build specific host targets: all or 1418 target1,target2,... Valid targets are: host, x86, 1419 x86_64, sparc, powerpc, arm, mips, spu, hexagon, 1420 xcore, msp430, nvptx, and cpp (default=all) 1421 --enable-bindings Build specific language bindings: 1422 all,auto,none,{binding-name} (default=auto) 1423 --enable-libffi Check for the presence of libffi (default is NO) 1424 --enable-ltdl-install install libltdl 1425 1426Optional Packages: 1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1429 --with-optimize-option Select the compiler options to use for optimized 1430 builds 1431 --with-extra-options Specify additional options to compile LLVM with 1432 --with-extra-ld-options Specify additional options to link LLVM with 1433 --with-ocaml-libdir Specify install location for ocaml bindings (default 1434 is stdlib) 1435 --with-clang-srcdir Directory to the out-of-tree Clang source 1436 --with-clang-resource-dir 1437 Relative directory from the Clang binary for 1438 resource files 1439 --with-c-include-dirs Colon separated list of directories clang will 1440 search for headers 1441 --with-gcc-toolchain Directory where gcc is installed. 1442 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1443 --with-binutils-include Specify path to binutils/include/ containing 1444 plugin-api.h file for gold plugin. 1445 --with-bug-report-url Specify the URL where bug reports should be 1446 submitted (default=http://llvm.org/bugs/) 1447 --with-internal-prefix Installation directory for internal files 1448 --with-udis86=<path> Use udis86 external x86 disassembler library 1449 --with-oprofile=<prefix> 1450 Tell OProfile >= 0.9.4 how to symbolize JIT output 1451 --with-intel-jitevents=<vtune-amplifier-dir> 1452 Specify location of run-time support library for 1453 Intel JIT API 1454 (default=/opt/intel/vtune_amplifier_xe_2011) 1455 1456Some influential environment variables: 1457 CC C compiler command 1458 CFLAGS C compiler flags 1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1460 nonstandard directory <lib dir> 1461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1462 you have headers in a nonstandard directory <include dir> 1463 CXX C++ compiler command 1464 CXXFLAGS C++ compiler flags 1465 CPP C preprocessor 1466 1467Use these variables to override the choices made by `configure' or to help 1468it to find libraries and programs with nonstandard names/locations. 1469 1470Report bugs to <http://llvm.org/bugs/>. 1471_ACEOF 1472ac_status=$? 1473fi 1474 1475if test "$ac_init_help" = "recursive"; then 1476 # If there are subdirs, report their specific --help. 1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1478 test -d "$ac_dir" || continue 1479 ac_builddir=. 1480 1481case "$ac_dir" in 1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483*) 1484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1485 # A ".." for each directory in $ac_dir_suffix. 1486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1487 case $ac_top_builddir_sub in 1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1490 esac ;; 1491esac 1492ac_abs_top_builddir=$ac_pwd 1493ac_abs_builddir=$ac_pwd$ac_dir_suffix 1494# for backward compatibility: 1495ac_top_builddir=$ac_top_build_prefix 1496 1497case $srcdir in 1498 .) # We are building in place. 1499 ac_srcdir=. 1500 ac_top_srcdir=$ac_top_builddir_sub 1501 ac_abs_top_srcdir=$ac_pwd ;; 1502 [\\/]* | ?:[\\/]* ) # Absolute name. 1503 ac_srcdir=$srcdir$ac_dir_suffix; 1504 ac_top_srcdir=$srcdir 1505 ac_abs_top_srcdir=$srcdir ;; 1506 *) # Relative name. 1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1508 ac_top_srcdir=$ac_top_build_prefix$srcdir 1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1510esac 1511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1512 1513 cd "$ac_dir" || { ac_status=$?; continue; } 1514 # Check for guested configure. 1515 if test -f "$ac_srcdir/configure.gnu"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1518 elif test -f "$ac_srcdir/configure"; then 1519 echo && 1520 $SHELL "$ac_srcdir/configure" --help=recursive 1521 else 1522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1523 fi || ac_status=$? 1524 cd "$ac_pwd" || { ac_status=$?; break; } 1525 done 1526fi 1527 1528test -n "$ac_init_help" && exit $ac_status 1529if $ac_init_version; then 1530 cat <<\_ACEOF 1531LLVM configure 3.2svn 1532generated by GNU Autoconf 2.60 1533 1534Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1536This configure script is free software; the Free Software Foundation 1537gives unlimited permission to copy, distribute and modify it. 1538 1539Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. 1540_ACEOF 1541 exit 1542fi 1543cat >config.log <<_ACEOF 1544This file contains any messages produced by compilers while 1545running configure, to aid debugging if configure makes a mistake. 1546 1547It was created by LLVM $as_me 3.2svn, which was 1548generated by GNU Autoconf 2.60. Invocation command line was 1549 1550 $ $0 $@ 1551 1552_ACEOF 1553exec 5>>config.log 1554{ 1555cat <<_ASUNAME 1556## --------- ## 1557## Platform. ## 1558## --------- ## 1559 1560hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1561uname -m = `(uname -m) 2>/dev/null || echo unknown` 1562uname -r = `(uname -r) 2>/dev/null || echo unknown` 1563uname -s = `(uname -s) 2>/dev/null || echo unknown` 1564uname -v = `(uname -v) 2>/dev/null || echo unknown` 1565 1566/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1567/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1568 1569/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1570/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1571/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1572/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1573/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1574/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1575/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1576 1577_ASUNAME 1578 1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1580for as_dir in $PATH 1581do 1582 IFS=$as_save_IFS 1583 test -z "$as_dir" && as_dir=. 1584 echo "PATH: $as_dir" 1585done 1586IFS=$as_save_IFS 1587 1588} >&5 1589 1590cat >&5 <<_ACEOF 1591 1592 1593## ----------- ## 1594## Core tests. ## 1595## ----------- ## 1596 1597_ACEOF 1598 1599 1600# Keep a trace of the command line. 1601# Strip out --no-create and --no-recursion so they do not pile up. 1602# Strip out --silent because we don't want to record it for future runs. 1603# Also quote any args containing shell meta-characters. 1604# Make two passes to allow for proper duplicate-argument suppression. 1605ac_configure_args= 1606ac_configure_args0= 1607ac_configure_args1= 1608ac_must_keep_next=false 1609for ac_pass in 1 2 1610do 1611 for ac_arg 1612 do 1613 case $ac_arg in 1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1616 | -silent | --silent | --silen | --sile | --sil) 1617 continue ;; 1618 *\'*) 1619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1620 esac 1621 case $ac_pass in 1622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1623 2) 1624 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1625 if test $ac_must_keep_next = true; then 1626 ac_must_keep_next=false # Got value, back to normal. 1627 else 1628 case $ac_arg in 1629 *=* | --config-cache | -C | -disable-* | --disable-* \ 1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1632 | -with-* | --with-* | -without-* | --without-* | --x) 1633 case "$ac_configure_args0 " in 1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1635 esac 1636 ;; 1637 -* ) ac_must_keep_next=true ;; 1638 esac 1639 fi 1640 ac_configure_args="$ac_configure_args '$ac_arg'" 1641 ;; 1642 esac 1643 done 1644done 1645$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1646$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1647 1648# When interrupted or exit'd, cleanup temporary files, and complete 1649# config.log. We remove comments because anyway the quotes in there 1650# would cause problems or look ugly. 1651# WARNING: Use '\'' to represent an apostrophe within the trap. 1652# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1653trap 'exit_status=$? 1654 # Save into config.log some information that might help in debugging. 1655 { 1656 echo 1657 1658 cat <<\_ASBOX 1659## ---------------- ## 1660## Cache variables. ## 1661## ---------------- ## 1662_ASBOX 1663 echo 1664 # The following way of writing the cache mishandles newlines in values, 1665( 1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1667 eval ac_val=\$$ac_var 1668 case $ac_val in #( 1669 *${as_nl}*) 1670 case $ac_var in #( 1671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1672echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1673 esac 1674 case $ac_var in #( 1675 _ | IFS | as_nl) ;; #( 1676 *) $as_unset $ac_var ;; 1677 esac ;; 1678 esac 1679 done 1680 (set) 2>&1 | 1681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1682 *${as_nl}ac_space=\ *) 1683 sed -n \ 1684 "s/'\''/'\''\\\\'\'''\''/g; 1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1686 ;; #( 1687 *) 1688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1689 ;; 1690 esac | 1691 sort 1692) 1693 echo 1694 1695 cat <<\_ASBOX 1696## ----------------- ## 1697## Output variables. ## 1698## ----------------- ## 1699_ASBOX 1700 echo 1701 for ac_var in $ac_subst_vars 1702 do 1703 eval ac_val=\$$ac_var 1704 case $ac_val in 1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1706 esac 1707 echo "$ac_var='\''$ac_val'\''" 1708 done | sort 1709 echo 1710 1711 if test -n "$ac_subst_files"; then 1712 cat <<\_ASBOX 1713## ------------------- ## 1714## File substitutions. ## 1715## ------------------- ## 1716_ASBOX 1717 echo 1718 for ac_var in $ac_subst_files 1719 do 1720 eval ac_val=\$$ac_var 1721 case $ac_val in 1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1723 esac 1724 echo "$ac_var='\''$ac_val'\''" 1725 done | sort 1726 echo 1727 fi 1728 1729 if test -s confdefs.h; then 1730 cat <<\_ASBOX 1731## ----------- ## 1732## confdefs.h. ## 1733## ----------- ## 1734_ASBOX 1735 echo 1736 cat confdefs.h 1737 echo 1738 fi 1739 test "$ac_signal" != 0 && 1740 echo "$as_me: caught signal $ac_signal" 1741 echo "$as_me: exit $exit_status" 1742 } >&5 1743 rm -f core *.core core.conftest.* && 1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1745 exit $exit_status 1746' 0 1747for ac_signal in 1 2 13 15; do 1748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1749done 1750ac_signal=0 1751 1752# confdefs.h avoids OS command line length limits that DEFS can exceed. 1753rm -f -r conftest* confdefs.h 1754 1755# Predefined preprocessor variables. 1756 1757cat >>confdefs.h <<_ACEOF 1758#define PACKAGE_NAME "$PACKAGE_NAME" 1759_ACEOF 1760 1761 1762cat >>confdefs.h <<_ACEOF 1763#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1764_ACEOF 1765 1766 1767cat >>confdefs.h <<_ACEOF 1768#define PACKAGE_VERSION "$PACKAGE_VERSION" 1769_ACEOF 1770 1771 1772cat >>confdefs.h <<_ACEOF 1773#define PACKAGE_STRING "$PACKAGE_STRING" 1774_ACEOF 1775 1776 1777cat >>confdefs.h <<_ACEOF 1778#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1779_ACEOF 1780 1781 1782# Let the site file select an alternate cache file if it wants to. 1783# Prefer explicitly selected file to automatically selected ones. 1784if test -n "$CONFIG_SITE"; then 1785 set x "$CONFIG_SITE" 1786elif test "x$prefix" != xNONE; then 1787 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1788else 1789 set x "$ac_default_prefix/share/config.site" \ 1790 "$ac_default_prefix/etc/config.site" 1791fi 1792shift 1793for ac_site_file 1794do 1795 if test -r "$ac_site_file"; then 1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1797echo "$as_me: loading site script $ac_site_file" >&6;} 1798 sed 's/^/| /' "$ac_site_file" >&5 1799 . "$ac_site_file" 1800 fi 1801done 1802 1803if test -r "$cache_file"; then 1804 # Some versions of bash will fail to source /dev/null (special 1805 # files actually), so we avoid doing that. 1806 if test -f "$cache_file"; then 1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1808echo "$as_me: loading cache $cache_file" >&6;} 1809 case $cache_file in 1810 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1811 *) . "./$cache_file";; 1812 esac 1813 fi 1814else 1815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1816echo "$as_me: creating cache $cache_file" >&6;} 1817 >$cache_file 1818fi 1819 1820# Check that the precious variables saved in the cache have kept the same 1821# value. 1822ac_cache_corrupted=false 1823for ac_var in $ac_precious_vars; do 1824 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1825 eval ac_new_set=\$ac_env_${ac_var}_set 1826 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1827 eval ac_new_val=\$ac_env_${ac_var}_value 1828 case $ac_old_set,$ac_new_set in 1829 set,) 1830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1831echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1832 ac_cache_corrupted=: ;; 1833 ,set) 1834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1835echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1836 ac_cache_corrupted=: ;; 1837 ,);; 1838 *) 1839 if test "x$ac_old_val" != "x$ac_new_val"; then 1840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1841echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1843echo "$as_me: former value: $ac_old_val" >&2;} 1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1845echo "$as_me: current value: $ac_new_val" >&2;} 1846 ac_cache_corrupted=: 1847 fi;; 1848 esac 1849 # Pass precious variables to config.status. 1850 if test "$ac_new_set" = set; then 1851 case $ac_new_val in 1852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1853 *) ac_arg=$ac_var=$ac_new_val ;; 1854 esac 1855 case " $ac_configure_args " in 1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1858 esac 1859 fi 1860done 1861if $ac_cache_corrupted; then 1862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1863echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1865echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1866 { (exit 1); exit 1; }; } 1867fi 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893ac_ext=c 1894ac_cpp='$CPP $CPPFLAGS' 1895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1897ac_compiler_gnu=$ac_cv_c_compiler_gnu 1898 1899 1900 1901cat >>confdefs.h <<\_ACEOF 1902#define LLVM_VERSION_MAJOR 3 1903_ACEOF 1904 1905 1906cat >>confdefs.h <<\_ACEOF 1907#define LLVM_VERSION_MINOR 2 1908_ACEOF 1909 1910 1911LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign." 1912 1913 1914 1915 1916 1917 1918 1919ac_aux_dir= 1920for ac_dir in autoconf "$srcdir"/autoconf; do 1921 if test -f "$ac_dir/install-sh"; then 1922 ac_aux_dir=$ac_dir 1923 ac_install_sh="$ac_aux_dir/install-sh -c" 1924 break 1925 elif test -f "$ac_dir/install.sh"; then 1926 ac_aux_dir=$ac_dir 1927 ac_install_sh="$ac_aux_dir/install.sh -c" 1928 break 1929 elif test -f "$ac_dir/shtool"; then 1930 ac_aux_dir=$ac_dir 1931 ac_install_sh="$ac_aux_dir/shtool install -c" 1932 break 1933 fi 1934done 1935if test -z "$ac_aux_dir"; then 1936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1937echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1938 { (exit 1); exit 1; }; } 1939fi 1940 1941# These three variables are undocumented and unsupported, 1942# and are intended to be withdrawn in a future Autoconf release. 1943# They can cause serious problems if a builder's source tree is in a directory 1944# whose full name contains unusual characters. 1945ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1946ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1947ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1948 1949 1950 1951if test ${srcdir} != "." ; then 1952 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1953 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1954echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1955 { (exit 1); exit 1; }; } 1956 fi 1957fi 1958 1959ac_ext=c 1960ac_cpp='$CPP $CPPFLAGS' 1961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1963ac_compiler_gnu=$ac_cv_c_compiler_gnu 1964if test -n "$ac_tool_prefix"; then 1965 for ac_prog in clang llvm-gcc gcc 1966 do 1967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1968set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1969{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1971if test "${ac_cv_prog_CC+set}" = set; then 1972 echo $ECHO_N "(cached) $ECHO_C" >&6 1973else 1974 if test -n "$CC"; then 1975 ac_cv_prog_CC="$CC" # Let the user override the test. 1976else 1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1978for as_dir in $PATH 1979do 1980 IFS=$as_save_IFS 1981 test -z "$as_dir" && as_dir=. 1982 for ac_exec_ext in '' $ac_executable_extensions; do 1983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 1984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1986 break 2 1987 fi 1988done 1989done 1990IFS=$as_save_IFS 1991 1992fi 1993fi 1994CC=$ac_cv_prog_CC 1995if test -n "$CC"; then 1996 { echo "$as_me:$LINENO: result: $CC" >&5 1997echo "${ECHO_T}$CC" >&6; } 1998else 1999 { echo "$as_me:$LINENO: result: no" >&5 2000echo "${ECHO_T}no" >&6; } 2001fi 2002 2003 2004 test -n "$CC" && break 2005 done 2006fi 2007if test -z "$CC"; then 2008 ac_ct_CC=$CC 2009 for ac_prog in clang llvm-gcc gcc 2010do 2011 # Extract the first word of "$ac_prog", so it can be a program name with args. 2012set dummy $ac_prog; ac_word=$2 2013{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2016 echo $ECHO_N "(cached) $ECHO_C" >&6 2017else 2018 if test -n "$ac_ct_CC"; then 2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2020else 2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2022for as_dir in $PATH 2023do 2024 IFS=$as_save_IFS 2025 test -z "$as_dir" && as_dir=. 2026 for ac_exec_ext in '' $ac_executable_extensions; do 2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2028 ac_cv_prog_ac_ct_CC="$ac_prog" 2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2030 break 2 2031 fi 2032done 2033done 2034IFS=$as_save_IFS 2035 2036fi 2037fi 2038ac_ct_CC=$ac_cv_prog_ac_ct_CC 2039if test -n "$ac_ct_CC"; then 2040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2041echo "${ECHO_T}$ac_ct_CC" >&6; } 2042else 2043 { echo "$as_me:$LINENO: result: no" >&5 2044echo "${ECHO_T}no" >&6; } 2045fi 2046 2047 2048 test -n "$ac_ct_CC" && break 2049done 2050 2051 if test "x$ac_ct_CC" = x; then 2052 CC="" 2053 else 2054 case $cross_compiling:$ac_tool_warned in 2055yes:) 2056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2057whose name does not start with the host triplet. If you think this 2058configuration is useful to you, please write to autoconf@gnu.org." >&5 2059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2060whose name does not start with the host triplet. If you think this 2061configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2062ac_tool_warned=yes ;; 2063esac 2064 CC=$ac_ct_CC 2065 fi 2066fi 2067 2068 2069test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2070See \`config.log' for more details." >&5 2071echo "$as_me: error: no acceptable C compiler found in \$PATH 2072See \`config.log' for more details." >&2;} 2073 { (exit 1); exit 1; }; } 2074 2075# Provide some information about the compiler. 2076echo "$as_me:$LINENO: checking for C compiler version" >&5 2077ac_compiler=`set X $ac_compile; echo $2` 2078{ (ac_try="$ac_compiler --version >&5" 2079case "(($ac_try" in 2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2081 *) ac_try_echo=$ac_try;; 2082esac 2083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2084 (eval "$ac_compiler --version >&5") 2>&5 2085 ac_status=$? 2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2087 (exit $ac_status); } 2088{ (ac_try="$ac_compiler -v >&5" 2089case "(($ac_try" in 2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2091 *) ac_try_echo=$ac_try;; 2092esac 2093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2094 (eval "$ac_compiler -v >&5") 2>&5 2095 ac_status=$? 2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 (exit $ac_status); } 2098{ (ac_try="$ac_compiler -V >&5" 2099case "(($ac_try" in 2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2101 *) ac_try_echo=$ac_try;; 2102esac 2103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2104 (eval "$ac_compiler -V >&5") 2>&5 2105 ac_status=$? 2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2107 (exit $ac_status); } 2108 2109cat >conftest.$ac_ext <<_ACEOF 2110/* confdefs.h. */ 2111_ACEOF 2112cat confdefs.h >>conftest.$ac_ext 2113cat >>conftest.$ac_ext <<_ACEOF 2114/* end confdefs.h. */ 2115 2116int 2117main () 2118{ 2119 2120 ; 2121 return 0; 2122} 2123_ACEOF 2124ac_clean_files_save=$ac_clean_files 2125ac_clean_files="$ac_clean_files a.out a.exe b.out" 2126# Try to create an executable without -o first, disregard a.out. 2127# It will help us diagnose broken compilers, and finding out an intuition 2128# of exeext. 2129{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2130echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2131ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2132# 2133# List of possible output files, starting from the most likely. 2134# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2135# only as a last resort. b.out is created by i960 compilers. 2136ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2137# 2138# The IRIX 6 linker writes into existing files which may not be 2139# executable, retaining their permissions. Remove them first so a 2140# subsequent execution test works. 2141ac_rmfiles= 2142for ac_file in $ac_files 2143do 2144 case $ac_file in 2145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2146 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2147 esac 2148done 2149rm -f $ac_rmfiles 2150 2151if { (ac_try="$ac_link_default" 2152case "(($ac_try" in 2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2154 *) ac_try_echo=$ac_try;; 2155esac 2156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2157 (eval "$ac_link_default") 2>&5 2158 ac_status=$? 2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2160 (exit $ac_status); }; then 2161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2163# in a Makefile. We should not override ac_cv_exeext if it was cached, 2164# so that the user can short-circuit this test for compilers unknown to 2165# Autoconf. 2166for ac_file in $ac_files 2167do 2168 test -f "$ac_file" || continue 2169 case $ac_file in 2170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2171 ;; 2172 [ab].out ) 2173 # We found the default executable, but exeext='' is most 2174 # certainly right. 2175 break;; 2176 *.* ) 2177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2178 then :; else 2179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2180 fi 2181 # We set ac_cv_exeext here because the later test for it is not 2182 # safe: cross compilers may not add the suffix if given an `-o' 2183 # argument, so we may need to know it at that point already. 2184 # Even if this section looks crufty: it has the advantage of 2185 # actually working. 2186 break;; 2187 * ) 2188 break;; 2189 esac 2190done 2191test "$ac_cv_exeext" = no && ac_cv_exeext= 2192 2193else 2194 echo "$as_me: failed program was:" >&5 2195sed 's/^/| /' conftest.$ac_ext >&5 2196 2197{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2198See \`config.log' for more details." >&5 2199echo "$as_me: error: C compiler cannot create executables 2200See \`config.log' for more details." >&2;} 2201 { (exit 77); exit 77; }; } 2202fi 2203 2204ac_exeext=$ac_cv_exeext 2205{ echo "$as_me:$LINENO: result: $ac_file" >&5 2206echo "${ECHO_T}$ac_file" >&6; } 2207 2208# Check that the compiler produces executables we can run. If not, either 2209# the compiler is broken, or we cross compile. 2210{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2211echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2212# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2213# If not cross compiling, check that we can run a simple program. 2214if test "$cross_compiling" != yes; then 2215 if { ac_try='./$ac_file' 2216 { (case "(($ac_try" in 2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2218 *) ac_try_echo=$ac_try;; 2219esac 2220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2221 (eval "$ac_try") 2>&5 2222 ac_status=$? 2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2224 (exit $ac_status); }; }; then 2225 cross_compiling=no 2226 else 2227 if test "$cross_compiling" = maybe; then 2228 cross_compiling=yes 2229 else 2230 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2231If you meant to cross compile, use \`--host'. 2232See \`config.log' for more details." >&5 2233echo "$as_me: error: cannot run C compiled programs. 2234If you meant to cross compile, use \`--host'. 2235See \`config.log' for more details." >&2;} 2236 { (exit 1); exit 1; }; } 2237 fi 2238 fi 2239fi 2240{ echo "$as_me:$LINENO: result: yes" >&5 2241echo "${ECHO_T}yes" >&6; } 2242 2243rm -f a.out a.exe conftest$ac_cv_exeext b.out 2244ac_clean_files=$ac_clean_files_save 2245# Check that the compiler produces executables we can run. If not, either 2246# the compiler is broken, or we cross compile. 2247{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2248echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2249{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2250echo "${ECHO_T}$cross_compiling" >&6; } 2251 2252{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2253echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2254if { (ac_try="$ac_link" 2255case "(($ac_try" in 2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2257 *) ac_try_echo=$ac_try;; 2258esac 2259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2260 (eval "$ac_link") 2>&5 2261 ac_status=$? 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2263 (exit $ac_status); }; then 2264 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2265# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2266# work properly (i.e., refer to `conftest.exe'), while it won't with 2267# `rm'. 2268for ac_file in conftest.exe conftest conftest.*; do 2269 test -f "$ac_file" || continue 2270 case $ac_file in 2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2273 break;; 2274 * ) break;; 2275 esac 2276done 2277else 2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2279See \`config.log' for more details." >&5 2280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2281See \`config.log' for more details." >&2;} 2282 { (exit 1); exit 1; }; } 2283fi 2284 2285rm -f conftest$ac_cv_exeext 2286{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2287echo "${ECHO_T}$ac_cv_exeext" >&6; } 2288 2289rm -f conftest.$ac_ext 2290EXEEXT=$ac_cv_exeext 2291ac_exeext=$EXEEXT 2292{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2294if test "${ac_cv_objext+set}" = set; then 2295 echo $ECHO_N "(cached) $ECHO_C" >&6 2296else 2297 cat >conftest.$ac_ext <<_ACEOF 2298/* confdefs.h. */ 2299_ACEOF 2300cat confdefs.h >>conftest.$ac_ext 2301cat >>conftest.$ac_ext <<_ACEOF 2302/* end confdefs.h. */ 2303 2304int 2305main () 2306{ 2307 2308 ; 2309 return 0; 2310} 2311_ACEOF 2312rm -f conftest.o conftest.obj 2313if { (ac_try="$ac_compile" 2314case "(($ac_try" in 2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2316 *) ac_try_echo=$ac_try;; 2317esac 2318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2319 (eval "$ac_compile") 2>&5 2320 ac_status=$? 2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2322 (exit $ac_status); }; then 2323 for ac_file in conftest.o conftest.obj conftest.*; do 2324 test -f "$ac_file" || continue; 2325 case $ac_file in 2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2328 break;; 2329 esac 2330done 2331else 2332 echo "$as_me: failed program was:" >&5 2333sed 's/^/| /' conftest.$ac_ext >&5 2334 2335{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2336See \`config.log' for more details." >&5 2337echo "$as_me: error: cannot compute suffix of object files: cannot compile 2338See \`config.log' for more details." >&2;} 2339 { (exit 1); exit 1; }; } 2340fi 2341 2342rm -f conftest.$ac_cv_objext conftest.$ac_ext 2343fi 2344{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2345echo "${ECHO_T}$ac_cv_objext" >&6; } 2346OBJEXT=$ac_cv_objext 2347ac_objext=$OBJEXT 2348{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2349echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2350if test "${ac_cv_c_compiler_gnu+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352else 2353 cat >conftest.$ac_ext <<_ACEOF 2354/* confdefs.h. */ 2355_ACEOF 2356cat confdefs.h >>conftest.$ac_ext 2357cat >>conftest.$ac_ext <<_ACEOF 2358/* end confdefs.h. */ 2359 2360int 2361main () 2362{ 2363#ifndef __GNUC__ 2364 choke me 2365#endif 2366 2367 ; 2368 return 0; 2369} 2370_ACEOF 2371rm -f conftest.$ac_objext 2372if { (ac_try="$ac_compile" 2373case "(($ac_try" in 2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2375 *) ac_try_echo=$ac_try;; 2376esac 2377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2378 (eval "$ac_compile") 2>conftest.er1 2379 ac_status=$? 2380 grep -v '^ *+' conftest.er1 >conftest.err 2381 rm -f conftest.er1 2382 cat conftest.err >&5 2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2384 (exit $ac_status); } && 2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2386 { (case "(($ac_try" in 2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2388 *) ac_try_echo=$ac_try;; 2389esac 2390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2391 (eval "$ac_try") 2>&5 2392 ac_status=$? 2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2394 (exit $ac_status); }; } && 2395 { ac_try='test -s conftest.$ac_objext' 2396 { (case "(($ac_try" in 2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2398 *) ac_try_echo=$ac_try;; 2399esac 2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2401 (eval "$ac_try") 2>&5 2402 ac_status=$? 2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2404 (exit $ac_status); }; }; then 2405 ac_compiler_gnu=yes 2406else 2407 echo "$as_me: failed program was:" >&5 2408sed 's/^/| /' conftest.$ac_ext >&5 2409 2410 ac_compiler_gnu=no 2411fi 2412 2413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2414ac_cv_c_compiler_gnu=$ac_compiler_gnu 2415 2416fi 2417{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2418echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2419GCC=`test $ac_compiler_gnu = yes && echo yes` 2420ac_test_CFLAGS=${CFLAGS+set} 2421ac_save_CFLAGS=$CFLAGS 2422{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2424if test "${ac_cv_prog_cc_g+set}" = set; then 2425 echo $ECHO_N "(cached) $ECHO_C" >&6 2426else 2427 ac_save_c_werror_flag=$ac_c_werror_flag 2428 ac_c_werror_flag=yes 2429 ac_cv_prog_cc_g=no 2430 CFLAGS="-g" 2431 cat >conftest.$ac_ext <<_ACEOF 2432/* confdefs.h. */ 2433_ACEOF 2434cat confdefs.h >>conftest.$ac_ext 2435cat >>conftest.$ac_ext <<_ACEOF 2436/* end confdefs.h. */ 2437 2438int 2439main () 2440{ 2441 2442 ; 2443 return 0; 2444} 2445_ACEOF 2446rm -f conftest.$ac_objext 2447if { (ac_try="$ac_compile" 2448case "(($ac_try" in 2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2450 *) ac_try_echo=$ac_try;; 2451esac 2452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2453 (eval "$ac_compile") 2>conftest.er1 2454 ac_status=$? 2455 grep -v '^ *+' conftest.er1 >conftest.err 2456 rm -f conftest.er1 2457 cat conftest.err >&5 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); } && 2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2461 { (case "(($ac_try" in 2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2463 *) ac_try_echo=$ac_try;; 2464esac 2465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2466 (eval "$ac_try") 2>&5 2467 ac_status=$? 2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2469 (exit $ac_status); }; } && 2470 { ac_try='test -s conftest.$ac_objext' 2471 { (case "(($ac_try" in 2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2473 *) ac_try_echo=$ac_try;; 2474esac 2475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2476 (eval "$ac_try") 2>&5 2477 ac_status=$? 2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2479 (exit $ac_status); }; }; then 2480 ac_cv_prog_cc_g=yes 2481else 2482 echo "$as_me: failed program was:" >&5 2483sed 's/^/| /' conftest.$ac_ext >&5 2484 2485 CFLAGS="" 2486 cat >conftest.$ac_ext <<_ACEOF 2487/* confdefs.h. */ 2488_ACEOF 2489cat confdefs.h >>conftest.$ac_ext 2490cat >>conftest.$ac_ext <<_ACEOF 2491/* end confdefs.h. */ 2492 2493int 2494main () 2495{ 2496 2497 ; 2498 return 0; 2499} 2500_ACEOF 2501rm -f conftest.$ac_objext 2502if { (ac_try="$ac_compile" 2503case "(($ac_try" in 2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2505 *) ac_try_echo=$ac_try;; 2506esac 2507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2508 (eval "$ac_compile") 2>conftest.er1 2509 ac_status=$? 2510 grep -v '^ *+' conftest.er1 >conftest.err 2511 rm -f conftest.er1 2512 cat conftest.err >&5 2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2514 (exit $ac_status); } && 2515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2516 { (case "(($ac_try" in 2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2518 *) ac_try_echo=$ac_try;; 2519esac 2520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2521 (eval "$ac_try") 2>&5 2522 ac_status=$? 2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2524 (exit $ac_status); }; } && 2525 { ac_try='test -s conftest.$ac_objext' 2526 { (case "(($ac_try" in 2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2528 *) ac_try_echo=$ac_try;; 2529esac 2530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2531 (eval "$ac_try") 2>&5 2532 ac_status=$? 2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2534 (exit $ac_status); }; }; then 2535 : 2536else 2537 echo "$as_me: failed program was:" >&5 2538sed 's/^/| /' conftest.$ac_ext >&5 2539 2540 ac_c_werror_flag=$ac_save_c_werror_flag 2541 CFLAGS="-g" 2542 cat >conftest.$ac_ext <<_ACEOF 2543/* confdefs.h. */ 2544_ACEOF 2545cat confdefs.h >>conftest.$ac_ext 2546cat >>conftest.$ac_ext <<_ACEOF 2547/* end confdefs.h. */ 2548 2549int 2550main () 2551{ 2552 2553 ; 2554 return 0; 2555} 2556_ACEOF 2557rm -f conftest.$ac_objext 2558if { (ac_try="$ac_compile" 2559case "(($ac_try" in 2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2561 *) ac_try_echo=$ac_try;; 2562esac 2563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2564 (eval "$ac_compile") 2>conftest.er1 2565 ac_status=$? 2566 grep -v '^ *+' conftest.er1 >conftest.err 2567 rm -f conftest.er1 2568 cat conftest.err >&5 2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2570 (exit $ac_status); } && 2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2572 { (case "(($ac_try" in 2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2574 *) ac_try_echo=$ac_try;; 2575esac 2576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2577 (eval "$ac_try") 2>&5 2578 ac_status=$? 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); }; } && 2581 { ac_try='test -s conftest.$ac_objext' 2582 { (case "(($ac_try" in 2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2584 *) ac_try_echo=$ac_try;; 2585esac 2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2587 (eval "$ac_try") 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; }; then 2591 ac_cv_prog_cc_g=yes 2592else 2593 echo "$as_me: failed program was:" >&5 2594sed 's/^/| /' conftest.$ac_ext >&5 2595 2596 2597fi 2598 2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2600fi 2601 2602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2603fi 2604 2605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2606 ac_c_werror_flag=$ac_save_c_werror_flag 2607fi 2608{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2609echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2610if test "$ac_test_CFLAGS" = set; then 2611 CFLAGS=$ac_save_CFLAGS 2612elif test $ac_cv_prog_cc_g = yes; then 2613 if test "$GCC" = yes; then 2614 CFLAGS="-g -O2" 2615 else 2616 CFLAGS="-g" 2617 fi 2618else 2619 if test "$GCC" = yes; then 2620 CFLAGS="-O2" 2621 else 2622 CFLAGS= 2623 fi 2624fi 2625{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2626echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2627if test "${ac_cv_prog_cc_c89+set}" = set; then 2628 echo $ECHO_N "(cached) $ECHO_C" >&6 2629else 2630 ac_cv_prog_cc_c89=no 2631ac_save_CC=$CC 2632cat >conftest.$ac_ext <<_ACEOF 2633/* confdefs.h. */ 2634_ACEOF 2635cat confdefs.h >>conftest.$ac_ext 2636cat >>conftest.$ac_ext <<_ACEOF 2637/* end confdefs.h. */ 2638#include <stdarg.h> 2639#include <stdio.h> 2640#include <sys/types.h> 2641#include <sys/stat.h> 2642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2643struct buf { int x; }; 2644FILE * (*rcsopen) (struct buf *, struct stat *, int); 2645static char *e (p, i) 2646 char **p; 2647 int i; 2648{ 2649 return p[i]; 2650} 2651static char *f (char * (*g) (char **, int), char **p, ...) 2652{ 2653 char *s; 2654 va_list v; 2655 va_start (v,p); 2656 s = g (p, va_arg (v,int)); 2657 va_end (v); 2658 return s; 2659} 2660 2661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2662 function prototypes and stuff, but not '\xHH' hex character constants. 2663 These don't provoke an error unfortunately, instead are silently treated 2664 as 'x'. The following induces an error, until -std is added to get 2665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2666 array size at least. It's necessary to write '\x00'==0 to get something 2667 that's true only with -std. */ 2668int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2669 2670/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2671 inside strings and character constants. */ 2672#define FOO(x) 'x' 2673int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2674 2675int test (int i, double x); 2676struct s1 {int (*f) (int a);}; 2677struct s2 {int (*f) (double a);}; 2678int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2679int argc; 2680char **argv; 2681int 2682main () 2683{ 2684return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2685 ; 2686 return 0; 2687} 2688_ACEOF 2689for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2691do 2692 CC="$ac_save_CC $ac_arg" 2693 rm -f conftest.$ac_objext 2694if { (ac_try="$ac_compile" 2695case "(($ac_try" in 2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2697 *) ac_try_echo=$ac_try;; 2698esac 2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2700 (eval "$ac_compile") 2>conftest.er1 2701 ac_status=$? 2702 grep -v '^ *+' conftest.er1 >conftest.err 2703 rm -f conftest.er1 2704 cat conftest.err >&5 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); } && 2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2708 { (case "(($ac_try" in 2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2710 *) ac_try_echo=$ac_try;; 2711esac 2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2713 (eval "$ac_try") 2>&5 2714 ac_status=$? 2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2716 (exit $ac_status); }; } && 2717 { ac_try='test -s conftest.$ac_objext' 2718 { (case "(($ac_try" in 2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2720 *) ac_try_echo=$ac_try;; 2721esac 2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2723 (eval "$ac_try") 2>&5 2724 ac_status=$? 2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2726 (exit $ac_status); }; }; then 2727 ac_cv_prog_cc_c89=$ac_arg 2728else 2729 echo "$as_me: failed program was:" >&5 2730sed 's/^/| /' conftest.$ac_ext >&5 2731 2732 2733fi 2734 2735rm -f core conftest.err conftest.$ac_objext 2736 test "x$ac_cv_prog_cc_c89" != "xno" && break 2737done 2738rm -f conftest.$ac_ext 2739CC=$ac_save_CC 2740 2741fi 2742# AC_CACHE_VAL 2743case "x$ac_cv_prog_cc_c89" in 2744 x) 2745 { echo "$as_me:$LINENO: result: none needed" >&5 2746echo "${ECHO_T}none needed" >&6; } ;; 2747 xno) 2748 { echo "$as_me:$LINENO: result: unsupported" >&5 2749echo "${ECHO_T}unsupported" >&6; } ;; 2750 *) 2751 CC="$CC $ac_cv_prog_cc_c89" 2752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2753echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2754esac 2755 2756 2757ac_ext=c 2758ac_cpp='$CPP $CPPFLAGS' 2759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2761ac_compiler_gnu=$ac_cv_c_compiler_gnu 2762 2763ac_ext=cpp 2764ac_cpp='$CXXCPP $CPPFLAGS' 2765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2768if test -z "$CXX"; then 2769 if test -n "$CCC"; then 2770 CXX=$CCC 2771 else 2772 if test -n "$ac_tool_prefix"; then 2773 for ac_prog in clang++ llvm-g++ g++ 2774 do 2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2776set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2777{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2779if test "${ac_cv_prog_CXX+set}" = set; then 2780 echo $ECHO_N "(cached) $ECHO_C" >&6 2781else 2782 if test -n "$CXX"; then 2783 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2784else 2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2786for as_dir in $PATH 2787do 2788 IFS=$as_save_IFS 2789 test -z "$as_dir" && as_dir=. 2790 for ac_exec_ext in '' $ac_executable_extensions; do 2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2792 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2794 break 2 2795 fi 2796done 2797done 2798IFS=$as_save_IFS 2799 2800fi 2801fi 2802CXX=$ac_cv_prog_CXX 2803if test -n "$CXX"; then 2804 { echo "$as_me:$LINENO: result: $CXX" >&5 2805echo "${ECHO_T}$CXX" >&6; } 2806else 2807 { echo "$as_me:$LINENO: result: no" >&5 2808echo "${ECHO_T}no" >&6; } 2809fi 2810 2811 2812 test -n "$CXX" && break 2813 done 2814fi 2815if test -z "$CXX"; then 2816 ac_ct_CXX=$CXX 2817 for ac_prog in clang++ llvm-g++ g++ 2818do 2819 # Extract the first word of "$ac_prog", so it can be a program name with args. 2820set dummy $ac_prog; ac_word=$2 2821{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2823if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2824 echo $ECHO_N "(cached) $ECHO_C" >&6 2825else 2826 if test -n "$ac_ct_CXX"; then 2827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2828else 2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2830for as_dir in $PATH 2831do 2832 IFS=$as_save_IFS 2833 test -z "$as_dir" && as_dir=. 2834 for ac_exec_ext in '' $ac_executable_extensions; do 2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2836 ac_cv_prog_ac_ct_CXX="$ac_prog" 2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840done 2841done 2842IFS=$as_save_IFS 2843 2844fi 2845fi 2846ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2847if test -n "$ac_ct_CXX"; then 2848 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2849echo "${ECHO_T}$ac_ct_CXX" >&6; } 2850else 2851 { echo "$as_me:$LINENO: result: no" >&5 2852echo "${ECHO_T}no" >&6; } 2853fi 2854 2855 2856 test -n "$ac_ct_CXX" && break 2857done 2858 2859 if test "x$ac_ct_CXX" = x; then 2860 CXX="g++" 2861 else 2862 case $cross_compiling:$ac_tool_warned in 2863yes:) 2864{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2865whose name does not start with the host triplet. If you think this 2866configuration is useful to you, please write to autoconf@gnu.org." >&5 2867echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2868whose name does not start with the host triplet. If you think this 2869configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2870ac_tool_warned=yes ;; 2871esac 2872 CXX=$ac_ct_CXX 2873 fi 2874fi 2875 2876 fi 2877fi 2878# Provide some information about the compiler. 2879echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2880ac_compiler=`set X $ac_compile; echo $2` 2881{ (ac_try="$ac_compiler --version >&5" 2882case "(($ac_try" in 2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2884 *) ac_try_echo=$ac_try;; 2885esac 2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2887 (eval "$ac_compiler --version >&5") 2>&5 2888 ac_status=$? 2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2890 (exit $ac_status); } 2891{ (ac_try="$ac_compiler -v >&5" 2892case "(($ac_try" in 2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2894 *) ac_try_echo=$ac_try;; 2895esac 2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2897 (eval "$ac_compiler -v >&5") 2>&5 2898 ac_status=$? 2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2900 (exit $ac_status); } 2901{ (ac_try="$ac_compiler -V >&5" 2902case "(($ac_try" in 2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2904 *) ac_try_echo=$ac_try;; 2905esac 2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2907 (eval "$ac_compiler -V >&5") 2>&5 2908 ac_status=$? 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); } 2911 2912{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2913echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2914if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2915 echo $ECHO_N "(cached) $ECHO_C" >&6 2916else 2917 cat >conftest.$ac_ext <<_ACEOF 2918/* confdefs.h. */ 2919_ACEOF 2920cat confdefs.h >>conftest.$ac_ext 2921cat >>conftest.$ac_ext <<_ACEOF 2922/* end confdefs.h. */ 2923 2924int 2925main () 2926{ 2927#ifndef __GNUC__ 2928 choke me 2929#endif 2930 2931 ; 2932 return 0; 2933} 2934_ACEOF 2935rm -f conftest.$ac_objext 2936if { (ac_try="$ac_compile" 2937case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940esac 2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2942 (eval "$ac_compile") 2>conftest.er1 2943 ac_status=$? 2944 grep -v '^ *+' conftest.er1 >conftest.err 2945 rm -f conftest.er1 2946 cat conftest.err >&5 2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2948 (exit $ac_status); } && 2949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2950 { (case "(($ac_try" in 2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2952 *) ac_try_echo=$ac_try;; 2953esac 2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2955 (eval "$ac_try") 2>&5 2956 ac_status=$? 2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2958 (exit $ac_status); }; } && 2959 { ac_try='test -s conftest.$ac_objext' 2960 { (case "(($ac_try" in 2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2962 *) ac_try_echo=$ac_try;; 2963esac 2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2965 (eval "$ac_try") 2>&5 2966 ac_status=$? 2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2968 (exit $ac_status); }; }; then 2969 ac_compiler_gnu=yes 2970else 2971 echo "$as_me: failed program was:" >&5 2972sed 's/^/| /' conftest.$ac_ext >&5 2973 2974 ac_compiler_gnu=no 2975fi 2976 2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2978ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2979 2980fi 2981{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2982echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2983GXX=`test $ac_compiler_gnu = yes && echo yes` 2984ac_test_CXXFLAGS=${CXXFLAGS+set} 2985ac_save_CXXFLAGS=$CXXFLAGS 2986{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2987echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2988if test "${ac_cv_prog_cxx_g+set}" = set; then 2989 echo $ECHO_N "(cached) $ECHO_C" >&6 2990else 2991 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2992 ac_cxx_werror_flag=yes 2993 ac_cv_prog_cxx_g=no 2994 CXXFLAGS="-g" 2995 cat >conftest.$ac_ext <<_ACEOF 2996/* confdefs.h. */ 2997_ACEOF 2998cat confdefs.h >>conftest.$ac_ext 2999cat >>conftest.$ac_ext <<_ACEOF 3000/* end confdefs.h. */ 3001 3002int 3003main () 3004{ 3005 3006 ; 3007 return 0; 3008} 3009_ACEOF 3010rm -f conftest.$ac_objext 3011if { (ac_try="$ac_compile" 3012case "(($ac_try" in 3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3014 *) ac_try_echo=$ac_try;; 3015esac 3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3017 (eval "$ac_compile") 2>conftest.er1 3018 ac_status=$? 3019 grep -v '^ *+' conftest.er1 >conftest.err 3020 rm -f conftest.er1 3021 cat conftest.err >&5 3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3023 (exit $ac_status); } && 3024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3025 { (case "(($ac_try" in 3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3027 *) ac_try_echo=$ac_try;; 3028esac 3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3030 (eval "$ac_try") 2>&5 3031 ac_status=$? 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); }; } && 3034 { ac_try='test -s conftest.$ac_objext' 3035 { (case "(($ac_try" in 3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3037 *) ac_try_echo=$ac_try;; 3038esac 3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3040 (eval "$ac_try") 2>&5 3041 ac_status=$? 3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); }; }; then 3044 ac_cv_prog_cxx_g=yes 3045else 3046 echo "$as_me: failed program was:" >&5 3047sed 's/^/| /' conftest.$ac_ext >&5 3048 3049 CXXFLAGS="" 3050 cat >conftest.$ac_ext <<_ACEOF 3051/* confdefs.h. */ 3052_ACEOF 3053cat confdefs.h >>conftest.$ac_ext 3054cat >>conftest.$ac_ext <<_ACEOF 3055/* end confdefs.h. */ 3056 3057int 3058main () 3059{ 3060 3061 ; 3062 return 0; 3063} 3064_ACEOF 3065rm -f conftest.$ac_objext 3066if { (ac_try="$ac_compile" 3067case "(($ac_try" in 3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3069 *) ac_try_echo=$ac_try;; 3070esac 3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3072 (eval "$ac_compile") 2>conftest.er1 3073 ac_status=$? 3074 grep -v '^ *+' conftest.er1 >conftest.err 3075 rm -f conftest.er1 3076 cat conftest.err >&5 3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3078 (exit $ac_status); } && 3079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3080 { (case "(($ac_try" in 3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082 *) ac_try_echo=$ac_try;; 3083esac 3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3085 (eval "$ac_try") 2>&5 3086 ac_status=$? 3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 (exit $ac_status); }; } && 3089 { ac_try='test -s conftest.$ac_objext' 3090 { (case "(($ac_try" in 3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3092 *) ac_try_echo=$ac_try;; 3093esac 3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3095 (eval "$ac_try") 2>&5 3096 ac_status=$? 3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); }; }; then 3099 : 3100else 3101 echo "$as_me: failed program was:" >&5 3102sed 's/^/| /' conftest.$ac_ext >&5 3103 3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3105 CXXFLAGS="-g" 3106 cat >conftest.$ac_ext <<_ACEOF 3107/* confdefs.h. */ 3108_ACEOF 3109cat confdefs.h >>conftest.$ac_ext 3110cat >>conftest.$ac_ext <<_ACEOF 3111/* end confdefs.h. */ 3112 3113int 3114main () 3115{ 3116 3117 ; 3118 return 0; 3119} 3120_ACEOF 3121rm -f conftest.$ac_objext 3122if { (ac_try="$ac_compile" 3123case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126esac 3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3128 (eval "$ac_compile") 2>conftest.er1 3129 ac_status=$? 3130 grep -v '^ *+' conftest.er1 >conftest.err 3131 rm -f conftest.er1 3132 cat conftest.err >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); } && 3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3136 { (case "(($ac_try" in 3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3138 *) ac_try_echo=$ac_try;; 3139esac 3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3141 (eval "$ac_try") 2>&5 3142 ac_status=$? 3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 (exit $ac_status); }; } && 3145 { ac_try='test -s conftest.$ac_objext' 3146 { (case "(($ac_try" in 3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3148 *) ac_try_echo=$ac_try;; 3149esac 3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3151 (eval "$ac_try") 2>&5 3152 ac_status=$? 3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3154 (exit $ac_status); }; }; then 3155 ac_cv_prog_cxx_g=yes 3156else 3157 echo "$as_me: failed program was:" >&5 3158sed 's/^/| /' conftest.$ac_ext >&5 3159 3160 3161fi 3162 3163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3164fi 3165 3166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3167fi 3168 3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3170 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3171fi 3172{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3173echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3174if test "$ac_test_CXXFLAGS" = set; then 3175 CXXFLAGS=$ac_save_CXXFLAGS 3176elif test $ac_cv_prog_cxx_g = yes; then 3177 if test "$GXX" = yes; then 3178 CXXFLAGS="-g -O2" 3179 else 3180 CXXFLAGS="-g" 3181 fi 3182else 3183 if test "$GXX" = yes; then 3184 CXXFLAGS="-O2" 3185 else 3186 CXXFLAGS= 3187 fi 3188fi 3189ac_ext=c 3190ac_cpp='$CPP $CPPFLAGS' 3191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3193ac_compiler_gnu=$ac_cv_c_compiler_gnu 3194 3195ac_ext=c 3196ac_cpp='$CPP $CPPFLAGS' 3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3199ac_compiler_gnu=$ac_cv_c_compiler_gnu 3200{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3201echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3202# On Suns, sometimes $CPP names a directory. 3203if test -n "$CPP" && test -d "$CPP"; then 3204 CPP= 3205fi 3206if test -z "$CPP"; then 3207 if test "${ac_cv_prog_CPP+set}" = set; then 3208 echo $ECHO_N "(cached) $ECHO_C" >&6 3209else 3210 # Double quotes because CPP needs to be expanded 3211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3212 do 3213 ac_preproc_ok=false 3214for ac_c_preproc_warn_flag in '' yes 3215do 3216 # Use a header file that comes with gcc, so configuring glibc 3217 # with a fresh cross-compiler works. 3218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3219 # <limits.h> exists even on freestanding compilers. 3220 # On the NeXT, cc -E runs the code through the compiler's parser, 3221 # not just through cpp. "Syntax error" is here to catch this case. 3222 cat >conftest.$ac_ext <<_ACEOF 3223/* confdefs.h. */ 3224_ACEOF 3225cat confdefs.h >>conftest.$ac_ext 3226cat >>conftest.$ac_ext <<_ACEOF 3227/* end confdefs.h. */ 3228#ifdef __STDC__ 3229# include <limits.h> 3230#else 3231# include <assert.h> 3232#endif 3233 Syntax error 3234_ACEOF 3235if { (ac_try="$ac_cpp conftest.$ac_ext" 3236case "(($ac_try" in 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3238 *) ac_try_echo=$ac_try;; 3239esac 3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3242 ac_status=$? 3243 grep -v '^ *+' conftest.er1 >conftest.err 3244 rm -f conftest.er1 3245 cat conftest.err >&5 3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3247 (exit $ac_status); } >/dev/null; then 3248 if test -s conftest.err; then 3249 ac_cpp_err=$ac_c_preproc_warn_flag 3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3251 else 3252 ac_cpp_err= 3253 fi 3254else 3255 ac_cpp_err=yes 3256fi 3257if test -z "$ac_cpp_err"; then 3258 : 3259else 3260 echo "$as_me: failed program was:" >&5 3261sed 's/^/| /' conftest.$ac_ext >&5 3262 3263 # Broken: fails on valid input. 3264continue 3265fi 3266 3267rm -f conftest.err conftest.$ac_ext 3268 3269 # OK, works on sane cases. Now check whether nonexistent headers 3270 # can be detected and how. 3271 cat >conftest.$ac_ext <<_ACEOF 3272/* confdefs.h. */ 3273_ACEOF 3274cat confdefs.h >>conftest.$ac_ext 3275cat >>conftest.$ac_ext <<_ACEOF 3276/* end confdefs.h. */ 3277#include <ac_nonexistent.h> 3278_ACEOF 3279if { (ac_try="$ac_cpp conftest.$ac_ext" 3280case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3286 ac_status=$? 3287 grep -v '^ *+' conftest.er1 >conftest.err 3288 rm -f conftest.er1 3289 cat conftest.err >&5 3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291 (exit $ac_status); } >/dev/null; then 3292 if test -s conftest.err; then 3293 ac_cpp_err=$ac_c_preproc_warn_flag 3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3295 else 3296 ac_cpp_err= 3297 fi 3298else 3299 ac_cpp_err=yes 3300fi 3301if test -z "$ac_cpp_err"; then 3302 # Broken: success on invalid input. 3303continue 3304else 3305 echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308 # Passes both tests. 3309ac_preproc_ok=: 3310break 3311fi 3312 3313rm -f conftest.err conftest.$ac_ext 3314 3315done 3316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3317rm -f conftest.err conftest.$ac_ext 3318if $ac_preproc_ok; then 3319 break 3320fi 3321 3322 done 3323 ac_cv_prog_CPP=$CPP 3324 3325fi 3326 CPP=$ac_cv_prog_CPP 3327else 3328 ac_cv_prog_CPP=$CPP 3329fi 3330{ echo "$as_me:$LINENO: result: $CPP" >&5 3331echo "${ECHO_T}$CPP" >&6; } 3332ac_preproc_ok=false 3333for ac_c_preproc_warn_flag in '' yes 3334do 3335 # Use a header file that comes with gcc, so configuring glibc 3336 # with a fresh cross-compiler works. 3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3338 # <limits.h> exists even on freestanding compilers. 3339 # On the NeXT, cc -E runs the code through the compiler's parser, 3340 # not just through cpp. "Syntax error" is here to catch this case. 3341 cat >conftest.$ac_ext <<_ACEOF 3342/* confdefs.h. */ 3343_ACEOF 3344cat confdefs.h >>conftest.$ac_ext 3345cat >>conftest.$ac_ext <<_ACEOF 3346/* end confdefs.h. */ 3347#ifdef __STDC__ 3348# include <limits.h> 3349#else 3350# include <assert.h> 3351#endif 3352 Syntax error 3353_ACEOF 3354if { (ac_try="$ac_cpp conftest.$ac_ext" 3355case "(($ac_try" in 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3357 *) ac_try_echo=$ac_try;; 3358esac 3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3361 ac_status=$? 3362 grep -v '^ *+' conftest.er1 >conftest.err 3363 rm -f conftest.er1 3364 cat conftest.err >&5 3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3366 (exit $ac_status); } >/dev/null; then 3367 if test -s conftest.err; then 3368 ac_cpp_err=$ac_c_preproc_warn_flag 3369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3370 else 3371 ac_cpp_err= 3372 fi 3373else 3374 ac_cpp_err=yes 3375fi 3376if test -z "$ac_cpp_err"; then 3377 : 3378else 3379 echo "$as_me: failed program was:" >&5 3380sed 's/^/| /' conftest.$ac_ext >&5 3381 3382 # Broken: fails on valid input. 3383continue 3384fi 3385 3386rm -f conftest.err conftest.$ac_ext 3387 3388 # OK, works on sane cases. Now check whether nonexistent headers 3389 # can be detected and how. 3390 cat >conftest.$ac_ext <<_ACEOF 3391/* confdefs.h. */ 3392_ACEOF 3393cat confdefs.h >>conftest.$ac_ext 3394cat >>conftest.$ac_ext <<_ACEOF 3395/* end confdefs.h. */ 3396#include <ac_nonexistent.h> 3397_ACEOF 3398if { (ac_try="$ac_cpp conftest.$ac_ext" 3399case "(($ac_try" in 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401 *) ac_try_echo=$ac_try;; 3402esac 3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3405 ac_status=$? 3406 grep -v '^ *+' conftest.er1 >conftest.err 3407 rm -f conftest.er1 3408 cat conftest.err >&5 3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3410 (exit $ac_status); } >/dev/null; then 3411 if test -s conftest.err; then 3412 ac_cpp_err=$ac_c_preproc_warn_flag 3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3414 else 3415 ac_cpp_err= 3416 fi 3417else 3418 ac_cpp_err=yes 3419fi 3420if test -z "$ac_cpp_err"; then 3421 # Broken: success on invalid input. 3422continue 3423else 3424 echo "$as_me: failed program was:" >&5 3425sed 's/^/| /' conftest.$ac_ext >&5 3426 3427 # Passes both tests. 3428ac_preproc_ok=: 3429break 3430fi 3431 3432rm -f conftest.err conftest.$ac_ext 3433 3434done 3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3436rm -f conftest.err conftest.$ac_ext 3437if $ac_preproc_ok; then 3438 : 3439else 3440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3441See \`config.log' for more details." >&5 3442echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3443See \`config.log' for more details." >&2;} 3444 { (exit 1); exit 1; }; } 3445fi 3446 3447ac_ext=c 3448ac_cpp='$CPP $CPPFLAGS' 3449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3451ac_compiler_gnu=$ac_cv_c_compiler_gnu 3452 3453 3454 3455 3456if test -d ${srcdir}/projects/llvm-gcc ; then 3457 subdirs="$subdirs projects/llvm-gcc" 3458 3459fi 3460 3461if test -d ${srcdir}/projects/test-suite ; then 3462 subdirs="$subdirs projects/test-suite" 3463 3464fi 3465 3466if test -d ${srcdir}/projects/llvm-test ; then 3467 subdirs="$subdirs projects/llvm-test" 3468 3469fi 3470 3471if test -d ${srcdir}/projects/poolalloc ; then 3472 subdirs="$subdirs projects/poolalloc" 3473 3474fi 3475 3476if test -d ${srcdir}/projects/llvm-poolalloc ; then 3477 subdirs="$subdirs projects/llvm-poolalloc" 3478 3479fi 3480 3481for i in `ls ${srcdir}/projects` 3482do 3483 if test -d ${srcdir}/projects/${i} ; then 3484 case ${i} in 3485 sample) subdirs="$subdirs projects/sample" 3486 ;; 3487 privbracket) subdirs="$subdirs projects/privbracket" 3488 ;; 3489 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3490 ;; 3491 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3492;; 3493 llvm-java) subdirs="$subdirs projects/llvm-java" 3494 ;; 3495 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3496 ;; 3497 safecode) subdirs="$subdirs projects/safecode" 3498 ;; 3499 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3500 ;; 3501 compiler-rt) ;; 3502 llvm-gcc) ;; 3503 test-suite) ;; 3504 llvm-test) ;; 3505 poolalloc) ;; 3506 llvm-poolalloc) ;; 3507 *) 3508 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3509echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3510 ;; 3511 esac 3512 fi 3513done 3514 3515# Check whether --enable-polly was given. 3516if test "${enable_polly+set}" = set; then 3517 enableval=$enable_polly; 3518else 3519 enableval=default 3520fi 3521 3522case "$enableval" in 3523 yes) ENABLE_POLLY=1 3524 ;; 3525 no) ENABLE_POLLY=0 3526 ;; 3527 default) ENABLE_POLLY=1 3528 ;; 3529 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3530echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3531 { (exit 1); exit 1; }; } ;; 3532esac 3533 3534 3535if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3536 LLVM_HAS_POLLY=1 3537 3538 subdirs="$subdirs tools/polly" 3539 3540fi 3541 3542 3543# Make sure we can run config.sub. 3544$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3545 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3546echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3547 { (exit 1); exit 1; }; } 3548 3549{ echo "$as_me:$LINENO: checking build system type" >&5 3550echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3551if test "${ac_cv_build+set}" = set; then 3552 echo $ECHO_N "(cached) $ECHO_C" >&6 3553else 3554 ac_build_alias=$build_alias 3555test "x$ac_build_alias" = x && 3556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3557test "x$ac_build_alias" = x && 3558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3559echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3560 { (exit 1); exit 1; }; } 3561ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3562 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3563echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3564 { (exit 1); exit 1; }; } 3565 3566fi 3567{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3568echo "${ECHO_T}$ac_cv_build" >&6; } 3569case $ac_cv_build in 3570*-*-*) ;; 3571*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3572echo "$as_me: error: invalid value of canonical build" >&2;} 3573 { (exit 1); exit 1; }; };; 3574esac 3575build=$ac_cv_build 3576ac_save_IFS=$IFS; IFS='-' 3577set x $ac_cv_build 3578shift 3579build_cpu=$1 3580build_vendor=$2 3581shift; shift 3582# Remember, the first character of IFS is used to create $*, 3583# except with old shells: 3584build_os=$* 3585IFS=$ac_save_IFS 3586case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3587 3588 3589{ echo "$as_me:$LINENO: checking host system type" >&5 3590echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3591if test "${ac_cv_host+set}" = set; then 3592 echo $ECHO_N "(cached) $ECHO_C" >&6 3593else 3594 if test "x$host_alias" = x; then 3595 ac_cv_host=$ac_cv_build 3596else 3597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3598 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3599echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3600 { (exit 1); exit 1; }; } 3601fi 3602 3603fi 3604{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3605echo "${ECHO_T}$ac_cv_host" >&6; } 3606case $ac_cv_host in 3607*-*-*) ;; 3608*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3609echo "$as_me: error: invalid value of canonical host" >&2;} 3610 { (exit 1); exit 1; }; };; 3611esac 3612host=$ac_cv_host 3613ac_save_IFS=$IFS; IFS='-' 3614set x $ac_cv_host 3615shift 3616host_cpu=$1 3617host_vendor=$2 3618shift; shift 3619# Remember, the first character of IFS is used to create $*, 3620# except with old shells: 3621host_os=$* 3622IFS=$ac_save_IFS 3623case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3624 3625 3626{ echo "$as_me:$LINENO: checking target system type" >&5 3627echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3628if test "${ac_cv_target+set}" = set; then 3629 echo $ECHO_N "(cached) $ECHO_C" >&6 3630else 3631 if test "x$target_alias" = x; then 3632 ac_cv_target=$ac_cv_host 3633else 3634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3635 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3636echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3637 { (exit 1); exit 1; }; } 3638fi 3639 3640fi 3641{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3642echo "${ECHO_T}$ac_cv_target" >&6; } 3643case $ac_cv_target in 3644*-*-*) ;; 3645*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3646echo "$as_me: error: invalid value of canonical target" >&2;} 3647 { (exit 1); exit 1; }; };; 3648esac 3649target=$ac_cv_target 3650ac_save_IFS=$IFS; IFS='-' 3651set x $ac_cv_target 3652shift 3653target_cpu=$1 3654target_vendor=$2 3655shift; shift 3656# Remember, the first character of IFS is used to create $*, 3657# except with old shells: 3658target_os=$* 3659IFS=$ac_save_IFS 3660case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3661 3662 3663# The aliases save the names the user supplied, while $host etc. 3664# will get canonicalized. 3665test -n "$target_alias" && 3666 test "$program_prefix$program_suffix$program_transform_name" = \ 3667 NONENONEs,x,x, && 3668 program_prefix=${target_alias}- 3669 3670{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3671echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3672if test "${llvm_cv_os_type+set}" = set; then 3673 echo $ECHO_N "(cached) $ECHO_C" >&6 3674else 3675 case $host in 3676 *-*-aix*) 3677 llvm_cv_link_all_option="-Wl,--whole-archive" 3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3679 llvm_cv_os_type="AIX" 3680 llvm_cv_platform_type="Unix" ;; 3681 *-*-irix*) 3682 llvm_cv_link_all_option="-Wl,--whole-archive" 3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3684 llvm_cv_os_type="IRIX" 3685 llvm_cv_platform_type="Unix" ;; 3686 *-*-cygwin*) 3687 llvm_cv_link_all_option="-Wl,--whole-archive" 3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3689 llvm_cv_os_type="Cygwin" 3690 llvm_cv_platform_type="Unix" ;; 3691 *-*-darwin*) 3692 llvm_cv_link_all_option="-Wl,-all_load" 3693 llvm_cv_no_link_all_option="-Wl,-noall_load" 3694 llvm_cv_os_type="Darwin" 3695 llvm_cv_platform_type="Unix" ;; 3696 *-*-minix*) 3697 llvm_cv_link_all_option="-Wl,-all_load" 3698 llvm_cv_no_link_all_option="-Wl,-noall_load" 3699 llvm_cv_os_type="Minix" 3700 llvm_cv_platform_type="Unix" ;; 3701 *-*-freebsd* | *-*-kfreebsd-gnu) 3702 llvm_cv_link_all_option="-Wl,--whole-archive" 3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3704 llvm_cv_os_type="FreeBSD" 3705 llvm_cv_platform_type="Unix" ;; 3706 *-*-openbsd*) 3707 llvm_cv_link_all_option="-Wl,--whole-archive" 3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3709 llvm_cv_os_type="OpenBSD" 3710 llvm_cv_platform_type="Unix" ;; 3711 *-*-netbsd*) 3712 llvm_cv_link_all_option="-Wl,--whole-archive" 3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3714 llvm_cv_os_type="NetBSD" 3715 llvm_cv_platform_type="Unix" ;; 3716 *-*-dragonfly*) 3717 llvm_cv_link_all_option="-Wl,--whole-archive" 3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3719 llvm_cv_os_type="DragonFly" 3720 llvm_cv_platform_type="Unix" ;; 3721 *-*-hpux*) 3722 llvm_cv_link_all_option="-Wl,--whole-archive" 3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3724 llvm_cv_os_type="HP-UX" 3725 llvm_cv_platform_type="Unix" ;; 3726 *-*-interix*) 3727 llvm_cv_link_all_option="-Wl,--whole-archive" 3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3729 llvm_cv_os_type="Interix" 3730 llvm_cv_platform_type="Unix" ;; 3731 *-*-linux*) 3732 llvm_cv_link_all_option="-Wl,--whole-archive" 3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3734 llvm_cv_os_type="Linux" 3735 llvm_cv_platform_type="Unix" ;; 3736 *-*-gnu*) 3737 llvm_cv_link_all_option="-Wl,--whole-archive" 3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3739 llvm_cv_os_type="GNU" 3740 llvm_cv_platform_type="Unix" ;; 3741 *-*-solaris*) 3742 llvm_cv_link_all_option="-Wl,-z,allextract" 3743 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3744 llvm_cv_os_type="SunOS" 3745 llvm_cv_platform_type="Unix" ;; 3746 *-*-auroraux*) 3747 llvm_cv_link_all_option="-Wl,-z,allextract" 3748 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3749 llvm_cv_os_type="AuroraUX" 3750 llvm_cv_platform_type="Unix" ;; 3751 *-*-win32*) 3752 llvm_cv_link_all_option="-Wl,--whole-archive" 3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3754 llvm_cv_os_type="Win32" 3755 llvm_cv_platform_type="Win32" ;; 3756 *-*-mingw*) 3757 llvm_cv_link_all_option="-Wl,--whole-archive" 3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3759 llvm_cv_os_type="MingW" 3760 llvm_cv_platform_type="Win32" ;; 3761 *-*-haiku*) 3762 llvm_cv_link_all_option="-Wl,--whole-archive" 3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3764 llvm_cv_os_type="Haiku" 3765 llvm_cv_platform_type="Unix" ;; 3766 *-unknown-eabi*) 3767 llvm_cv_link_all_option="-Wl,--whole-archive" 3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3769 llvm_cv_os_type="Freestanding" 3770 llvm_cv_platform_type="Unix" ;; 3771 *-unknown-elf*) 3772 llvm_cv_link_all_option="-Wl,--whole-archive" 3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3774 llvm_cv_os_type="Freestanding" 3775 llvm_cv_platform_type="Unix" ;; 3776 *) 3777 llvm_cv_link_all_option="" 3778 llvm_cv_no_link_all_option="" 3779 llvm_cv_os_type="Unknown" 3780 llvm_cv_platform_type="Unknown" ;; 3781esac 3782fi 3783{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3784echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3785 3786{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3787echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3788if test "${llvm_cv_target_os_type+set}" = set; then 3789 echo $ECHO_N "(cached) $ECHO_C" >&6 3790else 3791 case $target in 3792 *-*-aix*) 3793 llvm_cv_target_os_type="AIX" ;; 3794 *-*-irix*) 3795 llvm_cv_target_os_type="IRIX" ;; 3796 *-*-cygwin*) 3797 llvm_cv_target_os_type="Cygwin" ;; 3798 *-*-darwin*) 3799 llvm_cv_target_os_type="Darwin" ;; 3800 *-*-minix*) 3801 llvm_cv_target_os_type="Minix" ;; 3802 *-*-freebsd* | *-*-kfreebsd-gnu) 3803 llvm_cv_target_os_type="FreeBSD" ;; 3804 *-*-openbsd*) 3805 llvm_cv_target_os_type="OpenBSD" ;; 3806 *-*-netbsd*) 3807 llvm_cv_target_os_type="NetBSD" ;; 3808 *-*-dragonfly*) 3809 llvm_cv_target_os_type="DragonFly" ;; 3810 *-*-hpux*) 3811 llvm_cv_target_os_type="HP-UX" ;; 3812 *-*-interix*) 3813 llvm_cv_target_os_type="Interix" ;; 3814 *-*-linux*) 3815 llvm_cv_target_os_type="Linux" ;; 3816 *-*-gnu*) 3817 llvm_cv_target_os_type="GNU" ;; 3818 *-*-solaris*) 3819 llvm_cv_target_os_type="SunOS" ;; 3820 *-*-auroraux*) 3821 llvm_cv_target_os_type="AuroraUX" ;; 3822 *-*-win32*) 3823 llvm_cv_target_os_type="Win32" ;; 3824 *-*-mingw*) 3825 llvm_cv_target_os_type="MingW" ;; 3826 *-*-haiku*) 3827 llvm_cv_target_os_type="Haiku" ;; 3828 *-*-rtems*) 3829 llvm_cv_target_os_type="RTEMS" ;; 3830 *-*-nacl*) 3831 llvm_cv_target_os_type="NativeClient" ;; 3832 *-unknown-eabi*) 3833 llvm_cv_target_os_type="Freestanding" ;; 3834 *) 3835 llvm_cv_target_os_type="Unknown" ;; 3836esac 3837fi 3838{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3839echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3840 3841if test "$llvm_cv_os_type" = "Unknown" ; then 3842 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3843echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3844 { (exit 1); exit 1; }; } 3845fi 3846 3847OS=$llvm_cv_os_type 3848 3849HOST_OS=$llvm_cv_os_type 3850 3851TARGET_OS=$llvm_cv_target_os_type 3852 3853 3854LINKALL=$llvm_cv_link_all_option 3855 3856NOLINKALL=$llvm_cv_no_link_all_option 3857 3858 3859case $llvm_cv_platform_type in 3860 Unix) 3861 3862cat >>confdefs.h <<\_ACEOF 3863#define LLVM_ON_UNIX 1 3864_ACEOF 3865 3866 LLVM_ON_UNIX=1 3867 3868 LLVM_ON_WIN32=0 3869 3870 ;; 3871 Win32) 3872 3873cat >>confdefs.h <<\_ACEOF 3874#define LLVM_ON_WIN32 1 3875_ACEOF 3876 3877 LLVM_ON_UNIX=0 3878 3879 LLVM_ON_WIN32=1 3880 3881 ;; 3882esac 3883 3884{ echo "$as_me:$LINENO: checking target architecture" >&5 3885echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 3886if test "${llvm_cv_target_arch+set}" = set; then 3887 echo $ECHO_N "(cached) $ECHO_C" >&6 3888else 3889 case $target in 3890 i?86-*) llvm_cv_target_arch="x86" ;; 3891 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 3892 sparc*-*) llvm_cv_target_arch="Sparc" ;; 3893 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 3894 arm*-*) llvm_cv_target_arch="ARM" ;; 3895 mips-*) llvm_cv_target_arch="Mips" ;; 3896 mipsel-*) llvm_cv_target_arch="Mips" ;; 3897 xcore-*) llvm_cv_target_arch="XCore" ;; 3898 msp430-*) llvm_cv_target_arch="MSP430" ;; 3899 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 3900 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 3901 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 3902 *) llvm_cv_target_arch="Unknown" ;; 3903esac 3904fi 3905{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 3906echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 3907 3908if test "$llvm_cv_target_arch" = "Unknown" ; then 3909 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 3910echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 3911fi 3912 3913case "$llvm_cv_target_arch" in 3914 x86) LLVM_NATIVE_ARCH="X86" ;; 3915 x86_64) LLVM_NATIVE_ARCH="X86" ;; 3916 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 3917esac 3918 3919ARCH=$llvm_cv_target_arch 3920 3921 3922case $host in 3923 i?86-*) host_arch="x86" ;; 3924 amd64-* | x86_64-*) host_arch="x86_64" ;; 3925 sparc*-*) host_arch="Sparc" ;; 3926 powerpc*-*) host_arch="PowerPC" ;; 3927 arm*-*) host_arch="ARM" ;; 3928 mips-*) host_arch="Mips" ;; 3929 mipsel-*) host_arch="Mips" ;; 3930 xcore-*) host_arch="XCore" ;; 3931 msp430-*) host_arch="MSP430" ;; 3932 hexagon-*) host_arch="Hexagon" ;; 3933 mblaze-*) host_arch="MBlaze" ;; 3934 *) host_arch="Unknown" ;; 3935esac 3936 3937if test "$host_arch" = "Unknown" ; then 3938 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 3939echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 3940fi 3941 3942HOST_ARCH=$host_arch 3943 3944 3945 3946 3947{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3948echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3949if test "${ac_cv_path_GREP+set}" = set; then 3950 echo $ECHO_N "(cached) $ECHO_C" >&6 3951else 3952 # Extract the first word of "grep ggrep" to use in msg output 3953if test -z "$GREP"; then 3954set dummy grep ggrep; ac_prog_name=$2 3955if test "${ac_cv_path_GREP+set}" = set; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 ac_path_GREP_found=false 3959# Loop through the user's path and test for each of PROGNAME-LIST 3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3961for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3962do 3963 IFS=$as_save_IFS 3964 test -z "$as_dir" && as_dir=. 3965 for ac_prog in grep ggrep; do 3966 for ac_exec_ext in '' $ac_executable_extensions; do 3967 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3968 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3969 # Check for GNU ac_path_GREP and select it if it is found. 3970 # Check for GNU $ac_path_GREP 3971case `"$ac_path_GREP" --version 2>&1` in 3972*GNU*) 3973 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3974*) 3975 ac_count=0 3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3977 while : 3978 do 3979 cat "conftest.in" "conftest.in" >"conftest.tmp" 3980 mv "conftest.tmp" "conftest.in" 3981 cp "conftest.in" "conftest.nl" 3982 echo 'GREP' >> "conftest.nl" 3983 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3985 ac_count=`expr $ac_count + 1` 3986 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3987 # Best one so far, save it but keep looking for a better one 3988 ac_cv_path_GREP="$ac_path_GREP" 3989 ac_path_GREP_max=$ac_count 3990 fi 3991 # 10*(2^10) chars as input seems more than enough 3992 test $ac_count -gt 10 && break 3993 done 3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3995esac 3996 3997 3998 $ac_path_GREP_found && break 3 3999 done 4000done 4001 4002done 4003IFS=$as_save_IFS 4004 4005 4006fi 4007 4008GREP="$ac_cv_path_GREP" 4009if test -z "$GREP"; then 4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4011echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4012 { (exit 1); exit 1; }; } 4013fi 4014 4015else 4016 ac_cv_path_GREP=$GREP 4017fi 4018 4019 4020fi 4021{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4022echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4023 GREP="$ac_cv_path_GREP" 4024 4025 4026{ echo "$as_me:$LINENO: checking for egrep" >&5 4027echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4028if test "${ac_cv_path_EGREP+set}" = set; then 4029 echo $ECHO_N "(cached) $ECHO_C" >&6 4030else 4031 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4032 then ac_cv_path_EGREP="$GREP -E" 4033 else 4034 # Extract the first word of "egrep" to use in msg output 4035if test -z "$EGREP"; then 4036set dummy egrep; ac_prog_name=$2 4037if test "${ac_cv_path_EGREP+set}" = set; then 4038 echo $ECHO_N "(cached) $ECHO_C" >&6 4039else 4040 ac_path_EGREP_found=false 4041# Loop through the user's path and test for each of PROGNAME-LIST 4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4043for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4044do 4045 IFS=$as_save_IFS 4046 test -z "$as_dir" && as_dir=. 4047 for ac_prog in egrep; do 4048 for ac_exec_ext in '' $ac_executable_extensions; do 4049 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4050 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4051 # Check for GNU ac_path_EGREP and select it if it is found. 4052 # Check for GNU $ac_path_EGREP 4053case `"$ac_path_EGREP" --version 2>&1` in 4054*GNU*) 4055 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4056*) 4057 ac_count=0 4058 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4059 while : 4060 do 4061 cat "conftest.in" "conftest.in" >"conftest.tmp" 4062 mv "conftest.tmp" "conftest.in" 4063 cp "conftest.in" "conftest.nl" 4064 echo 'EGREP' >> "conftest.nl" 4065 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4067 ac_count=`expr $ac_count + 1` 4068 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4069 # Best one so far, save it but keep looking for a better one 4070 ac_cv_path_EGREP="$ac_path_EGREP" 4071 ac_path_EGREP_max=$ac_count 4072 fi 4073 # 10*(2^10) chars as input seems more than enough 4074 test $ac_count -gt 10 && break 4075 done 4076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4077esac 4078 4079 4080 $ac_path_EGREP_found && break 3 4081 done 4082done 4083 4084done 4085IFS=$as_save_IFS 4086 4087 4088fi 4089 4090EGREP="$ac_cv_path_EGREP" 4091if test -z "$EGREP"; then 4092 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4093echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4094 { (exit 1); exit 1; }; } 4095fi 4096 4097else 4098 ac_cv_path_EGREP=$EGREP 4099fi 4100 4101 4102 fi 4103fi 4104{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4105echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4106 EGREP="$ac_cv_path_EGREP" 4107 4108 4109{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4110echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4111if test "${ac_cv_header_stdc+set}" = set; then 4112 echo $ECHO_N "(cached) $ECHO_C" >&6 4113else 4114 cat >conftest.$ac_ext <<_ACEOF 4115/* confdefs.h. */ 4116_ACEOF 4117cat confdefs.h >>conftest.$ac_ext 4118cat >>conftest.$ac_ext <<_ACEOF 4119/* end confdefs.h. */ 4120#include <stdlib.h> 4121#include <stdarg.h> 4122#include <string.h> 4123#include <float.h> 4124 4125int 4126main () 4127{ 4128 4129 ; 4130 return 0; 4131} 4132_ACEOF 4133rm -f conftest.$ac_objext 4134if { (ac_try="$ac_compile" 4135case "(($ac_try" in 4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4137 *) ac_try_echo=$ac_try;; 4138esac 4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4140 (eval "$ac_compile") 2>conftest.er1 4141 ac_status=$? 4142 grep -v '^ *+' conftest.er1 >conftest.err 4143 rm -f conftest.er1 4144 cat conftest.err >&5 4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4146 (exit $ac_status); } && 4147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4148 { (case "(($ac_try" in 4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4150 *) ac_try_echo=$ac_try;; 4151esac 4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4153 (eval "$ac_try") 2>&5 4154 ac_status=$? 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); }; } && 4157 { ac_try='test -s conftest.$ac_objext' 4158 { (case "(($ac_try" in 4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4160 *) ac_try_echo=$ac_try;; 4161esac 4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4163 (eval "$ac_try") 2>&5 4164 ac_status=$? 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4166 (exit $ac_status); }; }; then 4167 ac_cv_header_stdc=yes 4168else 4169 echo "$as_me: failed program was:" >&5 4170sed 's/^/| /' conftest.$ac_ext >&5 4171 4172 ac_cv_header_stdc=no 4173fi 4174 4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4176 4177if test $ac_cv_header_stdc = yes; then 4178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4179 cat >conftest.$ac_ext <<_ACEOF 4180/* confdefs.h. */ 4181_ACEOF 4182cat confdefs.h >>conftest.$ac_ext 4183cat >>conftest.$ac_ext <<_ACEOF 4184/* end confdefs.h. */ 4185#include <string.h> 4186 4187_ACEOF 4188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4189 $EGREP "memchr" >/dev/null 2>&1; then 4190 : 4191else 4192 ac_cv_header_stdc=no 4193fi 4194rm -f conftest* 4195 4196fi 4197 4198if test $ac_cv_header_stdc = yes; then 4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4200 cat >conftest.$ac_ext <<_ACEOF 4201/* confdefs.h. */ 4202_ACEOF 4203cat confdefs.h >>conftest.$ac_ext 4204cat >>conftest.$ac_ext <<_ACEOF 4205/* end confdefs.h. */ 4206#include <stdlib.h> 4207 4208_ACEOF 4209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4210 $EGREP "free" >/dev/null 2>&1; then 4211 : 4212else 4213 ac_cv_header_stdc=no 4214fi 4215rm -f conftest* 4216 4217fi 4218 4219if test $ac_cv_header_stdc = yes; then 4220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4221 if test "$cross_compiling" = yes; then 4222 : 4223else 4224 cat >conftest.$ac_ext <<_ACEOF 4225/* confdefs.h. */ 4226_ACEOF 4227cat confdefs.h >>conftest.$ac_ext 4228cat >>conftest.$ac_ext <<_ACEOF 4229/* end confdefs.h. */ 4230#include <ctype.h> 4231#include <stdlib.h> 4232#if ((' ' & 0x0FF) == 0x020) 4233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4235#else 4236# define ISLOWER(c) \ 4237 (('a' <= (c) && (c) <= 'i') \ 4238 || ('j' <= (c) && (c) <= 'r') \ 4239 || ('s' <= (c) && (c) <= 'z')) 4240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4241#endif 4242 4243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4244int 4245main () 4246{ 4247 int i; 4248 for (i = 0; i < 256; i++) 4249 if (XOR (islower (i), ISLOWER (i)) 4250 || toupper (i) != TOUPPER (i)) 4251 return 2; 4252 return 0; 4253} 4254_ACEOF 4255rm -f conftest$ac_exeext 4256if { (ac_try="$ac_link" 4257case "(($ac_try" in 4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4259 *) ac_try_echo=$ac_try;; 4260esac 4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4262 (eval "$ac_link") 2>&5 4263 ac_status=$? 4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4266 { (case "(($ac_try" in 4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4268 *) ac_try_echo=$ac_try;; 4269esac 4270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4271 (eval "$ac_try") 2>&5 4272 ac_status=$? 4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4274 (exit $ac_status); }; }; then 4275 : 4276else 4277 echo "$as_me: program exited with status $ac_status" >&5 4278echo "$as_me: failed program was:" >&5 4279sed 's/^/| /' conftest.$ac_ext >&5 4280 4281( exit $ac_status ) 4282ac_cv_header_stdc=no 4283fi 4284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4285fi 4286 4287 4288fi 4289fi 4290{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4291echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4292if test $ac_cv_header_stdc = yes; then 4293 4294cat >>confdefs.h <<\_ACEOF 4295#define STDC_HEADERS 1 4296_ACEOF 4297 4298fi 4299 4300# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4311 inttypes.h stdint.h unistd.h 4312do 4313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4314{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4317 echo $ECHO_N "(cached) $ECHO_C" >&6 4318else 4319 cat >conftest.$ac_ext <<_ACEOF 4320/* confdefs.h. */ 4321_ACEOF 4322cat confdefs.h >>conftest.$ac_ext 4323cat >>conftest.$ac_ext <<_ACEOF 4324/* end confdefs.h. */ 4325$ac_includes_default 4326 4327#include <$ac_header> 4328_ACEOF 4329rm -f conftest.$ac_objext 4330if { (ac_try="$ac_compile" 4331case "(($ac_try" in 4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4333 *) ac_try_echo=$ac_try;; 4334esac 4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4336 (eval "$ac_compile") 2>conftest.er1 4337 ac_status=$? 4338 grep -v '^ *+' conftest.er1 >conftest.err 4339 rm -f conftest.er1 4340 cat conftest.err >&5 4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4342 (exit $ac_status); } && 4343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4344 { (case "(($ac_try" in 4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4346 *) ac_try_echo=$ac_try;; 4347esac 4348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4349 (eval "$ac_try") 2>&5 4350 ac_status=$? 4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4352 (exit $ac_status); }; } && 4353 { ac_try='test -s conftest.$ac_objext' 4354 { (case "(($ac_try" in 4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4356 *) ac_try_echo=$ac_try;; 4357esac 4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4359 (eval "$ac_try") 2>&5 4360 ac_status=$? 4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 (exit $ac_status); }; }; then 4363 eval "$as_ac_Header=yes" 4364else 4365 echo "$as_me: failed program was:" >&5 4366sed 's/^/| /' conftest.$ac_ext >&5 4367 4368 eval "$as_ac_Header=no" 4369fi 4370 4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4372fi 4373ac_res=`eval echo '${'$as_ac_Header'}'` 4374 { echo "$as_me:$LINENO: result: $ac_res" >&5 4375echo "${ECHO_T}$ac_res" >&6; } 4376if test `eval echo '${'$as_ac_Header'}'` = yes; then 4377 cat >>confdefs.h <<_ACEOF 4378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4379_ACEOF 4380 4381fi 4382 4383done 4384 4385 4386{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4387echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4388if test "${ac_cv_c_bigendian+set}" = set; then 4389 echo $ECHO_N "(cached) $ECHO_C" >&6 4390else 4391 # See if sys/param.h defines the BYTE_ORDER macro. 4392cat >conftest.$ac_ext <<_ACEOF 4393/* confdefs.h. */ 4394_ACEOF 4395cat confdefs.h >>conftest.$ac_ext 4396cat >>conftest.$ac_ext <<_ACEOF 4397/* end confdefs.h. */ 4398#include <sys/types.h> 4399#include <sys/param.h> 4400 4401int 4402main () 4403{ 4404#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4405 bogus endian macros 4406#endif 4407 4408 ; 4409 return 0; 4410} 4411_ACEOF 4412rm -f conftest.$ac_objext 4413if { (ac_try="$ac_compile" 4414case "(($ac_try" in 4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4416 *) ac_try_echo=$ac_try;; 4417esac 4418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4419 (eval "$ac_compile") 2>conftest.er1 4420 ac_status=$? 4421 grep -v '^ *+' conftest.er1 >conftest.err 4422 rm -f conftest.er1 4423 cat conftest.err >&5 4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4425 (exit $ac_status); } && 4426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4427 { (case "(($ac_try" in 4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4429 *) ac_try_echo=$ac_try;; 4430esac 4431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4432 (eval "$ac_try") 2>&5 4433 ac_status=$? 4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4435 (exit $ac_status); }; } && 4436 { ac_try='test -s conftest.$ac_objext' 4437 { (case "(($ac_try" in 4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4439 *) ac_try_echo=$ac_try;; 4440esac 4441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4442 (eval "$ac_try") 2>&5 4443 ac_status=$? 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445 (exit $ac_status); }; }; then 4446 # It does; now see whether it defined to BIG_ENDIAN or not. 4447cat >conftest.$ac_ext <<_ACEOF 4448/* confdefs.h. */ 4449_ACEOF 4450cat confdefs.h >>conftest.$ac_ext 4451cat >>conftest.$ac_ext <<_ACEOF 4452/* end confdefs.h. */ 4453#include <sys/types.h> 4454#include <sys/param.h> 4455 4456int 4457main () 4458{ 4459#if BYTE_ORDER != BIG_ENDIAN 4460 not big endian 4461#endif 4462 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467rm -f conftest.$ac_objext 4468if { (ac_try="$ac_compile" 4469case "(($ac_try" in 4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4471 *) ac_try_echo=$ac_try;; 4472esac 4473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4474 (eval "$ac_compile") 2>conftest.er1 4475 ac_status=$? 4476 grep -v '^ *+' conftest.er1 >conftest.err 4477 rm -f conftest.er1 4478 cat conftest.err >&5 4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 (exit $ac_status); } && 4481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4482 { (case "(($ac_try" in 4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4484 *) ac_try_echo=$ac_try;; 4485esac 4486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4487 (eval "$ac_try") 2>&5 4488 ac_status=$? 4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4490 (exit $ac_status); }; } && 4491 { ac_try='test -s conftest.$ac_objext' 4492 { (case "(($ac_try" in 4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4494 *) ac_try_echo=$ac_try;; 4495esac 4496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4497 (eval "$ac_try") 2>&5 4498 ac_status=$? 4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4500 (exit $ac_status); }; }; then 4501 ac_cv_c_bigendian=yes 4502else 4503 echo "$as_me: failed program was:" >&5 4504sed 's/^/| /' conftest.$ac_ext >&5 4505 4506 ac_cv_c_bigendian=no 4507fi 4508 4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4510else 4511 echo "$as_me: failed program was:" >&5 4512sed 's/^/| /' conftest.$ac_ext >&5 4513 4514 # It does not; compile a test program. 4515if test "$cross_compiling" = yes; then 4516 # try to guess the endianness by grepping values into an object file 4517 ac_cv_c_bigendian=unknown 4518 cat >conftest.$ac_ext <<_ACEOF 4519/* confdefs.h. */ 4520_ACEOF 4521cat confdefs.h >>conftest.$ac_ext 4522cat >>conftest.$ac_ext <<_ACEOF 4523/* end confdefs.h. */ 4524short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4525short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4526void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4527short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4528short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4529void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4530int 4531main () 4532{ 4533 _ascii (); _ebcdic (); 4534 ; 4535 return 0; 4536} 4537_ACEOF 4538rm -f conftest.$ac_objext 4539if { (ac_try="$ac_compile" 4540case "(($ac_try" in 4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4542 *) ac_try_echo=$ac_try;; 4543esac 4544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4545 (eval "$ac_compile") 2>conftest.er1 4546 ac_status=$? 4547 grep -v '^ *+' conftest.er1 >conftest.err 4548 rm -f conftest.er1 4549 cat conftest.err >&5 4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4551 (exit $ac_status); } && 4552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4553 { (case "(($ac_try" in 4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4555 *) ac_try_echo=$ac_try;; 4556esac 4557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4558 (eval "$ac_try") 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); }; } && 4562 { ac_try='test -s conftest.$ac_objext' 4563 { (case "(($ac_try" in 4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4565 *) ac_try_echo=$ac_try;; 4566esac 4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4568 (eval "$ac_try") 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); }; }; then 4572 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4573 ac_cv_c_bigendian=yes 4574fi 4575if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4576 if test "$ac_cv_c_bigendian" = unknown; then 4577 ac_cv_c_bigendian=no 4578 else 4579 # finding both strings is unlikely to happen, but who knows? 4580 ac_cv_c_bigendian=unknown 4581 fi 4582fi 4583else 4584 echo "$as_me: failed program was:" >&5 4585sed 's/^/| /' conftest.$ac_ext >&5 4586 4587 4588fi 4589 4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4591else 4592 cat >conftest.$ac_ext <<_ACEOF 4593/* confdefs.h. */ 4594_ACEOF 4595cat confdefs.h >>conftest.$ac_ext 4596cat >>conftest.$ac_ext <<_ACEOF 4597/* end confdefs.h. */ 4598$ac_includes_default 4599int 4600main () 4601{ 4602 4603 /* Are we little or big endian? From Harbison&Steele. */ 4604 union 4605 { 4606 long int l; 4607 char c[sizeof (long int)]; 4608 } u; 4609 u.l = 1; 4610 return u.c[sizeof (long int) - 1] == 1; 4611 4612 ; 4613 return 0; 4614} 4615_ACEOF 4616rm -f conftest$ac_exeext 4617if { (ac_try="$ac_link" 4618case "(($ac_try" in 4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4620 *) ac_try_echo=$ac_try;; 4621esac 4622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4623 (eval "$ac_link") 2>&5 4624 ac_status=$? 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4627 { (case "(($ac_try" in 4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4629 *) ac_try_echo=$ac_try;; 4630esac 4631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4632 (eval "$ac_try") 2>&5 4633 ac_status=$? 4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4635 (exit $ac_status); }; }; then 4636 ac_cv_c_bigendian=no 4637else 4638 echo "$as_me: program exited with status $ac_status" >&5 4639echo "$as_me: failed program was:" >&5 4640sed 's/^/| /' conftest.$ac_ext >&5 4641 4642( exit $ac_status ) 4643ac_cv_c_bigendian=yes 4644fi 4645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4646fi 4647 4648 4649fi 4650 4651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4652fi 4653{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4654echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4655case $ac_cv_c_bigendian in 4656 yes) 4657 ENDIAN=big 4658 ;; 4659 no) 4660 ENDIAN=little 4661 ;; 4662 *) 4663 { { echo "$as_me:$LINENO: error: unknown endianness 4664presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4665echo "$as_me: error: unknown endianness 4666presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4667 { (exit 1); exit 1; }; } ;; 4668esac 4669 4670 4671if test "$cross_compiling" = yes; then 4672 LLVM_CROSS_COMPILING=1 4673 4674 4675{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4676echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4677if test "${ac_cv_build_exeext+set}" = set; then 4678 echo $ECHO_N "(cached) $ECHO_C" >&6 4679else 4680 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4681 ac_cv_build_exeext=.exe 4682else 4683 ac_build_prefix=${build_alias}- 4684 4685 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4686set dummy ${ac_build_prefix}gcc; ac_word=$2 4687{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4689if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4690 echo $ECHO_N "(cached) $ECHO_C" >&6 4691else 4692 if test -n "$BUILD_CC"; then 4693 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4694else 4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4696for as_dir in $PATH 4697do 4698 IFS=$as_save_IFS 4699 test -z "$as_dir" && as_dir=. 4700 for ac_exec_ext in '' $ac_executable_extensions; do 4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4702 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4704 break 2 4705 fi 4706done 4707done 4708IFS=$as_save_IFS 4709 4710fi 4711fi 4712BUILD_CC=$ac_cv_prog_BUILD_CC 4713if test -n "$BUILD_CC"; then 4714 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4715echo "${ECHO_T}$BUILD_CC" >&6; } 4716else 4717 { echo "$as_me:$LINENO: result: no" >&5 4718echo "${ECHO_T}no" >&6; } 4719fi 4720 4721 4722 if test -z "$BUILD_CC"; then 4723 # Extract the first word of "gcc", so it can be a program name with args. 4724set dummy gcc; ac_word=$2 4725{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4727if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4728 echo $ECHO_N "(cached) $ECHO_C" >&6 4729else 4730 if test -n "$BUILD_CC"; then 4731 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4732else 4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4734for as_dir in $PATH 4735do 4736 IFS=$as_save_IFS 4737 test -z "$as_dir" && as_dir=. 4738 for ac_exec_ext in '' $ac_executable_extensions; do 4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4740 ac_cv_prog_BUILD_CC="gcc" 4741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4742 break 2 4743 fi 4744done 4745done 4746IFS=$as_save_IFS 4747 4748fi 4749fi 4750BUILD_CC=$ac_cv_prog_BUILD_CC 4751if test -n "$BUILD_CC"; then 4752 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4753echo "${ECHO_T}$BUILD_CC" >&6; } 4754else 4755 { echo "$as_me:$LINENO: result: no" >&5 4756echo "${ECHO_T}no" >&6; } 4757fi 4758 4759 4760 if test -z "$BUILD_CC"; then 4761 # Extract the first word of "cc", so it can be a program name with args. 4762set dummy cc; ac_word=$2 4763{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4765if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4766 echo $ECHO_N "(cached) $ECHO_C" >&6 4767else 4768 if test -n "$BUILD_CC"; then 4769 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4770else 4771 ac_prog_rejected=no 4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4773for as_dir in $PATH 4774do 4775 IFS=$as_save_IFS 4776 test -z "$as_dir" && as_dir=. 4777 for ac_exec_ext in '' $ac_executable_extensions; do 4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4780 ac_prog_rejected=yes 4781 continue 4782 fi 4783 ac_cv_prog_BUILD_CC="cc" 4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4785 break 2 4786 fi 4787done 4788done 4789IFS=$as_save_IFS 4790 4791if test $ac_prog_rejected = yes; then 4792 # We found a bogon in the path, so make sure we never use it. 4793 set dummy $ac_cv_prog_BUILD_CC 4794 shift 4795 if test $# != 0; then 4796 # We chose a different compiler from the bogus one. 4797 # However, it has the same basename, so the bogon will be chosen 4798 # first if we set BUILD_CC to just the basename; use the full file name. 4799 shift 4800 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4801 fi 4802fi 4803fi 4804fi 4805BUILD_CC=$ac_cv_prog_BUILD_CC 4806if test -n "$BUILD_CC"; then 4807 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4808echo "${ECHO_T}$BUILD_CC" >&6; } 4809else 4810 { echo "$as_me:$LINENO: result: no" >&5 4811echo "${ECHO_T}no" >&6; } 4812fi 4813 4814 4815 fi 4816 fi 4817 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4818echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4819 { (exit 1); exit 1; }; } 4820 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4821 rm -f conftest* 4822 echo 'int main () { return 0; }' > conftest.$ac_ext 4823 ac_cv_build_exeext= 4824 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4825 (eval $ac_build_link) 2>&5 4826 ac_status=$? 4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4828 (exit $ac_status); }; then 4829 for file in conftest.*; do 4830 case $file in 4831 *.c | *.o | *.obj | *.dSYM) ;; 4832 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4833 esac 4834 done 4835 else 4836 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4837echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4838 { (exit 1); exit 1; }; } 4839 fi 4840 rm -f conftest* 4841 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4842fi 4843fi 4844 4845BUILD_EXEEXT="" 4846test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4847{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4848echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4849ac_build_exeext=$BUILD_EXEEXT 4850 4851 ac_build_prefix=${build_alias}- 4852 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4853set dummy ${ac_build_prefix}g++; ac_word=$2 4854{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4856if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4857 echo $ECHO_N "(cached) $ECHO_C" >&6 4858else 4859 if test -n "$BUILD_CXX"; then 4860 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4861else 4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4863for as_dir in $PATH 4864do 4865 IFS=$as_save_IFS 4866 test -z "$as_dir" && as_dir=. 4867 for ac_exec_ext in '' $ac_executable_extensions; do 4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4869 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4871 break 2 4872 fi 4873done 4874done 4875IFS=$as_save_IFS 4876 4877fi 4878fi 4879BUILD_CXX=$ac_cv_prog_BUILD_CXX 4880if test -n "$BUILD_CXX"; then 4881 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4882echo "${ECHO_T}$BUILD_CXX" >&6; } 4883else 4884 { echo "$as_me:$LINENO: result: no" >&5 4885echo "${ECHO_T}no" >&6; } 4886fi 4887 4888 4889 if test -z "$BUILD_CXX"; then 4890 # Extract the first word of "g++", so it can be a program name with args. 4891set dummy g++; ac_word=$2 4892{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4894if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4895 echo $ECHO_N "(cached) $ECHO_C" >&6 4896else 4897 if test -n "$BUILD_CXX"; then 4898 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4899else 4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4901for as_dir in $PATH 4902do 4903 IFS=$as_save_IFS 4904 test -z "$as_dir" && as_dir=. 4905 for ac_exec_ext in '' $ac_executable_extensions; do 4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4907 ac_cv_prog_BUILD_CXX="g++" 4908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4909 break 2 4910 fi 4911done 4912done 4913IFS=$as_save_IFS 4914 4915fi 4916fi 4917BUILD_CXX=$ac_cv_prog_BUILD_CXX 4918if test -n "$BUILD_CXX"; then 4919 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4920echo "${ECHO_T}$BUILD_CXX" >&6; } 4921else 4922 { echo "$as_me:$LINENO: result: no" >&5 4923echo "${ECHO_T}no" >&6; } 4924fi 4925 4926 4927 if test -z "$BUILD_CXX"; then 4928 # Extract the first word of "c++", so it can be a program name with args. 4929set dummy c++; ac_word=$2 4930{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4932if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4933 echo $ECHO_N "(cached) $ECHO_C" >&6 4934else 4935 if test -n "$BUILD_CXX"; then 4936 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4937else 4938 ac_prog_rejected=no 4939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4940for as_dir in $PATH 4941do 4942 IFS=$as_save_IFS 4943 test -z "$as_dir" && as_dir=. 4944 for ac_exec_ext in '' $ac_executable_extensions; do 4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4947 ac_prog_rejected=yes 4948 continue 4949 fi 4950 ac_cv_prog_BUILD_CXX="c++" 4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4952 break 2 4953 fi 4954done 4955done 4956IFS=$as_save_IFS 4957 4958if test $ac_prog_rejected = yes; then 4959 # We found a bogon in the path, so make sure we never use it. 4960 set dummy $ac_cv_prog_BUILD_CXX 4961 shift 4962 if test $# != 0; then 4963 # We chose a different compiler from the bogus one. 4964 # However, it has the same basename, so the bogon will be chosen 4965 # first if we set BUILD_CXX to just the basename; use the full file name. 4966 shift 4967 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4968 fi 4969fi 4970fi 4971fi 4972BUILD_CXX=$ac_cv_prog_BUILD_CXX 4973if test -n "$BUILD_CXX"; then 4974 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4975echo "${ECHO_T}$BUILD_CXX" >&6; } 4976else 4977 { echo "$as_me:$LINENO: result: no" >&5 4978echo "${ECHO_T}no" >&6; } 4979fi 4980 4981 4982 fi 4983 fi 4984else 4985 LLVM_CROSS_COMPILING=0 4986 4987fi 4988 4989if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4990 cvsbuild="yes" 4991 optimize="no" 4992 CVSBUILD=CVSBUILD=1 4993 4994else 4995 cvsbuild="no" 4996 optimize="yes" 4997fi 4998 4999 5000# Check whether --enable-libcpp was given. 5001if test "${enable_libcpp+set}" = set; then 5002 enableval=$enable_libcpp; 5003else 5004 enableval=default 5005fi 5006 5007case "$enableval" in 5008 yes) ENABLE_LIBCPP=1 5009 ;; 5010 no) ENABLE_LIBCPP=0 5011 ;; 5012 default) ENABLE_LIBCPP=0 5013;; 5014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 5015echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 5016 { (exit 1); exit 1; }; } ;; 5017esac 5018 5019# Check whether --enable-optimized was given. 5020if test "${enable_optimized+set}" = set; then 5021 enableval=$enable_optimized; 5022else 5023 enableval=$optimize 5024fi 5025 5026if test ${enableval} = "no" ; then 5027 ENABLE_OPTIMIZED= 5028 5029else 5030 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 5031 5032fi 5033 5034# Check whether --enable-profiling was given. 5035if test "${enable_profiling+set}" = set; then 5036 enableval=$enable_profiling; 5037else 5038 enableval="no" 5039fi 5040 5041if test ${enableval} = "no" ; then 5042 ENABLE_PROFILING= 5043 5044else 5045 ENABLE_PROFILING=ENABLE_PROFILING=1 5046 5047fi 5048 5049# Check whether --enable-assertions was given. 5050if test "${enable_assertions+set}" = set; then 5051 enableval=$enable_assertions; 5052else 5053 enableval="yes" 5054fi 5055 5056if test ${enableval} = "yes" ; then 5057 DISABLE_ASSERTIONS= 5058 5059else 5060 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5061 5062fi 5063 5064# Check whether --enable-expensive-checks was given. 5065if test "${enable_expensive_checks+set}" = set; then 5066 enableval=$enable_expensive_checks; 5067else 5068 enableval="no" 5069fi 5070 5071if test ${enableval} = "yes" ; then 5072 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5073 5074 EXPENSIVE_CHECKS=yes 5075 5076else 5077 ENABLE_EXPENSIVE_CHECKS= 5078 5079 EXPENSIVE_CHECKS=no 5080 5081fi 5082 5083# Check whether --enable-debug-runtime was given. 5084if test "${enable_debug_runtime+set}" = set; then 5085 enableval=$enable_debug_runtime; 5086else 5087 enableval=no 5088fi 5089 5090if test ${enableval} = "no" ; then 5091 DEBUG_RUNTIME= 5092 5093else 5094 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5095 5096fi 5097 5098# Check whether --enable-debug-symbols was given. 5099if test "${enable_debug_symbols+set}" = set; then 5100 enableval=$enable_debug_symbols; 5101else 5102 enableval=no 5103fi 5104 5105if test ${enableval} = "no" ; then 5106 DEBUG_SYMBOLS= 5107 5108else 5109 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5110 5111fi 5112 5113# Check whether --enable-jit was given. 5114if test "${enable_jit+set}" = set; then 5115 enableval=$enable_jit; 5116else 5117 enableval=default 5118fi 5119 5120if test ${enableval} = "no" 5121then 5122 JIT= 5123 5124else 5125 case "$llvm_cv_target_arch" in 5126 x86) TARGET_HAS_JIT=1 5127 ;; 5128 Sparc) TARGET_HAS_JIT=0 5129 ;; 5130 PowerPC) TARGET_HAS_JIT=1 5131 ;; 5132 x86_64) TARGET_HAS_JIT=1 5133 ;; 5134 ARM) TARGET_HAS_JIT=1 5135 ;; 5136 Mips) TARGET_HAS_JIT=1 5137 ;; 5138 XCore) TARGET_HAS_JIT=0 5139 ;; 5140 MSP430) TARGET_HAS_JIT=0 5141 ;; 5142 Hexagon) TARGET_HAS_JIT=0 5143 ;; 5144 MBlaze) TARGET_HAS_JIT=0 5145 ;; 5146 NVPTX) TARGET_HAS_JIT=0 5147 ;; 5148 *) TARGET_HAS_JIT=0 5149 ;; 5150 esac 5151fi 5152 5153# Check whether --enable-docs was given. 5154if test "${enable_docs+set}" = set; then 5155 enableval=$enable_docs; 5156else 5157 enableval=default 5158fi 5159 5160case "$enableval" in 5161 yes) ENABLE_DOCS=1 5162 ;; 5163 no) ENABLE_DOCS=0 5164 ;; 5165 default) ENABLE_DOCS=1 5166 ;; 5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5168echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5169 { (exit 1); exit 1; }; } ;; 5170esac 5171 5172# Check whether --enable-doxygen was given. 5173if test "${enable_doxygen+set}" = set; then 5174 enableval=$enable_doxygen; 5175else 5176 enableval=default 5177fi 5178 5179case "$enableval" in 5180 yes) ENABLE_DOXYGEN=1 5181 ;; 5182 no) ENABLE_DOXYGEN=0 5183 ;; 5184 default) ENABLE_DOXYGEN=0 5185 ;; 5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5187echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5188 { (exit 1); exit 1; }; } ;; 5189esac 5190 5191# Check whether --enable-threads was given. 5192if test "${enable_threads+set}" = set; then 5193 enableval=$enable_threads; 5194else 5195 enableval=default 5196fi 5197 5198case "$enableval" in 5199 yes) LLVM_ENABLE_THREADS=1 5200 ;; 5201 no) LLVM_ENABLE_THREADS=0 5202 ;; 5203 default) LLVM_ENABLE_THREADS=1 5204 ;; 5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5206echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5207 { (exit 1); exit 1; }; } ;; 5208esac 5209 5210cat >>confdefs.h <<_ACEOF 5211#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5212_ACEOF 5213 5214 5215# Check whether --enable-pthreads was given. 5216if test "${enable_pthreads+set}" = set; then 5217 enableval=$enable_pthreads; 5218else 5219 enableval=default 5220fi 5221 5222case "$enableval" in 5223 yes) ENABLE_PTHREADS=1 5224 ;; 5225 no) ENABLE_PTHREADS=0 5226 ;; 5227 default) ENABLE_PTHREADS=1 5228 ;; 5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5230echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5231 { (exit 1); exit 1; }; } ;; 5232esac 5233 5234# Check whether --enable-pic was given. 5235if test "${enable_pic+set}" = set; then 5236 enableval=$enable_pic; 5237else 5238 enableval=default 5239fi 5240 5241case "$enableval" in 5242 yes) ENABLE_PIC=1 5243 ;; 5244 no) ENABLE_PIC=0 5245 ;; 5246 default) ENABLE_PIC=1 5247 ;; 5248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5249echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5250 { (exit 1); exit 1; }; } ;; 5251esac 5252 5253cat >>confdefs.h <<_ACEOF 5254#define ENABLE_PIC $ENABLE_PIC 5255_ACEOF 5256 5257 5258# Check whether --enable-shared was given. 5259if test "${enable_shared+set}" = set; then 5260 enableval=$enable_shared; 5261else 5262 enableval=default 5263fi 5264 5265case "$enableval" in 5266 yes) ENABLE_SHARED=1 5267 ;; 5268 no) ENABLE_SHARED=0 5269 ;; 5270 default) ENABLE_SHARED=0 5271 ;; 5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5273echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5274 { (exit 1); exit 1; }; } ;; 5275esac 5276 5277# Check whether --enable-embed-stdcxx was given. 5278if test "${enable_embed_stdcxx+set}" = set; then 5279 enableval=$enable_embed_stdcxx; 5280else 5281 enableval=default 5282fi 5283 5284case "$enableval" in 5285 yes) ENABLE_EMBED_STDCXX=1 5286 ;; 5287 no) ENABLE_EMBED_STDCXX=0 5288 ;; 5289 default) ENABLE_EMBED_STDCXX=0 5290 ;; 5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5292echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5293 { (exit 1); exit 1; }; } ;; 5294esac 5295 5296# Check whether --enable-timestamps was given. 5297if test "${enable_timestamps+set}" = set; then 5298 enableval=$enable_timestamps; 5299else 5300 enableval=default 5301fi 5302 5303case "$enableval" in 5304 yes) ENABLE_TIMESTAMPS=1 5305 ;; 5306 no) ENABLE_TIMESTAMPS=0 5307 ;; 5308 default) ENABLE_TIMESTAMPS=1 5309 ;; 5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5311echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5312 { (exit 1); exit 1; }; } ;; 5313esac 5314 5315cat >>confdefs.h <<_ACEOF 5316#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5317_ACEOF 5318 5319 5320TARGETS_TO_BUILD="" 5321# Check whether --enable-targets was given. 5322if test "${enable_targets+set}" = set; then 5323 enableval=$enable_targets; 5324else 5325 enableval=all 5326fi 5327 5328if test "$enableval" = host-only ; then 5329 enableval=host 5330fi 5331case "$enableval" in 5332 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;; 5333 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5334 case "$a_target" in 5335 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5336 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5337 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5338 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5339 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5340 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5341 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5342 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5343 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5344 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5345 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5346 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5347 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5348 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5349 host) case "$llvm_cv_target_arch" in 5350 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5351 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5352 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5353 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5354 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5355 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5356 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5357 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5358 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5359 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5360 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5361 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5362 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5363echo "$as_me: error: Can not set target to build" >&2;} 5364 { (exit 1); exit 1; }; } ;; 5365 esac ;; 5366 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5367echo "$as_me: error: Unrecognized target $a_target" >&2;} 5368 { (exit 1); exit 1; }; } ;; 5369 esac 5370 done 5371 ;; 5372esac 5373TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5374 5375 5376for a_target in $TARGETS_TO_BUILD; do 5377 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5378 5379cat >>confdefs.h <<_ACEOF 5380#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5381_ACEOF 5382 5383 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5384 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5385 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5386 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5387 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5388 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5389 fi 5390 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5391 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5392 fi 5393 5394cat >>confdefs.h <<_ACEOF 5395#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5396_ACEOF 5397 5398 5399cat >>confdefs.h <<_ACEOF 5400#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5401_ACEOF 5402 5403 5404cat >>confdefs.h <<_ACEOF 5405#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5406_ACEOF 5407 5408 5409cat >>confdefs.h <<_ACEOF 5410#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5411_ACEOF 5412 5413 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5414 5415cat >>confdefs.h <<_ACEOF 5416#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5417_ACEOF 5418 5419 fi 5420 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5421 5422cat >>confdefs.h <<_ACEOF 5423#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5424_ACEOF 5425 5426 fi 5427 fi 5428done 5429 5430LLVM_ENUM_TARGETS="" 5431LLVM_ENUM_ASM_PRINTERS="" 5432LLVM_ENUM_ASM_PARSERS="" 5433LLVM_ENUM_DISASSEMBLERS="" 5434for target_to_build in $TARGETS_TO_BUILD; do 5435 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5436 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5437 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5438 fi 5439 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5440 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5441 fi 5442 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5443 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5444 fi 5445done 5446 5447 5448 5449 5450 5451 5452# Check whether --with-optimize-option was given. 5453if test "${with_optimize_option+set}" = set; then 5454 withval=$with_optimize_option; 5455else 5456 withval=default 5457fi 5458 5459{ echo "$as_me:$LINENO: checking optimization flags" >&5 5460echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5461case "$withval" in 5462 default) 5463 case "$llvm_cv_os_type" in 5464 FreeBSD) optimize_option=-O2 ;; 5465 MingW) optimize_option=-O2 ;; 5466 *) optimize_option=-O3 ;; 5467 esac ;; 5468 *) optimize_option="$withval" ;; 5469esac 5470OPTIMIZE_OPTION=$optimize_option 5471 5472{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5473echo "${ECHO_T}$optimize_option" >&6; } 5474 5475 5476# Check whether --with-extra-options was given. 5477if test "${with_extra_options+set}" = set; then 5478 withval=$with_extra_options; 5479else 5480 withval=default 5481fi 5482 5483case "$withval" in 5484 default) EXTRA_OPTIONS= ;; 5485 *) EXTRA_OPTIONS=$withval ;; 5486esac 5487EXTRA_OPTIONS=$EXTRA_OPTIONS 5488 5489 5490 5491# Check whether --with-extra-ld-options was given. 5492if test "${with_extra_ld_options+set}" = set; then 5493 withval=$with_extra_ld_options; 5494else 5495 withval=default 5496fi 5497 5498case "$withval" in 5499 default) EXTRA_LD_OPTIONS= ;; 5500 *) EXTRA_LD_OPTIONS=$withval ;; 5501esac 5502EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5503 5504 5505# Check whether --enable-bindings was given. 5506if test "${enable_bindings+set}" = set; then 5507 enableval=$enable_bindings; 5508else 5509 enableval=default 5510fi 5511 5512BINDINGS_TO_BUILD="" 5513case "$enableval" in 5514 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5515 all ) BINDINGS_TO_BUILD="ocaml" ;; 5516 none | no) BINDINGS_TO_BUILD="" ;; 5517 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5518 case "$a_binding" in 5519 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5520 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5521echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5522 { (exit 1); exit 1; }; } ;; 5523 esac 5524 done 5525 ;; 5526esac 5527 5528 5529# Check whether --with-ocaml-libdir was given. 5530if test "${with_ocaml_libdir+set}" = set; then 5531 withval=$with_ocaml_libdir; 5532else 5533 withval=auto 5534fi 5535 5536case "$withval" in 5537 auto) with_ocaml_libdir="$withval" ;; 5538 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5539 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5540echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5541 { (exit 1); exit 1; }; } ;; 5542esac 5543 5544 5545# Check whether --with-clang-srcdir was given. 5546if test "${with_clang_srcdir+set}" = set; then 5547 withval=$with_clang_srcdir; 5548else 5549 withval="-" 5550fi 5551 5552case "$withval" in 5553 -) clang_src_root="" ;; 5554 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5555 *) clang_src_root="$ac_pwd/$withval" ;; 5556esac 5557CLANG_SRC_ROOT=$clang_src_root 5558 5559 5560 5561# Check whether --with-clang-resource-dir was given. 5562if test "${with_clang_resource_dir+set}" = set; then 5563 withval=$with_clang_resource_dir; 5564else 5565 withval="" 5566fi 5567 5568 5569cat >>confdefs.h <<_ACEOF 5570#define CLANG_RESOURCE_DIR "$withval" 5571_ACEOF 5572 5573 5574 5575# Check whether --with-c-include-dirs was given. 5576if test "${with_c_include_dirs+set}" = set; then 5577 withval=$with_c_include_dirs; 5578else 5579 withval="" 5580fi 5581 5582 5583cat >>confdefs.h <<_ACEOF 5584#define C_INCLUDE_DIRS "$withval" 5585_ACEOF 5586 5587 5588# Clang normally uses the system c++ headers and libraries. With this option, 5589# clang will use the ones provided by a gcc installation instead. This option should 5590# be passed the same value that was used with --prefix when configuring gcc. 5591 5592# Check whether --with-gcc-toolchain was given. 5593if test "${with_gcc_toolchain+set}" = set; then 5594 withval=$with_gcc_toolchain; 5595else 5596 withval="" 5597fi 5598 5599 5600cat >>confdefs.h <<_ACEOF 5601#define GCC_INSTALL_PREFIX "$withval" 5602_ACEOF 5603 5604 5605 5606# Check whether --with-default-sysroot was given. 5607if test "${with_default_sysroot+set}" = set; then 5608 withval=$with_default_sysroot; 5609else 5610 withval="" 5611fi 5612 5613 5614cat >>confdefs.h <<_ACEOF 5615#define DEFAULT_SYSROOT "$withval" 5616_ACEOF 5617 5618 5619 5620# Check whether --with-binutils-include was given. 5621if test "${with_binutils_include+set}" = set; then 5622 withval=$with_binutils_include; 5623else 5624 withval=default 5625fi 5626 5627case "$withval" in 5628 default) WITH_BINUTILS_INCDIR=default ;; 5629 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5630 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5631echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5632 { (exit 1); exit 1; }; } ;; 5633esac 5634if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5635 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5636 5637 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5638 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5639 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5640echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5641 { (exit 1); exit 1; }; }; 5642 fi 5643fi 5644 5645 5646# Check whether --with-bug-report-url was given. 5647if test "${with_bug_report_url+set}" = set; then 5648 withval=$with_bug_report_url; 5649else 5650 withval="http://llvm.org/bugs/" 5651fi 5652 5653 5654cat >>confdefs.h <<_ACEOF 5655#define BUG_REPORT_URL "$withval" 5656_ACEOF 5657 5658 5659# Check whether --enable-libffi was given. 5660if test "${enable_libffi+set}" = set; then 5661 enableval=$enable_libffi; case "$enableval" in 5662 yes) llvm_cv_enable_libffi="yes" ;; 5663 no) llvm_cv_enable_libffi="no" ;; 5664 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5665echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5666 { (exit 1); exit 1; }; } ;; 5667 esac 5668else 5669 llvm_cv_enable_libffi=no 5670fi 5671 5672 5673 5674# Check whether --with-internal-prefix was given. 5675if test "${with_internal_prefix+set}" = set; then 5676 withval=$with_internal_prefix; 5677else 5678 withval="" 5679fi 5680 5681INTERNAL_PREFIX=$withval 5682 5683 5684 5685{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5686echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5687if test "${lt_cv_path_NM+set}" = set; then 5688 echo $ECHO_N "(cached) $ECHO_C" >&6 5689else 5690 if test -n "$NM"; then 5691 # Let the user override the test. 5692 lt_cv_path_NM="$NM" 5693else 5694 lt_nm_to_check="${ac_tool_prefix}nm" 5695 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5696 lt_nm_to_check="$lt_nm_to_check nm" 5697 fi 5698 for lt_tmp_nm in $lt_nm_to_check; do 5699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5700 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5701 IFS="$lt_save_ifs" 5702 test -z "$ac_dir" && ac_dir=. 5703 tmp_nm="$ac_dir/$lt_tmp_nm" 5704 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5705 # Check to see if the nm accepts a BSD-compat flag. 5706 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5707 # nm: unknown option "B" ignored 5708 # Tru64's nm complains that /dev/null is an invalid object file 5709 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5710 */dev/null* | *'Invalid file or object type'*) 5711 lt_cv_path_NM="$tmp_nm -B" 5712 break 5713 ;; 5714 *) 5715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5716 */dev/null*) 5717 lt_cv_path_NM="$tmp_nm -p" 5718 break 5719 ;; 5720 *) 5721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5722 continue # so that we can try to find one that supports BSD flags 5723 ;; 5724 esac 5725 ;; 5726 esac 5727 fi 5728 done 5729 IFS="$lt_save_ifs" 5730 done 5731 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5732fi 5733fi 5734{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5735echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5736NM="$lt_cv_path_NM" 5737 5738 5739 5740{ echo "$as_me:$LINENO: checking for GNU make" >&5 5741echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 5742if test "${llvm_cv_gnu_make_command+set}" = set; then 5743 echo $ECHO_N "(cached) $ECHO_C" >&6 5744else 5745 llvm_cv_gnu_make_command='' 5746 for a in "$MAKE" make gmake gnumake ; do 5747 if test -z "$a" ; then continue ; fi ; 5748 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5749 then 5750 llvm_cv_gnu_make_command=$a ; 5751 break; 5752 fi 5753 done 5754fi 5755{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 5756echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 5757 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5758 ifGNUmake='' ; 5759 else 5760 ifGNUmake='#' ; 5761 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 5762echo "${ECHO_T}\"Not found\"" >&6; }; 5763 fi 5764 5765 5766{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 5767echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5768LN_S=$as_ln_s 5769if test "$LN_S" = "ln -s"; then 5770 { echo "$as_me:$LINENO: result: yes" >&5 5771echo "${ECHO_T}yes" >&6; } 5772else 5773 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5774echo "${ECHO_T}no, using $LN_S" >&6; } 5775fi 5776 5777# Extract the first word of "cmp", so it can be a program name with args. 5778set dummy cmp; ac_word=$2 5779{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5781if test "${ac_cv_path_CMP+set}" = set; then 5782 echo $ECHO_N "(cached) $ECHO_C" >&6 5783else 5784 case $CMP in 5785 [\\/]* | ?:[\\/]*) 5786 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5787 ;; 5788 *) 5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5790for as_dir in $PATH 5791do 5792 IFS=$as_save_IFS 5793 test -z "$as_dir" && as_dir=. 5794 for ac_exec_ext in '' $ac_executable_extensions; do 5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5796 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5798 break 2 5799 fi 5800done 5801done 5802IFS=$as_save_IFS 5803 5804 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5805 ;; 5806esac 5807fi 5808CMP=$ac_cv_path_CMP 5809if test -n "$CMP"; then 5810 { echo "$as_me:$LINENO: result: $CMP" >&5 5811echo "${ECHO_T}$CMP" >&6; } 5812else 5813 { echo "$as_me:$LINENO: result: no" >&5 5814echo "${ECHO_T}no" >&6; } 5815fi 5816 5817 5818# Extract the first word of "cp", so it can be a program name with args. 5819set dummy cp; ac_word=$2 5820{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5822if test "${ac_cv_path_CP+set}" = set; then 5823 echo $ECHO_N "(cached) $ECHO_C" >&6 5824else 5825 case $CP in 5826 [\\/]* | ?:[\\/]*) 5827 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5828 ;; 5829 *) 5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5831for as_dir in $PATH 5832do 5833 IFS=$as_save_IFS 5834 test -z "$as_dir" && as_dir=. 5835 for ac_exec_ext in '' $ac_executable_extensions; do 5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5837 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5839 break 2 5840 fi 5841done 5842done 5843IFS=$as_save_IFS 5844 5845 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 5846 ;; 5847esac 5848fi 5849CP=$ac_cv_path_CP 5850if test -n "$CP"; then 5851 { echo "$as_me:$LINENO: result: $CP" >&5 5852echo "${ECHO_T}$CP" >&6; } 5853else 5854 { echo "$as_me:$LINENO: result: no" >&5 5855echo "${ECHO_T}no" >&6; } 5856fi 5857 5858 5859# Extract the first word of "date", so it can be a program name with args. 5860set dummy date; ac_word=$2 5861{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5863if test "${ac_cv_path_DATE+set}" = set; then 5864 echo $ECHO_N "(cached) $ECHO_C" >&6 5865else 5866 case $DATE in 5867 [\\/]* | ?:[\\/]*) 5868 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5869 ;; 5870 *) 5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5872for as_dir in $PATH 5873do 5874 IFS=$as_save_IFS 5875 test -z "$as_dir" && as_dir=. 5876 for ac_exec_ext in '' $ac_executable_extensions; do 5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5878 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5880 break 2 5881 fi 5882done 5883done 5884IFS=$as_save_IFS 5885 5886 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 5887 ;; 5888esac 5889fi 5890DATE=$ac_cv_path_DATE 5891if test -n "$DATE"; then 5892 { echo "$as_me:$LINENO: result: $DATE" >&5 5893echo "${ECHO_T}$DATE" >&6; } 5894else 5895 { echo "$as_me:$LINENO: result: no" >&5 5896echo "${ECHO_T}no" >&6; } 5897fi 5898 5899 5900# Extract the first word of "find", so it can be a program name with args. 5901set dummy find; ac_word=$2 5902{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5904if test "${ac_cv_path_FIND+set}" = set; then 5905 echo $ECHO_N "(cached) $ECHO_C" >&6 5906else 5907 case $FIND in 5908 [\\/]* | ?:[\\/]*) 5909 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 5910 ;; 5911 *) 5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5913for as_dir in $PATH 5914do 5915 IFS=$as_save_IFS 5916 test -z "$as_dir" && as_dir=. 5917 for ac_exec_ext in '' $ac_executable_extensions; do 5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5919 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5921 break 2 5922 fi 5923done 5924done 5925IFS=$as_save_IFS 5926 5927 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 5928 ;; 5929esac 5930fi 5931FIND=$ac_cv_path_FIND 5932if test -n "$FIND"; then 5933 { echo "$as_me:$LINENO: result: $FIND" >&5 5934echo "${ECHO_T}$FIND" >&6; } 5935else 5936 { echo "$as_me:$LINENO: result: no" >&5 5937echo "${ECHO_T}no" >&6; } 5938fi 5939 5940 5941# Extract the first word of "grep", so it can be a program name with args. 5942set dummy grep; ac_word=$2 5943{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5945if test "${ac_cv_path_GREP+set}" = set; then 5946 echo $ECHO_N "(cached) $ECHO_C" >&6 5947else 5948 case $GREP in 5949 [\\/]* | ?:[\\/]*) 5950 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 5951 ;; 5952 *) 5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5954for as_dir in $PATH 5955do 5956 IFS=$as_save_IFS 5957 test -z "$as_dir" && as_dir=. 5958 for ac_exec_ext in '' $ac_executable_extensions; do 5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5960 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5962 break 2 5963 fi 5964done 5965done 5966IFS=$as_save_IFS 5967 5968 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 5969 ;; 5970esac 5971fi 5972GREP=$ac_cv_path_GREP 5973if test -n "$GREP"; then 5974 { echo "$as_me:$LINENO: result: $GREP" >&5 5975echo "${ECHO_T}$GREP" >&6; } 5976else 5977 { echo "$as_me:$LINENO: result: no" >&5 5978echo "${ECHO_T}no" >&6; } 5979fi 5980 5981 5982# Extract the first word of "mkdir", so it can be a program name with args. 5983set dummy mkdir; ac_word=$2 5984{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5986if test "${ac_cv_path_MKDIR+set}" = set; then 5987 echo $ECHO_N "(cached) $ECHO_C" >&6 5988else 5989 case $MKDIR in 5990 [\\/]* | ?:[\\/]*) 5991 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 5992 ;; 5993 *) 5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995for as_dir in $PATH 5996do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6001 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005done 6006done 6007IFS=$as_save_IFS 6008 6009 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6010 ;; 6011esac 6012fi 6013MKDIR=$ac_cv_path_MKDIR 6014if test -n "$MKDIR"; then 6015 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6016echo "${ECHO_T}$MKDIR" >&6; } 6017else 6018 { echo "$as_me:$LINENO: result: no" >&5 6019echo "${ECHO_T}no" >&6; } 6020fi 6021 6022 6023# Extract the first word of "mv", so it can be a program name with args. 6024set dummy mv; ac_word=$2 6025{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6027if test "${ac_cv_path_MV+set}" = set; then 6028 echo $ECHO_N "(cached) $ECHO_C" >&6 6029else 6030 case $MV in 6031 [\\/]* | ?:[\\/]*) 6032 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6033 ;; 6034 *) 6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6036for as_dir in $PATH 6037do 6038 IFS=$as_save_IFS 6039 test -z "$as_dir" && as_dir=. 6040 for ac_exec_ext in '' $ac_executable_extensions; do 6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6042 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6044 break 2 6045 fi 6046done 6047done 6048IFS=$as_save_IFS 6049 6050 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6051 ;; 6052esac 6053fi 6054MV=$ac_cv_path_MV 6055if test -n "$MV"; then 6056 { echo "$as_me:$LINENO: result: $MV" >&5 6057echo "${ECHO_T}$MV" >&6; } 6058else 6059 { echo "$as_me:$LINENO: result: no" >&5 6060echo "${ECHO_T}no" >&6; } 6061fi 6062 6063 6064if test -n "$ac_tool_prefix"; then 6065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6066set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6067{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6069if test "${ac_cv_prog_RANLIB+set}" = set; then 6070 echo $ECHO_N "(cached) $ECHO_C" >&6 6071else 6072 if test -n "$RANLIB"; then 6073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6074else 6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6076for as_dir in $PATH 6077do 6078 IFS=$as_save_IFS 6079 test -z "$as_dir" && as_dir=. 6080 for ac_exec_ext in '' $ac_executable_extensions; do 6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6084 break 2 6085 fi 6086done 6087done 6088IFS=$as_save_IFS 6089 6090fi 6091fi 6092RANLIB=$ac_cv_prog_RANLIB 6093if test -n "$RANLIB"; then 6094 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6095echo "${ECHO_T}$RANLIB" >&6; } 6096else 6097 { echo "$as_me:$LINENO: result: no" >&5 6098echo "${ECHO_T}no" >&6; } 6099fi 6100 6101 6102fi 6103if test -z "$ac_cv_prog_RANLIB"; then 6104 ac_ct_RANLIB=$RANLIB 6105 # Extract the first word of "ranlib", so it can be a program name with args. 6106set dummy ranlib; ac_word=$2 6107{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6109if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6110 echo $ECHO_N "(cached) $ECHO_C" >&6 6111else 6112 if test -n "$ac_ct_RANLIB"; then 6113 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6114else 6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6116for as_dir in $PATH 6117do 6118 IFS=$as_save_IFS 6119 test -z "$as_dir" && as_dir=. 6120 for ac_exec_ext in '' $ac_executable_extensions; do 6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6122 ac_cv_prog_ac_ct_RANLIB="ranlib" 6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6124 break 2 6125 fi 6126done 6127done 6128IFS=$as_save_IFS 6129 6130fi 6131fi 6132ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6133if test -n "$ac_ct_RANLIB"; then 6134 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6135echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6136else 6137 { echo "$as_me:$LINENO: result: no" >&5 6138echo "${ECHO_T}no" >&6; } 6139fi 6140 6141 if test "x$ac_ct_RANLIB" = x; then 6142 RANLIB=":" 6143 else 6144 case $cross_compiling:$ac_tool_warned in 6145yes:) 6146{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6147whose name does not start with the host triplet. If you think this 6148configuration is useful to you, please write to autoconf@gnu.org." >&5 6149echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6150whose name does not start with the host triplet. If you think this 6151configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6152ac_tool_warned=yes ;; 6153esac 6154 RANLIB=$ac_ct_RANLIB 6155 fi 6156else 6157 RANLIB="$ac_cv_prog_RANLIB" 6158fi 6159 6160if test -n "$ac_tool_prefix"; then 6161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6162set dummy ${ac_tool_prefix}ar; ac_word=$2 6163{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6165if test "${ac_cv_prog_AR+set}" = set; then 6166 echo $ECHO_N "(cached) $ECHO_C" >&6 6167else 6168 if test -n "$AR"; then 6169 ac_cv_prog_AR="$AR" # Let the user override the test. 6170else 6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6172for as_dir in $PATH 6173do 6174 IFS=$as_save_IFS 6175 test -z "$as_dir" && as_dir=. 6176 for ac_exec_ext in '' $ac_executable_extensions; do 6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6178 ac_cv_prog_AR="${ac_tool_prefix}ar" 6179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6180 break 2 6181 fi 6182done 6183done 6184IFS=$as_save_IFS 6185 6186fi 6187fi 6188AR=$ac_cv_prog_AR 6189if test -n "$AR"; then 6190 { echo "$as_me:$LINENO: result: $AR" >&5 6191echo "${ECHO_T}$AR" >&6; } 6192else 6193 { echo "$as_me:$LINENO: result: no" >&5 6194echo "${ECHO_T}no" >&6; } 6195fi 6196 6197 6198fi 6199if test -z "$ac_cv_prog_AR"; then 6200 ac_ct_AR=$AR 6201 # Extract the first word of "ar", so it can be a program name with args. 6202set dummy ar; ac_word=$2 6203{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6205if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6206 echo $ECHO_N "(cached) $ECHO_C" >&6 6207else 6208 if test -n "$ac_ct_AR"; then 6209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6210else 6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6212for as_dir in $PATH 6213do 6214 IFS=$as_save_IFS 6215 test -z "$as_dir" && as_dir=. 6216 for ac_exec_ext in '' $ac_executable_extensions; do 6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6218 ac_cv_prog_ac_ct_AR="ar" 6219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6220 break 2 6221 fi 6222done 6223done 6224IFS=$as_save_IFS 6225 6226fi 6227fi 6228ac_ct_AR=$ac_cv_prog_ac_ct_AR 6229if test -n "$ac_ct_AR"; then 6230 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6231echo "${ECHO_T}$ac_ct_AR" >&6; } 6232else 6233 { echo "$as_me:$LINENO: result: no" >&5 6234echo "${ECHO_T}no" >&6; } 6235fi 6236 6237 if test "x$ac_ct_AR" = x; then 6238 AR="false" 6239 else 6240 case $cross_compiling:$ac_tool_warned in 6241yes:) 6242{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6243whose name does not start with the host triplet. If you think this 6244configuration is useful to you, please write to autoconf@gnu.org." >&5 6245echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6246whose name does not start with the host triplet. If you think this 6247configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6248ac_tool_warned=yes ;; 6249esac 6250 AR=$ac_ct_AR 6251 fi 6252else 6253 AR="$ac_cv_prog_AR" 6254fi 6255 6256# Extract the first word of "rm", so it can be a program name with args. 6257set dummy rm; ac_word=$2 6258{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6260if test "${ac_cv_path_RM+set}" = set; then 6261 echo $ECHO_N "(cached) $ECHO_C" >&6 6262else 6263 case $RM in 6264 [\\/]* | ?:[\\/]*) 6265 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6266 ;; 6267 *) 6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6269for as_dir in $PATH 6270do 6271 IFS=$as_save_IFS 6272 test -z "$as_dir" && as_dir=. 6273 for ac_exec_ext in '' $ac_executable_extensions; do 6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6275 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6277 break 2 6278 fi 6279done 6280done 6281IFS=$as_save_IFS 6282 6283 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6284 ;; 6285esac 6286fi 6287RM=$ac_cv_path_RM 6288if test -n "$RM"; then 6289 { echo "$as_me:$LINENO: result: $RM" >&5 6290echo "${ECHO_T}$RM" >&6; } 6291else 6292 { echo "$as_me:$LINENO: result: no" >&5 6293echo "${ECHO_T}no" >&6; } 6294fi 6295 6296 6297# Extract the first word of "sed", so it can be a program name with args. 6298set dummy sed; ac_word=$2 6299{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6301if test "${ac_cv_path_SED+set}" = set; then 6302 echo $ECHO_N "(cached) $ECHO_C" >&6 6303else 6304 case $SED in 6305 [\\/]* | ?:[\\/]*) 6306 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6307 ;; 6308 *) 6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6310for as_dir in $PATH 6311do 6312 IFS=$as_save_IFS 6313 test -z "$as_dir" && as_dir=. 6314 for ac_exec_ext in '' $ac_executable_extensions; do 6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6316 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6318 break 2 6319 fi 6320done 6321done 6322IFS=$as_save_IFS 6323 6324 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6325 ;; 6326esac 6327fi 6328SED=$ac_cv_path_SED 6329if test -n "$SED"; then 6330 { echo "$as_me:$LINENO: result: $SED" >&5 6331echo "${ECHO_T}$SED" >&6; } 6332else 6333 { echo "$as_me:$LINENO: result: no" >&5 6334echo "${ECHO_T}no" >&6; } 6335fi 6336 6337 6338# Extract the first word of "tar", so it can be a program name with args. 6339set dummy tar; ac_word=$2 6340{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6342if test "${ac_cv_path_TAR+set}" = set; then 6343 echo $ECHO_N "(cached) $ECHO_C" >&6 6344else 6345 case $TAR in 6346 [\\/]* | ?:[\\/]*) 6347 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6348 ;; 6349 *) 6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351for as_dir in $PATH 6352do 6353 IFS=$as_save_IFS 6354 test -z "$as_dir" && as_dir=. 6355 for ac_exec_ext in '' $ac_executable_extensions; do 6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6357 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6359 break 2 6360 fi 6361done 6362done 6363IFS=$as_save_IFS 6364 6365 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6366 ;; 6367esac 6368fi 6369TAR=$ac_cv_path_TAR 6370if test -n "$TAR"; then 6371 { echo "$as_me:$LINENO: result: $TAR" >&5 6372echo "${ECHO_T}$TAR" >&6; } 6373else 6374 { echo "$as_me:$LINENO: result: no" >&5 6375echo "${ECHO_T}no" >&6; } 6376fi 6377 6378 6379# Extract the first word of "pwd", so it can be a program name with args. 6380set dummy pwd; ac_word=$2 6381{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6383if test "${ac_cv_path_BINPWD+set}" = set; then 6384 echo $ECHO_N "(cached) $ECHO_C" >&6 6385else 6386 case $BINPWD in 6387 [\\/]* | ?:[\\/]*) 6388 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6389 ;; 6390 *) 6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6392for as_dir in $PATH 6393do 6394 IFS=$as_save_IFS 6395 test -z "$as_dir" && as_dir=. 6396 for ac_exec_ext in '' $ac_executable_extensions; do 6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6398 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6400 break 2 6401 fi 6402done 6403done 6404IFS=$as_save_IFS 6405 6406 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6407 ;; 6408esac 6409fi 6410BINPWD=$ac_cv_path_BINPWD 6411if test -n "$BINPWD"; then 6412 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6413echo "${ECHO_T}$BINPWD" >&6; } 6414else 6415 { echo "$as_me:$LINENO: result: no" >&5 6416echo "${ECHO_T}no" >&6; } 6417fi 6418 6419 6420 6421# Extract the first word of "Graphviz", so it can be a program name with args. 6422set dummy Graphviz; ac_word=$2 6423{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6425if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6426 echo $ECHO_N "(cached) $ECHO_C" >&6 6427else 6428 case $GRAPHVIZ in 6429 [\\/]* | ?:[\\/]*) 6430 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6431 ;; 6432 *) 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434for as_dir in $PATH 6435do 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_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444done 6445done 6446IFS=$as_save_IFS 6447 6448 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6449 ;; 6450esac 6451fi 6452GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6453if test -n "$GRAPHVIZ"; then 6454 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6455echo "${ECHO_T}$GRAPHVIZ" >&6; } 6456else 6457 { echo "$as_me:$LINENO: result: no" >&5 6458echo "${ECHO_T}no" >&6; } 6459fi 6460 6461 6462if test "$GRAPHVIZ" != "echo Graphviz" ; then 6463 6464cat >>confdefs.h <<\_ACEOF 6465#define HAVE_GRAPHVIZ 1 6466_ACEOF 6467 6468 if test "$llvm_cv_os_type" = "MingW" ; then 6469 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6470 fi 6471 6472cat >>confdefs.h <<_ACEOF 6473#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6474_ACEOF 6475 6476fi 6477# Extract the first word of "dot", so it can be a program name with args. 6478set dummy dot; ac_word=$2 6479{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6481if test "${ac_cv_path_DOT+set}" = set; then 6482 echo $ECHO_N "(cached) $ECHO_C" >&6 6483else 6484 case $DOT in 6485 [\\/]* | ?:[\\/]*) 6486 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6487 ;; 6488 *) 6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490for as_dir in $PATH 6491do 6492 IFS=$as_save_IFS 6493 test -z "$as_dir" && as_dir=. 6494 for ac_exec_ext in '' $ac_executable_extensions; do 6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6496 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6498 break 2 6499 fi 6500done 6501done 6502IFS=$as_save_IFS 6503 6504 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6505 ;; 6506esac 6507fi 6508DOT=$ac_cv_path_DOT 6509if test -n "$DOT"; then 6510 { echo "$as_me:$LINENO: result: $DOT" >&5 6511echo "${ECHO_T}$DOT" >&6; } 6512else 6513 { echo "$as_me:$LINENO: result: no" >&5 6514echo "${ECHO_T}no" >&6; } 6515fi 6516 6517 6518if test "$DOT" != "echo dot" ; then 6519 6520cat >>confdefs.h <<\_ACEOF 6521#define HAVE_DOT 1 6522_ACEOF 6523 6524 if test "$llvm_cv_os_type" = "MingW" ; then 6525 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6526 fi 6527 6528cat >>confdefs.h <<_ACEOF 6529#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6530_ACEOF 6531 6532fi 6533# Extract the first word of "fdp", so it can be a program name with args. 6534set dummy fdp; ac_word=$2 6535{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6537if test "${ac_cv_path_FDP+set}" = set; then 6538 echo $ECHO_N "(cached) $ECHO_C" >&6 6539else 6540 case $FDP in 6541 [\\/]* | ?:[\\/]*) 6542 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6543 ;; 6544 *) 6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6546for as_dir in $PATH 6547do 6548 IFS=$as_save_IFS 6549 test -z "$as_dir" && as_dir=. 6550 for ac_exec_ext in '' $ac_executable_extensions; do 6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6552 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6554 break 2 6555 fi 6556done 6557done 6558IFS=$as_save_IFS 6559 6560 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6561 ;; 6562esac 6563fi 6564FDP=$ac_cv_path_FDP 6565if test -n "$FDP"; then 6566 { echo "$as_me:$LINENO: result: $FDP" >&5 6567echo "${ECHO_T}$FDP" >&6; } 6568else 6569 { echo "$as_me:$LINENO: result: no" >&5 6570echo "${ECHO_T}no" >&6; } 6571fi 6572 6573 6574if test "$FDP" != "echo fdp" ; then 6575 6576cat >>confdefs.h <<\_ACEOF 6577#define HAVE_FDP 1 6578_ACEOF 6579 6580 if test "$llvm_cv_os_type" = "MingW" ; then 6581 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6582 fi 6583 6584cat >>confdefs.h <<_ACEOF 6585#define LLVM_PATH_FDP "$FDP${EXEEXT}" 6586_ACEOF 6587 6588fi 6589# Extract the first word of "neato", so it can be a program name with args. 6590set dummy neato; ac_word=$2 6591{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6593if test "${ac_cv_path_NEATO+set}" = set; then 6594 echo $ECHO_N "(cached) $ECHO_C" >&6 6595else 6596 case $NEATO in 6597 [\\/]* | ?:[\\/]*) 6598 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6599 ;; 6600 *) 6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602for as_dir in $PATH 6603do 6604 IFS=$as_save_IFS 6605 test -z "$as_dir" && as_dir=. 6606 for ac_exec_ext in '' $ac_executable_extensions; do 6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6608 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6610 break 2 6611 fi 6612done 6613done 6614IFS=$as_save_IFS 6615 6616 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6617 ;; 6618esac 6619fi 6620NEATO=$ac_cv_path_NEATO 6621if test -n "$NEATO"; then 6622 { echo "$as_me:$LINENO: result: $NEATO" >&5 6623echo "${ECHO_T}$NEATO" >&6; } 6624else 6625 { echo "$as_me:$LINENO: result: no" >&5 6626echo "${ECHO_T}no" >&6; } 6627fi 6628 6629 6630if test "$NEATO" != "echo neato" ; then 6631 6632cat >>confdefs.h <<\_ACEOF 6633#define HAVE_NEATO 1 6634_ACEOF 6635 6636 if test "$llvm_cv_os_type" = "MingW" ; then 6637 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6638 fi 6639 6640cat >>confdefs.h <<_ACEOF 6641#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6642_ACEOF 6643 6644fi 6645# Extract the first word of "twopi", so it can be a program name with args. 6646set dummy twopi; ac_word=$2 6647{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6649if test "${ac_cv_path_TWOPI+set}" = set; then 6650 echo $ECHO_N "(cached) $ECHO_C" >&6 6651else 6652 case $TWOPI in 6653 [\\/]* | ?:[\\/]*) 6654 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6655 ;; 6656 *) 6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6658for as_dir in $PATH 6659do 6660 IFS=$as_save_IFS 6661 test -z "$as_dir" && as_dir=. 6662 for ac_exec_ext in '' $ac_executable_extensions; do 6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6664 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6666 break 2 6667 fi 6668done 6669done 6670IFS=$as_save_IFS 6671 6672 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6673 ;; 6674esac 6675fi 6676TWOPI=$ac_cv_path_TWOPI 6677if test -n "$TWOPI"; then 6678 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6679echo "${ECHO_T}$TWOPI" >&6; } 6680else 6681 { echo "$as_me:$LINENO: result: no" >&5 6682echo "${ECHO_T}no" >&6; } 6683fi 6684 6685 6686if test "$TWOPI" != "echo twopi" ; then 6687 6688cat >>confdefs.h <<\_ACEOF 6689#define HAVE_TWOPI 1 6690_ACEOF 6691 6692 if test "$llvm_cv_os_type" = "MingW" ; then 6693 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6694 fi 6695 6696cat >>confdefs.h <<_ACEOF 6697#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6698_ACEOF 6699 6700fi 6701# Extract the first word of "circo", so it can be a program name with args. 6702set dummy circo; ac_word=$2 6703{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6705if test "${ac_cv_path_CIRCO+set}" = set; then 6706 echo $ECHO_N "(cached) $ECHO_C" >&6 6707else 6708 case $CIRCO in 6709 [\\/]* | ?:[\\/]*) 6710 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6711 ;; 6712 *) 6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6714for as_dir in $PATH 6715do 6716 IFS=$as_save_IFS 6717 test -z "$as_dir" && as_dir=. 6718 for ac_exec_ext in '' $ac_executable_extensions; do 6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6720 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6722 break 2 6723 fi 6724done 6725done 6726IFS=$as_save_IFS 6727 6728 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 6729 ;; 6730esac 6731fi 6732CIRCO=$ac_cv_path_CIRCO 6733if test -n "$CIRCO"; then 6734 { echo "$as_me:$LINENO: result: $CIRCO" >&5 6735echo "${ECHO_T}$CIRCO" >&6; } 6736else 6737 { echo "$as_me:$LINENO: result: no" >&5 6738echo "${ECHO_T}no" >&6; } 6739fi 6740 6741 6742if test "$CIRCO" != "echo circo" ; then 6743 6744cat >>confdefs.h <<\_ACEOF 6745#define HAVE_CIRCO 1 6746_ACEOF 6747 6748 if test "$llvm_cv_os_type" = "MingW" ; then 6749 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6750 fi 6751 6752cat >>confdefs.h <<_ACEOF 6753#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 6754_ACEOF 6755 6756fi 6757for ac_prog in gv gsview32 6758do 6759 # Extract the first word of "$ac_prog", so it can be a program name with args. 6760set dummy $ac_prog; ac_word=$2 6761{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6763if test "${ac_cv_path_GV+set}" = set; then 6764 echo $ECHO_N "(cached) $ECHO_C" >&6 6765else 6766 case $GV in 6767 [\\/]* | ?:[\\/]*) 6768 ac_cv_path_GV="$GV" # Let the user override the test with a path. 6769 ;; 6770 *) 6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6772for as_dir in $PATH 6773do 6774 IFS=$as_save_IFS 6775 test -z "$as_dir" && as_dir=. 6776 for ac_exec_ext in '' $ac_executable_extensions; do 6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6778 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6780 break 2 6781 fi 6782done 6783done 6784IFS=$as_save_IFS 6785 6786 ;; 6787esac 6788fi 6789GV=$ac_cv_path_GV 6790if test -n "$GV"; then 6791 { echo "$as_me:$LINENO: result: $GV" >&5 6792echo "${ECHO_T}$GV" >&6; } 6793else 6794 { echo "$as_me:$LINENO: result: no" >&5 6795echo "${ECHO_T}no" >&6; } 6796fi 6797 6798 6799 test -n "$GV" && break 6800done 6801test -n "$GV" || GV="echo gv" 6802 6803if test "$GV" != "echo gv" ; then 6804 6805cat >>confdefs.h <<\_ACEOF 6806#define HAVE_GV 1 6807_ACEOF 6808 6809 if test "$llvm_cv_os_type" = "MingW" ; then 6810 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6811 fi 6812 6813cat >>confdefs.h <<_ACEOF 6814#define LLVM_PATH_GV "$GV${EXEEXT}" 6815_ACEOF 6816 6817fi 6818# Extract the first word of "dotty", so it can be a program name with args. 6819set dummy dotty; ac_word=$2 6820{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6822if test "${ac_cv_path_DOTTY+set}" = set; then 6823 echo $ECHO_N "(cached) $ECHO_C" >&6 6824else 6825 case $DOTTY in 6826 [\\/]* | ?:[\\/]*) 6827 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 6828 ;; 6829 *) 6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6831for as_dir in $PATH 6832do 6833 IFS=$as_save_IFS 6834 test -z "$as_dir" && as_dir=. 6835 for ac_exec_ext in '' $ac_executable_extensions; do 6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6837 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6839 break 2 6840 fi 6841done 6842done 6843IFS=$as_save_IFS 6844 6845 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 6846 ;; 6847esac 6848fi 6849DOTTY=$ac_cv_path_DOTTY 6850if test -n "$DOTTY"; then 6851 { echo "$as_me:$LINENO: result: $DOTTY" >&5 6852echo "${ECHO_T}$DOTTY" >&6; } 6853else 6854 { echo "$as_me:$LINENO: result: no" >&5 6855echo "${ECHO_T}no" >&6; } 6856fi 6857 6858 6859if test "$DOTTY" != "echo dotty" ; then 6860 6861cat >>confdefs.h <<\_ACEOF 6862#define HAVE_DOTTY 1 6863_ACEOF 6864 6865 if test "$llvm_cv_os_type" = "MingW" ; then 6866 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6867 fi 6868 6869cat >>confdefs.h <<_ACEOF 6870#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 6871_ACEOF 6872 6873fi 6874# Extract the first word of "xdot.py", so it can be a program name with args. 6875set dummy xdot.py; ac_word=$2 6876{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6878if test "${ac_cv_path_XDOT_PY+set}" = set; then 6879 echo $ECHO_N "(cached) $ECHO_C" >&6 6880else 6881 case $XDOT_PY in 6882 [\\/]* | ?:[\\/]*) 6883 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 6884 ;; 6885 *) 6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6887for as_dir in $PATH 6888do 6889 IFS=$as_save_IFS 6890 test -z "$as_dir" && as_dir=. 6891 for ac_exec_ext in '' $ac_executable_extensions; do 6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6893 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6895 break 2 6896 fi 6897done 6898done 6899IFS=$as_save_IFS 6900 6901 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 6902 ;; 6903esac 6904fi 6905XDOT_PY=$ac_cv_path_XDOT_PY 6906if test -n "$XDOT_PY"; then 6907 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 6908echo "${ECHO_T}$XDOT_PY" >&6; } 6909else 6910 { echo "$as_me:$LINENO: result: no" >&5 6911echo "${ECHO_T}no" >&6; } 6912fi 6913 6914 6915if test "$XDOT_PY" != "echo xdot.py" ; then 6916 6917cat >>confdefs.h <<\_ACEOF 6918#define HAVE_XDOT_PY 1 6919_ACEOF 6920 6921 if test "$llvm_cv_os_type" = "MingW" ; then 6922 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6923 fi 6924 6925cat >>confdefs.h <<_ACEOF 6926#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 6927_ACEOF 6928 6929fi 6930 6931# Find a good install program. We prefer a C program (faster), 6932# so one script is as good as another. But avoid the broken or 6933# incompatible versions: 6934# SysV /etc/install, /usr/sbin/install 6935# SunOS /usr/etc/install 6936# IRIX /sbin/install 6937# AIX /bin/install 6938# AmigaOS /C/install, which installs bootblocks on floppy discs 6939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6940# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6942# OS/2's system install, which has a completely different semantic 6943# ./install, which can be erroneously created by make from ./install.sh. 6944{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6945echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 6946if test -z "$INSTALL"; then 6947if test "${ac_cv_path_install+set}" = set; then 6948 echo $ECHO_N "(cached) $ECHO_C" >&6 6949else 6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 # Account for people who put trailing slashes in PATH elements. 6956case $as_dir/ in 6957 ./ | .// | /cC/* | \ 6958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 6960 /usr/ucb/* ) ;; 6961 *) 6962 # OSF1 and SCO ODT 3.0 have their own names for install. 6963 # Don't use installbsd from OSF since it installs stuff as root 6964 # by default. 6965 for ac_prog in ginstall scoinst install; do 6966 for ac_exec_ext in '' $ac_executable_extensions; do 6967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 6968 if test $ac_prog = install && 6969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6970 # AIX install. It has an incompatible calling convention. 6971 : 6972 elif test $ac_prog = install && 6973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6974 # program-specific install script used by HP pwplus--don't use. 6975 : 6976 else 6977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6978 break 3 6979 fi 6980 fi 6981 done 6982 done 6983 ;; 6984esac 6985done 6986IFS=$as_save_IFS 6987 6988 6989fi 6990 if test "${ac_cv_path_install+set}" = set; then 6991 INSTALL=$ac_cv_path_install 6992 else 6993 # As a last resort, use the slow shell script. Don't cache a 6994 # value for INSTALL within a source directory, because that will 6995 # break other packages using the cache if that directory is 6996 # removed, or if the value is a relative name. 6997 INSTALL=$ac_install_sh 6998 fi 6999fi 7000{ echo "$as_me:$LINENO: result: $INSTALL" >&5 7001echo "${ECHO_T}$INSTALL" >&6; } 7002 7003# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7004# It thinks the first close brace ends the variable substitution. 7005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7006 7007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7008 7009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7010 7011case "$INSTALL" in 7012 [\\/$]* | ?:[\\/]* ) ;; 7013 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7014esac 7015 7016# Extract the first word of "bzip2", so it can be a program name with args. 7017set dummy bzip2; ac_word=$2 7018{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7020if test "${ac_cv_path_BZIP2+set}" = set; then 7021 echo $ECHO_N "(cached) $ECHO_C" >&6 7022else 7023 case $BZIP2 in 7024 [\\/]* | ?:[\\/]*) 7025 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7026 ;; 7027 *) 7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7029for as_dir in $PATH 7030do 7031 IFS=$as_save_IFS 7032 test -z "$as_dir" && as_dir=. 7033 for ac_exec_ext in '' $ac_executable_extensions; do 7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7035 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7037 break 2 7038 fi 7039done 7040done 7041IFS=$as_save_IFS 7042 7043 ;; 7044esac 7045fi 7046BZIP2=$ac_cv_path_BZIP2 7047if test -n "$BZIP2"; then 7048 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7049echo "${ECHO_T}$BZIP2" >&6; } 7050else 7051 { echo "$as_me:$LINENO: result: no" >&5 7052echo "${ECHO_T}no" >&6; } 7053fi 7054 7055 7056# Extract the first word of "cat", so it can be a program name with args. 7057set dummy cat; ac_word=$2 7058{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7060if test "${ac_cv_path_CAT+set}" = set; then 7061 echo $ECHO_N "(cached) $ECHO_C" >&6 7062else 7063 case $CAT in 7064 [\\/]* | ?:[\\/]*) 7065 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7066 ;; 7067 *) 7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7069for as_dir in $PATH 7070do 7071 IFS=$as_save_IFS 7072 test -z "$as_dir" && as_dir=. 7073 for ac_exec_ext in '' $ac_executable_extensions; do 7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7075 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7077 break 2 7078 fi 7079done 7080done 7081IFS=$as_save_IFS 7082 7083 ;; 7084esac 7085fi 7086CAT=$ac_cv_path_CAT 7087if test -n "$CAT"; then 7088 { echo "$as_me:$LINENO: result: $CAT" >&5 7089echo "${ECHO_T}$CAT" >&6; } 7090else 7091 { echo "$as_me:$LINENO: result: no" >&5 7092echo "${ECHO_T}no" >&6; } 7093fi 7094 7095 7096# Extract the first word of "doxygen", so it can be a program name with args. 7097set dummy doxygen; ac_word=$2 7098{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7100if test "${ac_cv_path_DOXYGEN+set}" = set; then 7101 echo $ECHO_N "(cached) $ECHO_C" >&6 7102else 7103 case $DOXYGEN in 7104 [\\/]* | ?:[\\/]*) 7105 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7106 ;; 7107 *) 7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7109for as_dir in $PATH 7110do 7111 IFS=$as_save_IFS 7112 test -z "$as_dir" && as_dir=. 7113 for ac_exec_ext in '' $ac_executable_extensions; do 7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7115 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7117 break 2 7118 fi 7119done 7120done 7121IFS=$as_save_IFS 7122 7123 ;; 7124esac 7125fi 7126DOXYGEN=$ac_cv_path_DOXYGEN 7127if test -n "$DOXYGEN"; then 7128 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7129echo "${ECHO_T}$DOXYGEN" >&6; } 7130else 7131 { echo "$as_me:$LINENO: result: no" >&5 7132echo "${ECHO_T}no" >&6; } 7133fi 7134 7135 7136# Extract the first word of "groff", so it can be a program name with args. 7137set dummy groff; ac_word=$2 7138{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7140if test "${ac_cv_path_GROFF+set}" = set; then 7141 echo $ECHO_N "(cached) $ECHO_C" >&6 7142else 7143 case $GROFF in 7144 [\\/]* | ?:[\\/]*) 7145 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7146 ;; 7147 *) 7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7149for as_dir in $PATH 7150do 7151 IFS=$as_save_IFS 7152 test -z "$as_dir" && as_dir=. 7153 for ac_exec_ext in '' $ac_executable_extensions; do 7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7155 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7157 break 2 7158 fi 7159done 7160done 7161IFS=$as_save_IFS 7162 7163 ;; 7164esac 7165fi 7166GROFF=$ac_cv_path_GROFF 7167if test -n "$GROFF"; then 7168 { echo "$as_me:$LINENO: result: $GROFF" >&5 7169echo "${ECHO_T}$GROFF" >&6; } 7170else 7171 { echo "$as_me:$LINENO: result: no" >&5 7172echo "${ECHO_T}no" >&6; } 7173fi 7174 7175 7176# Extract the first word of "gzip", so it can be a program name with args. 7177set dummy gzip; ac_word=$2 7178{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7180if test "${ac_cv_path_GZIPBIN+set}" = set; then 7181 echo $ECHO_N "(cached) $ECHO_C" >&6 7182else 7183 case $GZIPBIN in 7184 [\\/]* | ?:[\\/]*) 7185 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7186 ;; 7187 *) 7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7189for as_dir in $PATH 7190do 7191 IFS=$as_save_IFS 7192 test -z "$as_dir" && as_dir=. 7193 for ac_exec_ext in '' $ac_executable_extensions; do 7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7195 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7197 break 2 7198 fi 7199done 7200done 7201IFS=$as_save_IFS 7202 7203 ;; 7204esac 7205fi 7206GZIPBIN=$ac_cv_path_GZIPBIN 7207if test -n "$GZIPBIN"; then 7208 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7209echo "${ECHO_T}$GZIPBIN" >&6; } 7210else 7211 { echo "$as_me:$LINENO: result: no" >&5 7212echo "${ECHO_T}no" >&6; } 7213fi 7214 7215 7216# Extract the first word of "pdfroff", so it can be a program name with args. 7217set dummy pdfroff; ac_word=$2 7218{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7220if test "${ac_cv_path_PDFROFF+set}" = set; then 7221 echo $ECHO_N "(cached) $ECHO_C" >&6 7222else 7223 case $PDFROFF in 7224 [\\/]* | ?:[\\/]*) 7225 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7226 ;; 7227 *) 7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7229for as_dir in $PATH 7230do 7231 IFS=$as_save_IFS 7232 test -z "$as_dir" && as_dir=. 7233 for ac_exec_ext in '' $ac_executable_extensions; do 7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7235 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7237 break 2 7238 fi 7239done 7240done 7241IFS=$as_save_IFS 7242 7243 ;; 7244esac 7245fi 7246PDFROFF=$ac_cv_path_PDFROFF 7247if test -n "$PDFROFF"; then 7248 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7249echo "${ECHO_T}$PDFROFF" >&6; } 7250else 7251 { echo "$as_me:$LINENO: result: no" >&5 7252echo "${ECHO_T}no" >&6; } 7253fi 7254 7255 7256# Extract the first word of "zip", so it can be a program name with args. 7257set dummy zip; ac_word=$2 7258{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7260if test "${ac_cv_path_ZIP+set}" = set; then 7261 echo $ECHO_N "(cached) $ECHO_C" >&6 7262else 7263 case $ZIP in 7264 [\\/]* | ?:[\\/]*) 7265 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7266 ;; 7267 *) 7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7269for as_dir in $PATH 7270do 7271 IFS=$as_save_IFS 7272 test -z "$as_dir" && as_dir=. 7273 for ac_exec_ext in '' $ac_executable_extensions; do 7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7275 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7277 break 2 7278 fi 7279done 7280done 7281IFS=$as_save_IFS 7282 7283 ;; 7284esac 7285fi 7286ZIP=$ac_cv_path_ZIP 7287if test -n "$ZIP"; then 7288 { echo "$as_me:$LINENO: result: $ZIP" >&5 7289echo "${ECHO_T}$ZIP" >&6; } 7290else 7291 { echo "$as_me:$LINENO: result: no" >&5 7292echo "${ECHO_T}no" >&6; } 7293fi 7294 7295 7296for ac_prog in ocamlc 7297do 7298 # Extract the first word of "$ac_prog", so it can be a program name with args. 7299set dummy $ac_prog; ac_word=$2 7300{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7302if test "${ac_cv_path_OCAMLC+set}" = set; then 7303 echo $ECHO_N "(cached) $ECHO_C" >&6 7304else 7305 case $OCAMLC in 7306 [\\/]* | ?:[\\/]*) 7307 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7308 ;; 7309 *) 7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7311for as_dir in $PATH 7312do 7313 IFS=$as_save_IFS 7314 test -z "$as_dir" && as_dir=. 7315 for ac_exec_ext in '' $ac_executable_extensions; do 7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7317 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7319 break 2 7320 fi 7321done 7322done 7323IFS=$as_save_IFS 7324 7325 ;; 7326esac 7327fi 7328OCAMLC=$ac_cv_path_OCAMLC 7329if test -n "$OCAMLC"; then 7330 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7331echo "${ECHO_T}$OCAMLC" >&6; } 7332else 7333 { echo "$as_me:$LINENO: result: no" >&5 7334echo "${ECHO_T}no" >&6; } 7335fi 7336 7337 7338 test -n "$OCAMLC" && break 7339done 7340 7341for ac_prog in ocamlopt 7342do 7343 # Extract the first word of "$ac_prog", so it can be a program name with args. 7344set dummy $ac_prog; ac_word=$2 7345{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7347if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7348 echo $ECHO_N "(cached) $ECHO_C" >&6 7349else 7350 case $OCAMLOPT in 7351 [\\/]* | ?:[\\/]*) 7352 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7353 ;; 7354 *) 7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356for as_dir in $PATH 7357do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7362 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366done 7367done 7368IFS=$as_save_IFS 7369 7370 ;; 7371esac 7372fi 7373OCAMLOPT=$ac_cv_path_OCAMLOPT 7374if test -n "$OCAMLOPT"; then 7375 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7376echo "${ECHO_T}$OCAMLOPT" >&6; } 7377else 7378 { echo "$as_me:$LINENO: result: no" >&5 7379echo "${ECHO_T}no" >&6; } 7380fi 7381 7382 7383 test -n "$OCAMLOPT" && break 7384done 7385 7386for ac_prog in ocamldep 7387do 7388 # Extract the first word of "$ac_prog", so it can be a program name with args. 7389set dummy $ac_prog; ac_word=$2 7390{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7392if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7393 echo $ECHO_N "(cached) $ECHO_C" >&6 7394else 7395 case $OCAMLDEP in 7396 [\\/]* | ?:[\\/]*) 7397 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7398 ;; 7399 *) 7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7401for as_dir in $PATH 7402do 7403 IFS=$as_save_IFS 7404 test -z "$as_dir" && as_dir=. 7405 for ac_exec_ext in '' $ac_executable_extensions; do 7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7407 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7409 break 2 7410 fi 7411done 7412done 7413IFS=$as_save_IFS 7414 7415 ;; 7416esac 7417fi 7418OCAMLDEP=$ac_cv_path_OCAMLDEP 7419if test -n "$OCAMLDEP"; then 7420 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7421echo "${ECHO_T}$OCAMLDEP" >&6; } 7422else 7423 { echo "$as_me:$LINENO: result: no" >&5 7424echo "${ECHO_T}no" >&6; } 7425fi 7426 7427 7428 test -n "$OCAMLDEP" && break 7429done 7430 7431for ac_prog in ocamldoc 7432do 7433 # Extract the first word of "$ac_prog", so it can be a program name with args. 7434set dummy $ac_prog; ac_word=$2 7435{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7437if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7438 echo $ECHO_N "(cached) $ECHO_C" >&6 7439else 7440 case $OCAMLDOC in 7441 [\\/]* | ?:[\\/]*) 7442 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7443 ;; 7444 *) 7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7446for as_dir in $PATH 7447do 7448 IFS=$as_save_IFS 7449 test -z "$as_dir" && as_dir=. 7450 for ac_exec_ext in '' $ac_executable_extensions; do 7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7452 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7454 break 2 7455 fi 7456done 7457done 7458IFS=$as_save_IFS 7459 7460 ;; 7461esac 7462fi 7463OCAMLDOC=$ac_cv_path_OCAMLDOC 7464if test -n "$OCAMLDOC"; then 7465 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7466echo "${ECHO_T}$OCAMLDOC" >&6; } 7467else 7468 { echo "$as_me:$LINENO: result: no" >&5 7469echo "${ECHO_T}no" >&6; } 7470fi 7471 7472 7473 test -n "$OCAMLDOC" && break 7474done 7475 7476for ac_prog in gas as 7477do 7478 # Extract the first word of "$ac_prog", so it can be a program name with args. 7479set dummy $ac_prog; ac_word=$2 7480{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7482if test "${ac_cv_path_GAS+set}" = set; then 7483 echo $ECHO_N "(cached) $ECHO_C" >&6 7484else 7485 case $GAS in 7486 [\\/]* | ?:[\\/]*) 7487 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7488 ;; 7489 *) 7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7491for as_dir in $PATH 7492do 7493 IFS=$as_save_IFS 7494 test -z "$as_dir" && as_dir=. 7495 for ac_exec_ext in '' $ac_executable_extensions; do 7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7497 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7499 break 2 7500 fi 7501done 7502done 7503IFS=$as_save_IFS 7504 7505 ;; 7506esac 7507fi 7508GAS=$ac_cv_path_GAS 7509if test -n "$GAS"; then 7510 { echo "$as_me:$LINENO: result: $GAS" >&5 7511echo "${ECHO_T}$GAS" >&6; } 7512else 7513 { echo "$as_me:$LINENO: result: no" >&5 7514echo "${ECHO_T}no" >&6; } 7515fi 7516 7517 7518 test -n "$GAS" && break 7519done 7520 7521 7522{ echo "$as_me:$LINENO: checking for linker version" >&5 7523echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7524if test "${llvm_cv_link_version+set}" = set; then 7525 echo $ECHO_N "(cached) $ECHO_C" >&6 7526else 7527 7528 version_string="$(ld -v 2>&1 | head -1)" 7529 7530 # Check for ld64. 7531 if (echo "$version_string" | grep -q "ld64"); then 7532 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7533 else 7534 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7535 fi 7536 7537fi 7538{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7539echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7540 7541cat >>confdefs.h <<_ACEOF 7542#define HOST_LINK_VERSION "$llvm_cv_link_version" 7543_ACEOF 7544 7545 7546 7547{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7548echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7549if test "${llvm_cv_link_use_r+set}" = set; then 7550 echo $ECHO_N "(cached) $ECHO_C" >&6 7551else 7552 ac_ext=c 7553ac_cpp='$CPP $CPPFLAGS' 7554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7556ac_compiler_gnu=$ac_cv_c_compiler_gnu 7557 7558 oldcflags="$CFLAGS" 7559 CFLAGS="$CFLAGS -Wl,-R." 7560 cat >conftest.$ac_ext <<_ACEOF 7561/* confdefs.h. */ 7562_ACEOF 7563cat confdefs.h >>conftest.$ac_ext 7564cat >>conftest.$ac_ext <<_ACEOF 7565/* end confdefs.h. */ 7566 7567int 7568main () 7569{ 7570 7571 ; 7572 return 0; 7573} 7574_ACEOF 7575rm -f conftest.$ac_objext conftest$ac_exeext 7576if { (ac_try="$ac_link" 7577case "(($ac_try" in 7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7579 *) ac_try_echo=$ac_try;; 7580esac 7581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7582 (eval "$ac_link") 2>conftest.er1 7583 ac_status=$? 7584 grep -v '^ *+' conftest.er1 >conftest.err 7585 rm -f conftest.er1 7586 cat conftest.err >&5 7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7588 (exit $ac_status); } && 7589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7590 { (case "(($ac_try" in 7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7592 *) ac_try_echo=$ac_try;; 7593esac 7594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7595 (eval "$ac_try") 2>&5 7596 ac_status=$? 7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7598 (exit $ac_status); }; } && 7599 { ac_try='test -s conftest$ac_exeext' 7600 { (case "(($ac_try" in 7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7602 *) ac_try_echo=$ac_try;; 7603esac 7604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7605 (eval "$ac_try") 2>&5 7606 ac_status=$? 7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7608 (exit $ac_status); }; }; then 7609 llvm_cv_link_use_r=yes 7610else 7611 echo "$as_me: failed program was:" >&5 7612sed 's/^/| /' conftest.$ac_ext >&5 7613 7614 llvm_cv_link_use_r=no 7615fi 7616 7617rm -f core conftest.err conftest.$ac_objext \ 7618 conftest$ac_exeext conftest.$ac_ext 7619 CFLAGS="$oldcflags" 7620 ac_ext=c 7621ac_cpp='$CPP $CPPFLAGS' 7622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7624ac_compiler_gnu=$ac_cv_c_compiler_gnu 7625 7626 7627fi 7628{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7629echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7630if test "$llvm_cv_link_use_r" = yes ; then 7631 7632cat >>confdefs.h <<\_ACEOF 7633#define HAVE_LINK_R 1 7634_ACEOF 7635 7636 fi 7637 7638 7639{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7640echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7641if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7642 echo $ECHO_N "(cached) $ECHO_C" >&6 7643else 7644 ac_ext=c 7645ac_cpp='$CPP $CPPFLAGS' 7646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7648ac_compiler_gnu=$ac_cv_c_compiler_gnu 7649 7650 oldcflags="$CFLAGS" 7651 CFLAGS="$CFLAGS -Wl,-export-dynamic" 7652 cat >conftest.$ac_ext <<_ACEOF 7653/* confdefs.h. */ 7654_ACEOF 7655cat confdefs.h >>conftest.$ac_ext 7656cat >>conftest.$ac_ext <<_ACEOF 7657/* end confdefs.h. */ 7658 7659int 7660main () 7661{ 7662 7663 ; 7664 return 0; 7665} 7666_ACEOF 7667rm -f conftest.$ac_objext conftest$ac_exeext 7668if { (ac_try="$ac_link" 7669case "(($ac_try" in 7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7671 *) ac_try_echo=$ac_try;; 7672esac 7673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7674 (eval "$ac_link") 2>conftest.er1 7675 ac_status=$? 7676 grep -v '^ *+' conftest.er1 >conftest.err 7677 rm -f conftest.er1 7678 cat conftest.err >&5 7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7680 (exit $ac_status); } && 7681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7682 { (case "(($ac_try" in 7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7684 *) ac_try_echo=$ac_try;; 7685esac 7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7687 (eval "$ac_try") 2>&5 7688 ac_status=$? 7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7690 (exit $ac_status); }; } && 7691 { ac_try='test -s conftest$ac_exeext' 7692 { (case "(($ac_try" in 7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7694 *) ac_try_echo=$ac_try;; 7695esac 7696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7697 (eval "$ac_try") 2>&5 7698 ac_status=$? 7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7700 (exit $ac_status); }; }; then 7701 llvm_cv_link_use_export_dynamic=yes 7702else 7703 echo "$as_me: failed program was:" >&5 7704sed 's/^/| /' conftest.$ac_ext >&5 7705 7706 llvm_cv_link_use_export_dynamic=no 7707fi 7708 7709rm -f core conftest.err conftest.$ac_objext \ 7710 conftest$ac_exeext conftest.$ac_ext 7711 CFLAGS="$oldcflags" 7712 ac_ext=c 7713ac_cpp='$CPP $CPPFLAGS' 7714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7716ac_compiler_gnu=$ac_cv_c_compiler_gnu 7717 7718 7719fi 7720{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 7721echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 7722if test "$llvm_cv_link_use_export_dynamic" = yes ; then 7723 7724cat >>confdefs.h <<\_ACEOF 7725#define HAVE_LINK_EXPORT_DYNAMIC 1 7726_ACEOF 7727 7728 fi 7729 7730 7731{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 7732echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 7733if test "${llvm_cv_link_use_version_script+set}" = set; then 7734 echo $ECHO_N "(cached) $ECHO_C" >&6 7735else 7736 ac_ext=c 7737ac_cpp='$CPP $CPPFLAGS' 7738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7740ac_compiler_gnu=$ac_cv_c_compiler_gnu 7741 7742 oldcflags="$CFLAGS" 7743 7744 # The following code is from the autoconf manual, 7745 # "11.13: Limitations of Usual Tools". 7746 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7747 # Use mktemp if possible; otherwise fall back on mkdir, 7748 # with $RANDOM to make collisions less likely. 7749 : ${TMPDIR=/tmp} 7750 { 7751 tmp=` 7752 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7753 ` && 7754 test -n "$tmp" && test -d "$tmp" 7755 } || { 7756 tmp=$TMPDIR/foo$$-$RANDOM 7757 (umask 077 && mkdir "$tmp") 7758 } || exit $? 7759 7760 echo "{" > "$tmp/export.map" 7761 echo " global: main;" >> "$tmp/export.map" 7762 echo " local: *;" >> "$tmp/export.map" 7763 echo "};" >> "$tmp/export.map" 7764 7765 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7766 cat >conftest.$ac_ext <<_ACEOF 7767/* confdefs.h. */ 7768_ACEOF 7769cat confdefs.h >>conftest.$ac_ext 7770cat >>conftest.$ac_ext <<_ACEOF 7771/* end confdefs.h. */ 7772 7773int 7774main () 7775{ 7776 7777 ; 7778 return 0; 7779} 7780_ACEOF 7781rm -f conftest.$ac_objext conftest$ac_exeext 7782if { (ac_try="$ac_link" 7783case "(($ac_try" in 7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7785 *) ac_try_echo=$ac_try;; 7786esac 7787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7788 (eval "$ac_link") 2>conftest.er1 7789 ac_status=$? 7790 grep -v '^ *+' conftest.er1 >conftest.err 7791 rm -f conftest.er1 7792 cat conftest.err >&5 7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7794 (exit $ac_status); } && 7795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7796 { (case "(($ac_try" in 7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7798 *) ac_try_echo=$ac_try;; 7799esac 7800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7801 (eval "$ac_try") 2>&5 7802 ac_status=$? 7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7804 (exit $ac_status); }; } && 7805 { ac_try='test -s conftest$ac_exeext' 7806 { (case "(($ac_try" in 7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7808 *) ac_try_echo=$ac_try;; 7809esac 7810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7811 (eval "$ac_try") 2>&5 7812 ac_status=$? 7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7814 (exit $ac_status); }; }; then 7815 llvm_cv_link_use_version_script=yes 7816else 7817 echo "$as_me: failed program was:" >&5 7818sed 's/^/| /' conftest.$ac_ext >&5 7819 7820 llvm_cv_link_use_version_script=no 7821fi 7822 7823rm -f core conftest.err conftest.$ac_objext \ 7824 conftest$ac_exeext conftest.$ac_ext 7825 rm "$tmp/export.map" 7826 rmdir "$tmp" 7827 CFLAGS="$oldcflags" 7828 ac_ext=c 7829ac_cpp='$CPP $CPPFLAGS' 7830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7832ac_compiler_gnu=$ac_cv_c_compiler_gnu 7833 7834 7835fi 7836{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 7837echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 7838if test "$llvm_cv_link_use_version_script" = yes ; then 7839 HAVE_LINK_VERSION_SCRIPT=1 7840 7841 fi 7842 7843 7844 7845 7846{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7847echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 7848if test "${ac_cv_c_const+set}" = set; then 7849 echo $ECHO_N "(cached) $ECHO_C" >&6 7850else 7851 cat >conftest.$ac_ext <<_ACEOF 7852/* confdefs.h. */ 7853_ACEOF 7854cat confdefs.h >>conftest.$ac_ext 7855cat >>conftest.$ac_ext <<_ACEOF 7856/* end confdefs.h. */ 7857 7858int 7859main () 7860{ 7861/* FIXME: Include the comments suggested by Paul. */ 7862#ifndef __cplusplus 7863 /* Ultrix mips cc rejects this. */ 7864 typedef int charset[2]; 7865 const charset x; 7866 /* SunOS 4.1.1 cc rejects this. */ 7867 char const *const *ccp; 7868 char **p; 7869 /* NEC SVR4.0.2 mips cc rejects this. */ 7870 struct point {int x, y;}; 7871 static struct point const zero = {0,0}; 7872 /* AIX XL C 1.02.0.0 rejects this. 7873 It does not let you subtract one const X* pointer from another in 7874 an arm of an if-expression whose if-part is not a constant 7875 expression */ 7876 const char *g = "string"; 7877 ccp = &g + (g ? g-g : 0); 7878 /* HPUX 7.0 cc rejects these. */ 7879 ++ccp; 7880 p = (char**) ccp; 7881 ccp = (char const *const *) p; 7882 { /* SCO 3.2v4 cc rejects this. */ 7883 char *t; 7884 char const *s = 0 ? (char *) 0 : (char const *) 0; 7885 7886 *t++ = 0; 7887 if (s) return 0; 7888 } 7889 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7890 int x[] = {25, 17}; 7891 const int *foo = &x[0]; 7892 ++foo; 7893 } 7894 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7895 typedef const int *iptr; 7896 iptr p = 0; 7897 ++p; 7898 } 7899 { /* AIX XL C 1.02.0.0 rejects this saying 7900 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7901 struct s { int j; const int *ap[3]; }; 7902 struct s *b; b->j = 5; 7903 } 7904 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7905 const int foo = 10; 7906 if (!foo) return 0; 7907 } 7908 return !x[0] && !zero.x; 7909#endif 7910 7911 ; 7912 return 0; 7913} 7914_ACEOF 7915rm -f conftest.$ac_objext 7916if { (ac_try="$ac_compile" 7917case "(($ac_try" in 7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7919 *) ac_try_echo=$ac_try;; 7920esac 7921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7922 (eval "$ac_compile") 2>conftest.er1 7923 ac_status=$? 7924 grep -v '^ *+' conftest.er1 >conftest.err 7925 rm -f conftest.er1 7926 cat conftest.err >&5 7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7928 (exit $ac_status); } && 7929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7930 { (case "(($ac_try" in 7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7932 *) ac_try_echo=$ac_try;; 7933esac 7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7935 (eval "$ac_try") 2>&5 7936 ac_status=$? 7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7938 (exit $ac_status); }; } && 7939 { ac_try='test -s conftest.$ac_objext' 7940 { (case "(($ac_try" in 7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7942 *) ac_try_echo=$ac_try;; 7943esac 7944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7945 (eval "$ac_try") 2>&5 7946 ac_status=$? 7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7948 (exit $ac_status); }; }; then 7949 ac_cv_c_const=yes 7950else 7951 echo "$as_me: failed program was:" >&5 7952sed 's/^/| /' conftest.$ac_ext >&5 7953 7954 ac_cv_c_const=no 7955fi 7956 7957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7958fi 7959{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 7960echo "${ECHO_T}$ac_cv_c_const" >&6; } 7961if test $ac_cv_c_const = no; then 7962 7963cat >>confdefs.h <<\_ACEOF 7964#define const 7965_ACEOF 7966 7967fi 7968 7969 7970 7971 7972 7973 7974ac_header_dirent=no 7975for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 7976 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 7977{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 7978echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 7979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7980 echo $ECHO_N "(cached) $ECHO_C" >&6 7981else 7982 cat >conftest.$ac_ext <<_ACEOF 7983/* confdefs.h. */ 7984_ACEOF 7985cat confdefs.h >>conftest.$ac_ext 7986cat >>conftest.$ac_ext <<_ACEOF 7987/* end confdefs.h. */ 7988#include <sys/types.h> 7989#include <$ac_hdr> 7990 7991int 7992main () 7993{ 7994if ((DIR *) 0) 7995return 0; 7996 ; 7997 return 0; 7998} 7999_ACEOF 8000rm -f conftest.$ac_objext 8001if { (ac_try="$ac_compile" 8002case "(($ac_try" in 8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8004 *) ac_try_echo=$ac_try;; 8005esac 8006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8007 (eval "$ac_compile") 2>conftest.er1 8008 ac_status=$? 8009 grep -v '^ *+' conftest.er1 >conftest.err 8010 rm -f conftest.er1 8011 cat conftest.err >&5 8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8013 (exit $ac_status); } && 8014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8015 { (case "(($ac_try" in 8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8017 *) ac_try_echo=$ac_try;; 8018esac 8019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8020 (eval "$ac_try") 2>&5 8021 ac_status=$? 8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8023 (exit $ac_status); }; } && 8024 { ac_try='test -s conftest.$ac_objext' 8025 { (case "(($ac_try" in 8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8027 *) ac_try_echo=$ac_try;; 8028esac 8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8030 (eval "$ac_try") 2>&5 8031 ac_status=$? 8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8033 (exit $ac_status); }; }; then 8034 eval "$as_ac_Header=yes" 8035else 8036 echo "$as_me: failed program was:" >&5 8037sed 's/^/| /' conftest.$ac_ext >&5 8038 8039 eval "$as_ac_Header=no" 8040fi 8041 8042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8043fi 8044ac_res=`eval echo '${'$as_ac_Header'}'` 8045 { echo "$as_me:$LINENO: result: $ac_res" >&5 8046echo "${ECHO_T}$ac_res" >&6; } 8047if test `eval echo '${'$as_ac_Header'}'` = yes; then 8048 cat >>confdefs.h <<_ACEOF 8049#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8050_ACEOF 8051 8052ac_header_dirent=$ac_hdr; break 8053fi 8054 8055done 8056# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8057if test $ac_header_dirent = dirent.h; then 8058 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8059echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8060if test "${ac_cv_search_opendir+set}" = set; then 8061 echo $ECHO_N "(cached) $ECHO_C" >&6 8062else 8063 ac_func_search_save_LIBS=$LIBS 8064cat >conftest.$ac_ext <<_ACEOF 8065/* confdefs.h. */ 8066_ACEOF 8067cat confdefs.h >>conftest.$ac_ext 8068cat >>conftest.$ac_ext <<_ACEOF 8069/* end confdefs.h. */ 8070 8071/* Override any GCC internal prototype to avoid an error. 8072 Use char because int might match the return type of a GCC 8073 builtin and then its argument prototype would still apply. */ 8074#ifdef __cplusplus 8075extern "C" 8076#endif 8077char opendir (); 8078int 8079main () 8080{ 8081return opendir (); 8082 ; 8083 return 0; 8084} 8085_ACEOF 8086for ac_lib in '' dir; do 8087 if test -z "$ac_lib"; then 8088 ac_res="none required" 8089 else 8090 ac_res=-l$ac_lib 8091 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8092 fi 8093 rm -f conftest.$ac_objext conftest$ac_exeext 8094if { (ac_try="$ac_link" 8095case "(($ac_try" in 8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8097 *) ac_try_echo=$ac_try;; 8098esac 8099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8100 (eval "$ac_link") 2>conftest.er1 8101 ac_status=$? 8102 grep -v '^ *+' conftest.er1 >conftest.err 8103 rm -f conftest.er1 8104 cat conftest.err >&5 8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8106 (exit $ac_status); } && 8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8108 { (case "(($ac_try" in 8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8110 *) ac_try_echo=$ac_try;; 8111esac 8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8113 (eval "$ac_try") 2>&5 8114 ac_status=$? 8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8116 (exit $ac_status); }; } && 8117 { ac_try='test -s conftest$ac_exeext' 8118 { (case "(($ac_try" in 8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8120 *) ac_try_echo=$ac_try;; 8121esac 8122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8123 (eval "$ac_try") 2>&5 8124 ac_status=$? 8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8126 (exit $ac_status); }; }; then 8127 ac_cv_search_opendir=$ac_res 8128else 8129 echo "$as_me: failed program was:" >&5 8130sed 's/^/| /' conftest.$ac_ext >&5 8131 8132 8133fi 8134 8135rm -f core conftest.err conftest.$ac_objext \ 8136 conftest$ac_exeext 8137 if test "${ac_cv_search_opendir+set}" = set; then 8138 break 8139fi 8140done 8141if test "${ac_cv_search_opendir+set}" = set; then 8142 : 8143else 8144 ac_cv_search_opendir=no 8145fi 8146rm conftest.$ac_ext 8147LIBS=$ac_func_search_save_LIBS 8148fi 8149{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8150echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8151ac_res=$ac_cv_search_opendir 8152if test "$ac_res" != no; then 8153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8154 8155fi 8156 8157else 8158 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8159echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8160if test "${ac_cv_search_opendir+set}" = set; then 8161 echo $ECHO_N "(cached) $ECHO_C" >&6 8162else 8163 ac_func_search_save_LIBS=$LIBS 8164cat >conftest.$ac_ext <<_ACEOF 8165/* confdefs.h. */ 8166_ACEOF 8167cat confdefs.h >>conftest.$ac_ext 8168cat >>conftest.$ac_ext <<_ACEOF 8169/* end confdefs.h. */ 8170 8171/* Override any GCC internal prototype to avoid an error. 8172 Use char because int might match the return type of a GCC 8173 builtin and then its argument prototype would still apply. */ 8174#ifdef __cplusplus 8175extern "C" 8176#endif 8177char opendir (); 8178int 8179main () 8180{ 8181return opendir (); 8182 ; 8183 return 0; 8184} 8185_ACEOF 8186for ac_lib in '' x; do 8187 if test -z "$ac_lib"; then 8188 ac_res="none required" 8189 else 8190 ac_res=-l$ac_lib 8191 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8192 fi 8193 rm -f conftest.$ac_objext conftest$ac_exeext 8194if { (ac_try="$ac_link" 8195case "(($ac_try" in 8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8197 *) ac_try_echo=$ac_try;; 8198esac 8199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8200 (eval "$ac_link") 2>conftest.er1 8201 ac_status=$? 8202 grep -v '^ *+' conftest.er1 >conftest.err 8203 rm -f conftest.er1 8204 cat conftest.err >&5 8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8206 (exit $ac_status); } && 8207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8208 { (case "(($ac_try" in 8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8210 *) ac_try_echo=$ac_try;; 8211esac 8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8213 (eval "$ac_try") 2>&5 8214 ac_status=$? 8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 (exit $ac_status); }; } && 8217 { ac_try='test -s conftest$ac_exeext' 8218 { (case "(($ac_try" in 8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8220 *) ac_try_echo=$ac_try;; 8221esac 8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8223 (eval "$ac_try") 2>&5 8224 ac_status=$? 8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8226 (exit $ac_status); }; }; then 8227 ac_cv_search_opendir=$ac_res 8228else 8229 echo "$as_me: failed program was:" >&5 8230sed 's/^/| /' conftest.$ac_ext >&5 8231 8232 8233fi 8234 8235rm -f core conftest.err conftest.$ac_objext \ 8236 conftest$ac_exeext 8237 if test "${ac_cv_search_opendir+set}" = set; then 8238 break 8239fi 8240done 8241if test "${ac_cv_search_opendir+set}" = set; then 8242 : 8243else 8244 ac_cv_search_opendir=no 8245fi 8246rm conftest.$ac_ext 8247LIBS=$ac_func_search_save_LIBS 8248fi 8249{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8250echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8251ac_res=$ac_cv_search_opendir 8252if test "$ac_res" != no; then 8253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8254 8255fi 8256 8257fi 8258 8259 8260for ac_header in dlfcn.h 8261do 8262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8264 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8267 echo $ECHO_N "(cached) $ECHO_C" >&6 8268fi 8269ac_res=`eval echo '${'$as_ac_Header'}'` 8270 { echo "$as_me:$LINENO: result: $ac_res" >&5 8271echo "${ECHO_T}$ac_res" >&6; } 8272else 8273 # Is the header compilable? 8274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8276cat >conftest.$ac_ext <<_ACEOF 8277/* confdefs.h. */ 8278_ACEOF 8279cat confdefs.h >>conftest.$ac_ext 8280cat >>conftest.$ac_ext <<_ACEOF 8281/* end confdefs.h. */ 8282$ac_includes_default 8283#include <$ac_header> 8284_ACEOF 8285rm -f conftest.$ac_objext 8286if { (ac_try="$ac_compile" 8287case "(($ac_try" in 8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8289 *) ac_try_echo=$ac_try;; 8290esac 8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8292 (eval "$ac_compile") 2>conftest.er1 8293 ac_status=$? 8294 grep -v '^ *+' conftest.er1 >conftest.err 8295 rm -f conftest.er1 8296 cat conftest.err >&5 8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8298 (exit $ac_status); } && 8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8300 { (case "(($ac_try" in 8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8302 *) ac_try_echo=$ac_try;; 8303esac 8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8305 (eval "$ac_try") 2>&5 8306 ac_status=$? 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8308 (exit $ac_status); }; } && 8309 { ac_try='test -s conftest.$ac_objext' 8310 { (case "(($ac_try" in 8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8312 *) ac_try_echo=$ac_try;; 8313esac 8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8315 (eval "$ac_try") 2>&5 8316 ac_status=$? 8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8318 (exit $ac_status); }; }; then 8319 ac_header_compiler=yes 8320else 8321 echo "$as_me: failed program was:" >&5 8322sed 's/^/| /' conftest.$ac_ext >&5 8323 8324 ac_header_compiler=no 8325fi 8326 8327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8329echo "${ECHO_T}$ac_header_compiler" >&6; } 8330 8331# Is the header present? 8332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8334cat >conftest.$ac_ext <<_ACEOF 8335/* confdefs.h. */ 8336_ACEOF 8337cat confdefs.h >>conftest.$ac_ext 8338cat >>conftest.$ac_ext <<_ACEOF 8339/* end confdefs.h. */ 8340#include <$ac_header> 8341_ACEOF 8342if { (ac_try="$ac_cpp conftest.$ac_ext" 8343case "(($ac_try" in 8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8345 *) ac_try_echo=$ac_try;; 8346esac 8347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8349 ac_status=$? 8350 grep -v '^ *+' conftest.er1 >conftest.err 8351 rm -f conftest.er1 8352 cat conftest.err >&5 8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8354 (exit $ac_status); } >/dev/null; then 8355 if test -s conftest.err; then 8356 ac_cpp_err=$ac_c_preproc_warn_flag 8357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8358 else 8359 ac_cpp_err= 8360 fi 8361else 8362 ac_cpp_err=yes 8363fi 8364if test -z "$ac_cpp_err"; then 8365 ac_header_preproc=yes 8366else 8367 echo "$as_me: failed program was:" >&5 8368sed 's/^/| /' conftest.$ac_ext >&5 8369 8370 ac_header_preproc=no 8371fi 8372 8373rm -f conftest.err conftest.$ac_ext 8374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8375echo "${ECHO_T}$ac_header_preproc" >&6; } 8376 8377# So? What about this header? 8378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8379 yes:no: ) 8380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8384 ac_header_preproc=yes 8385 ;; 8386 no:yes:* ) 8387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8399 ( cat <<\_ASBOX 8400## ------------------------------------ ## 8401## Report this to http://llvm.org/bugs/ ## 8402## ------------------------------------ ## 8403_ASBOX 8404 ) | sed "s/^/$as_me: WARNING: /" >&2 8405 ;; 8406esac 8407{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8410 echo $ECHO_N "(cached) $ECHO_C" >&6 8411else 8412 eval "$as_ac_Header=\$ac_header_preproc" 8413fi 8414ac_res=`eval echo '${'$as_ac_Header'}'` 8415 { echo "$as_me:$LINENO: result: $ac_res" >&5 8416echo "${ECHO_T}$ac_res" >&6; } 8417 8418fi 8419if test `eval echo '${'$as_ac_Header'}'` = yes; then 8420 cat >>confdefs.h <<_ACEOF 8421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8422_ACEOF 8423 8424fi 8425 8426done 8427 8428# Check whether --enable-ltdl-install was given. 8429if test "${enable_ltdl_install+set}" = set; then 8430 enableval=$enable_ltdl_install; 8431fi 8432 8433 8434 8435 8436if test x"${enable_ltdl_install-no}" != xno; then 8437 INSTALL_LTDL_TRUE= 8438 INSTALL_LTDL_FALSE='#' 8439else 8440 INSTALL_LTDL_TRUE='#' 8441 INSTALL_LTDL_FALSE= 8442fi 8443 8444 8445 8446if test x"${enable_ltdl_convenience-no}" != xno; then 8447 CONVENIENCE_LTDL_TRUE= 8448 CONVENIENCE_LTDL_FALSE='#' 8449else 8450 CONVENIENCE_LTDL_TRUE='#' 8451 CONVENIENCE_LTDL_FALSE= 8452fi 8453 8454 8455{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8456echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8457library_names_spec= 8458libname_spec='lib$name' 8459soname_spec= 8460shrext_cmds=".so" 8461postinstall_cmds= 8462postuninstall_cmds= 8463finish_cmds= 8464finish_eval= 8465shlibpath_var= 8466shlibpath_overrides_runpath=unknown 8467version_type=none 8468dynamic_linker="$host_os ld.so" 8469sys_lib_dlsearch_path_spec="/lib /usr/lib" 8470if test "$GCC" = yes; then 8471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8472 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8473 # if the path contains ";" then we assume it to be the separator 8474 # otherwise default to the standard path separator (i.e. ":") - it is 8475 # assumed that no part of a normal pathname contains ";" but that should 8476 # okay in the real world where ";" in dirpaths is itself problematic. 8477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8478 else 8479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8480 fi 8481else 8482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8483fi 8484need_lib_prefix=unknown 8485hardcode_into_libs=no 8486 8487# when you set need_version to no, make sure it does not cause -set_version 8488# flags to be left without arguments 8489need_version=unknown 8490 8491case $host_os in 8492aix3*) 8493 version_type=linux 8494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8495 shlibpath_var=LIBPATH 8496 8497 # AIX 3 has no versioning support, so we append a major version to the name. 8498 soname_spec='${libname}${release}${shared_ext}$major' 8499 ;; 8500 8501aix4* | aix5*) 8502 version_type=linux 8503 need_lib_prefix=no 8504 need_version=no 8505 hardcode_into_libs=yes 8506 if test "$host_cpu" = ia64; then 8507 # AIX 5 supports IA64 8508 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8509 shlibpath_var=LD_LIBRARY_PATH 8510 else 8511 # With GCC up to 2.95.x, collect2 would create an import file 8512 # for dependence libraries. The import file would start with 8513 # the line `#! .'. This would cause the generated library to 8514 # depend on `.', always an invalid library. This was fixed in 8515 # development snapshots of GCC prior to 3.0. 8516 case $host_os in 8517 aix4 | aix4.[01] | aix4.[01].*) 8518 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8519 echo ' yes ' 8520 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8521 : 8522 else 8523 can_build_shared=no 8524 fi 8525 ;; 8526 esac 8527 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8528 # soname into executable. Probably we can add versioning support to 8529 # collect2, so additional links can be useful in future. 8530 if test "$aix_use_runtimelinking" = yes; then 8531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8532 # instead of lib<name>.a to let people know that these are not 8533 # typical AIX shared libraries. 8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8535 else 8536 # We preserve .a as extension for shared libraries through AIX4.2 8537 # and later when we are not doing run time linking. 8538 library_names_spec='${libname}${release}.a $libname.a' 8539 soname_spec='${libname}${release}${shared_ext}$major' 8540 fi 8541 shlibpath_var=LIBPATH 8542 fi 8543 ;; 8544 8545amigaos*) 8546 library_names_spec='$libname.ixlibrary $libname.a' 8547 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8548 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 8549 ;; 8550 8551beos*) 8552 library_names_spec='${libname}${shared_ext}' 8553 dynamic_linker="$host_os ld.so" 8554 shlibpath_var=LIBRARY_PATH 8555 ;; 8556 8557bsdi[45]*) 8558 version_type=linux 8559 need_version=no 8560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8561 soname_spec='${libname}${release}${shared_ext}$major' 8562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8563 shlibpath_var=LD_LIBRARY_PATH 8564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8566 # the default ld.so.conf also contains /usr/contrib/lib and 8567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8568 # libtool to hard-code these into programs 8569 ;; 8570 8571cygwin* | mingw* | pw32*) 8572 version_type=windows 8573 shrext_cmds=".dll" 8574 need_version=no 8575 need_lib_prefix=no 8576 8577 case $GCC,$host_os in 8578 yes,cygwin* | yes,mingw* | yes,pw32*) 8579 library_names_spec='$libname.dll.a' 8580 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8581 postinstall_cmds='base_file=`basename \${file}`~ 8582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8583 dldir=$destdir/`dirname \$dlpath`~ 8584 test -d \$dldir || mkdir -p \$dldir~ 8585 $install_prog $dir/$dlname \$dldir/$dlname~ 8586 chmod a+x \$dldir/$dlname' 8587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8588 dlpath=$dir/\$dldll~ 8589 $rm \$dlpath' 8590 shlibpath_overrides_runpath=yes 8591 8592 case $host_os in 8593 cygwin*) 8594 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8596 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8597 ;; 8598 mingw*) 8599 # MinGW DLLs use traditional 'lib' prefix 8600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8602 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8603 # It is most probably a Windows format PATH printed by 8604 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8605 # path with ; separators, and with drive letters. We can handle the 8606 # drive letters (cygwin fileutils understands them), so leave them, 8607 # especially as we might pass files found there to a mingw objdump, 8608 # which wouldn't understand a cygwinified path. Ahh. 8609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8610 else 8611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8612 fi 8613 ;; 8614 pw32*) 8615 # pw32 DLLs use 'pw' prefix rather than 'lib' 8616 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8617 ;; 8618 esac 8619 ;; 8620 8621 *) 8622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8623 ;; 8624 esac 8625 dynamic_linker='Win32 ld.exe' 8626 # FIXME: first we should search . and the directory the executable is in 8627 shlibpath_var=PATH 8628 ;; 8629 8630darwin* | rhapsody*) 8631 dynamic_linker="$host_os dyld" 8632 version_type=darwin 8633 need_lib_prefix=no 8634 need_version=no 8635 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8636 soname_spec='${libname}${release}${major}$shared_ext' 8637 shlibpath_overrides_runpath=yes 8638 shlibpath_var=DYLD_LIBRARY_PATH 8639 shrext_cmds='.dylib' 8640 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8641 if test "$GCC" = yes; then 8642 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8643 else 8644 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8645 fi 8646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8647 ;; 8648 8649dgux*) 8650 version_type=linux 8651 need_lib_prefix=no 8652 need_version=no 8653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8654 soname_spec='${libname}${release}${shared_ext}$major' 8655 shlibpath_var=LD_LIBRARY_PATH 8656 ;; 8657 8658freebsd1.*) 8659 dynamic_linker=no 8660 ;; 8661 8662kfreebsd*-gnu) 8663 version_type=linux 8664 need_lib_prefix=no 8665 need_version=no 8666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8667 soname_spec='${libname}${release}${shared_ext}$major' 8668 shlibpath_var=LD_LIBRARY_PATH 8669 shlibpath_overrides_runpath=no 8670 hardcode_into_libs=yes 8671 dynamic_linker='GNU ld.so' 8672 ;; 8673 8674freebsd* | dragonfly*) 8675 # DragonFly does not have aout. When/if they implement a new 8676 # versioning mechanism, adjust this. 8677 if test -x /usr/bin/objformat; then 8678 objformat=`/usr/bin/objformat` 8679 else 8680 case $host_os in 8681 freebsd[123].*) objformat=aout ;; 8682 *) objformat=elf ;; 8683 esac 8684 fi 8685 version_type=freebsd-$objformat 8686 case $version_type in 8687 freebsd-elf*) 8688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8689 need_version=no 8690 need_lib_prefix=no 8691 ;; 8692 freebsd-*) 8693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8694 need_version=yes 8695 ;; 8696 esac 8697 shlibpath_var=LD_LIBRARY_PATH 8698 case $host_os in 8699 freebsd2.*) 8700 shlibpath_overrides_runpath=yes 8701 ;; 8702 freebsd3.[01]* | freebsdelf3.[01]*) 8703 shlibpath_overrides_runpath=yes 8704 hardcode_into_libs=yes 8705 ;; 8706 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8707 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8708 shlibpath_overrides_runpath=no 8709 hardcode_into_libs=yes 8710 ;; 8711 freebsd*) # from 4.6 on 8712 shlibpath_overrides_runpath=yes 8713 hardcode_into_libs=yes 8714 ;; 8715 esac 8716 ;; 8717 8718gnu*) 8719 version_type=linux 8720 need_lib_prefix=no 8721 need_version=no 8722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8723 soname_spec='${libname}${release}${shared_ext}$major' 8724 shlibpath_var=LD_LIBRARY_PATH 8725 hardcode_into_libs=yes 8726 ;; 8727 8728hpux9* | hpux10* | hpux11*) 8729 # Give a soname corresponding to the major version so that dld.sl refuses to 8730 # link against other versions. 8731 version_type=sunos 8732 need_lib_prefix=no 8733 need_version=no 8734 case $host_cpu in 8735 ia64*) 8736 shrext_cmds='.so' 8737 hardcode_into_libs=yes 8738 dynamic_linker="$host_os dld.so" 8739 shlibpath_var=LD_LIBRARY_PATH 8740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8742 soname_spec='${libname}${release}${shared_ext}$major' 8743 if test "X$HPUX_IA64_MODE" = X32; then 8744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8745 else 8746 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8747 fi 8748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8749 ;; 8750 hppa*64*) 8751 shrext_cmds='.sl' 8752 hardcode_into_libs=yes 8753 dynamic_linker="$host_os dld.sl" 8754 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8757 soname_spec='${libname}${release}${shared_ext}$major' 8758 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8760 ;; 8761 *) 8762 shrext_cmds='.sl' 8763 dynamic_linker="$host_os dld.sl" 8764 shlibpath_var=SHLIB_PATH 8765 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8767 soname_spec='${libname}${release}${shared_ext}$major' 8768 ;; 8769 esac 8770 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8771 postinstall_cmds='chmod 555 $lib' 8772 ;; 8773 8774interix3*) 8775 version_type=linux 8776 need_lib_prefix=no 8777 need_version=no 8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8779 soname_spec='${libname}${release}${shared_ext}$major' 8780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8781 shlibpath_var=LD_LIBRARY_PATH 8782 shlibpath_overrides_runpath=no 8783 hardcode_into_libs=yes 8784 ;; 8785 8786irix5* | irix6* | nonstopux*) 8787 case $host_os in 8788 nonstopux*) version_type=nonstopux ;; 8789 *) 8790 if test "$lt_cv_prog_gnu_ld" = yes; then 8791 version_type=linux 8792 else 8793 version_type=irix 8794 fi ;; 8795 esac 8796 need_lib_prefix=no 8797 need_version=no 8798 soname_spec='${libname}${release}${shared_ext}$major' 8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8800 case $host_os in 8801 irix5* | nonstopux*) 8802 libsuff= shlibsuff= 8803 ;; 8804 *) 8805 case $LD in # libtool.m4 will add one of these switches to LD 8806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8807 libsuff= shlibsuff= libmagic=32-bit;; 8808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8809 libsuff=32 shlibsuff=N32 libmagic=N32;; 8810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8811 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8812 *) libsuff= shlibsuff= libmagic=never-match;; 8813 esac 8814 ;; 8815 esac 8816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8817 shlibpath_overrides_runpath=no 8818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8820 hardcode_into_libs=yes 8821 ;; 8822 8823# No shared lib support for Linux oldld, aout, or coff. 8824linux*oldld* | linux*aout* | linux*coff*) 8825 dynamic_linker=no 8826 ;; 8827 8828# This must be Linux ELF. 8829linux*) 8830 version_type=linux 8831 need_lib_prefix=no 8832 need_version=no 8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8834 soname_spec='${libname}${release}${shared_ext}$major' 8835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8836 shlibpath_var=LD_LIBRARY_PATH 8837 shlibpath_overrides_runpath=no 8838 # This implies no fast_install, which is unacceptable. 8839 # Some rework will be needed to allow for fast_install 8840 # before this can be enabled. 8841 hardcode_into_libs=yes 8842 8843 # Append ld.so.conf contents to the search path 8844 if test -f /etc/ld.so.conf; then 8845 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8847 fi 8848 8849 # We used to test for /lib/ld.so.1 and disable shared libraries on 8850 # powerpc, because MkLinux only supported shared libraries with the 8851 # GNU dynamic linker. Since this was broken with cross compilers, 8852 # most powerpc-linux boxes support dynamic linking these days and 8853 # people can always --disable-shared, the test was removed, and we 8854 # assume the GNU/Linux dynamic linker is in use. 8855 dynamic_linker='GNU/Linux ld.so' 8856 ;; 8857 8858knetbsd*-gnu) 8859 version_type=linux 8860 need_lib_prefix=no 8861 need_version=no 8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8863 soname_spec='${libname}${release}${shared_ext}$major' 8864 shlibpath_var=LD_LIBRARY_PATH 8865 shlibpath_overrides_runpath=no 8866 hardcode_into_libs=yes 8867 dynamic_linker='GNU ld.so' 8868 ;; 8869 8870netbsd*) 8871 version_type=sunos 8872 need_lib_prefix=no 8873 need_version=no 8874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8877 dynamic_linker='NetBSD (a.out) ld.so' 8878 else 8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8880 soname_spec='${libname}${release}${shared_ext}$major' 8881 dynamic_linker='NetBSD ld.elf_so' 8882 fi 8883 shlibpath_var=LD_LIBRARY_PATH 8884 shlibpath_overrides_runpath=yes 8885 hardcode_into_libs=yes 8886 ;; 8887 8888newsos6) 8889 version_type=linux 8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8891 shlibpath_var=LD_LIBRARY_PATH 8892 shlibpath_overrides_runpath=yes 8893 ;; 8894 8895nto-qnx*) 8896 version_type=linux 8897 need_lib_prefix=no 8898 need_version=no 8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8900 soname_spec='${libname}${release}${shared_ext}$major' 8901 shlibpath_var=LD_LIBRARY_PATH 8902 shlibpath_overrides_runpath=yes 8903 ;; 8904 8905openbsd*) 8906 version_type=sunos 8907 sys_lib_dlsearch_path_spec="/usr/lib" 8908 need_lib_prefix=no 8909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8910 case $host_os in 8911 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8912 *) need_version=no ;; 8913 esac 8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8916 shlibpath_var=LD_LIBRARY_PATH 8917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8918 case $host_os in 8919 openbsd2.[89] | openbsd2.[89].*) 8920 shlibpath_overrides_runpath=no 8921 ;; 8922 *) 8923 shlibpath_overrides_runpath=yes 8924 ;; 8925 esac 8926 else 8927 shlibpath_overrides_runpath=yes 8928 fi 8929 ;; 8930 8931os2*) 8932 libname_spec='$name' 8933 shrext_cmds=".dll" 8934 need_lib_prefix=no 8935 library_names_spec='$libname${shared_ext} $libname.a' 8936 dynamic_linker='OS/2 ld.exe' 8937 shlibpath_var=LIBPATH 8938 ;; 8939 8940osf3* | osf4* | osf5*) 8941 version_type=osf 8942 need_lib_prefix=no 8943 need_version=no 8944 soname_spec='${libname}${release}${shared_ext}$major' 8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8946 shlibpath_var=LD_LIBRARY_PATH 8947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8949 ;; 8950 8951solaris*) 8952 version_type=linux 8953 need_lib_prefix=no 8954 need_version=no 8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8956 soname_spec='${libname}${release}${shared_ext}$major' 8957 shlibpath_var=LD_LIBRARY_PATH 8958 shlibpath_overrides_runpath=yes 8959 hardcode_into_libs=yes 8960 # ldd complains unless libraries are executable 8961 postinstall_cmds='chmod +x $lib' 8962 ;; 8963 8964sunos4*) 8965 version_type=sunos 8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8968 shlibpath_var=LD_LIBRARY_PATH 8969 shlibpath_overrides_runpath=yes 8970 if test "$with_gnu_ld" = yes; then 8971 need_lib_prefix=no 8972 fi 8973 need_version=yes 8974 ;; 8975 8976sysv4 | sysv4.3*) 8977 version_type=linux 8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8979 soname_spec='${libname}${release}${shared_ext}$major' 8980 shlibpath_var=LD_LIBRARY_PATH 8981 case $host_vendor in 8982 sni) 8983 shlibpath_overrides_runpath=no 8984 need_lib_prefix=no 8985 export_dynamic_flag_spec='${wl}-Blargedynsym' 8986 runpath_var=LD_RUN_PATH 8987 ;; 8988 siemens) 8989 need_lib_prefix=no 8990 ;; 8991 motorola) 8992 need_lib_prefix=no 8993 need_version=no 8994 shlibpath_overrides_runpath=no 8995 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8996 ;; 8997 esac 8998 ;; 8999 9000sysv4*MP*) 9001 if test -d /usr/nec ;then 9002 version_type=linux 9003 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9004 soname_spec='$libname${shared_ext}.$major' 9005 shlibpath_var=LD_LIBRARY_PATH 9006 fi 9007 ;; 9008 9009sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9010 version_type=freebsd-elf 9011 need_lib_prefix=no 9012 need_version=no 9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9014 soname_spec='${libname}${release}${shared_ext}$major' 9015 shlibpath_var=LD_LIBRARY_PATH 9016 hardcode_into_libs=yes 9017 if test "$with_gnu_ld" = yes; then 9018 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9019 shlibpath_overrides_runpath=no 9020 else 9021 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9022 shlibpath_overrides_runpath=yes 9023 case $host_os in 9024 sco3.2v5*) 9025 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9026 ;; 9027 esac 9028 fi 9029 sys_lib_dlsearch_path_spec='/usr/lib' 9030 ;; 9031 9032uts4*) 9033 version_type=linux 9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9035 soname_spec='${libname}${release}${shared_ext}$major' 9036 shlibpath_var=LD_LIBRARY_PATH 9037 ;; 9038 9039*) 9040 dynamic_linker=no 9041 ;; 9042esac 9043{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9044echo "${ECHO_T}$dynamic_linker" >&6; } 9045test "$dynamic_linker" = no && can_build_shared=no 9046 9047variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9048if test "$GCC" = yes; then 9049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9050fi 9051 9052 9053{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9054echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9055if test "${libltdl_cv_shlibext+set}" = set; then 9056 echo $ECHO_N "(cached) $ECHO_C" >&6 9057else 9058 9059module=yes 9060eval libltdl_cv_shlibext=$shrext_cmds 9061 9062fi 9063{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9064echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9065if test -n "$libltdl_cv_shlibext"; then 9066 9067cat >>confdefs.h <<_ACEOF 9068#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9069_ACEOF 9070 9071fi 9072 9073 9074{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9075echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9076if test "${libltdl_cv_shlibpath_var+set}" = set; then 9077 echo $ECHO_N "(cached) $ECHO_C" >&6 9078else 9079 libltdl_cv_shlibpath_var="$shlibpath_var" 9080fi 9081{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9082echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9083if test -n "$libltdl_cv_shlibpath_var"; then 9084 9085cat >>confdefs.h <<_ACEOF 9086#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9087_ACEOF 9088 9089fi 9090 9091 9092{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9093echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9094if test "${libltdl_cv_sys_search_path+set}" = set; then 9095 echo $ECHO_N "(cached) $ECHO_C" >&6 9096else 9097 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9098fi 9099{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9100echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9101if test -n "$libltdl_cv_sys_search_path"; then 9102 sys_search_path= 9103 for dir in $libltdl_cv_sys_search_path; do 9104 if test -z "$sys_search_path"; then 9105 sys_search_path="$dir" 9106 else 9107 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9108 fi 9109 done 9110 9111cat >>confdefs.h <<_ACEOF 9112#define LTDL_SYSSEARCHPATH "$sys_search_path" 9113_ACEOF 9114 9115fi 9116 9117{ echo "$as_me:$LINENO: checking for objdir" >&5 9118echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9119if test "${libltdl_cv_objdir+set}" = set; then 9120 echo $ECHO_N "(cached) $ECHO_C" >&6 9121else 9122 libltdl_cv_objdir="$objdir" 9123 if test -n "$objdir"; then 9124 : 9125 else 9126 rm -f .libs 2>/dev/null 9127 mkdir .libs 2>/dev/null 9128 if test -d .libs; then 9129 libltdl_cv_objdir=.libs 9130 else 9131 # MS-DOS does not allow filenames that begin with a dot. 9132 libltdl_cv_objdir=_libs 9133 fi 9134 rmdir .libs 2>/dev/null 9135 fi 9136 9137fi 9138{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9139echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9140 9141cat >>confdefs.h <<_ACEOF 9142#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9143_ACEOF 9144 9145 9146 9147 9148 9149 9150# Check for command to grab the raw symbol name followed by C symbol from nm. 9151{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9152echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9153if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9154 echo $ECHO_N "(cached) $ECHO_C" >&6 9155else 9156 9157# These are sane defaults that work on at least a few old systems. 9158# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9159 9160# Character class describing NM global symbol codes. 9161symcode='[BCDEGRST]' 9162 9163# Regexp to match symbols that can be accessed directly from C. 9164sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9165 9166# Transform an extracted symbol line into a proper C declaration 9167lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9168 9169# Transform an extracted symbol line into symbol name and symbol address 9170lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9171 9172# Define system-specific variables. 9173case $host_os in 9174aix*) 9175 symcode='[BCDT]' 9176 ;; 9177cygwin* | mingw* | pw32*) 9178 symcode='[ABCDGISTW]' 9179 ;; 9180hpux*) # Its linker distinguishes data from code symbols 9181 if test "$host_cpu" = ia64; then 9182 symcode='[ABCDEGRST]' 9183 fi 9184 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9185 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9186 ;; 9187linux*) 9188 if test "$host_cpu" = ia64; then 9189 symcode='[ABCDGIRSTW]' 9190 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9191 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9192 fi 9193 ;; 9194irix* | nonstopux*) 9195 symcode='[BCDEGRST]' 9196 ;; 9197osf*) 9198 symcode='[BCDEGQRST]' 9199 ;; 9200solaris*) 9201 symcode='[BDRT]' 9202 ;; 9203sco3.2v5*) 9204 symcode='[DT]' 9205 ;; 9206sysv4.2uw2*) 9207 symcode='[DT]' 9208 ;; 9209sysv5* | sco5v6* | unixware* | OpenUNIX*) 9210 symcode='[ABDT]' 9211 ;; 9212sysv4) 9213 symcode='[DFNSTU]' 9214 ;; 9215esac 9216 9217# Handle CRLF in mingw tool chain 9218opt_cr= 9219case $build_os in 9220mingw*) 9221 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9222 ;; 9223esac 9224 9225# If we're using GNU nm, then use its standard symbol codes. 9226case `$NM -V 2>&1` in 9227*GNU* | *'with BFD'*) 9228 symcode='[ABCDGIRSTW]' ;; 9229esac 9230 9231# Try without a prefix undercore, then with it. 9232for ac_symprfx in "" "_"; do 9233 9234 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9235 symxfrm="\\1 $ac_symprfx\\2 \\2" 9236 9237 # Write the raw and C identifiers. 9238 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9239 9240 # Check to see that the pipe works correctly. 9241 pipe_works=no 9242 9243 rm -f conftest* 9244 cat > conftest.$ac_ext <<EOF 9245#ifdef __cplusplus 9246extern "C" { 9247#endif 9248char nm_test_var; 9249void nm_test_func(){} 9250#ifdef __cplusplus 9251} 9252#endif 9253int main(){nm_test_var='a';nm_test_func();return(0);} 9254EOF 9255 9256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9257 (eval $ac_compile) 2>&5 9258 ac_status=$? 9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9260 (exit $ac_status); }; then 9261 # Now try to grab the symbols. 9262 nlist=conftest.nm 9263 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9264 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9265 ac_status=$? 9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9267 (exit $ac_status); } && test -s "$nlist"; then 9268 # Try sorting and uniquifying the output. 9269 if sort "$nlist" | uniq > "$nlist"T; then 9270 mv -f "$nlist"T "$nlist" 9271 else 9272 rm -f "$nlist"T 9273 fi 9274 9275 # Make sure that we snagged all the symbols we need. 9276 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9277 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9278 cat <<EOF > conftest.$ac_ext 9279#ifdef __cplusplus 9280extern "C" { 9281#endif 9282 9283EOF 9284 # Now generate the symbol file. 9285 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9286 9287 cat <<EOF >> conftest.$ac_ext 9288#if defined (__STDC__) && __STDC__ 9289# define lt_ptr_t void * 9290#else 9291# define lt_ptr_t char * 9292# define const 9293#endif 9294 9295/* The mapping between symbol names and symbols. */ 9296const struct { 9297 const char *name; 9298 lt_ptr_t address; 9299} 9300lt_preloaded_symbols[] = 9301{ 9302EOF 9303 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9304 cat <<\EOF >> conftest.$ac_ext 9305 {0, (lt_ptr_t) 0} 9306}; 9307 9308#ifdef __cplusplus 9309} 9310#endif 9311EOF 9312 # Now try linking the two files. 9313 mv conftest.$ac_objext conftstm.$ac_objext 9314 lt_save_LIBS="$LIBS" 9315 lt_save_CFLAGS="$CFLAGS" 9316 LIBS="conftstm.$ac_objext" 9317 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9319 (eval $ac_link) 2>&5 9320 ac_status=$? 9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9322 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9323 pipe_works=yes 9324 fi 9325 LIBS="$lt_save_LIBS" 9326 CFLAGS="$lt_save_CFLAGS" 9327 else 9328 echo "cannot find nm_test_func in $nlist" >&5 9329 fi 9330 else 9331 echo "cannot find nm_test_var in $nlist" >&5 9332 fi 9333 else 9334 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9335 fi 9336 else 9337 echo "$progname: failed program was:" >&5 9338 cat conftest.$ac_ext >&5 9339 fi 9340 rm -f conftest* conftst* 9341 9342 # Do not use the global_symbol_pipe unless it works. 9343 if test "$pipe_works" = yes; then 9344 break 9345 else 9346 lt_cv_sys_global_symbol_pipe= 9347 fi 9348done 9349 9350fi 9351 9352if test -z "$lt_cv_sys_global_symbol_pipe"; then 9353 lt_cv_sys_global_symbol_to_cdecl= 9354fi 9355if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9356 { echo "$as_me:$LINENO: result: failed" >&5 9357echo "${ECHO_T}failed" >&6; } 9358else 9359 { echo "$as_me:$LINENO: result: ok" >&5 9360echo "${ECHO_T}ok" >&6; } 9361fi 9362 9363 9364{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9365echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9366if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9367 echo $ECHO_N "(cached) $ECHO_C" >&6 9368else 9369 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9370 libltdl_cv_preloaded_symbols=yes 9371 else 9372 libltdl_cv_preloaded_symbols=no 9373 fi 9374 9375fi 9376{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9377echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9378if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9379 9380cat >>confdefs.h <<\_ACEOF 9381#define HAVE_PRELOADED_SYMBOLS 1 9382_ACEOF 9383 9384fi 9385 9386LIBADD_DL= 9387 9388ac_ext=c 9389ac_cpp='$CPP $CPPFLAGS' 9390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9392ac_compiler_gnu=$ac_cv_c_compiler_gnu 9393 9394 9395{ echo "$as_me:$LINENO: checking for shl_load" >&5 9396echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9397if test "${ac_cv_func_shl_load+set}" = set; then 9398 echo $ECHO_N "(cached) $ECHO_C" >&6 9399else 9400 cat >conftest.$ac_ext <<_ACEOF 9401/* confdefs.h. */ 9402_ACEOF 9403cat confdefs.h >>conftest.$ac_ext 9404cat >>conftest.$ac_ext <<_ACEOF 9405/* end confdefs.h. */ 9406/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9407 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9408#define shl_load innocuous_shl_load 9409 9410/* System header to define __stub macros and hopefully few prototypes, 9411 which can conflict with char shl_load (); below. 9412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9413 <limits.h> exists even on freestanding compilers. */ 9414 9415#ifdef __STDC__ 9416# include <limits.h> 9417#else 9418# include <assert.h> 9419#endif 9420 9421#undef shl_load 9422 9423/* Override any GCC internal prototype to avoid an error. 9424 Use char because int might match the return type of a GCC 9425 builtin and then its argument prototype would still apply. */ 9426#ifdef __cplusplus 9427extern "C" 9428#endif 9429char shl_load (); 9430/* The GNU C library defines this for functions which it implements 9431 to always fail with ENOSYS. Some functions are actually named 9432 something starting with __ and the normal name is an alias. */ 9433#if defined __stub_shl_load || defined __stub___shl_load 9434choke me 9435#endif 9436 9437int 9438main () 9439{ 9440return shl_load (); 9441 ; 9442 return 0; 9443} 9444_ACEOF 9445rm -f conftest.$ac_objext conftest$ac_exeext 9446if { (ac_try="$ac_link" 9447case "(($ac_try" in 9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9449 *) ac_try_echo=$ac_try;; 9450esac 9451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9452 (eval "$ac_link") 2>conftest.er1 9453 ac_status=$? 9454 grep -v '^ *+' conftest.er1 >conftest.err 9455 rm -f conftest.er1 9456 cat conftest.err >&5 9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9458 (exit $ac_status); } && 9459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9460 { (case "(($ac_try" in 9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9462 *) ac_try_echo=$ac_try;; 9463esac 9464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9465 (eval "$ac_try") 2>&5 9466 ac_status=$? 9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9468 (exit $ac_status); }; } && 9469 { ac_try='test -s conftest$ac_exeext' 9470 { (case "(($ac_try" in 9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9472 *) ac_try_echo=$ac_try;; 9473esac 9474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9475 (eval "$ac_try") 2>&5 9476 ac_status=$? 9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9478 (exit $ac_status); }; }; then 9479 ac_cv_func_shl_load=yes 9480else 9481 echo "$as_me: failed program was:" >&5 9482sed 's/^/| /' conftest.$ac_ext >&5 9483 9484 ac_cv_func_shl_load=no 9485fi 9486 9487rm -f core conftest.err conftest.$ac_objext \ 9488 conftest$ac_exeext conftest.$ac_ext 9489fi 9490{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9491echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9492if test $ac_cv_func_shl_load = yes; then 9493 9494cat >>confdefs.h <<\_ACEOF 9495#define HAVE_SHL_LOAD 1 9496_ACEOF 9497 9498else 9499 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9500echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9501if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9502 echo $ECHO_N "(cached) $ECHO_C" >&6 9503else 9504 ac_check_lib_save_LIBS=$LIBS 9505LIBS="-ldld $LIBS" 9506cat >conftest.$ac_ext <<_ACEOF 9507/* confdefs.h. */ 9508_ACEOF 9509cat confdefs.h >>conftest.$ac_ext 9510cat >>conftest.$ac_ext <<_ACEOF 9511/* end confdefs.h. */ 9512 9513/* Override any GCC internal prototype to avoid an error. 9514 Use char because int might match the return type of a GCC 9515 builtin and then its argument prototype would still apply. */ 9516#ifdef __cplusplus 9517extern "C" 9518#endif 9519char shl_load (); 9520int 9521main () 9522{ 9523return shl_load (); 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528rm -f conftest.$ac_objext conftest$ac_exeext 9529if { (ac_try="$ac_link" 9530case "(($ac_try" in 9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9532 *) ac_try_echo=$ac_try;; 9533esac 9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9535 (eval "$ac_link") 2>conftest.er1 9536 ac_status=$? 9537 grep -v '^ *+' conftest.er1 >conftest.err 9538 rm -f conftest.er1 9539 cat conftest.err >&5 9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9541 (exit $ac_status); } && 9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9543 { (case "(($ac_try" in 9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9545 *) ac_try_echo=$ac_try;; 9546esac 9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9548 (eval "$ac_try") 2>&5 9549 ac_status=$? 9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9551 (exit $ac_status); }; } && 9552 { ac_try='test -s conftest$ac_exeext' 9553 { (case "(($ac_try" in 9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9555 *) ac_try_echo=$ac_try;; 9556esac 9557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9558 (eval "$ac_try") 2>&5 9559 ac_status=$? 9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9561 (exit $ac_status); }; }; then 9562 ac_cv_lib_dld_shl_load=yes 9563else 9564 echo "$as_me: failed program was:" >&5 9565sed 's/^/| /' conftest.$ac_ext >&5 9566 9567 ac_cv_lib_dld_shl_load=no 9568fi 9569 9570rm -f core conftest.err conftest.$ac_objext \ 9571 conftest$ac_exeext conftest.$ac_ext 9572LIBS=$ac_check_lib_save_LIBS 9573fi 9574{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9575echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9576if test $ac_cv_lib_dld_shl_load = yes; then 9577 9578cat >>confdefs.h <<\_ACEOF 9579#define HAVE_SHL_LOAD 1 9580_ACEOF 9581 9582 LIBADD_DL="$LIBADD_DL -ldld" 9583else 9584 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9585echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9586if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9587 echo $ECHO_N "(cached) $ECHO_C" >&6 9588else 9589 ac_check_lib_save_LIBS=$LIBS 9590LIBS="-ldl $LIBS" 9591cat >conftest.$ac_ext <<_ACEOF 9592/* confdefs.h. */ 9593_ACEOF 9594cat confdefs.h >>conftest.$ac_ext 9595cat >>conftest.$ac_ext <<_ACEOF 9596/* end confdefs.h. */ 9597 9598/* Override any GCC internal prototype to avoid an error. 9599 Use char because int might match the return type of a GCC 9600 builtin and then its argument prototype would still apply. */ 9601#ifdef __cplusplus 9602extern "C" 9603#endif 9604char dlopen (); 9605int 9606main () 9607{ 9608return dlopen (); 9609 ; 9610 return 0; 9611} 9612_ACEOF 9613rm -f conftest.$ac_objext conftest$ac_exeext 9614if { (ac_try="$ac_link" 9615case "(($ac_try" in 9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9617 *) ac_try_echo=$ac_try;; 9618esac 9619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9620 (eval "$ac_link") 2>conftest.er1 9621 ac_status=$? 9622 grep -v '^ *+' conftest.er1 >conftest.err 9623 rm -f conftest.er1 9624 cat conftest.err >&5 9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9626 (exit $ac_status); } && 9627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9628 { (case "(($ac_try" in 9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9630 *) ac_try_echo=$ac_try;; 9631esac 9632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9633 (eval "$ac_try") 2>&5 9634 ac_status=$? 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9636 (exit $ac_status); }; } && 9637 { ac_try='test -s conftest$ac_exeext' 9638 { (case "(($ac_try" in 9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9640 *) ac_try_echo=$ac_try;; 9641esac 9642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9643 (eval "$ac_try") 2>&5 9644 ac_status=$? 9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9646 (exit $ac_status); }; }; then 9647 ac_cv_lib_dl_dlopen=yes 9648else 9649 echo "$as_me: failed program was:" >&5 9650sed 's/^/| /' conftest.$ac_ext >&5 9651 9652 ac_cv_lib_dl_dlopen=no 9653fi 9654 9655rm -f core conftest.err conftest.$ac_objext \ 9656 conftest$ac_exeext conftest.$ac_ext 9657LIBS=$ac_check_lib_save_LIBS 9658fi 9659{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9660echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9661if test $ac_cv_lib_dl_dlopen = yes; then 9662 9663cat >>confdefs.h <<\_ACEOF 9664#define HAVE_LIBDL 1 9665_ACEOF 9666 9667 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9668else 9669 cat >conftest.$ac_ext <<_ACEOF 9670/* confdefs.h. */ 9671_ACEOF 9672cat confdefs.h >>conftest.$ac_ext 9673cat >>conftest.$ac_ext <<_ACEOF 9674/* end confdefs.h. */ 9675#if HAVE_DLFCN_H 9676# include <dlfcn.h> 9677#endif 9678 9679int 9680main () 9681{ 9682dlopen(0, 0); 9683 ; 9684 return 0; 9685} 9686_ACEOF 9687rm -f conftest.$ac_objext conftest$ac_exeext 9688if { (ac_try="$ac_link" 9689case "(($ac_try" in 9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9691 *) ac_try_echo=$ac_try;; 9692esac 9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9694 (eval "$ac_link") 2>conftest.er1 9695 ac_status=$? 9696 grep -v '^ *+' conftest.er1 >conftest.err 9697 rm -f conftest.er1 9698 cat conftest.err >&5 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 (exit $ac_status); } && 9701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9702 { (case "(($ac_try" in 9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9704 *) ac_try_echo=$ac_try;; 9705esac 9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9707 (eval "$ac_try") 2>&5 9708 ac_status=$? 9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9710 (exit $ac_status); }; } && 9711 { ac_try='test -s conftest$ac_exeext' 9712 { (case "(($ac_try" in 9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9714 *) ac_try_echo=$ac_try;; 9715esac 9716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9717 (eval "$ac_try") 2>&5 9718 ac_status=$? 9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9720 (exit $ac_status); }; }; then 9721 9722cat >>confdefs.h <<\_ACEOF 9723#define HAVE_LIBDL 1 9724_ACEOF 9725 libltdl_cv_func_dlopen="yes" 9726else 9727 echo "$as_me: failed program was:" >&5 9728sed 's/^/| /' conftest.$ac_ext >&5 9729 9730 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9731echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9732if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9733 echo $ECHO_N "(cached) $ECHO_C" >&6 9734else 9735 ac_check_lib_save_LIBS=$LIBS 9736LIBS="-lsvld $LIBS" 9737cat >conftest.$ac_ext <<_ACEOF 9738/* confdefs.h. */ 9739_ACEOF 9740cat confdefs.h >>conftest.$ac_ext 9741cat >>conftest.$ac_ext <<_ACEOF 9742/* end confdefs.h. */ 9743 9744/* Override any GCC internal prototype to avoid an error. 9745 Use char because int might match the return type of a GCC 9746 builtin and then its argument prototype would still apply. */ 9747#ifdef __cplusplus 9748extern "C" 9749#endif 9750char dlopen (); 9751int 9752main () 9753{ 9754return dlopen (); 9755 ; 9756 return 0; 9757} 9758_ACEOF 9759rm -f conftest.$ac_objext conftest$ac_exeext 9760if { (ac_try="$ac_link" 9761case "(($ac_try" in 9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9763 *) ac_try_echo=$ac_try;; 9764esac 9765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9766 (eval "$ac_link") 2>conftest.er1 9767 ac_status=$? 9768 grep -v '^ *+' conftest.er1 >conftest.err 9769 rm -f conftest.er1 9770 cat conftest.err >&5 9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9772 (exit $ac_status); } && 9773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9774 { (case "(($ac_try" in 9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9776 *) ac_try_echo=$ac_try;; 9777esac 9778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9779 (eval "$ac_try") 2>&5 9780 ac_status=$? 9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9782 (exit $ac_status); }; } && 9783 { ac_try='test -s conftest$ac_exeext' 9784 { (case "(($ac_try" in 9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9786 *) ac_try_echo=$ac_try;; 9787esac 9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9789 (eval "$ac_try") 2>&5 9790 ac_status=$? 9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9792 (exit $ac_status); }; }; then 9793 ac_cv_lib_svld_dlopen=yes 9794else 9795 echo "$as_me: failed program was:" >&5 9796sed 's/^/| /' conftest.$ac_ext >&5 9797 9798 ac_cv_lib_svld_dlopen=no 9799fi 9800 9801rm -f core conftest.err conftest.$ac_objext \ 9802 conftest$ac_exeext conftest.$ac_ext 9803LIBS=$ac_check_lib_save_LIBS 9804fi 9805{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9806echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9807if test $ac_cv_lib_svld_dlopen = yes; then 9808 9809cat >>confdefs.h <<\_ACEOF 9810#define HAVE_LIBDL 1 9811_ACEOF 9812 9813 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 9814else 9815 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9816echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9817if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9818 echo $ECHO_N "(cached) $ECHO_C" >&6 9819else 9820 ac_check_lib_save_LIBS=$LIBS 9821LIBS="-ldld $LIBS" 9822cat >conftest.$ac_ext <<_ACEOF 9823/* confdefs.h. */ 9824_ACEOF 9825cat confdefs.h >>conftest.$ac_ext 9826cat >>conftest.$ac_ext <<_ACEOF 9827/* end confdefs.h. */ 9828 9829/* Override any GCC internal prototype to avoid an error. 9830 Use char because int might match the return type of a GCC 9831 builtin and then its argument prototype would still apply. */ 9832#ifdef __cplusplus 9833extern "C" 9834#endif 9835char dld_link (); 9836int 9837main () 9838{ 9839return dld_link (); 9840 ; 9841 return 0; 9842} 9843_ACEOF 9844rm -f conftest.$ac_objext conftest$ac_exeext 9845if { (ac_try="$ac_link" 9846case "(($ac_try" in 9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9848 *) ac_try_echo=$ac_try;; 9849esac 9850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9851 (eval "$ac_link") 2>conftest.er1 9852 ac_status=$? 9853 grep -v '^ *+' conftest.er1 >conftest.err 9854 rm -f conftest.er1 9855 cat conftest.err >&5 9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9857 (exit $ac_status); } && 9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9859 { (case "(($ac_try" in 9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9861 *) ac_try_echo=$ac_try;; 9862esac 9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9864 (eval "$ac_try") 2>&5 9865 ac_status=$? 9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9867 (exit $ac_status); }; } && 9868 { ac_try='test -s conftest$ac_exeext' 9869 { (case "(($ac_try" in 9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9871 *) ac_try_echo=$ac_try;; 9872esac 9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9874 (eval "$ac_try") 2>&5 9875 ac_status=$? 9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9877 (exit $ac_status); }; }; then 9878 ac_cv_lib_dld_dld_link=yes 9879else 9880 echo "$as_me: failed program was:" >&5 9881sed 's/^/| /' conftest.$ac_ext >&5 9882 9883 ac_cv_lib_dld_dld_link=no 9884fi 9885 9886rm -f core conftest.err conftest.$ac_objext \ 9887 conftest$ac_exeext conftest.$ac_ext 9888LIBS=$ac_check_lib_save_LIBS 9889fi 9890{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9891echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9892if test $ac_cv_lib_dld_dld_link = yes; then 9893 9894cat >>confdefs.h <<\_ACEOF 9895#define HAVE_DLD 1 9896_ACEOF 9897 9898 LIBADD_DL="$LIBADD_DL -ldld" 9899else 9900 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 9901echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 9902if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 9903 echo $ECHO_N "(cached) $ECHO_C" >&6 9904else 9905 cat >conftest.$ac_ext <<_ACEOF 9906/* confdefs.h. */ 9907_ACEOF 9908cat confdefs.h >>conftest.$ac_ext 9909cat >>conftest.$ac_ext <<_ACEOF 9910/* end confdefs.h. */ 9911/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9913#define _dyld_func_lookup innocuous__dyld_func_lookup 9914 9915/* System header to define __stub macros and hopefully few prototypes, 9916 which can conflict with char _dyld_func_lookup (); below. 9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9918 <limits.h> exists even on freestanding compilers. */ 9919 9920#ifdef __STDC__ 9921# include <limits.h> 9922#else 9923# include <assert.h> 9924#endif 9925 9926#undef _dyld_func_lookup 9927 9928/* Override any GCC internal prototype to avoid an error. 9929 Use char because int might match the return type of a GCC 9930 builtin and then its argument prototype would still apply. */ 9931#ifdef __cplusplus 9932extern "C" 9933#endif 9934char _dyld_func_lookup (); 9935/* The GNU C library defines this for functions which it implements 9936 to always fail with ENOSYS. Some functions are actually named 9937 something starting with __ and the normal name is an alias. */ 9938#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 9939choke me 9940#endif 9941 9942int 9943main () 9944{ 9945return _dyld_func_lookup (); 9946 ; 9947 return 0; 9948} 9949_ACEOF 9950rm -f conftest.$ac_objext conftest$ac_exeext 9951if { (ac_try="$ac_link" 9952case "(($ac_try" in 9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9954 *) ac_try_echo=$ac_try;; 9955esac 9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9957 (eval "$ac_link") 2>conftest.er1 9958 ac_status=$? 9959 grep -v '^ *+' conftest.er1 >conftest.err 9960 rm -f conftest.er1 9961 cat conftest.err >&5 9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9963 (exit $ac_status); } && 9964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9965 { (case "(($ac_try" in 9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9967 *) ac_try_echo=$ac_try;; 9968esac 9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9970 (eval "$ac_try") 2>&5 9971 ac_status=$? 9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9973 (exit $ac_status); }; } && 9974 { ac_try='test -s conftest$ac_exeext' 9975 { (case "(($ac_try" in 9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9977 *) ac_try_echo=$ac_try;; 9978esac 9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9980 (eval "$ac_try") 2>&5 9981 ac_status=$? 9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9983 (exit $ac_status); }; }; then 9984 ac_cv_func__dyld_func_lookup=yes 9985else 9986 echo "$as_me: failed program was:" >&5 9987sed 's/^/| /' conftest.$ac_ext >&5 9988 9989 ac_cv_func__dyld_func_lookup=no 9990fi 9991 9992rm -f core conftest.err conftest.$ac_objext \ 9993 conftest$ac_exeext conftest.$ac_ext 9994fi 9995{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 9996echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 9997if test $ac_cv_func__dyld_func_lookup = yes; then 9998 9999cat >>confdefs.h <<\_ACEOF 10000#define HAVE_DYLD 1 10001_ACEOF 10002 10003fi 10004 10005 10006fi 10007 10008 10009fi 10010 10011 10012fi 10013 10014rm -f core conftest.err conftest.$ac_objext \ 10015 conftest$ac_exeext conftest.$ac_ext 10016 10017fi 10018 10019 10020fi 10021 10022 10023fi 10024 10025 10026if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10027then 10028 lt_save_LIBS="$LIBS" 10029 LIBS="$LIBS $LIBADD_DL" 10030 10031for ac_func in dlerror 10032do 10033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10034{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10036if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10037 echo $ECHO_N "(cached) $ECHO_C" >&6 10038else 10039 cat >conftest.$ac_ext <<_ACEOF 10040/* confdefs.h. */ 10041_ACEOF 10042cat confdefs.h >>conftest.$ac_ext 10043cat >>conftest.$ac_ext <<_ACEOF 10044/* end confdefs.h. */ 10045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10047#define $ac_func innocuous_$ac_func 10048 10049/* System header to define __stub macros and hopefully few prototypes, 10050 which can conflict with char $ac_func (); below. 10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10052 <limits.h> exists even on freestanding compilers. */ 10053 10054#ifdef __STDC__ 10055# include <limits.h> 10056#else 10057# include <assert.h> 10058#endif 10059 10060#undef $ac_func 10061 10062/* Override any GCC internal prototype to avoid an error. 10063 Use char because int might match the return type of a GCC 10064 builtin and then its argument prototype would still apply. */ 10065#ifdef __cplusplus 10066extern "C" 10067#endif 10068char $ac_func (); 10069/* The GNU C library defines this for functions which it implements 10070 to always fail with ENOSYS. Some functions are actually named 10071 something starting with __ and the normal name is an alias. */ 10072#if defined __stub_$ac_func || defined __stub___$ac_func 10073choke me 10074#endif 10075 10076int 10077main () 10078{ 10079return $ac_func (); 10080 ; 10081 return 0; 10082} 10083_ACEOF 10084rm -f conftest.$ac_objext conftest$ac_exeext 10085if { (ac_try="$ac_link" 10086case "(($ac_try" in 10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10088 *) ac_try_echo=$ac_try;; 10089esac 10090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10091 (eval "$ac_link") 2>conftest.er1 10092 ac_status=$? 10093 grep -v '^ *+' conftest.er1 >conftest.err 10094 rm -f conftest.er1 10095 cat conftest.err >&5 10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10097 (exit $ac_status); } && 10098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10099 { (case "(($ac_try" in 10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10101 *) ac_try_echo=$ac_try;; 10102esac 10103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10104 (eval "$ac_try") 2>&5 10105 ac_status=$? 10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10107 (exit $ac_status); }; } && 10108 { ac_try='test -s conftest$ac_exeext' 10109 { (case "(($ac_try" in 10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10111 *) ac_try_echo=$ac_try;; 10112esac 10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10114 (eval "$ac_try") 2>&5 10115 ac_status=$? 10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10117 (exit $ac_status); }; }; then 10118 eval "$as_ac_var=yes" 10119else 10120 echo "$as_me: failed program was:" >&5 10121sed 's/^/| /' conftest.$ac_ext >&5 10122 10123 eval "$as_ac_var=no" 10124fi 10125 10126rm -f core conftest.err conftest.$ac_objext \ 10127 conftest$ac_exeext conftest.$ac_ext 10128fi 10129ac_res=`eval echo '${'$as_ac_var'}'` 10130 { echo "$as_me:$LINENO: result: $ac_res" >&5 10131echo "${ECHO_T}$ac_res" >&6; } 10132if test `eval echo '${'$as_ac_var'}'` = yes; then 10133 cat >>confdefs.h <<_ACEOF 10134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10135_ACEOF 10136 10137fi 10138done 10139 10140 LIBS="$lt_save_LIBS" 10141fi 10142ac_ext=c 10143ac_cpp='$CPP $CPPFLAGS' 10144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10146ac_compiler_gnu=$ac_cv_c_compiler_gnu 10147 10148 10149 10150{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10151echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10152if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10153 echo $ECHO_N "(cached) $ECHO_C" >&6 10154else 10155 ac_cv_sys_symbol_underscore=no 10156 cat > conftest.$ac_ext <<EOF 10157void nm_test_func(){} 10158int main(){nm_test_func;return 0;} 10159EOF 10160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10161 (eval $ac_compile) 2>&5 10162 ac_status=$? 10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10164 (exit $ac_status); }; then 10165 # Now try to grab the symbols. 10166 ac_nlist=conftest.nm 10167 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10169 ac_status=$? 10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10171 (exit $ac_status); } && test -s "$ac_nlist"; then 10172 # See whether the symbols have a leading underscore. 10173 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10174 ac_cv_sys_symbol_underscore=yes 10175 else 10176 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10177 : 10178 else 10179 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10180 fi 10181 fi 10182 else 10183 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10184 fi 10185 else 10186 echo "configure: failed program was:" >&5 10187 cat conftest.c >&5 10188 fi 10189 rm -rf conftest* 10190 10191fi 10192{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10193echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10194 10195 10196if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10197 if test x"$libltdl_cv_func_dlopen" = xyes || 10198 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10199 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10200echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10201if test "${libltdl_cv_need_uscore+set}" = set; then 10202 echo $ECHO_N "(cached) $ECHO_C" >&6 10203else 10204 libltdl_cv_need_uscore=unknown 10205 save_LIBS="$LIBS" 10206 LIBS="$LIBS $LIBADD_DL" 10207 if test "$cross_compiling" = yes; then : 10208 libltdl_cv_need_uscore=cross 10209else 10210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10211 lt_status=$lt_dlunknown 10212 cat > conftest.$ac_ext <<EOF 10213#line 10213 "configure" 10214#include "confdefs.h" 10215 10216#if HAVE_DLFCN_H 10217#include <dlfcn.h> 10218#endif 10219 10220#include <stdio.h> 10221 10222#ifdef RTLD_GLOBAL 10223# define LT_DLGLOBAL RTLD_GLOBAL 10224#else 10225# ifdef DL_GLOBAL 10226# define LT_DLGLOBAL DL_GLOBAL 10227# else 10228# define LT_DLGLOBAL 0 10229# endif 10230#endif 10231 10232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10233 find out it does not work in some platform. */ 10234#ifndef LT_DLLAZY_OR_NOW 10235# ifdef RTLD_LAZY 10236# define LT_DLLAZY_OR_NOW RTLD_LAZY 10237# else 10238# ifdef DL_LAZY 10239# define LT_DLLAZY_OR_NOW DL_LAZY 10240# else 10241# ifdef RTLD_NOW 10242# define LT_DLLAZY_OR_NOW RTLD_NOW 10243# else 10244# ifdef DL_NOW 10245# define LT_DLLAZY_OR_NOW DL_NOW 10246# else 10247# define LT_DLLAZY_OR_NOW 0 10248# endif 10249# endif 10250# endif 10251# endif 10252#endif 10253 10254#ifdef __cplusplus 10255extern "C" void exit (int); 10256#endif 10257 10258void fnord() { int i=42;} 10259int main () 10260{ 10261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10262 int status = $lt_dlunknown; 10263 10264 if (self) 10265 { 10266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10268 /* dlclose (self); */ 10269 } 10270 else 10271 puts (dlerror ()); 10272 10273 exit (status); 10274} 10275EOF 10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10277 (eval $ac_link) 2>&5 10278 ac_status=$? 10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10280 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10281 (./conftest; exit; ) >&5 2>/dev/null 10282 lt_status=$? 10283 case x$lt_status in 10284 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10285 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10286 x$lt_dlunknown|x*) ;; 10287 esac 10288 else : 10289 # compilation failed 10290 10291 fi 10292fi 10293rm -fr conftest* 10294 10295 LIBS="$save_LIBS" 10296 10297fi 10298{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10299echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10300 fi 10301fi 10302 10303if test x"$libltdl_cv_need_uscore" = xyes; then 10304 10305cat >>confdefs.h <<\_ACEOF 10306#define NEED_USCORE 1 10307_ACEOF 10308 10309fi 10310 10311 10312{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10313echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10314if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10315 echo $ECHO_N "(cached) $ECHO_C" >&6 10316else 10317 # PORTME does your system automatically load deplibs for dlopen? 10318 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10319 # For now, we just catch OSes we know something about -- in the 10320 # future, we'll try test this programmatically. 10321 libltdl_cv_sys_dlopen_deplibs=unknown 10322 case "$host_os" in 10323 aix3*|aix4.1.*|aix4.2.*) 10324 # Unknown whether this is true for these versions of AIX, but 10325 # we want this `case' here to explicitly catch those versions. 10326 libltdl_cv_sys_dlopen_deplibs=unknown 10327 ;; 10328 aix[45]*) 10329 libltdl_cv_sys_dlopen_deplibs=yes 10330 ;; 10331 darwin*) 10332 # Assuming the user has installed a libdl from somewhere, this is true 10333 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10334 libltdl_cv_sys_dlopen_deplibs=yes 10335 ;; 10336 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10337 # GNU and its variants, using gnu ld.so (Glibc) 10338 libltdl_cv_sys_dlopen_deplibs=yes 10339 ;; 10340 hpux10*|hpux11*) 10341 libltdl_cv_sys_dlopen_deplibs=yes 10342 ;; 10343 interix*) 10344 libltdl_cv_sys_dlopen_deplibs=yes 10345 ;; 10346 irix[12345]*|irix6.[01]*) 10347 # Catch all versions of IRIX before 6.2, and indicate that we don't 10348 # know how it worked for any of those versions. 10349 libltdl_cv_sys_dlopen_deplibs=unknown 10350 ;; 10351 irix*) 10352 # The case above catches anything before 6.2, and it's known that 10353 # at 6.2 and later dlopen does load deplibs. 10354 libltdl_cv_sys_dlopen_deplibs=yes 10355 ;; 10356 netbsd*) 10357 libltdl_cv_sys_dlopen_deplibs=yes 10358 ;; 10359 openbsd*) 10360 libltdl_cv_sys_dlopen_deplibs=yes 10361 ;; 10362 osf[1234]*) 10363 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10364 # it did *not* use an RPATH in a shared library to find objects the 10365 # library depends on, so we explicitly say `no'. 10366 libltdl_cv_sys_dlopen_deplibs=no 10367 ;; 10368 osf5.0|osf5.0a|osf5.1) 10369 # dlopen *does* load deplibs and with the right loader patch applied 10370 # it even uses RPATH in a shared library to search for shared objects 10371 # that the library depends on, but there's no easy way to know if that 10372 # patch is installed. Since this is the case, all we can really 10373 # say is unknown -- it depends on the patch being installed. If 10374 # it is, this changes to `yes'. Without it, it would be `no'. 10375 libltdl_cv_sys_dlopen_deplibs=unknown 10376 ;; 10377 osf*) 10378 # the two cases above should catch all versions of osf <= 5.1. Read 10379 # the comments above for what we know about them. 10380 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10381 # is used to find them so we can finally say `yes'. 10382 libltdl_cv_sys_dlopen_deplibs=yes 10383 ;; 10384 solaris*) 10385 libltdl_cv_sys_dlopen_deplibs=yes 10386 ;; 10387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10388 libltdl_cv_sys_dlopen_deplibs=yes 10389 ;; 10390 esac 10391 10392fi 10393{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10394echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10395if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10396 10397cat >>confdefs.h <<\_ACEOF 10398#define LTDL_DLOPEN_DEPLIBS 1 10399_ACEOF 10400 10401fi 10402 10403 10404for ac_header in argz.h 10405do 10406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10408 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10411 echo $ECHO_N "(cached) $ECHO_C" >&6 10412fi 10413ac_res=`eval echo '${'$as_ac_Header'}'` 10414 { echo "$as_me:$LINENO: result: $ac_res" >&5 10415echo "${ECHO_T}$ac_res" >&6; } 10416else 10417 # Is the header compilable? 10418{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10420cat >conftest.$ac_ext <<_ACEOF 10421/* confdefs.h. */ 10422_ACEOF 10423cat confdefs.h >>conftest.$ac_ext 10424cat >>conftest.$ac_ext <<_ACEOF 10425/* end confdefs.h. */ 10426$ac_includes_default 10427#include <$ac_header> 10428_ACEOF 10429rm -f conftest.$ac_objext 10430if { (ac_try="$ac_compile" 10431case "(($ac_try" in 10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10433 *) ac_try_echo=$ac_try;; 10434esac 10435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10436 (eval "$ac_compile") 2>conftest.er1 10437 ac_status=$? 10438 grep -v '^ *+' conftest.er1 >conftest.err 10439 rm -f conftest.er1 10440 cat conftest.err >&5 10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10442 (exit $ac_status); } && 10443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10444 { (case "(($ac_try" in 10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10446 *) ac_try_echo=$ac_try;; 10447esac 10448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10449 (eval "$ac_try") 2>&5 10450 ac_status=$? 10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10452 (exit $ac_status); }; } && 10453 { ac_try='test -s conftest.$ac_objext' 10454 { (case "(($ac_try" in 10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10456 *) ac_try_echo=$ac_try;; 10457esac 10458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10459 (eval "$ac_try") 2>&5 10460 ac_status=$? 10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10462 (exit $ac_status); }; }; then 10463 ac_header_compiler=yes 10464else 10465 echo "$as_me: failed program was:" >&5 10466sed 's/^/| /' conftest.$ac_ext >&5 10467 10468 ac_header_compiler=no 10469fi 10470 10471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10472{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10473echo "${ECHO_T}$ac_header_compiler" >&6; } 10474 10475# Is the header present? 10476{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10478cat >conftest.$ac_ext <<_ACEOF 10479/* confdefs.h. */ 10480_ACEOF 10481cat confdefs.h >>conftest.$ac_ext 10482cat >>conftest.$ac_ext <<_ACEOF 10483/* end confdefs.h. */ 10484#include <$ac_header> 10485_ACEOF 10486if { (ac_try="$ac_cpp conftest.$ac_ext" 10487case "(($ac_try" in 10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10489 *) ac_try_echo=$ac_try;; 10490esac 10491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10493 ac_status=$? 10494 grep -v '^ *+' conftest.er1 >conftest.err 10495 rm -f conftest.er1 10496 cat conftest.err >&5 10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10498 (exit $ac_status); } >/dev/null; then 10499 if test -s conftest.err; then 10500 ac_cpp_err=$ac_c_preproc_warn_flag 10501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10502 else 10503 ac_cpp_err= 10504 fi 10505else 10506 ac_cpp_err=yes 10507fi 10508if test -z "$ac_cpp_err"; then 10509 ac_header_preproc=yes 10510else 10511 echo "$as_me: failed program was:" >&5 10512sed 's/^/| /' conftest.$ac_ext >&5 10513 10514 ac_header_preproc=no 10515fi 10516 10517rm -f conftest.err conftest.$ac_ext 10518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10519echo "${ECHO_T}$ac_header_preproc" >&6; } 10520 10521# So? What about this header? 10522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10523 yes:no: ) 10524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10528 ac_header_preproc=yes 10529 ;; 10530 no:yes:* ) 10531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10543 ( cat <<\_ASBOX 10544## ------------------------------------ ## 10545## Report this to http://llvm.org/bugs/ ## 10546## ------------------------------------ ## 10547_ASBOX 10548 ) | sed "s/^/$as_me: WARNING: /" >&2 10549 ;; 10550esac 10551{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10554 echo $ECHO_N "(cached) $ECHO_C" >&6 10555else 10556 eval "$as_ac_Header=\$ac_header_preproc" 10557fi 10558ac_res=`eval echo '${'$as_ac_Header'}'` 10559 { echo "$as_me:$LINENO: result: $ac_res" >&5 10560echo "${ECHO_T}$ac_res" >&6; } 10561 10562fi 10563if test `eval echo '${'$as_ac_Header'}'` = yes; then 10564 cat >>confdefs.h <<_ACEOF 10565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10566_ACEOF 10567 10568fi 10569 10570done 10571 10572 10573{ echo "$as_me:$LINENO: checking for error_t" >&5 10574echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10575if test "${ac_cv_type_error_t+set}" = set; then 10576 echo $ECHO_N "(cached) $ECHO_C" >&6 10577else 10578 cat >conftest.$ac_ext <<_ACEOF 10579/* confdefs.h. */ 10580_ACEOF 10581cat confdefs.h >>conftest.$ac_ext 10582cat >>conftest.$ac_ext <<_ACEOF 10583/* end confdefs.h. */ 10584#if HAVE_ARGZ_H 10585# include <argz.h> 10586#endif 10587 10588typedef error_t ac__type_new_; 10589int 10590main () 10591{ 10592if ((ac__type_new_ *) 0) 10593 return 0; 10594if (sizeof (ac__type_new_)) 10595 return 0; 10596 ; 10597 return 0; 10598} 10599_ACEOF 10600rm -f conftest.$ac_objext 10601if { (ac_try="$ac_compile" 10602case "(($ac_try" in 10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10604 *) ac_try_echo=$ac_try;; 10605esac 10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10607 (eval "$ac_compile") 2>conftest.er1 10608 ac_status=$? 10609 grep -v '^ *+' conftest.er1 >conftest.err 10610 rm -f conftest.er1 10611 cat conftest.err >&5 10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10613 (exit $ac_status); } && 10614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10615 { (case "(($ac_try" in 10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10617 *) ac_try_echo=$ac_try;; 10618esac 10619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10620 (eval "$ac_try") 2>&5 10621 ac_status=$? 10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 (exit $ac_status); }; } && 10624 { ac_try='test -s conftest.$ac_objext' 10625 { (case "(($ac_try" in 10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10627 *) ac_try_echo=$ac_try;; 10628esac 10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10630 (eval "$ac_try") 2>&5 10631 ac_status=$? 10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10633 (exit $ac_status); }; }; then 10634 ac_cv_type_error_t=yes 10635else 10636 echo "$as_me: failed program was:" >&5 10637sed 's/^/| /' conftest.$ac_ext >&5 10638 10639 ac_cv_type_error_t=no 10640fi 10641 10642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10643fi 10644{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10645echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10646if test $ac_cv_type_error_t = yes; then 10647 10648cat >>confdefs.h <<_ACEOF 10649#define HAVE_ERROR_T 1 10650_ACEOF 10651 10652 10653else 10654 10655cat >>confdefs.h <<\_ACEOF 10656#define error_t int 10657_ACEOF 10658 10659fi 10660 10661 10662 10663 10664 10665 10666 10667for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10668do 10669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10670{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10673 echo $ECHO_N "(cached) $ECHO_C" >&6 10674else 10675 cat >conftest.$ac_ext <<_ACEOF 10676/* confdefs.h. */ 10677_ACEOF 10678cat confdefs.h >>conftest.$ac_ext 10679cat >>conftest.$ac_ext <<_ACEOF 10680/* end confdefs.h. */ 10681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10682 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10683#define $ac_func innocuous_$ac_func 10684 10685/* System header to define __stub macros and hopefully few prototypes, 10686 which can conflict with char $ac_func (); below. 10687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10688 <limits.h> exists even on freestanding compilers. */ 10689 10690#ifdef __STDC__ 10691# include <limits.h> 10692#else 10693# include <assert.h> 10694#endif 10695 10696#undef $ac_func 10697 10698/* Override any GCC internal prototype to avoid an error. 10699 Use char because int might match the return type of a GCC 10700 builtin and then its argument prototype would still apply. */ 10701#ifdef __cplusplus 10702extern "C" 10703#endif 10704char $ac_func (); 10705/* The GNU C library defines this for functions which it implements 10706 to always fail with ENOSYS. Some functions are actually named 10707 something starting with __ and the normal name is an alias. */ 10708#if defined __stub_$ac_func || defined __stub___$ac_func 10709choke me 10710#endif 10711 10712int 10713main () 10714{ 10715return $ac_func (); 10716 ; 10717 return 0; 10718} 10719_ACEOF 10720rm -f conftest.$ac_objext conftest$ac_exeext 10721if { (ac_try="$ac_link" 10722case "(($ac_try" in 10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10724 *) ac_try_echo=$ac_try;; 10725esac 10726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10727 (eval "$ac_link") 2>conftest.er1 10728 ac_status=$? 10729 grep -v '^ *+' conftest.er1 >conftest.err 10730 rm -f conftest.er1 10731 cat conftest.err >&5 10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10733 (exit $ac_status); } && 10734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10735 { (case "(($ac_try" in 10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10737 *) ac_try_echo=$ac_try;; 10738esac 10739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10740 (eval "$ac_try") 2>&5 10741 ac_status=$? 10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10743 (exit $ac_status); }; } && 10744 { ac_try='test -s conftest$ac_exeext' 10745 { (case "(($ac_try" in 10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10747 *) ac_try_echo=$ac_try;; 10748esac 10749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10750 (eval "$ac_try") 2>&5 10751 ac_status=$? 10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10753 (exit $ac_status); }; }; then 10754 eval "$as_ac_var=yes" 10755else 10756 echo "$as_me: failed program was:" >&5 10757sed 's/^/| /' conftest.$ac_ext >&5 10758 10759 eval "$as_ac_var=no" 10760fi 10761 10762rm -f core conftest.err conftest.$ac_objext \ 10763 conftest$ac_exeext conftest.$ac_ext 10764fi 10765ac_res=`eval echo '${'$as_ac_var'}'` 10766 { echo "$as_me:$LINENO: result: $ac_res" >&5 10767echo "${ECHO_T}$ac_res" >&6; } 10768if test `eval echo '${'$as_ac_var'}'` = yes; then 10769 cat >>confdefs.h <<_ACEOF 10770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10771_ACEOF 10772 10773fi 10774done 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 10804 stdio.h unistd.h 10805do 10806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10808 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10811 echo $ECHO_N "(cached) $ECHO_C" >&6 10812fi 10813ac_res=`eval echo '${'$as_ac_Header'}'` 10814 { echo "$as_me:$LINENO: result: $ac_res" >&5 10815echo "${ECHO_T}$ac_res" >&6; } 10816else 10817 # Is the header compilable? 10818{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10820cat >conftest.$ac_ext <<_ACEOF 10821/* confdefs.h. */ 10822_ACEOF 10823cat confdefs.h >>conftest.$ac_ext 10824cat >>conftest.$ac_ext <<_ACEOF 10825/* end confdefs.h. */ 10826$ac_includes_default 10827#include <$ac_header> 10828_ACEOF 10829rm -f conftest.$ac_objext 10830if { (ac_try="$ac_compile" 10831case "(($ac_try" in 10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10833 *) ac_try_echo=$ac_try;; 10834esac 10835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10836 (eval "$ac_compile") 2>conftest.er1 10837 ac_status=$? 10838 grep -v '^ *+' conftest.er1 >conftest.err 10839 rm -f conftest.er1 10840 cat conftest.err >&5 10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10842 (exit $ac_status); } && 10843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10844 { (case "(($ac_try" in 10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10846 *) ac_try_echo=$ac_try;; 10847esac 10848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10849 (eval "$ac_try") 2>&5 10850 ac_status=$? 10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10852 (exit $ac_status); }; } && 10853 { ac_try='test -s conftest.$ac_objext' 10854 { (case "(($ac_try" in 10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10856 *) ac_try_echo=$ac_try;; 10857esac 10858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10859 (eval "$ac_try") 2>&5 10860 ac_status=$? 10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10862 (exit $ac_status); }; }; then 10863 ac_header_compiler=yes 10864else 10865 echo "$as_me: failed program was:" >&5 10866sed 's/^/| /' conftest.$ac_ext >&5 10867 10868 ac_header_compiler=no 10869fi 10870 10871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10872{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10873echo "${ECHO_T}$ac_header_compiler" >&6; } 10874 10875# Is the header present? 10876{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10878cat >conftest.$ac_ext <<_ACEOF 10879/* confdefs.h. */ 10880_ACEOF 10881cat confdefs.h >>conftest.$ac_ext 10882cat >>conftest.$ac_ext <<_ACEOF 10883/* end confdefs.h. */ 10884#include <$ac_header> 10885_ACEOF 10886if { (ac_try="$ac_cpp conftest.$ac_ext" 10887case "(($ac_try" in 10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10889 *) ac_try_echo=$ac_try;; 10890esac 10891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10893 ac_status=$? 10894 grep -v '^ *+' conftest.er1 >conftest.err 10895 rm -f conftest.er1 10896 cat conftest.err >&5 10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10898 (exit $ac_status); } >/dev/null; then 10899 if test -s conftest.err; then 10900 ac_cpp_err=$ac_c_preproc_warn_flag 10901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10902 else 10903 ac_cpp_err= 10904 fi 10905else 10906 ac_cpp_err=yes 10907fi 10908if test -z "$ac_cpp_err"; then 10909 ac_header_preproc=yes 10910else 10911 echo "$as_me: failed program was:" >&5 10912sed 's/^/| /' conftest.$ac_ext >&5 10913 10914 ac_header_preproc=no 10915fi 10916 10917rm -f conftest.err conftest.$ac_ext 10918{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10919echo "${ECHO_T}$ac_header_preproc" >&6; } 10920 10921# So? What about this header? 10922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10923 yes:no: ) 10924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10928 ac_header_preproc=yes 10929 ;; 10930 no:yes:* ) 10931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10943 ( cat <<\_ASBOX 10944## ------------------------------------ ## 10945## Report this to http://llvm.org/bugs/ ## 10946## ------------------------------------ ## 10947_ASBOX 10948 ) | sed "s/^/$as_me: WARNING: /" >&2 10949 ;; 10950esac 10951{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10954 echo $ECHO_N "(cached) $ECHO_C" >&6 10955else 10956 eval "$as_ac_Header=\$ac_header_preproc" 10957fi 10958ac_res=`eval echo '${'$as_ac_Header'}'` 10959 { echo "$as_me:$LINENO: result: $ac_res" >&5 10960echo "${ECHO_T}$ac_res" >&6; } 10961 10962fi 10963if test `eval echo '${'$as_ac_Header'}'` = yes; then 10964 cat >>confdefs.h <<_ACEOF 10965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10966_ACEOF 10967 10968fi 10969 10970done 10971 10972 10973 10974 10975 10976for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 10977do 10978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10980 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10983 echo $ECHO_N "(cached) $ECHO_C" >&6 10984fi 10985ac_res=`eval echo '${'$as_ac_Header'}'` 10986 { echo "$as_me:$LINENO: result: $ac_res" >&5 10987echo "${ECHO_T}$ac_res" >&6; } 10988else 10989 # Is the header compilable? 10990{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10992cat >conftest.$ac_ext <<_ACEOF 10993/* confdefs.h. */ 10994_ACEOF 10995cat confdefs.h >>conftest.$ac_ext 10996cat >>conftest.$ac_ext <<_ACEOF 10997/* end confdefs.h. */ 10998$ac_includes_default 10999#include <$ac_header> 11000_ACEOF 11001rm -f conftest.$ac_objext 11002if { (ac_try="$ac_compile" 11003case "(($ac_try" in 11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11005 *) ac_try_echo=$ac_try;; 11006esac 11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11008 (eval "$ac_compile") 2>conftest.er1 11009 ac_status=$? 11010 grep -v '^ *+' conftest.er1 >conftest.err 11011 rm -f conftest.er1 11012 cat conftest.err >&5 11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11014 (exit $ac_status); } && 11015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11016 { (case "(($ac_try" in 11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11018 *) ac_try_echo=$ac_try;; 11019esac 11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11021 (eval "$ac_try") 2>&5 11022 ac_status=$? 11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11024 (exit $ac_status); }; } && 11025 { ac_try='test -s conftest.$ac_objext' 11026 { (case "(($ac_try" in 11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11028 *) ac_try_echo=$ac_try;; 11029esac 11030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11031 (eval "$ac_try") 2>&5 11032 ac_status=$? 11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11034 (exit $ac_status); }; }; then 11035 ac_header_compiler=yes 11036else 11037 echo "$as_me: failed program was:" >&5 11038sed 's/^/| /' conftest.$ac_ext >&5 11039 11040 ac_header_compiler=no 11041fi 11042 11043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11044{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11045echo "${ECHO_T}$ac_header_compiler" >&6; } 11046 11047# Is the header present? 11048{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11050cat >conftest.$ac_ext <<_ACEOF 11051/* confdefs.h. */ 11052_ACEOF 11053cat confdefs.h >>conftest.$ac_ext 11054cat >>conftest.$ac_ext <<_ACEOF 11055/* end confdefs.h. */ 11056#include <$ac_header> 11057_ACEOF 11058if { (ac_try="$ac_cpp conftest.$ac_ext" 11059case "(($ac_try" in 11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11061 *) ac_try_echo=$ac_try;; 11062esac 11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11065 ac_status=$? 11066 grep -v '^ *+' conftest.er1 >conftest.err 11067 rm -f conftest.er1 11068 cat conftest.err >&5 11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11070 (exit $ac_status); } >/dev/null; then 11071 if test -s conftest.err; then 11072 ac_cpp_err=$ac_c_preproc_warn_flag 11073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11074 else 11075 ac_cpp_err= 11076 fi 11077else 11078 ac_cpp_err=yes 11079fi 11080if test -z "$ac_cpp_err"; then 11081 ac_header_preproc=yes 11082else 11083 echo "$as_me: failed program was:" >&5 11084sed 's/^/| /' conftest.$ac_ext >&5 11085 11086 ac_header_preproc=no 11087fi 11088 11089rm -f conftest.err conftest.$ac_ext 11090{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11091echo "${ECHO_T}$ac_header_preproc" >&6; } 11092 11093# So? What about this header? 11094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11095 yes:no: ) 11096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11097echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11099echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11100 ac_header_preproc=yes 11101 ;; 11102 no:yes:* ) 11103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11104echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11106echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11108echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11110echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11112echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11114echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11115 ( cat <<\_ASBOX 11116## ------------------------------------ ## 11117## Report this to http://llvm.org/bugs/ ## 11118## ------------------------------------ ## 11119_ASBOX 11120 ) | sed "s/^/$as_me: WARNING: /" >&2 11121 ;; 11122esac 11123{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11126 echo $ECHO_N "(cached) $ECHO_C" >&6 11127else 11128 eval "$as_ac_Header=\$ac_header_preproc" 11129fi 11130ac_res=`eval echo '${'$as_ac_Header'}'` 11131 { echo "$as_me:$LINENO: result: $ac_res" >&5 11132echo "${ECHO_T}$ac_res" >&6; } 11133 11134fi 11135if test `eval echo '${'$as_ac_Header'}'` = yes; then 11136 cat >>confdefs.h <<_ACEOF 11137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11138_ACEOF 11139 11140fi 11141 11142done 11143 11144 11145 11146for ac_header in string.h strings.h 11147do 11148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11153 echo $ECHO_N "(cached) $ECHO_C" >&6 11154fi 11155ac_res=`eval echo '${'$as_ac_Header'}'` 11156 { echo "$as_me:$LINENO: result: $ac_res" >&5 11157echo "${ECHO_T}$ac_res" >&6; } 11158else 11159 # Is the header compilable? 11160{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11162cat >conftest.$ac_ext <<_ACEOF 11163/* confdefs.h. */ 11164_ACEOF 11165cat confdefs.h >>conftest.$ac_ext 11166cat >>conftest.$ac_ext <<_ACEOF 11167/* end confdefs.h. */ 11168$ac_includes_default 11169#include <$ac_header> 11170_ACEOF 11171rm -f conftest.$ac_objext 11172if { (ac_try="$ac_compile" 11173case "(($ac_try" in 11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11175 *) ac_try_echo=$ac_try;; 11176esac 11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11178 (eval "$ac_compile") 2>conftest.er1 11179 ac_status=$? 11180 grep -v '^ *+' conftest.er1 >conftest.err 11181 rm -f conftest.er1 11182 cat conftest.err >&5 11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11184 (exit $ac_status); } && 11185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11186 { (case "(($ac_try" in 11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11188 *) ac_try_echo=$ac_try;; 11189esac 11190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11191 (eval "$ac_try") 2>&5 11192 ac_status=$? 11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11194 (exit $ac_status); }; } && 11195 { ac_try='test -s conftest.$ac_objext' 11196 { (case "(($ac_try" in 11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11198 *) ac_try_echo=$ac_try;; 11199esac 11200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11201 (eval "$ac_try") 2>&5 11202 ac_status=$? 11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11204 (exit $ac_status); }; }; then 11205 ac_header_compiler=yes 11206else 11207 echo "$as_me: failed program was:" >&5 11208sed 's/^/| /' conftest.$ac_ext >&5 11209 11210 ac_header_compiler=no 11211fi 11212 11213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11215echo "${ECHO_T}$ac_header_compiler" >&6; } 11216 11217# Is the header present? 11218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11220cat >conftest.$ac_ext <<_ACEOF 11221/* confdefs.h. */ 11222_ACEOF 11223cat confdefs.h >>conftest.$ac_ext 11224cat >>conftest.$ac_ext <<_ACEOF 11225/* end confdefs.h. */ 11226#include <$ac_header> 11227_ACEOF 11228if { (ac_try="$ac_cpp conftest.$ac_ext" 11229case "(($ac_try" in 11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11231 *) ac_try_echo=$ac_try;; 11232esac 11233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11235 ac_status=$? 11236 grep -v '^ *+' conftest.er1 >conftest.err 11237 rm -f conftest.er1 11238 cat conftest.err >&5 11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11240 (exit $ac_status); } >/dev/null; then 11241 if test -s conftest.err; then 11242 ac_cpp_err=$ac_c_preproc_warn_flag 11243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11244 else 11245 ac_cpp_err= 11246 fi 11247else 11248 ac_cpp_err=yes 11249fi 11250if test -z "$ac_cpp_err"; then 11251 ac_header_preproc=yes 11252else 11253 echo "$as_me: failed program was:" >&5 11254sed 's/^/| /' conftest.$ac_ext >&5 11255 11256 ac_header_preproc=no 11257fi 11258 11259rm -f conftest.err conftest.$ac_ext 11260{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11261echo "${ECHO_T}$ac_header_preproc" >&6; } 11262 11263# So? What about this header? 11264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11265 yes:no: ) 11266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11270 ac_header_preproc=yes 11271 ;; 11272 no:yes:* ) 11273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11285 ( cat <<\_ASBOX 11286## ------------------------------------ ## 11287## Report this to http://llvm.org/bugs/ ## 11288## ------------------------------------ ## 11289_ASBOX 11290 ) | sed "s/^/$as_me: WARNING: /" >&2 11291 ;; 11292esac 11293{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11296 echo $ECHO_N "(cached) $ECHO_C" >&6 11297else 11298 eval "$as_ac_Header=\$ac_header_preproc" 11299fi 11300ac_res=`eval echo '${'$as_ac_Header'}'` 11301 { echo "$as_me:$LINENO: result: $ac_res" >&5 11302echo "${ECHO_T}$ac_res" >&6; } 11303 11304fi 11305if test `eval echo '${'$as_ac_Header'}'` = yes; then 11306 cat >>confdefs.h <<_ACEOF 11307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11308_ACEOF 11309 break 11310fi 11311 11312done 11313 11314 11315 11316 11317for ac_func in strchr index 11318do 11319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11320{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11322if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11323 echo $ECHO_N "(cached) $ECHO_C" >&6 11324else 11325 cat >conftest.$ac_ext <<_ACEOF 11326/* confdefs.h. */ 11327_ACEOF 11328cat confdefs.h >>conftest.$ac_ext 11329cat >>conftest.$ac_ext <<_ACEOF 11330/* end confdefs.h. */ 11331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11332 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11333#define $ac_func innocuous_$ac_func 11334 11335/* System header to define __stub macros and hopefully few prototypes, 11336 which can conflict with char $ac_func (); below. 11337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11338 <limits.h> exists even on freestanding compilers. */ 11339 11340#ifdef __STDC__ 11341# include <limits.h> 11342#else 11343# include <assert.h> 11344#endif 11345 11346#undef $ac_func 11347 11348/* Override any GCC internal prototype to avoid an error. 11349 Use char because int might match the return type of a GCC 11350 builtin and then its argument prototype would still apply. */ 11351#ifdef __cplusplus 11352extern "C" 11353#endif 11354char $ac_func (); 11355/* The GNU C library defines this for functions which it implements 11356 to always fail with ENOSYS. Some functions are actually named 11357 something starting with __ and the normal name is an alias. */ 11358#if defined __stub_$ac_func || defined __stub___$ac_func 11359choke me 11360#endif 11361 11362int 11363main () 11364{ 11365return $ac_func (); 11366 ; 11367 return 0; 11368} 11369_ACEOF 11370rm -f conftest.$ac_objext conftest$ac_exeext 11371if { (ac_try="$ac_link" 11372case "(($ac_try" in 11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11374 *) ac_try_echo=$ac_try;; 11375esac 11376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11377 (eval "$ac_link") 2>conftest.er1 11378 ac_status=$? 11379 grep -v '^ *+' conftest.er1 >conftest.err 11380 rm -f conftest.er1 11381 cat conftest.err >&5 11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11383 (exit $ac_status); } && 11384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11385 { (case "(($ac_try" in 11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11387 *) ac_try_echo=$ac_try;; 11388esac 11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11390 (eval "$ac_try") 2>&5 11391 ac_status=$? 11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11393 (exit $ac_status); }; } && 11394 { ac_try='test -s conftest$ac_exeext' 11395 { (case "(($ac_try" in 11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11397 *) ac_try_echo=$ac_try;; 11398esac 11399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11400 (eval "$ac_try") 2>&5 11401 ac_status=$? 11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11403 (exit $ac_status); }; }; then 11404 eval "$as_ac_var=yes" 11405else 11406 echo "$as_me: failed program was:" >&5 11407sed 's/^/| /' conftest.$ac_ext >&5 11408 11409 eval "$as_ac_var=no" 11410fi 11411 11412rm -f core conftest.err conftest.$ac_objext \ 11413 conftest$ac_exeext conftest.$ac_ext 11414fi 11415ac_res=`eval echo '${'$as_ac_var'}'` 11416 { echo "$as_me:$LINENO: result: $ac_res" >&5 11417echo "${ECHO_T}$ac_res" >&6; } 11418if test `eval echo '${'$as_ac_var'}'` = yes; then 11419 cat >>confdefs.h <<_ACEOF 11420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11421_ACEOF 11422 break 11423fi 11424done 11425 11426 11427 11428for ac_func in strrchr rindex 11429do 11430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11431{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11434 echo $ECHO_N "(cached) $ECHO_C" >&6 11435else 11436 cat >conftest.$ac_ext <<_ACEOF 11437/* confdefs.h. */ 11438_ACEOF 11439cat confdefs.h >>conftest.$ac_ext 11440cat >>conftest.$ac_ext <<_ACEOF 11441/* end confdefs.h. */ 11442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11443 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11444#define $ac_func innocuous_$ac_func 11445 11446/* System header to define __stub macros and hopefully few prototypes, 11447 which can conflict with char $ac_func (); below. 11448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11449 <limits.h> exists even on freestanding compilers. */ 11450 11451#ifdef __STDC__ 11452# include <limits.h> 11453#else 11454# include <assert.h> 11455#endif 11456 11457#undef $ac_func 11458 11459/* Override any GCC internal prototype to avoid an error. 11460 Use char because int might match the return type of a GCC 11461 builtin and then its argument prototype would still apply. */ 11462#ifdef __cplusplus 11463extern "C" 11464#endif 11465char $ac_func (); 11466/* The GNU C library defines this for functions which it implements 11467 to always fail with ENOSYS. Some functions are actually named 11468 something starting with __ and the normal name is an alias. */ 11469#if defined __stub_$ac_func || defined __stub___$ac_func 11470choke me 11471#endif 11472 11473int 11474main () 11475{ 11476return $ac_func (); 11477 ; 11478 return 0; 11479} 11480_ACEOF 11481rm -f conftest.$ac_objext conftest$ac_exeext 11482if { (ac_try="$ac_link" 11483case "(($ac_try" in 11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11485 *) ac_try_echo=$ac_try;; 11486esac 11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11488 (eval "$ac_link") 2>conftest.er1 11489 ac_status=$? 11490 grep -v '^ *+' conftest.er1 >conftest.err 11491 rm -f conftest.er1 11492 cat conftest.err >&5 11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11494 (exit $ac_status); } && 11495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11496 { (case "(($ac_try" in 11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11498 *) ac_try_echo=$ac_try;; 11499esac 11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11501 (eval "$ac_try") 2>&5 11502 ac_status=$? 11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11504 (exit $ac_status); }; } && 11505 { ac_try='test -s conftest$ac_exeext' 11506 { (case "(($ac_try" in 11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11508 *) ac_try_echo=$ac_try;; 11509esac 11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11511 (eval "$ac_try") 2>&5 11512 ac_status=$? 11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11514 (exit $ac_status); }; }; then 11515 eval "$as_ac_var=yes" 11516else 11517 echo "$as_me: failed program was:" >&5 11518sed 's/^/| /' conftest.$ac_ext >&5 11519 11520 eval "$as_ac_var=no" 11521fi 11522 11523rm -f core conftest.err conftest.$ac_objext \ 11524 conftest$ac_exeext conftest.$ac_ext 11525fi 11526ac_res=`eval echo '${'$as_ac_var'}'` 11527 { echo "$as_me:$LINENO: result: $ac_res" >&5 11528echo "${ECHO_T}$ac_res" >&6; } 11529if test `eval echo '${'$as_ac_var'}'` = yes; then 11530 cat >>confdefs.h <<_ACEOF 11531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11532_ACEOF 11533 break 11534fi 11535done 11536 11537 11538 11539for ac_func in memcpy bcopy 11540do 11541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11542{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11545 echo $ECHO_N "(cached) $ECHO_C" >&6 11546else 11547 cat >conftest.$ac_ext <<_ACEOF 11548/* confdefs.h. */ 11549_ACEOF 11550cat confdefs.h >>conftest.$ac_ext 11551cat >>conftest.$ac_ext <<_ACEOF 11552/* end confdefs.h. */ 11553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11554 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11555#define $ac_func innocuous_$ac_func 11556 11557/* System header to define __stub macros and hopefully few prototypes, 11558 which can conflict with char $ac_func (); below. 11559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11560 <limits.h> exists even on freestanding compilers. */ 11561 11562#ifdef __STDC__ 11563# include <limits.h> 11564#else 11565# include <assert.h> 11566#endif 11567 11568#undef $ac_func 11569 11570/* Override any GCC internal prototype to avoid an error. 11571 Use char because int might match the return type of a GCC 11572 builtin and then its argument prototype would still apply. */ 11573#ifdef __cplusplus 11574extern "C" 11575#endif 11576char $ac_func (); 11577/* The GNU C library defines this for functions which it implements 11578 to always fail with ENOSYS. Some functions are actually named 11579 something starting with __ and the normal name is an alias. */ 11580#if defined __stub_$ac_func || defined __stub___$ac_func 11581choke me 11582#endif 11583 11584int 11585main () 11586{ 11587return $ac_func (); 11588 ; 11589 return 0; 11590} 11591_ACEOF 11592rm -f conftest.$ac_objext conftest$ac_exeext 11593if { (ac_try="$ac_link" 11594case "(($ac_try" in 11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11596 *) ac_try_echo=$ac_try;; 11597esac 11598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11599 (eval "$ac_link") 2>conftest.er1 11600 ac_status=$? 11601 grep -v '^ *+' conftest.er1 >conftest.err 11602 rm -f conftest.er1 11603 cat conftest.err >&5 11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11605 (exit $ac_status); } && 11606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11607 { (case "(($ac_try" in 11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11609 *) ac_try_echo=$ac_try;; 11610esac 11611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11612 (eval "$ac_try") 2>&5 11613 ac_status=$? 11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11615 (exit $ac_status); }; } && 11616 { ac_try='test -s conftest$ac_exeext' 11617 { (case "(($ac_try" in 11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11619 *) ac_try_echo=$ac_try;; 11620esac 11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11622 (eval "$ac_try") 2>&5 11623 ac_status=$? 11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11625 (exit $ac_status); }; }; then 11626 eval "$as_ac_var=yes" 11627else 11628 echo "$as_me: failed program was:" >&5 11629sed 's/^/| /' conftest.$ac_ext >&5 11630 11631 eval "$as_ac_var=no" 11632fi 11633 11634rm -f core conftest.err conftest.$ac_objext \ 11635 conftest$ac_exeext conftest.$ac_ext 11636fi 11637ac_res=`eval echo '${'$as_ac_var'}'` 11638 { echo "$as_me:$LINENO: result: $ac_res" >&5 11639echo "${ECHO_T}$ac_res" >&6; } 11640if test `eval echo '${'$as_ac_var'}'` = yes; then 11641 cat >>confdefs.h <<_ACEOF 11642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11643_ACEOF 11644 break 11645fi 11646done 11647 11648 11649 11650for ac_func in memmove strcmp 11651do 11652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11653{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11656 echo $ECHO_N "(cached) $ECHO_C" >&6 11657else 11658 cat >conftest.$ac_ext <<_ACEOF 11659/* confdefs.h. */ 11660_ACEOF 11661cat confdefs.h >>conftest.$ac_ext 11662cat >>conftest.$ac_ext <<_ACEOF 11663/* end confdefs.h. */ 11664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11666#define $ac_func innocuous_$ac_func 11667 11668/* System header to define __stub macros and hopefully few prototypes, 11669 which can conflict with char $ac_func (); below. 11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11671 <limits.h> exists even on freestanding compilers. */ 11672 11673#ifdef __STDC__ 11674# include <limits.h> 11675#else 11676# include <assert.h> 11677#endif 11678 11679#undef $ac_func 11680 11681/* Override any GCC internal prototype to avoid an error. 11682 Use char because int might match the return type of a GCC 11683 builtin and then its argument prototype would still apply. */ 11684#ifdef __cplusplus 11685extern "C" 11686#endif 11687char $ac_func (); 11688/* The GNU C library defines this for functions which it implements 11689 to always fail with ENOSYS. Some functions are actually named 11690 something starting with __ and the normal name is an alias. */ 11691#if defined __stub_$ac_func || defined __stub___$ac_func 11692choke me 11693#endif 11694 11695int 11696main () 11697{ 11698return $ac_func (); 11699 ; 11700 return 0; 11701} 11702_ACEOF 11703rm -f conftest.$ac_objext conftest$ac_exeext 11704if { (ac_try="$ac_link" 11705case "(($ac_try" in 11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11707 *) ac_try_echo=$ac_try;; 11708esac 11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11710 (eval "$ac_link") 2>conftest.er1 11711 ac_status=$? 11712 grep -v '^ *+' conftest.er1 >conftest.err 11713 rm -f conftest.er1 11714 cat conftest.err >&5 11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11716 (exit $ac_status); } && 11717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11718 { (case "(($ac_try" in 11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11720 *) ac_try_echo=$ac_try;; 11721esac 11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11723 (eval "$ac_try") 2>&5 11724 ac_status=$? 11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11726 (exit $ac_status); }; } && 11727 { ac_try='test -s conftest$ac_exeext' 11728 { (case "(($ac_try" in 11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11730 *) ac_try_echo=$ac_try;; 11731esac 11732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11733 (eval "$ac_try") 2>&5 11734 ac_status=$? 11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11736 (exit $ac_status); }; }; then 11737 eval "$as_ac_var=yes" 11738else 11739 echo "$as_me: failed program was:" >&5 11740sed 's/^/| /' conftest.$ac_ext >&5 11741 11742 eval "$as_ac_var=no" 11743fi 11744 11745rm -f core conftest.err conftest.$ac_objext \ 11746 conftest$ac_exeext conftest.$ac_ext 11747fi 11748ac_res=`eval echo '${'$as_ac_var'}'` 11749 { echo "$as_me:$LINENO: result: $ac_res" >&5 11750echo "${ECHO_T}$ac_res" >&6; } 11751if test `eval echo '${'$as_ac_var'}'` = yes; then 11752 cat >>confdefs.h <<_ACEOF 11753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11754_ACEOF 11755 11756fi 11757done 11758 11759 11760 11761 11762for ac_func in closedir opendir readdir 11763do 11764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11765{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11768 echo $ECHO_N "(cached) $ECHO_C" >&6 11769else 11770 cat >conftest.$ac_ext <<_ACEOF 11771/* confdefs.h. */ 11772_ACEOF 11773cat confdefs.h >>conftest.$ac_ext 11774cat >>conftest.$ac_ext <<_ACEOF 11775/* end confdefs.h. */ 11776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11778#define $ac_func innocuous_$ac_func 11779 11780/* System header to define __stub macros and hopefully few prototypes, 11781 which can conflict with char $ac_func (); below. 11782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11783 <limits.h> exists even on freestanding compilers. */ 11784 11785#ifdef __STDC__ 11786# include <limits.h> 11787#else 11788# include <assert.h> 11789#endif 11790 11791#undef $ac_func 11792 11793/* Override any GCC internal prototype to avoid an error. 11794 Use char because int might match the return type of a GCC 11795 builtin and then its argument prototype would still apply. */ 11796#ifdef __cplusplus 11797extern "C" 11798#endif 11799char $ac_func (); 11800/* The GNU C library defines this for functions which it implements 11801 to always fail with ENOSYS. Some functions are actually named 11802 something starting with __ and the normal name is an alias. */ 11803#if defined __stub_$ac_func || defined __stub___$ac_func 11804choke me 11805#endif 11806 11807int 11808main () 11809{ 11810return $ac_func (); 11811 ; 11812 return 0; 11813} 11814_ACEOF 11815rm -f conftest.$ac_objext conftest$ac_exeext 11816if { (ac_try="$ac_link" 11817case "(($ac_try" in 11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11819 *) ac_try_echo=$ac_try;; 11820esac 11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11822 (eval "$ac_link") 2>conftest.er1 11823 ac_status=$? 11824 grep -v '^ *+' conftest.er1 >conftest.err 11825 rm -f conftest.er1 11826 cat conftest.err >&5 11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11828 (exit $ac_status); } && 11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11830 { (case "(($ac_try" in 11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11832 *) ac_try_echo=$ac_try;; 11833esac 11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11835 (eval "$ac_try") 2>&5 11836 ac_status=$? 11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11838 (exit $ac_status); }; } && 11839 { ac_try='test -s conftest$ac_exeext' 11840 { (case "(($ac_try" in 11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11842 *) ac_try_echo=$ac_try;; 11843esac 11844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11845 (eval "$ac_try") 2>&5 11846 ac_status=$? 11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11848 (exit $ac_status); }; }; then 11849 eval "$as_ac_var=yes" 11850else 11851 echo "$as_me: failed program was:" >&5 11852sed 's/^/| /' conftest.$ac_ext >&5 11853 11854 eval "$as_ac_var=no" 11855fi 11856 11857rm -f core conftest.err conftest.$ac_objext \ 11858 conftest$ac_exeext conftest.$ac_ext 11859fi 11860ac_res=`eval echo '${'$as_ac_var'}'` 11861 { echo "$as_me:$LINENO: result: $ac_res" >&5 11862echo "${ECHO_T}$ac_res" >&6; } 11863if test `eval echo '${'$as_ac_var'}'` = yes; then 11864 cat >>confdefs.h <<_ACEOF 11865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11866_ACEOF 11867 11868fi 11869done 11870 11871 11872 11873{ echo "$as_me:$LINENO: checking tool compatibility" >&5 11874echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 11875 11876ICC=no 11877IXX=no 11878case $CC in 11879 icc*|icpc*) 11880 ICC=yes 11881 IXX=yes 11882 ;; 11883 *) 11884 ;; 11885esac 11886 11887if test "$GCC" != "yes" && test "$ICC" != "yes" 11888then 11889 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 11890echo "$as_me: error: gcc|icc required but not found" >&2;} 11891 { (exit 1); exit 1; }; } 11892fi 11893 11894if test "$GXX" != "yes" && test "$IXX" != "yes" 11895then 11896 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 11897echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 11898 { (exit 1); exit 1; }; } 11899fi 11900 11901if test "$GCC" = "yes" 11902then 11903 cat >conftest.$ac_ext <<_ACEOF 11904#if !defined(__GNUC__) || __GNUC__ < 3 11905#error Unsupported GCC version 11906#endif 11907 11908_ACEOF 11909rm -f conftest.$ac_objext 11910if { (ac_try="$ac_compile" 11911case "(($ac_try" in 11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11913 *) ac_try_echo=$ac_try;; 11914esac 11915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11916 (eval "$ac_compile") 2>conftest.er1 11917 ac_status=$? 11918 grep -v '^ *+' conftest.er1 >conftest.err 11919 rm -f conftest.er1 11920 cat conftest.err >&5 11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11922 (exit $ac_status); } && 11923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11924 { (case "(($ac_try" in 11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11926 *) ac_try_echo=$ac_try;; 11927esac 11928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11929 (eval "$ac_try") 2>&5 11930 ac_status=$? 11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11932 (exit $ac_status); }; } && 11933 { ac_try='test -s conftest.$ac_objext' 11934 { (case "(($ac_try" in 11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11936 *) ac_try_echo=$ac_try;; 11937esac 11938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11939 (eval "$ac_try") 2>&5 11940 ac_status=$? 11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11942 (exit $ac_status); }; }; then 11943 : 11944else 11945 echo "$as_me: failed program was:" >&5 11946sed 's/^/| /' conftest.$ac_ext >&5 11947 11948 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 11949echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 11950 { (exit 1); exit 1; }; } 11951fi 11952 11953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11954fi 11955 11956if test -z "$llvm_cv_gnu_make_command" 11957then 11958 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 11959echo "$as_me: error: GNU Make required but not found" >&2;} 11960 { (exit 1); exit 1; }; } 11961fi 11962 11963{ echo "$as_me:$LINENO: result: ok" >&5 11964echo "${ECHO_T}ok" >&6; } 11965 11966{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 11967echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 11968NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 11969 11970NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 11971 11972COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 11973 11974{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 11975echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } 11976 11977 11978 11979{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 11980echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 11981if test "${ac_cv_lib_m_sin+set}" = set; then 11982 echo $ECHO_N "(cached) $ECHO_C" >&6 11983else 11984 ac_check_lib_save_LIBS=$LIBS 11985LIBS="-lm $LIBS" 11986cat >conftest.$ac_ext <<_ACEOF 11987/* confdefs.h. */ 11988_ACEOF 11989cat confdefs.h >>conftest.$ac_ext 11990cat >>conftest.$ac_ext <<_ACEOF 11991/* end confdefs.h. */ 11992 11993/* Override any GCC internal prototype to avoid an error. 11994 Use char because int might match the return type of a GCC 11995 builtin and then its argument prototype would still apply. */ 11996#ifdef __cplusplus 11997extern "C" 11998#endif 11999char sin (); 12000int 12001main () 12002{ 12003return sin (); 12004 ; 12005 return 0; 12006} 12007_ACEOF 12008rm -f conftest.$ac_objext conftest$ac_exeext 12009if { (ac_try="$ac_link" 12010case "(($ac_try" in 12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12012 *) ac_try_echo=$ac_try;; 12013esac 12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12015 (eval "$ac_link") 2>conftest.er1 12016 ac_status=$? 12017 grep -v '^ *+' conftest.er1 >conftest.err 12018 rm -f conftest.er1 12019 cat conftest.err >&5 12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12021 (exit $ac_status); } && 12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12023 { (case "(($ac_try" in 12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12025 *) ac_try_echo=$ac_try;; 12026esac 12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12028 (eval "$ac_try") 2>&5 12029 ac_status=$? 12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12031 (exit $ac_status); }; } && 12032 { ac_try='test -s conftest$ac_exeext' 12033 { (case "(($ac_try" in 12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12035 *) ac_try_echo=$ac_try;; 12036esac 12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12038 (eval "$ac_try") 2>&5 12039 ac_status=$? 12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12041 (exit $ac_status); }; }; then 12042 ac_cv_lib_m_sin=yes 12043else 12044 echo "$as_me: failed program was:" >&5 12045sed 's/^/| /' conftest.$ac_ext >&5 12046 12047 ac_cv_lib_m_sin=no 12048fi 12049 12050rm -f core conftest.err conftest.$ac_objext \ 12051 conftest$ac_exeext conftest.$ac_ext 12052LIBS=$ac_check_lib_save_LIBS 12053fi 12054{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12055echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12056if test $ac_cv_lib_m_sin = yes; then 12057 cat >>confdefs.h <<_ACEOF 12058#define HAVE_LIBM 1 12059_ACEOF 12060 12061 LIBS="-lm $LIBS" 12062 12063fi 12064 12065if test "$llvm_cv_os_type" = "MingW" ; then 12066 12067{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12068echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12069if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12070 echo $ECHO_N "(cached) $ECHO_C" >&6 12071else 12072 ac_check_lib_save_LIBS=$LIBS 12073LIBS="-limagehlp $LIBS" 12074cat >conftest.$ac_ext <<_ACEOF 12075/* confdefs.h. */ 12076_ACEOF 12077cat confdefs.h >>conftest.$ac_ext 12078cat >>conftest.$ac_ext <<_ACEOF 12079/* end confdefs.h. */ 12080 12081 12082int 12083main () 12084{ 12085return main (); 12086 ; 12087 return 0; 12088} 12089_ACEOF 12090rm -f conftest.$ac_objext conftest$ac_exeext 12091if { (ac_try="$ac_link" 12092case "(($ac_try" in 12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12094 *) ac_try_echo=$ac_try;; 12095esac 12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12097 (eval "$ac_link") 2>conftest.er1 12098 ac_status=$? 12099 grep -v '^ *+' conftest.er1 >conftest.err 12100 rm -f conftest.er1 12101 cat conftest.err >&5 12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12103 (exit $ac_status); } && 12104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12105 { (case "(($ac_try" in 12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12107 *) ac_try_echo=$ac_try;; 12108esac 12109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12110 (eval "$ac_try") 2>&5 12111 ac_status=$? 12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12113 (exit $ac_status); }; } && 12114 { ac_try='test -s conftest$ac_exeext' 12115 { (case "(($ac_try" in 12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12117 *) ac_try_echo=$ac_try;; 12118esac 12119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12120 (eval "$ac_try") 2>&5 12121 ac_status=$? 12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12123 (exit $ac_status); }; }; then 12124 ac_cv_lib_imagehlp_main=yes 12125else 12126 echo "$as_me: failed program was:" >&5 12127sed 's/^/| /' conftest.$ac_ext >&5 12128 12129 ac_cv_lib_imagehlp_main=no 12130fi 12131 12132rm -f core conftest.err conftest.$ac_objext \ 12133 conftest$ac_exeext conftest.$ac_ext 12134LIBS=$ac_check_lib_save_LIBS 12135fi 12136{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12137echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12138if test $ac_cv_lib_imagehlp_main = yes; then 12139 cat >>confdefs.h <<_ACEOF 12140#define HAVE_LIBIMAGEHLP 1 12141_ACEOF 12142 12143 LIBS="-limagehlp $LIBS" 12144 12145fi 12146 12147 12148{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12149echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12150if test "${ac_cv_lib_psapi_main+set}" = set; then 12151 echo $ECHO_N "(cached) $ECHO_C" >&6 12152else 12153 ac_check_lib_save_LIBS=$LIBS 12154LIBS="-lpsapi $LIBS" 12155cat >conftest.$ac_ext <<_ACEOF 12156/* confdefs.h. */ 12157_ACEOF 12158cat confdefs.h >>conftest.$ac_ext 12159cat >>conftest.$ac_ext <<_ACEOF 12160/* end confdefs.h. */ 12161 12162 12163int 12164main () 12165{ 12166return main (); 12167 ; 12168 return 0; 12169} 12170_ACEOF 12171rm -f conftest.$ac_objext conftest$ac_exeext 12172if { (ac_try="$ac_link" 12173case "(($ac_try" in 12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12175 *) ac_try_echo=$ac_try;; 12176esac 12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12178 (eval "$ac_link") 2>conftest.er1 12179 ac_status=$? 12180 grep -v '^ *+' conftest.er1 >conftest.err 12181 rm -f conftest.er1 12182 cat conftest.err >&5 12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12184 (exit $ac_status); } && 12185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12186 { (case "(($ac_try" in 12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12188 *) ac_try_echo=$ac_try;; 12189esac 12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12191 (eval "$ac_try") 2>&5 12192 ac_status=$? 12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12194 (exit $ac_status); }; } && 12195 { ac_try='test -s conftest$ac_exeext' 12196 { (case "(($ac_try" in 12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12198 *) ac_try_echo=$ac_try;; 12199esac 12200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12201 (eval "$ac_try") 2>&5 12202 ac_status=$? 12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12204 (exit $ac_status); }; }; then 12205 ac_cv_lib_psapi_main=yes 12206else 12207 echo "$as_me: failed program was:" >&5 12208sed 's/^/| /' conftest.$ac_ext >&5 12209 12210 ac_cv_lib_psapi_main=no 12211fi 12212 12213rm -f core conftest.err conftest.$ac_objext \ 12214 conftest$ac_exeext conftest.$ac_ext 12215LIBS=$ac_check_lib_save_LIBS 12216fi 12217{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12218echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12219if test $ac_cv_lib_psapi_main = yes; then 12220 cat >>confdefs.h <<_ACEOF 12221#define HAVE_LIBPSAPI 1 12222_ACEOF 12223 12224 LIBS="-lpsapi $LIBS" 12225 12226fi 12227 12228fi 12229 12230{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12231echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12232if test "${ac_cv_search_dlopen+set}" = set; then 12233 echo $ECHO_N "(cached) $ECHO_C" >&6 12234else 12235 ac_func_search_save_LIBS=$LIBS 12236cat >conftest.$ac_ext <<_ACEOF 12237/* confdefs.h. */ 12238_ACEOF 12239cat confdefs.h >>conftest.$ac_ext 12240cat >>conftest.$ac_ext <<_ACEOF 12241/* end confdefs.h. */ 12242 12243/* Override any GCC internal prototype to avoid an error. 12244 Use char because int might match the return type of a GCC 12245 builtin and then its argument prototype would still apply. */ 12246#ifdef __cplusplus 12247extern "C" 12248#endif 12249char dlopen (); 12250int 12251main () 12252{ 12253return dlopen (); 12254 ; 12255 return 0; 12256} 12257_ACEOF 12258for ac_lib in '' dl; do 12259 if test -z "$ac_lib"; then 12260 ac_res="none required" 12261 else 12262 ac_res=-l$ac_lib 12263 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12264 fi 12265 rm -f conftest.$ac_objext conftest$ac_exeext 12266if { (ac_try="$ac_link" 12267case "(($ac_try" in 12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12269 *) ac_try_echo=$ac_try;; 12270esac 12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12272 (eval "$ac_link") 2>conftest.er1 12273 ac_status=$? 12274 grep -v '^ *+' conftest.er1 >conftest.err 12275 rm -f conftest.er1 12276 cat conftest.err >&5 12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12278 (exit $ac_status); } && 12279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12280 { (case "(($ac_try" in 12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12282 *) ac_try_echo=$ac_try;; 12283esac 12284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12285 (eval "$ac_try") 2>&5 12286 ac_status=$? 12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12288 (exit $ac_status); }; } && 12289 { ac_try='test -s conftest$ac_exeext' 12290 { (case "(($ac_try" in 12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12292 *) ac_try_echo=$ac_try;; 12293esac 12294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12295 (eval "$ac_try") 2>&5 12296 ac_status=$? 12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12298 (exit $ac_status); }; }; then 12299 ac_cv_search_dlopen=$ac_res 12300else 12301 echo "$as_me: failed program was:" >&5 12302sed 's/^/| /' conftest.$ac_ext >&5 12303 12304 12305fi 12306 12307rm -f core conftest.err conftest.$ac_objext \ 12308 conftest$ac_exeext 12309 if test "${ac_cv_search_dlopen+set}" = set; then 12310 break 12311fi 12312done 12313if test "${ac_cv_search_dlopen+set}" = set; then 12314 : 12315else 12316 ac_cv_search_dlopen=no 12317fi 12318rm conftest.$ac_ext 12319LIBS=$ac_func_search_save_LIBS 12320fi 12321{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12322echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12323ac_res=$ac_cv_search_dlopen 12324if test "$ac_res" != no; then 12325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12326 12327cat >>confdefs.h <<\_ACEOF 12328#define HAVE_DLOPEN 1 12329_ACEOF 12330 12331else 12332 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12333echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12334fi 12335 12336 12337if test "$llvm_cv_enable_libffi" = "yes" ; then 12338 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12339echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12340if test "${ac_cv_search_ffi_call+set}" = set; then 12341 echo $ECHO_N "(cached) $ECHO_C" >&6 12342else 12343 ac_func_search_save_LIBS=$LIBS 12344cat >conftest.$ac_ext <<_ACEOF 12345/* confdefs.h. */ 12346_ACEOF 12347cat confdefs.h >>conftest.$ac_ext 12348cat >>conftest.$ac_ext <<_ACEOF 12349/* end confdefs.h. */ 12350 12351/* Override any GCC internal prototype to avoid an error. 12352 Use char because int might match the return type of a GCC 12353 builtin and then its argument prototype would still apply. */ 12354#ifdef __cplusplus 12355extern "C" 12356#endif 12357char ffi_call (); 12358int 12359main () 12360{ 12361return ffi_call (); 12362 ; 12363 return 0; 12364} 12365_ACEOF 12366for ac_lib in '' ffi; do 12367 if test -z "$ac_lib"; then 12368 ac_res="none required" 12369 else 12370 ac_res=-l$ac_lib 12371 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12372 fi 12373 rm -f conftest.$ac_objext conftest$ac_exeext 12374if { (ac_try="$ac_link" 12375case "(($ac_try" in 12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12377 *) ac_try_echo=$ac_try;; 12378esac 12379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12380 (eval "$ac_link") 2>conftest.er1 12381 ac_status=$? 12382 grep -v '^ *+' conftest.er1 >conftest.err 12383 rm -f conftest.er1 12384 cat conftest.err >&5 12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12386 (exit $ac_status); } && 12387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12388 { (case "(($ac_try" in 12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12390 *) ac_try_echo=$ac_try;; 12391esac 12392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12393 (eval "$ac_try") 2>&5 12394 ac_status=$? 12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12396 (exit $ac_status); }; } && 12397 { ac_try='test -s conftest$ac_exeext' 12398 { (case "(($ac_try" in 12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12400 *) ac_try_echo=$ac_try;; 12401esac 12402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12403 (eval "$ac_try") 2>&5 12404 ac_status=$? 12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); }; }; then 12407 ac_cv_search_ffi_call=$ac_res 12408else 12409 echo "$as_me: failed program was:" >&5 12410sed 's/^/| /' conftest.$ac_ext >&5 12411 12412 12413fi 12414 12415rm -f core conftest.err conftest.$ac_objext \ 12416 conftest$ac_exeext 12417 if test "${ac_cv_search_ffi_call+set}" = set; then 12418 break 12419fi 12420done 12421if test "${ac_cv_search_ffi_call+set}" = set; then 12422 : 12423else 12424 ac_cv_search_ffi_call=no 12425fi 12426rm conftest.$ac_ext 12427LIBS=$ac_func_search_save_LIBS 12428fi 12429{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12430echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12431ac_res=$ac_cv_search_ffi_call 12432if test "$ac_res" != no; then 12433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12434 12435cat >>confdefs.h <<\_ACEOF 12436#define HAVE_FFI_CALL 1 12437_ACEOF 12438 12439else 12440 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12441echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12442 { (exit 1); exit 1; }; } 12443fi 12444 12445fi 12446 12447{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12448echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12449if test "${ac_cv_search_mallinfo+set}" = set; then 12450 echo $ECHO_N "(cached) $ECHO_C" >&6 12451else 12452 ac_func_search_save_LIBS=$LIBS 12453cat >conftest.$ac_ext <<_ACEOF 12454/* confdefs.h. */ 12455_ACEOF 12456cat confdefs.h >>conftest.$ac_ext 12457cat >>conftest.$ac_ext <<_ACEOF 12458/* end confdefs.h. */ 12459 12460/* Override any GCC internal prototype to avoid an error. 12461 Use char because int might match the return type of a GCC 12462 builtin and then its argument prototype would still apply. */ 12463#ifdef __cplusplus 12464extern "C" 12465#endif 12466char mallinfo (); 12467int 12468main () 12469{ 12470return mallinfo (); 12471 ; 12472 return 0; 12473} 12474_ACEOF 12475for ac_lib in '' malloc; do 12476 if test -z "$ac_lib"; then 12477 ac_res="none required" 12478 else 12479 ac_res=-l$ac_lib 12480 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12481 fi 12482 rm -f conftest.$ac_objext conftest$ac_exeext 12483if { (ac_try="$ac_link" 12484case "(($ac_try" in 12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12486 *) ac_try_echo=$ac_try;; 12487esac 12488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12489 (eval "$ac_link") 2>conftest.er1 12490 ac_status=$? 12491 grep -v '^ *+' conftest.er1 >conftest.err 12492 rm -f conftest.er1 12493 cat conftest.err >&5 12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12495 (exit $ac_status); } && 12496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12497 { (case "(($ac_try" in 12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12499 *) ac_try_echo=$ac_try;; 12500esac 12501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12502 (eval "$ac_try") 2>&5 12503 ac_status=$? 12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12505 (exit $ac_status); }; } && 12506 { ac_try='test -s conftest$ac_exeext' 12507 { (case "(($ac_try" in 12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12509 *) ac_try_echo=$ac_try;; 12510esac 12511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12512 (eval "$ac_try") 2>&5 12513 ac_status=$? 12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12515 (exit $ac_status); }; }; then 12516 ac_cv_search_mallinfo=$ac_res 12517else 12518 echo "$as_me: failed program was:" >&5 12519sed 's/^/| /' conftest.$ac_ext >&5 12520 12521 12522fi 12523 12524rm -f core conftest.err conftest.$ac_objext \ 12525 conftest$ac_exeext 12526 if test "${ac_cv_search_mallinfo+set}" = set; then 12527 break 12528fi 12529done 12530if test "${ac_cv_search_mallinfo+set}" = set; then 12531 : 12532else 12533 ac_cv_search_mallinfo=no 12534fi 12535rm conftest.$ac_ext 12536LIBS=$ac_func_search_save_LIBS 12537fi 12538{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 12539echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 12540ac_res=$ac_cv_search_mallinfo 12541if test "$ac_res" != no; then 12542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12543 12544cat >>confdefs.h <<\_ACEOF 12545#define HAVE_MALLINFO 1 12546_ACEOF 12547 12548fi 12549 12550 12551if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12552 12553{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 12554echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 12555if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 12556 echo $ECHO_N "(cached) $ECHO_C" >&6 12557else 12558 ac_check_lib_save_LIBS=$LIBS 12559LIBS="-lpthread $LIBS" 12560cat >conftest.$ac_ext <<_ACEOF 12561/* confdefs.h. */ 12562_ACEOF 12563cat confdefs.h >>conftest.$ac_ext 12564cat >>conftest.$ac_ext <<_ACEOF 12565/* end confdefs.h. */ 12566 12567/* Override any GCC internal prototype to avoid an error. 12568 Use char because int might match the return type of a GCC 12569 builtin and then its argument prototype would still apply. */ 12570#ifdef __cplusplus 12571extern "C" 12572#endif 12573char pthread_mutex_init (); 12574int 12575main () 12576{ 12577return pthread_mutex_init (); 12578 ; 12579 return 0; 12580} 12581_ACEOF 12582rm -f conftest.$ac_objext conftest$ac_exeext 12583if { (ac_try="$ac_link" 12584case "(($ac_try" in 12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12586 *) ac_try_echo=$ac_try;; 12587esac 12588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12589 (eval "$ac_link") 2>conftest.er1 12590 ac_status=$? 12591 grep -v '^ *+' conftest.er1 >conftest.err 12592 rm -f conftest.er1 12593 cat conftest.err >&5 12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12595 (exit $ac_status); } && 12596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12597 { (case "(($ac_try" in 12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12599 *) ac_try_echo=$ac_try;; 12600esac 12601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12602 (eval "$ac_try") 2>&5 12603 ac_status=$? 12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12605 (exit $ac_status); }; } && 12606 { ac_try='test -s conftest$ac_exeext' 12607 { (case "(($ac_try" in 12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12609 *) ac_try_echo=$ac_try;; 12610esac 12611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12612 (eval "$ac_try") 2>&5 12613 ac_status=$? 12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12615 (exit $ac_status); }; }; then 12616 ac_cv_lib_pthread_pthread_mutex_init=yes 12617else 12618 echo "$as_me: failed program was:" >&5 12619sed 's/^/| /' conftest.$ac_ext >&5 12620 12621 ac_cv_lib_pthread_pthread_mutex_init=no 12622fi 12623 12624rm -f core conftest.err conftest.$ac_objext \ 12625 conftest$ac_exeext conftest.$ac_ext 12626LIBS=$ac_check_lib_save_LIBS 12627fi 12628{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 12629echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 12630if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 12631 cat >>confdefs.h <<_ACEOF 12632#define HAVE_LIBPTHREAD 1 12633_ACEOF 12634 12635 LIBS="-lpthread $LIBS" 12636 12637fi 12638 12639 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 12640echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 12641if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12642 echo $ECHO_N "(cached) $ECHO_C" >&6 12643else 12644 ac_func_search_save_LIBS=$LIBS 12645cat >conftest.$ac_ext <<_ACEOF 12646/* confdefs.h. */ 12647_ACEOF 12648cat confdefs.h >>conftest.$ac_ext 12649cat >>conftest.$ac_ext <<_ACEOF 12650/* end confdefs.h. */ 12651 12652/* Override any GCC internal prototype to avoid an error. 12653 Use char because int might match the return type of a GCC 12654 builtin and then its argument prototype would still apply. */ 12655#ifdef __cplusplus 12656extern "C" 12657#endif 12658char pthread_mutex_lock (); 12659int 12660main () 12661{ 12662return pthread_mutex_lock (); 12663 ; 12664 return 0; 12665} 12666_ACEOF 12667for ac_lib in '' pthread; do 12668 if test -z "$ac_lib"; then 12669 ac_res="none required" 12670 else 12671 ac_res=-l$ac_lib 12672 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12673 fi 12674 rm -f conftest.$ac_objext conftest$ac_exeext 12675if { (ac_try="$ac_link" 12676case "(($ac_try" in 12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12678 *) ac_try_echo=$ac_try;; 12679esac 12680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12681 (eval "$ac_link") 2>conftest.er1 12682 ac_status=$? 12683 grep -v '^ *+' conftest.er1 >conftest.err 12684 rm -f conftest.er1 12685 cat conftest.err >&5 12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12687 (exit $ac_status); } && 12688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12689 { (case "(($ac_try" in 12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12691 *) ac_try_echo=$ac_try;; 12692esac 12693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12694 (eval "$ac_try") 2>&5 12695 ac_status=$? 12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12697 (exit $ac_status); }; } && 12698 { ac_try='test -s conftest$ac_exeext' 12699 { (case "(($ac_try" in 12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12701 *) ac_try_echo=$ac_try;; 12702esac 12703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12704 (eval "$ac_try") 2>&5 12705 ac_status=$? 12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12707 (exit $ac_status); }; }; then 12708 ac_cv_search_pthread_mutex_lock=$ac_res 12709else 12710 echo "$as_me: failed program was:" >&5 12711sed 's/^/| /' conftest.$ac_ext >&5 12712 12713 12714fi 12715 12716rm -f core conftest.err conftest.$ac_objext \ 12717 conftest$ac_exeext 12718 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12719 break 12720fi 12721done 12722if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12723 : 12724else 12725 ac_cv_search_pthread_mutex_lock=no 12726fi 12727rm conftest.$ac_ext 12728LIBS=$ac_func_search_save_LIBS 12729fi 12730{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 12731echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 12732ac_res=$ac_cv_search_pthread_mutex_lock 12733if test "$ac_res" != no; then 12734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12735 12736cat >>confdefs.h <<\_ACEOF 12737#define HAVE_PTHREAD_MUTEX_LOCK 1 12738_ACEOF 12739 12740fi 12741 12742 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 12743echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 12744if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12745 echo $ECHO_N "(cached) $ECHO_C" >&6 12746else 12747 ac_func_search_save_LIBS=$LIBS 12748cat >conftest.$ac_ext <<_ACEOF 12749/* confdefs.h. */ 12750_ACEOF 12751cat confdefs.h >>conftest.$ac_ext 12752cat >>conftest.$ac_ext <<_ACEOF 12753/* end confdefs.h. */ 12754 12755/* Override any GCC internal prototype to avoid an error. 12756 Use char because int might match the return type of a GCC 12757 builtin and then its argument prototype would still apply. */ 12758#ifdef __cplusplus 12759extern "C" 12760#endif 12761char pthread_rwlock_init (); 12762int 12763main () 12764{ 12765return pthread_rwlock_init (); 12766 ; 12767 return 0; 12768} 12769_ACEOF 12770for ac_lib in '' pthread; do 12771 if test -z "$ac_lib"; then 12772 ac_res="none required" 12773 else 12774 ac_res=-l$ac_lib 12775 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12776 fi 12777 rm -f conftest.$ac_objext conftest$ac_exeext 12778if { (ac_try="$ac_link" 12779case "(($ac_try" in 12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12781 *) ac_try_echo=$ac_try;; 12782esac 12783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12784 (eval "$ac_link") 2>conftest.er1 12785 ac_status=$? 12786 grep -v '^ *+' conftest.er1 >conftest.err 12787 rm -f conftest.er1 12788 cat conftest.err >&5 12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12790 (exit $ac_status); } && 12791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12792 { (case "(($ac_try" in 12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12794 *) ac_try_echo=$ac_try;; 12795esac 12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12797 (eval "$ac_try") 2>&5 12798 ac_status=$? 12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12800 (exit $ac_status); }; } && 12801 { ac_try='test -s conftest$ac_exeext' 12802 { (case "(($ac_try" in 12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12804 *) ac_try_echo=$ac_try;; 12805esac 12806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12807 (eval "$ac_try") 2>&5 12808 ac_status=$? 12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12810 (exit $ac_status); }; }; then 12811 ac_cv_search_pthread_rwlock_init=$ac_res 12812else 12813 echo "$as_me: failed program was:" >&5 12814sed 's/^/| /' conftest.$ac_ext >&5 12815 12816 12817fi 12818 12819rm -f core conftest.err conftest.$ac_objext \ 12820 conftest$ac_exeext 12821 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12822 break 12823fi 12824done 12825if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12826 : 12827else 12828 ac_cv_search_pthread_rwlock_init=no 12829fi 12830rm conftest.$ac_ext 12831LIBS=$ac_func_search_save_LIBS 12832fi 12833{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 12834echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 12835ac_res=$ac_cv_search_pthread_rwlock_init 12836if test "$ac_res" != no; then 12837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12838 12839cat >>confdefs.h <<\_ACEOF 12840#define HAVE_PTHREAD_RWLOCK_INIT 1 12841_ACEOF 12842 12843fi 12844 12845 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 12846echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 12847if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12848 echo $ECHO_N "(cached) $ECHO_C" >&6 12849else 12850 ac_func_search_save_LIBS=$LIBS 12851cat >conftest.$ac_ext <<_ACEOF 12852/* confdefs.h. */ 12853_ACEOF 12854cat confdefs.h >>conftest.$ac_ext 12855cat >>conftest.$ac_ext <<_ACEOF 12856/* end confdefs.h. */ 12857 12858/* Override any GCC internal prototype to avoid an error. 12859 Use char because int might match the return type of a GCC 12860 builtin and then its argument prototype would still apply. */ 12861#ifdef __cplusplus 12862extern "C" 12863#endif 12864char pthread_getspecific (); 12865int 12866main () 12867{ 12868return pthread_getspecific (); 12869 ; 12870 return 0; 12871} 12872_ACEOF 12873for ac_lib in '' pthread; do 12874 if test -z "$ac_lib"; then 12875 ac_res="none required" 12876 else 12877 ac_res=-l$ac_lib 12878 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12879 fi 12880 rm -f conftest.$ac_objext conftest$ac_exeext 12881if { (ac_try="$ac_link" 12882case "(($ac_try" in 12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12884 *) ac_try_echo=$ac_try;; 12885esac 12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12887 (eval "$ac_link") 2>conftest.er1 12888 ac_status=$? 12889 grep -v '^ *+' conftest.er1 >conftest.err 12890 rm -f conftest.er1 12891 cat conftest.err >&5 12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12893 (exit $ac_status); } && 12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12895 { (case "(($ac_try" in 12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12897 *) ac_try_echo=$ac_try;; 12898esac 12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12900 (eval "$ac_try") 2>&5 12901 ac_status=$? 12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12903 (exit $ac_status); }; } && 12904 { ac_try='test -s conftest$ac_exeext' 12905 { (case "(($ac_try" in 12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12907 *) ac_try_echo=$ac_try;; 12908esac 12909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12910 (eval "$ac_try") 2>&5 12911 ac_status=$? 12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12913 (exit $ac_status); }; }; then 12914 ac_cv_search_pthread_getspecific=$ac_res 12915else 12916 echo "$as_me: failed program was:" >&5 12917sed 's/^/| /' conftest.$ac_ext >&5 12918 12919 12920fi 12921 12922rm -f core conftest.err conftest.$ac_objext \ 12923 conftest$ac_exeext 12924 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12925 break 12926fi 12927done 12928if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12929 : 12930else 12931 ac_cv_search_pthread_getspecific=no 12932fi 12933rm conftest.$ac_ext 12934LIBS=$ac_func_search_save_LIBS 12935fi 12936{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 12937echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 12938ac_res=$ac_cv_search_pthread_getspecific 12939if test "$ac_res" != no; then 12940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12941 12942cat >>confdefs.h <<\_ACEOF 12943#define HAVE_PTHREAD_GETSPECIFIC 1 12944_ACEOF 12945 12946fi 12947 12948fi 12949 12950 12951# Check whether --with-udis86 was given. 12952if test "${with_udis86+set}" = set; then 12953 withval=$with_udis86; 12954 USE_UDIS86=1 12955 12956 case "$withval" in 12957 /usr/lib|yes) ;; 12958 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 12959 esac 12960 12961{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 12962echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 12963if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 12964 echo $ECHO_N "(cached) $ECHO_C" >&6 12965else 12966 ac_check_lib_save_LIBS=$LIBS 12967LIBS="-ludis86 $LIBS" 12968cat >conftest.$ac_ext <<_ACEOF 12969/* confdefs.h. */ 12970_ACEOF 12971cat confdefs.h >>conftest.$ac_ext 12972cat >>conftest.$ac_ext <<_ACEOF 12973/* end confdefs.h. */ 12974 12975/* Override any GCC internal prototype to avoid an error. 12976 Use char because int might match the return type of a GCC 12977 builtin and then its argument prototype would still apply. */ 12978#ifdef __cplusplus 12979extern "C" 12980#endif 12981char ud_init (); 12982int 12983main () 12984{ 12985return ud_init (); 12986 ; 12987 return 0; 12988} 12989_ACEOF 12990rm -f conftest.$ac_objext conftest$ac_exeext 12991if { (ac_try="$ac_link" 12992case "(($ac_try" in 12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12994 *) ac_try_echo=$ac_try;; 12995esac 12996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12997 (eval "$ac_link") 2>conftest.er1 12998 ac_status=$? 12999 grep -v '^ *+' conftest.er1 >conftest.err 13000 rm -f conftest.er1 13001 cat conftest.err >&5 13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13003 (exit $ac_status); } && 13004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13005 { (case "(($ac_try" in 13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13007 *) ac_try_echo=$ac_try;; 13008esac 13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13010 (eval "$ac_try") 2>&5 13011 ac_status=$? 13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13013 (exit $ac_status); }; } && 13014 { ac_try='test -s conftest$ac_exeext' 13015 { (case "(($ac_try" in 13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13017 *) ac_try_echo=$ac_try;; 13018esac 13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13020 (eval "$ac_try") 2>&5 13021 ac_status=$? 13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13023 (exit $ac_status); }; }; then 13024 ac_cv_lib_udis86_ud_init=yes 13025else 13026 echo "$as_me: failed program was:" >&5 13027sed 's/^/| /' conftest.$ac_ext >&5 13028 13029 ac_cv_lib_udis86_ud_init=no 13030fi 13031 13032rm -f core conftest.err conftest.$ac_objext \ 13033 conftest$ac_exeext conftest.$ac_ext 13034LIBS=$ac_check_lib_save_LIBS 13035fi 13036{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13037echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13038if test $ac_cv_lib_udis86_ud_init = yes; then 13039 cat >>confdefs.h <<_ACEOF 13040#define HAVE_LIBUDIS86 1 13041_ACEOF 13042 13043 LIBS="-ludis86 $LIBS" 13044 13045else 13046 13047 echo "Error! You need to have libudis86 around." 13048 exit -1 13049 13050fi 13051 13052 13053else 13054 USE_UDIS86=0 13055 13056fi 13057 13058 13059cat >>confdefs.h <<_ACEOF 13060#define USE_UDIS86 $USE_UDIS86 13061_ACEOF 13062 13063 13064 13065# Check whether --with-oprofile was given. 13066if test "${with_oprofile+set}" = set; then 13067 withval=$with_oprofile; 13068 USE_OPROFILE=1 13069 13070 case "$withval" in 13071 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13072 no) llvm_cv_oppath= 13073 USE_OPROFILE=0 13074 ;; 13075 *) llvm_cv_oppath="${withval}/lib/oprofile" 13076 CPPFLAGS="-I${withval}/include";; 13077 esac 13078 case $llvm_cv_os_type in 13079 Linux) 13080 if test -n "$llvm_cv_oppath" ; then 13081 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13082 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13083echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13084if test "${ac_cv_search_bfd_init+set}" = set; then 13085 echo $ECHO_N "(cached) $ECHO_C" >&6 13086else 13087 ac_func_search_save_LIBS=$LIBS 13088cat >conftest.$ac_ext <<_ACEOF 13089/* confdefs.h. */ 13090_ACEOF 13091cat confdefs.h >>conftest.$ac_ext 13092cat >>conftest.$ac_ext <<_ACEOF 13093/* end confdefs.h. */ 13094 13095/* Override any GCC internal prototype to avoid an error. 13096 Use char because int might match the return type of a GCC 13097 builtin and then its argument prototype would still apply. */ 13098#ifdef __cplusplus 13099extern "C" 13100#endif 13101char bfd_init (); 13102int 13103main () 13104{ 13105return bfd_init (); 13106 ; 13107 return 0; 13108} 13109_ACEOF 13110for ac_lib in '' bfd; do 13111 if test -z "$ac_lib"; then 13112 ac_res="none required" 13113 else 13114 ac_res=-l$ac_lib 13115 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13116 fi 13117 rm -f conftest.$ac_objext conftest$ac_exeext 13118if { (ac_try="$ac_link" 13119case "(($ac_try" in 13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13121 *) ac_try_echo=$ac_try;; 13122esac 13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13124 (eval "$ac_link") 2>conftest.er1 13125 ac_status=$? 13126 grep -v '^ *+' conftest.er1 >conftest.err 13127 rm -f conftest.er1 13128 cat conftest.err >&5 13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13130 (exit $ac_status); } && 13131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13132 { (case "(($ac_try" in 13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13134 *) ac_try_echo=$ac_try;; 13135esac 13136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13137 (eval "$ac_try") 2>&5 13138 ac_status=$? 13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13140 (exit $ac_status); }; } && 13141 { ac_try='test -s conftest$ac_exeext' 13142 { (case "(($ac_try" in 13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13144 *) ac_try_echo=$ac_try;; 13145esac 13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13147 (eval "$ac_try") 2>&5 13148 ac_status=$? 13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13150 (exit $ac_status); }; }; then 13151 ac_cv_search_bfd_init=$ac_res 13152else 13153 echo "$as_me: failed program was:" >&5 13154sed 's/^/| /' conftest.$ac_ext >&5 13155 13156 13157fi 13158 13159rm -f core conftest.err conftest.$ac_objext \ 13160 conftest$ac_exeext 13161 if test "${ac_cv_search_bfd_init+set}" = set; then 13162 break 13163fi 13164done 13165if test "${ac_cv_search_bfd_init+set}" = set; then 13166 : 13167else 13168 ac_cv_search_bfd_init=no 13169fi 13170rm conftest.$ac_ext 13171LIBS=$ac_func_search_save_LIBS 13172fi 13173{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13174echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13175ac_res=$ac_cv_search_bfd_init 13176if test "$ac_res" != no; then 13177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13178 13179fi 13180 13181 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13182echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13183if test "${ac_cv_search_op_open_agent+set}" = set; then 13184 echo $ECHO_N "(cached) $ECHO_C" >&6 13185else 13186 ac_func_search_save_LIBS=$LIBS 13187cat >conftest.$ac_ext <<_ACEOF 13188/* confdefs.h. */ 13189_ACEOF 13190cat confdefs.h >>conftest.$ac_ext 13191cat >>conftest.$ac_ext <<_ACEOF 13192/* end confdefs.h. */ 13193 13194/* Override any GCC internal prototype to avoid an error. 13195 Use char because int might match the return type of a GCC 13196 builtin and then its argument prototype would still apply. */ 13197#ifdef __cplusplus 13198extern "C" 13199#endif 13200char op_open_agent (); 13201int 13202main () 13203{ 13204return op_open_agent (); 13205 ; 13206 return 0; 13207} 13208_ACEOF 13209for ac_lib in '' opagent; do 13210 if test -z "$ac_lib"; then 13211 ac_res="none required" 13212 else 13213 ac_res=-l$ac_lib 13214 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13215 fi 13216 rm -f conftest.$ac_objext conftest$ac_exeext 13217if { (ac_try="$ac_link" 13218case "(($ac_try" in 13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13220 *) ac_try_echo=$ac_try;; 13221esac 13222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13223 (eval "$ac_link") 2>conftest.er1 13224 ac_status=$? 13225 grep -v '^ *+' conftest.er1 >conftest.err 13226 rm -f conftest.er1 13227 cat conftest.err >&5 13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13229 (exit $ac_status); } && 13230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13231 { (case "(($ac_try" in 13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13233 *) ac_try_echo=$ac_try;; 13234esac 13235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13236 (eval "$ac_try") 2>&5 13237 ac_status=$? 13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13239 (exit $ac_status); }; } && 13240 { ac_try='test -s conftest$ac_exeext' 13241 { (case "(($ac_try" in 13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13243 *) ac_try_echo=$ac_try;; 13244esac 13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13246 (eval "$ac_try") 2>&5 13247 ac_status=$? 13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13249 (exit $ac_status); }; }; then 13250 ac_cv_search_op_open_agent=$ac_res 13251else 13252 echo "$as_me: failed program was:" >&5 13253sed 's/^/| /' conftest.$ac_ext >&5 13254 13255 13256fi 13257 13258rm -f core conftest.err conftest.$ac_objext \ 13259 conftest$ac_exeext 13260 if test "${ac_cv_search_op_open_agent+set}" = set; then 13261 break 13262fi 13263done 13264if test "${ac_cv_search_op_open_agent+set}" = set; then 13265 : 13266else 13267 ac_cv_search_op_open_agent=no 13268fi 13269rm conftest.$ac_ext 13270LIBS=$ac_func_search_save_LIBS 13271fi 13272{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13273echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13274ac_res=$ac_cv_search_op_open_agent 13275if test "$ac_res" != no; then 13276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13277 13278else 13279 13280 echo "Error! You need to have libopagent around." 13281 exit -1 13282 13283fi 13284 13285 if test "${ac_cv_header_opagent_h+set}" = set; then 13286 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13287echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13288if test "${ac_cv_header_opagent_h+set}" = set; then 13289 echo $ECHO_N "(cached) $ECHO_C" >&6 13290fi 13291{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13292echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13293else 13294 # Is the header compilable? 13295{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 13296echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13297cat >conftest.$ac_ext <<_ACEOF 13298/* confdefs.h. */ 13299_ACEOF 13300cat confdefs.h >>conftest.$ac_ext 13301cat >>conftest.$ac_ext <<_ACEOF 13302/* end confdefs.h. */ 13303$ac_includes_default 13304#include <opagent.h> 13305_ACEOF 13306rm -f conftest.$ac_objext 13307if { (ac_try="$ac_compile" 13308case "(($ac_try" in 13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13310 *) ac_try_echo=$ac_try;; 13311esac 13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13313 (eval "$ac_compile") 2>conftest.er1 13314 ac_status=$? 13315 grep -v '^ *+' conftest.er1 >conftest.err 13316 rm -f conftest.er1 13317 cat conftest.err >&5 13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13319 (exit $ac_status); } && 13320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13321 { (case "(($ac_try" in 13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13323 *) ac_try_echo=$ac_try;; 13324esac 13325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13326 (eval "$ac_try") 2>&5 13327 ac_status=$? 13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13329 (exit $ac_status); }; } && 13330 { ac_try='test -s conftest.$ac_objext' 13331 { (case "(($ac_try" in 13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13333 *) ac_try_echo=$ac_try;; 13334esac 13335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13336 (eval "$ac_try") 2>&5 13337 ac_status=$? 13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13339 (exit $ac_status); }; }; then 13340 ac_header_compiler=yes 13341else 13342 echo "$as_me: failed program was:" >&5 13343sed 's/^/| /' conftest.$ac_ext >&5 13344 13345 ac_header_compiler=no 13346fi 13347 13348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13349{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13350echo "${ECHO_T}$ac_header_compiler" >&6; } 13351 13352# Is the header present? 13353{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 13354echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13355cat >conftest.$ac_ext <<_ACEOF 13356/* confdefs.h. */ 13357_ACEOF 13358cat confdefs.h >>conftest.$ac_ext 13359cat >>conftest.$ac_ext <<_ACEOF 13360/* end confdefs.h. */ 13361#include <opagent.h> 13362_ACEOF 13363if { (ac_try="$ac_cpp conftest.$ac_ext" 13364case "(($ac_try" in 13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13366 *) ac_try_echo=$ac_try;; 13367esac 13368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13370 ac_status=$? 13371 grep -v '^ *+' conftest.er1 >conftest.err 13372 rm -f conftest.er1 13373 cat conftest.err >&5 13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13375 (exit $ac_status); } >/dev/null; then 13376 if test -s conftest.err; then 13377 ac_cpp_err=$ac_c_preproc_warn_flag 13378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13379 else 13380 ac_cpp_err= 13381 fi 13382else 13383 ac_cpp_err=yes 13384fi 13385if test -z "$ac_cpp_err"; then 13386 ac_header_preproc=yes 13387else 13388 echo "$as_me: failed program was:" >&5 13389sed 's/^/| /' conftest.$ac_ext >&5 13390 13391 ac_header_preproc=no 13392fi 13393 13394rm -f conftest.err conftest.$ac_ext 13395{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13396echo "${ECHO_T}$ac_header_preproc" >&6; } 13397 13398# So? What about this header? 13399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13400 yes:no: ) 13401 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13402echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13403 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13404echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13405 ac_header_preproc=yes 13406 ;; 13407 no:yes:* ) 13408 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13409echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13410 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13411echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13412 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13413echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13414 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13415echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13416 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13417echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13418 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13419echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13420 ( cat <<\_ASBOX 13421## ------------------------------------ ## 13422## Report this to http://llvm.org/bugs/ ## 13423## ------------------------------------ ## 13424_ASBOX 13425 ) | sed "s/^/$as_me: WARNING: /" >&2 13426 ;; 13427esac 13428{ echo "$as_me:$LINENO: checking for opagent.h" >&5 13429echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13430if test "${ac_cv_header_opagent_h+set}" = set; then 13431 echo $ECHO_N "(cached) $ECHO_C" >&6 13432else 13433 ac_cv_header_opagent_h=$ac_header_preproc 13434fi 13435{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13436echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13437 13438fi 13439if test $ac_cv_header_opagent_h = yes; then 13440 : 13441else 13442 13443 echo "Error! You need to have opagent.h around." 13444 exit -1 13445 13446fi 13447 13448 13449 fi ;; 13450 *) 13451 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 13452echo "$as_me: error: OProfile support is available on Linux only." >&2;} 13453 { (exit 1); exit 1; }; } ;; 13454 esac 13455 13456else 13457 13458 USE_OPROFILE=0 13459 13460 13461fi 13462 13463 13464cat >>confdefs.h <<_ACEOF 13465#define LLVM_USE_OPROFILE $USE_OPROFILE 13466_ACEOF 13467 13468 13469 13470# Check whether --with-intel-jitevents was given. 13471if test "${with_intel_jitevents+set}" = set; then 13472 withval=$with_intel_jitevents; 13473 case $llvm_cv_os_type in 13474 Linux|Win32|Cygwin|MingW) ;; 13475 *) 13476 { { echo "$as_me:$LINENO: error: 13477 Intel JIT API support is available on Linux and Windows only.\"" >&5 13478echo "$as_me: error: 13479 Intel JIT API support is available on Linux and Windows only.\"" >&2;} 13480 { (exit 1); exit 1; }; } ;; 13481 esac 13482 13483 USE_INTEL_JITEVENTS=1 13484 13485 case "$llvm_cv_target_arch" in 13486 x86) llvm_intel_jitevents_archdir="lib32";; 13487 x86_64) llvm_intel_jitevents_archdir="lib64";; 13488 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API" 13489 exit -1;; 13490 esac 13491 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include" 13492 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir" 13493 case "$withval" in 13494 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include 13495 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;; 13496 *) ;; 13497 esac 13498 13499 13500 13501 13502 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}" 13503 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR" 13504 13505 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5 13506echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; } 13507if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then 13508 echo $ECHO_N "(cached) $ECHO_C" >&6 13509else 13510 ac_func_search_save_LIBS=$LIBS 13511cat >conftest.$ac_ext <<_ACEOF 13512/* confdefs.h. */ 13513_ACEOF 13514cat confdefs.h >>conftest.$ac_ext 13515cat >>conftest.$ac_ext <<_ACEOF 13516/* end confdefs.h. */ 13517 13518/* Override any GCC internal prototype to avoid an error. 13519 Use char because int might match the return type of a GCC 13520 builtin and then its argument prototype would still apply. */ 13521#ifdef __cplusplus 13522extern "C" 13523#endif 13524char iJIT_IsProfilingActive (); 13525int 13526main () 13527{ 13528return iJIT_IsProfilingActive (); 13529 ; 13530 return 0; 13531} 13532_ACEOF 13533for ac_lib in '' jitprofiling; do 13534 if test -z "$ac_lib"; then 13535 ac_res="none required" 13536 else 13537 ac_res=-l$ac_lib 13538 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13539 fi 13540 rm -f conftest.$ac_objext conftest$ac_exeext 13541if { (ac_try="$ac_link" 13542case "(($ac_try" in 13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13544 *) ac_try_echo=$ac_try;; 13545esac 13546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13547 (eval "$ac_link") 2>conftest.er1 13548 ac_status=$? 13549 grep -v '^ *+' conftest.er1 >conftest.err 13550 rm -f conftest.er1 13551 cat conftest.err >&5 13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13553 (exit $ac_status); } && 13554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13555 { (case "(($ac_try" in 13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13557 *) ac_try_echo=$ac_try;; 13558esac 13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13560 (eval "$ac_try") 2>&5 13561 ac_status=$? 13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13563 (exit $ac_status); }; } && 13564 { ac_try='test -s conftest$ac_exeext' 13565 { (case "(($ac_try" in 13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13567 *) ac_try_echo=$ac_try;; 13568esac 13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13570 (eval "$ac_try") 2>&5 13571 ac_status=$? 13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13573 (exit $ac_status); }; }; then 13574 ac_cv_search_iJIT_IsProfilingActive=$ac_res 13575else 13576 echo "$as_me: failed program was:" >&5 13577sed 's/^/| /' conftest.$ac_ext >&5 13578 13579 13580fi 13581 13582rm -f core conftest.err conftest.$ac_objext \ 13583 conftest$ac_exeext 13584 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then 13585 break 13586fi 13587done 13588if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then 13589 : 13590else 13591 ac_cv_search_iJIT_IsProfilingActive=no 13592fi 13593rm conftest.$ac_ext 13594LIBS=$ac_func_search_save_LIBS 13595fi 13596{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5 13597echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; } 13598ac_res=$ac_cv_search_iJIT_IsProfilingActive 13599if test "$ac_res" != no; then 13600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13601 13602else 13603 13604 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents" 13605 exit -1 13606 13607fi 13608 13609 if test "${ac_cv_header_jitprofiling_h+set}" = set; then 13610 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 13611echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } 13612if test "${ac_cv_header_jitprofiling_h+set}" = set; then 13613 echo $ECHO_N "(cached) $ECHO_C" >&6 13614fi 13615{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 13616echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } 13617else 13618 # Is the header compilable? 13619{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5 13620echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; } 13621cat >conftest.$ac_ext <<_ACEOF 13622/* confdefs.h. */ 13623_ACEOF 13624cat confdefs.h >>conftest.$ac_ext 13625cat >>conftest.$ac_ext <<_ACEOF 13626/* end confdefs.h. */ 13627$ac_includes_default 13628#include <jitprofiling.h> 13629_ACEOF 13630rm -f conftest.$ac_objext 13631if { (ac_try="$ac_compile" 13632case "(($ac_try" in 13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13634 *) ac_try_echo=$ac_try;; 13635esac 13636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13637 (eval "$ac_compile") 2>conftest.er1 13638 ac_status=$? 13639 grep -v '^ *+' conftest.er1 >conftest.err 13640 rm -f conftest.er1 13641 cat conftest.err >&5 13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13643 (exit $ac_status); } && 13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13645 { (case "(($ac_try" in 13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13647 *) ac_try_echo=$ac_try;; 13648esac 13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13650 (eval "$ac_try") 2>&5 13651 ac_status=$? 13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13653 (exit $ac_status); }; } && 13654 { ac_try='test -s conftest.$ac_objext' 13655 { (case "(($ac_try" in 13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13657 *) ac_try_echo=$ac_try;; 13658esac 13659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13660 (eval "$ac_try") 2>&5 13661 ac_status=$? 13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13663 (exit $ac_status); }; }; then 13664 ac_header_compiler=yes 13665else 13666 echo "$as_me: failed program was:" >&5 13667sed 's/^/| /' conftest.$ac_ext >&5 13668 13669 ac_header_compiler=no 13670fi 13671 13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13673{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13674echo "${ECHO_T}$ac_header_compiler" >&6; } 13675 13676# Is the header present? 13677{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5 13678echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; } 13679cat >conftest.$ac_ext <<_ACEOF 13680/* confdefs.h. */ 13681_ACEOF 13682cat confdefs.h >>conftest.$ac_ext 13683cat >>conftest.$ac_ext <<_ACEOF 13684/* end confdefs.h. */ 13685#include <jitprofiling.h> 13686_ACEOF 13687if { (ac_try="$ac_cpp conftest.$ac_ext" 13688case "(($ac_try" in 13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13690 *) ac_try_echo=$ac_try;; 13691esac 13692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13694 ac_status=$? 13695 grep -v '^ *+' conftest.er1 >conftest.err 13696 rm -f conftest.er1 13697 cat conftest.err >&5 13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13699 (exit $ac_status); } >/dev/null; then 13700 if test -s conftest.err; then 13701 ac_cpp_err=$ac_c_preproc_warn_flag 13702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13703 else 13704 ac_cpp_err= 13705 fi 13706else 13707 ac_cpp_err=yes 13708fi 13709if test -z "$ac_cpp_err"; then 13710 ac_header_preproc=yes 13711else 13712 echo "$as_me: failed program was:" >&5 13713sed 's/^/| /' conftest.$ac_ext >&5 13714 13715 ac_header_preproc=no 13716fi 13717 13718rm -f conftest.err conftest.$ac_ext 13719{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13720echo "${ECHO_T}$ac_header_preproc" >&6; } 13721 13722# So? What about this header? 13723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13724 yes:no: ) 13725 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5 13726echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13727 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5 13728echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;} 13729 ac_header_preproc=yes 13730 ;; 13731 no:yes:* ) 13732 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5 13733echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;} 13734 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5 13735echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;} 13736 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5 13737echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;} 13738 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5 13739echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;} 13740 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5 13741echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;} 13742 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5 13743echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;} 13744 ( cat <<\_ASBOX 13745## ------------------------------------ ## 13746## Report this to http://llvm.org/bugs/ ## 13747## ------------------------------------ ## 13748_ASBOX 13749 ) | sed "s/^/$as_me: WARNING: /" >&2 13750 ;; 13751esac 13752{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 13753echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } 13754if test "${ac_cv_header_jitprofiling_h+set}" = set; then 13755 echo $ECHO_N "(cached) $ECHO_C" >&6 13756else 13757 ac_cv_header_jitprofiling_h=$ac_header_preproc 13758fi 13759{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 13760echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } 13761 13762fi 13763if test $ac_cv_header_jitprofiling_h = yes; then 13764 : 13765else 13766 13767 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents" 13768 exit -1 13769 13770fi 13771 13772 13773 13774 13775else 13776 13777 USE_INTEL_JITEVENTS=0 13778 13779 13780fi 13781 13782 13783cat >>confdefs.h <<_ACEOF 13784#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 13785_ACEOF 13786 13787 13788 13789 13790 13791 13792 13793 13794ac_header_dirent=no 13795for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13796 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13797{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 13798echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 13799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13800 echo $ECHO_N "(cached) $ECHO_C" >&6 13801else 13802 cat >conftest.$ac_ext <<_ACEOF 13803/* confdefs.h. */ 13804_ACEOF 13805cat confdefs.h >>conftest.$ac_ext 13806cat >>conftest.$ac_ext <<_ACEOF 13807/* end confdefs.h. */ 13808#include <sys/types.h> 13809#include <$ac_hdr> 13810 13811int 13812main () 13813{ 13814if ((DIR *) 0) 13815return 0; 13816 ; 13817 return 0; 13818} 13819_ACEOF 13820rm -f conftest.$ac_objext 13821if { (ac_try="$ac_compile" 13822case "(($ac_try" in 13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13824 *) ac_try_echo=$ac_try;; 13825esac 13826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13827 (eval "$ac_compile") 2>conftest.er1 13828 ac_status=$? 13829 grep -v '^ *+' conftest.er1 >conftest.err 13830 rm -f conftest.er1 13831 cat conftest.err >&5 13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13833 (exit $ac_status); } && 13834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13835 { (case "(($ac_try" in 13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13837 *) ac_try_echo=$ac_try;; 13838esac 13839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13840 (eval "$ac_try") 2>&5 13841 ac_status=$? 13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13843 (exit $ac_status); }; } && 13844 { ac_try='test -s conftest.$ac_objext' 13845 { (case "(($ac_try" in 13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13847 *) ac_try_echo=$ac_try;; 13848esac 13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13850 (eval "$ac_try") 2>&5 13851 ac_status=$? 13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13853 (exit $ac_status); }; }; then 13854 eval "$as_ac_Header=yes" 13855else 13856 echo "$as_me: failed program was:" >&5 13857sed 's/^/| /' conftest.$ac_ext >&5 13858 13859 eval "$as_ac_Header=no" 13860fi 13861 13862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13863fi 13864ac_res=`eval echo '${'$as_ac_Header'}'` 13865 { echo "$as_me:$LINENO: result: $ac_res" >&5 13866echo "${ECHO_T}$ac_res" >&6; } 13867if test `eval echo '${'$as_ac_Header'}'` = yes; then 13868 cat >>confdefs.h <<_ACEOF 13869#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 13870_ACEOF 13871 13872ac_header_dirent=$ac_hdr; break 13873fi 13874 13875done 13876# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13877if test $ac_header_dirent = dirent.h; then 13878 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13879echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13880if test "${ac_cv_search_opendir+set}" = set; then 13881 echo $ECHO_N "(cached) $ECHO_C" >&6 13882else 13883 ac_func_search_save_LIBS=$LIBS 13884cat >conftest.$ac_ext <<_ACEOF 13885/* confdefs.h. */ 13886_ACEOF 13887cat confdefs.h >>conftest.$ac_ext 13888cat >>conftest.$ac_ext <<_ACEOF 13889/* end confdefs.h. */ 13890 13891/* Override any GCC internal prototype to avoid an error. 13892 Use char because int might match the return type of a GCC 13893 builtin and then its argument prototype would still apply. */ 13894#ifdef __cplusplus 13895extern "C" 13896#endif 13897char opendir (); 13898int 13899main () 13900{ 13901return opendir (); 13902 ; 13903 return 0; 13904} 13905_ACEOF 13906for ac_lib in '' dir; do 13907 if test -z "$ac_lib"; then 13908 ac_res="none required" 13909 else 13910 ac_res=-l$ac_lib 13911 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13912 fi 13913 rm -f conftest.$ac_objext conftest$ac_exeext 13914if { (ac_try="$ac_link" 13915case "(($ac_try" in 13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13917 *) ac_try_echo=$ac_try;; 13918esac 13919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13920 (eval "$ac_link") 2>conftest.er1 13921 ac_status=$? 13922 grep -v '^ *+' conftest.er1 >conftest.err 13923 rm -f conftest.er1 13924 cat conftest.err >&5 13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13926 (exit $ac_status); } && 13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13928 { (case "(($ac_try" in 13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13930 *) ac_try_echo=$ac_try;; 13931esac 13932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13933 (eval "$ac_try") 2>&5 13934 ac_status=$? 13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13936 (exit $ac_status); }; } && 13937 { ac_try='test -s conftest$ac_exeext' 13938 { (case "(($ac_try" in 13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13940 *) ac_try_echo=$ac_try;; 13941esac 13942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13943 (eval "$ac_try") 2>&5 13944 ac_status=$? 13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13946 (exit $ac_status); }; }; then 13947 ac_cv_search_opendir=$ac_res 13948else 13949 echo "$as_me: failed program was:" >&5 13950sed 's/^/| /' conftest.$ac_ext >&5 13951 13952 13953fi 13954 13955rm -f core conftest.err conftest.$ac_objext \ 13956 conftest$ac_exeext 13957 if test "${ac_cv_search_opendir+set}" = set; then 13958 break 13959fi 13960done 13961if test "${ac_cv_search_opendir+set}" = set; then 13962 : 13963else 13964 ac_cv_search_opendir=no 13965fi 13966rm conftest.$ac_ext 13967LIBS=$ac_func_search_save_LIBS 13968fi 13969{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13970echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13971ac_res=$ac_cv_search_opendir 13972if test "$ac_res" != no; then 13973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13974 13975fi 13976 13977else 13978 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13979echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13980if test "${ac_cv_search_opendir+set}" = set; then 13981 echo $ECHO_N "(cached) $ECHO_C" >&6 13982else 13983 ac_func_search_save_LIBS=$LIBS 13984cat >conftest.$ac_ext <<_ACEOF 13985/* confdefs.h. */ 13986_ACEOF 13987cat confdefs.h >>conftest.$ac_ext 13988cat >>conftest.$ac_ext <<_ACEOF 13989/* end confdefs.h. */ 13990 13991/* Override any GCC internal prototype to avoid an error. 13992 Use char because int might match the return type of a GCC 13993 builtin and then its argument prototype would still apply. */ 13994#ifdef __cplusplus 13995extern "C" 13996#endif 13997char opendir (); 13998int 13999main () 14000{ 14001return opendir (); 14002 ; 14003 return 0; 14004} 14005_ACEOF 14006for ac_lib in '' x; do 14007 if test -z "$ac_lib"; then 14008 ac_res="none required" 14009 else 14010 ac_res=-l$ac_lib 14011 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14012 fi 14013 rm -f conftest.$ac_objext conftest$ac_exeext 14014if { (ac_try="$ac_link" 14015case "(($ac_try" in 14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14017 *) ac_try_echo=$ac_try;; 14018esac 14019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14020 (eval "$ac_link") 2>conftest.er1 14021 ac_status=$? 14022 grep -v '^ *+' conftest.er1 >conftest.err 14023 rm -f conftest.er1 14024 cat conftest.err >&5 14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14026 (exit $ac_status); } && 14027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14028 { (case "(($ac_try" in 14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14030 *) ac_try_echo=$ac_try;; 14031esac 14032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14033 (eval "$ac_try") 2>&5 14034 ac_status=$? 14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14036 (exit $ac_status); }; } && 14037 { ac_try='test -s conftest$ac_exeext' 14038 { (case "(($ac_try" in 14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14040 *) ac_try_echo=$ac_try;; 14041esac 14042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14043 (eval "$ac_try") 2>&5 14044 ac_status=$? 14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14046 (exit $ac_status); }; }; then 14047 ac_cv_search_opendir=$ac_res 14048else 14049 echo "$as_me: failed program was:" >&5 14050sed 's/^/| /' conftest.$ac_ext >&5 14051 14052 14053fi 14054 14055rm -f core conftest.err conftest.$ac_objext \ 14056 conftest$ac_exeext 14057 if test "${ac_cv_search_opendir+set}" = set; then 14058 break 14059fi 14060done 14061if test "${ac_cv_search_opendir+set}" = set; then 14062 : 14063else 14064 ac_cv_search_opendir=no 14065fi 14066rm conftest.$ac_ext 14067LIBS=$ac_func_search_save_LIBS 14068fi 14069{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14070echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14071ac_res=$ac_cv_search_opendir 14072if test "$ac_res" != no; then 14073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14074 14075fi 14076 14077fi 14078 14079{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14080echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14081if test "${ac_cv_header_mmap_anon+set}" = set; then 14082 echo $ECHO_N "(cached) $ECHO_C" >&6 14083else 14084 ac_ext=c 14085ac_cpp='$CPP $CPPFLAGS' 14086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14088ac_compiler_gnu=$ac_cv_c_compiler_gnu 14089 14090 cat >conftest.$ac_ext <<_ACEOF 14091/* confdefs.h. */ 14092_ACEOF 14093cat confdefs.h >>conftest.$ac_ext 14094cat >>conftest.$ac_ext <<_ACEOF 14095/* end confdefs.h. */ 14096#include <sys/mman.h> 14097#include <unistd.h> 14098#include <fcntl.h> 14099int 14100main () 14101{ 14102mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14103 ; 14104 return 0; 14105} 14106_ACEOF 14107rm -f conftest.$ac_objext 14108if { (ac_try="$ac_compile" 14109case "(($ac_try" in 14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14111 *) ac_try_echo=$ac_try;; 14112esac 14113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14114 (eval "$ac_compile") 2>conftest.er1 14115 ac_status=$? 14116 grep -v '^ *+' conftest.er1 >conftest.err 14117 rm -f conftest.er1 14118 cat conftest.err >&5 14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14120 (exit $ac_status); } && 14121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14122 { (case "(($ac_try" in 14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14124 *) ac_try_echo=$ac_try;; 14125esac 14126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14127 (eval "$ac_try") 2>&5 14128 ac_status=$? 14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14130 (exit $ac_status); }; } && 14131 { ac_try='test -s conftest.$ac_objext' 14132 { (case "(($ac_try" in 14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14134 *) ac_try_echo=$ac_try;; 14135esac 14136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14137 (eval "$ac_try") 2>&5 14138 ac_status=$? 14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14140 (exit $ac_status); }; }; then 14141 ac_cv_header_mmap_anon=yes 14142else 14143 echo "$as_me: failed program was:" >&5 14144sed 's/^/| /' conftest.$ac_ext >&5 14145 14146 ac_cv_header_mmap_anon=no 14147fi 14148 14149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14150 ac_ext=c 14151ac_cpp='$CPP $CPPFLAGS' 14152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14154ac_compiler_gnu=$ac_cv_c_compiler_gnu 14155 14156 14157fi 14158{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14159echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14160if test "$ac_cv_header_mmap_anon" = yes; then 14161 14162cat >>confdefs.h <<\_ACEOF 14163#define HAVE_MMAP_ANONYMOUS 1 14164_ACEOF 14165 14166fi 14167 14168{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14169echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14170if test "${ac_cv_header_stat_broken+set}" = set; then 14171 echo $ECHO_N "(cached) $ECHO_C" >&6 14172else 14173 cat >conftest.$ac_ext <<_ACEOF 14174/* confdefs.h. */ 14175_ACEOF 14176cat confdefs.h >>conftest.$ac_ext 14177cat >>conftest.$ac_ext <<_ACEOF 14178/* end confdefs.h. */ 14179#include <sys/types.h> 14180#include <sys/stat.h> 14181 14182#if defined S_ISBLK && defined S_IFDIR 14183# if S_ISBLK (S_IFDIR) 14184You lose. 14185# endif 14186#endif 14187 14188#if defined S_ISBLK && defined S_IFCHR 14189# if S_ISBLK (S_IFCHR) 14190You lose. 14191# endif 14192#endif 14193 14194#if defined S_ISLNK && defined S_IFREG 14195# if S_ISLNK (S_IFREG) 14196You lose. 14197# endif 14198#endif 14199 14200#if defined S_ISSOCK && defined S_IFREG 14201# if S_ISSOCK (S_IFREG) 14202You lose. 14203# endif 14204#endif 14205 14206_ACEOF 14207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14208 $EGREP "You lose" >/dev/null 2>&1; then 14209 ac_cv_header_stat_broken=yes 14210else 14211 ac_cv_header_stat_broken=no 14212fi 14213rm -f conftest* 14214 14215fi 14216{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14217echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14218if test $ac_cv_header_stat_broken = yes; then 14219 14220cat >>confdefs.h <<\_ACEOF 14221#define STAT_MACROS_BROKEN 1 14222_ACEOF 14223 14224fi 14225 14226{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14227echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14228if test "${ac_cv_header_sys_wait_h+set}" = set; then 14229 echo $ECHO_N "(cached) $ECHO_C" >&6 14230else 14231 cat >conftest.$ac_ext <<_ACEOF 14232/* confdefs.h. */ 14233_ACEOF 14234cat confdefs.h >>conftest.$ac_ext 14235cat >>conftest.$ac_ext <<_ACEOF 14236/* end confdefs.h. */ 14237#include <sys/types.h> 14238#include <sys/wait.h> 14239#ifndef WEXITSTATUS 14240# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14241#endif 14242#ifndef WIFEXITED 14243# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14244#endif 14245 14246int 14247main () 14248{ 14249 int s; 14250 wait (&s); 14251 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14252 ; 14253 return 0; 14254} 14255_ACEOF 14256rm -f conftest.$ac_objext 14257if { (ac_try="$ac_compile" 14258case "(($ac_try" in 14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14260 *) ac_try_echo=$ac_try;; 14261esac 14262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14263 (eval "$ac_compile") 2>conftest.er1 14264 ac_status=$? 14265 grep -v '^ *+' conftest.er1 >conftest.err 14266 rm -f conftest.er1 14267 cat conftest.err >&5 14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14269 (exit $ac_status); } && 14270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14271 { (case "(($ac_try" in 14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14273 *) ac_try_echo=$ac_try;; 14274esac 14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14276 (eval "$ac_try") 2>&5 14277 ac_status=$? 14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14279 (exit $ac_status); }; } && 14280 { ac_try='test -s conftest.$ac_objext' 14281 { (case "(($ac_try" in 14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14283 *) ac_try_echo=$ac_try;; 14284esac 14285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14286 (eval "$ac_try") 2>&5 14287 ac_status=$? 14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14289 (exit $ac_status); }; }; then 14290 ac_cv_header_sys_wait_h=yes 14291else 14292 echo "$as_me: failed program was:" >&5 14293sed 's/^/| /' conftest.$ac_ext >&5 14294 14295 ac_cv_header_sys_wait_h=no 14296fi 14297 14298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14299fi 14300{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14301echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14302if test $ac_cv_header_sys_wait_h = yes; then 14303 14304cat >>confdefs.h <<\_ACEOF 14305#define HAVE_SYS_WAIT_H 1 14306_ACEOF 14307 14308fi 14309 14310{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14311echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14312if test "${ac_cv_header_time+set}" = set; then 14313 echo $ECHO_N "(cached) $ECHO_C" >&6 14314else 14315 cat >conftest.$ac_ext <<_ACEOF 14316/* confdefs.h. */ 14317_ACEOF 14318cat confdefs.h >>conftest.$ac_ext 14319cat >>conftest.$ac_ext <<_ACEOF 14320/* end confdefs.h. */ 14321#include <sys/types.h> 14322#include <sys/time.h> 14323#include <time.h> 14324 14325int 14326main () 14327{ 14328if ((struct tm *) 0) 14329return 0; 14330 ; 14331 return 0; 14332} 14333_ACEOF 14334rm -f conftest.$ac_objext 14335if { (ac_try="$ac_compile" 14336case "(($ac_try" in 14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14338 *) ac_try_echo=$ac_try;; 14339esac 14340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14341 (eval "$ac_compile") 2>conftest.er1 14342 ac_status=$? 14343 grep -v '^ *+' conftest.er1 >conftest.err 14344 rm -f conftest.er1 14345 cat conftest.err >&5 14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14347 (exit $ac_status); } && 14348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14349 { (case "(($ac_try" in 14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14351 *) ac_try_echo=$ac_try;; 14352esac 14353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14354 (eval "$ac_try") 2>&5 14355 ac_status=$? 14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14357 (exit $ac_status); }; } && 14358 { ac_try='test -s conftest.$ac_objext' 14359 { (case "(($ac_try" in 14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14361 *) ac_try_echo=$ac_try;; 14362esac 14363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14364 (eval "$ac_try") 2>&5 14365 ac_status=$? 14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14367 (exit $ac_status); }; }; then 14368 ac_cv_header_time=yes 14369else 14370 echo "$as_me: failed program was:" >&5 14371sed 's/^/| /' conftest.$ac_ext >&5 14372 14373 ac_cv_header_time=no 14374fi 14375 14376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14377fi 14378{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14379echo "${ECHO_T}$ac_cv_header_time" >&6; } 14380if test $ac_cv_header_time = yes; then 14381 14382cat >>confdefs.h <<\_ACEOF 14383#define TIME_WITH_SYS_TIME 1 14384_ACEOF 14385 14386fi 14387 14388 14389 14390 14391 14392 14393 14394 14395for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14396do 14397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14399 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14402 echo $ECHO_N "(cached) $ECHO_C" >&6 14403fi 14404ac_res=`eval echo '${'$as_ac_Header'}'` 14405 { echo "$as_me:$LINENO: result: $ac_res" >&5 14406echo "${ECHO_T}$ac_res" >&6; } 14407else 14408 # Is the header compilable? 14409{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14411cat >conftest.$ac_ext <<_ACEOF 14412/* confdefs.h. */ 14413_ACEOF 14414cat confdefs.h >>conftest.$ac_ext 14415cat >>conftest.$ac_ext <<_ACEOF 14416/* end confdefs.h. */ 14417$ac_includes_default 14418#include <$ac_header> 14419_ACEOF 14420rm -f conftest.$ac_objext 14421if { (ac_try="$ac_compile" 14422case "(($ac_try" in 14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14424 *) ac_try_echo=$ac_try;; 14425esac 14426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14427 (eval "$ac_compile") 2>conftest.er1 14428 ac_status=$? 14429 grep -v '^ *+' conftest.er1 >conftest.err 14430 rm -f conftest.er1 14431 cat conftest.err >&5 14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14433 (exit $ac_status); } && 14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14435 { (case "(($ac_try" in 14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14437 *) ac_try_echo=$ac_try;; 14438esac 14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14440 (eval "$ac_try") 2>&5 14441 ac_status=$? 14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14443 (exit $ac_status); }; } && 14444 { ac_try='test -s conftest.$ac_objext' 14445 { (case "(($ac_try" in 14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14447 *) ac_try_echo=$ac_try;; 14448esac 14449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14450 (eval "$ac_try") 2>&5 14451 ac_status=$? 14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14453 (exit $ac_status); }; }; then 14454 ac_header_compiler=yes 14455else 14456 echo "$as_me: failed program was:" >&5 14457sed 's/^/| /' conftest.$ac_ext >&5 14458 14459 ac_header_compiler=no 14460fi 14461 14462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14463{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14464echo "${ECHO_T}$ac_header_compiler" >&6; } 14465 14466# Is the header present? 14467{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14468echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14469cat >conftest.$ac_ext <<_ACEOF 14470/* confdefs.h. */ 14471_ACEOF 14472cat confdefs.h >>conftest.$ac_ext 14473cat >>conftest.$ac_ext <<_ACEOF 14474/* end confdefs.h. */ 14475#include <$ac_header> 14476_ACEOF 14477if { (ac_try="$ac_cpp conftest.$ac_ext" 14478case "(($ac_try" in 14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14480 *) ac_try_echo=$ac_try;; 14481esac 14482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14484 ac_status=$? 14485 grep -v '^ *+' conftest.er1 >conftest.err 14486 rm -f conftest.er1 14487 cat conftest.err >&5 14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14489 (exit $ac_status); } >/dev/null; then 14490 if test -s conftest.err; then 14491 ac_cpp_err=$ac_c_preproc_warn_flag 14492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14493 else 14494 ac_cpp_err= 14495 fi 14496else 14497 ac_cpp_err=yes 14498fi 14499if test -z "$ac_cpp_err"; then 14500 ac_header_preproc=yes 14501else 14502 echo "$as_me: failed program was:" >&5 14503sed 's/^/| /' conftest.$ac_ext >&5 14504 14505 ac_header_preproc=no 14506fi 14507 14508rm -f conftest.err conftest.$ac_ext 14509{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14510echo "${ECHO_T}$ac_header_preproc" >&6; } 14511 14512# So? What about this header? 14513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14514 yes:no: ) 14515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14519 ac_header_preproc=yes 14520 ;; 14521 no:yes:* ) 14522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14525echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14529echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14534 ( cat <<\_ASBOX 14535## ------------------------------------ ## 14536## Report this to http://llvm.org/bugs/ ## 14537## ------------------------------------ ## 14538_ASBOX 14539 ) | sed "s/^/$as_me: WARNING: /" >&2 14540 ;; 14541esac 14542{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14545 echo $ECHO_N "(cached) $ECHO_C" >&6 14546else 14547 eval "$as_ac_Header=\$ac_header_preproc" 14548fi 14549ac_res=`eval echo '${'$as_ac_Header'}'` 14550 { echo "$as_me:$LINENO: result: $ac_res" >&5 14551echo "${ECHO_T}$ac_res" >&6; } 14552 14553fi 14554if test `eval echo '${'$as_ac_Header'}'` = yes; then 14555 cat >>confdefs.h <<_ACEOF 14556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14557_ACEOF 14558 14559fi 14560 14561done 14562 14563 14564 14565 14566 14567 14568 14569for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14570do 14571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14573 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14576 echo $ECHO_N "(cached) $ECHO_C" >&6 14577fi 14578ac_res=`eval echo '${'$as_ac_Header'}'` 14579 { echo "$as_me:$LINENO: result: $ac_res" >&5 14580echo "${ECHO_T}$ac_res" >&6; } 14581else 14582 # Is the header compilable? 14583{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14585cat >conftest.$ac_ext <<_ACEOF 14586/* confdefs.h. */ 14587_ACEOF 14588cat confdefs.h >>conftest.$ac_ext 14589cat >>conftest.$ac_ext <<_ACEOF 14590/* end confdefs.h. */ 14591$ac_includes_default 14592#include <$ac_header> 14593_ACEOF 14594rm -f conftest.$ac_objext 14595if { (ac_try="$ac_compile" 14596case "(($ac_try" in 14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14598 *) ac_try_echo=$ac_try;; 14599esac 14600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14601 (eval "$ac_compile") 2>conftest.er1 14602 ac_status=$? 14603 grep -v '^ *+' conftest.er1 >conftest.err 14604 rm -f conftest.er1 14605 cat conftest.err >&5 14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14607 (exit $ac_status); } && 14608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14609 { (case "(($ac_try" in 14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14611 *) ac_try_echo=$ac_try;; 14612esac 14613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14614 (eval "$ac_try") 2>&5 14615 ac_status=$? 14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14617 (exit $ac_status); }; } && 14618 { ac_try='test -s conftest.$ac_objext' 14619 { (case "(($ac_try" in 14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14621 *) ac_try_echo=$ac_try;; 14622esac 14623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14624 (eval "$ac_try") 2>&5 14625 ac_status=$? 14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14627 (exit $ac_status); }; }; then 14628 ac_header_compiler=yes 14629else 14630 echo "$as_me: failed program was:" >&5 14631sed 's/^/| /' conftest.$ac_ext >&5 14632 14633 ac_header_compiler=no 14634fi 14635 14636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14637{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14638echo "${ECHO_T}$ac_header_compiler" >&6; } 14639 14640# Is the header present? 14641{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14643cat >conftest.$ac_ext <<_ACEOF 14644/* confdefs.h. */ 14645_ACEOF 14646cat confdefs.h >>conftest.$ac_ext 14647cat >>conftest.$ac_ext <<_ACEOF 14648/* end confdefs.h. */ 14649#include <$ac_header> 14650_ACEOF 14651if { (ac_try="$ac_cpp conftest.$ac_ext" 14652case "(($ac_try" in 14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14654 *) ac_try_echo=$ac_try;; 14655esac 14656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14658 ac_status=$? 14659 grep -v '^ *+' conftest.er1 >conftest.err 14660 rm -f conftest.er1 14661 cat conftest.err >&5 14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14663 (exit $ac_status); } >/dev/null; then 14664 if test -s conftest.err; then 14665 ac_cpp_err=$ac_c_preproc_warn_flag 14666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14667 else 14668 ac_cpp_err= 14669 fi 14670else 14671 ac_cpp_err=yes 14672fi 14673if test -z "$ac_cpp_err"; then 14674 ac_header_preproc=yes 14675else 14676 echo "$as_me: failed program was:" >&5 14677sed 's/^/| /' conftest.$ac_ext >&5 14678 14679 ac_header_preproc=no 14680fi 14681 14682rm -f conftest.err conftest.$ac_ext 14683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14684echo "${ECHO_T}$ac_header_preproc" >&6; } 14685 14686# So? What about this header? 14687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14688 yes:no: ) 14689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14692echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14693 ac_header_preproc=yes 14694 ;; 14695 no:yes:* ) 14696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14699echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14701echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14703echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14707echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14708 ( cat <<\_ASBOX 14709## ------------------------------------ ## 14710## Report this to http://llvm.org/bugs/ ## 14711## ------------------------------------ ## 14712_ASBOX 14713 ) | sed "s/^/$as_me: WARNING: /" >&2 14714 ;; 14715esac 14716{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14719 echo $ECHO_N "(cached) $ECHO_C" >&6 14720else 14721 eval "$as_ac_Header=\$ac_header_preproc" 14722fi 14723ac_res=`eval echo '${'$as_ac_Header'}'` 14724 { echo "$as_me:$LINENO: result: $ac_res" >&5 14725echo "${ECHO_T}$ac_res" >&6; } 14726 14727fi 14728if test `eval echo '${'$as_ac_Header'}'` = yes; then 14729 cat >>confdefs.h <<_ACEOF 14730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14731_ACEOF 14732 14733fi 14734 14735done 14736 14737 14738 14739for ac_header in utime.h windows.h 14740do 14741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14743 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14746 echo $ECHO_N "(cached) $ECHO_C" >&6 14747fi 14748ac_res=`eval echo '${'$as_ac_Header'}'` 14749 { echo "$as_me:$LINENO: result: $ac_res" >&5 14750echo "${ECHO_T}$ac_res" >&6; } 14751else 14752 # Is the header compilable? 14753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14755cat >conftest.$ac_ext <<_ACEOF 14756/* confdefs.h. */ 14757_ACEOF 14758cat confdefs.h >>conftest.$ac_ext 14759cat >>conftest.$ac_ext <<_ACEOF 14760/* end confdefs.h. */ 14761$ac_includes_default 14762#include <$ac_header> 14763_ACEOF 14764rm -f conftest.$ac_objext 14765if { (ac_try="$ac_compile" 14766case "(($ac_try" in 14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14768 *) ac_try_echo=$ac_try;; 14769esac 14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14771 (eval "$ac_compile") 2>conftest.er1 14772 ac_status=$? 14773 grep -v '^ *+' conftest.er1 >conftest.err 14774 rm -f conftest.er1 14775 cat conftest.err >&5 14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14777 (exit $ac_status); } && 14778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14779 { (case "(($ac_try" in 14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14781 *) ac_try_echo=$ac_try;; 14782esac 14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14784 (eval "$ac_try") 2>&5 14785 ac_status=$? 14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14787 (exit $ac_status); }; } && 14788 { ac_try='test -s conftest.$ac_objext' 14789 { (case "(($ac_try" in 14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14791 *) ac_try_echo=$ac_try;; 14792esac 14793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14794 (eval "$ac_try") 2>&5 14795 ac_status=$? 14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14797 (exit $ac_status); }; }; then 14798 ac_header_compiler=yes 14799else 14800 echo "$as_me: failed program was:" >&5 14801sed 's/^/| /' conftest.$ac_ext >&5 14802 14803 ac_header_compiler=no 14804fi 14805 14806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14808echo "${ECHO_T}$ac_header_compiler" >&6; } 14809 14810# Is the header present? 14811{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14813cat >conftest.$ac_ext <<_ACEOF 14814/* confdefs.h. */ 14815_ACEOF 14816cat confdefs.h >>conftest.$ac_ext 14817cat >>conftest.$ac_ext <<_ACEOF 14818/* end confdefs.h. */ 14819#include <$ac_header> 14820_ACEOF 14821if { (ac_try="$ac_cpp conftest.$ac_ext" 14822case "(($ac_try" in 14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14824 *) ac_try_echo=$ac_try;; 14825esac 14826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14828 ac_status=$? 14829 grep -v '^ *+' conftest.er1 >conftest.err 14830 rm -f conftest.er1 14831 cat conftest.err >&5 14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14833 (exit $ac_status); } >/dev/null; then 14834 if test -s conftest.err; then 14835 ac_cpp_err=$ac_c_preproc_warn_flag 14836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14837 else 14838 ac_cpp_err= 14839 fi 14840else 14841 ac_cpp_err=yes 14842fi 14843if test -z "$ac_cpp_err"; then 14844 ac_header_preproc=yes 14845else 14846 echo "$as_me: failed program was:" >&5 14847sed 's/^/| /' conftest.$ac_ext >&5 14848 14849 ac_header_preproc=no 14850fi 14851 14852rm -f conftest.err conftest.$ac_ext 14853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14854echo "${ECHO_T}$ac_header_preproc" >&6; } 14855 14856# So? What about this header? 14857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14858 yes:no: ) 14859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14863 ac_header_preproc=yes 14864 ;; 14865 no:yes:* ) 14866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14878 ( cat <<\_ASBOX 14879## ------------------------------------ ## 14880## Report this to http://llvm.org/bugs/ ## 14881## ------------------------------------ ## 14882_ASBOX 14883 ) | sed "s/^/$as_me: WARNING: /" >&2 14884 ;; 14885esac 14886{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14889 echo $ECHO_N "(cached) $ECHO_C" >&6 14890else 14891 eval "$as_ac_Header=\$ac_header_preproc" 14892fi 14893ac_res=`eval echo '${'$as_ac_Header'}'` 14894 { echo "$as_me:$LINENO: result: $ac_res" >&5 14895echo "${ECHO_T}$ac_res" >&6; } 14896 14897fi 14898if test `eval echo '${'$as_ac_Header'}'` = yes; then 14899 cat >>confdefs.h <<_ACEOF 14900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14901_ACEOF 14902 14903fi 14904 14905done 14906 14907 14908 14909 14910 14911 14912for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 14913do 14914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14916 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14919 echo $ECHO_N "(cached) $ECHO_C" >&6 14920fi 14921ac_res=`eval echo '${'$as_ac_Header'}'` 14922 { echo "$as_me:$LINENO: result: $ac_res" >&5 14923echo "${ECHO_T}$ac_res" >&6; } 14924else 14925 # Is the header compilable? 14926{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14928cat >conftest.$ac_ext <<_ACEOF 14929/* confdefs.h. */ 14930_ACEOF 14931cat confdefs.h >>conftest.$ac_ext 14932cat >>conftest.$ac_ext <<_ACEOF 14933/* end confdefs.h. */ 14934$ac_includes_default 14935#include <$ac_header> 14936_ACEOF 14937rm -f conftest.$ac_objext 14938if { (ac_try="$ac_compile" 14939case "(($ac_try" in 14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14941 *) ac_try_echo=$ac_try;; 14942esac 14943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14944 (eval "$ac_compile") 2>conftest.er1 14945 ac_status=$? 14946 grep -v '^ *+' conftest.er1 >conftest.err 14947 rm -f conftest.er1 14948 cat conftest.err >&5 14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14950 (exit $ac_status); } && 14951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14952 { (case "(($ac_try" in 14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14954 *) ac_try_echo=$ac_try;; 14955esac 14956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14957 (eval "$ac_try") 2>&5 14958 ac_status=$? 14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14960 (exit $ac_status); }; } && 14961 { ac_try='test -s conftest.$ac_objext' 14962 { (case "(($ac_try" in 14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14964 *) ac_try_echo=$ac_try;; 14965esac 14966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14967 (eval "$ac_try") 2>&5 14968 ac_status=$? 14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14970 (exit $ac_status); }; }; then 14971 ac_header_compiler=yes 14972else 14973 echo "$as_me: failed program was:" >&5 14974sed 's/^/| /' conftest.$ac_ext >&5 14975 14976 ac_header_compiler=no 14977fi 14978 14979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14981echo "${ECHO_T}$ac_header_compiler" >&6; } 14982 14983# Is the header present? 14984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14986cat >conftest.$ac_ext <<_ACEOF 14987/* confdefs.h. */ 14988_ACEOF 14989cat confdefs.h >>conftest.$ac_ext 14990cat >>conftest.$ac_ext <<_ACEOF 14991/* end confdefs.h. */ 14992#include <$ac_header> 14993_ACEOF 14994if { (ac_try="$ac_cpp conftest.$ac_ext" 14995case "(($ac_try" in 14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14997 *) ac_try_echo=$ac_try;; 14998esac 14999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15001 ac_status=$? 15002 grep -v '^ *+' conftest.er1 >conftest.err 15003 rm -f conftest.er1 15004 cat conftest.err >&5 15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15006 (exit $ac_status); } >/dev/null; then 15007 if test -s conftest.err; then 15008 ac_cpp_err=$ac_c_preproc_warn_flag 15009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15010 else 15011 ac_cpp_err= 15012 fi 15013else 15014 ac_cpp_err=yes 15015fi 15016if test -z "$ac_cpp_err"; then 15017 ac_header_preproc=yes 15018else 15019 echo "$as_me: failed program was:" >&5 15020sed 's/^/| /' conftest.$ac_ext >&5 15021 15022 ac_header_preproc=no 15023fi 15024 15025rm -f conftest.err conftest.$ac_ext 15026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15027echo "${ECHO_T}$ac_header_preproc" >&6; } 15028 15029# So? What about this header? 15030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15031 yes:no: ) 15032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15036 ac_header_preproc=yes 15037 ;; 15038 no:yes:* ) 15039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15051 ( cat <<\_ASBOX 15052## ------------------------------------ ## 15053## Report this to http://llvm.org/bugs/ ## 15054## ------------------------------------ ## 15055_ASBOX 15056 ) | sed "s/^/$as_me: WARNING: /" >&2 15057 ;; 15058esac 15059{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15062 echo $ECHO_N "(cached) $ECHO_C" >&6 15063else 15064 eval "$as_ac_Header=\$ac_header_preproc" 15065fi 15066ac_res=`eval echo '${'$as_ac_Header'}'` 15067 { echo "$as_me:$LINENO: result: $ac_res" >&5 15068echo "${ECHO_T}$ac_res" >&6; } 15069 15070fi 15071if test `eval echo '${'$as_ac_Header'}'` = yes; then 15072 cat >>confdefs.h <<_ACEOF 15073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15074_ACEOF 15075 15076fi 15077 15078done 15079 15080 15081 15082 15083 15084for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 15085do 15086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15088 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15091 echo $ECHO_N "(cached) $ECHO_C" >&6 15092fi 15093ac_res=`eval echo '${'$as_ac_Header'}'` 15094 { echo "$as_me:$LINENO: result: $ac_res" >&5 15095echo "${ECHO_T}$ac_res" >&6; } 15096else 15097 # Is the header compilable? 15098{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15100cat >conftest.$ac_ext <<_ACEOF 15101/* confdefs.h. */ 15102_ACEOF 15103cat confdefs.h >>conftest.$ac_ext 15104cat >>conftest.$ac_ext <<_ACEOF 15105/* end confdefs.h. */ 15106$ac_includes_default 15107#include <$ac_header> 15108_ACEOF 15109rm -f conftest.$ac_objext 15110if { (ac_try="$ac_compile" 15111case "(($ac_try" in 15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15113 *) ac_try_echo=$ac_try;; 15114esac 15115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15116 (eval "$ac_compile") 2>conftest.er1 15117 ac_status=$? 15118 grep -v '^ *+' conftest.er1 >conftest.err 15119 rm -f conftest.er1 15120 cat conftest.err >&5 15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15122 (exit $ac_status); } && 15123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15124 { (case "(($ac_try" in 15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15126 *) ac_try_echo=$ac_try;; 15127esac 15128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15129 (eval "$ac_try") 2>&5 15130 ac_status=$? 15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15132 (exit $ac_status); }; } && 15133 { ac_try='test -s conftest.$ac_objext' 15134 { (case "(($ac_try" in 15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15136 *) ac_try_echo=$ac_try;; 15137esac 15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15139 (eval "$ac_try") 2>&5 15140 ac_status=$? 15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15142 (exit $ac_status); }; }; then 15143 ac_header_compiler=yes 15144else 15145 echo "$as_me: failed program was:" >&5 15146sed 's/^/| /' conftest.$ac_ext >&5 15147 15148 ac_header_compiler=no 15149fi 15150 15151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15153echo "${ECHO_T}$ac_header_compiler" >&6; } 15154 15155# Is the header present? 15156{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15158cat >conftest.$ac_ext <<_ACEOF 15159/* confdefs.h. */ 15160_ACEOF 15161cat confdefs.h >>conftest.$ac_ext 15162cat >>conftest.$ac_ext <<_ACEOF 15163/* end confdefs.h. */ 15164#include <$ac_header> 15165_ACEOF 15166if { (ac_try="$ac_cpp conftest.$ac_ext" 15167case "(($ac_try" in 15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15169 *) ac_try_echo=$ac_try;; 15170esac 15171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15173 ac_status=$? 15174 grep -v '^ *+' conftest.er1 >conftest.err 15175 rm -f conftest.er1 15176 cat conftest.err >&5 15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15178 (exit $ac_status); } >/dev/null; then 15179 if test -s conftest.err; then 15180 ac_cpp_err=$ac_c_preproc_warn_flag 15181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15182 else 15183 ac_cpp_err= 15184 fi 15185else 15186 ac_cpp_err=yes 15187fi 15188if test -z "$ac_cpp_err"; then 15189 ac_header_preproc=yes 15190else 15191 echo "$as_me: failed program was:" >&5 15192sed 's/^/| /' conftest.$ac_ext >&5 15193 15194 ac_header_preproc=no 15195fi 15196 15197rm -f conftest.err conftest.$ac_ext 15198{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15199echo "${ECHO_T}$ac_header_preproc" >&6; } 15200 15201# So? What about this header? 15202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15203 yes:no: ) 15204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15208 ac_header_preproc=yes 15209 ;; 15210 no:yes:* ) 15211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15223 ( cat <<\_ASBOX 15224## ------------------------------------ ## 15225## Report this to http://llvm.org/bugs/ ## 15226## ------------------------------------ ## 15227_ASBOX 15228 ) | sed "s/^/$as_me: WARNING: /" >&2 15229 ;; 15230esac 15231{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15234 echo $ECHO_N "(cached) $ECHO_C" >&6 15235else 15236 eval "$as_ac_Header=\$ac_header_preproc" 15237fi 15238ac_res=`eval echo '${'$as_ac_Header'}'` 15239 { echo "$as_me:$LINENO: result: $ac_res" >&5 15240echo "${ECHO_T}$ac_res" >&6; } 15241 15242fi 15243if test `eval echo '${'$as_ac_Header'}'` = yes; then 15244 cat >>confdefs.h <<_ACEOF 15245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15246_ACEOF 15247 15248fi 15249 15250done 15251 15252 15253for ac_header in valgrind/valgrind.h 15254do 15255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15257 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15260 echo $ECHO_N "(cached) $ECHO_C" >&6 15261fi 15262ac_res=`eval echo '${'$as_ac_Header'}'` 15263 { echo "$as_me:$LINENO: result: $ac_res" >&5 15264echo "${ECHO_T}$ac_res" >&6; } 15265else 15266 # Is the header compilable? 15267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15269cat >conftest.$ac_ext <<_ACEOF 15270/* confdefs.h. */ 15271_ACEOF 15272cat confdefs.h >>conftest.$ac_ext 15273cat >>conftest.$ac_ext <<_ACEOF 15274/* end confdefs.h. */ 15275$ac_includes_default 15276#include <$ac_header> 15277_ACEOF 15278rm -f conftest.$ac_objext 15279if { (ac_try="$ac_compile" 15280case "(($ac_try" in 15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15282 *) ac_try_echo=$ac_try;; 15283esac 15284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15285 (eval "$ac_compile") 2>conftest.er1 15286 ac_status=$? 15287 grep -v '^ *+' conftest.er1 >conftest.err 15288 rm -f conftest.er1 15289 cat conftest.err >&5 15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15291 (exit $ac_status); } && 15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15293 { (case "(($ac_try" in 15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15295 *) ac_try_echo=$ac_try;; 15296esac 15297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15298 (eval "$ac_try") 2>&5 15299 ac_status=$? 15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15301 (exit $ac_status); }; } && 15302 { ac_try='test -s conftest.$ac_objext' 15303 { (case "(($ac_try" in 15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15305 *) ac_try_echo=$ac_try;; 15306esac 15307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15308 (eval "$ac_try") 2>&5 15309 ac_status=$? 15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15311 (exit $ac_status); }; }; then 15312 ac_header_compiler=yes 15313else 15314 echo "$as_me: failed program was:" >&5 15315sed 's/^/| /' conftest.$ac_ext >&5 15316 15317 ac_header_compiler=no 15318fi 15319 15320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15322echo "${ECHO_T}$ac_header_compiler" >&6; } 15323 15324# Is the header present? 15325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15327cat >conftest.$ac_ext <<_ACEOF 15328/* confdefs.h. */ 15329_ACEOF 15330cat confdefs.h >>conftest.$ac_ext 15331cat >>conftest.$ac_ext <<_ACEOF 15332/* end confdefs.h. */ 15333#include <$ac_header> 15334_ACEOF 15335if { (ac_try="$ac_cpp conftest.$ac_ext" 15336case "(($ac_try" in 15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15338 *) ac_try_echo=$ac_try;; 15339esac 15340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15342 ac_status=$? 15343 grep -v '^ *+' conftest.er1 >conftest.err 15344 rm -f conftest.er1 15345 cat conftest.err >&5 15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15347 (exit $ac_status); } >/dev/null; then 15348 if test -s conftest.err; then 15349 ac_cpp_err=$ac_c_preproc_warn_flag 15350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15351 else 15352 ac_cpp_err= 15353 fi 15354else 15355 ac_cpp_err=yes 15356fi 15357if test -z "$ac_cpp_err"; then 15358 ac_header_preproc=yes 15359else 15360 echo "$as_me: failed program was:" >&5 15361sed 's/^/| /' conftest.$ac_ext >&5 15362 15363 ac_header_preproc=no 15364fi 15365 15366rm -f conftest.err conftest.$ac_ext 15367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15368echo "${ECHO_T}$ac_header_preproc" >&6; } 15369 15370# So? What about this header? 15371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15372 yes:no: ) 15373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15377 ac_header_preproc=yes 15378 ;; 15379 no:yes:* ) 15380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15392 ( cat <<\_ASBOX 15393## ------------------------------------ ## 15394## Report this to http://llvm.org/bugs/ ## 15395## ------------------------------------ ## 15396_ASBOX 15397 ) | sed "s/^/$as_me: WARNING: /" >&2 15398 ;; 15399esac 15400{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15403 echo $ECHO_N "(cached) $ECHO_C" >&6 15404else 15405 eval "$as_ac_Header=\$ac_header_preproc" 15406fi 15407ac_res=`eval echo '${'$as_ac_Header'}'` 15408 { echo "$as_me:$LINENO: result: $ac_res" >&5 15409echo "${ECHO_T}$ac_res" >&6; } 15410 15411fi 15412if test `eval echo '${'$as_ac_Header'}'` = yes; then 15413 cat >>confdefs.h <<_ACEOF 15414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15415_ACEOF 15416 15417fi 15418 15419done 15420 15421 15422for ac_header in fenv.h 15423do 15424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15426 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15429 echo $ECHO_N "(cached) $ECHO_C" >&6 15430fi 15431ac_res=`eval echo '${'$as_ac_Header'}'` 15432 { echo "$as_me:$LINENO: result: $ac_res" >&5 15433echo "${ECHO_T}$ac_res" >&6; } 15434else 15435 # Is the header compilable? 15436{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15437echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15438cat >conftest.$ac_ext <<_ACEOF 15439/* confdefs.h. */ 15440_ACEOF 15441cat confdefs.h >>conftest.$ac_ext 15442cat >>conftest.$ac_ext <<_ACEOF 15443/* end confdefs.h. */ 15444$ac_includes_default 15445#include <$ac_header> 15446_ACEOF 15447rm -f conftest.$ac_objext 15448if { (ac_try="$ac_compile" 15449case "(($ac_try" in 15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15451 *) ac_try_echo=$ac_try;; 15452esac 15453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15454 (eval "$ac_compile") 2>conftest.er1 15455 ac_status=$? 15456 grep -v '^ *+' conftest.er1 >conftest.err 15457 rm -f conftest.er1 15458 cat conftest.err >&5 15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15460 (exit $ac_status); } && 15461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15462 { (case "(($ac_try" in 15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15464 *) ac_try_echo=$ac_try;; 15465esac 15466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15467 (eval "$ac_try") 2>&5 15468 ac_status=$? 15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15470 (exit $ac_status); }; } && 15471 { ac_try='test -s conftest.$ac_objext' 15472 { (case "(($ac_try" in 15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15474 *) ac_try_echo=$ac_try;; 15475esac 15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15477 (eval "$ac_try") 2>&5 15478 ac_status=$? 15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15480 (exit $ac_status); }; }; then 15481 ac_header_compiler=yes 15482else 15483 echo "$as_me: failed program was:" >&5 15484sed 's/^/| /' conftest.$ac_ext >&5 15485 15486 ac_header_compiler=no 15487fi 15488 15489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15491echo "${ECHO_T}$ac_header_compiler" >&6; } 15492 15493# Is the header present? 15494{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15496cat >conftest.$ac_ext <<_ACEOF 15497/* confdefs.h. */ 15498_ACEOF 15499cat confdefs.h >>conftest.$ac_ext 15500cat >>conftest.$ac_ext <<_ACEOF 15501/* end confdefs.h. */ 15502#include <$ac_header> 15503_ACEOF 15504if { (ac_try="$ac_cpp conftest.$ac_ext" 15505case "(($ac_try" in 15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15507 *) ac_try_echo=$ac_try;; 15508esac 15509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15511 ac_status=$? 15512 grep -v '^ *+' conftest.er1 >conftest.err 15513 rm -f conftest.er1 15514 cat conftest.err >&5 15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15516 (exit $ac_status); } >/dev/null; then 15517 if test -s conftest.err; then 15518 ac_cpp_err=$ac_c_preproc_warn_flag 15519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15520 else 15521 ac_cpp_err= 15522 fi 15523else 15524 ac_cpp_err=yes 15525fi 15526if test -z "$ac_cpp_err"; then 15527 ac_header_preproc=yes 15528else 15529 echo "$as_me: failed program was:" >&5 15530sed 's/^/| /' conftest.$ac_ext >&5 15531 15532 ac_header_preproc=no 15533fi 15534 15535rm -f conftest.err conftest.$ac_ext 15536{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15537echo "${ECHO_T}$ac_header_preproc" >&6; } 15538 15539# So? What about this header? 15540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15541 yes:no: ) 15542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15546 ac_header_preproc=yes 15547 ;; 15548 no:yes:* ) 15549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15552echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15556echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15561 ( cat <<\_ASBOX 15562## ------------------------------------ ## 15563## Report this to http://llvm.org/bugs/ ## 15564## ------------------------------------ ## 15565_ASBOX 15566 ) | sed "s/^/$as_me: WARNING: /" >&2 15567 ;; 15568esac 15569{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15572 echo $ECHO_N "(cached) $ECHO_C" >&6 15573else 15574 eval "$as_ac_Header=\$ac_header_preproc" 15575fi 15576ac_res=`eval echo '${'$as_ac_Header'}'` 15577 { echo "$as_me:$LINENO: result: $ac_res" >&5 15578echo "${ECHO_T}$ac_res" >&6; } 15579 15580fi 15581if test `eval echo '${'$as_ac_Header'}'` = yes; then 15582 cat >>confdefs.h <<_ACEOF 15583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15584_ACEOF 15585 15586fi 15587 15588done 15589 15590if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15591 15592for ac_header in pthread.h 15593do 15594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15596 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15599 echo $ECHO_N "(cached) $ECHO_C" >&6 15600fi 15601ac_res=`eval echo '${'$as_ac_Header'}'` 15602 { echo "$as_me:$LINENO: result: $ac_res" >&5 15603echo "${ECHO_T}$ac_res" >&6; } 15604else 15605 # Is the header compilable? 15606{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15607echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15608cat >conftest.$ac_ext <<_ACEOF 15609/* confdefs.h. */ 15610_ACEOF 15611cat confdefs.h >>conftest.$ac_ext 15612cat >>conftest.$ac_ext <<_ACEOF 15613/* end confdefs.h. */ 15614$ac_includes_default 15615#include <$ac_header> 15616_ACEOF 15617rm -f conftest.$ac_objext 15618if { (ac_try="$ac_compile" 15619case "(($ac_try" in 15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15621 *) ac_try_echo=$ac_try;; 15622esac 15623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15624 (eval "$ac_compile") 2>conftest.er1 15625 ac_status=$? 15626 grep -v '^ *+' conftest.er1 >conftest.err 15627 rm -f conftest.er1 15628 cat conftest.err >&5 15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15630 (exit $ac_status); } && 15631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15632 { (case "(($ac_try" in 15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15634 *) ac_try_echo=$ac_try;; 15635esac 15636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15637 (eval "$ac_try") 2>&5 15638 ac_status=$? 15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15640 (exit $ac_status); }; } && 15641 { ac_try='test -s conftest.$ac_objext' 15642 { (case "(($ac_try" in 15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15644 *) ac_try_echo=$ac_try;; 15645esac 15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15647 (eval "$ac_try") 2>&5 15648 ac_status=$? 15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15650 (exit $ac_status); }; }; then 15651 ac_header_compiler=yes 15652else 15653 echo "$as_me: failed program was:" >&5 15654sed 's/^/| /' conftest.$ac_ext >&5 15655 15656 ac_header_compiler=no 15657fi 15658 15659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15660{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15661echo "${ECHO_T}$ac_header_compiler" >&6; } 15662 15663# Is the header present? 15664{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15666cat >conftest.$ac_ext <<_ACEOF 15667/* confdefs.h. */ 15668_ACEOF 15669cat confdefs.h >>conftest.$ac_ext 15670cat >>conftest.$ac_ext <<_ACEOF 15671/* end confdefs.h. */ 15672#include <$ac_header> 15673_ACEOF 15674if { (ac_try="$ac_cpp conftest.$ac_ext" 15675case "(($ac_try" in 15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15677 *) ac_try_echo=$ac_try;; 15678esac 15679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15681 ac_status=$? 15682 grep -v '^ *+' conftest.er1 >conftest.err 15683 rm -f conftest.er1 15684 cat conftest.err >&5 15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15686 (exit $ac_status); } >/dev/null; then 15687 if test -s conftest.err; then 15688 ac_cpp_err=$ac_c_preproc_warn_flag 15689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15690 else 15691 ac_cpp_err= 15692 fi 15693else 15694 ac_cpp_err=yes 15695fi 15696if test -z "$ac_cpp_err"; then 15697 ac_header_preproc=yes 15698else 15699 echo "$as_me: failed program was:" >&5 15700sed 's/^/| /' conftest.$ac_ext >&5 15701 15702 ac_header_preproc=no 15703fi 15704 15705rm -f conftest.err conftest.$ac_ext 15706{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15707echo "${ECHO_T}$ac_header_preproc" >&6; } 15708 15709# So? What about this header? 15710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15711 yes:no: ) 15712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15716 ac_header_preproc=yes 15717 ;; 15718 no:yes:* ) 15719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15731 ( cat <<\_ASBOX 15732## ------------------------------------ ## 15733## Report this to http://llvm.org/bugs/ ## 15734## ------------------------------------ ## 15735_ASBOX 15736 ) | sed "s/^/$as_me: WARNING: /" >&2 15737 ;; 15738esac 15739{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15742 echo $ECHO_N "(cached) $ECHO_C" >&6 15743else 15744 eval "$as_ac_Header=\$ac_header_preproc" 15745fi 15746ac_res=`eval echo '${'$as_ac_Header'}'` 15747 { echo "$as_me:$LINENO: result: $ac_res" >&5 15748echo "${ECHO_T}$ac_res" >&6; } 15749 15750fi 15751if test `eval echo '${'$as_ac_Header'}'` = yes; then 15752 cat >>confdefs.h <<_ACEOF 15753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15754_ACEOF 15755 HAVE_PTHREAD=1 15756 15757else 15758 HAVE_PTHREAD=0 15759 15760fi 15761 15762done 15763 15764else 15765 HAVE_PTHREAD=0 15766 15767fi 15768 15769if test "$llvm_cv_enable_libffi" = "yes" ; then 15770 15771 15772for ac_header in ffi.h ffi/ffi.h 15773do 15774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15776 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15779 echo $ECHO_N "(cached) $ECHO_C" >&6 15780fi 15781ac_res=`eval echo '${'$as_ac_Header'}'` 15782 { echo "$as_me:$LINENO: result: $ac_res" >&5 15783echo "${ECHO_T}$ac_res" >&6; } 15784else 15785 # Is the header compilable? 15786{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15788cat >conftest.$ac_ext <<_ACEOF 15789/* confdefs.h. */ 15790_ACEOF 15791cat confdefs.h >>conftest.$ac_ext 15792cat >>conftest.$ac_ext <<_ACEOF 15793/* end confdefs.h. */ 15794$ac_includes_default 15795#include <$ac_header> 15796_ACEOF 15797rm -f conftest.$ac_objext 15798if { (ac_try="$ac_compile" 15799case "(($ac_try" in 15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15801 *) ac_try_echo=$ac_try;; 15802esac 15803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15804 (eval "$ac_compile") 2>conftest.er1 15805 ac_status=$? 15806 grep -v '^ *+' conftest.er1 >conftest.err 15807 rm -f conftest.er1 15808 cat conftest.err >&5 15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15810 (exit $ac_status); } && 15811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15812 { (case "(($ac_try" in 15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15814 *) ac_try_echo=$ac_try;; 15815esac 15816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15817 (eval "$ac_try") 2>&5 15818 ac_status=$? 15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15820 (exit $ac_status); }; } && 15821 { ac_try='test -s conftest.$ac_objext' 15822 { (case "(($ac_try" in 15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15824 *) ac_try_echo=$ac_try;; 15825esac 15826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15827 (eval "$ac_try") 2>&5 15828 ac_status=$? 15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15830 (exit $ac_status); }; }; then 15831 ac_header_compiler=yes 15832else 15833 echo "$as_me: failed program was:" >&5 15834sed 's/^/| /' conftest.$ac_ext >&5 15835 15836 ac_header_compiler=no 15837fi 15838 15839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15840{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15841echo "${ECHO_T}$ac_header_compiler" >&6; } 15842 15843# Is the header present? 15844{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15845echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15846cat >conftest.$ac_ext <<_ACEOF 15847/* confdefs.h. */ 15848_ACEOF 15849cat confdefs.h >>conftest.$ac_ext 15850cat >>conftest.$ac_ext <<_ACEOF 15851/* end confdefs.h. */ 15852#include <$ac_header> 15853_ACEOF 15854if { (ac_try="$ac_cpp conftest.$ac_ext" 15855case "(($ac_try" in 15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15857 *) ac_try_echo=$ac_try;; 15858esac 15859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15861 ac_status=$? 15862 grep -v '^ *+' conftest.er1 >conftest.err 15863 rm -f conftest.er1 15864 cat conftest.err >&5 15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15866 (exit $ac_status); } >/dev/null; then 15867 if test -s conftest.err; then 15868 ac_cpp_err=$ac_c_preproc_warn_flag 15869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15870 else 15871 ac_cpp_err= 15872 fi 15873else 15874 ac_cpp_err=yes 15875fi 15876if test -z "$ac_cpp_err"; then 15877 ac_header_preproc=yes 15878else 15879 echo "$as_me: failed program was:" >&5 15880sed 's/^/| /' conftest.$ac_ext >&5 15881 15882 ac_header_preproc=no 15883fi 15884 15885rm -f conftest.err conftest.$ac_ext 15886{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15887echo "${ECHO_T}$ac_header_preproc" >&6; } 15888 15889# So? What about this header? 15890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15891 yes:no: ) 15892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15893echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15895echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15896 ac_header_preproc=yes 15897 ;; 15898 no:yes:* ) 15899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15902echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15904echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15906echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15911 ( cat <<\_ASBOX 15912## ------------------------------------ ## 15913## Report this to http://llvm.org/bugs/ ## 15914## ------------------------------------ ## 15915_ASBOX 15916 ) | sed "s/^/$as_me: WARNING: /" >&2 15917 ;; 15918esac 15919{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15922 echo $ECHO_N "(cached) $ECHO_C" >&6 15923else 15924 eval "$as_ac_Header=\$ac_header_preproc" 15925fi 15926ac_res=`eval echo '${'$as_ac_Header'}'` 15927 { echo "$as_me:$LINENO: result: $ac_res" >&5 15928echo "${ECHO_T}$ac_res" >&6; } 15929 15930fi 15931if test `eval echo '${'$as_ac_Header'}'` = yes; then 15932 cat >>confdefs.h <<_ACEOF 15933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15934_ACEOF 15935 15936fi 15937 15938done 15939 15940fi 15941 15942 15943for ac_header in CrashReporterClient.h 15944do 15945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15947 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15950 echo $ECHO_N "(cached) $ECHO_C" >&6 15951fi 15952ac_res=`eval echo '${'$as_ac_Header'}'` 15953 { echo "$as_me:$LINENO: result: $ac_res" >&5 15954echo "${ECHO_T}$ac_res" >&6; } 15955else 15956 # Is the header compilable? 15957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15959cat >conftest.$ac_ext <<_ACEOF 15960/* confdefs.h. */ 15961_ACEOF 15962cat confdefs.h >>conftest.$ac_ext 15963cat >>conftest.$ac_ext <<_ACEOF 15964/* end confdefs.h. */ 15965$ac_includes_default 15966#include <$ac_header> 15967_ACEOF 15968rm -f conftest.$ac_objext 15969if { (ac_try="$ac_compile" 15970case "(($ac_try" in 15971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15972 *) ac_try_echo=$ac_try;; 15973esac 15974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15975 (eval "$ac_compile") 2>conftest.er1 15976 ac_status=$? 15977 grep -v '^ *+' conftest.er1 >conftest.err 15978 rm -f conftest.er1 15979 cat conftest.err >&5 15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15981 (exit $ac_status); } && 15982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15983 { (case "(($ac_try" in 15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15985 *) ac_try_echo=$ac_try;; 15986esac 15987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15988 (eval "$ac_try") 2>&5 15989 ac_status=$? 15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15991 (exit $ac_status); }; } && 15992 { ac_try='test -s conftest.$ac_objext' 15993 { (case "(($ac_try" in 15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15995 *) ac_try_echo=$ac_try;; 15996esac 15997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15998 (eval "$ac_try") 2>&5 15999 ac_status=$? 16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16001 (exit $ac_status); }; }; then 16002 ac_header_compiler=yes 16003else 16004 echo "$as_me: failed program was:" >&5 16005sed 's/^/| /' conftest.$ac_ext >&5 16006 16007 ac_header_compiler=no 16008fi 16009 16010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16012echo "${ECHO_T}$ac_header_compiler" >&6; } 16013 16014# Is the header present? 16015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16017cat >conftest.$ac_ext <<_ACEOF 16018/* confdefs.h. */ 16019_ACEOF 16020cat confdefs.h >>conftest.$ac_ext 16021cat >>conftest.$ac_ext <<_ACEOF 16022/* end confdefs.h. */ 16023#include <$ac_header> 16024_ACEOF 16025if { (ac_try="$ac_cpp conftest.$ac_ext" 16026case "(($ac_try" in 16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16028 *) ac_try_echo=$ac_try;; 16029esac 16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16032 ac_status=$? 16033 grep -v '^ *+' conftest.er1 >conftest.err 16034 rm -f conftest.er1 16035 cat conftest.err >&5 16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16037 (exit $ac_status); } >/dev/null; then 16038 if test -s conftest.err; then 16039 ac_cpp_err=$ac_c_preproc_warn_flag 16040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16041 else 16042 ac_cpp_err= 16043 fi 16044else 16045 ac_cpp_err=yes 16046fi 16047if test -z "$ac_cpp_err"; then 16048 ac_header_preproc=yes 16049else 16050 echo "$as_me: failed program was:" >&5 16051sed 's/^/| /' conftest.$ac_ext >&5 16052 16053 ac_header_preproc=no 16054fi 16055 16056rm -f conftest.err conftest.$ac_ext 16057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16058echo "${ECHO_T}$ac_header_preproc" >&6; } 16059 16060# So? What about this header? 16061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16062 yes:no: ) 16063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16067 ac_header_preproc=yes 16068 ;; 16069 no:yes:* ) 16070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16082 ( cat <<\_ASBOX 16083## ------------------------------------ ## 16084## Report this to http://llvm.org/bugs/ ## 16085## ------------------------------------ ## 16086_ASBOX 16087 ) | sed "s/^/$as_me: WARNING: /" >&2 16088 ;; 16089esac 16090{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16093 echo $ECHO_N "(cached) $ECHO_C" >&6 16094else 16095 eval "$as_ac_Header=\$ac_header_preproc" 16096fi 16097ac_res=`eval echo '${'$as_ac_Header'}'` 16098 { echo "$as_me:$LINENO: result: $ac_res" >&5 16099echo "${ECHO_T}$ac_res" >&6; } 16100 16101fi 16102if test `eval echo '${'$as_ac_Header'}'` = yes; then 16103 cat >>confdefs.h <<_ACEOF 16104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16105_ACEOF 16106 16107fi 16108 16109done 16110 16111 16112{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 16113echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 16114cat >conftest.$ac_ext <<_ACEOF 16115/* confdefs.h. */ 16116_ACEOF 16117cat confdefs.h >>conftest.$ac_ext 16118cat >>conftest.$ac_ext <<_ACEOF 16119/* end confdefs.h. */ 16120extern const char *__crashreporter_info__; 16121 int main() { 16122 __crashreporter_info__ = "test"; 16123 return 0; 16124 } 16125 16126_ACEOF 16127rm -f conftest.$ac_objext conftest$ac_exeext 16128if { (ac_try="$ac_link" 16129case "(($ac_try" in 16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16131 *) ac_try_echo=$ac_try;; 16132esac 16133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16134 (eval "$ac_link") 2>conftest.er1 16135 ac_status=$? 16136 grep -v '^ *+' conftest.er1 >conftest.err 16137 rm -f conftest.er1 16138 cat conftest.err >&5 16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16140 (exit $ac_status); } && 16141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16142 { (case "(($ac_try" in 16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16144 *) ac_try_echo=$ac_try;; 16145esac 16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16147 (eval "$ac_try") 2>&5 16148 ac_status=$? 16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16150 (exit $ac_status); }; } && 16151 { ac_try='test -s conftest$ac_exeext' 16152 { (case "(($ac_try" in 16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16154 *) ac_try_echo=$ac_try;; 16155esac 16156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16157 (eval "$ac_try") 2>&5 16158 ac_status=$? 16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16160 (exit $ac_status); }; }; then 16161 { echo "$as_me:$LINENO: result: yes" >&5 16162echo "${ECHO_T}yes" >&6; } 16163 16164cat >>confdefs.h <<\_ACEOF 16165#define HAVE_CRASHREPORTER_INFO 1 16166_ACEOF 16167 16168else 16169 echo "$as_me: failed program was:" >&5 16170sed 's/^/| /' conftest.$ac_ext >&5 16171 16172 { echo "$as_me:$LINENO: result: no" >&5 16173echo "${ECHO_T}no" >&6; } 16174 16175cat >>confdefs.h <<\_ACEOF 16176#define HAVE_CRASHREPORTER_INFO 0 16177_ACEOF 16178 16179fi 16180 16181rm -f core conftest.err conftest.$ac_objext \ 16182 conftest$ac_exeext conftest.$ac_ext 16183 16184 16185 16186 16187 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16188echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16189if test "${ac_cv_huge_val_sanity+set}" = set; then 16190 echo $ECHO_N "(cached) $ECHO_C" >&6 16191else 16192 16193 ac_ext=cpp 16194ac_cpp='$CXXCPP $CPPFLAGS' 16195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16198 16199 ac_save_CXXFLAGS=$CXXFLAGS 16200 CXXFLAGS="$CXXFLAGS -pedantic" 16201 if test "$cross_compiling" = yes; then 16202 ac_cv_huge_val_sanity=yes 16203else 16204 cat >conftest.$ac_ext <<_ACEOF 16205/* confdefs.h. */ 16206_ACEOF 16207cat confdefs.h >>conftest.$ac_ext 16208cat >>conftest.$ac_ext <<_ACEOF 16209/* end confdefs.h. */ 16210#include <math.h> 16211int 16212main () 16213{ 16214double x = HUGE_VAL; return x != x; 16215 ; 16216 return 0; 16217} 16218_ACEOF 16219rm -f conftest$ac_exeext 16220if { (ac_try="$ac_link" 16221case "(($ac_try" in 16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16223 *) ac_try_echo=$ac_try;; 16224esac 16225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16226 (eval "$ac_link") 2>&5 16227 ac_status=$? 16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16230 { (case "(($ac_try" in 16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16232 *) ac_try_echo=$ac_try;; 16233esac 16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16235 (eval "$ac_try") 2>&5 16236 ac_status=$? 16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16238 (exit $ac_status); }; }; then 16239 ac_cv_huge_val_sanity=yes 16240else 16241 echo "$as_me: program exited with status $ac_status" >&5 16242echo "$as_me: failed program was:" >&5 16243sed 's/^/| /' conftest.$ac_ext >&5 16244 16245( exit $ac_status ) 16246ac_cv_huge_val_sanity=no 16247fi 16248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16249fi 16250 16251 16252 CXXFLAGS=$ac_save_CXXFLAGS 16253 ac_ext=c 16254ac_cpp='$CPP $CPPFLAGS' 16255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16257ac_compiler_gnu=$ac_cv_c_compiler_gnu 16258 16259 16260fi 16261{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16262echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16263 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16264 16265 16266{ echo "$as_me:$LINENO: checking for pid_t" >&5 16267echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16268if test "${ac_cv_type_pid_t+set}" = set; then 16269 echo $ECHO_N "(cached) $ECHO_C" >&6 16270else 16271 cat >conftest.$ac_ext <<_ACEOF 16272/* confdefs.h. */ 16273_ACEOF 16274cat confdefs.h >>conftest.$ac_ext 16275cat >>conftest.$ac_ext <<_ACEOF 16276/* end confdefs.h. */ 16277$ac_includes_default 16278typedef pid_t ac__type_new_; 16279int 16280main () 16281{ 16282if ((ac__type_new_ *) 0) 16283 return 0; 16284if (sizeof (ac__type_new_)) 16285 return 0; 16286 ; 16287 return 0; 16288} 16289_ACEOF 16290rm -f conftest.$ac_objext 16291if { (ac_try="$ac_compile" 16292case "(($ac_try" in 16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16294 *) ac_try_echo=$ac_try;; 16295esac 16296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16297 (eval "$ac_compile") 2>conftest.er1 16298 ac_status=$? 16299 grep -v '^ *+' conftest.er1 >conftest.err 16300 rm -f conftest.er1 16301 cat conftest.err >&5 16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16303 (exit $ac_status); } && 16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16305 { (case "(($ac_try" in 16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16307 *) ac_try_echo=$ac_try;; 16308esac 16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16310 (eval "$ac_try") 2>&5 16311 ac_status=$? 16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16313 (exit $ac_status); }; } && 16314 { ac_try='test -s conftest.$ac_objext' 16315 { (case "(($ac_try" in 16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16317 *) ac_try_echo=$ac_try;; 16318esac 16319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16320 (eval "$ac_try") 2>&5 16321 ac_status=$? 16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16323 (exit $ac_status); }; }; then 16324 ac_cv_type_pid_t=yes 16325else 16326 echo "$as_me: failed program was:" >&5 16327sed 's/^/| /' conftest.$ac_ext >&5 16328 16329 ac_cv_type_pid_t=no 16330fi 16331 16332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16333fi 16334{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16335echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16336if test $ac_cv_type_pid_t = yes; then 16337 : 16338else 16339 16340cat >>confdefs.h <<_ACEOF 16341#define pid_t int 16342_ACEOF 16343 16344fi 16345 16346{ echo "$as_me:$LINENO: checking for size_t" >&5 16347echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16348if test "${ac_cv_type_size_t+set}" = set; then 16349 echo $ECHO_N "(cached) $ECHO_C" >&6 16350else 16351 cat >conftest.$ac_ext <<_ACEOF 16352/* confdefs.h. */ 16353_ACEOF 16354cat confdefs.h >>conftest.$ac_ext 16355cat >>conftest.$ac_ext <<_ACEOF 16356/* end confdefs.h. */ 16357$ac_includes_default 16358typedef size_t ac__type_new_; 16359int 16360main () 16361{ 16362if ((ac__type_new_ *) 0) 16363 return 0; 16364if (sizeof (ac__type_new_)) 16365 return 0; 16366 ; 16367 return 0; 16368} 16369_ACEOF 16370rm -f conftest.$ac_objext 16371if { (ac_try="$ac_compile" 16372case "(($ac_try" in 16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16374 *) ac_try_echo=$ac_try;; 16375esac 16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16377 (eval "$ac_compile") 2>conftest.er1 16378 ac_status=$? 16379 grep -v '^ *+' conftest.er1 >conftest.err 16380 rm -f conftest.er1 16381 cat conftest.err >&5 16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16383 (exit $ac_status); } && 16384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16385 { (case "(($ac_try" in 16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16387 *) ac_try_echo=$ac_try;; 16388esac 16389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16390 (eval "$ac_try") 2>&5 16391 ac_status=$? 16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16393 (exit $ac_status); }; } && 16394 { ac_try='test -s conftest.$ac_objext' 16395 { (case "(($ac_try" in 16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16397 *) ac_try_echo=$ac_try;; 16398esac 16399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16400 (eval "$ac_try") 2>&5 16401 ac_status=$? 16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16403 (exit $ac_status); }; }; then 16404 ac_cv_type_size_t=yes 16405else 16406 echo "$as_me: failed program was:" >&5 16407sed 's/^/| /' conftest.$ac_ext >&5 16408 16409 ac_cv_type_size_t=no 16410fi 16411 16412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16413fi 16414{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16415echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16416if test $ac_cv_type_size_t = yes; then 16417 : 16418else 16419 16420cat >>confdefs.h <<_ACEOF 16421#define size_t unsigned int 16422_ACEOF 16423 16424fi 16425 16426 16427cat >>confdefs.h <<_ACEOF 16428#define RETSIGTYPE void 16429_ACEOF 16430 16431{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16432echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16433if test "${ac_cv_struct_tm+set}" = set; then 16434 echo $ECHO_N "(cached) $ECHO_C" >&6 16435else 16436 cat >conftest.$ac_ext <<_ACEOF 16437/* confdefs.h. */ 16438_ACEOF 16439cat confdefs.h >>conftest.$ac_ext 16440cat >>conftest.$ac_ext <<_ACEOF 16441/* end confdefs.h. */ 16442#include <sys/types.h> 16443#include <time.h> 16444 16445int 16446main () 16447{ 16448struct tm *tp; tp->tm_sec; 16449 ; 16450 return 0; 16451} 16452_ACEOF 16453rm -f conftest.$ac_objext 16454if { (ac_try="$ac_compile" 16455case "(($ac_try" in 16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16457 *) ac_try_echo=$ac_try;; 16458esac 16459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16460 (eval "$ac_compile") 2>conftest.er1 16461 ac_status=$? 16462 grep -v '^ *+' conftest.er1 >conftest.err 16463 rm -f conftest.er1 16464 cat conftest.err >&5 16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16466 (exit $ac_status); } && 16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16468 { (case "(($ac_try" in 16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16470 *) ac_try_echo=$ac_try;; 16471esac 16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16473 (eval "$ac_try") 2>&5 16474 ac_status=$? 16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16476 (exit $ac_status); }; } && 16477 { ac_try='test -s conftest.$ac_objext' 16478 { (case "(($ac_try" in 16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16480 *) ac_try_echo=$ac_try;; 16481esac 16482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16483 (eval "$ac_try") 2>&5 16484 ac_status=$? 16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16486 (exit $ac_status); }; }; then 16487 ac_cv_struct_tm=time.h 16488else 16489 echo "$as_me: failed program was:" >&5 16490sed 's/^/| /' conftest.$ac_ext >&5 16491 16492 ac_cv_struct_tm=sys/time.h 16493fi 16494 16495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16496fi 16497{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16498echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16499if test $ac_cv_struct_tm = sys/time.h; then 16500 16501cat >>confdefs.h <<\_ACEOF 16502#define TM_IN_SYS_TIME 1 16503_ACEOF 16504 16505fi 16506 16507{ echo "$as_me:$LINENO: checking for int64_t" >&5 16508echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16509if test "${ac_cv_type_int64_t+set}" = set; then 16510 echo $ECHO_N "(cached) $ECHO_C" >&6 16511else 16512 cat >conftest.$ac_ext <<_ACEOF 16513/* confdefs.h. */ 16514_ACEOF 16515cat confdefs.h >>conftest.$ac_ext 16516cat >>conftest.$ac_ext <<_ACEOF 16517/* end confdefs.h. */ 16518$ac_includes_default 16519typedef int64_t ac__type_new_; 16520int 16521main () 16522{ 16523if ((ac__type_new_ *) 0) 16524 return 0; 16525if (sizeof (ac__type_new_)) 16526 return 0; 16527 ; 16528 return 0; 16529} 16530_ACEOF 16531rm -f conftest.$ac_objext 16532if { (ac_try="$ac_compile" 16533case "(($ac_try" in 16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16535 *) ac_try_echo=$ac_try;; 16536esac 16537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16538 (eval "$ac_compile") 2>conftest.er1 16539 ac_status=$? 16540 grep -v '^ *+' conftest.er1 >conftest.err 16541 rm -f conftest.er1 16542 cat conftest.err >&5 16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16544 (exit $ac_status); } && 16545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16546 { (case "(($ac_try" in 16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16548 *) ac_try_echo=$ac_try;; 16549esac 16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16551 (eval "$ac_try") 2>&5 16552 ac_status=$? 16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16554 (exit $ac_status); }; } && 16555 { ac_try='test -s conftest.$ac_objext' 16556 { (case "(($ac_try" in 16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16558 *) ac_try_echo=$ac_try;; 16559esac 16560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16561 (eval "$ac_try") 2>&5 16562 ac_status=$? 16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16564 (exit $ac_status); }; }; then 16565 ac_cv_type_int64_t=yes 16566else 16567 echo "$as_me: failed program was:" >&5 16568sed 's/^/| /' conftest.$ac_ext >&5 16569 16570 ac_cv_type_int64_t=no 16571fi 16572 16573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16574fi 16575{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16576echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16577if test $ac_cv_type_int64_t = yes; then 16578 16579cat >>confdefs.h <<_ACEOF 16580#define HAVE_INT64_T 1 16581_ACEOF 16582 16583 16584else 16585 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16586echo "$as_me: error: Type int64_t required but not found" >&2;} 16587 { (exit 1); exit 1; }; } 16588fi 16589 16590{ echo "$as_me:$LINENO: checking for uint64_t" >&5 16591echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16592if test "${ac_cv_type_uint64_t+set}" = set; then 16593 echo $ECHO_N "(cached) $ECHO_C" >&6 16594else 16595 cat >conftest.$ac_ext <<_ACEOF 16596/* confdefs.h. */ 16597_ACEOF 16598cat confdefs.h >>conftest.$ac_ext 16599cat >>conftest.$ac_ext <<_ACEOF 16600/* end confdefs.h. */ 16601$ac_includes_default 16602typedef uint64_t ac__type_new_; 16603int 16604main () 16605{ 16606if ((ac__type_new_ *) 0) 16607 return 0; 16608if (sizeof (ac__type_new_)) 16609 return 0; 16610 ; 16611 return 0; 16612} 16613_ACEOF 16614rm -f conftest.$ac_objext 16615if { (ac_try="$ac_compile" 16616case "(($ac_try" in 16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16618 *) ac_try_echo=$ac_try;; 16619esac 16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16621 (eval "$ac_compile") 2>conftest.er1 16622 ac_status=$? 16623 grep -v '^ *+' conftest.er1 >conftest.err 16624 rm -f conftest.er1 16625 cat conftest.err >&5 16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16627 (exit $ac_status); } && 16628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16629 { (case "(($ac_try" in 16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16631 *) ac_try_echo=$ac_try;; 16632esac 16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16634 (eval "$ac_try") 2>&5 16635 ac_status=$? 16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16637 (exit $ac_status); }; } && 16638 { ac_try='test -s conftest.$ac_objext' 16639 { (case "(($ac_try" in 16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16641 *) ac_try_echo=$ac_try;; 16642esac 16643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16644 (eval "$ac_try") 2>&5 16645 ac_status=$? 16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16647 (exit $ac_status); }; }; then 16648 ac_cv_type_uint64_t=yes 16649else 16650 echo "$as_me: failed program was:" >&5 16651sed 's/^/| /' conftest.$ac_ext >&5 16652 16653 ac_cv_type_uint64_t=no 16654fi 16655 16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16657fi 16658{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16659echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 16660if test $ac_cv_type_uint64_t = yes; then 16661 16662cat >>confdefs.h <<_ACEOF 16663#define HAVE_UINT64_T 1 16664_ACEOF 16665 16666 16667else 16668 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 16669echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 16670if test "${ac_cv_type_u_int64_t+set}" = set; then 16671 echo $ECHO_N "(cached) $ECHO_C" >&6 16672else 16673 cat >conftest.$ac_ext <<_ACEOF 16674/* confdefs.h. */ 16675_ACEOF 16676cat confdefs.h >>conftest.$ac_ext 16677cat >>conftest.$ac_ext <<_ACEOF 16678/* end confdefs.h. */ 16679$ac_includes_default 16680typedef u_int64_t ac__type_new_; 16681int 16682main () 16683{ 16684if ((ac__type_new_ *) 0) 16685 return 0; 16686if (sizeof (ac__type_new_)) 16687 return 0; 16688 ; 16689 return 0; 16690} 16691_ACEOF 16692rm -f conftest.$ac_objext 16693if { (ac_try="$ac_compile" 16694case "(($ac_try" in 16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16696 *) ac_try_echo=$ac_try;; 16697esac 16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16699 (eval "$ac_compile") 2>conftest.er1 16700 ac_status=$? 16701 grep -v '^ *+' conftest.er1 >conftest.err 16702 rm -f conftest.er1 16703 cat conftest.err >&5 16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16705 (exit $ac_status); } && 16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16707 { (case "(($ac_try" in 16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16709 *) ac_try_echo=$ac_try;; 16710esac 16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16712 (eval "$ac_try") 2>&5 16713 ac_status=$? 16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16715 (exit $ac_status); }; } && 16716 { ac_try='test -s conftest.$ac_objext' 16717 { (case "(($ac_try" in 16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16719 *) ac_try_echo=$ac_try;; 16720esac 16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16722 (eval "$ac_try") 2>&5 16723 ac_status=$? 16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16725 (exit $ac_status); }; }; then 16726 ac_cv_type_u_int64_t=yes 16727else 16728 echo "$as_me: failed program was:" >&5 16729sed 's/^/| /' conftest.$ac_ext >&5 16730 16731 ac_cv_type_u_int64_t=no 16732fi 16733 16734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16735fi 16736{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 16737echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 16738if test $ac_cv_type_u_int64_t = yes; then 16739 16740cat >>confdefs.h <<_ACEOF 16741#define HAVE_U_INT64_T 1 16742_ACEOF 16743 16744 16745else 16746 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 16747echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 16748 { (exit 1); exit 1; }; } 16749fi 16750 16751fi 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 16763do 16764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16765{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16768 echo $ECHO_N "(cached) $ECHO_C" >&6 16769else 16770 cat >conftest.$ac_ext <<_ACEOF 16771/* confdefs.h. */ 16772_ACEOF 16773cat confdefs.h >>conftest.$ac_ext 16774cat >>conftest.$ac_ext <<_ACEOF 16775/* end confdefs.h. */ 16776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16778#define $ac_func innocuous_$ac_func 16779 16780/* System header to define __stub macros and hopefully few prototypes, 16781 which can conflict with char $ac_func (); below. 16782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16783 <limits.h> exists even on freestanding compilers. */ 16784 16785#ifdef __STDC__ 16786# include <limits.h> 16787#else 16788# include <assert.h> 16789#endif 16790 16791#undef $ac_func 16792 16793/* Override any GCC internal prototype to avoid an error. 16794 Use char because int might match the return type of a GCC 16795 builtin and then its argument prototype would still apply. */ 16796#ifdef __cplusplus 16797extern "C" 16798#endif 16799char $ac_func (); 16800/* The GNU C library defines this for functions which it implements 16801 to always fail with ENOSYS. Some functions are actually named 16802 something starting with __ and the normal name is an alias. */ 16803#if defined __stub_$ac_func || defined __stub___$ac_func 16804choke me 16805#endif 16806 16807int 16808main () 16809{ 16810return $ac_func (); 16811 ; 16812 return 0; 16813} 16814_ACEOF 16815rm -f conftest.$ac_objext conftest$ac_exeext 16816if { (ac_try="$ac_link" 16817case "(($ac_try" in 16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16819 *) ac_try_echo=$ac_try;; 16820esac 16821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16822 (eval "$ac_link") 2>conftest.er1 16823 ac_status=$? 16824 grep -v '^ *+' conftest.er1 >conftest.err 16825 rm -f conftest.er1 16826 cat conftest.err >&5 16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16828 (exit $ac_status); } && 16829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16830 { (case "(($ac_try" in 16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16832 *) ac_try_echo=$ac_try;; 16833esac 16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16835 (eval "$ac_try") 2>&5 16836 ac_status=$? 16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16838 (exit $ac_status); }; } && 16839 { ac_try='test -s conftest$ac_exeext' 16840 { (case "(($ac_try" in 16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16842 *) ac_try_echo=$ac_try;; 16843esac 16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16845 (eval "$ac_try") 2>&5 16846 ac_status=$? 16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16848 (exit $ac_status); }; }; then 16849 eval "$as_ac_var=yes" 16850else 16851 echo "$as_me: failed program was:" >&5 16852sed 's/^/| /' conftest.$ac_ext >&5 16853 16854 eval "$as_ac_var=no" 16855fi 16856 16857rm -f core conftest.err conftest.$ac_objext \ 16858 conftest$ac_exeext conftest.$ac_ext 16859fi 16860ac_res=`eval echo '${'$as_ac_var'}'` 16861 { echo "$as_me:$LINENO: result: $ac_res" >&5 16862echo "${ECHO_T}$ac_res" >&6; } 16863if test `eval echo '${'$as_ac_var'}'` = yes; then 16864 cat >>confdefs.h <<_ACEOF 16865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16866_ACEOF 16867 16868fi 16869done 16870 16871 16872 16873 16874 16875for ac_func in powf fmodf strtof round 16876do 16877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16878{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16881 echo $ECHO_N "(cached) $ECHO_C" >&6 16882else 16883 cat >conftest.$ac_ext <<_ACEOF 16884/* confdefs.h. */ 16885_ACEOF 16886cat confdefs.h >>conftest.$ac_ext 16887cat >>conftest.$ac_ext <<_ACEOF 16888/* end confdefs.h. */ 16889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16890 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16891#define $ac_func innocuous_$ac_func 16892 16893/* System header to define __stub macros and hopefully few prototypes, 16894 which can conflict with char $ac_func (); below. 16895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16896 <limits.h> exists even on freestanding compilers. */ 16897 16898#ifdef __STDC__ 16899# include <limits.h> 16900#else 16901# include <assert.h> 16902#endif 16903 16904#undef $ac_func 16905 16906/* Override any GCC internal prototype to avoid an error. 16907 Use char because int might match the return type of a GCC 16908 builtin and then its argument prototype would still apply. */ 16909#ifdef __cplusplus 16910extern "C" 16911#endif 16912char $ac_func (); 16913/* The GNU C library defines this for functions which it implements 16914 to always fail with ENOSYS. Some functions are actually named 16915 something starting with __ and the normal name is an alias. */ 16916#if defined __stub_$ac_func || defined __stub___$ac_func 16917choke me 16918#endif 16919 16920int 16921main () 16922{ 16923return $ac_func (); 16924 ; 16925 return 0; 16926} 16927_ACEOF 16928rm -f conftest.$ac_objext conftest$ac_exeext 16929if { (ac_try="$ac_link" 16930case "(($ac_try" in 16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16932 *) ac_try_echo=$ac_try;; 16933esac 16934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16935 (eval "$ac_link") 2>conftest.er1 16936 ac_status=$? 16937 grep -v '^ *+' conftest.er1 >conftest.err 16938 rm -f conftest.er1 16939 cat conftest.err >&5 16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16941 (exit $ac_status); } && 16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16943 { (case "(($ac_try" in 16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16945 *) ac_try_echo=$ac_try;; 16946esac 16947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16948 (eval "$ac_try") 2>&5 16949 ac_status=$? 16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16951 (exit $ac_status); }; } && 16952 { ac_try='test -s conftest$ac_exeext' 16953 { (case "(($ac_try" in 16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16955 *) ac_try_echo=$ac_try;; 16956esac 16957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16958 (eval "$ac_try") 2>&5 16959 ac_status=$? 16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16961 (exit $ac_status); }; }; then 16962 eval "$as_ac_var=yes" 16963else 16964 echo "$as_me: failed program was:" >&5 16965sed 's/^/| /' conftest.$ac_ext >&5 16966 16967 eval "$as_ac_var=no" 16968fi 16969 16970rm -f core conftest.err conftest.$ac_objext \ 16971 conftest$ac_exeext conftest.$ac_ext 16972fi 16973ac_res=`eval echo '${'$as_ac_var'}'` 16974 { echo "$as_me:$LINENO: result: $ac_res" >&5 16975echo "${ECHO_T}$ac_res" >&6; } 16976if test `eval echo '${'$as_ac_var'}'` = yes; then 16977 cat >>confdefs.h <<_ACEOF 16978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16979_ACEOF 16980 16981fi 16982done 16983 16984 16985 16986 16987 16988 16989for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 16990do 16991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16992{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16994if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16995 echo $ECHO_N "(cached) $ECHO_C" >&6 16996else 16997 cat >conftest.$ac_ext <<_ACEOF 16998/* confdefs.h. */ 16999_ACEOF 17000cat confdefs.h >>conftest.$ac_ext 17001cat >>conftest.$ac_ext <<_ACEOF 17002/* end confdefs.h. */ 17003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17004 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17005#define $ac_func innocuous_$ac_func 17006 17007/* System header to define __stub macros and hopefully few prototypes, 17008 which can conflict with char $ac_func (); below. 17009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17010 <limits.h> exists even on freestanding compilers. */ 17011 17012#ifdef __STDC__ 17013# include <limits.h> 17014#else 17015# include <assert.h> 17016#endif 17017 17018#undef $ac_func 17019 17020/* Override any GCC internal prototype to avoid an error. 17021 Use char because int might match the return type of a GCC 17022 builtin and then its argument prototype would still apply. */ 17023#ifdef __cplusplus 17024extern "C" 17025#endif 17026char $ac_func (); 17027/* The GNU C library defines this for functions which it implements 17028 to always fail with ENOSYS. Some functions are actually named 17029 something starting with __ and the normal name is an alias. */ 17030#if defined __stub_$ac_func || defined __stub___$ac_func 17031choke me 17032#endif 17033 17034int 17035main () 17036{ 17037return $ac_func (); 17038 ; 17039 return 0; 17040} 17041_ACEOF 17042rm -f conftest.$ac_objext conftest$ac_exeext 17043if { (ac_try="$ac_link" 17044case "(($ac_try" in 17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17046 *) ac_try_echo=$ac_try;; 17047esac 17048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17049 (eval "$ac_link") 2>conftest.er1 17050 ac_status=$? 17051 grep -v '^ *+' conftest.er1 >conftest.err 17052 rm -f conftest.er1 17053 cat conftest.err >&5 17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17055 (exit $ac_status); } && 17056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17057 { (case "(($ac_try" in 17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17059 *) ac_try_echo=$ac_try;; 17060esac 17061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17062 (eval "$ac_try") 2>&5 17063 ac_status=$? 17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17065 (exit $ac_status); }; } && 17066 { ac_try='test -s conftest$ac_exeext' 17067 { (case "(($ac_try" in 17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17069 *) ac_try_echo=$ac_try;; 17070esac 17071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17072 (eval "$ac_try") 2>&5 17073 ac_status=$? 17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17075 (exit $ac_status); }; }; then 17076 eval "$as_ac_var=yes" 17077else 17078 echo "$as_me: failed program was:" >&5 17079sed 's/^/| /' conftest.$ac_ext >&5 17080 17081 eval "$as_ac_var=no" 17082fi 17083 17084rm -f core conftest.err conftest.$ac_objext \ 17085 conftest$ac_exeext conftest.$ac_ext 17086fi 17087ac_res=`eval echo '${'$as_ac_var'}'` 17088 { echo "$as_me:$LINENO: result: $ac_res" >&5 17089echo "${ECHO_T}$ac_res" >&6; } 17090if test `eval echo '${'$as_ac_var'}'` = yes; then 17091 cat >>confdefs.h <<_ACEOF 17092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17093_ACEOF 17094 17095fi 17096done 17097 17098 17099 17100 17101for ac_func in isatty mkdtemp mkstemp 17102do 17103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17104{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17106if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17107 echo $ECHO_N "(cached) $ECHO_C" >&6 17108else 17109 cat >conftest.$ac_ext <<_ACEOF 17110/* confdefs.h. */ 17111_ACEOF 17112cat confdefs.h >>conftest.$ac_ext 17113cat >>conftest.$ac_ext <<_ACEOF 17114/* end confdefs.h. */ 17115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17116 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17117#define $ac_func innocuous_$ac_func 17118 17119/* System header to define __stub macros and hopefully few prototypes, 17120 which can conflict with char $ac_func (); below. 17121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17122 <limits.h> exists even on freestanding compilers. */ 17123 17124#ifdef __STDC__ 17125# include <limits.h> 17126#else 17127# include <assert.h> 17128#endif 17129 17130#undef $ac_func 17131 17132/* Override any GCC internal prototype to avoid an error. 17133 Use char because int might match the return type of a GCC 17134 builtin and then its argument prototype would still apply. */ 17135#ifdef __cplusplus 17136extern "C" 17137#endif 17138char $ac_func (); 17139/* The GNU C library defines this for functions which it implements 17140 to always fail with ENOSYS. Some functions are actually named 17141 something starting with __ and the normal name is an alias. */ 17142#if defined __stub_$ac_func || defined __stub___$ac_func 17143choke me 17144#endif 17145 17146int 17147main () 17148{ 17149return $ac_func (); 17150 ; 17151 return 0; 17152} 17153_ACEOF 17154rm -f conftest.$ac_objext conftest$ac_exeext 17155if { (ac_try="$ac_link" 17156case "(($ac_try" in 17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17158 *) ac_try_echo=$ac_try;; 17159esac 17160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17161 (eval "$ac_link") 2>conftest.er1 17162 ac_status=$? 17163 grep -v '^ *+' conftest.er1 >conftest.err 17164 rm -f conftest.er1 17165 cat conftest.err >&5 17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17167 (exit $ac_status); } && 17168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17169 { (case "(($ac_try" in 17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17171 *) ac_try_echo=$ac_try;; 17172esac 17173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17174 (eval "$ac_try") 2>&5 17175 ac_status=$? 17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17177 (exit $ac_status); }; } && 17178 { ac_try='test -s conftest$ac_exeext' 17179 { (case "(($ac_try" in 17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17181 *) ac_try_echo=$ac_try;; 17182esac 17183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17184 (eval "$ac_try") 2>&5 17185 ac_status=$? 17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17187 (exit $ac_status); }; }; then 17188 eval "$as_ac_var=yes" 17189else 17190 echo "$as_me: failed program was:" >&5 17191sed 's/^/| /' conftest.$ac_ext >&5 17192 17193 eval "$as_ac_var=no" 17194fi 17195 17196rm -f core conftest.err conftest.$ac_objext \ 17197 conftest$ac_exeext conftest.$ac_ext 17198fi 17199ac_res=`eval echo '${'$as_ac_var'}'` 17200 { echo "$as_me:$LINENO: result: $ac_res" >&5 17201echo "${ECHO_T}$ac_res" >&6; } 17202if test `eval echo '${'$as_ac_var'}'` = yes; then 17203 cat >>confdefs.h <<_ACEOF 17204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17205_ACEOF 17206 17207fi 17208done 17209 17210 17211 17212 17213 17214 17215 17216 17217for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup 17218do 17219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17220{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17223 echo $ECHO_N "(cached) $ECHO_C" >&6 17224else 17225 cat >conftest.$ac_ext <<_ACEOF 17226/* confdefs.h. */ 17227_ACEOF 17228cat confdefs.h >>conftest.$ac_ext 17229cat >>conftest.$ac_ext <<_ACEOF 17230/* end confdefs.h. */ 17231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17232 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17233#define $ac_func innocuous_$ac_func 17234 17235/* System header to define __stub macros and hopefully few prototypes, 17236 which can conflict with char $ac_func (); below. 17237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17238 <limits.h> exists even on freestanding compilers. */ 17239 17240#ifdef __STDC__ 17241# include <limits.h> 17242#else 17243# include <assert.h> 17244#endif 17245 17246#undef $ac_func 17247 17248/* Override any GCC internal prototype to avoid an error. 17249 Use char because int might match the return type of a GCC 17250 builtin and then its argument prototype would still apply. */ 17251#ifdef __cplusplus 17252extern "C" 17253#endif 17254char $ac_func (); 17255/* The GNU C library defines this for functions which it implements 17256 to always fail with ENOSYS. Some functions are actually named 17257 something starting with __ and the normal name is an alias. */ 17258#if defined __stub_$ac_func || defined __stub___$ac_func 17259choke me 17260#endif 17261 17262int 17263main () 17264{ 17265return $ac_func (); 17266 ; 17267 return 0; 17268} 17269_ACEOF 17270rm -f conftest.$ac_objext conftest$ac_exeext 17271if { (ac_try="$ac_link" 17272case "(($ac_try" in 17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17274 *) ac_try_echo=$ac_try;; 17275esac 17276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17277 (eval "$ac_link") 2>conftest.er1 17278 ac_status=$? 17279 grep -v '^ *+' conftest.er1 >conftest.err 17280 rm -f conftest.er1 17281 cat conftest.err >&5 17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17283 (exit $ac_status); } && 17284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17285 { (case "(($ac_try" in 17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17287 *) ac_try_echo=$ac_try;; 17288esac 17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17290 (eval "$ac_try") 2>&5 17291 ac_status=$? 17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17293 (exit $ac_status); }; } && 17294 { ac_try='test -s conftest$ac_exeext' 17295 { (case "(($ac_try" in 17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17297 *) ac_try_echo=$ac_try;; 17298esac 17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17300 (eval "$ac_try") 2>&5 17301 ac_status=$? 17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17303 (exit $ac_status); }; }; then 17304 eval "$as_ac_var=yes" 17305else 17306 echo "$as_me: failed program was:" >&5 17307sed 's/^/| /' conftest.$ac_ext >&5 17308 17309 eval "$as_ac_var=no" 17310fi 17311 17312rm -f core conftest.err conftest.$ac_objext \ 17313 conftest$ac_exeext conftest.$ac_ext 17314fi 17315ac_res=`eval echo '${'$as_ac_var'}'` 17316 { echo "$as_me:$LINENO: result: $ac_res" >&5 17317echo "${ECHO_T}$ac_res" >&6; } 17318if test `eval echo '${'$as_ac_var'}'` = yes; then 17319 cat >>confdefs.h <<_ACEOF 17320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17321_ACEOF 17322 17323fi 17324done 17325 17326 17327 17328 17329 17330for ac_func in strerror strerror_r setenv arc4random 17331do 17332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17333{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17336 echo $ECHO_N "(cached) $ECHO_C" >&6 17337else 17338 cat >conftest.$ac_ext <<_ACEOF 17339/* confdefs.h. */ 17340_ACEOF 17341cat confdefs.h >>conftest.$ac_ext 17342cat >>conftest.$ac_ext <<_ACEOF 17343/* end confdefs.h. */ 17344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17345 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17346#define $ac_func innocuous_$ac_func 17347 17348/* System header to define __stub macros and hopefully few prototypes, 17349 which can conflict with char $ac_func (); below. 17350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17351 <limits.h> exists even on freestanding compilers. */ 17352 17353#ifdef __STDC__ 17354# include <limits.h> 17355#else 17356# include <assert.h> 17357#endif 17358 17359#undef $ac_func 17360 17361/* Override any GCC internal prototype to avoid an error. 17362 Use char because int might match the return type of a GCC 17363 builtin and then its argument prototype would still apply. */ 17364#ifdef __cplusplus 17365extern "C" 17366#endif 17367char $ac_func (); 17368/* The GNU C library defines this for functions which it implements 17369 to always fail with ENOSYS. Some functions are actually named 17370 something starting with __ and the normal name is an alias. */ 17371#if defined __stub_$ac_func || defined __stub___$ac_func 17372choke me 17373#endif 17374 17375int 17376main () 17377{ 17378return $ac_func (); 17379 ; 17380 return 0; 17381} 17382_ACEOF 17383rm -f conftest.$ac_objext conftest$ac_exeext 17384if { (ac_try="$ac_link" 17385case "(($ac_try" in 17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17387 *) ac_try_echo=$ac_try;; 17388esac 17389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17390 (eval "$ac_link") 2>conftest.er1 17391 ac_status=$? 17392 grep -v '^ *+' conftest.er1 >conftest.err 17393 rm -f conftest.er1 17394 cat conftest.err >&5 17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17396 (exit $ac_status); } && 17397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17398 { (case "(($ac_try" in 17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17400 *) ac_try_echo=$ac_try;; 17401esac 17402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17403 (eval "$ac_try") 2>&5 17404 ac_status=$? 17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17406 (exit $ac_status); }; } && 17407 { ac_try='test -s conftest$ac_exeext' 17408 { (case "(($ac_try" in 17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17410 *) ac_try_echo=$ac_try;; 17411esac 17412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17413 (eval "$ac_try") 2>&5 17414 ac_status=$? 17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17416 (exit $ac_status); }; }; then 17417 eval "$as_ac_var=yes" 17418else 17419 echo "$as_me: failed program was:" >&5 17420sed 's/^/| /' conftest.$ac_ext >&5 17421 17422 eval "$as_ac_var=no" 17423fi 17424 17425rm -f core conftest.err conftest.$ac_objext \ 17426 conftest$ac_exeext conftest.$ac_ext 17427fi 17428ac_res=`eval echo '${'$as_ac_var'}'` 17429 { echo "$as_me:$LINENO: result: $ac_res" >&5 17430echo "${ECHO_T}$ac_res" >&6; } 17431if test `eval echo '${'$as_ac_var'}'` = yes; then 17432 cat >>confdefs.h <<_ACEOF 17433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17434_ACEOF 17435 17436fi 17437done 17438 17439 17440 17441 17442 17443for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17444do 17445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17446{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17448if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17449 echo $ECHO_N "(cached) $ECHO_C" >&6 17450else 17451 cat >conftest.$ac_ext <<_ACEOF 17452/* confdefs.h. */ 17453_ACEOF 17454cat confdefs.h >>conftest.$ac_ext 17455cat >>conftest.$ac_ext <<_ACEOF 17456/* end confdefs.h. */ 17457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17458 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17459#define $ac_func innocuous_$ac_func 17460 17461/* System header to define __stub macros and hopefully few prototypes, 17462 which can conflict with char $ac_func (); below. 17463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17464 <limits.h> exists even on freestanding compilers. */ 17465 17466#ifdef __STDC__ 17467# include <limits.h> 17468#else 17469# include <assert.h> 17470#endif 17471 17472#undef $ac_func 17473 17474/* Override any GCC internal prototype to avoid an error. 17475 Use char because int might match the return type of a GCC 17476 builtin and then its argument prototype would still apply. */ 17477#ifdef __cplusplus 17478extern "C" 17479#endif 17480char $ac_func (); 17481/* The GNU C library defines this for functions which it implements 17482 to always fail with ENOSYS. Some functions are actually named 17483 something starting with __ and the normal name is an alias. */ 17484#if defined __stub_$ac_func || defined __stub___$ac_func 17485choke me 17486#endif 17487 17488int 17489main () 17490{ 17491return $ac_func (); 17492 ; 17493 return 0; 17494} 17495_ACEOF 17496rm -f conftest.$ac_objext conftest$ac_exeext 17497if { (ac_try="$ac_link" 17498case "(($ac_try" in 17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17500 *) ac_try_echo=$ac_try;; 17501esac 17502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17503 (eval "$ac_link") 2>conftest.er1 17504 ac_status=$? 17505 grep -v '^ *+' conftest.er1 >conftest.err 17506 rm -f conftest.er1 17507 cat conftest.err >&5 17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17509 (exit $ac_status); } && 17510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17511 { (case "(($ac_try" in 17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17513 *) ac_try_echo=$ac_try;; 17514esac 17515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17516 (eval "$ac_try") 2>&5 17517 ac_status=$? 17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17519 (exit $ac_status); }; } && 17520 { ac_try='test -s conftest$ac_exeext' 17521 { (case "(($ac_try" in 17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17523 *) ac_try_echo=$ac_try;; 17524esac 17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17526 (eval "$ac_try") 2>&5 17527 ac_status=$? 17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17529 (exit $ac_status); }; }; then 17530 eval "$as_ac_var=yes" 17531else 17532 echo "$as_me: failed program was:" >&5 17533sed 's/^/| /' conftest.$ac_ext >&5 17534 17535 eval "$as_ac_var=no" 17536fi 17537 17538rm -f core conftest.err conftest.$ac_objext \ 17539 conftest$ac_exeext conftest.$ac_ext 17540fi 17541ac_res=`eval echo '${'$as_ac_var'}'` 17542 { echo "$as_me:$LINENO: result: $ac_res" >&5 17543echo "${ECHO_T}$ac_res" >&6; } 17544if test `eval echo '${'$as_ac_var'}'` = yes; then 17545 cat >>confdefs.h <<_ACEOF 17546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17547_ACEOF 17548 17549fi 17550done 17551 17552 17553 17554 17555 17556 17557for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 17558do 17559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17560{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17563 echo $ECHO_N "(cached) $ECHO_C" >&6 17564else 17565 cat >conftest.$ac_ext <<_ACEOF 17566/* confdefs.h. */ 17567_ACEOF 17568cat confdefs.h >>conftest.$ac_ext 17569cat >>conftest.$ac_ext <<_ACEOF 17570/* end confdefs.h. */ 17571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17573#define $ac_func innocuous_$ac_func 17574 17575/* System header to define __stub macros and hopefully few prototypes, 17576 which can conflict with char $ac_func (); below. 17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17578 <limits.h> exists even on freestanding compilers. */ 17579 17580#ifdef __STDC__ 17581# include <limits.h> 17582#else 17583# include <assert.h> 17584#endif 17585 17586#undef $ac_func 17587 17588/* Override any GCC internal prototype to avoid an error. 17589 Use char because int might match the return type of a GCC 17590 builtin and then its argument prototype would still apply. */ 17591#ifdef __cplusplus 17592extern "C" 17593#endif 17594char $ac_func (); 17595/* The GNU C library defines this for functions which it implements 17596 to always fail with ENOSYS. Some functions are actually named 17597 something starting with __ and the normal name is an alias. */ 17598#if defined __stub_$ac_func || defined __stub___$ac_func 17599choke me 17600#endif 17601 17602int 17603main () 17604{ 17605return $ac_func (); 17606 ; 17607 return 0; 17608} 17609_ACEOF 17610rm -f conftest.$ac_objext conftest$ac_exeext 17611if { (ac_try="$ac_link" 17612case "(($ac_try" in 17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17614 *) ac_try_echo=$ac_try;; 17615esac 17616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17617 (eval "$ac_link") 2>conftest.er1 17618 ac_status=$? 17619 grep -v '^ *+' conftest.er1 >conftest.err 17620 rm -f conftest.er1 17621 cat conftest.err >&5 17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17623 (exit $ac_status); } && 17624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17625 { (case "(($ac_try" in 17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17627 *) ac_try_echo=$ac_try;; 17628esac 17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17630 (eval "$ac_try") 2>&5 17631 ac_status=$? 17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17633 (exit $ac_status); }; } && 17634 { ac_try='test -s conftest$ac_exeext' 17635 { (case "(($ac_try" in 17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17637 *) ac_try_echo=$ac_try;; 17638esac 17639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17640 (eval "$ac_try") 2>&5 17641 ac_status=$? 17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17643 (exit $ac_status); }; }; then 17644 eval "$as_ac_var=yes" 17645else 17646 echo "$as_me: failed program was:" >&5 17647sed 's/^/| /' conftest.$ac_ext >&5 17648 17649 eval "$as_ac_var=no" 17650fi 17651 17652rm -f core conftest.err conftest.$ac_objext \ 17653 conftest$ac_exeext conftest.$ac_ext 17654fi 17655ac_res=`eval echo '${'$as_ac_var'}'` 17656 { echo "$as_me:$LINENO: result: $ac_res" >&5 17657echo "${ECHO_T}$ac_res" >&6; } 17658if test `eval echo '${'$as_ac_var'}'` = yes; then 17659 cat >>confdefs.h <<_ACEOF 17660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17661_ACEOF 17662 17663fi 17664done 17665 17666{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 17667echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 17668if test "${llvm_cv_c_printf_a+set}" = set; then 17669 echo $ECHO_N "(cached) $ECHO_C" >&6 17670else 17671 ac_ext=c 17672ac_cpp='$CPP $CPPFLAGS' 17673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17675ac_compiler_gnu=$ac_cv_c_compiler_gnu 17676 17677 if test "$cross_compiling" = yes; then 17678 llvmac_cv_c_printf_a=no 17679else 17680 cat >conftest.$ac_ext <<_ACEOF 17681 17682 /* confdefs.h. */ 17683_ACEOF 17684cat confdefs.h >>conftest.$ac_ext 17685cat >>conftest.$ac_ext <<_ACEOF 17686/* end confdefs.h. */ 17687 17688#include <stdio.h> 17689#include <stdlib.h> 17690 17691int 17692main () 17693{ 17694 17695volatile double A, B; 17696char Buffer[100]; 17697A = 1; 17698A /= 10.0; 17699sprintf(Buffer, "%a", A); 17700B = atof(Buffer); 17701if (A != B) 17702 return (1); 17703if (A != 0x1.999999999999ap-4) 17704 return (1); 17705return (0); 17706 ; 17707 return 0; 17708} 17709_ACEOF 17710rm -f conftest$ac_exeext 17711if { (ac_try="$ac_link" 17712case "(($ac_try" in 17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17714 *) ac_try_echo=$ac_try;; 17715esac 17716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17717 (eval "$ac_link") 2>&5 17718 ac_status=$? 17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17721 { (case "(($ac_try" in 17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17723 *) ac_try_echo=$ac_try;; 17724esac 17725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17726 (eval "$ac_try") 2>&5 17727 ac_status=$? 17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17729 (exit $ac_status); }; }; then 17730 llvm_cv_c_printf_a=yes 17731else 17732 echo "$as_me: program exited with status $ac_status" >&5 17733echo "$as_me: failed program was:" >&5 17734sed 's/^/| /' conftest.$ac_ext >&5 17735 17736( exit $ac_status ) 17737llvmac_cv_c_printf_a=no 17738fi 17739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17740fi 17741 17742 17743 ac_ext=c 17744ac_cpp='$CPP $CPPFLAGS' 17745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17747ac_compiler_gnu=$ac_cv_c_compiler_gnu 17748 17749fi 17750{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 17751echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 17752 if test "$llvm_cv_c_printf_a" = "yes"; then 17753 17754cat >>confdefs.h <<\_ACEOF 17755#define HAVE_PRINTF_A 1 17756_ACEOF 17757 17758 fi 17759 17760 17761{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 17762echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 17763if test "${ac_cv_func_rand48+set}" = set; then 17764 echo $ECHO_N "(cached) $ECHO_C" >&6 17765else 17766 ac_ext=cpp 17767ac_cpp='$CXXCPP $CPPFLAGS' 17768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17771 17772 cat >conftest.$ac_ext <<_ACEOF 17773/* confdefs.h. */ 17774_ACEOF 17775cat confdefs.h >>conftest.$ac_ext 17776cat >>conftest.$ac_ext <<_ACEOF 17777/* end confdefs.h. */ 17778#include <stdlib.h> 17779int 17780main () 17781{ 17782srand48(0);lrand48();drand48(); 17783 ; 17784 return 0; 17785} 17786_ACEOF 17787rm -f conftest.$ac_objext 17788if { (ac_try="$ac_compile" 17789case "(($ac_try" in 17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17791 *) ac_try_echo=$ac_try;; 17792esac 17793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17794 (eval "$ac_compile") 2>conftest.er1 17795 ac_status=$? 17796 grep -v '^ *+' conftest.er1 >conftest.err 17797 rm -f conftest.er1 17798 cat conftest.err >&5 17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17800 (exit $ac_status); } && 17801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17802 { (case "(($ac_try" in 17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17804 *) ac_try_echo=$ac_try;; 17805esac 17806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17807 (eval "$ac_try") 2>&5 17808 ac_status=$? 17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17810 (exit $ac_status); }; } && 17811 { ac_try='test -s conftest.$ac_objext' 17812 { (case "(($ac_try" in 17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17814 *) ac_try_echo=$ac_try;; 17815esac 17816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17817 (eval "$ac_try") 2>&5 17818 ac_status=$? 17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17820 (exit $ac_status); }; }; then 17821 ac_cv_func_rand48=yes 17822else 17823 echo "$as_me: failed program was:" >&5 17824sed 's/^/| /' conftest.$ac_ext >&5 17825 17826 ac_cv_func_rand48=no 17827fi 17828 17829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17830 ac_ext=c 17831ac_cpp='$CPP $CPPFLAGS' 17832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17834ac_compiler_gnu=$ac_cv_c_compiler_gnu 17835 17836fi 17837{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 17838echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 17839 17840if test "$ac_cv_func_rand48" = "yes" ; then 17841 17842cat >>confdefs.h <<\_ACEOF 17843#define HAVE_RAND48 1 17844_ACEOF 17845 17846fi 17847 17848 17849{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 17850echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 17851if test "${ac_cv_have_decl_strerror_s+set}" = set; then 17852 echo $ECHO_N "(cached) $ECHO_C" >&6 17853else 17854 cat >conftest.$ac_ext <<_ACEOF 17855/* confdefs.h. */ 17856_ACEOF 17857cat confdefs.h >>conftest.$ac_ext 17858cat >>conftest.$ac_ext <<_ACEOF 17859/* end confdefs.h. */ 17860$ac_includes_default 17861int 17862main () 17863{ 17864#ifndef strerror_s 17865 char *p = (char *) strerror_s; 17866 return !p; 17867#endif 17868 17869 ; 17870 return 0; 17871} 17872_ACEOF 17873rm -f conftest.$ac_objext 17874if { (ac_try="$ac_compile" 17875case "(($ac_try" in 17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17877 *) ac_try_echo=$ac_try;; 17878esac 17879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17880 (eval "$ac_compile") 2>conftest.er1 17881 ac_status=$? 17882 grep -v '^ *+' conftest.er1 >conftest.err 17883 rm -f conftest.er1 17884 cat conftest.err >&5 17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17886 (exit $ac_status); } && 17887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17888 { (case "(($ac_try" in 17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17890 *) ac_try_echo=$ac_try;; 17891esac 17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17893 (eval "$ac_try") 2>&5 17894 ac_status=$? 17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17896 (exit $ac_status); }; } && 17897 { ac_try='test -s conftest.$ac_objext' 17898 { (case "(($ac_try" in 17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17900 *) ac_try_echo=$ac_try;; 17901esac 17902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17903 (eval "$ac_try") 2>&5 17904 ac_status=$? 17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17906 (exit $ac_status); }; }; then 17907 ac_cv_have_decl_strerror_s=yes 17908else 17909 echo "$as_me: failed program was:" >&5 17910sed 's/^/| /' conftest.$ac_ext >&5 17911 17912 ac_cv_have_decl_strerror_s=no 17913fi 17914 17915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17916fi 17917{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 17918echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 17919if test $ac_cv_have_decl_strerror_s = yes; then 17920 17921cat >>confdefs.h <<_ACEOF 17922#define HAVE_DECL_STRERROR_S 1 17923_ACEOF 17924 17925 17926else 17927 cat >>confdefs.h <<_ACEOF 17928#define HAVE_DECL_STRERROR_S 0 17929_ACEOF 17930 17931 17932fi 17933 17934 17935 17936if test "$llvm_cv_os_type" = "MingW" ; then 17937 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 17938echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 17939if test "${ac_cv_lib_gcc__alloca+set}" = set; then 17940 echo $ECHO_N "(cached) $ECHO_C" >&6 17941else 17942 ac_check_lib_save_LIBS=$LIBS 17943LIBS="-lgcc $LIBS" 17944cat >conftest.$ac_ext <<_ACEOF 17945/* confdefs.h. */ 17946_ACEOF 17947cat confdefs.h >>conftest.$ac_ext 17948cat >>conftest.$ac_ext <<_ACEOF 17949/* end confdefs.h. */ 17950 17951/* Override any GCC internal prototype to avoid an error. 17952 Use char because int might match the return type of a GCC 17953 builtin and then its argument prototype would still apply. */ 17954#ifdef __cplusplus 17955extern "C" 17956#endif 17957char _alloca (); 17958int 17959main () 17960{ 17961return _alloca (); 17962 ; 17963 return 0; 17964} 17965_ACEOF 17966rm -f conftest.$ac_objext conftest$ac_exeext 17967if { (ac_try="$ac_link" 17968case "(($ac_try" in 17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17970 *) ac_try_echo=$ac_try;; 17971esac 17972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17973 (eval "$ac_link") 2>conftest.er1 17974 ac_status=$? 17975 grep -v '^ *+' conftest.er1 >conftest.err 17976 rm -f conftest.er1 17977 cat conftest.err >&5 17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17979 (exit $ac_status); } && 17980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17981 { (case "(($ac_try" in 17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17983 *) ac_try_echo=$ac_try;; 17984esac 17985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17986 (eval "$ac_try") 2>&5 17987 ac_status=$? 17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17989 (exit $ac_status); }; } && 17990 { ac_try='test -s conftest$ac_exeext' 17991 { (case "(($ac_try" in 17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17993 *) ac_try_echo=$ac_try;; 17994esac 17995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17996 (eval "$ac_try") 2>&5 17997 ac_status=$? 17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17999 (exit $ac_status); }; }; then 18000 ac_cv_lib_gcc__alloca=yes 18001else 18002 echo "$as_me: failed program was:" >&5 18003sed 's/^/| /' conftest.$ac_ext >&5 18004 18005 ac_cv_lib_gcc__alloca=no 18006fi 18007 18008rm -f core conftest.err conftest.$ac_objext \ 18009 conftest$ac_exeext conftest.$ac_ext 18010LIBS=$ac_check_lib_save_LIBS 18011fi 18012{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 18013echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 18014if test $ac_cv_lib_gcc__alloca = yes; then 18015 18016cat >>confdefs.h <<\_ACEOF 18017#define HAVE__ALLOCA 1 18018_ACEOF 18019 18020fi 18021 18022 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 18023echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 18024if test "${ac_cv_lib_gcc___alloca+set}" = set; then 18025 echo $ECHO_N "(cached) $ECHO_C" >&6 18026else 18027 ac_check_lib_save_LIBS=$LIBS 18028LIBS="-lgcc $LIBS" 18029cat >conftest.$ac_ext <<_ACEOF 18030/* confdefs.h. */ 18031_ACEOF 18032cat confdefs.h >>conftest.$ac_ext 18033cat >>conftest.$ac_ext <<_ACEOF 18034/* end confdefs.h. */ 18035 18036/* Override any GCC internal prototype to avoid an error. 18037 Use char because int might match the return type of a GCC 18038 builtin and then its argument prototype would still apply. */ 18039#ifdef __cplusplus 18040extern "C" 18041#endif 18042char __alloca (); 18043int 18044main () 18045{ 18046return __alloca (); 18047 ; 18048 return 0; 18049} 18050_ACEOF 18051rm -f conftest.$ac_objext conftest$ac_exeext 18052if { (ac_try="$ac_link" 18053case "(($ac_try" in 18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18055 *) ac_try_echo=$ac_try;; 18056esac 18057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18058 (eval "$ac_link") 2>conftest.er1 18059 ac_status=$? 18060 grep -v '^ *+' conftest.er1 >conftest.err 18061 rm -f conftest.er1 18062 cat conftest.err >&5 18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18064 (exit $ac_status); } && 18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18066 { (case "(($ac_try" in 18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18068 *) ac_try_echo=$ac_try;; 18069esac 18070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18071 (eval "$ac_try") 2>&5 18072 ac_status=$? 18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18074 (exit $ac_status); }; } && 18075 { ac_try='test -s conftest$ac_exeext' 18076 { (case "(($ac_try" in 18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18078 *) ac_try_echo=$ac_try;; 18079esac 18080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18081 (eval "$ac_try") 2>&5 18082 ac_status=$? 18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18084 (exit $ac_status); }; }; then 18085 ac_cv_lib_gcc___alloca=yes 18086else 18087 echo "$as_me: failed program was:" >&5 18088sed 's/^/| /' conftest.$ac_ext >&5 18089 18090 ac_cv_lib_gcc___alloca=no 18091fi 18092 18093rm -f core conftest.err conftest.$ac_objext \ 18094 conftest$ac_exeext conftest.$ac_ext 18095LIBS=$ac_check_lib_save_LIBS 18096fi 18097{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 18098echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 18099if test $ac_cv_lib_gcc___alloca = yes; then 18100 18101cat >>confdefs.h <<\_ACEOF 18102#define HAVE___ALLOCA 1 18103_ACEOF 18104 18105fi 18106 18107 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 18108echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 18109if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 18110 echo $ECHO_N "(cached) $ECHO_C" >&6 18111else 18112 ac_check_lib_save_LIBS=$LIBS 18113LIBS="-lgcc $LIBS" 18114cat >conftest.$ac_ext <<_ACEOF 18115/* confdefs.h. */ 18116_ACEOF 18117cat confdefs.h >>conftest.$ac_ext 18118cat >>conftest.$ac_ext <<_ACEOF 18119/* end confdefs.h. */ 18120 18121/* Override any GCC internal prototype to avoid an error. 18122 Use char because int might match the return type of a GCC 18123 builtin and then its argument prototype would still apply. */ 18124#ifdef __cplusplus 18125extern "C" 18126#endif 18127char __chkstk (); 18128int 18129main () 18130{ 18131return __chkstk (); 18132 ; 18133 return 0; 18134} 18135_ACEOF 18136rm -f conftest.$ac_objext conftest$ac_exeext 18137if { (ac_try="$ac_link" 18138case "(($ac_try" in 18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18140 *) ac_try_echo=$ac_try;; 18141esac 18142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18143 (eval "$ac_link") 2>conftest.er1 18144 ac_status=$? 18145 grep -v '^ *+' conftest.er1 >conftest.err 18146 rm -f conftest.er1 18147 cat conftest.err >&5 18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18149 (exit $ac_status); } && 18150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18151 { (case "(($ac_try" in 18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18153 *) ac_try_echo=$ac_try;; 18154esac 18155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18156 (eval "$ac_try") 2>&5 18157 ac_status=$? 18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18159 (exit $ac_status); }; } && 18160 { ac_try='test -s conftest$ac_exeext' 18161 { (case "(($ac_try" in 18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18163 *) ac_try_echo=$ac_try;; 18164esac 18165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18166 (eval "$ac_try") 2>&5 18167 ac_status=$? 18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18169 (exit $ac_status); }; }; then 18170 ac_cv_lib_gcc___chkstk=yes 18171else 18172 echo "$as_me: failed program was:" >&5 18173sed 's/^/| /' conftest.$ac_ext >&5 18174 18175 ac_cv_lib_gcc___chkstk=no 18176fi 18177 18178rm -f core conftest.err conftest.$ac_objext \ 18179 conftest$ac_exeext conftest.$ac_ext 18180LIBS=$ac_check_lib_save_LIBS 18181fi 18182{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 18183echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 18184if test $ac_cv_lib_gcc___chkstk = yes; then 18185 18186cat >>confdefs.h <<\_ACEOF 18187#define HAVE___CHKSTK 1 18188_ACEOF 18189 18190fi 18191 18192 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 18193echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 18194if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 18195 echo $ECHO_N "(cached) $ECHO_C" >&6 18196else 18197 ac_check_lib_save_LIBS=$LIBS 18198LIBS="-lgcc $LIBS" 18199cat >conftest.$ac_ext <<_ACEOF 18200/* confdefs.h. */ 18201_ACEOF 18202cat confdefs.h >>conftest.$ac_ext 18203cat >>conftest.$ac_ext <<_ACEOF 18204/* end confdefs.h. */ 18205 18206/* Override any GCC internal prototype to avoid an error. 18207 Use char because int might match the return type of a GCC 18208 builtin and then its argument prototype would still apply. */ 18209#ifdef __cplusplus 18210extern "C" 18211#endif 18212char ___chkstk (); 18213int 18214main () 18215{ 18216return ___chkstk (); 18217 ; 18218 return 0; 18219} 18220_ACEOF 18221rm -f conftest.$ac_objext conftest$ac_exeext 18222if { (ac_try="$ac_link" 18223case "(($ac_try" in 18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18225 *) ac_try_echo=$ac_try;; 18226esac 18227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18228 (eval "$ac_link") 2>conftest.er1 18229 ac_status=$? 18230 grep -v '^ *+' conftest.er1 >conftest.err 18231 rm -f conftest.er1 18232 cat conftest.err >&5 18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18234 (exit $ac_status); } && 18235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18236 { (case "(($ac_try" in 18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18238 *) ac_try_echo=$ac_try;; 18239esac 18240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18241 (eval "$ac_try") 2>&5 18242 ac_status=$? 18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18244 (exit $ac_status); }; } && 18245 { ac_try='test -s conftest$ac_exeext' 18246 { (case "(($ac_try" in 18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18248 *) ac_try_echo=$ac_try;; 18249esac 18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18251 (eval "$ac_try") 2>&5 18252 ac_status=$? 18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18254 (exit $ac_status); }; }; then 18255 ac_cv_lib_gcc____chkstk=yes 18256else 18257 echo "$as_me: failed program was:" >&5 18258sed 's/^/| /' conftest.$ac_ext >&5 18259 18260 ac_cv_lib_gcc____chkstk=no 18261fi 18262 18263rm -f core conftest.err conftest.$ac_objext \ 18264 conftest$ac_exeext conftest.$ac_ext 18265LIBS=$ac_check_lib_save_LIBS 18266fi 18267{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18268echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18269if test $ac_cv_lib_gcc____chkstk = yes; then 18270 18271cat >>confdefs.h <<\_ACEOF 18272#define HAVE____CHKSTK 1 18273_ACEOF 18274 18275fi 18276 18277 18278 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18279echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18280if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18281 echo $ECHO_N "(cached) $ECHO_C" >&6 18282else 18283 ac_check_lib_save_LIBS=$LIBS 18284LIBS="-lgcc $LIBS" 18285cat >conftest.$ac_ext <<_ACEOF 18286/* confdefs.h. */ 18287_ACEOF 18288cat confdefs.h >>conftest.$ac_ext 18289cat >>conftest.$ac_ext <<_ACEOF 18290/* end confdefs.h. */ 18291 18292/* Override any GCC internal prototype to avoid an error. 18293 Use char because int might match the return type of a GCC 18294 builtin and then its argument prototype would still apply. */ 18295#ifdef __cplusplus 18296extern "C" 18297#endif 18298char __ashldi3 (); 18299int 18300main () 18301{ 18302return __ashldi3 (); 18303 ; 18304 return 0; 18305} 18306_ACEOF 18307rm -f conftest.$ac_objext conftest$ac_exeext 18308if { (ac_try="$ac_link" 18309case "(($ac_try" in 18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18311 *) ac_try_echo=$ac_try;; 18312esac 18313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18314 (eval "$ac_link") 2>conftest.er1 18315 ac_status=$? 18316 grep -v '^ *+' conftest.er1 >conftest.err 18317 rm -f conftest.er1 18318 cat conftest.err >&5 18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18320 (exit $ac_status); } && 18321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18322 { (case "(($ac_try" in 18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18324 *) ac_try_echo=$ac_try;; 18325esac 18326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18327 (eval "$ac_try") 2>&5 18328 ac_status=$? 18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18330 (exit $ac_status); }; } && 18331 { ac_try='test -s conftest$ac_exeext' 18332 { (case "(($ac_try" in 18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18334 *) ac_try_echo=$ac_try;; 18335esac 18336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18337 (eval "$ac_try") 2>&5 18338 ac_status=$? 18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18340 (exit $ac_status); }; }; then 18341 ac_cv_lib_gcc___ashldi3=yes 18342else 18343 echo "$as_me: failed program was:" >&5 18344sed 's/^/| /' conftest.$ac_ext >&5 18345 18346 ac_cv_lib_gcc___ashldi3=no 18347fi 18348 18349rm -f core conftest.err conftest.$ac_objext \ 18350 conftest$ac_exeext conftest.$ac_ext 18351LIBS=$ac_check_lib_save_LIBS 18352fi 18353{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18354echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18355if test $ac_cv_lib_gcc___ashldi3 = yes; then 18356 18357cat >>confdefs.h <<\_ACEOF 18358#define HAVE___ASHLDI3 1 18359_ACEOF 18360 18361fi 18362 18363 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18364echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18365if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18366 echo $ECHO_N "(cached) $ECHO_C" >&6 18367else 18368 ac_check_lib_save_LIBS=$LIBS 18369LIBS="-lgcc $LIBS" 18370cat >conftest.$ac_ext <<_ACEOF 18371/* confdefs.h. */ 18372_ACEOF 18373cat confdefs.h >>conftest.$ac_ext 18374cat >>conftest.$ac_ext <<_ACEOF 18375/* end confdefs.h. */ 18376 18377/* Override any GCC internal prototype to avoid an error. 18378 Use char because int might match the return type of a GCC 18379 builtin and then its argument prototype would still apply. */ 18380#ifdef __cplusplus 18381extern "C" 18382#endif 18383char __ashrdi3 (); 18384int 18385main () 18386{ 18387return __ashrdi3 (); 18388 ; 18389 return 0; 18390} 18391_ACEOF 18392rm -f conftest.$ac_objext conftest$ac_exeext 18393if { (ac_try="$ac_link" 18394case "(($ac_try" in 18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18396 *) ac_try_echo=$ac_try;; 18397esac 18398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18399 (eval "$ac_link") 2>conftest.er1 18400 ac_status=$? 18401 grep -v '^ *+' conftest.er1 >conftest.err 18402 rm -f conftest.er1 18403 cat conftest.err >&5 18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18405 (exit $ac_status); } && 18406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18407 { (case "(($ac_try" in 18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18409 *) ac_try_echo=$ac_try;; 18410esac 18411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18412 (eval "$ac_try") 2>&5 18413 ac_status=$? 18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18415 (exit $ac_status); }; } && 18416 { ac_try='test -s conftest$ac_exeext' 18417 { (case "(($ac_try" in 18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18419 *) ac_try_echo=$ac_try;; 18420esac 18421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18422 (eval "$ac_try") 2>&5 18423 ac_status=$? 18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18425 (exit $ac_status); }; }; then 18426 ac_cv_lib_gcc___ashrdi3=yes 18427else 18428 echo "$as_me: failed program was:" >&5 18429sed 's/^/| /' conftest.$ac_ext >&5 18430 18431 ac_cv_lib_gcc___ashrdi3=no 18432fi 18433 18434rm -f core conftest.err conftest.$ac_objext \ 18435 conftest$ac_exeext conftest.$ac_ext 18436LIBS=$ac_check_lib_save_LIBS 18437fi 18438{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18439echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18440if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18441 18442cat >>confdefs.h <<\_ACEOF 18443#define HAVE___ASHRDI3 1 18444_ACEOF 18445 18446fi 18447 18448 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18449echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18450if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18451 echo $ECHO_N "(cached) $ECHO_C" >&6 18452else 18453 ac_check_lib_save_LIBS=$LIBS 18454LIBS="-lgcc $LIBS" 18455cat >conftest.$ac_ext <<_ACEOF 18456/* confdefs.h. */ 18457_ACEOF 18458cat confdefs.h >>conftest.$ac_ext 18459cat >>conftest.$ac_ext <<_ACEOF 18460/* end confdefs.h. */ 18461 18462/* Override any GCC internal prototype to avoid an error. 18463 Use char because int might match the return type of a GCC 18464 builtin and then its argument prototype would still apply. */ 18465#ifdef __cplusplus 18466extern "C" 18467#endif 18468char __divdi3 (); 18469int 18470main () 18471{ 18472return __divdi3 (); 18473 ; 18474 return 0; 18475} 18476_ACEOF 18477rm -f conftest.$ac_objext conftest$ac_exeext 18478if { (ac_try="$ac_link" 18479case "(($ac_try" in 18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18481 *) ac_try_echo=$ac_try;; 18482esac 18483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18484 (eval "$ac_link") 2>conftest.er1 18485 ac_status=$? 18486 grep -v '^ *+' conftest.er1 >conftest.err 18487 rm -f conftest.er1 18488 cat conftest.err >&5 18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18490 (exit $ac_status); } && 18491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18492 { (case "(($ac_try" in 18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18494 *) ac_try_echo=$ac_try;; 18495esac 18496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18497 (eval "$ac_try") 2>&5 18498 ac_status=$? 18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18500 (exit $ac_status); }; } && 18501 { ac_try='test -s conftest$ac_exeext' 18502 { (case "(($ac_try" in 18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18504 *) ac_try_echo=$ac_try;; 18505esac 18506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18507 (eval "$ac_try") 2>&5 18508 ac_status=$? 18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18510 (exit $ac_status); }; }; then 18511 ac_cv_lib_gcc___divdi3=yes 18512else 18513 echo "$as_me: failed program was:" >&5 18514sed 's/^/| /' conftest.$ac_ext >&5 18515 18516 ac_cv_lib_gcc___divdi3=no 18517fi 18518 18519rm -f core conftest.err conftest.$ac_objext \ 18520 conftest$ac_exeext conftest.$ac_ext 18521LIBS=$ac_check_lib_save_LIBS 18522fi 18523{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 18524echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 18525if test $ac_cv_lib_gcc___divdi3 = yes; then 18526 18527cat >>confdefs.h <<\_ACEOF 18528#define HAVE___DIVDI3 1 18529_ACEOF 18530 18531fi 18532 18533 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 18534echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 18535if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 18536 echo $ECHO_N "(cached) $ECHO_C" >&6 18537else 18538 ac_check_lib_save_LIBS=$LIBS 18539LIBS="-lgcc $LIBS" 18540cat >conftest.$ac_ext <<_ACEOF 18541/* confdefs.h. */ 18542_ACEOF 18543cat confdefs.h >>conftest.$ac_ext 18544cat >>conftest.$ac_ext <<_ACEOF 18545/* end confdefs.h. */ 18546 18547/* Override any GCC internal prototype to avoid an error. 18548 Use char because int might match the return type of a GCC 18549 builtin and then its argument prototype would still apply. */ 18550#ifdef __cplusplus 18551extern "C" 18552#endif 18553char __fixdfdi (); 18554int 18555main () 18556{ 18557return __fixdfdi (); 18558 ; 18559 return 0; 18560} 18561_ACEOF 18562rm -f conftest.$ac_objext conftest$ac_exeext 18563if { (ac_try="$ac_link" 18564case "(($ac_try" in 18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18566 *) ac_try_echo=$ac_try;; 18567esac 18568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18569 (eval "$ac_link") 2>conftest.er1 18570 ac_status=$? 18571 grep -v '^ *+' conftest.er1 >conftest.err 18572 rm -f conftest.er1 18573 cat conftest.err >&5 18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18575 (exit $ac_status); } && 18576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18577 { (case "(($ac_try" in 18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18579 *) ac_try_echo=$ac_try;; 18580esac 18581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18582 (eval "$ac_try") 2>&5 18583 ac_status=$? 18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18585 (exit $ac_status); }; } && 18586 { ac_try='test -s conftest$ac_exeext' 18587 { (case "(($ac_try" in 18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18589 *) ac_try_echo=$ac_try;; 18590esac 18591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18592 (eval "$ac_try") 2>&5 18593 ac_status=$? 18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18595 (exit $ac_status); }; }; then 18596 ac_cv_lib_gcc___fixdfdi=yes 18597else 18598 echo "$as_me: failed program was:" >&5 18599sed 's/^/| /' conftest.$ac_ext >&5 18600 18601 ac_cv_lib_gcc___fixdfdi=no 18602fi 18603 18604rm -f core conftest.err conftest.$ac_objext \ 18605 conftest$ac_exeext conftest.$ac_ext 18606LIBS=$ac_check_lib_save_LIBS 18607fi 18608{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 18609echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 18610if test $ac_cv_lib_gcc___fixdfdi = yes; then 18611 18612cat >>confdefs.h <<\_ACEOF 18613#define HAVE___FIXDFDI 1 18614_ACEOF 18615 18616fi 18617 18618 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 18619echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 18620if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 18621 echo $ECHO_N "(cached) $ECHO_C" >&6 18622else 18623 ac_check_lib_save_LIBS=$LIBS 18624LIBS="-lgcc $LIBS" 18625cat >conftest.$ac_ext <<_ACEOF 18626/* confdefs.h. */ 18627_ACEOF 18628cat confdefs.h >>conftest.$ac_ext 18629cat >>conftest.$ac_ext <<_ACEOF 18630/* end confdefs.h. */ 18631 18632/* Override any GCC internal prototype to avoid an error. 18633 Use char because int might match the return type of a GCC 18634 builtin and then its argument prototype would still apply. */ 18635#ifdef __cplusplus 18636extern "C" 18637#endif 18638char __fixsfdi (); 18639int 18640main () 18641{ 18642return __fixsfdi (); 18643 ; 18644 return 0; 18645} 18646_ACEOF 18647rm -f conftest.$ac_objext conftest$ac_exeext 18648if { (ac_try="$ac_link" 18649case "(($ac_try" in 18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18651 *) ac_try_echo=$ac_try;; 18652esac 18653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18654 (eval "$ac_link") 2>conftest.er1 18655 ac_status=$? 18656 grep -v '^ *+' conftest.er1 >conftest.err 18657 rm -f conftest.er1 18658 cat conftest.err >&5 18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18660 (exit $ac_status); } && 18661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18662 { (case "(($ac_try" in 18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18664 *) ac_try_echo=$ac_try;; 18665esac 18666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18667 (eval "$ac_try") 2>&5 18668 ac_status=$? 18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18670 (exit $ac_status); }; } && 18671 { ac_try='test -s conftest$ac_exeext' 18672 { (case "(($ac_try" in 18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18674 *) ac_try_echo=$ac_try;; 18675esac 18676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18677 (eval "$ac_try") 2>&5 18678 ac_status=$? 18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18680 (exit $ac_status); }; }; then 18681 ac_cv_lib_gcc___fixsfdi=yes 18682else 18683 echo "$as_me: failed program was:" >&5 18684sed 's/^/| /' conftest.$ac_ext >&5 18685 18686 ac_cv_lib_gcc___fixsfdi=no 18687fi 18688 18689rm -f core conftest.err conftest.$ac_objext \ 18690 conftest$ac_exeext conftest.$ac_ext 18691LIBS=$ac_check_lib_save_LIBS 18692fi 18693{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 18694echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 18695if test $ac_cv_lib_gcc___fixsfdi = yes; then 18696 18697cat >>confdefs.h <<\_ACEOF 18698#define HAVE___FIXSFDI 1 18699_ACEOF 18700 18701fi 18702 18703 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 18704echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 18705if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 18706 echo $ECHO_N "(cached) $ECHO_C" >&6 18707else 18708 ac_check_lib_save_LIBS=$LIBS 18709LIBS="-lgcc $LIBS" 18710cat >conftest.$ac_ext <<_ACEOF 18711/* confdefs.h. */ 18712_ACEOF 18713cat confdefs.h >>conftest.$ac_ext 18714cat >>conftest.$ac_ext <<_ACEOF 18715/* end confdefs.h. */ 18716 18717/* Override any GCC internal prototype to avoid an error. 18718 Use char because int might match the return type of a GCC 18719 builtin and then its argument prototype would still apply. */ 18720#ifdef __cplusplus 18721extern "C" 18722#endif 18723char __floatdidf (); 18724int 18725main () 18726{ 18727return __floatdidf (); 18728 ; 18729 return 0; 18730} 18731_ACEOF 18732rm -f conftest.$ac_objext conftest$ac_exeext 18733if { (ac_try="$ac_link" 18734case "(($ac_try" in 18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18736 *) ac_try_echo=$ac_try;; 18737esac 18738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18739 (eval "$ac_link") 2>conftest.er1 18740 ac_status=$? 18741 grep -v '^ *+' conftest.er1 >conftest.err 18742 rm -f conftest.er1 18743 cat conftest.err >&5 18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18745 (exit $ac_status); } && 18746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18747 { (case "(($ac_try" in 18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18749 *) ac_try_echo=$ac_try;; 18750esac 18751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18752 (eval "$ac_try") 2>&5 18753 ac_status=$? 18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18755 (exit $ac_status); }; } && 18756 { ac_try='test -s conftest$ac_exeext' 18757 { (case "(($ac_try" in 18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18759 *) ac_try_echo=$ac_try;; 18760esac 18761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18762 (eval "$ac_try") 2>&5 18763 ac_status=$? 18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18765 (exit $ac_status); }; }; then 18766 ac_cv_lib_gcc___floatdidf=yes 18767else 18768 echo "$as_me: failed program was:" >&5 18769sed 's/^/| /' conftest.$ac_ext >&5 18770 18771 ac_cv_lib_gcc___floatdidf=no 18772fi 18773 18774rm -f core conftest.err conftest.$ac_objext \ 18775 conftest$ac_exeext conftest.$ac_ext 18776LIBS=$ac_check_lib_save_LIBS 18777fi 18778{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 18779echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 18780if test $ac_cv_lib_gcc___floatdidf = yes; then 18781 18782cat >>confdefs.h <<\_ACEOF 18783#define HAVE___FLOATDIDF 1 18784_ACEOF 18785 18786fi 18787 18788 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 18789echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 18790if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 18791 echo $ECHO_N "(cached) $ECHO_C" >&6 18792else 18793 ac_check_lib_save_LIBS=$LIBS 18794LIBS="-lgcc $LIBS" 18795cat >conftest.$ac_ext <<_ACEOF 18796/* confdefs.h. */ 18797_ACEOF 18798cat confdefs.h >>conftest.$ac_ext 18799cat >>conftest.$ac_ext <<_ACEOF 18800/* end confdefs.h. */ 18801 18802/* Override any GCC internal prototype to avoid an error. 18803 Use char because int might match the return type of a GCC 18804 builtin and then its argument prototype would still apply. */ 18805#ifdef __cplusplus 18806extern "C" 18807#endif 18808char __lshrdi3 (); 18809int 18810main () 18811{ 18812return __lshrdi3 (); 18813 ; 18814 return 0; 18815} 18816_ACEOF 18817rm -f conftest.$ac_objext conftest$ac_exeext 18818if { (ac_try="$ac_link" 18819case "(($ac_try" in 18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18821 *) ac_try_echo=$ac_try;; 18822esac 18823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18824 (eval "$ac_link") 2>conftest.er1 18825 ac_status=$? 18826 grep -v '^ *+' conftest.er1 >conftest.err 18827 rm -f conftest.er1 18828 cat conftest.err >&5 18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18830 (exit $ac_status); } && 18831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18832 { (case "(($ac_try" in 18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18834 *) ac_try_echo=$ac_try;; 18835esac 18836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18837 (eval "$ac_try") 2>&5 18838 ac_status=$? 18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18840 (exit $ac_status); }; } && 18841 { ac_try='test -s conftest$ac_exeext' 18842 { (case "(($ac_try" in 18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18844 *) ac_try_echo=$ac_try;; 18845esac 18846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18847 (eval "$ac_try") 2>&5 18848 ac_status=$? 18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18850 (exit $ac_status); }; }; then 18851 ac_cv_lib_gcc___lshrdi3=yes 18852else 18853 echo "$as_me: failed program was:" >&5 18854sed 's/^/| /' conftest.$ac_ext >&5 18855 18856 ac_cv_lib_gcc___lshrdi3=no 18857fi 18858 18859rm -f core conftest.err conftest.$ac_objext \ 18860 conftest$ac_exeext conftest.$ac_ext 18861LIBS=$ac_check_lib_save_LIBS 18862fi 18863{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 18864echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 18865if test $ac_cv_lib_gcc___lshrdi3 = yes; then 18866 18867cat >>confdefs.h <<\_ACEOF 18868#define HAVE___LSHRDI3 1 18869_ACEOF 18870 18871fi 18872 18873 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 18874echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 18875if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 18876 echo $ECHO_N "(cached) $ECHO_C" >&6 18877else 18878 ac_check_lib_save_LIBS=$LIBS 18879LIBS="-lgcc $LIBS" 18880cat >conftest.$ac_ext <<_ACEOF 18881/* confdefs.h. */ 18882_ACEOF 18883cat confdefs.h >>conftest.$ac_ext 18884cat >>conftest.$ac_ext <<_ACEOF 18885/* end confdefs.h. */ 18886 18887/* Override any GCC internal prototype to avoid an error. 18888 Use char because int might match the return type of a GCC 18889 builtin and then its argument prototype would still apply. */ 18890#ifdef __cplusplus 18891extern "C" 18892#endif 18893char __moddi3 (); 18894int 18895main () 18896{ 18897return __moddi3 (); 18898 ; 18899 return 0; 18900} 18901_ACEOF 18902rm -f conftest.$ac_objext conftest$ac_exeext 18903if { (ac_try="$ac_link" 18904case "(($ac_try" in 18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18906 *) ac_try_echo=$ac_try;; 18907esac 18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18909 (eval "$ac_link") 2>conftest.er1 18910 ac_status=$? 18911 grep -v '^ *+' conftest.er1 >conftest.err 18912 rm -f conftest.er1 18913 cat conftest.err >&5 18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18915 (exit $ac_status); } && 18916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18917 { (case "(($ac_try" in 18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18919 *) ac_try_echo=$ac_try;; 18920esac 18921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18922 (eval "$ac_try") 2>&5 18923 ac_status=$? 18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18925 (exit $ac_status); }; } && 18926 { ac_try='test -s conftest$ac_exeext' 18927 { (case "(($ac_try" in 18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18929 *) ac_try_echo=$ac_try;; 18930esac 18931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18932 (eval "$ac_try") 2>&5 18933 ac_status=$? 18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18935 (exit $ac_status); }; }; then 18936 ac_cv_lib_gcc___moddi3=yes 18937else 18938 echo "$as_me: failed program was:" >&5 18939sed 's/^/| /' conftest.$ac_ext >&5 18940 18941 ac_cv_lib_gcc___moddi3=no 18942fi 18943 18944rm -f core conftest.err conftest.$ac_objext \ 18945 conftest$ac_exeext conftest.$ac_ext 18946LIBS=$ac_check_lib_save_LIBS 18947fi 18948{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 18949echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 18950if test $ac_cv_lib_gcc___moddi3 = yes; then 18951 18952cat >>confdefs.h <<\_ACEOF 18953#define HAVE___MODDI3 1 18954_ACEOF 18955 18956fi 18957 18958 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 18959echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 18960if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 18961 echo $ECHO_N "(cached) $ECHO_C" >&6 18962else 18963 ac_check_lib_save_LIBS=$LIBS 18964LIBS="-lgcc $LIBS" 18965cat >conftest.$ac_ext <<_ACEOF 18966/* confdefs.h. */ 18967_ACEOF 18968cat confdefs.h >>conftest.$ac_ext 18969cat >>conftest.$ac_ext <<_ACEOF 18970/* end confdefs.h. */ 18971 18972/* Override any GCC internal prototype to avoid an error. 18973 Use char because int might match the return type of a GCC 18974 builtin and then its argument prototype would still apply. */ 18975#ifdef __cplusplus 18976extern "C" 18977#endif 18978char __udivdi3 (); 18979int 18980main () 18981{ 18982return __udivdi3 (); 18983 ; 18984 return 0; 18985} 18986_ACEOF 18987rm -f conftest.$ac_objext conftest$ac_exeext 18988if { (ac_try="$ac_link" 18989case "(($ac_try" in 18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18991 *) ac_try_echo=$ac_try;; 18992esac 18993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18994 (eval "$ac_link") 2>conftest.er1 18995 ac_status=$? 18996 grep -v '^ *+' conftest.er1 >conftest.err 18997 rm -f conftest.er1 18998 cat conftest.err >&5 18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19000 (exit $ac_status); } && 19001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19002 { (case "(($ac_try" in 19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19004 *) ac_try_echo=$ac_try;; 19005esac 19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19007 (eval "$ac_try") 2>&5 19008 ac_status=$? 19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19010 (exit $ac_status); }; } && 19011 { ac_try='test -s conftest$ac_exeext' 19012 { (case "(($ac_try" in 19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19014 *) ac_try_echo=$ac_try;; 19015esac 19016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19017 (eval "$ac_try") 2>&5 19018 ac_status=$? 19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19020 (exit $ac_status); }; }; then 19021 ac_cv_lib_gcc___udivdi3=yes 19022else 19023 echo "$as_me: failed program was:" >&5 19024sed 's/^/| /' conftest.$ac_ext >&5 19025 19026 ac_cv_lib_gcc___udivdi3=no 19027fi 19028 19029rm -f core conftest.err conftest.$ac_objext \ 19030 conftest$ac_exeext conftest.$ac_ext 19031LIBS=$ac_check_lib_save_LIBS 19032fi 19033{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 19034echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 19035if test $ac_cv_lib_gcc___udivdi3 = yes; then 19036 19037cat >>confdefs.h <<\_ACEOF 19038#define HAVE___UDIVDI3 1 19039_ACEOF 19040 19041fi 19042 19043 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 19044echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 19045if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 19046 echo $ECHO_N "(cached) $ECHO_C" >&6 19047else 19048 ac_check_lib_save_LIBS=$LIBS 19049LIBS="-lgcc $LIBS" 19050cat >conftest.$ac_ext <<_ACEOF 19051/* confdefs.h. */ 19052_ACEOF 19053cat confdefs.h >>conftest.$ac_ext 19054cat >>conftest.$ac_ext <<_ACEOF 19055/* end confdefs.h. */ 19056 19057/* Override any GCC internal prototype to avoid an error. 19058 Use char because int might match the return type of a GCC 19059 builtin and then its argument prototype would still apply. */ 19060#ifdef __cplusplus 19061extern "C" 19062#endif 19063char __umoddi3 (); 19064int 19065main () 19066{ 19067return __umoddi3 (); 19068 ; 19069 return 0; 19070} 19071_ACEOF 19072rm -f conftest.$ac_objext conftest$ac_exeext 19073if { (ac_try="$ac_link" 19074case "(($ac_try" in 19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19076 *) ac_try_echo=$ac_try;; 19077esac 19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19079 (eval "$ac_link") 2>conftest.er1 19080 ac_status=$? 19081 grep -v '^ *+' conftest.er1 >conftest.err 19082 rm -f conftest.er1 19083 cat conftest.err >&5 19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19085 (exit $ac_status); } && 19086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19087 { (case "(($ac_try" in 19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19089 *) ac_try_echo=$ac_try;; 19090esac 19091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19092 (eval "$ac_try") 2>&5 19093 ac_status=$? 19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19095 (exit $ac_status); }; } && 19096 { ac_try='test -s conftest$ac_exeext' 19097 { (case "(($ac_try" in 19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19099 *) ac_try_echo=$ac_try;; 19100esac 19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19102 (eval "$ac_try") 2>&5 19103 ac_status=$? 19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19105 (exit $ac_status); }; }; then 19106 ac_cv_lib_gcc___umoddi3=yes 19107else 19108 echo "$as_me: failed program was:" >&5 19109sed 's/^/| /' conftest.$ac_ext >&5 19110 19111 ac_cv_lib_gcc___umoddi3=no 19112fi 19113 19114rm -f core conftest.err conftest.$ac_objext \ 19115 conftest$ac_exeext conftest.$ac_ext 19116LIBS=$ac_check_lib_save_LIBS 19117fi 19118{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 19119echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 19120if test $ac_cv_lib_gcc___umoddi3 = yes; then 19121 19122cat >>confdefs.h <<\_ACEOF 19123#define HAVE___UMODDI3 1 19124_ACEOF 19125 19126fi 19127 19128 19129 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 19130echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 19131if test "${ac_cv_lib_gcc___main+set}" = set; then 19132 echo $ECHO_N "(cached) $ECHO_C" >&6 19133else 19134 ac_check_lib_save_LIBS=$LIBS 19135LIBS="-lgcc $LIBS" 19136cat >conftest.$ac_ext <<_ACEOF 19137/* confdefs.h. */ 19138_ACEOF 19139cat confdefs.h >>conftest.$ac_ext 19140cat >>conftest.$ac_ext <<_ACEOF 19141/* end confdefs.h. */ 19142 19143/* Override any GCC internal prototype to avoid an error. 19144 Use char because int might match the return type of a GCC 19145 builtin and then its argument prototype would still apply. */ 19146#ifdef __cplusplus 19147extern "C" 19148#endif 19149char __main (); 19150int 19151main () 19152{ 19153return __main (); 19154 ; 19155 return 0; 19156} 19157_ACEOF 19158rm -f conftest.$ac_objext conftest$ac_exeext 19159if { (ac_try="$ac_link" 19160case "(($ac_try" in 19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19162 *) ac_try_echo=$ac_try;; 19163esac 19164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19165 (eval "$ac_link") 2>conftest.er1 19166 ac_status=$? 19167 grep -v '^ *+' conftest.er1 >conftest.err 19168 rm -f conftest.er1 19169 cat conftest.err >&5 19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19171 (exit $ac_status); } && 19172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19173 { (case "(($ac_try" in 19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19175 *) ac_try_echo=$ac_try;; 19176esac 19177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19178 (eval "$ac_try") 2>&5 19179 ac_status=$? 19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19181 (exit $ac_status); }; } && 19182 { ac_try='test -s conftest$ac_exeext' 19183 { (case "(($ac_try" in 19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19185 *) ac_try_echo=$ac_try;; 19186esac 19187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19188 (eval "$ac_try") 2>&5 19189 ac_status=$? 19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19191 (exit $ac_status); }; }; then 19192 ac_cv_lib_gcc___main=yes 19193else 19194 echo "$as_me: failed program was:" >&5 19195sed 's/^/| /' conftest.$ac_ext >&5 19196 19197 ac_cv_lib_gcc___main=no 19198fi 19199 19200rm -f core conftest.err conftest.$ac_objext \ 19201 conftest$ac_exeext conftest.$ac_ext 19202LIBS=$ac_check_lib_save_LIBS 19203fi 19204{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 19205echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 19206if test $ac_cv_lib_gcc___main = yes; then 19207 19208cat >>confdefs.h <<\_ACEOF 19209#define HAVE___MAIN 1 19210_ACEOF 19211 19212fi 19213 19214 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 19215echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 19216if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 19217 echo $ECHO_N "(cached) $ECHO_C" >&6 19218else 19219 ac_check_lib_save_LIBS=$LIBS 19220LIBS="-lgcc $LIBS" 19221cat >conftest.$ac_ext <<_ACEOF 19222/* confdefs.h. */ 19223_ACEOF 19224cat confdefs.h >>conftest.$ac_ext 19225cat >>conftest.$ac_ext <<_ACEOF 19226/* end confdefs.h. */ 19227 19228/* Override any GCC internal prototype to avoid an error. 19229 Use char because int might match the return type of a GCC 19230 builtin and then its argument prototype would still apply. */ 19231#ifdef __cplusplus 19232extern "C" 19233#endif 19234char __cmpdi2 (); 19235int 19236main () 19237{ 19238return __cmpdi2 (); 19239 ; 19240 return 0; 19241} 19242_ACEOF 19243rm -f conftest.$ac_objext conftest$ac_exeext 19244if { (ac_try="$ac_link" 19245case "(($ac_try" in 19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19247 *) ac_try_echo=$ac_try;; 19248esac 19249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19250 (eval "$ac_link") 2>conftest.er1 19251 ac_status=$? 19252 grep -v '^ *+' conftest.er1 >conftest.err 19253 rm -f conftest.er1 19254 cat conftest.err >&5 19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19256 (exit $ac_status); } && 19257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19258 { (case "(($ac_try" in 19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19260 *) ac_try_echo=$ac_try;; 19261esac 19262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19263 (eval "$ac_try") 2>&5 19264 ac_status=$? 19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19266 (exit $ac_status); }; } && 19267 { ac_try='test -s conftest$ac_exeext' 19268 { (case "(($ac_try" in 19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19270 *) ac_try_echo=$ac_try;; 19271esac 19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19273 (eval "$ac_try") 2>&5 19274 ac_status=$? 19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19276 (exit $ac_status); }; }; then 19277 ac_cv_lib_gcc___cmpdi2=yes 19278else 19279 echo "$as_me: failed program was:" >&5 19280sed 's/^/| /' conftest.$ac_ext >&5 19281 19282 ac_cv_lib_gcc___cmpdi2=no 19283fi 19284 19285rm -f core conftest.err conftest.$ac_objext \ 19286 conftest$ac_exeext conftest.$ac_ext 19287LIBS=$ac_check_lib_save_LIBS 19288fi 19289{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19290echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19291if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19292 19293cat >>confdefs.h <<\_ACEOF 19294#define HAVE___CMPDI2 1 19295_ACEOF 19296 19297fi 19298 19299fi 19300 19301if test "$llvm_cv_os_type" = "MingW" ; then 19302 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19303echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19304 cat >conftest.$ac_ext <<_ACEOF 19305#include <windows.h> 19306#include <imagehlp.h> 19307extern void foo(PENUMLOADED_MODULES_CALLBACK); 19308extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19309_ACEOF 19310rm -f conftest.$ac_objext 19311if { (ac_try="$ac_compile" 19312case "(($ac_try" in 19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19314 *) ac_try_echo=$ac_try;; 19315esac 19316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19317 (eval "$ac_compile") 2>conftest.er1 19318 ac_status=$? 19319 grep -v '^ *+' conftest.er1 >conftest.err 19320 rm -f conftest.er1 19321 cat conftest.err >&5 19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19323 (exit $ac_status); } && 19324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19325 { (case "(($ac_try" in 19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19327 *) ac_try_echo=$ac_try;; 19328esac 19329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19330 (eval "$ac_try") 2>&5 19331 ac_status=$? 19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19333 (exit $ac_status); }; } && 19334 { ac_try='test -s conftest.$ac_objext' 19335 { (case "(($ac_try" in 19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19337 *) ac_try_echo=$ac_try;; 19338esac 19339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19340 (eval "$ac_try") 2>&5 19341 ac_status=$? 19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19343 (exit $ac_status); }; }; then 19344 19345 { echo "$as_me:$LINENO: result: yes" >&5 19346echo "${ECHO_T}yes" >&6; } 19347 llvm_cv_win32_elmcb_pcstr="PCSTR" 19348 19349else 19350 echo "$as_me: failed program was:" >&5 19351sed 's/^/| /' conftest.$ac_ext >&5 19352 19353 19354 { echo "$as_me:$LINENO: result: no" >&5 19355echo "${ECHO_T}no" >&6; } 19356 llvm_cv_win32_elmcb_pcstr="PSTR" 19357 19358fi 19359 19360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19361 19362cat >>confdefs.h <<_ACEOF 19363#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19364_ACEOF 19365 19366fi 19367 19368 19369{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19370echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19371if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19372 echo $ECHO_N "(cached) $ECHO_C" >&6 19373else 19374 ac_ext=cpp 19375ac_cpp='$CXXCPP $CPPFLAGS' 19376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19379 19380 cat >conftest.$ac_ext <<_ACEOF 19381/* confdefs.h. */ 19382_ACEOF 19383cat confdefs.h >>conftest.$ac_ext 19384cat >>conftest.$ac_ext <<_ACEOF 19385/* end confdefs.h. */ 19386#include <math.h> 19387int 19388main () 19389{ 19390float f; isnan(f); 19391 ; 19392 return 0; 19393} 19394_ACEOF 19395rm -f conftest.$ac_objext 19396if { (ac_try="$ac_compile" 19397case "(($ac_try" in 19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19399 *) ac_try_echo=$ac_try;; 19400esac 19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19402 (eval "$ac_compile") 2>conftest.er1 19403 ac_status=$? 19404 grep -v '^ *+' conftest.er1 >conftest.err 19405 rm -f conftest.er1 19406 cat conftest.err >&5 19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19408 (exit $ac_status); } && 19409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19410 { (case "(($ac_try" in 19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19412 *) ac_try_echo=$ac_try;; 19413esac 19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19415 (eval "$ac_try") 2>&5 19416 ac_status=$? 19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19418 (exit $ac_status); }; } && 19419 { ac_try='test -s conftest.$ac_objext' 19420 { (case "(($ac_try" in 19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19422 *) ac_try_echo=$ac_try;; 19423esac 19424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19425 (eval "$ac_try") 2>&5 19426 ac_status=$? 19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19428 (exit $ac_status); }; }; then 19429 ac_cv_func_isnan_in_math_h=yes 19430else 19431 echo "$as_me: failed program was:" >&5 19432sed 's/^/| /' conftest.$ac_ext >&5 19433 19434 ac_cv_func_isnan_in_math_h=no 19435fi 19436 19437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19438 ac_ext=c 19439ac_cpp='$CPP $CPPFLAGS' 19440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19442ac_compiler_gnu=$ac_cv_c_compiler_gnu 19443 19444fi 19445{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19446echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19447 19448 19449if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19450 19451cat >>confdefs.h <<\_ACEOF 19452#define HAVE_ISNAN_IN_MATH_H 1 19453_ACEOF 19454 19455fi 19456 19457{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19458echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19459if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19460 echo $ECHO_N "(cached) $ECHO_C" >&6 19461else 19462 ac_ext=cpp 19463ac_cpp='$CXXCPP $CPPFLAGS' 19464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19467 19468 cat >conftest.$ac_ext <<_ACEOF 19469/* confdefs.h. */ 19470_ACEOF 19471cat confdefs.h >>conftest.$ac_ext 19472cat >>conftest.$ac_ext <<_ACEOF 19473/* end confdefs.h. */ 19474#include <cmath> 19475int 19476main () 19477{ 19478float f; isnan(f); 19479 ; 19480 return 0; 19481} 19482_ACEOF 19483rm -f conftest.$ac_objext 19484if { (ac_try="$ac_compile" 19485case "(($ac_try" in 19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19487 *) ac_try_echo=$ac_try;; 19488esac 19489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19490 (eval "$ac_compile") 2>conftest.er1 19491 ac_status=$? 19492 grep -v '^ *+' conftest.er1 >conftest.err 19493 rm -f conftest.er1 19494 cat conftest.err >&5 19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19496 (exit $ac_status); } && 19497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19498 { (case "(($ac_try" in 19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19500 *) ac_try_echo=$ac_try;; 19501esac 19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19503 (eval "$ac_try") 2>&5 19504 ac_status=$? 19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19506 (exit $ac_status); }; } && 19507 { ac_try='test -s conftest.$ac_objext' 19508 { (case "(($ac_try" in 19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19510 *) ac_try_echo=$ac_try;; 19511esac 19512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19513 (eval "$ac_try") 2>&5 19514 ac_status=$? 19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19516 (exit $ac_status); }; }; then 19517 ac_cv_func_isnan_in_cmath=yes 19518else 19519 echo "$as_me: failed program was:" >&5 19520sed 's/^/| /' conftest.$ac_ext >&5 19521 19522 ac_cv_func_isnan_in_cmath=no 19523fi 19524 19525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19526 ac_ext=c 19527ac_cpp='$CPP $CPPFLAGS' 19528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19530ac_compiler_gnu=$ac_cv_c_compiler_gnu 19531 19532fi 19533{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 19534echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 19535 19536if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 19537 19538cat >>confdefs.h <<\_ACEOF 19539#define HAVE_ISNAN_IN_CMATH 1 19540_ACEOF 19541 19542fi 19543 19544{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 19545echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 19546if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 19547 echo $ECHO_N "(cached) $ECHO_C" >&6 19548else 19549 ac_ext=cpp 19550ac_cpp='$CXXCPP $CPPFLAGS' 19551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19554 19555 cat >conftest.$ac_ext <<_ACEOF 19556/* confdefs.h. */ 19557_ACEOF 19558cat confdefs.h >>conftest.$ac_ext 19559cat >>conftest.$ac_ext <<_ACEOF 19560/* end confdefs.h. */ 19561#include <cmath> 19562int 19563main () 19564{ 19565float f; std::isnan(f); 19566 ; 19567 return 0; 19568} 19569_ACEOF 19570rm -f conftest.$ac_objext 19571if { (ac_try="$ac_compile" 19572case "(($ac_try" in 19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19574 *) ac_try_echo=$ac_try;; 19575esac 19576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19577 (eval "$ac_compile") 2>conftest.er1 19578 ac_status=$? 19579 grep -v '^ *+' conftest.er1 >conftest.err 19580 rm -f conftest.er1 19581 cat conftest.err >&5 19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19583 (exit $ac_status); } && 19584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19585 { (case "(($ac_try" in 19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19587 *) ac_try_echo=$ac_try;; 19588esac 19589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19590 (eval "$ac_try") 2>&5 19591 ac_status=$? 19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19593 (exit $ac_status); }; } && 19594 { ac_try='test -s conftest.$ac_objext' 19595 { (case "(($ac_try" in 19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19597 *) ac_try_echo=$ac_try;; 19598esac 19599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19600 (eval "$ac_try") 2>&5 19601 ac_status=$? 19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19603 (exit $ac_status); }; }; then 19604 ac_cv_func_std_isnan_in_cmath=yes 19605else 19606 echo "$as_me: failed program was:" >&5 19607sed 's/^/| /' conftest.$ac_ext >&5 19608 19609 ac_cv_func_std_isnan_in_cmath=no 19610fi 19611 19612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19613 ac_ext=c 19614ac_cpp='$CPP $CPPFLAGS' 19615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19617ac_compiler_gnu=$ac_cv_c_compiler_gnu 19618 19619fi 19620{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 19621echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 19622 19623if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 19624 19625cat >>confdefs.h <<\_ACEOF 19626#define HAVE_STD_ISNAN_IN_CMATH 1 19627_ACEOF 19628 19629fi 19630 19631 19632{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 19633echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 19634if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 19635 echo $ECHO_N "(cached) $ECHO_C" >&6 19636else 19637 ac_ext=cpp 19638ac_cpp='$CXXCPP $CPPFLAGS' 19639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19642 19643 cat >conftest.$ac_ext <<_ACEOF 19644/* confdefs.h. */ 19645_ACEOF 19646cat confdefs.h >>conftest.$ac_ext 19647cat >>conftest.$ac_ext <<_ACEOF 19648/* end confdefs.h. */ 19649#include <math.h> 19650int 19651main () 19652{ 19653float f; isinf(f); 19654 ; 19655 return 0; 19656} 19657_ACEOF 19658rm -f conftest.$ac_objext 19659if { (ac_try="$ac_compile" 19660case "(($ac_try" in 19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19662 *) ac_try_echo=$ac_try;; 19663esac 19664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19665 (eval "$ac_compile") 2>conftest.er1 19666 ac_status=$? 19667 grep -v '^ *+' conftest.er1 >conftest.err 19668 rm -f conftest.er1 19669 cat conftest.err >&5 19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19671 (exit $ac_status); } && 19672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19673 { (case "(($ac_try" in 19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19675 *) ac_try_echo=$ac_try;; 19676esac 19677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19678 (eval "$ac_try") 2>&5 19679 ac_status=$? 19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19681 (exit $ac_status); }; } && 19682 { ac_try='test -s conftest.$ac_objext' 19683 { (case "(($ac_try" in 19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19685 *) ac_try_echo=$ac_try;; 19686esac 19687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19688 (eval "$ac_try") 2>&5 19689 ac_status=$? 19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19691 (exit $ac_status); }; }; then 19692 ac_cv_func_isinf_in_math_h=yes 19693else 19694 echo "$as_me: failed program was:" >&5 19695sed 's/^/| /' conftest.$ac_ext >&5 19696 19697 ac_cv_func_isinf_in_math_h=no 19698fi 19699 19700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19701 ac_ext=c 19702ac_cpp='$CPP $CPPFLAGS' 19703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19705ac_compiler_gnu=$ac_cv_c_compiler_gnu 19706 19707fi 19708{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 19709echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 19710 19711if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 19712 19713cat >>confdefs.h <<\_ACEOF 19714#define HAVE_ISINF_IN_MATH_H 1 19715_ACEOF 19716 19717fi 19718 19719{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 19720echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 19721if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 19722 echo $ECHO_N "(cached) $ECHO_C" >&6 19723else 19724 ac_ext=cpp 19725ac_cpp='$CXXCPP $CPPFLAGS' 19726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19729 19730 cat >conftest.$ac_ext <<_ACEOF 19731/* confdefs.h. */ 19732_ACEOF 19733cat confdefs.h >>conftest.$ac_ext 19734cat >>conftest.$ac_ext <<_ACEOF 19735/* end confdefs.h. */ 19736#include <cmath> 19737int 19738main () 19739{ 19740float f; isinf(f); 19741 ; 19742 return 0; 19743} 19744_ACEOF 19745rm -f conftest.$ac_objext 19746if { (ac_try="$ac_compile" 19747case "(($ac_try" in 19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19749 *) ac_try_echo=$ac_try;; 19750esac 19751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19752 (eval "$ac_compile") 2>conftest.er1 19753 ac_status=$? 19754 grep -v '^ *+' conftest.er1 >conftest.err 19755 rm -f conftest.er1 19756 cat conftest.err >&5 19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19758 (exit $ac_status); } && 19759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19760 { (case "(($ac_try" in 19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19762 *) ac_try_echo=$ac_try;; 19763esac 19764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19765 (eval "$ac_try") 2>&5 19766 ac_status=$? 19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19768 (exit $ac_status); }; } && 19769 { ac_try='test -s conftest.$ac_objext' 19770 { (case "(($ac_try" in 19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19772 *) ac_try_echo=$ac_try;; 19773esac 19774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19775 (eval "$ac_try") 2>&5 19776 ac_status=$? 19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19778 (exit $ac_status); }; }; then 19779 ac_cv_func_isinf_in_cmath=yes 19780else 19781 echo "$as_me: failed program was:" >&5 19782sed 's/^/| /' conftest.$ac_ext >&5 19783 19784 ac_cv_func_isinf_in_cmath=no 19785fi 19786 19787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19788 ac_ext=c 19789ac_cpp='$CPP $CPPFLAGS' 19790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19792ac_compiler_gnu=$ac_cv_c_compiler_gnu 19793 19794fi 19795{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 19796echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 19797 19798if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 19799 19800cat >>confdefs.h <<\_ACEOF 19801#define HAVE_ISINF_IN_CMATH 1 19802_ACEOF 19803 19804fi 19805 19806{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 19807echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 19808if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 19809 echo $ECHO_N "(cached) $ECHO_C" >&6 19810else 19811 ac_ext=cpp 19812ac_cpp='$CXXCPP $CPPFLAGS' 19813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19816 19817 cat >conftest.$ac_ext <<_ACEOF 19818/* confdefs.h. */ 19819_ACEOF 19820cat confdefs.h >>conftest.$ac_ext 19821cat >>conftest.$ac_ext <<_ACEOF 19822/* end confdefs.h. */ 19823#include <cmath> 19824int 19825main () 19826{ 19827float f; std::isinf(f); 19828 ; 19829 return 0; 19830} 19831_ACEOF 19832rm -f conftest.$ac_objext 19833if { (ac_try="$ac_compile" 19834case "(($ac_try" in 19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19836 *) ac_try_echo=$ac_try;; 19837esac 19838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19839 (eval "$ac_compile") 2>conftest.er1 19840 ac_status=$? 19841 grep -v '^ *+' conftest.er1 >conftest.err 19842 rm -f conftest.er1 19843 cat conftest.err >&5 19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19845 (exit $ac_status); } && 19846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19847 { (case "(($ac_try" in 19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19849 *) ac_try_echo=$ac_try;; 19850esac 19851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19852 (eval "$ac_try") 2>&5 19853 ac_status=$? 19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19855 (exit $ac_status); }; } && 19856 { ac_try='test -s conftest.$ac_objext' 19857 { (case "(($ac_try" in 19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19859 *) ac_try_echo=$ac_try;; 19860esac 19861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19862 (eval "$ac_try") 2>&5 19863 ac_status=$? 19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19865 (exit $ac_status); }; }; then 19866 ac_cv_func_std_isinf_in_cmath=yes 19867else 19868 echo "$as_me: failed program was:" >&5 19869sed 's/^/| /' conftest.$ac_ext >&5 19870 19871 ac_cv_func_std_isinf_in_cmath=no 19872fi 19873 19874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19875 ac_ext=c 19876ac_cpp='$CPP $CPPFLAGS' 19877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19879ac_compiler_gnu=$ac_cv_c_compiler_gnu 19880 19881fi 19882{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 19883echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 19884 19885if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 19886 19887cat >>confdefs.h <<\_ACEOF 19888#define HAVE_STD_ISINF_IN_CMATH 1 19889_ACEOF 19890 19891fi 19892 19893{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 19894echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 19895if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 19896 echo $ECHO_N "(cached) $ECHO_C" >&6 19897else 19898 ac_ext=cpp 19899ac_cpp='$CXXCPP $CPPFLAGS' 19900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19903 19904 cat >conftest.$ac_ext <<_ACEOF 19905/* confdefs.h. */ 19906_ACEOF 19907cat confdefs.h >>conftest.$ac_ext 19908cat >>conftest.$ac_ext <<_ACEOF 19909/* end confdefs.h. */ 19910#include <ieeefp.h> 19911int 19912main () 19913{ 19914float f; finite(f); 19915 ; 19916 return 0; 19917} 19918_ACEOF 19919rm -f conftest.$ac_objext 19920if { (ac_try="$ac_compile" 19921case "(($ac_try" in 19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19923 *) ac_try_echo=$ac_try;; 19924esac 19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19926 (eval "$ac_compile") 2>conftest.er1 19927 ac_status=$? 19928 grep -v '^ *+' conftest.er1 >conftest.err 19929 rm -f conftest.er1 19930 cat conftest.err >&5 19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19932 (exit $ac_status); } && 19933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19934 { (case "(($ac_try" in 19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19936 *) ac_try_echo=$ac_try;; 19937esac 19938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19939 (eval "$ac_try") 2>&5 19940 ac_status=$? 19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19942 (exit $ac_status); }; } && 19943 { ac_try='test -s conftest.$ac_objext' 19944 { (case "(($ac_try" in 19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19946 *) ac_try_echo=$ac_try;; 19947esac 19948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19949 (eval "$ac_try") 2>&5 19950 ac_status=$? 19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19952 (exit $ac_status); }; }; then 19953 ac_cv_func_finite_in_ieeefp_h=yes 19954else 19955 echo "$as_me: failed program was:" >&5 19956sed 's/^/| /' conftest.$ac_ext >&5 19957 19958 ac_cv_func_finite_in_ieeefp_h=no 19959fi 19960 19961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19962 ac_ext=c 19963ac_cpp='$CPP $CPPFLAGS' 19964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19966ac_compiler_gnu=$ac_cv_c_compiler_gnu 19967 19968fi 19969{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 19970echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 19971 19972if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 19973 19974cat >>confdefs.h <<\_ACEOF 19975#define HAVE_FINITE_IN_IEEEFP_H 1 19976_ACEOF 19977 19978fi 19979 19980 19981 19982if test "$llvm_cv_platform_type" = "Unix" ; then 19983 19984 19985for ac_header in stdlib.h unistd.h 19986do 19987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19989 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19992 echo $ECHO_N "(cached) $ECHO_C" >&6 19993fi 19994ac_res=`eval echo '${'$as_ac_Header'}'` 19995 { echo "$as_me:$LINENO: result: $ac_res" >&5 19996echo "${ECHO_T}$ac_res" >&6; } 19997else 19998 # Is the header compilable? 19999{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20001cat >conftest.$ac_ext <<_ACEOF 20002/* confdefs.h. */ 20003_ACEOF 20004cat confdefs.h >>conftest.$ac_ext 20005cat >>conftest.$ac_ext <<_ACEOF 20006/* end confdefs.h. */ 20007$ac_includes_default 20008#include <$ac_header> 20009_ACEOF 20010rm -f conftest.$ac_objext 20011if { (ac_try="$ac_compile" 20012case "(($ac_try" in 20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20014 *) ac_try_echo=$ac_try;; 20015esac 20016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20017 (eval "$ac_compile") 2>conftest.er1 20018 ac_status=$? 20019 grep -v '^ *+' conftest.er1 >conftest.err 20020 rm -f conftest.er1 20021 cat conftest.err >&5 20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20023 (exit $ac_status); } && 20024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20025 { (case "(($ac_try" in 20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20027 *) ac_try_echo=$ac_try;; 20028esac 20029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20030 (eval "$ac_try") 2>&5 20031 ac_status=$? 20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20033 (exit $ac_status); }; } && 20034 { ac_try='test -s conftest.$ac_objext' 20035 { (case "(($ac_try" in 20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20037 *) ac_try_echo=$ac_try;; 20038esac 20039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20040 (eval "$ac_try") 2>&5 20041 ac_status=$? 20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20043 (exit $ac_status); }; }; then 20044 ac_header_compiler=yes 20045else 20046 echo "$as_me: failed program was:" >&5 20047sed 's/^/| /' conftest.$ac_ext >&5 20048 20049 ac_header_compiler=no 20050fi 20051 20052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20053{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20054echo "${ECHO_T}$ac_header_compiler" >&6; } 20055 20056# Is the header present? 20057{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20059cat >conftest.$ac_ext <<_ACEOF 20060/* confdefs.h. */ 20061_ACEOF 20062cat confdefs.h >>conftest.$ac_ext 20063cat >>conftest.$ac_ext <<_ACEOF 20064/* end confdefs.h. */ 20065#include <$ac_header> 20066_ACEOF 20067if { (ac_try="$ac_cpp conftest.$ac_ext" 20068case "(($ac_try" in 20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20070 *) ac_try_echo=$ac_try;; 20071esac 20072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20074 ac_status=$? 20075 grep -v '^ *+' conftest.er1 >conftest.err 20076 rm -f conftest.er1 20077 cat conftest.err >&5 20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20079 (exit $ac_status); } >/dev/null; then 20080 if test -s conftest.err; then 20081 ac_cpp_err=$ac_c_preproc_warn_flag 20082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20083 else 20084 ac_cpp_err= 20085 fi 20086else 20087 ac_cpp_err=yes 20088fi 20089if test -z "$ac_cpp_err"; then 20090 ac_header_preproc=yes 20091else 20092 echo "$as_me: failed program was:" >&5 20093sed 's/^/| /' conftest.$ac_ext >&5 20094 20095 ac_header_preproc=no 20096fi 20097 20098rm -f conftest.err conftest.$ac_ext 20099{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20100echo "${ECHO_T}$ac_header_preproc" >&6; } 20101 20102# So? What about this header? 20103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20104 yes:no: ) 20105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20109 ac_header_preproc=yes 20110 ;; 20111 no:yes:* ) 20112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20115echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20119echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20124 ( cat <<\_ASBOX 20125## ------------------------------------ ## 20126## Report this to http://llvm.org/bugs/ ## 20127## ------------------------------------ ## 20128_ASBOX 20129 ) | sed "s/^/$as_me: WARNING: /" >&2 20130 ;; 20131esac 20132{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20135 echo $ECHO_N "(cached) $ECHO_C" >&6 20136else 20137 eval "$as_ac_Header=\$ac_header_preproc" 20138fi 20139ac_res=`eval echo '${'$as_ac_Header'}'` 20140 { echo "$as_me:$LINENO: result: $ac_res" >&5 20141echo "${ECHO_T}$ac_res" >&6; } 20142 20143fi 20144if test `eval echo '${'$as_ac_Header'}'` = yes; then 20145 cat >>confdefs.h <<_ACEOF 20146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20147_ACEOF 20148 20149fi 20150 20151done 20152 20153 20154for ac_func in getpagesize 20155do 20156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20157{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20159if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20160 echo $ECHO_N "(cached) $ECHO_C" >&6 20161else 20162 cat >conftest.$ac_ext <<_ACEOF 20163/* confdefs.h. */ 20164_ACEOF 20165cat confdefs.h >>conftest.$ac_ext 20166cat >>conftest.$ac_ext <<_ACEOF 20167/* end confdefs.h. */ 20168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20169 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20170#define $ac_func innocuous_$ac_func 20171 20172/* System header to define __stub macros and hopefully few prototypes, 20173 which can conflict with char $ac_func (); below. 20174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20175 <limits.h> exists even on freestanding compilers. */ 20176 20177#ifdef __STDC__ 20178# include <limits.h> 20179#else 20180# include <assert.h> 20181#endif 20182 20183#undef $ac_func 20184 20185/* Override any GCC internal prototype to avoid an error. 20186 Use char because int might match the return type of a GCC 20187 builtin and then its argument prototype would still apply. */ 20188#ifdef __cplusplus 20189extern "C" 20190#endif 20191char $ac_func (); 20192/* The GNU C library defines this for functions which it implements 20193 to always fail with ENOSYS. Some functions are actually named 20194 something starting with __ and the normal name is an alias. */ 20195#if defined __stub_$ac_func || defined __stub___$ac_func 20196choke me 20197#endif 20198 20199int 20200main () 20201{ 20202return $ac_func (); 20203 ; 20204 return 0; 20205} 20206_ACEOF 20207rm -f conftest.$ac_objext conftest$ac_exeext 20208if { (ac_try="$ac_link" 20209case "(($ac_try" in 20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20211 *) ac_try_echo=$ac_try;; 20212esac 20213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20214 (eval "$ac_link") 2>conftest.er1 20215 ac_status=$? 20216 grep -v '^ *+' conftest.er1 >conftest.err 20217 rm -f conftest.er1 20218 cat conftest.err >&5 20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20220 (exit $ac_status); } && 20221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20222 { (case "(($ac_try" in 20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20224 *) ac_try_echo=$ac_try;; 20225esac 20226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20227 (eval "$ac_try") 2>&5 20228 ac_status=$? 20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20230 (exit $ac_status); }; } && 20231 { ac_try='test -s conftest$ac_exeext' 20232 { (case "(($ac_try" in 20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20234 *) ac_try_echo=$ac_try;; 20235esac 20236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20237 (eval "$ac_try") 2>&5 20238 ac_status=$? 20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20240 (exit $ac_status); }; }; then 20241 eval "$as_ac_var=yes" 20242else 20243 echo "$as_me: failed program was:" >&5 20244sed 's/^/| /' conftest.$ac_ext >&5 20245 20246 eval "$as_ac_var=no" 20247fi 20248 20249rm -f core conftest.err conftest.$ac_objext \ 20250 conftest$ac_exeext conftest.$ac_ext 20251fi 20252ac_res=`eval echo '${'$as_ac_var'}'` 20253 { echo "$as_me:$LINENO: result: $ac_res" >&5 20254echo "${ECHO_T}$ac_res" >&6; } 20255if test `eval echo '${'$as_ac_var'}'` = yes; then 20256 cat >>confdefs.h <<_ACEOF 20257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20258_ACEOF 20259 20260fi 20261done 20262 20263{ echo "$as_me:$LINENO: checking for working mmap" >&5 20264echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20265if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20266 echo $ECHO_N "(cached) $ECHO_C" >&6 20267else 20268 if test "$cross_compiling" = yes; then 20269 ac_cv_func_mmap_fixed_mapped=no 20270else 20271 cat >conftest.$ac_ext <<_ACEOF 20272/* confdefs.h. */ 20273_ACEOF 20274cat confdefs.h >>conftest.$ac_ext 20275cat >>conftest.$ac_ext <<_ACEOF 20276/* end confdefs.h. */ 20277$ac_includes_default 20278/* malloc might have been renamed as rpl_malloc. */ 20279#undef malloc 20280 20281/* Thanks to Mike Haertel and Jim Avera for this test. 20282 Here is a matrix of mmap possibilities: 20283 mmap private not fixed 20284 mmap private fixed at somewhere currently unmapped 20285 mmap private fixed at somewhere already mapped 20286 mmap shared not fixed 20287 mmap shared fixed at somewhere currently unmapped 20288 mmap shared fixed at somewhere already mapped 20289 For private mappings, we should verify that changes cannot be read() 20290 back from the file, nor mmap's back from the file at a different 20291 address. (There have been systems where private was not correctly 20292 implemented like the infamous i386 svr4.0, and systems where the 20293 VM page cache was not coherent with the file system buffer cache 20294 like early versions of FreeBSD and possibly contemporary NetBSD.) 20295 For shared mappings, we should conversely verify that changes get 20296 propagated back to all the places they're supposed to be. 20297 20298 Grep wants private fixed already mapped. 20299 The main things grep needs to know about mmap are: 20300 * does it exist and is it safe to write into the mmap'd area 20301 * how to use it (BSD variants) */ 20302 20303#include <fcntl.h> 20304#include <sys/mman.h> 20305 20306#if !STDC_HEADERS && !HAVE_STDLIB_H 20307char *malloc (); 20308#endif 20309 20310/* This mess was copied from the GNU getpagesize.h. */ 20311#if !HAVE_GETPAGESIZE 20312/* Assume that all systems that can run configure have sys/param.h. */ 20313# if !HAVE_SYS_PARAM_H 20314# define HAVE_SYS_PARAM_H 1 20315# endif 20316 20317# ifdef _SC_PAGESIZE 20318# define getpagesize() sysconf(_SC_PAGESIZE) 20319# else /* no _SC_PAGESIZE */ 20320# if HAVE_SYS_PARAM_H 20321# include <sys/param.h> 20322# ifdef EXEC_PAGESIZE 20323# define getpagesize() EXEC_PAGESIZE 20324# else /* no EXEC_PAGESIZE */ 20325# ifdef NBPG 20326# define getpagesize() NBPG * CLSIZE 20327# ifndef CLSIZE 20328# define CLSIZE 1 20329# endif /* no CLSIZE */ 20330# else /* no NBPG */ 20331# ifdef NBPC 20332# define getpagesize() NBPC 20333# else /* no NBPC */ 20334# ifdef PAGESIZE 20335# define getpagesize() PAGESIZE 20336# endif /* PAGESIZE */ 20337# endif /* no NBPC */ 20338# endif /* no NBPG */ 20339# endif /* no EXEC_PAGESIZE */ 20340# else /* no HAVE_SYS_PARAM_H */ 20341# define getpagesize() 8192 /* punt totally */ 20342# endif /* no HAVE_SYS_PARAM_H */ 20343# endif /* no _SC_PAGESIZE */ 20344 20345#endif /* no HAVE_GETPAGESIZE */ 20346 20347int 20348main () 20349{ 20350 char *data, *data2, *data3; 20351 int i, pagesize; 20352 int fd; 20353 20354 pagesize = getpagesize (); 20355 20356 /* First, make a file with some known garbage in it. */ 20357 data = (char *) malloc (pagesize); 20358 if (!data) 20359 return 1; 20360 for (i = 0; i < pagesize; ++i) 20361 *(data + i) = rand (); 20362 umask (0); 20363 fd = creat ("conftest.mmap", 0600); 20364 if (fd < 0) 20365 return 1; 20366 if (write (fd, data, pagesize) != pagesize) 20367 return 1; 20368 close (fd); 20369 20370 /* Next, try to mmap the file at a fixed address which already has 20371 something else allocated at it. If we can, also make sure that 20372 we see the same garbage. */ 20373 fd = open ("conftest.mmap", O_RDWR); 20374 if (fd < 0) 20375 return 1; 20376 data2 = (char *) malloc (2 * pagesize); 20377 if (!data2) 20378 return 1; 20379 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20380 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20381 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20382 return 1; 20383 for (i = 0; i < pagesize; ++i) 20384 if (*(data + i) != *(data2 + i)) 20385 return 1; 20386 20387 /* Finally, make sure that changes to the mapped area do not 20388 percolate back to the file as seen by read(). (This is a bug on 20389 some variants of i386 svr4.0.) */ 20390 for (i = 0; i < pagesize; ++i) 20391 *(data2 + i) = *(data2 + i) + 1; 20392 data3 = (char *) malloc (pagesize); 20393 if (!data3) 20394 return 1; 20395 if (read (fd, data3, pagesize) != pagesize) 20396 return 1; 20397 for (i = 0; i < pagesize; ++i) 20398 if (*(data + i) != *(data3 + i)) 20399 return 1; 20400 close (fd); 20401 return 0; 20402} 20403_ACEOF 20404rm -f conftest$ac_exeext 20405if { (ac_try="$ac_link" 20406case "(($ac_try" in 20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20408 *) ac_try_echo=$ac_try;; 20409esac 20410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20411 (eval "$ac_link") 2>&5 20412 ac_status=$? 20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20415 { (case "(($ac_try" in 20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20417 *) ac_try_echo=$ac_try;; 20418esac 20419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20420 (eval "$ac_try") 2>&5 20421 ac_status=$? 20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20423 (exit $ac_status); }; }; then 20424 ac_cv_func_mmap_fixed_mapped=yes 20425else 20426 echo "$as_me: program exited with status $ac_status" >&5 20427echo "$as_me: failed program was:" >&5 20428sed 's/^/| /' conftest.$ac_ext >&5 20429 20430( exit $ac_status ) 20431ac_cv_func_mmap_fixed_mapped=no 20432fi 20433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20434fi 20435 20436 20437fi 20438{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20439echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20440if test $ac_cv_func_mmap_fixed_mapped = yes; then 20441 20442cat >>confdefs.h <<\_ACEOF 20443#define HAVE_MMAP 1 20444_ACEOF 20445 20446fi 20447rm -f conftest.mmap 20448 20449 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20450echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20451if test "${ac_cv_func_mmap_file+set}" = set; then 20452 echo $ECHO_N "(cached) $ECHO_C" >&6 20453else 20454 ac_ext=c 20455ac_cpp='$CPP $CPPFLAGS' 20456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20458ac_compiler_gnu=$ac_cv_c_compiler_gnu 20459 20460 if test "$cross_compiling" = yes; then 20461 ac_cv_func_mmap_file=no 20462else 20463 cat >conftest.$ac_ext <<_ACEOF 20464 20465 /* confdefs.h. */ 20466_ACEOF 20467cat confdefs.h >>conftest.$ac_ext 20468cat >>conftest.$ac_ext <<_ACEOF 20469/* end confdefs.h. */ 20470 20471#include <sys/types.h> 20472#include <sys/mman.h> 20473#include <fcntl.h> 20474 20475int 20476main () 20477{ 20478 20479 int fd; 20480 fd = creat ("foo",0777); 20481 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20482 unlink ("foo"); 20483 return (fd != (int) MAP_FAILED); 20484 ; 20485 return 0; 20486} 20487_ACEOF 20488rm -f conftest$ac_exeext 20489if { (ac_try="$ac_link" 20490case "(($ac_try" in 20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20492 *) ac_try_echo=$ac_try;; 20493esac 20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20495 (eval "$ac_link") 2>&5 20496 ac_status=$? 20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20499 { (case "(($ac_try" in 20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20501 *) ac_try_echo=$ac_try;; 20502esac 20503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20504 (eval "$ac_try") 2>&5 20505 ac_status=$? 20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20507 (exit $ac_status); }; }; then 20508 ac_cv_func_mmap_file=yes 20509else 20510 echo "$as_me: program exited with status $ac_status" >&5 20511echo "$as_me: failed program was:" >&5 20512sed 's/^/| /' conftest.$ac_ext >&5 20513 20514( exit $ac_status ) 20515ac_cv_func_mmap_file=no 20516fi 20517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20518fi 20519 20520 20521 ac_ext=c 20522ac_cpp='$CPP $CPPFLAGS' 20523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20525ac_compiler_gnu=$ac_cv_c_compiler_gnu 20526 20527 20528fi 20529{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 20530echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 20531if test "$ac_cv_func_mmap_file" = yes; then 20532 20533cat >>confdefs.h <<\_ACEOF 20534#define HAVE_MMAP_FILE 20535_ACEOF 20536 20537 MMAP_FILE=yes 20538 20539fi 20540 20541 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 20542echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 20543if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 20544 echo $ECHO_N "(cached) $ECHO_C" >&6 20545else 20546 if test "$llvm_cv_os_type" = "Interix" ; then 20547 ac_cv_need_dev_zero_for_mmap=yes 20548 else 20549 ac_cv_need_dev_zero_for_mmap=no 20550 fi 20551 20552fi 20553{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 20554echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 20555if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 20556 20557cat >>confdefs.h <<\_ACEOF 20558#define NEED_DEV_ZERO_FOR_MMAP 1 20559_ACEOF 20560 20561fi 20562 20563 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 20564 then 20565 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 20566echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 20567 fi 20568 if test "$ac_cv_func_mmap_file" = "no" 20569 then 20570 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 20571echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 20572 fi 20573fi 20574 20575{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 20576echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 20577ac_ext=cpp 20578ac_cpp='$CXXCPP $CPPFLAGS' 20579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20582 20583cat >conftest.$ac_ext <<_ACEOF 20584/* confdefs.h. */ 20585_ACEOF 20586cat confdefs.h >>conftest.$ac_ext 20587cat >>conftest.$ac_ext <<_ACEOF 20588/* end confdefs.h. */ 20589int main() { 20590 volatile unsigned long val = 1; 20591 __sync_synchronize(); 20592 __sync_val_compare_and_swap(&val, 1, 0); 20593 __sync_add_and_fetch(&val, 1); 20594 __sync_sub_and_fetch(&val, 1); 20595 return 0; 20596 } 20597 20598_ACEOF 20599rm -f conftest.$ac_objext conftest$ac_exeext 20600if { (ac_try="$ac_link" 20601case "(($ac_try" in 20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20603 *) ac_try_echo=$ac_try;; 20604esac 20605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20606 (eval "$ac_link") 2>conftest.er1 20607 ac_status=$? 20608 grep -v '^ *+' conftest.er1 >conftest.err 20609 rm -f conftest.er1 20610 cat conftest.err >&5 20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20612 (exit $ac_status); } && 20613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20614 { (case "(($ac_try" in 20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20616 *) ac_try_echo=$ac_try;; 20617esac 20618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20619 (eval "$ac_try") 2>&5 20620 ac_status=$? 20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20622 (exit $ac_status); }; } && 20623 { ac_try='test -s conftest$ac_exeext' 20624 { (case "(($ac_try" in 20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20626 *) ac_try_echo=$ac_try;; 20627esac 20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20629 (eval "$ac_try") 2>&5 20630 ac_status=$? 20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20632 (exit $ac_status); }; }; then 20633 ac_ext=c 20634ac_cpp='$CPP $CPPFLAGS' 20635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20637ac_compiler_gnu=$ac_cv_c_compiler_gnu 20638 20639 { echo "$as_me:$LINENO: result: yes" >&5 20640echo "${ECHO_T}yes" >&6; } 20641 20642cat >>confdefs.h <<\_ACEOF 20643#define LLVM_HAS_ATOMICS 1 20644_ACEOF 20645 20646else 20647 echo "$as_me: failed program was:" >&5 20648sed 's/^/| /' conftest.$ac_ext >&5 20649 20650 { echo "$as_me:$LINENO: result: no" >&5 20651echo "${ECHO_T}no" >&6; } 20652 20653cat >>confdefs.h <<\_ACEOF 20654#define LLVM_HAS_ATOMICS 0 20655_ACEOF 20656 20657 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 20658echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 20659fi 20660 20661rm -f core conftest.err conftest.$ac_objext \ 20662 conftest$ac_exeext conftest.$ac_ext 20663 20664 20665if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 20666 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 20667echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 20668if test "${llvm_cv_linux_mixed+set}" = set; then 20669 echo $ECHO_N "(cached) $ECHO_C" >&6 20670else 20671 ac_ext=c 20672ac_cpp='$CPP $CPPFLAGS' 20673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20675ac_compiler_gnu=$ac_cv_c_compiler_gnu 20676 20677 cat >conftest.$ac_ext <<_ACEOF 20678/* confdefs.h. */ 20679_ACEOF 20680cat confdefs.h >>conftest.$ac_ext 20681cat >>conftest.$ac_ext <<_ACEOF 20682/* end confdefs.h. */ 20683#ifndef __x86_64__ 20684 error: Not x86-64 even if uname says so! 20685 #endif 20686 20687int 20688main () 20689{ 20690 20691 ; 20692 return 0; 20693} 20694_ACEOF 20695rm -f conftest.$ac_objext 20696if { (ac_try="$ac_compile" 20697case "(($ac_try" in 20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20699 *) ac_try_echo=$ac_try;; 20700esac 20701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20702 (eval "$ac_compile") 2>conftest.er1 20703 ac_status=$? 20704 grep -v '^ *+' conftest.er1 >conftest.err 20705 rm -f conftest.er1 20706 cat conftest.err >&5 20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20708 (exit $ac_status); } && 20709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20710 { (case "(($ac_try" in 20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20712 *) ac_try_echo=$ac_try;; 20713esac 20714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20715 (eval "$ac_try") 2>&5 20716 ac_status=$? 20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20718 (exit $ac_status); }; } && 20719 { ac_try='test -s conftest.$ac_objext' 20720 { (case "(($ac_try" in 20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20722 *) ac_try_echo=$ac_try;; 20723esac 20724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20725 (eval "$ac_try") 2>&5 20726 ac_status=$? 20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20728 (exit $ac_status); }; }; then 20729 llvm_cv_linux_mixed=no 20730else 20731 echo "$as_me: failed program was:" >&5 20732sed 's/^/| /' conftest.$ac_ext >&5 20733 20734 llvm_cv_linux_mixed=yes 20735fi 20736 20737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20738 ac_ext=c 20739ac_cpp='$CPP $CPPFLAGS' 20740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20742ac_compiler_gnu=$ac_cv_c_compiler_gnu 20743 20744 20745fi 20746{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 20747echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 20748 20749 if test "$llvm_cv_linux_mixed" = "yes"; then 20750 llvm_cv_target_arch="x86" 20751 ARCH="x86" 20752 fi 20753fi 20754 20755 20756for ac_func in __dso_handle 20757do 20758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20759{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20762 echo $ECHO_N "(cached) $ECHO_C" >&6 20763else 20764 cat >conftest.$ac_ext <<_ACEOF 20765/* confdefs.h. */ 20766_ACEOF 20767cat confdefs.h >>conftest.$ac_ext 20768cat >>conftest.$ac_ext <<_ACEOF 20769/* end confdefs.h. */ 20770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20771 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20772#define $ac_func innocuous_$ac_func 20773 20774/* System header to define __stub macros and hopefully few prototypes, 20775 which can conflict with char $ac_func (); below. 20776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20777 <limits.h> exists even on freestanding compilers. */ 20778 20779#ifdef __STDC__ 20780# include <limits.h> 20781#else 20782# include <assert.h> 20783#endif 20784 20785#undef $ac_func 20786 20787/* Override any GCC internal prototype to avoid an error. 20788 Use char because int might match the return type of a GCC 20789 builtin and then its argument prototype would still apply. */ 20790#ifdef __cplusplus 20791extern "C" 20792#endif 20793char $ac_func (); 20794/* The GNU C library defines this for functions which it implements 20795 to always fail with ENOSYS. Some functions are actually named 20796 something starting with __ and the normal name is an alias. */ 20797#if defined __stub_$ac_func || defined __stub___$ac_func 20798choke me 20799#endif 20800 20801int 20802main () 20803{ 20804return $ac_func (); 20805 ; 20806 return 0; 20807} 20808_ACEOF 20809rm -f conftest.$ac_objext conftest$ac_exeext 20810if { (ac_try="$ac_link" 20811case "(($ac_try" in 20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20813 *) ac_try_echo=$ac_try;; 20814esac 20815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20816 (eval "$ac_link") 2>conftest.er1 20817 ac_status=$? 20818 grep -v '^ *+' conftest.er1 >conftest.err 20819 rm -f conftest.er1 20820 cat conftest.err >&5 20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20822 (exit $ac_status); } && 20823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20824 { (case "(($ac_try" in 20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20826 *) ac_try_echo=$ac_try;; 20827esac 20828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20829 (eval "$ac_try") 2>&5 20830 ac_status=$? 20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20832 (exit $ac_status); }; } && 20833 { ac_try='test -s conftest$ac_exeext' 20834 { (case "(($ac_try" in 20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20836 *) ac_try_echo=$ac_try;; 20837esac 20838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20839 (eval "$ac_try") 2>&5 20840 ac_status=$? 20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20842 (exit $ac_status); }; }; then 20843 eval "$as_ac_var=yes" 20844else 20845 echo "$as_me: failed program was:" >&5 20846sed 's/^/| /' conftest.$ac_ext >&5 20847 20848 eval "$as_ac_var=no" 20849fi 20850 20851rm -f core conftest.err conftest.$ac_objext \ 20852 conftest$ac_exeext conftest.$ac_ext 20853fi 20854ac_res=`eval echo '${'$as_ac_var'}'` 20855 { echo "$as_me:$LINENO: result: $ac_res" >&5 20856echo "${ECHO_T}$ac_res" >&6; } 20857if test `eval echo '${'$as_ac_var'}'` = yes; then 20858 cat >>confdefs.h <<_ACEOF 20859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20860_ACEOF 20861 20862fi 20863done 20864 20865 20866SHLIBEXT=$libltdl_cv_shlibext 20867 20868 20869SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 20870 20871 20872if test "${prefix}" = "NONE" ; then 20873 prefix="/usr/local" 20874fi 20875eval LLVM_PREFIX="${prefix}"; 20876eval LLVM_BINDIR="${prefix}/bin"; 20877eval LLVM_LIBDIR="${prefix}/lib"; 20878eval LLVM_DATADIR="${prefix}/share/llvm"; 20879eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 20880eval LLVM_ETCDIR="${prefix}/etc/llvm"; 20881eval LLVM_INCLUDEDIR="${prefix}/include"; 20882eval LLVM_INFODIR="${prefix}/info"; 20883eval LLVM_MANDIR="${prefix}/man"; 20884LLVM_CONFIGTIME=`date` 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896if test "${ENABLE_TIMESTAMPS}" = "0"; then 20897 LLVM_CONFIGTIME="(timestamp not enabled)" 20898fi 20899 20900 20901cat >>confdefs.h <<_ACEOF 20902#define LLVM_PREFIX "$LLVM_PREFIX" 20903_ACEOF 20904 20905 20906cat >>confdefs.h <<_ACEOF 20907#define LLVM_BINDIR "$LLVM_BINDIR" 20908_ACEOF 20909 20910 20911cat >>confdefs.h <<_ACEOF 20912#define LLVM_LIBDIR "$LLVM_LIBDIR" 20913_ACEOF 20914 20915 20916cat >>confdefs.h <<_ACEOF 20917#define LLVM_DATADIR "$LLVM_DATADIR" 20918_ACEOF 20919 20920 20921cat >>confdefs.h <<_ACEOF 20922#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 20923_ACEOF 20924 20925 20926cat >>confdefs.h <<_ACEOF 20927#define LLVM_ETCDIR "$LLVM_ETCDIR" 20928_ACEOF 20929 20930 20931cat >>confdefs.h <<_ACEOF 20932#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 20933_ACEOF 20934 20935 20936cat >>confdefs.h <<_ACEOF 20937#define LLVM_INFODIR "$LLVM_INFODIR" 20938_ACEOF 20939 20940 20941cat >>confdefs.h <<_ACEOF 20942#define LLVM_MANDIR "$LLVM_MANDIR" 20943_ACEOF 20944 20945 20946cat >>confdefs.h <<_ACEOF 20947#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 20948_ACEOF 20949 20950 20951cat >>confdefs.h <<_ACEOF 20952#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 20953_ACEOF 20954 20955 20956if test "$BINDINGS_TO_BUILD" = auto ; then 20957 BINDINGS_TO_BUILD="" 20958 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 20959 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 20960 fi 20961fi 20962BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 20963 20964 20965ALL_BINDINGS=ocaml 20966 20967 20968binding_prereqs_failed=0 20969for a_binding in $BINDINGS_TO_BUILD ; do 20970 case "$a_binding" in 20971 ocaml) 20972 if test "x$OCAMLC" = x ; then 20973 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 20974echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 20975 binding_prereqs_failed=1 20976 fi 20977 if test "x$OCAMLDEP" = x ; then 20978 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 20979echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 20980 binding_prereqs_failed=1 20981 fi 20982 if test "x$OCAMLOPT" = x ; then 20983 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 20984echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 20985 fi 20986 if test "x$with_ocaml_libdir" != xauto ; then 20987 OCAML_LIBDIR=$with_ocaml_libdir 20988 20989 else 20990 ocaml_stdlib="`"$OCAMLC" -where`" 20991 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 20992 then 20993 # ocaml stdlib is beneath our prefix; use stdlib 20994 OCAML_LIBDIR=$ocaml_stdlib 20995 20996 else 20997 # ocaml stdlib is outside our prefix; use libdir/ocaml 20998 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 20999 21000 fi 21001 fi 21002 ;; 21003 esac 21004done 21005if test "$binding_prereqs_failed" = 1 ; then 21006 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 21007echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 21008 { (exit 1); exit 1; }; } 21009fi 21010 21011{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 21012echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 21013if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 21014 echo $ECHO_N "(cached) $ECHO_C" >&6 21015else 21016 ac_ext=cpp 21017ac_cpp='$CXXCPP $CPPFLAGS' 21018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21021 21022 oldcxxflags="$CXXFLAGS" 21023 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 21024 cat >conftest.$ac_ext <<_ACEOF 21025/* confdefs.h. */ 21026_ACEOF 21027cat confdefs.h >>conftest.$ac_ext 21028cat >>conftest.$ac_ext <<_ACEOF 21029/* end confdefs.h. */ 21030template <typename T> struct X { void __attribute__((noinline)) f() {} }; 21031int 21032main () 21033{ 21034X<int>().f(); 21035 ; 21036 return 0; 21037} 21038_ACEOF 21039rm -f conftest.$ac_objext 21040if { (ac_try="$ac_compile" 21041case "(($ac_try" in 21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21043 *) ac_try_echo=$ac_try;; 21044esac 21045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21046 (eval "$ac_compile") 2>conftest.er1 21047 ac_status=$? 21048 grep -v '^ *+' conftest.er1 >conftest.err 21049 rm -f conftest.er1 21050 cat conftest.err >&5 21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21052 (exit $ac_status); } && 21053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21054 { (case "(($ac_try" in 21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21056 *) ac_try_echo=$ac_try;; 21057esac 21058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21059 (eval "$ac_try") 2>&5 21060 ac_status=$? 21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21062 (exit $ac_status); }; } && 21063 { ac_try='test -s conftest.$ac_objext' 21064 { (case "(($ac_try" in 21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21066 *) ac_try_echo=$ac_try;; 21067esac 21068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21069 (eval "$ac_try") 2>&5 21070 ac_status=$? 21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21072 (exit $ac_status); }; }; then 21073 llvm_cv_cxx_visibility_inlines_hidden=yes 21074else 21075 echo "$as_me: failed program was:" >&5 21076sed 's/^/| /' conftest.$ac_ext >&5 21077 21078 llvm_cv_cxx_visibility_inlines_hidden=no 21079fi 21080 21081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21082 CXXFLAGS="$oldcxxflags" 21083 ac_ext=c 21084ac_cpp='$CPP $CPPFLAGS' 21085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21087ac_compiler_gnu=$ac_cv_c_compiler_gnu 21088 21089 21090fi 21091{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 21092echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 21093if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 21094 ENABLE_VISIBILITY_INLINES_HIDDEN=1 21095 21096else 21097 ENABLE_VISIBILITY_INLINES_HIDDEN=0 21098 21099fi 21100 21101 21102if test "$llvm_cv_link_use_r" = "yes" ; then 21103 RPATH="-Wl,-R" 21104else 21105 RPATH="-Wl,-rpath" 21106fi 21107 21108 21109if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 21110 RDYNAMIC="-Wl,-export-dynamic" 21111else 21112 RDYNAMIC="" 21113fi 21114 21115 21116 21117ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 21118 21119 21120 21121 21122 21123 21124ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 21125 21126ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 21127 21128ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 21129 21130ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 21131 21132ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 21133 21134 21135ac_config_files="$ac_config_files Makefile.config" 21136 21137 21138ac_config_files="$ac_config_files llvm.spec" 21139 21140 21141ac_config_files="$ac_config_files docs/doxygen.cfg" 21142 21143 21144if test "${clang_src_root}" = ""; then 21145 clang_src_root="$srcdir/tools/clang" 21146fi 21147if test -f ${clang_src_root}/README.txt; then 21148 configh="include/clang/Config/config.h" 21149 doxy="docs/doxygen.cfg" 21150 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 21151 21152 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 21153 21154fi 21155 21156ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 21157 21158 21159ac_config_commands="$ac_config_commands setup" 21160 21161ac_config_commands="$ac_config_commands Makefile" 21162 21163 21164ac_config_commands="$ac_config_commands Makefile.common" 21165 21166 21167ac_config_commands="$ac_config_commands examples/Makefile" 21168 21169 21170ac_config_commands="$ac_config_commands lib/Makefile" 21171 21172 21173ac_config_commands="$ac_config_commands runtime/Makefile" 21174 21175 21176ac_config_commands="$ac_config_commands test/Makefile" 21177 21178 21179ac_config_commands="$ac_config_commands test/Makefile.tests" 21180 21181 21182ac_config_commands="$ac_config_commands unittests/Makefile" 21183 21184 21185ac_config_commands="$ac_config_commands tools/Makefile" 21186 21187 21188ac_config_commands="$ac_config_commands utils/Makefile" 21189 21190 21191ac_config_commands="$ac_config_commands projects/Makefile" 21192 21193 21194ac_config_commands="$ac_config_commands bindings/Makefile" 21195 21196 21197ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 21198 21199 21200 21201cat >confcache <<\_ACEOF 21202# This file is a shell script that caches the results of configure 21203# tests run on this system so they can be shared between configure 21204# scripts and configure runs, see configure's option --config-cache. 21205# It is not useful on other systems. If it contains results you don't 21206# want to keep, you may remove or edit it. 21207# 21208# config.status only pays attention to the cache file if you give it 21209# the --recheck option to rerun configure. 21210# 21211# `ac_cv_env_foo' variables (set or unset) will be overridden when 21212# loading this file, other *unset* `ac_cv_foo' will be assigned the 21213# following values. 21214 21215_ACEOF 21216 21217# The following way of writing the cache mishandles newlines in values, 21218# but we know of no workaround that is simple, portable, and efficient. 21219# So, we kill variables containing newlines. 21220# Ultrix sh set writes to stderr and can't be redirected directly, 21221# and sets the high bit in the cache file unless we assign to the vars. 21222( 21223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21224 eval ac_val=\$$ac_var 21225 case $ac_val in #( 21226 *${as_nl}*) 21227 case $ac_var in #( 21228 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21229echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21230 esac 21231 case $ac_var in #( 21232 _ | IFS | as_nl) ;; #( 21233 *) $as_unset $ac_var ;; 21234 esac ;; 21235 esac 21236 done 21237 21238 (set) 2>&1 | 21239 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21240 *${as_nl}ac_space=\ *) 21241 # `set' does not quote correctly, so add quotes (double-quote 21242 # substitution turns \\\\ into \\, and sed turns \\ into \). 21243 sed -n \ 21244 "s/'/'\\\\''/g; 21245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21246 ;; #( 21247 *) 21248 # `set' quotes correctly as required by POSIX, so do not add quotes. 21249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21250 ;; 21251 esac | 21252 sort 21253) | 21254 sed ' 21255 /^ac_cv_env_/b end 21256 t clear 21257 :clear 21258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21259 t end 21260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21261 :end' >>confcache 21262if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21263 if test -w "$cache_file"; then 21264 test "x$cache_file" != "x/dev/null" && 21265 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21266echo "$as_me: updating cache $cache_file" >&6;} 21267 cat confcache >$cache_file 21268 else 21269 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21270echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21271 fi 21272fi 21273rm -f confcache 21274 21275test "x$prefix" = xNONE && prefix=$ac_default_prefix 21276# Let make expand exec_prefix. 21277test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21278 21279DEFS=-DHAVE_CONFIG_H 21280 21281ac_libobjs= 21282ac_ltlibobjs= 21283for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21284 # 1. Remove the extension, and $U if already installed. 21285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21286 ac_i=`echo "$ac_i" | sed "$ac_script"` 21287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21288 # will be set to the directory where LIBOBJS objects are built. 21289 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21290 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21291done 21292LIBOBJS=$ac_libobjs 21293 21294LTLIBOBJS=$ac_ltlibobjs 21295 21296 21297if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21298 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21299Usually this means the macro was only invoked conditionally." >&5 21300echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21301Usually this means the macro was only invoked conditionally." >&2;} 21302 { (exit 1); exit 1; }; } 21303fi 21304if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21305 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21306Usually this means the macro was only invoked conditionally." >&5 21307echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21308Usually this means the macro was only invoked conditionally." >&2;} 21309 { (exit 1); exit 1; }; } 21310fi 21311 21312: ${CONFIG_STATUS=./config.status} 21313ac_clean_files_save=$ac_clean_files 21314ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21315{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21316echo "$as_me: creating $CONFIG_STATUS" >&6;} 21317cat >$CONFIG_STATUS <<_ACEOF 21318#! $SHELL 21319# Generated by $as_me. 21320# Run this file to recreate the current configuration. 21321# Compiler output produced by configure, useful for debugging 21322# configure, is in config.log if it exists. 21323 21324debug=false 21325ac_cs_recheck=false 21326ac_cs_silent=false 21327SHELL=\${CONFIG_SHELL-$SHELL} 21328_ACEOF 21329 21330cat >>$CONFIG_STATUS <<\_ACEOF 21331## --------------------- ## 21332## M4sh Initialization. ## 21333## --------------------- ## 21334 21335# Be Bourne compatible 21336if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21337 emulate sh 21338 NULLCMD=: 21339 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21340 # is contrary to our usage. Disable this feature. 21341 alias -g '${1+"$@"}'='"$@"' 21342 setopt NO_GLOB_SUBST 21343else 21344 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21345fi 21346BIN_SH=xpg4; export BIN_SH # for Tru64 21347DUALCASE=1; export DUALCASE # for MKS sh 21348 21349 21350# PATH needs CR 21351# Avoid depending upon Character Ranges. 21352as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21353as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21354as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21355as_cr_digits='0123456789' 21356as_cr_alnum=$as_cr_Letters$as_cr_digits 21357 21358# The user is always right. 21359if test "${PATH_SEPARATOR+set}" != set; then 21360 echo "#! /bin/sh" >conf$$.sh 21361 echo "exit 0" >>conf$$.sh 21362 chmod +x conf$$.sh 21363 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21364 PATH_SEPARATOR=';' 21365 else 21366 PATH_SEPARATOR=: 21367 fi 21368 rm -f conf$$.sh 21369fi 21370 21371# Support unset when possible. 21372if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21373 as_unset=unset 21374else 21375 as_unset=false 21376fi 21377 21378 21379# IFS 21380# We need space, tab and new line, in precisely that order. Quoting is 21381# there to prevent editors from complaining about space-tab. 21382# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21383# splitting by setting IFS to empty value.) 21384as_nl=' 21385' 21386IFS=" "" $as_nl" 21387 21388# Find who we are. Look in the path if we contain no directory separator. 21389case $0 in 21390 *[\\/]* ) as_myself=$0 ;; 21391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21392for as_dir in $PATH 21393do 21394 IFS=$as_save_IFS 21395 test -z "$as_dir" && as_dir=. 21396 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21397done 21398IFS=$as_save_IFS 21399 21400 ;; 21401esac 21402# We did not find ourselves, most probably we were run as `sh COMMAND' 21403# in which case we are not to be found in the path. 21404if test "x$as_myself" = x; then 21405 as_myself=$0 21406fi 21407if test ! -f "$as_myself"; then 21408 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21409 { (exit 1); exit 1; } 21410fi 21411 21412# Work around bugs in pre-3.0 UWIN ksh. 21413for as_var in ENV MAIL MAILPATH 21414do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21415done 21416PS1='$ ' 21417PS2='> ' 21418PS4='+ ' 21419 21420# NLS nuisances. 21421for as_var in \ 21422 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21423 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21424 LC_TELEPHONE LC_TIME 21425do 21426 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21427 eval $as_var=C; export $as_var 21428 else 21429 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21430 fi 21431done 21432 21433# Required to use basename. 21434if expr a : '\(a\)' >/dev/null 2>&1 && 21435 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21436 as_expr=expr 21437else 21438 as_expr=false 21439fi 21440 21441if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21442 as_basename=basename 21443else 21444 as_basename=false 21445fi 21446 21447 21448# Name of the executable. 21449as_me=`$as_basename -- "$0" || 21450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21451 X"$0" : 'X\(//\)$' \| \ 21452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21453echo X/"$0" | 21454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21455 s//\1/ 21456 q 21457 } 21458 /^X\/\(\/\/\)$/{ 21459 s//\1/ 21460 q 21461 } 21462 /^X\/\(\/\).*/{ 21463 s//\1/ 21464 q 21465 } 21466 s/.*/./; q'` 21467 21468# CDPATH. 21469$as_unset CDPATH 21470 21471 21472 21473 as_lineno_1=$LINENO 21474 as_lineno_2=$LINENO 21475 test "x$as_lineno_1" != "x$as_lineno_2" && 21476 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21477 21478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21479 # uniformly replaced by the line number. The first 'sed' inserts a 21480 # line-number line after each line using $LINENO; the second 'sed' 21481 # does the real work. The second script uses 'N' to pair each 21482 # line-number line with the line containing $LINENO, and appends 21483 # trailing '-' during substitution so that $LINENO is not a special 21484 # case at line end. 21485 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21486 # scripts with optimization help from Paolo Bonzini. Blame Lee 21487 # E. McMahon (1931-1989) for sed's syntax. :-) 21488 sed -n ' 21489 p 21490 /[$]LINENO/= 21491 ' <$as_myself | 21492 sed ' 21493 s/[$]LINENO.*/&-/ 21494 t lineno 21495 b 21496 :lineno 21497 N 21498 :loop 21499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21500 t loop 21501 s/-\n.*// 21502 ' >$as_me.lineno && 21503 chmod +x "$as_me.lineno" || 21504 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21505 { (exit 1); exit 1; }; } 21506 21507 # Don't try to exec as it changes $[0], causing all sort of problems 21508 # (the dirname of $[0] is not the place where we might find the 21509 # original and so on. Autoconf is especially sensitive to this). 21510 . "./$as_me.lineno" 21511 # Exit status is that of the last command. 21512 exit 21513} 21514 21515 21516if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21517 as_dirname=dirname 21518else 21519 as_dirname=false 21520fi 21521 21522ECHO_C= ECHO_N= ECHO_T= 21523case `echo -n x` in 21524-n*) 21525 case `echo 'x\c'` in 21526 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21527 *) ECHO_C='\c';; 21528 esac;; 21529*) 21530 ECHO_N='-n';; 21531esac 21532 21533if expr a : '\(a\)' >/dev/null 2>&1 && 21534 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21535 as_expr=expr 21536else 21537 as_expr=false 21538fi 21539 21540rm -f conf$$ conf$$.exe conf$$.file 21541if test -d conf$$.dir; then 21542 rm -f conf$$.dir/conf$$.file 21543else 21544 rm -f conf$$.dir 21545 mkdir conf$$.dir 21546fi 21547echo >conf$$.file 21548if ln -s conf$$.file conf$$ 2>/dev/null; then 21549 as_ln_s='ln -s' 21550 # ... but there are two gotchas: 21551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21553 # In both cases, we have to default to `cp -p'. 21554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21555 as_ln_s='cp -p' 21556elif ln conf$$.file conf$$ 2>/dev/null; then 21557 as_ln_s=ln 21558else 21559 as_ln_s='cp -p' 21560fi 21561rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21562rmdir conf$$.dir 2>/dev/null 21563 21564if mkdir -p . 2>/dev/null; then 21565 as_mkdir_p=: 21566else 21567 test -d ./-p && rmdir ./-p 21568 as_mkdir_p=false 21569fi 21570 21571# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21572# systems may use methods other than mode bits to determine executability. 21573cat >conf$$.file <<_ASEOF 21574#! /bin/sh 21575exit 0 21576_ASEOF 21577chmod +x conf$$.file 21578if test -x conf$$.file >/dev/null 2>&1; then 21579 as_executable_p="test -x" 21580else 21581 as_executable_p=: 21582fi 21583rm -f conf$$.file 21584 21585# Sed expression to map a string onto a valid CPP name. 21586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21587 21588# Sed expression to map a string onto a valid variable name. 21589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21590 21591 21592exec 6>&1 21593 21594# Save the log message, to keep $[0] and so on meaningful, and to 21595# report actual input values of CONFIG_FILES etc. instead of their 21596# values after options handling. 21597ac_log=" 21598This file was extended by LLVM $as_me 3.2svn, which was 21599generated by GNU Autoconf 2.60. Invocation command line was 21600 21601 CONFIG_FILES = $CONFIG_FILES 21602 CONFIG_HEADERS = $CONFIG_HEADERS 21603 CONFIG_LINKS = $CONFIG_LINKS 21604 CONFIG_COMMANDS = $CONFIG_COMMANDS 21605 $ $0 $@ 21606 21607on `(hostname || uname -n) 2>/dev/null | sed 1q` 21608" 21609 21610_ACEOF 21611 21612cat >>$CONFIG_STATUS <<_ACEOF 21613# Files that config.status was made for. 21614config_files="$ac_config_files" 21615config_headers="$ac_config_headers" 21616config_commands="$ac_config_commands" 21617 21618_ACEOF 21619 21620cat >>$CONFIG_STATUS <<\_ACEOF 21621ac_cs_usage="\ 21622\`$as_me' instantiates files from templates according to the 21623current configuration. 21624 21625Usage: $0 [OPTIONS] [FILE]... 21626 21627 -h, --help print this help, then exit 21628 -V, --version print version number, then exit 21629 -q, --quiet do not print progress messages 21630 -d, --debug don't remove temporary files 21631 --recheck update $as_me by reconfiguring in the same conditions 21632 --file=FILE[:TEMPLATE] 21633 instantiate the configuration file FILE 21634 --header=FILE[:TEMPLATE] 21635 instantiate the configuration header FILE 21636 21637Configuration files: 21638$config_files 21639 21640Configuration headers: 21641$config_headers 21642 21643Configuration commands: 21644$config_commands 21645 21646Report bugs to <bug-autoconf@gnu.org>." 21647 21648_ACEOF 21649cat >>$CONFIG_STATUS <<_ACEOF 21650ac_cs_version="\\ 21651LLVM config.status 3.2svn 21652configured by $0, generated by GNU Autoconf 2.60, 21653 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21654 21655Copyright (C) 2006 Free Software Foundation, Inc. 21656This config.status script is free software; the Free Software Foundation 21657gives unlimited permission to copy, distribute and modify it." 21658 21659ac_pwd='$ac_pwd' 21660srcdir='$srcdir' 21661INSTALL='$INSTALL' 21662_ACEOF 21663 21664cat >>$CONFIG_STATUS <<\_ACEOF 21665# If no file are specified by the user, then we need to provide default 21666# value. By we need to know if files were specified by the user. 21667ac_need_defaults=: 21668while test $# != 0 21669do 21670 case $1 in 21671 --*=*) 21672 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21674 ac_shift=: 21675 ;; 21676 *) 21677 ac_option=$1 21678 ac_optarg=$2 21679 ac_shift=shift 21680 ;; 21681 esac 21682 21683 case $ac_option in 21684 # Handling of the options. 21685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21686 ac_cs_recheck=: ;; 21687 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21688 echo "$ac_cs_version"; exit ;; 21689 --debug | --debu | --deb | --de | --d | -d ) 21690 debug=: ;; 21691 --file | --fil | --fi | --f ) 21692 $ac_shift 21693 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21694 ac_need_defaults=false;; 21695 --header | --heade | --head | --hea ) 21696 $ac_shift 21697 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21698 ac_need_defaults=false;; 21699 --he | --h) 21700 # Conflict between --help and --header 21701 { echo "$as_me: error: ambiguous option: $1 21702Try \`$0 --help' for more information." >&2 21703 { (exit 1); exit 1; }; };; 21704 --help | --hel | -h ) 21705 echo "$ac_cs_usage"; exit ;; 21706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21707 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21708 ac_cs_silent=: ;; 21709 21710 # This is an error. 21711 -*) { echo "$as_me: error: unrecognized option: $1 21712Try \`$0 --help' for more information." >&2 21713 { (exit 1); exit 1; }; } ;; 21714 21715 *) ac_config_targets="$ac_config_targets $1" 21716 ac_need_defaults=false ;; 21717 21718 esac 21719 shift 21720done 21721 21722ac_configure_extra_args= 21723 21724if $ac_cs_silent; then 21725 exec 6>/dev/null 21726 ac_configure_extra_args="$ac_configure_extra_args --silent" 21727fi 21728 21729_ACEOF 21730cat >>$CONFIG_STATUS <<_ACEOF 21731if \$ac_cs_recheck; then 21732 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21733 CONFIG_SHELL=$SHELL 21734 export CONFIG_SHELL 21735 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21736fi 21737 21738_ACEOF 21739cat >>$CONFIG_STATUS <<\_ACEOF 21740exec 5>>config.log 21741{ 21742 echo 21743 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21744## Running $as_me. ## 21745_ASBOX 21746 echo "$ac_log" 21747} >&5 21748 21749_ACEOF 21750cat >>$CONFIG_STATUS <<_ACEOF 21751# 21752# INIT-COMMANDS 21753# 21754llvm_src="${srcdir}" 21755 21756_ACEOF 21757 21758cat >>$CONFIG_STATUS <<\_ACEOF 21759 21760# Handling of arguments. 21761for ac_config_target in $ac_config_targets 21762do 21763 case $ac_config_target in 21764 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 21765 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 21766 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 21767 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 21768 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 21769 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 21770 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 21771 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 21772 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 21773 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 21774 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 21775 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 21776 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 21777 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 21778 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 21779 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 21780 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 21781 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 21782 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 21783 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 21784 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 21785 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 21786 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 21787 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 21788 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 21789 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 21790 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 21791 21792 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21793echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21794 { (exit 1); exit 1; }; };; 21795 esac 21796done 21797 21798 21799# If the user did not use the arguments to specify the items to instantiate, 21800# then the envvar interface is used. Set only those that are not. 21801# We use the long form for the default assignment because of an extremely 21802# bizarre bug on SunOS 4.1.3. 21803if $ac_need_defaults; then 21804 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21805 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21806 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21807fi 21808 21809# Have a temporary directory for convenience. Make it in the build tree 21810# simply because there is no reason against having it here, and in addition, 21811# creating and moving files from /tmp can sometimes cause problems. 21812# Hook for its removal unless debugging. 21813# Note that there is a small window in which the directory will not be cleaned: 21814# after its creation but before its name has been assigned to `$tmp'. 21815$debug || 21816{ 21817 tmp= 21818 trap 'exit_status=$? 21819 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21820' 0 21821 trap '{ (exit 1); exit 1; }' 1 2 13 15 21822} 21823# Create a (secure) tmp directory for tmp files. 21824 21825{ 21826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21827 test -n "$tmp" && test -d "$tmp" 21828} || 21829{ 21830 tmp=./conf$$-$RANDOM 21831 (umask 077 && mkdir "$tmp") 21832} || 21833{ 21834 echo "$me: cannot create a temporary directory in ." >&2 21835 { (exit 1); exit 1; } 21836} 21837 21838# 21839# Set up the sed scripts for CONFIG_FILES section. 21840# 21841 21842# No need to generate the scripts if there are no CONFIG_FILES. 21843# This happens for instance when ./config.status config.h 21844if test -n "$CONFIG_FILES"; then 21845 21846_ACEOF 21847 21848 21849 21850ac_delim='%!_!# ' 21851for ac_last_try in false false false false false :; do 21852 cat >conf$$subs.sed <<_ACEOF 21853SHELL!$SHELL$ac_delim 21854PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21855PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21856PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21857PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21858PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21859PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21860exec_prefix!$exec_prefix$ac_delim 21861prefix!$prefix$ac_delim 21862program_transform_name!$program_transform_name$ac_delim 21863bindir!$bindir$ac_delim 21864sbindir!$sbindir$ac_delim 21865libexecdir!$libexecdir$ac_delim 21866datarootdir!$datarootdir$ac_delim 21867datadir!$datadir$ac_delim 21868sysconfdir!$sysconfdir$ac_delim 21869sharedstatedir!$sharedstatedir$ac_delim 21870localstatedir!$localstatedir$ac_delim 21871includedir!$includedir$ac_delim 21872oldincludedir!$oldincludedir$ac_delim 21873docdir!$docdir$ac_delim 21874infodir!$infodir$ac_delim 21875htmldir!$htmldir$ac_delim 21876dvidir!$dvidir$ac_delim 21877pdfdir!$pdfdir$ac_delim 21878psdir!$psdir$ac_delim 21879libdir!$libdir$ac_delim 21880localedir!$localedir$ac_delim 21881mandir!$mandir$ac_delim 21882DEFS!$DEFS$ac_delim 21883ECHO_C!$ECHO_C$ac_delim 21884ECHO_N!$ECHO_N$ac_delim 21885ECHO_T!$ECHO_T$ac_delim 21886LIBS!$LIBS$ac_delim 21887build_alias!$build_alias$ac_delim 21888host_alias!$host_alias$ac_delim 21889target_alias!$target_alias$ac_delim 21890LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 21891CC!$CC$ac_delim 21892CFLAGS!$CFLAGS$ac_delim 21893LDFLAGS!$LDFLAGS$ac_delim 21894CPPFLAGS!$CPPFLAGS$ac_delim 21895ac_ct_CC!$ac_ct_CC$ac_delim 21896EXEEXT!$EXEEXT$ac_delim 21897OBJEXT!$OBJEXT$ac_delim 21898CXX!$CXX$ac_delim 21899CXXFLAGS!$CXXFLAGS$ac_delim 21900ac_ct_CXX!$ac_ct_CXX$ac_delim 21901CPP!$CPP$ac_delim 21902subdirs!$subdirs$ac_delim 21903ENABLE_POLLY!$ENABLE_POLLY$ac_delim 21904LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 21905build!$build$ac_delim 21906build_cpu!$build_cpu$ac_delim 21907build_vendor!$build_vendor$ac_delim 21908build_os!$build_os$ac_delim 21909host!$host$ac_delim 21910host_cpu!$host_cpu$ac_delim 21911host_vendor!$host_vendor$ac_delim 21912host_os!$host_os$ac_delim 21913target!$target$ac_delim 21914target_cpu!$target_cpu$ac_delim 21915target_vendor!$target_vendor$ac_delim 21916target_os!$target_os$ac_delim 21917OS!$OS$ac_delim 21918HOST_OS!$HOST_OS$ac_delim 21919TARGET_OS!$TARGET_OS$ac_delim 21920LINKALL!$LINKALL$ac_delim 21921NOLINKALL!$NOLINKALL$ac_delim 21922LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 21923LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 21924ARCH!$ARCH$ac_delim 21925HOST_ARCH!$HOST_ARCH$ac_delim 21926ENDIAN!$ENDIAN$ac_delim 21927GREP!$GREP$ac_delim 21928EGREP!$EGREP$ac_delim 21929LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 21930BUILD_CC!$BUILD_CC$ac_delim 21931BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 21932BUILD_CXX!$BUILD_CXX$ac_delim 21933CVSBUILD!$CVSBUILD$ac_delim 21934ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 21935ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 21936ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 21937DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 21938ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 21939EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 21940DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 21941DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 21942JIT!$JIT$ac_delim 21943TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 21944ENABLE_DOCS!$ENABLE_DOCS$ac_delim 21945ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 21946LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 21947ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 21948ENABLE_PIC!$ENABLE_PIC$ac_delim 21949ENABLE_SHARED!$ENABLE_SHARED$ac_delim 21950_ACEOF 21951 21952 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21953 break 21954 elif $ac_last_try; then 21955 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21956echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21957 { (exit 1); exit 1; }; } 21958 else 21959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21960 fi 21961done 21962 21963ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21964if test -n "$ac_eof"; then 21965 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21966 ac_eof=`expr $ac_eof + 1` 21967fi 21968 21969cat >>$CONFIG_STATUS <<_ACEOF 21970cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21971/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21972_ACEOF 21973sed ' 21974s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21975s/^/s,@/; s/!/@,|#_!!_#|/ 21976:n 21977t n 21978s/'"$ac_delim"'$/,g/; t 21979s/$/\\/; p 21980N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21981' >>$CONFIG_STATUS <conf$$subs.sed 21982rm -f conf$$subs.sed 21983cat >>$CONFIG_STATUS <<_ACEOF 21984CEOF$ac_eof 21985_ACEOF 21986 21987 21988ac_delim='%!_!# ' 21989for ac_last_try in false false false false false :; do 21990 cat >conf$$subs.sed <<_ACEOF 21991ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 21992ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 21993TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 21994LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 21995LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 21996LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 21997LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 21998OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 21999EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 22000EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 22001CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 22002BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 22003INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 22004NM!$NM$ac_delim 22005ifGNUmake!$ifGNUmake$ac_delim 22006LN_S!$LN_S$ac_delim 22007CMP!$CMP$ac_delim 22008CP!$CP$ac_delim 22009DATE!$DATE$ac_delim 22010FIND!$FIND$ac_delim 22011MKDIR!$MKDIR$ac_delim 22012MV!$MV$ac_delim 22013RANLIB!$RANLIB$ac_delim 22014AR!$AR$ac_delim 22015RM!$RM$ac_delim 22016SED!$SED$ac_delim 22017TAR!$TAR$ac_delim 22018BINPWD!$BINPWD$ac_delim 22019GRAPHVIZ!$GRAPHVIZ$ac_delim 22020DOT!$DOT$ac_delim 22021FDP!$FDP$ac_delim 22022NEATO!$NEATO$ac_delim 22023TWOPI!$TWOPI$ac_delim 22024CIRCO!$CIRCO$ac_delim 22025GV!$GV$ac_delim 22026DOTTY!$DOTTY$ac_delim 22027XDOT_PY!$XDOT_PY$ac_delim 22028INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22029INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22030INSTALL_DATA!$INSTALL_DATA$ac_delim 22031BZIP2!$BZIP2$ac_delim 22032CAT!$CAT$ac_delim 22033DOXYGEN!$DOXYGEN$ac_delim 22034GROFF!$GROFF$ac_delim 22035GZIPBIN!$GZIPBIN$ac_delim 22036PDFROFF!$PDFROFF$ac_delim 22037ZIP!$ZIP$ac_delim 22038OCAMLC!$OCAMLC$ac_delim 22039OCAMLOPT!$OCAMLOPT$ac_delim 22040OCAMLDEP!$OCAMLDEP$ac_delim 22041OCAMLDOC!$OCAMLDOC$ac_delim 22042GAS!$GAS$ac_delim 22043HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 22044INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 22045INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 22046CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 22047CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 22048LIBADD_DL!$LIBADD_DL$ac_delim 22049NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 22050NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 22051COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 22052USE_UDIS86!$USE_UDIS86$ac_delim 22053USE_OPROFILE!$USE_OPROFILE$ac_delim 22054USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 22055INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim 22056INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim 22057HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 22058HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 22059MMAP_FILE!$MMAP_FILE$ac_delim 22060SHLIBEXT!$SHLIBEXT$ac_delim 22061SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 22062LLVM_PREFIX!$LLVM_PREFIX$ac_delim 22063LLVM_BINDIR!$LLVM_BINDIR$ac_delim 22064LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 22065LLVM_DATADIR!$LLVM_DATADIR$ac_delim 22066LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 22067LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 22068LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 22069LLVM_INFODIR!$LLVM_INFODIR$ac_delim 22070LLVM_MANDIR!$LLVM_MANDIR$ac_delim 22071LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 22072BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 22073ALL_BINDINGS!$ALL_BINDINGS$ac_delim 22074OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 22075ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 22076RPATH!$RPATH$ac_delim 22077RDYNAMIC!$RDYNAMIC$ac_delim 22078LIBOBJS!$LIBOBJS$ac_delim 22079LTLIBOBJS!$LTLIBOBJS$ac_delim 22080_ACEOF 22081 22082 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then 22083 break 22084 elif $ac_last_try; then 22085 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22086echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22087 { (exit 1); exit 1; }; } 22088 else 22089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22090 fi 22091done 22092 22093ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22094if test -n "$ac_eof"; then 22095 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22096 ac_eof=`expr $ac_eof + 1` 22097fi 22098 22099cat >>$CONFIG_STATUS <<_ACEOF 22100cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22101/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22102_ACEOF 22103sed ' 22104s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22105s/^/s,@/; s/!/@,|#_!!_#|/ 22106:n 22107t n 22108s/'"$ac_delim"'$/,g/; t 22109s/$/\\/; p 22110N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22111' >>$CONFIG_STATUS <conf$$subs.sed 22112rm -f conf$$subs.sed 22113cat >>$CONFIG_STATUS <<_ACEOF 22114:end 22115s/|#_!!_#|//g 22116CEOF$ac_eof 22117_ACEOF 22118 22119 22120# VPATH may cause trouble with some makes, so we remove $(srcdir), 22121# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22122# trailing colons and then remove the whole line if VPATH becomes empty 22123# (actually we leave an empty line to preserve line numbers). 22124if test "x$srcdir" = x.; then 22125 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22126s/:*\$(srcdir):*/:/ 22127s/:*\${srcdir}:*/:/ 22128s/:*@srcdir@:*/:/ 22129s/^\([^=]*=[ ]*\):*/\1/ 22130s/:*$// 22131s/^[^=]*=[ ]*$// 22132}' 22133fi 22134 22135cat >>$CONFIG_STATUS <<\_ACEOF 22136fi # test -n "$CONFIG_FILES" 22137 22138 22139for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22140do 22141 case $ac_tag in 22142 :[FHLC]) ac_mode=$ac_tag; continue;; 22143 esac 22144 case $ac_mode$ac_tag in 22145 :[FHL]*:*);; 22146 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22147echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22148 { (exit 1); exit 1; }; };; 22149 :[FH]-) ac_tag=-:-;; 22150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22151 esac 22152 ac_save_IFS=$IFS 22153 IFS=: 22154 set x $ac_tag 22155 IFS=$ac_save_IFS 22156 shift 22157 ac_file=$1 22158 shift 22159 22160 case $ac_mode in 22161 :L) ac_source=$1;; 22162 :[FH]) 22163 ac_file_inputs= 22164 for ac_f 22165 do 22166 case $ac_f in 22167 -) ac_f="$tmp/stdin";; 22168 *) # Look for the file first in the build tree, then in the source tree 22169 # (if the path is not absolute). The absolute path cannot be DOS-style, 22170 # because $ac_f cannot contain `:'. 22171 test -f "$ac_f" || 22172 case $ac_f in 22173 [\\/$]*) false;; 22174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22175 esac || 22176 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22177echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22178 { (exit 1); exit 1; }; };; 22179 esac 22180 ac_file_inputs="$ac_file_inputs $ac_f" 22181 done 22182 22183 # Let's still pretend it is `configure' which instantiates (i.e., don't 22184 # use $as_me), people would be surprised to read: 22185 # /* config.h. Generated by config.status. */ 22186 configure_input="Generated from "`IFS=: 22187 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22188 if test x"$ac_file" != x-; then 22189 configure_input="$ac_file. $configure_input" 22190 { echo "$as_me:$LINENO: creating $ac_file" >&5 22191echo "$as_me: creating $ac_file" >&6;} 22192 fi 22193 22194 case $ac_tag in 22195 *:-:* | *:-) cat >"$tmp/stdin";; 22196 esac 22197 ;; 22198 esac 22199 22200 ac_dir=`$as_dirname -- "$ac_file" || 22201$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22202 X"$ac_file" : 'X\(//\)[^/]' \| \ 22203 X"$ac_file" : 'X\(//\)$' \| \ 22204 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22205echo X"$ac_file" | 22206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22207 s//\1/ 22208 q 22209 } 22210 /^X\(\/\/\)[^/].*/{ 22211 s//\1/ 22212 q 22213 } 22214 /^X\(\/\/\)$/{ 22215 s//\1/ 22216 q 22217 } 22218 /^X\(\/\).*/{ 22219 s//\1/ 22220 q 22221 } 22222 s/.*/./; q'` 22223 { as_dir="$ac_dir" 22224 case $as_dir in #( 22225 -*) as_dir=./$as_dir;; 22226 esac 22227 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22228 as_dirs= 22229 while :; do 22230 case $as_dir in #( 22231 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22232 *) as_qdir=$as_dir;; 22233 esac 22234 as_dirs="'$as_qdir' $as_dirs" 22235 as_dir=`$as_dirname -- "$as_dir" || 22236$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22237 X"$as_dir" : 'X\(//\)[^/]' \| \ 22238 X"$as_dir" : 'X\(//\)$' \| \ 22239 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22240echo X"$as_dir" | 22241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22242 s//\1/ 22243 q 22244 } 22245 /^X\(\/\/\)[^/].*/{ 22246 s//\1/ 22247 q 22248 } 22249 /^X\(\/\/\)$/{ 22250 s//\1/ 22251 q 22252 } 22253 /^X\(\/\).*/{ 22254 s//\1/ 22255 q 22256 } 22257 s/.*/./; q'` 22258 test -d "$as_dir" && break 22259 done 22260 test -z "$as_dirs" || eval "mkdir $as_dirs" 22261 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22262echo "$as_me: error: cannot create directory $as_dir" >&2;} 22263 { (exit 1); exit 1; }; }; } 22264 ac_builddir=. 22265 22266case "$ac_dir" in 22267.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22268*) 22269 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22270 # A ".." for each directory in $ac_dir_suffix. 22271 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22272 case $ac_top_builddir_sub in 22273 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22274 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22275 esac ;; 22276esac 22277ac_abs_top_builddir=$ac_pwd 22278ac_abs_builddir=$ac_pwd$ac_dir_suffix 22279# for backward compatibility: 22280ac_top_builddir=$ac_top_build_prefix 22281 22282case $srcdir in 22283 .) # We are building in place. 22284 ac_srcdir=. 22285 ac_top_srcdir=$ac_top_builddir_sub 22286 ac_abs_top_srcdir=$ac_pwd ;; 22287 [\\/]* | ?:[\\/]* ) # Absolute name. 22288 ac_srcdir=$srcdir$ac_dir_suffix; 22289 ac_top_srcdir=$srcdir 22290 ac_abs_top_srcdir=$srcdir ;; 22291 *) # Relative name. 22292 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22293 ac_top_srcdir=$ac_top_build_prefix$srcdir 22294 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22295esac 22296ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22297 22298 22299 case $ac_mode in 22300 :F) 22301 # 22302 # CONFIG_FILE 22303 # 22304 22305 case $INSTALL in 22306 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22307 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22308 esac 22309_ACEOF 22310 22311cat >>$CONFIG_STATUS <<\_ACEOF 22312# If the template does not know about datarootdir, expand it. 22313# FIXME: This hack should be removed a few years after 2.60. 22314ac_datarootdir_hack=; ac_datarootdir_seen= 22315 22316case `sed -n '/datarootdir/ { 22317 p 22318 q 22319} 22320/@datadir@/p 22321/@docdir@/p 22322/@infodir@/p 22323/@localedir@/p 22324/@mandir@/p 22325' $ac_file_inputs` in 22326*datarootdir*) ac_datarootdir_seen=yes;; 22327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22328 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22329echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22330_ACEOF 22331cat >>$CONFIG_STATUS <<_ACEOF 22332 ac_datarootdir_hack=' 22333 s&@datadir@&$datadir&g 22334 s&@docdir@&$docdir&g 22335 s&@infodir@&$infodir&g 22336 s&@localedir@&$localedir&g 22337 s&@mandir@&$mandir&g 22338 s&\\\${datarootdir}&$datarootdir&g' ;; 22339esac 22340_ACEOF 22341 22342# Neutralize VPATH when `$srcdir' = `.'. 22343# Shell code in configure.ac might set extrasub. 22344# FIXME: do we really want to maintain this feature? 22345cat >>$CONFIG_STATUS <<_ACEOF 22346 sed "$ac_vpsub 22347$extrasub 22348_ACEOF 22349cat >>$CONFIG_STATUS <<\_ACEOF 22350:t 22351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22352s&@configure_input@&$configure_input&;t t 22353s&@top_builddir@&$ac_top_builddir_sub&;t t 22354s&@srcdir@&$ac_srcdir&;t t 22355s&@abs_srcdir@&$ac_abs_srcdir&;t t 22356s&@top_srcdir@&$ac_top_srcdir&;t t 22357s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22358s&@builddir@&$ac_builddir&;t t 22359s&@abs_builddir@&$ac_abs_builddir&;t t 22360s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22361s&@INSTALL@&$ac_INSTALL&;t t 22362$ac_datarootdir_hack 22363" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22364 22365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22368 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22369which seems to be undefined. Please make sure it is defined." >&5 22370echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22371which seems to be undefined. Please make sure it is defined." >&2;} 22372 22373 rm -f "$tmp/stdin" 22374 case $ac_file in 22375 -) cat "$tmp/out"; rm -f "$tmp/out";; 22376 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22377 esac 22378 ;; 22379 :H) 22380 # 22381 # CONFIG_HEADER 22382 # 22383_ACEOF 22384 22385# Transform confdefs.h into a sed script `conftest.defines', that 22386# substitutes the proper values into config.h.in to produce config.h. 22387rm -f conftest.defines conftest.tail 22388# First, append a space to every undef/define line, to ease matching. 22389echo 's/$/ /' >conftest.defines 22390# Then, protect against being on the right side of a sed subst, or in 22391# an unquoted here document, in config.status. If some macros were 22392# called several times there might be several #defines for the same 22393# symbol, which is useless. But do not sort them, since the last 22394# AC_DEFINE must be honored. 22395ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22396# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22397# NAME is the cpp macro being defined, VALUE is the value it is being given. 22398# PARAMS is the parameter list in the macro definition--in most cases, it's 22399# just an empty string. 22400ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22401ac_dB='\\)[ (].*,\\1define\\2' 22402ac_dC=' ' 22403ac_dD=' ,' 22404 22405uniq confdefs.h | 22406 sed -n ' 22407 t rset 22408 :rset 22409 s/^[ ]*#[ ]*define[ ][ ]*// 22410 t ok 22411 d 22412 :ok 22413 s/[\\&,]/\\&/g 22414 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22415 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22416 ' >>conftest.defines 22417 22418# Remove the space that was appended to ease matching. 22419# Then replace #undef with comments. This is necessary, for 22420# example, in the case of _POSIX_SOURCE, which is predefined and required 22421# on some systems where configure will not decide to define it. 22422# (The regexp can be short, since the line contains either #define or #undef.) 22423echo 's/ $// 22424s,^[ #]*u.*,/* & */,' >>conftest.defines 22425 22426# Break up conftest.defines: 22427ac_max_sed_lines=50 22428 22429# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22430# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22431# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22432# et cetera. 22433ac_in='$ac_file_inputs' 22434ac_out='"$tmp/out1"' 22435ac_nxt='"$tmp/out2"' 22436 22437while : 22438do 22439 # Write a here document: 22440 cat >>$CONFIG_STATUS <<_ACEOF 22441 # First, check the format of the line: 22442 cat >"\$tmp/defines.sed" <<\\CEOF 22443/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22444/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22445b 22446:def 22447_ACEOF 22448 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22449 echo 'CEOF 22450 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22451 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22452 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22453 grep . conftest.tail >/dev/null || break 22454 rm -f conftest.defines 22455 mv conftest.tail conftest.defines 22456done 22457rm -f conftest.defines conftest.tail 22458 22459echo "ac_result=$ac_in" >>$CONFIG_STATUS 22460cat >>$CONFIG_STATUS <<\_ACEOF 22461 if test x"$ac_file" != x-; then 22462 echo "/* $configure_input */" >"$tmp/config.h" 22463 cat "$ac_result" >>"$tmp/config.h" 22464 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22465 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22466echo "$as_me: $ac_file is unchanged" >&6;} 22467 else 22468 rm -f $ac_file 22469 mv "$tmp/config.h" $ac_file 22470 fi 22471 else 22472 echo "/* $configure_input */" 22473 cat "$ac_result" 22474 fi 22475 rm -f "$tmp/out12" 22476 ;; 22477 22478 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22479echo "$as_me: executing $ac_file commands" >&6;} 22480 ;; 22481 esac 22482 22483 22484 case $ac_file$ac_mode in 22485 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 22486 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 22487 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 22488 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 22489 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 22490 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 22491 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 22492 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 22493 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 22494 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 22495 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 22496 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 22497 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 22498 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 22499 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 22500 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 22501 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 22502 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 22503 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 22504 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 22505 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 22506 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 22507 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 22508 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 22509 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 22510 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 22511 22512 esac 22513done # for ac_tag 22514 22515 22516{ (exit 0); exit 0; } 22517_ACEOF 22518chmod +x $CONFIG_STATUS 22519ac_clean_files=$ac_clean_files_save 22520 22521 22522# configure is writing to config.log, and then calls config.status. 22523# config.status does its own redirection, appending to config.log. 22524# Unfortunately, on DOS this fails, as config.log is still kept open 22525# by configure, so config.status won't be able to write to it; its 22526# output is simply discarded. So we exec the FD to /dev/null, 22527# effectively closing config.log, so it can be properly (re)opened and 22528# appended to by config.status. When coming back to configure, we 22529# need to make the FD available again. 22530if test "$no_create" != yes; then 22531 ac_cs_success=: 22532 ac_config_status_args= 22533 test "$silent" = yes && 22534 ac_config_status_args="$ac_config_status_args --quiet" 22535 exec 5>/dev/null 22536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22537 exec 5>>config.log 22538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22539 # would make configure fail if this is the last instruction. 22540 $ac_cs_success || { (exit 1); exit 1; } 22541fi 22542 22543# 22544# CONFIG_SUBDIRS section. 22545# 22546if test "$no_recursion" != yes; then 22547 22548 # Remove --cache-file and --srcdir arguments so they do not pile up. 22549 ac_sub_configure_args= 22550 ac_prev= 22551 eval "set x $ac_configure_args" 22552 shift 22553 for ac_arg 22554 do 22555 if test -n "$ac_prev"; then 22556 ac_prev= 22557 continue 22558 fi 22559 case $ac_arg in 22560 -cache-file | --cache-file | --cache-fil | --cache-fi \ 22561 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 22562 ac_prev=cache_file ;; 22563 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 22564 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 22565 | --c=*) 22566 ;; 22567 --config-cache | -C) 22568 ;; 22569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 22570 ac_prev=srcdir ;; 22571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 22572 ;; 22573 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 22574 ac_prev=prefix ;; 22575 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 22576 ;; 22577 *) 22578 case $ac_arg in 22579 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22580 esac 22581 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 22582 esac 22583 done 22584 22585 # Always prepend --prefix to ensure using the same prefix 22586 # in subdir configurations. 22587 ac_arg="--prefix=$prefix" 22588 case $ac_arg in 22589 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22590 esac 22591 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 22592 22593 ac_popdir=`pwd` 22594 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 22595 22596 # Do not complain, so a configure script can configure whichever 22597 # parts of a large source tree are present. 22598 test -d "$srcdir/$ac_dir" || continue 22599 22600 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 22601 echo "$as_me:$LINENO: $ac_msg" >&5 22602 echo "$ac_msg" >&6 22603 { as_dir="$ac_dir" 22604 case $as_dir in #( 22605 -*) as_dir=./$as_dir;; 22606 esac 22607 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22608 as_dirs= 22609 while :; do 22610 case $as_dir in #( 22611 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22612 *) as_qdir=$as_dir;; 22613 esac 22614 as_dirs="'$as_qdir' $as_dirs" 22615 as_dir=`$as_dirname -- "$as_dir" || 22616$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22617 X"$as_dir" : 'X\(//\)[^/]' \| \ 22618 X"$as_dir" : 'X\(//\)$' \| \ 22619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22620echo X"$as_dir" | 22621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22622 s//\1/ 22623 q 22624 } 22625 /^X\(\/\/\)[^/].*/{ 22626 s//\1/ 22627 q 22628 } 22629 /^X\(\/\/\)$/{ 22630 s//\1/ 22631 q 22632 } 22633 /^X\(\/\).*/{ 22634 s//\1/ 22635 q 22636 } 22637 s/.*/./; q'` 22638 test -d "$as_dir" && break 22639 done 22640 test -z "$as_dirs" || eval "mkdir $as_dirs" 22641 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22642echo "$as_me: error: cannot create directory $as_dir" >&2;} 22643 { (exit 1); exit 1; }; }; } 22644 ac_builddir=. 22645 22646case "$ac_dir" in 22647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22648*) 22649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22650 # A ".." for each directory in $ac_dir_suffix. 22651 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22652 case $ac_top_builddir_sub in 22653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22655 esac ;; 22656esac 22657ac_abs_top_builddir=$ac_pwd 22658ac_abs_builddir=$ac_pwd$ac_dir_suffix 22659# for backward compatibility: 22660ac_top_builddir=$ac_top_build_prefix 22661 22662case $srcdir in 22663 .) # We are building in place. 22664 ac_srcdir=. 22665 ac_top_srcdir=$ac_top_builddir_sub 22666 ac_abs_top_srcdir=$ac_pwd ;; 22667 [\\/]* | ?:[\\/]* ) # Absolute name. 22668 ac_srcdir=$srcdir$ac_dir_suffix; 22669 ac_top_srcdir=$srcdir 22670 ac_abs_top_srcdir=$srcdir ;; 22671 *) # Relative name. 22672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22673 ac_top_srcdir=$ac_top_build_prefix$srcdir 22674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22675esac 22676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22677 22678 22679 cd "$ac_dir" 22680 22681 # Check for guested configure; otherwise get Cygnus style configure. 22682 if test -f "$ac_srcdir/configure.gnu"; then 22683 ac_sub_configure=$ac_srcdir/configure.gnu 22684 elif test -f "$ac_srcdir/configure"; then 22685 ac_sub_configure=$ac_srcdir/configure 22686 elif test -f "$ac_srcdir/configure.in"; then 22687 # This should be Cygnus configure. 22688 ac_sub_configure=$ac_aux_dir/configure 22689 else 22690 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 22691echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 22692 ac_sub_configure= 22693 fi 22694 22695 # The recursion is here. 22696 if test -n "$ac_sub_configure"; then 22697 # Make the cache file name correct relative to the subdirectory. 22698 case $cache_file in 22699 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 22700 *) # Relative name. 22701 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 22702 esac 22703 22704 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 22705echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 22706 # The eval makes quoting arguments work. 22707 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 22708 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 22709 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 22710echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 22711 { (exit 1); exit 1; }; } 22712 fi 22713 22714 cd "$ac_popdir" 22715 done 22716fi 22717 22718